# CVE-2026-62770 — windows.storage.dll patch diff

`windows.storage.dll` 10.0.26100.8875 -> 10.0.26100.9168 (ghidriff).

## `App_IsLFNAware`  (modified)

```diff
--- App_IsLFNAware
+++ App_IsLFNAware
@@ -1,211 +1,94 @@
 

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 

-int App_IsLFNAware(void)

+bool App_IsLFNAware(ushort *param_1,ulong param_2)

 

 {

-  int iVar1;

-  ushort uVar2;

-  undefined8 *puVar3;

-  ulong dwTlsIndex;

-  HRESULT HVar4;

-  int iVar5;

-  int iVar6;

-  CCachedSTAObject *pCVar7;

-  CObjectWithSite *this;

-  CCachedSTAObject *pCVar8;

-  ushort *puVar9;

-  ushort *puVar10;

-  CObjectWithSite *pCVar11;

-  CSFStorage *this_00;

-  size_t unaff_RBX;

-  longlong unaff_RBP;

-  ushort *unaff_RSI;

-  undefined8 *unaff_RDI;

-  int iVar12;

-  CCachedSTAObject *unaff_R13;

-  ushort *unaff_R14;

-  size_t unaff_R15;

+  bool bVar1;

+  long lVar2;

+  int iVar3;

+  uint uVar4;

+  FeatureImpl<struct___WilFeatureTraits_Feature_62446788> *pFVar5;

+  void *pvVar6;

+  undefined1 auStack_68 [32];

+  longlong *local_48;

+  undefined8 local_40;

+  undefined8 local_38;

+  undefined4 local_30;

+  ushort *local_28;

+  longlong local_20;

+  ulonglong local_18;

   

-  (**(code **)(*(longlong *)(ulonglong)*(uint *)(unaff_RBP + -0x11) + 0x10))();

-  memset(unaff_R14,0,unaff_R15);

-  memcpy(unaff_R14,unaff_RSI,unaff_RBX);

-  uVar2 = *unaff_R14;

-  puVar10 = unaff_R14;

-  if (uVar2 != 0) {

-    do {

-      puVar9 = puVar10;

-      puVar10 = (ushort *)((longlong)puVar9 + (ulonglong)uVar2);

-      uVar2 = *puVar10;

-    } while (uVar2 != 0);

-    *puVar9 = (ushort)unaff_R13;

+                    /* 0x16e4a0  84  App_IsLFNAware */

+  local_18 = __security_cookie ^ (ulonglong)auStack_68;

+  pFVar5 = &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_62446788>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_62446788>::GetImpl(void)'

+            ::__l2::impl;

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_62446788>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_62446788> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_62446788>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_62446788>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar1) {

+    local_48 = (longlong *)0x0;

+    local_38 = 0;

+    local_28 = (ushort *)0x0;

+    local_40 = CONCAT44(local_40._4_4_,0xffffffff);

+    bVar1 = true;

+    local_30 = 0xffffffff;

+    lVar2 = _AllocString<CTCoAllocPolicy>(pFVar5,param_2,param_1,&local_28);

+    if (-1 < lVar2) {

+      iVar3 = CAppPathReader::DoesValueExist((CAppPathReader *)&local_48,(ushort *)L"UseShortName");

+      bVar1 = iVar3 == 0;

+    }

+    CAppPathReader::~CAppPathReader((CAppPathReader *)&local_48);

+    return bVar1;

   }

-  *unaff_RDI = unaff_R13;

-  if (g_tlsDesktop == 0xffffffff) {

-    DelayAllocateTLS_AllocateInternal(&g_tlsDesktop,(ushort *)L"Desktop");

-  }

-  dwTlsIndex = g_tlsDesktop;

-  *(CCachedSTAObject **)(unaff_RBP + -0x19) = unaff_R13;

-  iVar6 = 1;

-  iVar5 = -0x7ff8fff2;

-  iVar12 = (int)unaff_R13;

-  pCVar8 = unaff_R13;

-  if (dwTlsIndex == 0xffffffff) {

+  bVar1 = false;

+  uVar4 = GetExeType(param_1);

+  local_20 = 0;

+  pvVar6 = (void *)0x4550;

+  if ((short)uVar4 == 0x4550) {

 LAB_0:

-    if (iVar6 == 1) goto LAB_1;

+    local_48 = (longlong *)0x0;

+    local_38 = 0;

+    local_28 = (ushort *)0x0;

+    local_40 = CONCAT44(local_40._4_4_,0xffffffff);

+    bVar1 = true;

+    local_30 = 0xffffffff;

+    lVar2 = _AllocString<CTCoAllocPolicy>(pvVar6,param_2,param_1,&local_28);

+    if (-1 < lVar2) {

+      iVar3 = CAppPathReader::DoesValueExist((CAppPathReader *)&local_48,(ushort *)L"UseShortName");

+      bVar1 = iVar3 == 0;

+    }

+    CAppPathReader::~CAppPathReader((CAppPathReader *)&local_48);

   }

   else {

-    *(undefined4 *)(unaff_RBP + -1) = 0;

-    *(undefined4 *)(unaff_RBP + 3) = 0;

-    HVar4 = CoGetApartmentType((APTTYPE *)(unaff_RBP + -1),(APTTYPEQUALIFIER *)(unaff_RBP + 3));

-    if ((-1 < HVar4) && ((*(int *)(unaff_RBP + -1) == 3 || (*(int *)(unaff_RBP + -1) == 0)))) {

-      pCVar7 = TlsGetValue(dwTlsIndex);

-      if (pCVar7 == (CCachedSTAObject *)0x0) {

-        pCVar8 = operator_new(0x30,&std::nothrow);

-        if ((pCVar8 == (CCachedSTAObject *)0x0) ||

-           (pCVar8 = (CCachedSTAObject *)CCachedSTAObject::CCachedSTAObject(pCVar8),

-           pCVar8 == (CCachedSTAObject *)0x0)) {

-          iVar6 = -0x7ff8fff2;

-        }

-        else {

-          iVar6 = CCachedSTAObject::InitializeCachedObject(pCVar8,dwTlsIndex);

-          if (-1 < iVar6) {

-            TlsSetValue(dwTlsIndex,pCVar8);

-            LOCK();

-            *(int *)(pCVar8 + 8) = *(int *)(pCVar8 + 8) + 1;

-            UNLOCK();

-            iVar6 = 1;

-            unaff_R13 = pCVar8;

-          }

-          CCachedSTAObject::Release(pCVar8);

-        }

-        iVar12 = 0;

-        if (-1 < iVar6) goto LAB_2;

-        pCVar8 = (CCachedSTAObject *)0x0;

-      }

-      else if (*(int *)(pCVar7 + 0x28) != iVar12) {

-        LOCK();

-        *(int *)(pCVar7 + 8) = *(int *)(pCVar7 + 8) + 1;

-        UNLOCK();

-        unaff_R13 = pCVar7;

-        iVar6 = iVar12;

-LAB_2:

-        iVar12 = 1;

-        if (iVar6 == 0) {

-          *(undefined8 *)(unaff_RBP + -0x19) = 0;

-          puVar3 = *(undefined8 **)(unaff_R13 + 0x20);

-          if (puVar3 == (undefined8 *)0x0) {

-            iVar6 = 1;

-          }

-          else {

-            iVar6 = (**(code **)*puVar3)

-                              (puVar3,&_GUID_000214e6_0000_0000_c000_000000000046,unaff_RBP + -0x19)

-            ;

-          }

-        }

-        LOCK();

-        pCVar8 = unaff_R13 + 8;

-        iVar1 = *(int *)pCVar8;

-        *(int *)pCVar8 = *(int *)pCVar8 + -1;

-        UNLOCK();

-        if (iVar1 == 1) {

-          operator_delete__(unaff_R13,0x30);

-        }

-        unaff_R13 = *(CCachedSTAObject **)(unaff_RBP + -0x19);

-        pCVar8 = (CCachedSTAObject *)0x0;

-        goto LAB_0;

+    if ((short)uVar4 == 0x454e) {

+      param_2 = 0x400;

+      pvVar6 = (void *)(ulonglong)(uVar4 >> 0x10);

+      if (0x3ff < (ushort)(uVar4 >> 0x10)) goto LAB_0;

+    }

+    if ((uVar4 == 0) && (iVar3 = HasExtension(param_1), iVar3 == 0x6578652e)) {

+      local_40 = 0;

+      local_48 = &local_20;

+      local_38 = CONCAT71(local_38._1_7_,1);

+      iVar3 = LoadAppExecutionAliasInfoEx(param_1,0,&local_40);

+      wil::details::

+      out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<APPEXECUTIONALIASINFOEX*___ptr64,void_(__cdecl*)(APPEXECUTIONALIASINFOEX*___ptr64),&void___cdecl_FreeAppExecutionAliasInfoEx(struct_APPEXECUTIONALIASINFOEX*___ptr64),wistd::integral_constant<unsigned___int64,0>,APPEXECUTIONALIASINFOEX*___ptr64,APPEXECUTIONALIASINFOEX*___ptr64,0,std::nullptr_t>_>_>_>

+      ::

+      ~out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<APPEXECUTIONALIASINFOEX*___ptr64,void_(__cdecl*)(APPEXECUTIONALIASINFOEX*___ptr64),&void___cdecl_FreeAppExecutionAliasInfoEx(struct_APPEXECUTIONALIASINFOEX*___ptr64),wistd::integral_constant<unsigned___int64,0>,APPEXECUTIONALIASINFOEX*___ptr64,APPEXECUTIONALIASINFOEX*___ptr64,0,std::nullptr_t>_>_>_>

+                ((out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<APPEXECUTIONALIASINFOEX*___ptr64,void_(__cdecl*)(APPEXECUTIONALIASINFOEX*___ptr64),&void___cdecl_FreeAppExecutionAliasInfoEx(struct_APPEXECUTIONALIASINFOEX*___ptr64),wistd::integral_constant<unsigned___int64,0>,APPEXECUTIONALIASINFOEX*___ptr64,APPEXECUTIONALIASINFOEX*___ptr64,0,std::nullptr_t>_>_>_>

+                  *)&local_48);

+      if ((-1 < iVar3) && (bVar1 = false, local_20 != 0)) {

+        bVar1 = true;

       }

     }

-LAB_1:

-    this = operator_new(0x138,&std::nothrow);

-    if (this == (CObjectWithSite *)0x0) goto LAB_3;

-    pCVar11 = this;

-    CObjectWithSite::CObjectWithSite(this);

-    *(undefined ***)(pCVar11 + 0x18) = &CAggregatedUnknown::CUnkInner::_vftable_;

-    *(undefined4 *)(pCVar11 + 0x20) = 1;

-    *(CObjectWithSite **)(this + 0x28) = pCVar11 + 0x18;

-    this_00 = (CSFStorage *)(this + 0x30);

-    CSFStorage::CSFStorage(this_00);

-    *(undefined ***)this = &CDesktopFolder::_vftable__for__CObjectWithSite__;

-    *(undefined ***)(this + 0x10) = &CDesktopFolder::_vftable__for__CAggregatedUnknown__;

-    *(undefined ***)this_00 = &CDesktopFolder::_vftable__for__IShellFolder2__;

-    *(undefined ***)(this + 0x38) = &CDesktopFolder::_vftable__for__IStorage__;

-    *(undefined ***)(this + 0x40) = &CDesktopFolder::_vftable__for__IPersistFolder2__;

-    *(undefined ***)(this + 0x48) = &CDesktopFolder::_vftable__for__IFolderWithSearchRoot__;

-    *(undefined ***)(this + 0x50) = &CDesktopFolder::_vftable__for__IShellIcon__;

-    *(undefined ***)(this + 0x58) = &CDesktopFolder::_vftable__for__IShellIconOverlay__;

-    *(undefined ***)(this + 0x60) = &CDesktopFolder::_vftable__for__IContextMenuCB__;

-    *(undefined ***)(this + 0x68) = &CDesktopFolder::_vftable__for__IItemNameLimits__;

-    *(undefined ***)(this + 0x70) = &CDesktopFolder::_vftable__for__IOleCommandTarget__;

-    *(undefined ***)(this + 0x78) = &CDesktopFolder::_vftable__for__IObjectWithBackReferences__;

-    *(undefined ***)(this + 0x80) = &CDesktopFolder::_vftable__for__ILocalizableItemParent__;

-    *(undefined ***)(this + 0x88) = &CDesktopFolder::_vftable__for__IExplorerPaneVisibility__;

-    *(undefined ***)(this + 0x90) = &CDesktopFolder::_vftable__for__IThumbnailHandlerFactory__;

-    *(undefined ***)(this + 0x98) = &CDesktopFolder::_vftable__for__IAliasedNamespace__;

-    *(undefined ***)(this + 0xa0) = &CDesktopFolder::_vftable__for__IObjectProvider__;

-    *(undefined ***)(this + 0xa8) =

-         &CDesktopFolder::_vftable__for__INameSpaceTreeControlFolderCapabilities__;

-    *(undefined ***)(this + 0xb0) =

-         &CDesktopFolder::_vftable__for__IShellFolderPropertyInformation__;

-    *(undefined ***)(this + 0xb8) = &CDesktopFolder::_vftable__for__IPropertyInfoProvider__;

-    *(undefined ***)(this + 0xc0) = &CDesktopFolder::_vftable__for__IColumnPreference__;

-    *(undefined ***)(this + 200) = &CDesktopFolder::_vftable__for__IFolderFilter__;

-    CDesktopRootedStub::CDesktopRootedStub((CDesktopRootedStub *)(this + 0xe8));

-    CShellUrlStub::CShellUrlStub((CShellUrlStub *)(this + 0xf8));

-    CKnownFolderUrlStub::CKnownFolderUrlStub((CKnownFolderUrlStub *)(this + 0x100));

-    CSearchUrlStub::CSearchUrlStub((CSearchUrlStub *)(this + 0x108));

-    CFileUrlStub::CFileUrlStub((CFileUrlStub *)(this + 0x110));

-    CHttpUrlStub::CHttpUrlStub((CHttpUrlStub *)(this + 0x118));

-    *(CCachedSTAObject **)(this + 0x120) = pCVar8;

-    *(undefined8 *)(this + 0x128) = 0;

-    *(undefined8 *)(this + 0x130) = 0;

-    *(CCachedSTAObject **)(this + 0xd0) = pCVar8;

-    *(CCachedSTAObject **)(this + 0xd8) = pCVar8;

-    *(CCachedSTAObject **)(this + 0xe0) = pCVar8;

-    iVar6 = CDesktopFolder::_Init((CDesktopFolder *)this,(IBindCtx *)0x0);

-    if (-1 < iVar6) {

-      if (iVar12 != 0) {

-        *(CCachedSTAObject **)(unaff_RBP + -9) = pCVar8;

-        iVar6 = (**(code **)**(undefined8 **)(this + 0x28))

-                          (*(undefined8 **)(this + 0x28),&_GUID_00000000_0000_0000_c000_000000000046

-                           ,unaff_RBP + -9);

-        if (-1 < iVar6) {

-          CachedSTAObject_SetObject(g_tlsDesktop,*(IUnknown **)(unaff_RBP + -9));

-          (**(code **)(**(longlong **)(unaff_RBP + -9) + 0x10))();

-        }

-      }

-      iVar6 = (**(code **)**(undefined8 **)(this + 0x28))

-                        (*(undefined8 **)(this + 0x28),&_GUID_000214e6_0000_0000_c000_000000000046,

-                         unaff_RBP + -0x19);

-    }

-    (**(code **)(**(longlong **)(this + 0x28) + 0x10))();

-    unaff_R13 = *(CCachedSTAObject **)(unaff_RBP + -0x19);

   }

-  iVar5 = iVar6;

-  if (-1 < iVar5) {

-    puVar3 = *(undefined8 **)(unaff_RBP + -0x31);

-    if (*unaff_R14 == (ushort)pCVar8) {

-      iVar5 = (*(code *)**(undefined8 **)unaff_R13)();

-    }

-    else {

-      iVar5 = (*(code *)(*(undefined8 **)unaff_R13)[5])();

-    }

-    if ((-1 < iVar5) && ((CCachedSTAObject *)*puVar3 == pCVar8)) {

-      iVar5 = -0x7fffbffb;

-    }

-    (**(code **)(**(longlong **)(unaff_RBP + -0x19) + 0x10))();

-  }

-LAB_3:

-  CoTaskMemFree(unaff_R14);

-  if ((-1 < iVar5) &&

-     (puVar10 = unaff_RSI, *(undefined8 **)(unaff_RBP + -0x21) != (undefined8 *)0x0)) {

-    for (; *puVar10 != 0; puVar10 = (ushort *)((longlong)puVar10 + (ulonglong)*puVar10)) {

-      unaff_RSI = puVar10;

-    }

-    **(undefined8 **)(unaff_RBP + -0x21) = unaff_RSI;

-  }

-  return iVar5;

+  wil::details::

+  unique_storage<wil::details::resource_policy<APPEXECUTIONALIASINFOEX*___ptr64,void_(__cdecl*)(APPEXECUTIONALIASINFOEX*___ptr64),&void___cdecl_FreeAppExecutionAliasInfoEx(struct_APPEXECUTIONALIASINFOEX*___ptr64),wistd::integral_constant<unsigned___int64,0>,APPEXECUTIONALIASINFOEX*___ptr64,APPEXECUTIONALIASINFOEX*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<APPEXECUTIONALIASINFOEX*___ptr64,void_(__cdecl*)(APPEXECUTIONALIASINFOEX*___ptr64),&void___cdecl_FreeAppExecutionAliasInfoEx(struct_APPEXECUTIONALIASINFOEX*___ptr64),wistd::integral_constant<unsigned___int64,0>,APPEXECUTIONALIASINFOEX*___ptr64,APPEXECUTIONALIASINFOEX*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<APPEXECUTIONALIASINFOEX*___ptr64,void_(__cdecl*)(APPEXECUTIONALIASINFOEX*___ptr64),&void___cdecl_FreeAppExecutionAliasInfoEx(struct_APPEXECUTIONALIASINFOEX*___ptr64),wistd::integral_constant<unsigned___int64,0>,APPEXECUTIONALIASINFOEX*___ptr64,APPEXECUTIONALIASINFOEX*___ptr64,0,std::nullptr_t>_>

+              *)&local_20);

+  return bVar1;

 }
```

## `GatherRegistrySettings`  (modified)

```diff
--- GatherRegistrySettings
+++ GatherRegistrySettings
@@ -1,605 +1,160 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* long __cdecl GatherRegistrySettings(void * __ptr64,unsigned __int64,struct

+   SettingsProviderRegistryDefinition * __ptr64,unsigned __int64 * __ptr64,unsigned char * __ptr64 *

+   __ptr64) */

 

 long __cdecl

 GatherRegistrySettings

           (void *param_1,__uint64 param_2,SettingsProviderRegistryDefinition *param_3,

           __uint64 *param_4,uchar **param_5)

 

 {

-  undefined1 *puVar1;

-  undefined1 *puVar2;

-  undefined1 *puVar3;

-  ushort uVar4;

-  LPVOID pvVar5;

-  LPVOID pvVar6;

-  SIZE_T SVar7;

-  SIZE_T SVar8;

-  HANDLE pvVar9;

-  uint *puVar10;

-  ulonglong uVar11;

-  void *_Dst;

-  longlong *plVar12;

-  byte bVar13;

-  uint uVar14;

-  uint *puVar15;

-  uint *_Src;

-  uint unaff_EBX;

-  uint uVar16;

-  uint uVar17;

-  uint uVar18;

-  SIZE_T *unaff_RBP;

-  LPVOID unaff_RSI;

-  LPVOID unaff_RDI;

-  undefined1 *puVar19;

-  uint *puVar20;

-  uint uVar21;

-  uint *puVar22;

-  ulonglong uVar23;

-  int iVar24;

-  byte *pbVar25;

-  uint uVar26;

-  uint uVar27;

-  uint uVar28;

-  uint *puVar29;

-  LPVOID unaff_R12;

-  LPVOID unaff_R13;

-  longlong unaff_R14;

-  LPVOID unaff_R15;

-  uint *in_stack_00000030;

-  uint in_stack_00000038;

-  uint *in_stack_00000040;

-  undefined1 in_stack_00000048;

-  undefined8 uStack0000000000000050;

-  LPVOID in_stack_00000058;

+  SIZE_T uBytes;

+  int iVar1;

+  long lVar2;

+  ushort **ppuVar3;

+  uchar *puVar4;

+  void *unaff_retaddr;

+  undefined1 auStack_f8 [32];

+  ushort *local_d8;

+  void *local_d0;

+  void *pvStack_c8;

+  longlong local_c0;

+  uchar *local_b8 [2];

+  RegistryStore local_a8 [128];

+  ulonglong local_28;

   

-  unaff_RBP[-0xc] = (SIZE_T)unaff_R13;

-  unaff_RBP[-0xe] = (SIZE_T)unaff_RSI;

-  unaff_RBP[-0xf] = (SIZE_T)param_1;

-  if ((int)unaff_EBX < 0) {

-    unaff_RBP[-10] = param_2;

+  local_28 = __security_cookie ^ (ulonglong)auStack_f8;

+  if (param_4 == (__uint64 *)0x0) {

+    lVar2 = -0x7fffbffd;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x22,

+               "onecore\\windows\\hvsi\\settings\\src\\registryutils\\registryutils.cpp",-0x7fffbffd

+              );

+  }

+  else if (param_5 == (uchar **)0x0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x23,

+               "onecore\\windows\\hvsi\\settings\\src\\registryutils\\registryutils.cpp",-0x7fffbffd

+              );

+    lVar2 = -0x7fffbffd;

+  }

+  else {

+    *param_4 = 0;

+    *param_5 = (uchar *)0x0;

+    local_d8 = (ushort *)0x0;

     if (param_1 != (void *)0x0) {

-      in_stack_00000030 = *(uint **)((longlong)param_1 + 8);

-      if (in_stack_00000030 != (LPVOID)0x0) {

-        pvVar9 = GetProcessHeap();

-        HeapFree(pvVar9,0,in_stack_00000030);

-        param_1 = (void *)unaff_RBP[-0xf];

-        *(undefined8 *)((longlong)param_1 + 8) = 0;

+      ppuVar3 = wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                       *)&local_d8);

+      iVar1 = ConvertSidToStringSidW(param_1,ppuVar3);

+      if (iVar1 == 0) {

+        lVar2 = wil::details::in1diag3::Return_GetLastError

+                          (unaff_retaddr,0x2d,

+                           "onecore\\windows\\hvsi\\settings\\src\\registryutils\\registryutils.cpp"

+                          );

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_d8);

+        return lVar2;

       }

-      in_stack_00000030 = *(uint **)((longlong)param_1 + 0x18);

-      if (in_stack_00000030 != (LPVOID)0x0) {

-        pvVar9 = GetProcessHeap();

-        HeapFree(pvVar9,0,in_stack_00000030);

-        param_1 = (void *)unaff_RBP[-0xf];

-        *(undefined8 *)((longlong)param_1 + 0x18) = 0;

+    }

+    RegistryStore::RegistryStore(local_a8,local_d8);

+    local_d0 = (void *)0x0;

+    pvStack_c8 = (void *)0x0;

+    local_c0 = 0;

+    lVar2 = RegistryStore::GatherRegistrySettings

+                      (local_a8,1,(SettingsProviderRegistryDefinition *)&g_knownFolderDefinitions,

+                       (vector<unsigned_char,std::allocator<unsigned_char>_> *)&local_d0);

+    if (lVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x32,

+                 "onecore\\windows\\hvsi\\settings\\src\\registryutils\\registryutils.cpp",lVar2);

+      if (local_d0 != (void *)0x0) {

+        std::_Deallocate<16,0>(local_d0,local_c0 - (longlong)local_d0);

+        local_d0 = (void *)0x0;

+        pvStack_c8 = (void *)0x0;

+        local_c0 = 0;

       }

-      in_stack_00000030 = *(uint **)((longlong)param_1 + 0x28);

-      if (in_stack_00000030 != (uint *)0x0) {

-        pvVar9 = GetProcessHeap();

-        HeapFree(pvVar9,0,in_stack_00000030);

-        *(undefined8 *)(unaff_RBP[-0xf] + 0x28) = 0;

+      RegistryStore::~RegistryStore(local_a8);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&local_d8);

+    }

+    else {

+      if (local_d0 != pvStack_c8) {

+        uBytes = (longlong)pvStack_c8 + (8 - (longlong)local_d0);

+        puVar4 = LocalAlloc(0x40,uBytes);

+        local_b8[0] = puVar4;

+        if (puVar4 == (uchar *)0x0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x3a,

+                     "onecore\\windows\\hvsi\\settings\\src\\registryutils\\registryutils.cpp",

+                     -0x7ff8fff2);

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+          ::

+          ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      *)local_b8);

+          if (local_d0 != (void *)0x0) {

+            std::_Deallocate<16,0>(local_d0,local_c0 - (longlong)local_d0);

+            local_d0 = (void *)0x0;

+            pvStack_c8 = (void *)0x0;

+            local_c0 = 0;

+          }

+          RegistryStore::~RegistryStore(local_a8);

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+          ::

+          ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_d8);

+          return -0x7ff8fff2;

+        }

+        puVar4[0] = '\x01';

+        puVar4[1] = '\0';

+        puVar4[2] = '\0';

+        puVar4[3] = '\0';

+        puVar4[4] = '\0';

+        puVar4[5] = '\0';

+        puVar4[6] = '\0';

+        puVar4[7] = '\0';

+        memcpy(puVar4 + 8,local_d0,(longlong)pvStack_c8 - (longlong)local_d0);

+        *param_4 = uBytes;

+        local_b8[0] = (uchar *)0x0;

+        *param_5 = puVar4;

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)local_b8);

       }

-      pvVar9 = GetProcessHeap();

-      HeapFree(pvVar9,0,(LPVOID)unaff_RBP[-0xf]);

-      param_2 = 0;

-      unaff_RBP[-10] = 0;

+      if (local_d0 != (void *)0x0) {

+        std::_Deallocate<16,0>(local_d0,local_c0 - (longlong)local_d0);

+        local_d0 = (void *)0x0;

+        pvStack_c8 = (void *)0x0;

+        local_c0 = 0;

+      }

+      RegistryStore::~RegistryStore(local_a8);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&local_d8);

+      lVar2 = 0;

     }

   }

-  else {

-    unaff_RBP[-10] = (SIZE_T)param_1;

-  }

-  uVar16 = unaff_EBX | 0x10000000;

-  if (-1 < (int)uVar16) {

-    puVar15 = (uint *)unaff_RBP[-10];

-    if (((puVar15 == (uint *)0x0) ||

-        (SVar7 = *(SIZE_T *)(puVar15 + 2), *unaff_RBP = SVar7, SVar7 == 0)) ||

-       (*puVar15 == (uint)param_2)) {

-      uVar16 = 0xd000000d;

-    }

-    else {

-      unaff_RBP[-0xf] = (ulonglong)*puVar15 - 8;

-      pvVar9 = GetProcessHeap();

-      puVar10 = HeapAlloc(pvVar9,0,unaff_RBP[-0xf]);

-      unaff_RBP[-5] = (SIZE_T)puVar10;

-      if (puVar10 != (uint *)0x0) {

-        uVar23 = unaff_RBP[-0xf];

-        pbVar25 = (byte *)*unaff_RBP;

-        uVar16 = (uint)uVar23 & 7;

-        in_stack_00000048 = 0;

-        unaff_RBP[0x10] = 0x7f1137fab69605e;

-        unaff_RBP[-0xb] = (SIZE_T)pbVar25;

-        puVar22 = puVar10;

-        in_stack_00000040 = puVar10;

-        if ((uVar23 & 7) == 0) {

-          *(undefined4 *)(unaff_RBP + -9) = 0;

-          uVar26 = 0;

-          *(undefined4 *)((longlong)unaff_RBP + -100) = 0;

-        }

-        else {

-          uVar18 = 0;

-          uVar26 = 0;

-          in_stack_00000038 = 0;

-          if ((uVar23 & 7) == 0) {

-            *(undefined4 *)(unaff_RBP + -9) = 0;

-            uVar26 = 0x92f65a5;

-            *(undefined4 *)((longlong)unaff_RBP + 0x14) = 0;

-            *(undefined4 *)((longlong)unaff_RBP + -100) = 0;

-LAB_0:

-            bVar13 = ('\x04' - (char)uVar16) * '\b';

-            uVar26 = (uVar26 >> (bVar13 & 0x1f)) << (bVar13 & 0x1f);

-            in_stack_00000040 = puVar10;

-          }

-          else {

-            do {

-              bVar13 = *pbVar25;

-              pbVar25 = pbVar25 + 1;

-              *(uint *)(unaff_RBP + -9) = (uint)bVar13;

-              bVar13 = (byte)*(undefined4 *)((longlong)unaff_RBP + -100);

-              if (in_stack_00000038 < 4) {

-                *(int *)(unaff_RBP + -9) = (int)unaff_RBP[-9] << (bVar13 - 0x20 & 0x1f);

-                uVar26 = uVar26 | (uint)unaff_RBP[-9];

-              }

-              else {

-                *(int *)(unaff_RBP + -9) = (int)unaff_RBP[-9] << (bVar13 & 0x1f);

-                uVar18 = uVar18 | (uint)unaff_RBP[-9];

-              }

-              *(int *)((longlong)unaff_RBP + -100) = *(int *)((longlong)unaff_RBP + -100) + -8;

-              in_stack_00000038 = in_stack_00000038 + 1;

-            } while ((int)in_stack_00000038 < (int)uVar16);

-            unaff_RBP[-0xb] = (SIZE_T)pbVar25;

-            *(uint *)(unaff_RBP + -9) = uVar26;

-            uVar26 = uVar26 ^ 0x92f65a5;

-            SVar8 = unaff_RBP[-9];

-            uVar27 = uVar18 ^ 0x699a899c;

-            in_stack_00000038 = 0;

-            SVar7 = unaff_RBP[-0xb];

-            *(uint *)(unaff_RBP + -0x10) = uVar27;

-            uVar21 = uVar26;

-            uVar14 = uVar27;

-            while( true ) {

-              *(uint *)((longlong)unaff_RBP + 0x14) = uVar18;

-              puVar10 = (uint *)((longlong)in_stack_00000040 + 1);

-              if ((int)in_stack_00000038 < 4) {

-                uVar21 = uVar21 >> 0x18 | uVar21 << 8;

-                uVar18 = uVar21;

-              }

-              else {

-                uVar18 = uVar14 >> 0x18 | uVar14 << 8;

-                *(uint *)(unaff_RBP + -0x10) = uVar18;

-              }

-              *(char *)in_stack_00000040 = (char)uVar18;

-              in_stack_00000038 = in_stack_00000038 + 1;

-              uVar18 = *(uint *)((longlong)unaff_RBP + 0x14);

-              in_stack_00000040 = puVar10;

-              if ((int)uVar16 <= (int)in_stack_00000038) break;

-              uVar14 = (uint)unaff_RBP[-0x10];

-            }

-            puVar22 = (uint *)unaff_RBP[-5];

-            *(int *)(unaff_RBP + -9) = (int)SVar8;

-            unaff_RBP[-0xb] = SVar7;

-            unaff_RBP[-10] = (SIZE_T)puVar15;

-            unaff_RBP[-0xc] = (SIZE_T)unaff_R13;

-            unaff_RBP[-3] = (SIZE_T)unaff_R12;

-            unaff_RBP[-4] = (SIZE_T)unaff_R15;

-            unaff_RBP[-0xe] = (SIZE_T)unaff_RSI;

-            unaff_RBP[1] = (SIZE_T)unaff_RDI;

-            if (uVar16 < 5) {

-              *(undefined4 *)((longlong)unaff_RBP + -100) = 0;

-              if (uVar16 < 4) goto LAB_0;

-            }

-            else {

-              bVar13 = ('\b' - (char)uVar16) * '\b';

-              *(uint *)((longlong)unaff_RBP + -100) = (uVar27 >> (bVar13 & 0x1f)) << (bVar13 & 0x1f)

-              ;

-            }

-          }

-        }

-        puVar10 = (uint *)(unaff_RBP[-0xf] >> 3);

-        in_stack_00000030 = puVar10;

-        if (puVar10 != (uint *)0x0) {

-          uVar16 = *(uint *)((longlong)unaff_RBP + 0x84);

-          uVar18 = *(uint *)((longlong)unaff_RBP + -100);

-          in_stack_00000030 = (uint *)(unaff_RBP[-0xb] + 2);

-          *(uint *)(unaff_RBP + -7) = (uint)*(ushort *)((longlong)unaff_RBP + 0x82);

-          in_stack_00000038 = uVar16 & 0xffff;

-          *(undefined4 *)(unaff_RBP + -6) = 0x605e;

-          puVar19 = (undefined1 *)((longlong)in_stack_00000040 + 7);

-          uVar14 = *(uint *)((longlong)unaff_RBP + 0x14);

-          uVar21 = (uint)unaff_RBP[-9];

-          do {

-            puVar1 = (undefined1 *)((longlong)in_stack_00000030 + 2);

-            uVar17 = CONCAT31(CONCAT21(CONCAT11(*(undefined1 *)((longlong)in_stack_00000030 + -2),

-                                                *(undefined1 *)((longlong)in_stack_00000030 + -1)),

-                                       (char)*in_stack_00000030),

-                              *(undefined1 *)((longlong)in_stack_00000030 + 1));

-            puVar2 = (undefined1 *)((longlong)in_stack_00000030 + 3);

-            uVar26 = uVar26 ^ uVar17;

-            puVar15 = in_stack_00000030 + 1;

-            puVar3 = (undefined1 *)((longlong)in_stack_00000030 + 5);

-            in_stack_00000030 = in_stack_00000030 + 2;

-            uVar28 = CONCAT31(CONCAT21(CONCAT11(*puVar1,*puVar2),(char)*puVar15),*puVar3);

-            uVar27 = uVar18 ^ uVar28 ^ uVar16 ^ 0xab69605e ^ uVar26;

-            uVar26 = uVar26 ^ (uVar27 + 0x54969fa2 >> 0x1b | (uVar27 + 0x54969fa2) * 0x20) *

-                              in_stack_00000038 + (uVar27 >> 0x16 | uVar27 << 10);

-            uVar27 = uVar27 ^ (uVar16 + uVar26 >> 9 | (uVar16 + uVar26) * 0x800000) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82) -

-                              (uVar26 >> 0x1e | uVar26 << 2);

-            uVar26 = uVar26 ^ (uVar27 - in_stack_00000038) * (int)unaff_RBP[-6] - (uVar27 >> 0xd);

-            uVar27 = uVar27 ^ (uVar26 >> 0x1a |

-                              (*(ushort *)((longlong)unaff_RBP + 0x82) ^ uVar26) << 6) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x86) -

-                              (uVar26 >> 0x1e | uVar26 << 2);

-            uVar26 = uVar26 ^ uVar16 - (uVar27 ^ 0xab69605e);

-            uVar27 = uVar27 ^ (uVar26 >> 6 | uVar26 << 0x1a) ^

-                              (in_stack_00000038 ^ uVar26) * (int)unaff_RBP[-7];

-            uVar26 = uVar26 ^ (uVar16 + uVar27 >> 0xf | (uVar16 + uVar27) * 0x20000) *

-                              (int)unaff_RBP[-6] + (uVar27 >> 0x1e | uVar27 << 2);

-            uVar27 = uVar27 ^ (uVar26 + 0x54969fa2 >> 0xe | (uVar26 + 0x54969fa2) * 0x40000) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x86) -

-                              (uVar26 >> 0x18 | uVar26 << 8);

-            uVar26 = uVar26 ^ ((uVar27 ^ 0xab69605e) >> 0xc | (uVar27 ^ 0xab69605e) << 0x14) *

-                              in_stack_00000038 ^ (uVar27 >> 10 | uVar27 << 0x16);

-            uVar27 = uVar27 ^ (*(ushort *)((longlong)unaff_RBP + 0x86) ^ uVar26) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82) ^ uVar26 >> 10;

-            uVar4 = *(ushort *)((longlong)unaff_RBP + 0x86);

-            uVar18 = ~uVar27;

-            uVar26 = uVar26 ^ ((uVar18 >> 5 | uVar18 << 0x1b) + (int)unaff_RBP[-6]) * (uint)uVar4;

-            uVar27 = uVar27 ^ uVar26 - uVar4 ^ 0xab69605e;

-            uVar26 = uVar26 ^ (uVar27 >> 0x1e | (uVar4 ^ uVar27) << 2) * in_stack_00000038 +

-                              (uVar27 >> 2);

-            uVar27 = uVar27 ^ (uVar26 - uVar16 >> 6 | (uVar26 - uVar16) * 0x4000000) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82) +

-                              (uVar26 >> 0x19 | uVar26 << 7);

-            uVar26 = uVar26 ^ (uVar27 >> 9 | uVar27 << 0x17) +

-                              (in_stack_00000038 ^ uVar27) * (int)unaff_RBP[-6];

-            uVar27 = uVar27 ^ (uVar26 >> 0x1b |

-                              (*(ushort *)((longlong)unaff_RBP + 0x82) ^ uVar26) << 5) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x86) +

-                              (uVar26 >> 0x19 | uVar26 << 7);

-            uVar26 = uVar26 ^ uVar16 ^ 0xab69605e ^ uVar27;

-            uVar27 = uVar27 ^ ((uVar26 >> 3 | uVar26 << 0x1d) -

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82)) * in_stack_00000038;

-            uVar26 = uVar26 ^ (uVar27 - uVar16 >> 1 | (uint)((uVar27 - uVar16 & 1) != 0) << 0x1f) *

-                              (int)unaff_RBP[-6] - (uVar27 >> 6 | uVar27 << 0x1a);

-            uVar27 = uVar27 ^ (uVar26 + 0xab69605e >> 0x1d | (uVar26 + 0xab69605e) * 8) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x86) +

-                              (uVar26 >> 0x12 | uVar26 << 0xe);

-            uVar26 = uVar26 ^ (uVar27 + 0xab69605e >> 0x11 | (uVar27 + 0xab69605e) * 0x8000) *

-                              in_stack_00000038 - (uVar27 >> 0xe | uVar27 << 0x12);

-            uVar27 = uVar27 ^ ((uint)unaff_RBP[-6] ^ uVar26) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82) ^ uVar26 >> 3;

-            uVar18 = uVar27 ^ uVar14;

-            uVar21 = uVar26 ^ ((uVar16 ^ uVar27) >> 0x1c | (uVar16 ^ uVar27) << 4) *

-                              (int)unaff_RBP[-6] ^ (uVar27 >> 0x1e | uVar27 << 2) ^ uVar21;

-            puVar19[-4] = (char)uVar21;

-            *puVar19 = (char)uVar18;

-            *(uint *)(unaff_RBP + -2) = uVar21;

-            puVar19[-5] = (char)(uVar21 >> 8);

-            puVar19[-1] = (char)(uVar18 >> 8);

-            puVar19[-6] = (char)(uVar21 >> 0x10);

-            puVar19[-2] = (char)(uVar18 >> 0x10);

-            puVar19[-7] = (char)(uVar21 >> 0x18);

-            uVar26 = (uint)unaff_RBP[-2];

-            puVar19[-3] = (char)(uVar18 >> 0x18);

-            puVar10 = (uint *)((longlong)puVar10 + -1);

-            puVar19 = puVar19 + 8;

-            uVar14 = uVar28;

-            uVar21 = uVar17;

-          } while (puVar10 != (uint *)0x0);

-          unaff_RDI = (LPVOID)unaff_RBP[1];

-          unaff_RSI = (LPVOID)unaff_RBP[-0xe];

-          unaff_R15 = (LPVOID)unaff_RBP[-4];

-          unaff_R12 = (LPVOID)unaff_RBP[-3];

-          unaff_R13 = (LPVOID)unaff_RBP[-0xc];

-          puVar15 = (uint *)unaff_RBP[-10];

-          puVar22 = (uint *)unaff_RBP[-5];

-        }

-        bVar13 = 0;

-        uVar23 = unaff_RBP[-0xf];

-        uVar11 = 0;

-        if (uVar23 != 0) {

-          do {

-            bVar13 = bVar13 ^ *(byte *)(uVar11 + (longlong)puVar22);

-            uVar11 = uVar11 + 1;

-          } while (uVar11 < uVar23);

-        }

-        unaff_RBP[-10] = (SIZE_T)puVar15;

-        if ((ulonglong)bVar13 == *(ulonglong *)(uVar23 + *unaff_RBP)) {

-          unaff_RBP[-10] = (SIZE_T)puVar15;

-          uVar16 = (uint)uVar23;

-          if (uVar16 < 4) {

-LAB_1:

-            uVar16 = 0xc000003e;

-          }

-          else {

-            *(uint *)(unaff_RBP + -7) = *puVar22;

-            puVar10 = puVar22 + 1;

-            unaff_RBP[-10] = (SIZE_T)puVar15;

-            unaff_RBP[-5] = (SIZE_T)puVar22;

-            if (puVar10 < puVar22) {

-LAB_2:

-              uVar16 = 0xc0000095;

-            }

-            else if (uVar16 - 4 < 4) {

-              uVar16 = 0xc000003e;

-LAB_3:

-              unaff_RBP[-5] = (SIZE_T)puVar22;

-              unaff_RBP[-10] = (SIZE_T)puVar15;

-            }

-            else {

-              uVar26 = *puVar10;

-              uVar11 = (ulonglong)uVar26;

-              _Src = puVar22 + 2;

-              *(uint *)(unaff_RBP + -0x10) = uVar26;

-              unaff_RBP[-0xe] = (SIZE_T)_Src;

-              if (_Src < puVar10) {

-                uVar16 = 0xc0000095;

-LAB_4:

-                unaff_RBP[-10] = (SIZE_T)puVar15;

-                unaff_RBP[-5] = (SIZE_T)puVar22;

-              }

-              else {

-                if (uVar16 - 8 < uVar26) goto LAB_1;

-                if (uVar26 + 8 < 8) {

-LAB_5:

-                  unaff_RBP[-5] = (SIZE_T)puVar22;

-LAB_6:

-                  unaff_RBP[-10] = (SIZE_T)puVar15;

-                  goto LAB_2;

-                }

-                puVar10 = (uint *)((longlong)_Src + uVar11);

-                *unaff_RBP = uVar11;

-                if (((uint *)((longlong)puVar22 + (uVar23 & 0xffffffff)) < puVar10) ||

-                   (7 < (longlong)puVar22 + (uVar23 & 0xffffffff) + (-uVar11 - (longlong)_Src))) {

-                  unaff_RBP[-5] = (SIZE_T)puVar22;

-                }

-                else {

-                  unaff_RBP[-5] = (SIZE_T)puVar22;

-                  unaff_RBP[1] = 0;

-                  in_stack_00000038 = 0;

-                  unaff_RBP[-10] = (SIZE_T)puVar15;

-                  if (_Src != (uint *)0x0) {

-                    if (puVar10 < _Src) {

-                      unaff_RBP[-5] = (SIZE_T)puVar22;

-                      goto LAB_6;

-                    }

-                    unaff_RBP[-0xe] = (SIZE_T)_Src;

-                    unaff_RBP[-10] = (SIZE_T)puVar15;

-                    unaff_RBP[-5] = (SIZE_T)puVar22;

-                    puVar20 = _Src;

-                    while (puVar20 < puVar10) {

-                      if (puVar20 + 1 < puVar20) goto LAB_2;

-                      unaff_RBP[-10] = (SIZE_T)puVar15;

-                      unaff_RBP[-5] = (SIZE_T)puVar22;

-                      unaff_RBP[-0xe] = (SIZE_T)_Src;

-                      if (puVar10 < puVar20 + 1) {

-                        uVar16 = 0xc000000d;

-                        goto LAB_4;

-                      }

-                      if ((*puVar20 + 4 < 4) ||

-                         (puVar29 = (uint *)((ulonglong)(*puVar20 + 4) + (longlong)puVar20),

-                         puVar29 < puVar20)) goto LAB_5;

-                      if (puVar10 < puVar29) {

-                        uVar16 = 0xc000000d;

-                        goto LAB_3;

-                      }

-                      in_stack_00000038 = in_stack_00000038 + 1;

-                      puVar20 = puVar29;

-                    }

-                    if (puVar20 != puVar10) {

-                      uVar16 = 0xc000000d;

-                      goto LAB_7;

-                    }

-                    uVar26 = (uint)unaff_RBP[-0x10];

-                  }

-                  _Dst = (void *)0x0;

-                  in_stack_00000040 = puVar22;

-                  if (uVar26 != 0) {

-                    pvVar9 = GetProcessHeap();

-                    _Dst = HeapAlloc(pvVar9,8,*unaff_RBP);

-                    unaff_RBP[1] = (SIZE_T)_Dst;

-                    if (_Dst == (LPVOID)0x0) {

-                      uVar16 = 0xc0000017;

-                      goto LAB_7;

-                    }

-                    _Src = (uint *)unaff_RBP[-0xe];

-                  }

-                  uVar16 = 0;

-                  if (_Src != (uint *)0x0) {

-                    memcpy(_Dst,_Src,*unaff_RBP);

-                  }

-                  unaff_RBP[4] = unaff_RBP[1];

-                  *(int *)((longlong)unaff_RBP + 0x1c) = (int)unaff_RBP[-0x10];

-                  *(uint *)(unaff_RBP + 3) = in_stack_00000038;

-                  unaff_RBP[-5] = (SIZE_T)in_stack_00000040;

-                  unaff_RBP[-10] = (SIZE_T)puVar15;

-                  unaff_RBP[-5] = (SIZE_T)in_stack_00000040;

-                  unaff_RBP[-10] = (SIZE_T)puVar15;

-                  if ((uint)unaff_RBP[-7] == in_stack_00000038) goto LAB_7;

-                  unaff_RBP[-5] = (SIZE_T)in_stack_00000040;

-                }

-                uVar16 = 0xc000003e;

-                unaff_RBP[-10] = (SIZE_T)puVar15;

-              }

-            }

-          }

-LAB_7:

-          uVar16 = uVar16 | 0x10000000;

-          goto LAB_8;

-        }

-        wil::details::FreeProcessHeap(puVar22);

-      }

-      unaff_RBP[-5] = 0;

-      uVar16 = 0xd0000001;

-    }

-  }

-LAB_8:

-  if (unaff_R15 != (LPVOID)0x0) {

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,unaff_R15);

-  }

-  if (unaff_R12 != (LPVOID)0x0) {

-    pvVar5 = *(LPVOID *)((longlong)unaff_R12 + 8);

-    if (pvVar5 != (LPVOID)0x0) {

-      pvVar9 = GetProcessHeap();

-      HeapFree(pvVar9,0,pvVar5);

-      *(undefined8 *)((longlong)unaff_R12 + 8) = 0;

-    }

-    pvVar5 = *(LPVOID *)((longlong)unaff_R12 + 0x18);

-    if (pvVar5 != (LPVOID)0x0) {

-      pvVar9 = GetProcessHeap();

-      HeapFree(pvVar9,0,pvVar5);

-      *(undefined8 *)((longlong)unaff_R12 + 0x18) = 0;

-    }

-    pvVar5 = *(LPVOID *)((longlong)unaff_R12 + 0x28);

-    if (pvVar5 != (LPVOID)0x0) {

-      pvVar9 = GetProcessHeap();

-      HeapFree(pvVar9,0,pvVar5);

-      *(undefined8 *)((longlong)unaff_R12 + 0x28) = 0;

-    }

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,unaff_R12);

-  }

-  if (unaff_R13 != (LPVOID)0x0) {

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,unaff_R13);

-  }

-  pvVar5 = (LPVOID)unaff_RBP[-1];

-  if (pvVar5 != (LPVOID)0x0) {

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,pvVar5);

-  }

-  pvVar5 = (LPVOID)unaff_RBP[-10];

-  if (pvVar5 != (LPVOID)0x0) {

-    pvVar6 = *(LPVOID *)((longlong)pvVar5 + 8);

-    if (pvVar6 != (LPVOID)0x0) {

-      pvVar9 = GetProcessHeap();

-      HeapFree(pvVar9,0,pvVar6);

-      *(undefined8 *)((longlong)pvVar5 + 8) = 0;

-    }

-    pvVar6 = *(LPVOID *)((longlong)pvVar5 + 0x18);

-    if (pvVar6 != (LPVOID)0x0) {

-      pvVar9 = GetProcessHeap();

-      HeapFree(pvVar9,0,pvVar6);

-      *(undefined8 *)((longlong)pvVar5 + 0x18) = 0;

-    }

-    pvVar6 = *(LPVOID *)((longlong)pvVar5 + 0x28);

-    if (pvVar6 != (LPVOID)0x0) {

-      pvVar9 = GetProcessHeap();

-      HeapFree(pvVar9,0,pvVar6);

-      *(undefined8 *)((longlong)pvVar5 + 0x28) = 0;

-    }

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,pvVar5);

-  }

-  pvVar5 = (LPVOID)unaff_RBP[-5];

-  if (pvVar5 != (LPVOID)0x0) {

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,pvVar5);

-  }

-  if ((int)uVar16 < 0) goto LAB_9;

-  if ((int)unaff_RBP[3] != 3) {

-LAB_10:

-    uVar16 = 0xc004d501;

-    goto LAB_9;

-  }

-  if (unaff_RBP[4] != 0) {

-    puVar15 = (uint *)unaff_RBP[4];

-    uVar26 = *puVar15;

-    in_stack_00000030 = puVar15;

-    uVar16 = RtlULongLongAdd(puVar15,4,&stack0x00000030);

-    if ((int)uVar16 < 0) goto LAB_9;

-    puVar10 = in_stack_00000030;

-    if (uVar26 == 0) {

-      puVar10 = (uint *)0x0;

-    }

-    if (uVar26 != 4) {

-LAB_11:

-      uVar16 = 0xc0000023;

-      goto LAB_9;

-    }

-    uVar16 = *puVar10;

-    if ((int)uVar16 < 0) goto LAB_9;

-    if (puVar15 != (uint *)0x0) {

-      unaff_RBP[-1] = (SIZE_T)puVar15;

-      uVar23 = (ulonglong)uVar16;

-      for (iVar24 = 0; iVar24 == 0; iVar24 = iVar24 + 1) {

-        uVar11 = (ulonglong)*puVar15;

-        uVar16 = RtlULongLongAdd();

-        if (((int)uVar16 < 0) ||

-           (uVar16 = RtlULongLongAdd(unaff_RBP[-1],uVar11 & 0xffffffff,unaff_RBP + -1),

-           (int)uVar16 < 0)) goto LAB_9;

-        puVar15 = (uint *)unaff_RBP[-1];

-      }

-      uVar26 = *puVar15;

-      uVar16 = RtlULongLongAdd();

-      if ((int)uVar16 < 0) goto LAB_9;

-      uVar18 = 0;

-      plVar12 = (longlong *)unaff_RBP[-1];

-      if (uVar26 == 0) {

-        plVar12 = (longlong *)0x0;

-      }

-      if (uVar26 != 8) goto LAB_11;

-      if (unaff_R14 != *plVar12) goto LAB_10;

-      if (unaff_RBP[4] != 0) {

-        puVar15 = (uint *)unaff_RBP[4];

-        unaff_RBP[-1] = (SIZE_T)puVar15;

-        while( true ) {

-          uVar26 = (uint)uVar23;

-          if (1 < uVar18) break;

-          uVar11 = (ulonglong)*puVar15;

-          uVar16 = RtlULongLongAdd(puVar15,4,unaff_RBP + -1);

-          if (((int)uVar16 < 0) ||

-             (uVar16 = RtlULongLongAdd(unaff_RBP[-1],uVar11 & 0xffffffff,unaff_RBP + -1),

-             (int)uVar16 < 0)) goto LAB_9;

-          puVar15 = (uint *)unaff_RBP[-1];

-          uVar18 = uVar18 + 1;

-        }

-        uVar18 = *puVar15;

-        uVar16 = RtlULongLongAdd(puVar15,4,unaff_RBP + -1);

-        if (-1 < (int)uVar16) {

-          if (uVar18 == 0x10) {

-            if (uVar26 != 0) {

-              uVar16 = uVar26;

-            }

-          }

-          else {

-            uVar16 = 0x8007000d;

-          }

-        }

-        goto LAB_9;

-      }

-    }

-  }

-  uVar16 = 0xc000000d;

-LAB_9:

-  uStack0000000000000050 = 0;

-  if (in_stack_00000058 != (LPVOID)0x0) {

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,in_stack_00000058);

-    in_stack_00000058 = (LPVOID)0x0;

-  }

-  unaff_RBP[3] = 0;

-  pvVar5 = (LPVOID)unaff_RBP[4];

-  if (pvVar5 != (LPVOID)0x0) {

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,pvVar5);

-    unaff_RBP[4] = 0;

-  }

-  if (unaff_RDI != (LPVOID)0x0) {

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,unaff_RDI);

-  }

-  if (unaff_RSI != (LPVOID)0x0) {

-    pvVar9 = GetProcessHeap();

-    HeapFree(pvVar9,0,unaff_RSI);

-  }

-  if (uVar16 == 0xd0000272) {

-    uVar16 = 0x80070491;

-  }

-  else if (uVar16 == 0x10000000) {

-    uVar16 = 0;

-  }

-  return uVar16;

+  return lVar2;

 }
```

## `GetRegDataDrivenCommandWithAssociation`  (modified)

```diff
--- GetRegDataDrivenCommandWithAssociation
+++ GetRegDataDrivenCommandWithAssociation
@@ -1,55 +1,98 @@
 

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

 

-void GetRegDataDrivenCommandWithAssociation(void)

+long GetRegDataDrivenCommandWithAssociation

+               (IUnknown *param_1,IAssociationElement *param_2,HKEY__ *param_3,bool *param_4,

+               _GUID *param_5,void **param_6)

 

 {

-  code *pcVar1;

-  uint uVar2;

-  int iVar3;

-  uint *in_RAX;

-  ulong uVar4;

-  longlong in_R11;

-  undefined4 uStack0000000000000040;

-  undefined2 uStack0000000000000044;

-  undefined2 uStack0000000000000046;

-  undefined1 uStack0000000000000048;

-  undefined1 uStack0000000000000049;

-  undefined1 uStack000000000000004a;

-  undefined1 uStack000000000000004b;

-  undefined1 uStack000000000000004c;

-  undefined1 uStack000000000000004d;

-  undefined1 uStack000000000000004e;

-  undefined1 uStack000000000000004f;

-  undefined8 in_stack_00000068;

+  long lVar1;

+  int iVar2;

+  RegDataDrivenCommand *pRVar3;

+  uint uVar4;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  *this;

+  bool *pbVar5;

+  void *unaff_retaddr;

+  undefined1 auStack_78 [32];

+  RegDataDrivenCommand *local_58;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  *local_50;

+  ulonglong local_48;

   

-  pcVar1 = *(code **)((ulonglong)*in_RAX + 0x30);

-  *(undefined8 *)(in_R11 + -0x10) = 0;

-  uVar2 = Microsoft::WRL::Wrappers::HStringReference::AddOne(0x3b);

-  uVar4 = uVar2 - 1;

-  if (0x3b < uVar2) {

-    uVar4 = 0x3b;

+                    /* 0x27cf50  224  GetRegDataDrivenCommandWithAssociation */

+  local_48 = __security_cookie ^ (ulonglong)auStack_78;

+  *param_6 = (void *)0x0;

+  local_50 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+              *)0x0;

+  pbVar5 = param_4;

+  local_58 = operator_new(0xd0,&std::nothrow);

+  this = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+          *)0x0;

+  if (local_58 != (RegDataDrivenCommand *)0x0) {

+    pRVar3 = (RegDataDrivenCommand *)

+             RegDataDrivenCommand::RegDataDrivenCommand(local_58,param_1,param_2);

+    Microsoft::WRL::ComPtr<RegDataDrivenCommand>::Attach

+              ((ComPtr<RegDataDrivenCommand> *)&local_50,pRVar3);

+    local_58 = (RegDataDrivenCommand *)0x0;

+    this = local_50;

   }

-  iVar3 = WindowsCreateStringReference

-                    (L"Windows.Foundation.AsyncOperationCompletedHandler`1<String>",uVar4,

-                     &stack0x00000050,&stack0x00000068);

-  if (-1 < iVar3) {

-    uStack0000000000000040 = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data1;

-    uStack0000000000000044 = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data2;

-    uStack0000000000000046 = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data3;

-    uStack0000000000000048 = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data4[0];

-    uStack0000000000000049 = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data4[1];

-    uStack000000000000004a = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data4[2];

-    uStack000000000000004b = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data4[3];

-    uStack000000000000004c = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data4[4];

-    uStack000000000000004d = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data4[5];

-    uStack000000000000004e = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data4[6];

-    uStack000000000000004f = GUID_CAUSALITY_WINDOWS_PLATFORM_ID.Data4[7];

-    (*pcVar1)(Microsoft::WRL::gCausality,0,2,&stack0x00000040);

-    return;

+  Microsoft::WRL::Details::

+  MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

+  ::

+  ~MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

+            ((MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

+              *)&local_58);

+  if (this == (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+               *)0x0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x382,"onecoreuap\\shell\\windows.storage\\ftcommands.cpp",-0x7ff8fff2)

+    ;

+    return -0x7ff8fff2;

   }

-                    /* WARNING: Subroutine does not return */

-  Microsoft::WRL::Details::RaiseException(iVar3,uVar4);

+  lVar1 = RegDataDrivenCommand::SetKeyAndName

+                    ((RegDataDrivenCommand *)(this + 0x80),param_3,(ushort *)param_4);

+  if (lVar1 < 0) {

+    uVar4 = 899;

+  }

+  else {

+    *param_6 = (void *)0x0;

+    iVar2 = InlineIsEqualGUID(param_5,&_GUID_00000000_0000_0000_c000_000000000046);

+    if ((iVar2 == 0) && (iVar2 = InlineIsEqualGUID(), iVar2 == 0)) {

+      iVar2 = InlineIsEqualGUID();

+      if (iVar2 == 0) {

+        lVar1 = Microsoft::WRL::Details::

+                ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+                ::CanCastTo((ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+                             *)(this + 8),param_5,param_6,pbVar5);

+        if (lVar1 < 0) goto LAB_0;

+      }

+      else {

+        *param_6 = this;

+        lVar1 = 0;

+      }

+      (**(code **)(*(longlong *)*param_6 + 8))(*param_6);

+    }

+    else {

+      *param_6 = this;

+      (**(code **)(*(longlong *)this + 8))(this);

+      lVar1 = 0;

+    }

+LAB_0:

+    if (-1 < lVar1) {

+      lVar1 = 0;

+      goto LAB_1;

+    }

+    uVar4 = 900;

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar4,"onecoreuap\\shell\\windows.storage\\ftcommands.cpp",lVar1);

+LAB_1:

+  Microsoft::WRL::Details::

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  ::Release(this);

+  return lVar1;

 }
```

## `CRegDataDrivenCommand_CreateInstance`  (modified)

```diff
--- CRegDataDrivenCommand_CreateInstance
+++ CRegDataDrivenCommand_CreateInstance
@@ -1,23 +1,86 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

 

-undefined4 CRegDataDrivenCommand_CreateInstance(longlong param_1,uint param_2)

+int CRegDataDrivenCommand_CreateInstance

+              (undefined8 param_1,_GUID *param_2,void **param_3,bool *param_4)

 

 {

-  undefined4 uVar1;

-  ulonglong in_RAX;

-  longlong unaff_RBP;

+  int iVar1;

+  RegDataDrivenCommand *pRVar2;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  *this;

+  long lVar3;

+  void *unaff_retaddr;

+  undefined1 auStack_48 [32];

+  RegDataDrivenCommand *local_28;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  *local_20;

+  ulonglong local_18;

   

-  uVar1 = AssocCreateForClasses

-                    (unaff_RBP + -0x50,

-                     ((ulonglong)param_2 << 0x20 | in_RAX & 0xffffffff) %

-                     (ulonglong)*(uint *)(param_1 * 2 + -0x73));

-  wil::details::

-  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  local_18 = __security_cookie ^ (ulonglong)auStack_48;

+  *param_3 = (void *)0x0;

+  local_20 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+              *)0x0;

+  local_28 = operator_new(0xd0,&std::nothrow);

+  this = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+          *)0x0;

+  if (local_28 != (RegDataDrivenCommand *)0x0) {

+    pRVar2 = (RegDataDrivenCommand *)

+             RegDataDrivenCommand::RegDataDrivenCommand

+                       (local_28,(IUnknown *)0x0,(IAssociationElement *)0x0);

+    Microsoft::WRL::ComPtr<RegDataDrivenCommand>::Attach

+              ((ComPtr<RegDataDrivenCommand> *)&local_20,pRVar2);

+    local_28 = (RegDataDrivenCommand *)0x0;

+    this = local_20;

+  }

+  Microsoft::WRL::Details::

+  MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

   ::

-  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

-            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

-              *)&stack0x00000028);

-  return uVar1;

+  ~MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

+            ((MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

+              *)&local_28);

+  if (this == (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+               *)0x0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x391,"onecoreuap\\shell\\windows.storage\\ftcommands.cpp",-0x7ff8fff2)

+    ;

+    return -0x7ff8fff2;

+  }

+  *param_3 = (void *)0x0;

+  iVar1 = InlineIsEqualGUID(param_2,&_GUID_00000000_0000_0000_c000_000000000046);

+  if ((iVar1 == 0) && (iVar1 = InlineIsEqualGUID(), iVar1 == 0)) {

+    iVar1 = InlineIsEqualGUID();

+    if (iVar1 == 0) {

+      lVar3 = Microsoft::WRL::Details::

+              ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+              ::CanCastTo((ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+                           *)(this + 8),param_2,param_3,param_4);

+      if (lVar3 < 0) goto LAB_0;

+    }

+    else {

+      *param_3 = this;

+      lVar3 = 0;

+    }

+    (**(code **)(*(longlong *)*param_3 + 8))(*param_3);

+  }

+  else {

+    *param_3 = this;

+    (**(code **)(*(longlong *)this + 8))(this);

+    lVar3 = 0;

+  }

+LAB_0:

+  if (lVar3 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x392,"onecoreuap\\shell\\windows.storage\\ftcommands.cpp",lVar3);

+  }

+  else {

+    lVar3 = 0;

+  }

+  Microsoft::WRL::Details::

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  ::Release(this);

+  return lVar3;

 }
```

## `SHFastDeleteFile`  (modified)

```diff
--- SHFastDeleteFile
+++ SHFastDeleteFile
@@ -1,16 +1,90 @@
 

-void SHFastDeleteFile(void)

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+

+uint SHFastDeleteFile(LPCWSTR param_1,int param_2)

 

 {

-  byte *pbVar1;

-  code *pcVar2;

-  byte unaff_BL;

-  undefined7 unaff_00000019;

+  int iVar1;

+  uint uVar2;

+  undefined1 auStack_d8 [32];

+  undefined4 local_b8;

+  undefined4 local_b0;

+  int local_a8 [2];

+  HANDLE local_a0;

+  undefined8 local_98;

+  undefined8 uStack_90;

+  undefined8 local_88;

+  undefined8 uStack_80;

+  undefined4 local_78;

+  undefined4 local_74;

+  undefined8 local_70;

+  undefined8 *local_68;

+  undefined4 local_60;

+  undefined4 local_5c;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  undefined8 local_48;

+  undefined8 uStack_40;

+  undefined8 local_38;

+  undefined8 uStack_30;

+  ulonglong local_28;

   

-  pbVar1 = (byte *)(CONCAT71(unaff_00000019,unaff_BL) + -0x3d);

-  *pbVar1 = *pbVar1 & unaff_BL;

-  pcVar2 = (code *)swi(3);

-  (*pcVar2)();

-  return;

+  local_28 = __security_cookie ^ (ulonglong)auStack_d8;

+  if (param_2 != 0) {

+    local_a0 = (HANDLE)0xffffffffffffffff;

+    local_48 = 0;

+    uStack_40 = 0;

+    local_98 = 0;

+    uStack_90 = 0;

+    local_88 = 0;

+    uStack_80 = 0;

+    iVar1 = RtlDosPathNameToRelativeNtPathName_U_WithStatus(0,&local_48,0,&local_98);

+    if (-1 < iVar1) {

+      local_74 = 0;

+      local_38 = 0;

+      uStack_30 = 0;

+      local_5c = 0;

+      if ((short)local_98 == 0) {

+        local_68 = &local_48;

+        local_88 = 0;

+      }

+      else {

+        local_68 = &local_98;

+      }

+      local_b0 = 0x5040;

+      local_78 = 0x30;

+      local_60 = 0x40;

+      local_58 = 0;

+      uStack_50 = 0;

+      local_b8 = 4;

+      local_70 = local_88;

+      iVar1 = NtOpenFile(&local_a0,0x10000,&local_78,&local_38);

+      RtlReleaseRelativeName(&local_98);

+      RtlFreeUnicodeString(&local_48);

+      uVar2 = (uint)(iVar1 == -0x3fffffaa);

+      if (iVar1 != -0x3fffffaa) {

+        if (iVar1 < 0) goto LAB_0;

+        local_a8[0] = 0;

+        iVar1 = ShouldSetDeleteDisposition(local_a0,local_a8);

+        if (iVar1 == 0) {

+          uVar2 = 1;

+          iVar1 = Feature_61138026__private_IsEnabledDeviceUsageNoInline();

+          if ((iVar1 != 0) && (local_a8[0] != 0)) {

+            TryUpgradeToPosixDelete(local_a0);

+          }

+        }

+        else {

+          uVar2 = SetFileDeleteDisposition(local_a0);

+        }

+        CloseHandle(local_a0);

+      }

+      if (uVar2 != 0) {

+        return uVar2;

+      }

+    }

+  }

+LAB_0:

+  uVar2 = DeleteFileW(param_1);

+  return uVar2;

 }
```

## `CalculateShallowFolderEnumerationState`  (modified)

```diff
--- CalculateShallowFolderEnumerationState
+++ CalculateShallowFolderEnumerationState
@@ -1,13 +1,399 @@
+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* bool __cdecl CalculateShallowFolderEnumerationState(struct FolderEnumerationData & __ptr64,class

+   StateEnumerationLimits * __ptr64,struct FolderEnumerationState & __ptr64,class std::list<struct

+   FolderEnumerationData,class std::allocator<struct FolderEnumerationData> > & __ptr64) */

 

 bool __cdecl

 CalculateShallowFolderEnumerationState

           (FolderEnumerationData *param_1,StateEnumerationLimits *param_2,

           FolderEnumerationState *param_3,

           list<FolderEnumerationData,std::allocator<FolderEnumerationData>_> *param_4)

 

 {

-  bool in_AL;

+  FolderEnumerationState *pFVar1;

+  longlong lVar2;

+  undefined8 *puVar3;

+  ulonglong uVar4;

+  StateEnumerationLimits *pSVar5;

+  list<FolderEnumerationData,std::allocator<FolderEnumerationData>_> *plVar6;

+  char cVar7;

+  bool bVar8;

+  int iVar9;

+  PrimarySyncState PVar10;

+  PrimarySyncState PVar11;

+  DWORD dwErrCode;

+  longlong *plVar12;

+  uint uVar13;

+  EssentialProps *pEVar14;

+  uint *puVar15;

+  ushort *puVar16;

+  SyncAvailabilityFlags SVar17;

+  uint uVar18;

+  uint uVar19;

+  SyncAvailabilityFlags SVar20;

+  undefined1 uVar21;

+  PrimarySyncState PVar22;

+  EssentialProps *unaff_retaddr;

+  undefined1 auStackY_398 [32];

+  DisablePlaceholderCompatMode local_368;

+  undefined1 local_367;

+  char local_364;

+  undefined1 local_363;

+  uint local_360;

+  SyncAvailabilityFlags local_35c;

+  uint local_358;

+  int local_354;

+  undefined1 local_350;

+  ulonglong local_348;

+  FolderEnumerationData *local_340;

+  ushort *local_338;

+  undefined1 local_330;

+  undefined4 local_32f;

+  undefined2 local_32b;

+  undefined1 local_329;

+  StateEnumerationLimits *local_328;

+  list<FolderEnumerationData,std::allocator<FolderEnumerationData>_> *local_320;

+  uint local_310;

+  uint uStack_30c;

+  list<FolderEnumerationData,std::allocator<FolderEnumerationData>_> *local_300;

+  undefined8 local_2f8;

+  uint local_2e8 [9];

+  uint local_2c4;

+  ushort local_2bc;

+  short local_2ba;

+  short local_2b8;

+  __int64 local_98 [4];

+  ushort *local_78;

+  LARGE_INTEGER local_70;

+  EssentialProps *local_68;

+  LARGE_INTEGER local_60;

+  ulonglong local_58;

   

-  return in_AL;

+  local_58 = __security_cookie ^ (ulonglong)auStackY_398;

+  local_368 = (DisablePlaceholderCompatMode)0x0;

+  local_340 = param_1;

+  local_328 = param_2;

+  local_320 = param_4;

+  cVar7 = RtlQueryThreadPlaceholderCompatibilityMode();

+  if (cVar7 != '\x02') {

+    local_367 = RtlSetThreadPlaceholderCompatibilityMode(2);

+    local_368 = (DisablePlaceholderCompatMode)0x1;

+  }

+  memset(local_2e8,0,0x268);

+  local_68 = (EssentialProps *)0x0;

+  iVar9 = CEnumFiles_CreateInstance(0,&_GUID_4e31e71d_945b_471d_88a9_061b207facaa,&local_68);

+  if (iVar9 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x212,"onecoreuap\\shell\\windows.storage\\syncstate.cpp",iVar9);

+  }

+  puVar15 = *(uint **)param_1;

+  iVar9 = (**(code **)(*(longlong *)local_68 + 0x20))(local_68,puVar15,local_2e8);

+  if (iVar9 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x214,"onecoreuap\\shell\\windows.storage\\syncstate.cpp",iVar9);

+  }

+  local_364 = '\x01';

+  pEVar14 = unaff_retaddr;

+  do {

+    uVar18 = local_2e8[0];

+    SVar20 = 3;

+    uVar19 = 0;

+    if (iVar9 != 0) {

+      if ((local_364 != '\0') && (local_340[8] != (FolderEnumerationData)0x0)) {

+        PVar22 = *(PrimarySyncState *)(param_3 + 4);

+        if ((0xd < (int)PVar22) &&

+           ((*(undefined4 *)(param_3 + 4) = 0xd, PVar22 != 0xd &&

+            (bVar8 = CloudSyncStateTelemetry::IsEnabled((uchar)pEVar14,(__uint64)puVar15), bVar8))))

+        {

+          wil::details::static_lazy<CloudSyncStateTelemetry>::get

+                    ((static_lazy<CloudSyncStateTelemetry> *)pEVar14,

+                     <lambda_1305fb88a4554f9da3f78f3fa403ef92>::<lambda_invoker_cdecl>);

+          CloudSyncStateTelemetry::LogUpgradedFolderEnumerationState_

+                    ((CloudSyncStateTelemetry *)pEVar14,&local_2bc,local_98[0],PVar22,

+                     *(PrimarySyncState *)(param_3 + 4));

+        }

+      }

+      if (local_68 != (EssentialProps *)0x0) {

+        (**(code **)(*(longlong *)local_68 + 0x10))();

+      }

+      if (local_368 != (DisablePlaceholderCompatMode)0x0) {

+        RtlSetThreadPlaceholderCompatibilityMode(local_367);

+      }

+      return true;

+    }

+    if ((local_2bc == 0x2e) && ((local_2ba == 0 || ((local_2b8 == 0 && (local_2ba == 0x2e)))))) {

+      bVar8 = true;

+    }

+    else {

+      bVar8 = false;

+    }

+    if (!bVar8) {

+      local_78 = (ushort *)0x0;

+      uVar21 = 0;

+      local_363 = 0;

+      local_360 = local_2e8[0];

+      local_35c = 0;

+      local_310 = CfGetPlaceholderStateFromAttributeTag

+                            (local_2e8[0],-(uint)((local_2e8[0] & 0x400) != 0) & local_2c4);

+      puVar16 = local_78;

+      uVar13 = uVar18 & 0x180000;

+      if (uVar13 != 0) {

+        if (uVar13 == 0x80000) {

+          uVar19 = 1;

+        }

+        else {

+          uVar19 = (uVar13 != 0x100000) + 2;

+        }

+      }

+      uVar13 = local_310 & 0x10;

+      SVar17 = 0;

+      if ((uVar19 != 3) && (local_35c = 1, SVar17 = 1, uVar19 == 1)) {

+        local_35c = SVar20;

+        SVar17 = SVar20;

+      }

+      if ((uVar13 == 0) && ((uVar18 & 0x10) == 0)) {

+        if (uVar19 != 2) {

+          if (uVar19 == 3) goto LAB_0;

+          local_35c = SVar17 | 4;

+        }

+LAB_1:

+        if ((local_310 & 8) == 0) {

+          SVar20 = (local_310 & 1 ^ 1) * 2 + 3;

+        }

+        else if (((uVar19 - 1 & 0xfffffffd) == 0) && (uVar13 != 0)) {

+          SVar20 = 4;

+        }

+        else if (uVar19 == 2) {

+          if (uVar13 != 0) goto LAB_2;

+          if ((uVar18 & 0x10) != 0) goto LAB_3;

+        }

+        else if (uVar13 == 0) {

+          if (uVar19 == 1) {

+            SVar20 = 0xf;

+          }

+          else {

+LAB_3:

+            SVar20 = 0xe;

+          }

+        }

+        else {

+LAB_2:

+          SVar20 = 7;

+        }

+      }

+      else {

+        if ((uVar19 != 3) || (local_35c = SVar17, uVar13 != 0)) goto LAB_1;

+LAB_0:

+        SVar20 = 6;

+      }

+      local_348 = (ulonglong)uVar19;

+      uStack_30c = uVar19;

+      uVar13 = local_310;

+      if (((param_3[1] != (FolderEnumerationState)0x0) && (uVar19 != 3)) &&

+         ((local_2e8[0] & 0x100) == 0)) {

+        *param_3 = (FolderEnumerationState)0x0;

+        pFVar1 = param_3 + 4;

+        PVar22 = *(PrimarySyncState *)pFVar1;

+        local_70.s.LowPart = PVar22;

+        local_364 = '\0';

+        local_358 = 0;

+        local_354 = 0x10;

+        local_350 = 0;

+        if (local_78 != (ushort *)0x0) {

+          dwErrCode = GetLastError();

+          LocalFree(puVar16);

+          SetLastError(dwErrCode);

+        }

+        local_78 = (ushort *)0x0;

+        puVar16 = &local_2bc;

+        iVar9 = PathAllocCombine(*(undefined8 *)local_340,puVar16,1);

+        uVar13 = local_310;

+        if (iVar9 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x228,"onecoreuap\\shell\\windows.storage\\syncstate.cpp",iVar9);

+        }

+        uVar18 = local_310 & 4;

+        pEVar14 = unaff_retaddr;

+        if (uVar18 != 0) {

+          pEVar14 = (EssentialProps *)&local_358;

+          puVar16 = local_78;

+          EssentialProps::ReadPropertiesIfNeeded(pEVar14,local_78);

+          if (local_354 != 0x10) {

+            if (local_354 == 1) {

+              PVar22 = *(PrimarySyncState *)pFVar1;

+              if (10 < (int)PVar22) {

+                *(PrimarySyncState *)pFVar1 = 10;

+              }

+LAB_4:

+              local_70.s.LowPart = PVar22;

+            }

+            else if (local_354 == 2) {

+              PVar22 = *(PrimarySyncState *)pFVar1;

+              if (0xb < (int)PVar22) {

+                *(PrimarySyncState *)pFVar1 = 0xb;

+              }

+              goto LAB_4;

+            }

+            if (PVar22 != *(PrimarySyncState *)pFVar1) {

+              puVar16 = (ushort *)local_98;

+              pEVar14 = (EssentialProps *)&local_2bc;

+              CloudSyncStateTelemetry::

+              LogUpgradedFolderEnumerationState<unsigned_short_(&___ptr64)[260],__int64&___ptr64,PrimarySyncState&___ptr64,PrimarySyncState&___ptr64>

+                        ((ushort *)pEVar14,(__int64 *)puVar16,(PrimarySyncState *)&local_70.QuadPart

+                         ,(PrimarySyncState *)pFVar1);

+            }

+          }

+        }

+        if (((uVar13 & 0x10) == 0) || (uVar21 = local_363, (local_360 & 0x10) == 0)) {

+          if (uVar19 == 2) {

+LAB_5:

+            uVar21 = 1;

+          }

+          else {

+            if (uVar19 == 0) {

+              if (uVar18 != 0) {

+                pEVar14 = (EssentialProps *)&local_358;

+                puVar16 = local_78;

+                EssentialProps::ReadPropertiesIfNeeded(pEVar14,local_78);

+              }

+              if ((local_358 & 3) == 0) goto LAB_5;

+            }

+            uVar21 = 0;

+          }

+        }

+        PVar22 = *(PrimarySyncState *)pFVar1;

+        uVar18 = local_360;

+        if (((SVar20 == 3) || (SVar20 == 4)) || (SVar20 == 5)) {

+          PVar11 = 0xc;

+        }

+        else if (SVar20 == 7) {

+          PVar11 = 0xd;

+        }

+        else {

+          if (SVar20 != 0xe) goto LAB_6;

+          PVar11 = 0xe;

+        }

+        PVar10 = PVar22;

+        if ((int)PVar11 < (int)PVar22) {

+          *(PrimarySyncState *)pFVar1 = PVar11;

+          PVar10 = PVar11;

+        }

+        if ((PVar22 != PVar10) &&

+           (bVar8 = CloudSyncStateTelemetry::IsEnabled((uchar)pEVar14,(__uint64)puVar16),

+           uVar18 = local_360, bVar8)) {

+          wil::details::static_lazy<CloudSyncStateTelemetry>::get

+                    ((static_lazy<CloudSyncStateTelemetry> *)pEVar14,

+                     <lambda_1305fb88a4554f9da3f78f3fa403ef92>::<lambda_invoker_cdecl>);

+          CloudSyncStateTelemetry::LogUpgradedFolderEnumerationState_

+                    ((CloudSyncStateTelemetry *)pEVar14,&local_2bc,local_98[0],PVar22,

+                     *(PrimarySyncState *)pFVar1);

+          uVar18 = local_360;

+        }

+      }

+LAB_6:

+      uVar4 = local_348;

+      if (param_3[2] != (FolderEnumerationState)0x0) {

+        ModifySyncAvailabilityFlags((SyncAvailabilityFlags *)(param_3 + 8),local_35c);

+      }

+      bVar8 = FolderEnumerationState::QueryContinue(param_3);

+      pSVar5 = local_328;

+      if (!bVar8) {

+LAB_7:

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_78);

+        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                  ((CComPtrBase<IKnownFolderManager> *)&local_68);

+        Windows::Internal::FilePlaceholderHelper::DisablePlaceholderCompatMode::

+        ~DisablePlaceholderCompatMode(&local_368);

+        return false;

+      }

+      if ((local_328 != (StateEnumerationLimits *)0x0) &&

+         (*(uint *)local_328 = *(uint *)local_328 + 1,

+         *(uint *)(local_328 + 0x10) <= *(uint *)local_328)) {

+        local_70.QuadPart = 0;

+        QueryPerformanceCounter(&local_70);

+        local_70.QuadPart = local_70.QuadPart - *(longlong *)(pSVar5 + 8);

+        local_60.QuadPart = 0;

+        QueryPerformanceFrequency(&local_60);

+        if (local_70.QuadPart / (local_60.QuadPart / 1000) <= *(longlong *)(pSVar5 + 0x18)) {

+          param_3[3] = (FolderEnumerationState)0x0;

+          if (local_78 != (ushort *)0x0) {

+            LocalFree(local_78);

+          }

+          if (local_68 != (EssentialProps *)0x0) {

+            (**(code **)(*(longlong *)local_68 + 0x10))();

+          }

+          if (local_368 == (DisablePlaceholderCompatMode)0x0) {

+            return false;

+          }

+          RtlSetThreadPlaceholderCompatibilityMode(local_367);

+          return false;

+        }

+      }

+      if (((int)uVar4 != 3) && ((local_2e8[0] & 0x10) != 0)) {

+        if (((uVar13 & 0x10) == 0) || ((uVar18 & 0x10) == 0)) {

+          puVar16 = local_78;

+          if (local_78 == (ushort *)0x0) {

+            wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_78);

+            iVar9 = PathAllocCombine(*(undefined8 *)local_340,&local_2bc,1);

+            puVar16 = local_78;

+            if (iVar9 < 0) {

+                    /* WARNING: Subroutine does not return */

+              wil::details::in1diag3::_Throw_Hr

+                        (unaff_retaddr,0x279,"onecoreuap\\shell\\windows.storage\\syncstate.cpp",

+                         iVar9);

+            }

+          }

+          plVar6 = local_320;

+          local_78 = (ushort *)0x0;

+          local_32f = 0;

+          local_32b = 0;

+          local_329 = 0;

+          lVar2 = *(longlong *)local_320;

+          local_338 = puVar16;

+          local_330 = uVar21;

+          if (*(longlong *)(local_320 + 8) == 0x7ffffffffffffff) {

+            std::_Xlength_error("list too long");

+            goto LAB_7;

+          }

+          local_300 = local_320;

+          local_2f8 = 0;

+          plVar12 = std::_Allocate<16,std::_Default_allocate_traits,0>(0x20);

+          plVar12[2] = (longlong)puVar16;

+          local_338 = (ushort *)0x0;

+          *(undefined1 *)(plVar12 + 3) = uVar21;

+          *(longlong *)(plVar6 + 8) = *(longlong *)(plVar6 + 8) + 1;

+          puVar3 = *(undefined8 **)(lVar2 + 8);

+          *plVar12 = lVar2;

+          plVar12[1] = (longlong)puVar3;

+          local_2f8 = 0;

+          *(longlong **)(lVar2 + 8) = plVar12;

+          *puVar3 = plVar12;

+        }

+        else {

+          param_3[3] = (FolderEnumerationState)0x0;

+        }

+      }

+      if (local_78 != (ushort *)0x0) {

+        LocalFree(local_78);

+      }

+    }

+    puVar15 = local_2e8;

+    pEVar14 = local_68;

+    iVar9 = (**(code **)(*(longlong *)local_68 + 0x38))();

+  } while( true );

 }
```

## `MarkMRUBootstrapPerformed`  (modified)

```diff
--- MarkMRUBootstrapPerformed
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_IntelligentScopeExpansion>::__private_IsEnabled
@@ -1,25 +1,21 @@
 

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_IntelligentScopeExpansion>::__private_IsEnabled(enum

+   wil::ReportingKind) __ptr64 */

 

-void MarkMRUBootstrapPerformed(void)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_IntelligentScopeExpansion>::__private_IsEnabled

+          (FeatureImpl<__WilFeatureTraits_Feature_IntelligentScopeExpansion> *this,

+          ReportingKind param_1)

 

 {

-  ulong uVar1;

-  void *unaff_retaddr;

-  undefined1 auStackY_48 [32];

-  undefined4 local_18 [2];

-  ulonglong local_10;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res18;

   

-  local_10 = __security_cookie ^ (ulonglong)auStackY_48;

-  local_18[0] = 1;

-  uVar1 = SHSetValueW((HKEY)0xffffffff80000001,

-                      L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\IntelligentScopeExpansion"

-                      ,L"HasPerformedMRUBootstrap",4,local_18,4);

-  if (uVar1 != 0) {

-    wil::details::in1diag3::_Log_Win32

-              (unaff_retaddr,0x737,"onecoreuap\\shell\\windows.storage\\recdocs.cpp",uVar1);

-  }

-  DAT_0 = 2;

-  return;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res18 & 1),in_R8D,in_R9);

+  Feature_IntelligentScopeExpansion__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res18 & 1);

 }
```

## `ClearMRUBootstrapMarkerIfPresent`  (modified)

```diff
--- ClearMRUBootstrapMarkerIfPresent
+++ NotifyHomeFolderUpdated
@@ -1,39 +1,21 @@
 

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-/* WARNING: Type propagation algorithm not settling */

+/* void __cdecl NotifyHomeFolderUpdated(enum HomeUpdateDirReason) */

 

-void ClearMRUBootstrapMarkerIfPresent(void)

+void __cdecl NotifyHomeFolderUpdated(HomeUpdateDirReason param_1)

 

 {

-  char cVar1;

-  LSTATUS LVar2;

-  ulong uVar3;

-  void *unaff_retaddr;

-  undefined1 auStackY_58 [32];

-  DWORD local_18 [2];

-  ulonglong local_10;

+  bool bVar1;

+  HomeUpdateDirReason local_res10 [6];

   

-  cVar1 = DAT_0;

-  local_10 = __security_cookie ^ (ulonglong)auStackY_58;

-  LOCK();

-  DAT_0 = 1;

-  UNLOCK();

-  if (cVar1 == '\0') {

-    local_18[1] = 0;

-    local_18[0] = 4;

-    LVar2 = RegGetValueW((HKEY)0xffffffff80000001,

-                         L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\IntelligentScopeExpansion"

-                         ,L"HasPerformedMRUBootstrap",0x18,(LPDWORD)0x0,local_18 + 1,local_18);

-    if (LVar2 == 0) {

-      uVar3 = SHDeleteValueW((HKEY)0xffffffff80000001,

-                             L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\IntelligentScopeExpansion"

-                             ,L"HasPerformedMRUBootstrap");

-      if (uVar3 != 0) {

-        wil::details::in1diag3::_Log_Win32

-                  (unaff_retaddr,0x74b,"onecoreuap\\shell\\windows.storage\\recdocs.cpp",uVar3);

-      }

-    }

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>

+                               *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>::GetImpl(void)'

+                                  ::__l2::impl);

+  if (bVar1) {

+    local_res10[0] = param_1;

+    FileExplorerTelemetry::NotifyHomeFolderUpdated<unsigned_int>(local_res10);

   }

+  SHChangeNotify(0x1000,5,L"shell:::{f874310e-b6b7-47dc-bc84-b9e6b38f5903}",(LPCVOID)0x0);

   return;

 }
```

## `_SetUserChoiceAndHash`  (modified)

```diff
--- _SetUserChoiceAndHash
+++ _SetUserChoiceAndHash
@@ -1,21 +1,144 @@
 

-/* WARNING: Control flow encountered bad instruction data */

+/* long __cdecl _SetUserChoiceAndHash(unsigned short const * __ptr64,unsigned short const *

+   __ptr64,enum ASSOC_MAKE_DEFAULT_FLAGS,struct HKEY__ * __ptr64,unsigned short const * __ptr64) */

 

 long __cdecl

 _SetUserChoiceAndHash

           (ushort *param_1,ushort *param_2,ASSOC_MAKE_DEFAULT_FLAGS param_3,HKEY__ *param_4,

           ushort *param_5)

 

 {

-  byte in_AL;

-  undefined7 in_register_00000001;

-  char *unaff_RDI;

+  bool bVar1;

+  int iVar2;

+  void *unaff_retaddr;

+  ushort *local_res10;

+  HKEY__ *local_res20;

+  undefined8 local_68 [2];

+  undefined **local_58 [2];

+  ThreadFailureCallbackHolder local_48 [48];

   

-  *(byte *)CONCAT71(in_register_00000001,in_AL) =

-       *(char *)CONCAT71(in_register_00000001,in_AL) + in_AL;

-  *unaff_RDI = (*unaff_RDI - (char)((ulonglong)param_2 >> 8)) -

-               CARRY1(in_AL,(byte)((ulonglong)param_1 >> 8));

-                    /* WARNING: Bad instruction - Truncating control flow here */

-  halt_baddata();

+  local_58[0] = &PTR_NotifyFailure_1806edd78;

+  local_res10 = param_2;

+  local_res20 = param_4;

+  wil::details::ThreadFailureCallbackHolder::ThreadFailureCallbackHolder

+            (local_48,(IFailureCallback *)local_58,(CallContextInfo *)0x0,true);

+  local_res20 = (HKEY__ *)((ulonglong)local_res20 & 0xffffffffffffff00);

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation> *)

+                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AppDefaultHashRotation>::GetImpl(void)'

+                               ::__l2::impl);

+  if (bVar1) {

+    local_68[0] = 0;

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+           *)local_68);

+    iVar2 = SHGetUserSid();

+    if (iVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xbd,

+                 "onecoreuap\\shell\\lib\\userchoiceutil\\lib\\userchoiceutil.cpp",iVar2);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)local_68);

+      goto LAB_0;

+    }

+    bVar1 = wil::details::

+            FeatureImpl<__WilFeatureTraits_Feature_AppDefaultSkipVerifyBeforeMigration>::

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AppDefaultSkipVerifyBeforeMigration>

+                                 *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultSkipVerifyBeforeMigration>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AppDefaultSkipVerifyBeforeMigration>::GetImpl(void)'

+                                    ::__l2::impl);

+    if (bVar1) {

+      param_5 = (ushort *)((ulonglong)param_5 & 0xffffffffffffff00);

+      iVar2 = IsPendingMigration<<lambda_8ae475174ef77ae8879de97baf49958a>_>

+                        (local_68[0],&param_5,&local_res20);

+      if ((-1 < iVar2) && ((char)param_5 != '\0')) {

+        DefaultAssocTelemetry::SetUserChoiceBeforeMigration<unsigned_short_const*___ptr64&___ptr64>

+                  (&local_res10);

+      }

+    }

+    iVar2 = SetProgIdAndHash<<lambda_8ae475174ef77ae8879de97baf49958a>_>();

+    if (iVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xce,

+                 "onecoreuap\\shell\\lib\\userchoiceutil\\lib\\userchoiceutil.cpp",iVar2);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)local_68);

+      goto LAB_0;

+    }

+    if ((param_3 & 8) != 0) {

+      iVar2 = SetUserChoiceAndHash<<lambda_8ae475174ef77ae8879de97baf49958a>_>

+                        (0,0,local_68[0],param_1,param_2,&local_res20);

+      if (iVar2 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0xd4,

+                   "onecoreuap\\shell\\lib\\userchoiceutil\\lib\\userchoiceutil.cpp",iVar2);

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)local_68);

+        goto LAB_0;

+      }

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)local_68);

+  }

+  else {

+    param_5 = (ushort *)0x0;

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+           *)&param_5);

+    iVar2 = SHGetUserSid();

+    if (iVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xde,

+                 "onecoreuap\\shell\\lib\\userchoiceutil\\lib\\userchoiceutil.cpp",iVar2);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&param_5);

+      goto LAB_0;

+    }

+    iVar2 = SetUserChoiceAndHash<<lambda_8ae475174ef77ae8879de97baf49958a>_>

+                      (0,0,param_5,param_1,param_2,&local_res20);

+    if (iVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xe2,

+                 "onecoreuap\\shell\\lib\\userchoiceutil\\lib\\userchoiceutil.cpp",iVar2);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&param_5);

+      goto LAB_0;

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&param_5);

+  }

+  iVar2 = 0;

+LAB_0:

+  wil::details::ThreadFailureCallbackHolder::~ThreadFailureCallbackHolder(local_48);

+  return iVar2;

 }
```

## `ShouldShowUserDefaultsForCaller`  (modified)

```diff
--- ShouldShowUserDefaultsForCaller
+++ ShouldShowUserDefaultsForCaller
@@ -1,106 +1,37 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* bool __cdecl ShouldShowUserDefaultsForCaller(void) */

 

 bool __cdecl ShouldShowUserDefaultsForCaller(void)

 

 {

-  int iVar1;

-  BOOL BVar2;

-  long lVar3;

-  CLinkResolver *pCVar4;

-  long unaff_EBX;

-  longlong unaff_RBP;

-  CShellLink *unaff_RSI;

-  char unaff_DIL;

-  uint in_R8D;

-  SearchOptions unaff_R12D;

-  HWND__ *unaff_R13;

-  SLR_FLAGS unaff_R14D;

-  _TrkMendRestrictions in_stack_00000040;

+  bool bVar1;

+  int iVar2;

+  undefined1 auStack_38 [32];

+  ushort *local_18;

+  ulonglong local_10;

   

-  if (unaff_EBX < 0) {

-    if ((unaff_EBX != -0x7ff8fb39) && (unaff_EBX != -0x7fd90000)) {

-      iVar1 = CShellLink::_GetRelativePath(unaff_RSI,(ushort *)(unaff_RBP + 0x170),in_R8D);

-      if (iVar1 != 0) {

-        iVar1 = StrCmpIW((LPCWSTR)(unaff_RBP + 0x170),(LPCWSTR)&stack0x00000060);

-        if (iVar1 != 0) {

-          unaff_EBX = CShellLink::_SetPIDLPath

-                                (unaff_RSI,(_ITEMIDLIST_ABSOLUTE *)0x0,(ushort *)(unaff_RBP + 0x170)

-                                 ,9);

-        }

-      }

-    }

-    if (unaff_EBX < 0) {

-      if (((unaff_EBX != -0x7ff8fb39) && (unaff_EBX != -0x7fd90000)) && ((unaff_R14D & 1) == 0)) {

-        iVar1 = PathRetryRemovable(unaff_EBX,(ushort *)&stack0x00000060);

-        if (iVar1 != 0) {

-          unaff_EBX = CShellLink::_ResolveRemovable(unaff_RSI,unaff_R13,(ushort *)&stack0x00000060);

-          unaff_R12D = unaff_R12D & 0xfffffffe;

-        }

-      }

-      if (unaff_EBX < 0) {

-        if (((unaff_EBX != -0x7ff8fb39) && (unaff_EBX != -0x7fd90000)) &&

-           ((*(uint *)(unaff_RSI + 0x1f0) & 0x40000) != 0)) {

-          unaff_EBX = -0x7ff8fb39;

-        }

-        if (unaff_EBX < 0) {

-          if ((unaff_EBX != -0x7ff8fb39) && (unaff_EBX != -0x7fd90000)) {

-            pCVar4 = operator_new(0xa28,&std::nothrow);

-            if (pCVar4 == (CLinkResolver *)0x0) {

-              pCVar4 = (CLinkResolver *)0x0;

-            }

-            else {

-              pCVar4 = (CLinkResolver *)

-                       CLinkResolver::CLinkResolver

-                                 (pCVar4,unaff_RSI,unaff_R14D,in_stack_00000040,unaff_R12D,

-                                  *(ulong *)(unaff_RSI + 600),*(ushort **)(unaff_RSI + 0x1b8),

-                                  *(int *)(unaff_RSI + 0x1c0));

-            }

-            if (pCVar4 == (CLinkResolver *)0x0) {

-              unaff_EBX = -0x7ff8fff2;

-            }

-            else {

-              do {

-                iVar1 = CLinkResolver::Resolve

-                                  (pCVar4,unaff_R13,(ushort *)&stack0x00000060,

-                                   *(ushort **)(unaff_RSI + 0x118));

-                if (iVar1 == 1) {

-                  StringCchCopyW((ushort *)&stack0x00000060,0x104,(ushort *)(pCVar4 + 0x114));

-                  unaff_EBX = CShellLink::_SetPIDLPath

-                                        (unaff_RSI,(_ITEMIDLIST_ABSOLUTE *)0x0,

-                                         (ushort *)&stack0x00000060,9);

-                  goto LAB_0;

-                }

-                if (iVar1 != 5) {

-                  if ((iVar1 == 0x105) && ((unaff_R14D >> 9 & 1) != 0)) {

-                    unaff_EBX = -0x7fd8fefd;

-                  }

-                  else {

-                    unaff_EBX = -0x7ff8fb39;

-                  }

-                  goto LAB_0;

-                }

-                BVar2 = PathFileExistsW((LPCWSTR)&stack0x00000060);

-              } while (BVar2 == 0);

-              unaff_EBX = 0;

-LAB_0:

-              CBaseTreeWalkerCB::Release((CBaseTreeWalkerCB *)(pCVar4 + 8));

-            }

-          }

-          if ((unaff_EBX < 0) || (unaff_DIL != '\0')) goto LAB_1;

-        }

+  local_10 = __security_cookie ^ (ulonglong)auStack_38;

+  local_18 = (ushort *)0x0;

+  if (*(int *)((longlong)ProcessEnvironmentBlock + 0x2c0) != 0) {

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+           *)&local_18);

+    iVar2 = SHGetUserSid();

+    if (-1 < iVar2) {

+      bVar1 = IsLocalSystem(local_18);

+      if (!bVar1) {

+        bVar1 = true;

+        goto LAB_0;

       }

     }

   }

-  lVar3 = CShellLink::IsDirty(unaff_RSI + 0x18);

-  if ((lVar3 == 0) && ((unaff_R14D & 4) != 0)) {

-    iVar1 = CShellLink::_IsTargetAnotherLink(unaff_RSI);

-    if (iVar1 != 0) {

-      CShellLink::_SetPidl(unaff_RSI,(_ITEMIDLIST_ABSOLUTE *)0x0);

-    }

-    CShellLink::Save(unaff_RSI + 0x28,(ushort *)0x0,1);

+  bVar1 = false;

+LAB_0:

+  if (local_18 != (ushort *)0x0) {

+    LocalFree(local_18);

   }

-LAB_1:

-  return SUB41(unaff_EBX,0);

+  return bVar1;

 }
```

## `RenameItemHelper`  (modified)

```diff
--- RenameItemHelper
+++ RenameItemHelper
@@ -1,18 +1,274 @@
 

-/* [thunk]:public: virtual long __cdecl CAssocSyncRootShellElement::QueryInterface`adjustor{200}'

-   (struct _GUID const & __ptr64,void * __ptr64 * __ptr64) __ptr64 */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* long __cdecl RenameItemHelper(struct HWND__ * __ptr64,struct IUnknown * __ptr64,struct IShellItem

+   * __ptr64,unsigned short const * __ptr64,unsigned short const * __ptr64,unsigned short const *

+   __ptr64,unsigned long,enum FOLDER_ENUM_MODE,struct _ITEMID_CHILD * __ptr64 * __ptr64) */

 

 long __cdecl

 RenameItemHelper(HWND__ *param_1,IUnknown *param_2,IShellItem *param_3,ushort *param_4,

                 ushort *param_5,ushort *param_6,ulong param_7,FOLDER_ENUM_MODE param_8,

                 _ITEMID_CHILD **param_9)

 

 {

-  long lVar1;

+  bool bVar1;

+  int iVar2;

+  uint uVar3;

+  FileSpecType FVar4;

+  int iVar5;

+  BOOL BVar6;

+  HRESULT HVar7;

+  int iVar8;

+  ushort **ppuVar9;

+  HINSTANCE__ *pHVar10;

+  HINSTANCE hAppInst;

+  LPWSTR lpString1;

+  LPWSTR lpString2;

+  undefined8 uVar11;

+  LPCWSTR lpcText;

+  void *unaff_retaddr;

+  undefined1 auStackY_d8 [32];

+  undefined8 local_98;

+  LPWSTR local_90;

+  LPWSTR local_88;

+  ushort *local_80;

+  IShellItem *local_78;

+  IUnknown *local_70;

+  ushort *local_68;

+  HKEY local_60;

+  LPCWSTR local_58;

+  ulonglong local_50;

   

-  lVar1 = CAssocSyncRootShellElement::QueryInterface

-                    ((CAssocSyncRootShellElement *)(param_1 + -0x32),(_GUID *)param_2,

-                     &param_3->lpVtbl);

-  return lVar1;

+  local_50 = __security_cookie ^ (ulonglong)auStackY_d8;

+  local_80 = param_6;

+  if (param_9 != (_ITEMID_CHILD **)0x0) {

+    *param_9 = (_ITEMID_CHILD *)0x0;

+  }

+  local_98 = 0;

+  iVar8 = -0x7ff8fb39;

+  local_58 = (LPCWSTR)0x0;

+  local_78 = param_3;

+  local_70 = param_2;

+  local_68 = param_4;

+  ppuVar9 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_58);

+  iVar2 = PathAllocCombine(param_4,param_5,0);

+  if (iVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x6b3,

+               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\shapi.cpp",iVar2);

+    iVar8 = iVar2;

+    goto LAB_0;

+  }

+  wil::

+  make_unique_string_nothrow<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>

+            ((ushort *)&local_90,(__uint64)param_6);

+  if (local_90 == (LPWSTR)0x0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x6b6,

+               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\shapi.cpp",-0x7ff8fff2);

+LAB_1:

+    iVar8 = -0x7ff8fff2;

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_90);

+  }

+  else {

+    uVar3 = PathCleanupSpec((LPCWSTR)param_4,local_90);

+    if (uVar3 == 0) {

+      uVar11 = 0xffffffffffffffff;

+      wil::

+      make_unique_string_nothrow<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>

+                ((ushort *)&local_88,(__uint64)param_6);

+      if (local_88 == (LPWSTR)0x0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x6ce,

+                   "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\shapi.cpp",-0x7ff8fff2

+                  );

+LAB_2:

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_88);

+        goto LAB_1;

+      }

+      PathRemoveBlanksW(local_88);

+      wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>::

+      ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles> *)

+                  &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>::GetImpl(void)'

+                   ::__l2::impl,true,(ReportingKind)CONCAT71((int7)((ulonglong)uVar11 >> 8),2),

+                  (__uint64)ppuVar9);

+      FVar4 = GetFileSpecType((ushort *)local_88);

+      if (FVar4 == 0) {

+        if (param_1 != (HWND__ *)0x0) {

+          bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53375151>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ID53375151> *)

+                                      &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53375151>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ID53375151>::GetImpl(void)'

+                                       ::__l2::impl);

+          if (bVar1) {

+            pHVar10 = Shell32Instance::get((Shell32Instance *)&local_98);

+            uVar11 = 0x101b;

+LAB_3:

+            MessageBoxHelper::ShellMessageBoxTextScaled<>(pHVar10,param_1,uVar11,0x1034);

+          }

+          else {

+            hAppInst = Shell32Instance::get((Shell32Instance *)&local_98);

+            lpcText = (LPCWSTR)0x101b;

+LAB_4:

+            ShellMessageBoxW(hAppInst,param_1,lpcText,(LPCWSTR)0x1034,0x10);

+          }

+        }

+      }

+      else {

+        if (FVar4 == 1) {

+          uVar11 = 0;

+          wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>::

+          ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles> *)

+                      &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>::GetImpl(void)'

+                       ::__l2::impl,true,0,(__uint64)ppuVar9);

+          wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>::

+          ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles> *)

+                      &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AllowRenameOfExtensionOnlyFiles>::GetImpl(void)'

+                       ::__l2::impl,true,(ReportingKind)CONCAT71((int7)((ulonglong)uVar11 >> 8),1),

+                      (__uint64)ppuVar9);

+        }

+        iVar2 = 6;

+        lpString1 = PathFindExtensionW((LPCWSTR)param_5);

+        if (*lpString1 != L'\0') {

+          lpString2 = PathFindExtensionW(local_88);

+          iVar5 = CompareStringW(0x7f,1,lpString1,-1,lpString2,-1);

+          if (iVar5 != 2) {

+            local_60 = (HKEY)0x0;

+            BVar6 = PathIsDirectoryW(local_58);

+            if (BVar6 == 0) {

+              wil::details::

+              unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>

+              ::reset((unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>

+                       *)&local_60,(HKEY__ *)0x0);

+              HVar7 = AssocQueryKeyW(0,ASSOCKEY_SHELLEXECCLASS,lpString1,(LPCWSTR)0x0,&local_60);

+              if ((-1 < HVar7) && (param_1 != (HWND__ *)0x0)) {

+                bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53375151>::

+                        __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ID53375151> *)

+                                            &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53375151>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ID53375151>::GetImpl(void)'

+                                             ::__l2::impl);

+                if (bVar1) {

+                  pHVar10 = Shell32Instance::get((Shell32Instance *)&local_98);

+                  iVar2 = MessageBoxHelper::ShellMessageBoxTextScaled<>

+                                    (pHVar10,param_1,0x1010,0x1034);

+                }

+                else {

+                  pHVar10 = Shell32Instance::get((Shell32Instance *)&local_98);

+                  iVar2 = ShellMessageBoxW(pHVar10,param_1,(LPCWSTR)0x1010,(LPCWSTR)0x1034,0x34);

+                }

+              }

+            }

+            wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+            ::

+            ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                      ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_60);

+            if (iVar2 != 6) goto LAB_5;

+          }

+        }

+        iVar8 = RenameWithOperationsEngine

+                          (param_1,local_70,local_78,local_80,param_7,param_8,param_9);

+        if (iVar8 < 0) {

+          if ((iVar8 == -0x7ff8fffe) && (param_1 != (HWND__ *)0x0)) {

+            bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53375151>::

+                    __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ID53375151> *)

+                                        &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53375151>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ID53375151>::GetImpl(void)'

+                                         ::__l2::impl);

+            if (!bVar1) {

+              hAppInst = Shell32Instance::get((Shell32Instance *)&local_98);

+              lpcText = (LPCWSTR)0x1024;

+              goto LAB_4;

+            }

+            pHVar10 = Shell32Instance::get((Shell32Instance *)&local_98);

+            uVar11 = 0x1024;

+            goto LAB_3;

+          }

+        }

+        else {

+          local_60 = (HKEY)0x0;

+          ppuVar9 = wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           *)&local_60);

+          PathAllocCombine(local_68,local_88,0,ppuVar9);

+          if (local_60 == (HKEY)0x0) {

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,0x72b,

+                       "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\shapi.cpp",

+                       -0x7ff8fff2);

+            wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ::

+            ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_60);

+            goto LAB_2;

+          }

+          CheckShortcutRename((ushort *)local_58,(ushort *)local_60);

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+          ::

+          ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_60);

+        }

+      }

+LAB_5:

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&local_88);

+    }

+    else if (param_1 != (HWND__ *)0x0) {

+      bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53375151>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_ID53375151> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53375151>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ID53375151>::GetImpl(void)'

+                          ::__l2::impl);

+      if (bVar1) {

+        pHVar10 = Shell32Instance::get((Shell32Instance *)&local_98);

+        MessageBoxHelper::ShellMessageBoxTextScaled<>

+                  (pHVar10,param_1,(-(uint)((uVar3 & 8) != 0) & 0x86f) + 0x100d,0x1034);

+      }

+      else {

+        pHVar10 = Shell32Instance::get((Shell32Instance *)&local_98);

+        ShellMessageBoxW(pHVar10,param_1,

+                         (LPCWSTR)((ulonglong)(-(uint)((uVar3 & 8) != 0) & 0x86f) + 0x100d),

+                         (LPCWSTR)0x1034,0x10);

+      }

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_90);

+  }

+LAB_0:

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_58);

+  wil::details::

+  unique_storage<wil::details::resource_policy<HINSTANCE__*___ptr64,int_(__cdecl*)(HINSTANCE__*___ptr64),&int___cdecl_FreeMUILibrary(struct_HINSTANCE__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HINSTANCE__*___ptr64,HINSTANCE__*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<HINSTANCE__*___ptr64,int_(__cdecl*)(HINSTANCE__*___ptr64),&int___cdecl_FreeMUILibrary(struct_HINSTANCE__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HINSTANCE__*___ptr64,HINSTANCE__*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<HINSTANCE__*___ptr64,int_(__cdecl*)(HINSTANCE__*___ptr64),&int___cdecl_FreeMUILibrary(struct_HINSTANCE__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HINSTANCE__*___ptr64,HINSTANCE__*___ptr64,0,std::nullptr_t>_>

+              *)&local_98);

+  return iVar8;

 }
```

## `AddToAutoDestList`  (modified)

```diff
--- AddToAutoDestList
+++ AddToAutoDestList
@@ -1,108 +1,150 @@
 

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-/* WARNING: Variable defined which should be unmapped: param_5 */

+/* long __cdecl AddToAutoDestList(unsigned long,struct _ITEMIDLIST_ABSOLUTE const * __ptr64,unsigned

+   short const * __ptr64,unsigned short const * __ptr64,int * __ptr64,unsigned int,enum

+   MFU_FOLDER_ACTION,enum RecentDocsFlags) */

 

 long __cdecl

 AddToAutoDestList(ulong param_1,_ITEMIDLIST_ABSOLUTE *param_2,ushort *param_3,ushort *param_4,

                  int *param_5,uint param_6,MFU_FOLDER_ACTION param_7,RecentDocsFlags param_8)

 

 {

-  int iVar1;

-  HStringReference *pHVar2;

-  ushort *unaff_RBX;

-  longlong unaff_RBP;

-  ushort *unaff_RDI;

-  ushort *unaff_R12;

-  longlong unaff_R13;

-  _ITEMIDLIST_ABSOLUTE *unaff_R14;

-  ushort *unaff_R15;

-  char in_stack_00000070;

-  ulong in_stack_00000074;

-  uint in_stack_00000078;

-  int in_stack_0000007c;

+  bool bVar1;

+  int iVar2;

+  HRESULT HVar3;

+  long lVar4;

+  HRESULT HVar5;

+  ushort **ppuVar6;

+  wchar_t *pwVar7;

+  MFU_FOLDER_ACTION MVar8;

+  undefined1 auStackY_2f8 [32];

+  bool local_2b8 [8];

+  ushort *local_2b0;

+  IShellItem2 *local_2a8;

+  IShellItem *local_2a0;

+  SFGAOF local_298 [2];

+  IShellItem *local_290;

+  LPVOID local_288;

+  ushort *local_280;

+  undefined8 local_278;

+  undefined8 local_270;

+  ushort local_268 [264];

+  ulonglong local_58;

   

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

-            ((ComPtr<IQuerySource> *)(ulonglong)((int)unaff_RBP + 0x38));

-  *(undefined8 *)(unaff_RBP + -0x10) = 0;

-  *(undefined8 *)(unaff_RBP + -8) = 0;

-  CRecentDocsHelper::AddToRecentDocs

-            ((CRecentDocsHelper *)(unaff_RBP + -0x20),unaff_R14,unaff_RDI,unaff_RBX,unaff_R15,

-             unaff_R12,*(ushort **)(unaff_RBP + -0x60),*(ushort **)(unaff_RBP + -0x68),

-             *(ushort **)(unaff_RBP + -0x70),in_stack_0000007c,in_stack_00000074,in_stack_00000078,

-             *(MFU_FOLDER_ACTION *)(unaff_RBP + -0x78),

-             -(uint)(*(int *)(unaff_RBP + -0x7c) != 0) & 2 |

-             (uint)(in_stack_00000070 == '\0') | -(uint)(*(int *)(unaff_RBP + -0x80) != 0) & 4);

-  *(undefined8 *)(unaff_RBP + 0x10) = 0;

-  *(undefined8 *)(unaff_RBP + 0x30) = 0;

-  Microsoft::WRL::Wrappers::HStringReference::CreateReference

-            ((HStringReference *)(unaff_RBP + 0x18),

-             (ushort *)L"Windows.Internal.UI.StartScreen.RecentFilesListenerServer",0x3a,0x39);

-  iVar1 = RoGetActivationFactory

-                    (*(undefined8 *)(unaff_RBP + 0x30),&_GUID_0913c69f_a9d0_5a44_9a9e_3c7049eb00c8,

-                     unaff_RBP + 0x10);

-  if (-1 < iVar1) {

-    *(undefined8 *)(unaff_RBP + 8) = 0;

-    iVar1 = (**(code **)(**(longlong **)(unaff_RBP + 0x10) + 0x30))();

-    if (-1 < iVar1) {

-      if (unaff_R15 == (ushort *)0x0) {

-        *(undefined8 *)(unaff_RBP + 0x30) = 0;

-        Microsoft::WRL::Wrappers::HStringReference::CreateReference

-                  ((HStringReference *)(unaff_RBP + 0x18),(ushort *)L"",1,0);

-        pHVar2 = (HStringReference *)(unaff_RBP + 0x18);

+  local_58 = __security_cookie ^ (ulonglong)auStackY_2f8;

+  iVar2 = Ordinal_190(&POLID_NoRemoteDestinations);

+  if ((iVar2 != 0) && (local_268[0] = 0, param_2 != (_ITEMIDLIST_ABSOLUTE *)0x0)) {

+    local_290 = (IShellItem *)0x0;

+    ppuVar6 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_290);

+    iVar2 = SHGetPathFromIDListAlloc(param_2,ppuVar6,2);

+    if (-1 < iVar2) {

+      iVar2 = StringCchCopyW(local_268,0x104,(ushort *)local_290);

+    }

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_290);

+    if ((-1 < iVar2) && (iVar2 = Ordinal_170(local_268), iVar2 != 0)) {

+      return 0;

+    }

+  }

+  local_2a8 = (IShellItem2 *)0x0;

+  HVar3 = SHCreateItemFromIDList

+                    ((LPCITEMIDLIST)param_2,(IID *)&_GUID_7e9fb0d3_919f_4307_ab2e_9b1860310c93,

+                     &local_2a8);

+  if (-1 < HVar3) {

+    local_280 = (ushort *)0x0;

+    local_278 = 0;

+    local_270 = 0;

+    local_2b8[0] = false;

+    Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+              ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_280);

+    local_278 = 0xffffffffffffffff;

+    local_270 = 0xffffffffffffffff;

+    HVar3 = DetermineAppIDToUseForDestinationItem

+                      ((IShellItem *)local_2a8,(IApplicationResolver *)0x0,param_3,param_1,param_4,

+                       &local_280,local_2b8);

+    MVar8 = 0;

+    if (-1 < HVar3) {

+      if (local_2b8[0] == false) {

+        param_4 = (ushort *)0x0;

       }

       else {

-        pHVar2 = (HStringReference *)

-                 Microsoft::WRL::Wrappers::HStringReference::

-                 HStringReference<unsigned_short_const*___ptr64>

-                           ((HStringReference *)(unaff_RBP + -0x40),unaff_RBP + -0x48);

+        param_7 = 0;

       }

-      Microsoft::WRL::Wrappers::HStringReference::HStringReference

-                ((HStringReference *)(unaff_RBP + 0x80),pHVar2);

-      pHVar2 = (HStringReference *)

-               Microsoft::WRL::Wrappers::HStringReference::

-               HStringReference<unsigned_short_const*___ptr64>

-                         ((HStringReference *)(unaff_RBP + -0x40),unaff_RBP + -0x58);

-      Microsoft::WRL::Wrappers::HStringReference::HStringReference

-                ((HStringReference *)(unaff_RBP + 0x60),pHVar2);

-      if (unaff_R12 == (ushort *)0x0) {

-        *(undefined8 *)(unaff_RBP + 0x30) = 0;

-        Microsoft::WRL::Wrappers::HStringReference::CreateReference

-                  ((HStringReference *)(unaff_RBP + 0x18),(ushort *)L"",1,0);

-        pHVar2 = (HStringReference *)(unaff_RBP + 0x18);

+      HVar3 = AddPointsToItem((IUnknown *)local_2a8,local_2b8[0] != false,local_280,param_4,param_7,

+                              param_8);

+    }

+    local_298[0] = 0;

+    HVar5 = (*(*(IShellItemVtbl **)local_2a8)->GetAttributes)

+                      ((IShellItem *)local_2a8,0x20000000,local_298);

+    if ((-1 < HVar5) && ((local_298[0] & 0x20000000) == 0)) {

+      local_290 = (IShellItem *)0x0;

+      HVar5 = (*(*(IShellItemVtbl **)local_2a8)->GetParent)((IShellItem *)local_2a8,&local_290);

+      if (-1 < HVar5) {

+        HVar5 = (*local_290->lpVtbl->GetAttributes)(local_290,0x100000,local_298);

+        if ((-1 < HVar5) && ((local_298[0] & 0x100000) == 0)) {

+          local_2a0 = (IShellItem *)0x0;

+          lVar4 = AdjustForAutoDestList(local_290,&local_2a0);

+          if (-1 < lVar4) {

+            local_288 = (LPVOID)0x0;

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                      ((ComPtr<IQuerySource> *)&local_288);

+            HVar5 = CoCreateInstance((IID *)&CLSID_StartMenuCacheAndAppResolver,(LPUNKNOWN)0x0,3,

+                                     (IID *)&_GUID_de25675a_72de_44b4_9373_05170450c140,&local_288);

+            if (-1 < HVar5) {

+              local_2b0 = (ushort *)0x0;

+              iVar2 = DetermineFolderDestinationParentAppID(local_288,local_2a0,0);

+              if (-1 < iVar2) {

+                if (*param_5 != 0) {

+                  pwVar7 = L"";

+                  do {

+                    if (*(uint *)pwVar7 == param_6) {

+                      MVar8 = *(MFU_FOLDER_ACTION *)(pwVar7 + 2);

+                      break;

+                    }

+                    pwVar7 = pwVar7 + 4;

+                  } while (pwVar7 != 

+                           L"Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IBuffer>")

+                  ;

+                  AddPointsToItem((IUnknown *)local_2a0,false,local_2b0,(ushort *)0x0,MVar8,param_8)

+                  ;

+                  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_62052180>::

+                          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_62052180> *)

+                                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_62052180>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_62052180>::GetImpl(void)'

+                                               ::__l2::impl);

+                  if (bVar1) {

+                    SubmitScopeExpansionSignal(local_2a8,param_6);

+                  }

+                  else {

+                    ClearMRUBootstrapMarkerIfPresent();

+                  }

+                }

+                CoTaskMemFree(local_2b0);

+              }

+            }

+            (*local_2a0->lpVtbl->Release)(local_2a0);

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                      ((ComPtr<IQuerySource> *)&local_288);

+          }

+        }

+        (*local_290->lpVtbl->Release)(local_290);

       }

-      else {

-        pHVar2 = (HStringReference *)

-                 Microsoft::WRL::Wrappers::HStringReference::

-                 HStringReference<unsigned_short_const*___ptr64>

-                           ((HStringReference *)(unaff_RBP + -0x40),unaff_RBP + -0x50);

-      }

-      Microsoft::WRL::Wrappers::HStringReference::HStringReference

-                ((HStringReference *)(unaff_RBP + 0x40),pHVar2);

-      if (unaff_R12 == (ushort *)0x0) {

-        *(undefined8 *)(unaff_RBP + 0x30) = 0;

-      }

-      else {

-        *(undefined8 *)(unaff_RBP + -0x28) = 0;

-      }

-      (**(code **)(**(longlong **)(unaff_RBP + 8) + 0x30))

-                (*(longlong **)(unaff_RBP + 8),in_stack_00000078,in_stack_00000074,

-                 *(undefined8 *)(unaff_RBP + 0x98),*(undefined8 *)(unaff_RBP + 0x78));

     }

-    if (*(longlong *)(unaff_RBP + 8) != 0) {

-      winrt::com_ptr<IPerFolderRootPropertyHandler>::unconditional_release_ref

-                ((com_ptr<IPerFolderRootPropertyHandler> *)(unaff_RBP + 8));

+    (**(code **)(*(longlong *)local_2a8 + 0x10))((IShellItem *)local_2a8);

+    Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+              ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_280);

+    if (-1 < HVar3) {

+      Ordinal_131(0xc);

     }

   }

-  if (*(longlong *)(unaff_RBP + 0x10) != 0) {

-    winrt::com_ptr<IPerFolderRootPropertyHandler>::unconditional_release_ref

-              ((com_ptr<IPerFolderRootPropertyHandler> *)(unaff_RBP + 0x10));

-  }

-  CRecentDocsHelper::_SetTarget

-            ((CRecentDocsHelper *)(unaff_RBP + -0x20),(_ITEMIDLIST_ABSOLUTE *)0x0);

-  Ordinal_186();

-  Ordinal_187(*(undefined8 *)(unaff_R13 + 0x48),*(undefined4 *)(unaff_R13 + 0x50));

-  return 0;

+  return HVar3;

 }
```

## `ApplyRegistrySettings`  (modified)

```diff
--- ApplyRegistrySettings
+++ ApplyRegistrySettings
@@ -1,680 +1,78 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* long __cdecl ApplyRegistrySettings(void * __ptr64,unsigned __int64,unsigned char * __ptr64) */

 

 long __cdecl ApplyRegistrySettings(void *param_1,__uint64 param_2,uchar *param_3)

 

 {

-  undefined1 *puVar1;

-  undefined1 *puVar2;

-  undefined1 *puVar3;

-  ushort uVar4;

-  LPVOID pvVar5;

-  HANDLE pvVar6;

-  LPVOID pvVar7;

-  SIZE_T SVar8;

-  uint *puVar9;

-  ulonglong uVar10;

-  void *_Dst;

-  longlong *plVar11;

-  byte bVar12;

-  uint uVar13;

-  SIZE_T SVar14;

-  uint *puVar15;

-  uint *_Src;

-  uint unaff_EBX;

-  uint uVar16;

-  uint uVar17;

-  uint uVar18;

-  SIZE_T *unaff_RBP;

-  undefined1 *puVar19;

-  LPVOID lpMem;

-  uint *puVar20;

-  uint uVar21;

-  uint *puVar22;

-  ulonglong uVar23;

-  int iVar24;

-  byte *pbVar25;

-  uint uVar26;

-  uint uVar27;

-  uint uVar28;

-  uint *puVar29;

-  LPVOID unaff_R12;

-  LPVOID unaff_R13;

-  longlong unaff_R14;

-  LPVOID unaff_R15;

-  uint *in_stack_00000030;

-  uint in_stack_00000038;

-  uint *in_stack_00000040;

-  undefined1 in_stack_00000048;

-  undefined8 uStack0000000000000050;

-  LPVOID in_stack_00000058;

-  LPVOID in_stack_00000070;

+  int iVar1;

+  long lVar2;

+  ushort **ppuVar3;

+  void *unaff_retaddr;

+  undefined1 auStack_d8 [32];

+  ushort *local_b8 [2];

+  RegistryStore local_a8 [128];

+  ulonglong local_28;

   

-  memcpy(param_1,(void *)param_2,(size_t)param_3);

-  lpMem = (LPVOID)unaff_RBP[-0xb];

-  SVar14 = unaff_RBP[0x10];

-  SVar8 = unaff_RBP[-6];

-  unaff_RBP[1] = (SIZE_T)lpMem;

-  unaff_RBP[-0xe] = (SIZE_T)in_stack_00000070;

-  unaff_RBP[-0xc] = (SIZE_T)unaff_R13;

-  unaff_RBP[-4] = (SIZE_T)unaff_R15;

-  unaff_RBP[-3] = (SIZE_T)unaff_R12;

-  if (in_stack_00000040 == (uint *)0xfffffffffffffffc) {

-    *(undefined4 *)(SVar14 + 0x10) = 0;

-    *(undefined8 *)(SVar14 + 0x18) = 0;

-LAB_0:

-    if (SVar8 == 0) {

-      *(undefined4 *)(SVar14 + 0x20) = 0;

-      *(undefined8 *)(SVar14 + 0x28) = 0;

+  local_28 = __security_cookie ^ (ulonglong)auStack_d8;

+  if ((param_2 == 0) || (param_3 == (uchar *)0x0)) {

+    lVar2 = 0;

+  }

+  else if (param_2 < 8) {

+    lVar2 = -0x7ff8ffa9;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x5f,

+               "onecore\\windows\\hvsi\\settings\\src\\registryutils\\registryutils.cpp",-0x7ff8ffa9

+              );

+  }

+  else {

+    local_b8[0] = (ushort *)0x0;

+    if (param_1 != (void *)0x0) {

+      ppuVar3 = wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                       *)local_b8);

+      iVar1 = ConvertSidToStringSidW(param_1,ppuVar3);

+      if (iVar1 == 0) {

+        lVar2 = wil::details::in1diag3::Return_GetLastError

+                          (unaff_retaddr,0x67,

+                           "onecore\\windows\\hvsi\\settings\\src\\registryutils\\registryutils.cpp"

+                          );

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)local_b8);

+        return lVar2;

+      }

+    }

+    RegistryStore::RegistryStore(local_a8,local_b8[0]);

+    lVar2 = RegistryStore::ApplyRegistrySettings

+                      (local_a8,*(__uint64 *)param_3,param_2 - 8,param_3 + 8);

+    if (lVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x6d,

+                 "onecore\\windows\\hvsi\\settings\\src\\registryutils\\registryutils.cpp",lVar2);

+      RegistryStore::~RegistryStore(local_a8);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)local_b8);

     }

     else {

-      uVar16 = (uint)unaff_RBP[-2];

-      in_stack_00000030 = (uint *)(ulonglong)uVar16;

-      *(uint *)(SVar14 + 0x20) = uVar16;

-      pvVar6 = GetProcessHeap();

-      pvVar7 = HeapAlloc(pvVar6,8,(ulonglong)uVar16);

-      unaff_EBX = 0;

-      if (pvVar7 == (LPVOID)0x0) goto LAB_1;

-      *(LPVOID *)(unaff_RBP[0x10] + 0x28) = pvVar7;

-      memcpy(pvVar7,(void *)unaff_RBP[-6],(size_t)in_stack_00000030);

-      SVar14 = unaff_RBP[0x10];

-      unaff_RBP[-3] = (SIZE_T)unaff_R12;

-      unaff_RBP[1] = (SIZE_T)lpMem;

-      unaff_RBP[-4] = (SIZE_T)unaff_R15;

-      unaff_RBP[-0xc] = (SIZE_T)unaff_R13;

-      unaff_RBP[-0xe] = (SIZE_T)in_stack_00000070;

-    }

-    unaff_RBP[-0xf] = SVar14;

-  }

-  else {

-    *(int *)(SVar14 + 0x10) = (int)unaff_RBP[-0xd];

-    pvVar6 = GetProcessHeap();

-    pvVar7 = HeapAlloc(pvVar6,8,(SIZE_T)in_stack_00000030);

-    unaff_EBX = 0;

-    if (pvVar7 != (LPVOID)0x0) {

-      *(LPVOID *)(unaff_RBP[0x10] + 0x18) = pvVar7;

-      memcpy(pvVar7,in_stack_00000040 + 1,(size_t)in_stack_00000030);

-      SVar8 = unaff_RBP[-6];

-      SVar14 = unaff_RBP[0x10];

-      unaff_RBP[-6] = SVar8;

-      unaff_RBP[-3] = (SIZE_T)unaff_R12;

-      unaff_RBP[1] = (SIZE_T)lpMem;

-      unaff_RBP[-4] = (SIZE_T)unaff_R15;

-      unaff_RBP[-0xc] = (SIZE_T)unaff_R13;

-      unaff_RBP[-0xe] = (SIZE_T)in_stack_00000070;

-      goto LAB_0;

-    }

-LAB_1:

-    unaff_EBX = 0xc0000017;

-    SVar8 = unaff_RBP[0x10];

-    if (SVar8 != 0) {

-      in_stack_00000030 = *(uint **)(SVar8 + 8);

-      if (in_stack_00000030 != (LPVOID)0x0) {

-        pvVar6 = GetProcessHeap();

-        HeapFree(pvVar6,0,in_stack_00000030);

-        SVar8 = unaff_RBP[0x10];

-        *(undefined8 *)(SVar8 + 8) = 0;

-      }

-      in_stack_00000030 = *(uint **)(SVar8 + 0x18);

-      if (in_stack_00000030 != (LPVOID)0x0) {

-        pvVar6 = GetProcessHeap();

-        HeapFree(pvVar6,0,in_stack_00000030);

-        SVar8 = unaff_RBP[0x10];

-        *(undefined8 *)(SVar8 + 0x18) = 0;

-      }

-      in_stack_00000030 = *(uint **)(SVar8 + 0x28);

-      if (in_stack_00000030 != (uint *)0x0) {

-        pvVar6 = GetProcessHeap();

-        HeapFree(pvVar6,0,in_stack_00000030);

-        *(undefined8 *)(unaff_RBP[0x10] + 0x28) = 0;

-      }

-      pvVar6 = GetProcessHeap();

-      HeapFree(pvVar6,0,(LPVOID)unaff_RBP[0x10]);

-    }

-    SVar14 = unaff_RBP[-0xf];

-  }

-  if ((int)unaff_EBX < 0) {

-    unaff_RBP[-10] = 0;

-    if (SVar14 != 0) {

-      in_stack_00000030 = *(uint **)(SVar14 + 8);

-      if (in_stack_00000030 != (LPVOID)0x0) {

-        pvVar6 = GetProcessHeap();

-        HeapFree(pvVar6,0,in_stack_00000030);

-        SVar14 = unaff_RBP[-0xf];

-        *(undefined8 *)(SVar14 + 8) = 0;

-      }

-      in_stack_00000030 = *(uint **)(SVar14 + 0x18);

-      if (in_stack_00000030 != (LPVOID)0x0) {

-        pvVar6 = GetProcessHeap();

-        HeapFree(pvVar6,0,in_stack_00000030);

-        SVar14 = unaff_RBP[-0xf];

-        *(undefined8 *)(SVar14 + 0x18) = 0;

-      }

-      in_stack_00000030 = *(uint **)(SVar14 + 0x28);

-      if (in_stack_00000030 != (uint *)0x0) {

-        pvVar6 = GetProcessHeap();

-        HeapFree(pvVar6,0,in_stack_00000030);

-        *(undefined8 *)(unaff_RBP[-0xf] + 0x28) = 0;

-      }

-      pvVar6 = GetProcessHeap();

-      HeapFree(pvVar6,0,(LPVOID)unaff_RBP[-0xf]);

-      unaff_RBP[-10] = 0;

+      RegistryStore::~RegistryStore(local_a8);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)local_b8);

+      lVar2 = 0;

     }

   }

-  else {

-    unaff_RBP[-10] = SVar14;

-  }

-  uVar16 = unaff_EBX | 0x10000000;

-  if (-1 < (int)uVar16) {

-    puVar15 = (uint *)unaff_RBP[-10];

-    if (((puVar15 == (uint *)0x0) ||

-        (SVar8 = *(SIZE_T *)(puVar15 + 2), *unaff_RBP = SVar8, SVar8 == 0)) || (*puVar15 == 0)) {

-      uVar16 = 0xd000000d;

-    }

-    else {

-      unaff_RBP[-0xf] = (ulonglong)*puVar15 - 8;

-      pvVar6 = GetProcessHeap();

-      puVar9 = HeapAlloc(pvVar6,0,unaff_RBP[-0xf]);

-      unaff_RBP[-5] = (SIZE_T)puVar9;

-      if (puVar9 != (uint *)0x0) {

-        uVar23 = unaff_RBP[-0xf];

-        pbVar25 = (byte *)*unaff_RBP;

-        uVar16 = (uint)uVar23 & 7;

-        in_stack_00000048 = 0;

-        unaff_RBP[0x10] = 0x7f1137fab69605e;

-        unaff_RBP[-0xb] = (SIZE_T)pbVar25;

-        puVar22 = puVar9;

-        in_stack_00000040 = puVar9;

-        if ((uVar23 & 7) == 0) {

-          *(undefined4 *)(unaff_RBP + -9) = 0;

-          uVar26 = 0;

-          *(undefined4 *)((longlong)unaff_RBP + -100) = 0;

-        }

-        else {

-          uVar18 = 0;

-          uVar26 = 0;

-          in_stack_00000038 = 0;

-          if ((uVar23 & 7) == 0) {

-            *(undefined4 *)(unaff_RBP + -9) = 0;

-            uVar26 = 0x92f65a5;

-            *(undefined4 *)((longlong)unaff_RBP + 0x14) = 0;

-            *(undefined4 *)((longlong)unaff_RBP + -100) = 0;

-LAB_2:

-            bVar12 = ('\x04' - (char)uVar16) * '\b';

-            uVar26 = (uVar26 >> (bVar12 & 0x1f)) << (bVar12 & 0x1f);

-            in_stack_00000040 = puVar9;

-          }

-          else {

-            do {

-              bVar12 = *pbVar25;

-              pbVar25 = pbVar25 + 1;

-              *(uint *)(unaff_RBP + -9) = (uint)bVar12;

-              bVar12 = (byte)*(undefined4 *)((longlong)unaff_RBP + -100);

-              if (in_stack_00000038 < 4) {

-                *(int *)(unaff_RBP + -9) = (int)unaff_RBP[-9] << (bVar12 - 0x20 & 0x1f);

-                uVar26 = uVar26 | (uint)unaff_RBP[-9];

-              }

-              else {

-                *(int *)(unaff_RBP + -9) = (int)unaff_RBP[-9] << (bVar12 & 0x1f);

-                uVar18 = uVar18 | (uint)unaff_RBP[-9];

-              }

-              *(int *)((longlong)unaff_RBP + -100) = *(int *)((longlong)unaff_RBP + -100) + -8;

-              in_stack_00000038 = in_stack_00000038 + 1;

-            } while ((int)in_stack_00000038 < (int)uVar16);

-            unaff_RBP[-0xb] = (SIZE_T)pbVar25;

-            *(uint *)(unaff_RBP + -9) = uVar26;

-            uVar26 = uVar26 ^ 0x92f65a5;

-            SVar14 = unaff_RBP[-9];

-            uVar27 = uVar18 ^ 0x699a899c;

-            in_stack_00000038 = 0;

-            SVar8 = unaff_RBP[-0xb];

-            *(uint *)(unaff_RBP + -0x10) = uVar27;

-            uVar21 = uVar26;

-            uVar13 = uVar27;

-            while( true ) {

-              *(uint *)((longlong)unaff_RBP + 0x14) = uVar18;

-              puVar9 = (uint *)((longlong)in_stack_00000040 + 1);

-              if ((int)in_stack_00000038 < 4) {

-                uVar21 = uVar21 >> 0x18 | uVar21 << 8;

-                uVar18 = uVar21;

-              }

-              else {

-                uVar18 = uVar13 >> 0x18 | uVar13 << 8;

-                *(uint *)(unaff_RBP + -0x10) = uVar18;

-              }

-              *(char *)in_stack_00000040 = (char)uVar18;

-              in_stack_00000038 = in_stack_00000038 + 1;

-              uVar18 = *(uint *)((longlong)unaff_RBP + 0x14);

-              in_stack_00000040 = puVar9;

-              if ((int)uVar16 <= (int)in_stack_00000038) break;

-              uVar13 = (uint)unaff_RBP[-0x10];

-            }

-            puVar22 = (uint *)unaff_RBP[-5];

-            *(int *)(unaff_RBP + -9) = (int)SVar14;

-            unaff_RBP[-0xb] = SVar8;

-            unaff_RBP[-10] = (SIZE_T)puVar15;

-            unaff_RBP[-0xc] = (SIZE_T)unaff_R13;

-            unaff_RBP[-3] = (SIZE_T)unaff_R12;

-            unaff_RBP[-4] = (SIZE_T)unaff_R15;

-            unaff_RBP[-0xe] = (SIZE_T)in_stack_00000070;

-            unaff_RBP[1] = (SIZE_T)lpMem;

-            if (uVar16 < 5) {

-              *(undefined4 *)((longlong)unaff_RBP + -100) = 0;

-              if (uVar16 < 4) goto LAB_2;

-            }

-            else {

-              bVar12 = ('\b' - (char)uVar16) * '\b';

-              *(uint *)((longlong)unaff_RBP + -100) = (uVar27 >> (bVar12 & 0x1f)) << (bVar12 & 0x1f)

-              ;

-            }

-          }

-        }

-        puVar9 = (uint *)(unaff_RBP[-0xf] >> 3);

-        in_stack_00000030 = puVar9;

-        if (puVar9 != (uint *)0x0) {

-          uVar16 = *(uint *)((longlong)unaff_RBP + 0x84);

-          uVar18 = *(uint *)((longlong)unaff_RBP + -100);

-          in_stack_00000030 = (uint *)(unaff_RBP[-0xb] + 2);

-          *(uint *)(unaff_RBP + -7) = (uint)*(ushort *)((longlong)unaff_RBP + 0x82);

-          in_stack_00000038 = uVar16 & 0xffff;

-          *(undefined4 *)(unaff_RBP + -6) = 0x605e;

-          puVar19 = (undefined1 *)((longlong)in_stack_00000040 + 7);

-          uVar13 = *(uint *)((longlong)unaff_RBP + 0x14);

-          uVar21 = (uint)unaff_RBP[-9];

-          do {

-            puVar1 = (undefined1 *)((longlong)in_stack_00000030 + 2);

-            uVar17 = CONCAT31(CONCAT21(CONCAT11(*(undefined1 *)((longlong)in_stack_00000030 + -2),

-                                                *(undefined1 *)((longlong)in_stack_00000030 + -1)),

-                                       (char)*in_stack_00000030),

-                              *(undefined1 *)((longlong)in_stack_00000030 + 1));

-            puVar2 = (undefined1 *)((longlong)in_stack_00000030 + 3);

-            uVar26 = uVar26 ^ uVar17;

-            puVar15 = in_stack_00000030 + 1;

-            puVar3 = (undefined1 *)((longlong)in_stack_00000030 + 5);

-            in_stack_00000030 = in_stack_00000030 + 2;

-            uVar28 = CONCAT31(CONCAT21(CONCAT11(*puVar1,*puVar2),(char)*puVar15),*puVar3);

-            uVar27 = uVar18 ^ uVar28 ^ uVar16 ^ 0xab69605e ^ uVar26;

-            uVar26 = uVar26 ^ (uVar27 + 0x54969fa2 >> 0x1b | (uVar27 + 0x54969fa2) * 0x20) *

-                              in_stack_00000038 + (uVar27 >> 0x16 | uVar27 << 10);

-            uVar27 = uVar27 ^ (uVar16 + uVar26 >> 9 | (uVar16 + uVar26) * 0x800000) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82) -

-                              (uVar26 >> 0x1e | uVar26 << 2);

-            uVar26 = uVar26 ^ (uVar27 - in_stack_00000038) * (int)unaff_RBP[-6] - (uVar27 >> 0xd);

-            uVar27 = uVar27 ^ (uVar26 >> 0x1a |

-                              (*(ushort *)((longlong)unaff_RBP + 0x82) ^ uVar26) << 6) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x86) -

-                              (uVar26 >> 0x1e | uVar26 << 2);

-            uVar26 = uVar26 ^ uVar16 - (uVar27 ^ 0xab69605e);

-            uVar27 = uVar27 ^ (uVar26 >> 6 | uVar26 << 0x1a) ^

-                              (in_stack_00000038 ^ uVar26) * (int)unaff_RBP[-7];

-            uVar26 = uVar26 ^ (uVar16 + uVar27 >> 0xf | (uVar16 + uVar27) * 0x20000) *

-                              (int)unaff_RBP[-6] + (uVar27 >> 0x1e | uVar27 << 2);

-            uVar27 = uVar27 ^ (uVar26 + 0x54969fa2 >> 0xe | (uVar26 + 0x54969fa2) * 0x40000) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x86) -

-                              (uVar26 >> 0x18 | uVar26 << 8);

-            uVar26 = uVar26 ^ ((uVar27 ^ 0xab69605e) >> 0xc | (uVar27 ^ 0xab69605e) << 0x14) *

-                              in_stack_00000038 ^ (uVar27 >> 10 | uVar27 << 0x16);

-            uVar27 = uVar27 ^ (*(ushort *)((longlong)unaff_RBP + 0x86) ^ uVar26) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82) ^ uVar26 >> 10;

-            uVar4 = *(ushort *)((longlong)unaff_RBP + 0x86);

-            uVar18 = ~uVar27;

-            uVar26 = uVar26 ^ ((uVar18 >> 5 | uVar18 << 0x1b) + (int)unaff_RBP[-6]) * (uint)uVar4;

-            uVar27 = uVar27 ^ uVar26 - uVar4 ^ 0xab69605e;

-            uVar26 = uVar26 ^ (uVar27 >> 0x1e | (uVar4 ^ uVar27) << 2) * in_stack_00000038 +

-                              (uVar27 >> 2);

-            uVar27 = uVar27 ^ (uVar26 - uVar16 >> 6 | (uVar26 - uVar16) * 0x4000000) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82) +

-                              (uVar26 >> 0x19 | uVar26 << 7);

-            uVar26 = uVar26 ^ (uVar27 >> 9 | uVar27 << 0x17) +

-                              (in_stack_00000038 ^ uVar27) * (int)unaff_RBP[-6];

-            uVar27 = uVar27 ^ (uVar26 >> 0x1b |

-                              (*(ushort *)((longlong)unaff_RBP + 0x82) ^ uVar26) << 5) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x86) +

-                              (uVar26 >> 0x19 | uVar26 << 7);

-            uVar26 = uVar26 ^ uVar16 ^ 0xab69605e ^ uVar27;

-            uVar27 = uVar27 ^ ((uVar26 >> 3 | uVar26 << 0x1d) -

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82)) * in_stack_00000038;

-            uVar26 = uVar26 ^ (uVar27 - uVar16 >> 1 | (uint)((uVar27 - uVar16 & 1) != 0) << 0x1f) *

-                              (int)unaff_RBP[-6] - (uVar27 >> 6 | uVar27 << 0x1a);

-            uVar27 = uVar27 ^ (uVar26 + 0xab69605e >> 0x1d | (uVar26 + 0xab69605e) * 8) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x86) +

-                              (uVar26 >> 0x12 | uVar26 << 0xe);

-            uVar26 = uVar26 ^ (uVar27 + 0xab69605e >> 0x11 | (uVar27 + 0xab69605e) * 0x8000) *

-                              in_stack_00000038 - (uVar27 >> 0xe | uVar27 << 0x12);

-            uVar27 = uVar27 ^ ((uint)unaff_RBP[-6] ^ uVar26) *

-                              (uint)*(ushort *)((longlong)unaff_RBP + 0x82) ^ uVar26 >> 3;

-            uVar18 = uVar27 ^ uVar13;

-            uVar21 = uVar26 ^ ((uVar16 ^ uVar27) >> 0x1c | (uVar16 ^ uVar27) << 4) *

-                              (int)unaff_RBP[-6] ^ (uVar27 >> 0x1e | uVar27 << 2) ^ uVar21;

-            puVar19[-4] = (char)uVar21;

-            *puVar19 = (char)uVar18;

-            *(uint *)(unaff_RBP + -2) = uVar21;

-            puVar19[-5] = (char)(uVar21 >> 8);

-            puVar19[-1] = (char)(uVar18 >> 8);

-            puVar19[-6] = (char)(uVar21 >> 0x10);

-            puVar19[-2] = (char)(uVar18 >> 0x10);

-            puVar19[-7] = (char)(uVar21 >> 0x18);

-            uVar26 = (uint)unaff_RBP[-2];

-            puVar19[-3] = (char)(uVar18 >> 0x18);

-            puVar9 = (uint *)((longlong)puVar9 + -1);

-            puVar19 = puVar19 + 8;

-            uVar13 = uVar28;

-            uVar21 = uVar17;

-          } while (puVar9 != (uint *)0x0);

-          lpMem = (LPVOID)unaff_RBP[1];

-          in_stack_00000070 = (LPVOID)unaff_RBP[-0xe];

-          unaff_R15 = (LPVOID)unaff_RBP[-4];

-          unaff_R12 = (LPVOID)unaff_RBP[-3];

-          unaff_R13 = (LPVOID)unaff_RBP[-0xc];

-          puVar15 = (uint *)unaff_RBP[-10];

-          puVar22 = (uint *)unaff_RBP[-5];

-        }

-        bVar12 = 0;

-        uVar23 = unaff_RBP[-0xf];

-        uVar10 = 0;

-        if (uVar23 != 0) {

-          do {

-            bVar12 = bVar12 ^ *(byte *)(uVar10 + (longlong)puVar22);

-            uVar10 = uVar10 + 1;

-          } while (uVar10 < uVar23);

-        }

-        unaff_RBP[-10] = (SIZE_T)puVar15;

-        if ((ulonglong)bVar12 == *(ulonglong *)(uVar23 + *unaff_RBP)) {

-          unaff_RBP[-10] = (SIZE_T)puVar15;

-          uVar16 = (uint)uVar23;

-          if (uVar16 < 4) {

-LAB_3:

-            uVar16 = 0xc000003e;

-          }

-          else {

-            *(uint *)(unaff_RBP + -7) = *puVar22;

-            puVar9 = puVar22 + 1;

-            unaff_RBP[-10] = (SIZE_T)puVar15;

-            unaff_RBP[-5] = (SIZE_T)puVar22;

-            if (puVar9 < puVar22) {

-LAB_4:

-              uVar16 = 0xc0000095;

-            }

-            else if (uVar16 - 4 < 4) {

-              uVar16 = 0xc000003e;

-LAB_5:

-              unaff_RBP[-5] = (SIZE_T)puVar22;

-              unaff_RBP[-10] = (SIZE_T)puVar15;

-            }

-            else {

-              uVar26 = *puVar9;

-              uVar10 = (ulonglong)uVar26;

-              _Src = puVar22 + 2;

-              *(uint *)(unaff_RBP + -0x10) = uVar26;

-              unaff_RBP[-0xe] = (SIZE_T)_Src;

-              if (_Src < puVar9) {

-                uVar16 = 0xc0000095;

-LAB_6:

-                unaff_RBP[-10] = (SIZE_T)puVar15;

-                unaff_RBP[-5] = (SIZE_T)puVar22;

-              }

-              else {

-                if (uVar16 - 8 < uVar26) goto LAB_3;

-                if (uVar26 + 8 < 8) {

-LAB_7:

-                  unaff_RBP[-5] = (SIZE_T)puVar22;

-LAB_8:

-                  unaff_RBP[-10] = (SIZE_T)puVar15;

-                  goto LAB_4;

-                }

-                puVar9 = (uint *)((longlong)_Src + uVar10);

-                *unaff_RBP = uVar10;

-                if (((uint *)((longlong)puVar22 + (uVar23 & 0xffffffff)) < puVar9) ||

-                   (7 < (longlong)puVar22 + (uVar23 & 0xffffffff) + (-uVar10 - (longlong)_Src))) {

-                  unaff_RBP[-5] = (SIZE_T)puVar22;

-                }

-                else {

-                  unaff_RBP[-5] = (SIZE_T)puVar22;

-                  unaff_RBP[1] = 0;

-                  in_stack_00000038 = 0;

-                  unaff_RBP[-10] = (SIZE_T)puVar15;

-                  if (_Src != (uint *)0x0) {

-                    if (puVar9 < _Src) {

-                      unaff_RBP[-5] = (SIZE_T)puVar22;

-                      goto LAB_8;

-                    }

-                    unaff_RBP[-0xe] = (SIZE_T)_Src;

-                    unaff_RBP[-10] = (SIZE_T)puVar15;

-                    unaff_RBP[-5] = (SIZE_T)puVar22;

-                    puVar20 = _Src;

-                    while (puVar20 < puVar9) {

-                      if (puVar20 + 1 < puVar20) goto LAB_4;

-                      unaff_RBP[-10] = (SIZE_T)puVar15;

-                      unaff_RBP[-5] = (SIZE_T)puVar22;

-                      unaff_RBP[-0xe] = (SIZE_T)_Src;

-                      if (puVar9 < puVar20 + 1) {

-                        uVar16 = 0xc000000d;

-                        goto LAB_6;

-                      }

-                      if ((*puVar20 + 4 < 4) ||

-                         (puVar29 = (uint *)((ulonglong)(*puVar20 + 4) + (longlong)puVar20),

-                         puVar29 < puVar20)) goto LAB_7;

-                      if (puVar9 < puVar29) {

-                        uVar16 = 0xc000000d;

-                        goto LAB_5;

-                      }

-                      in_stack_00000038 = in_stack_00000038 + 1;

-                      puVar20 = puVar29;

-                    }

-                    if (puVar20 != puVar9) {

-                      uVar16 = 0xc000000d;

-                      goto LAB_9;

-                    }

-                    uVar26 = (uint)unaff_RBP[-0x10];

-                  }

-                  _Dst = (void *)0x0;

-                  in_stack_00000040 = puVar22;

-                  if (uVar26 != 0) {

-                    pvVar6 = GetProcessHeap();

-                    _Dst = HeapAlloc(pvVar6,8,*unaff_RBP);

-                    unaff_RBP[1] = (SIZE_T)_Dst;

-                    if (_Dst == (LPVOID)0x0) {

-                      uVar16 = 0xc0000017;

-                      goto LAB_9;

-                    }

-                    _Src = (uint *)unaff_RBP[-0xe];

-                  }

-                  uVar16 = 0;

-                  if (_Src != (uint *)0x0) {

-                    memcpy(_Dst,_Src,*unaff_RBP);

-                  }

-                  unaff_RBP[4] = unaff_RBP[1];

-                  *(int *)((longlong)unaff_RBP + 0x1c) = (int)unaff_RBP[-0x10];

-                  *(uint *)(unaff_RBP + 3) = in_stack_00000038;

-                  unaff_RBP[-5] = (SIZE_T)in_stack_00000040;

-                  unaff_RBP[-10] = (SIZE_T)puVar15;

-                  unaff_RBP[-5] = (SIZE_T)in_stack_00000040;

-                  unaff_RBP[-10] = (SIZE_T)puVar15;

-                  if ((uint)unaff_RBP[-7] == in_stack_00000038) goto LAB_9;

-                  unaff_RBP[-5] = (SIZE_T)in_stack_00000040;

-                }

-                uVar16 = 0xc000003e;

-                unaff_RBP[-10] = (SIZE_T)puVar15;

-              }

-            }

-          }

-LAB_9:

-          uVar16 = uVar16 | 0x10000000;

-          goto LAB_10;

-        }

-        wil::details::FreeProcessHeap(puVar22);

-      }

-      unaff_RBP[-5] = 0;

-      uVar16 = 0xd0000001;

-    }

-  }

-LAB_10:

-  if (unaff_R15 != (LPVOID)0x0) {

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,unaff_R15);

-  }

-  if (unaff_R12 != (LPVOID)0x0) {

-    pvVar7 = *(LPVOID *)((longlong)unaff_R12 + 8);

-    if (pvVar7 != (LPVOID)0x0) {

-      pvVar6 = GetProcessHeap();

-      HeapFree(pvVar6,0,pvVar7);

-      *(undefined8 *)((longlong)unaff_R12 + 8) = 0;

-    }

-    pvVar7 = *(LPVOID *)((longlong)unaff_R12 + 0x18);

-    if (pvVar7 != (LPVOID)0x0) {

-      pvVar6 = GetProcessHeap();

-      HeapFree(pvVar6,0,pvVar7);

-      *(undefined8 *)((longlong)unaff_R12 + 0x18) = 0;

-    }

-    pvVar7 = *(LPVOID *)((longlong)unaff_R12 + 0x28);

-    if (pvVar7 != (LPVOID)0x0) {

-      pvVar6 = GetProcessHeap();

-      HeapFree(pvVar6,0,pvVar7);

-      *(undefined8 *)((longlong)unaff_R12 + 0x28) = 0;

-    }

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,unaff_R12);

-  }

-  if (unaff_R13 != (LPVOID)0x0) {

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,unaff_R13);

-  }

-  pvVar7 = (LPVOID)unaff_RBP[-1];

-  if (pvVar7 != (LPVOID)0x0) {

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,pvVar7);

-  }

-  pvVar7 = (LPVOID)unaff_RBP[-10];

-  if (pvVar7 != (LPVOID)0x0) {

-    pvVar5 = *(LPVOID *)((longlong)pvVar7 + 8);

-    if (pvVar5 != (LPVOID)0x0) {

-      pvVar6 = GetProcessHeap();

-      HeapFree(pvVar6,0,pvVar5);

-      *(undefined8 *)((longlong)pvVar7 + 8) = 0;

-    }

-    pvVar5 = *(LPVOID *)((longlong)pvVar7 + 0x18);

-    if (pvVar5 != (LPVOID)0x0) {

-      pvVar6 = GetProcessHeap();

-      HeapFree(pvVar6,0,pvVar5);

-      *(undefined8 *)((longlong)pvVar7 + 0x18) = 0;

-    }

-    pvVar5 = *(LPVOID *)((longlong)pvVar7 + 0x28);

-    if (pvVar5 != (LPVOID)0x0) {

-      pvVar6 = GetProcessHeap();

-      HeapFree(pvVar6,0,pvVar5);

-      *(undefined8 *)((longlong)pvVar7 + 0x28) = 0;

-    }

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,pvVar7);

-  }

-  pvVar7 = (LPVOID)unaff_RBP[-5];

-  if (pvVar7 != (LPVOID)0x0) {

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,pvVar7);

-  }

-  if ((int)uVar16 < 0) goto LAB_11;

-  if ((int)unaff_RBP[3] != 3) {

-LAB_12:

-    uVar16 = 0xc004d501;

-    goto LAB_11;

-  }

-  if (unaff_RBP[4] != 0) {

-    puVar15 = (uint *)unaff_RBP[4];

-    uVar26 = *puVar15;

-    in_stack_00000030 = puVar15;

-    uVar16 = RtlULongLongAdd(puVar15,4,&stack0x00000030);

-    if ((int)uVar16 < 0) goto LAB_11;

-    puVar9 = in_stack_00000030;

-    if (uVar26 == 0) {

-      puVar9 = (uint *)0x0;

-    }

-    if (uVar26 != 4) {

-LAB_13:

-      uVar16 = 0xc0000023;

-      goto LAB_11;

-    }

-    uVar16 = *puVar9;

-    if ((int)uVar16 < 0) goto LAB_11;

-    if (puVar15 != (uint *)0x0) {

-      unaff_RBP[-1] = (SIZE_T)puVar15;

-      uVar23 = (ulonglong)uVar16;

-      for (iVar24 = 0; iVar24 == 0; iVar24 = iVar24 + 1) {

-        uVar10 = (ulonglong)*puVar15;

-        uVar16 = RtlULongLongAdd();

-        if (((int)uVar16 < 0) ||

-           (uVar16 = RtlULongLongAdd(unaff_RBP[-1],uVar10 & 0xffffffff,unaff_RBP + -1),

-           (int)uVar16 < 0)) goto LAB_11;

-        puVar15 = (uint *)unaff_RBP[-1];

-      }

-      uVar26 = *puVar15;

-      uVar16 = RtlULongLongAdd();

-      if ((int)uVar16 < 0) goto LAB_11;

-      uVar18 = 0;

-      plVar11 = (longlong *)unaff_RBP[-1];

-      if (uVar26 == 0) {

-        plVar11 = (longlong *)0x0;

-      }

-      if (uVar26 != 8) goto LAB_13;

-      if (unaff_R14 != *plVar11) goto LAB_12;

-      if (unaff_RBP[4] != 0) {

-        puVar15 = (uint *)unaff_RBP[4];

-        unaff_RBP[-1] = (SIZE_T)puVar15;

-        while( true ) {

-          uVar26 = (uint)uVar23;

-          if (1 < uVar18) break;

-          uVar10 = (ulonglong)*puVar15;

-          uVar16 = RtlULongLongAdd(puVar15,4,unaff_RBP + -1);

-          if (((int)uVar16 < 0) ||

-             (uVar16 = RtlULongLongAdd(unaff_RBP[-1],uVar10 & 0xffffffff,unaff_RBP + -1),

-             (int)uVar16 < 0)) goto LAB_11;

-          puVar15 = (uint *)unaff_RBP[-1];

-          uVar18 = uVar18 + 1;

-        }

-        uVar18 = *puVar15;

-        uVar16 = RtlULongLongAdd(puVar15,4,unaff_RBP + -1);

-        if (-1 < (int)uVar16) {

-          if (uVar18 == 0x10) {

-            if (uVar26 != 0) {

-              uVar16 = uVar26;

-            }

-          }

-          else {

-            uVar16 = 0x8007000d;

-          }

-        }

-        goto LAB_11;

-      }

-    }

-  }

-  uVar16 = 0xc000000d;

-LAB_11:

-  uStack0000000000000050 = 0;

-  if (in_stack_00000058 != (LPVOID)0x0) {

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,in_stack_00000058);

-    in_stack_00000058 = (LPVOID)0x0;

-  }

-  unaff_RBP[3] = 0;

-  pvVar7 = (LPVOID)unaff_RBP[4];

-  if (pvVar7 != (LPVOID)0x0) {

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,pvVar7);

-    unaff_RBP[4] = 0;

-  }

-  if (lpMem != (LPVOID)0x0) {

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,lpMem);

-  }

-  if (in_stack_00000070 != (LPVOID)0x0) {

-    pvVar6 = GetProcessHeap();

-    HeapFree(pvVar6,0,in_stack_00000070);

-  }

-  if (uVar16 == 0xd0000272) {

-    uVar16 = 0x80070491;

-  }

-  else if (uVar16 == 0x10000000) {

-    uVar16 = 0;

-  }

-  return uVar16;

+  return lVar2;

 }
```

## `UpdateDestinationLists`  (modified)

```diff
--- UpdateDestinationLists
+++ UpdateDestinationLists
@@ -1,10 +1,143 @@
 

-void UpdateDestinationLists(undefined8 param_1,undefined4 param_2)

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+

+undefined8

+UpdateDestinationLists

+          (com_ptr_t<IAgileReference,wil::err_exception_policy> *param_1,IObjectCollection **param_2

+          )

 

 {

-  longlong unaff_RBX;

+  bool bVar1;

+  ulong uVar2;

+  char *pcVar3;

+  undefined4 extraout_var;

+  ReportingKind RVar4;

+  IObjectCollection **ppIVar5;

+  undefined1 auStackY_88 [32];

+  bool local_58 [8];

+  IObjectCollection *local_50;

+  IObjectCollection *local_48;

+  IObjectCollection *local_40;

+  IObjectCollection *local_38;

+  IObjectCollection *local_30;

+  ulonglong local_28;

   

-  *(undefined4 *)(unaff_RBX + 8) = param_2;

-  return;

+  local_28 = __security_cookie ^ (ulonglong)auStackY_88;

+  local_58[0] = false;

+  local_40 = (IObjectCollection *)0x0;

+  local_48 = (IObjectCollection *)0x0;

+  local_38 = (IObjectCollection *)0x0;

+  local_50 = (IObjectCollection *)0x0;

+  local_30 = (IObjectCollection *)0x0;

+  ppIVar5 = param_2;

+  if (*(longlong *)param_1 != 0) {

+    ppIVar5 = &local_40;

+    wil::com_ptr_t<IAgileReference,wil::err_exception_policy>::copy_to<IObjectCollection>

+              (param_1,ppIVar5);

+  }

+  RVar4 = (ReportingKind)ppIVar5;

+  if (*(longlong *)(param_1 + 8) != 0) {

+    ppIVar5 = &local_48;

+    wil::com_ptr_t<IAgileReference,wil::err_exception_policy>::copy_to<IObjectCollection>

+              (param_1 + 8,ppIVar5);

+    RVar4 = (ReportingKind)ppIVar5;

+  }

+  if (*(longlong *)(param_1 + 0x10) != 0) {

+    ppIVar5 = &local_38;

+    wil::com_ptr_t<IAgileReference,wil::err_exception_policy>::copy_to<IObjectCollection>

+              (param_1 + 0x10,ppIVar5);

+    RVar4 = (ReportingKind)ppIVar5;

+  }

+  if (*(longlong *)(param_1 + 0x18) != 0) {

+    ppIVar5 = &local_50;

+    wil::com_ptr_t<IAgileReference,wil::err_exception_policy>::copy_to<IObjectCollection>

+              (param_1 + 0x18,ppIVar5);

+    RVar4 = (ReportingKind)ppIVar5;

+  }

+  if (*(longlong *)(param_1 + 0x20) != 0) {

+    ppIVar5 = &local_30;

+    wil::com_ptr_t<IAgileReference,wil::err_exception_policy>::copy_to<IObjectCollection>

+              (param_1 + 0x20,ppIVar5);

+    RVar4 = (ReportingKind)ppIVar5;

+  }

+  if ((local_40 != (IObjectCollection *)0x0) && (local_48 != (IObjectCollection *)0x0)) {

+    UpdateDestinationList(0,1,local_40,local_48,local_58);

+    RVar4 = 1;

+    UpdateDestinationList(1,1,local_40,local_48,local_58);

+  }

+  wil::details::FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>::

+  __private_IsEnabledPreCheck

+            ((FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure> *)

+             &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>::GetImpl(void)'

+              ::__l2::impl,RVar4);

+  if ((local_40 != (IObjectCollection *)0x0) && (local_48 != (IObjectCollection *)0x0)) {

+    RVar4 = 1;

+    UpdateDestinationList(2,1,local_40,local_48,local_58);

+  }

+  if (local_38 != (IObjectCollection *)0x0) {

+    UpdateDestinationList(0,0,local_38,(IObjectCollection *)0x0,local_58);

+    RVar4 = 0;

+    UpdateDestinationList(1,0,local_38,(IObjectCollection *)0x0,local_58);

+  }

+  if (local_50 != (IObjectCollection *)0x0) {

+    UpdateDestinationList(0,2,local_50,(IObjectCollection *)0x0,local_58);

+    RVar4 = 2;

+    UpdateDestinationList(1,2,local_50,(IObjectCollection *)0x0,local_58);

+  }

+  if (local_30 != (IObjectCollection *)0x0) {

+    RVar4 = 2;

+    UpdateDestinationList(1,2,local_30,(IObjectCollection *)0x0,local_58);

+  }

+  wil::details::FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>::

+  __private_IsEnabledPreCheck

+            ((FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure> *)

+             &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>::GetImpl(void)'

+              ::__l2::impl,RVar4);

+  if (local_50 != (IObjectCollection *)0x0) {

+    RVar4 = 2;

+    UpdateDestinationList(2,2,local_50,(IObjectCollection *)0x0,local_58);

+  }

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_51721485>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_51721485> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_51721485>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_51721485>::GetImpl(void)'

+                      ::__l2::impl,RVar4);

+  if (bVar1) {

+    if (local_38 != (IObjectCollection *)0x0) {

+      UpdateDestinationList(3,0,local_38,(IObjectCollection *)0x0,local_58);

+    }

+    if (local_50 != (IObjectCollection *)0x0) {

+      UpdateDestinationList(3,2,local_50,(IObjectCollection *)0x0,local_58);

+    }

+    if ((local_40 != (IObjectCollection *)0x0) && (local_48 != (IObjectCollection *)0x0)) {

+      UpdateDestinationList(3,1,local_40,local_48,local_58);

+    }

+    pcVar3 = tip2::details::reason_string

+                       (

+                       "GraphFilesTip::HomeOperationSinkTestReason::destination_list_update_completed"

+                       );

+    tip2::details::shared_data<0,0,1>::set_flag_without_lock

+              ((shared_data<0,0,1> *)(param_2[7] + 8),1,pcVar3);

+    UpdateGrimRecommendations(param_1,param_2);

+  }

+  else {

+    pcVar3 = tip2::details::reason_string

+                       (

+                       "GraphFilesTip::HomeOperationSinkTestReason::destination_list_update_completed"

+                       );

+    tip2::details::shared_data<0,0,1>::set_flag_without_lock

+              ((shared_data<0,0,1> *)(param_2[7] + 8),1,pcVar3);

+    pcVar3 = tip2::details::reason_string

+                       (

+                       "GraphFilesTip::HomeOperationSinkTestReason::recommendation_blocklist_update_completed"

+                       );

+    tip2::details::shared_data<0,0,1>::set_flag_without_lock

+              ((shared_data<0,0,1> *)(param_2[7] + 8),2,pcVar3);

+  }

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_30);

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_50);

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_38);

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_48);

+  uVar2 = Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_40);

+  return CONCAT71((int7)(CONCAT44(extraout_var,uVar2) >> 8),local_58[0]);

 }
```

## `IsComputableProperty`  (modified)

```diff
--- IsComputableProperty
+++ IsComputableProperty
@@ -1,27 +1,41 @@
 

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* int __cdecl IsComputableProperty(struct _tagpropertykey const & __ptr64,struct IQueryResult *

+   __ptr64) */

 

 int __cdecl IsComputableProperty(_tagpropertykey *param_1,IQueryResult *param_2)

 

 {

   int iVar1;

-  longlong unaff_RBP;

-  int unaff_ESI;

-  IAssociationElement *unaff_R12;

-  ushort *unaff_R13;

-  IUnknown *unaff_R15;

-  long *in_stack_00000028;

+  uint uVar2;

+  uint uVar3;

+  int iVar4;

+  ulonglong uVar5;

+  undefined **ppuVar6;

   

-  ZoneCheckFile(unaff_R15,(ushort *)param_2,unaff_R13,unaff_R12,unaff_ESI,in_stack_00000028);

-  ShellExecuteProvider::

-  CheckSmartScreenWithAltFileTelemetry<unsigned_short_const*___ptr64&___ptr64,Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>&___ptr64,bool_const&___ptr64>

-            ((ushort **)(unaff_RBP + -0x38),

-             (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

-             (unaff_RBP + -0x30),(bool *)(unaff_RBP + -0x48));

-  iVar1 = *(int *)(unaff_RBP + -0x44);

-  Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

-            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

-             (unaff_RBP + -0x30));

-  return iVar1;

+  iVar1 = 0;

+  ppuVar6 = &PTR_PKEY_IsFiltered_180816f50;

+  uVar5 = 0;

+  uVar3 = 0;

+  do {

+    if (iVar1 != 0) {

+      return (int)uVar5;

+    }

+    iVar1 = operator==(param_1,(_tagpropertykey *)*ppuVar6);

+    if (iVar1 != 0) {

+      uVar2 = IsEntryComputableForResult_Old(uVar3,param_2);

+      uVar5 = (ulonglong)uVar2;

+    }

+    iVar4 = (int)uVar5;

+    uVar3 = uVar3 + 1;

+    ppuVar6 = ppuVar6 + 4;

+  } while (uVar3 < 10);

+  if (iVar1 == 0) {

+    iVar1 = IsAssocPropKey(param_1);

+    if ((iVar1 == 0) && (iVar1 = GetDependentPropertyIndex(param_1), iVar1 == -1)) {

+      return 0;

+    }

+    iVar4 = 1;

+  }

+  return iVar4;

 }
```

## `IsFastComputableProperty`  (modified)

```diff
--- IsFastComputableProperty
+++ IsFastComputableProperty
@@ -1,12 +1,41 @@
+

+/* int __cdecl IsFastComputableProperty(struct _tagpropertykey const & __ptr64,struct IQueryResult *

+   __ptr64) */

 

 int __cdecl IsFastComputableProperty(_tagpropertykey *param_1,IQueryResult *param_2)

 

 {

-  code *pcVar1;

-  int iVar2;

+  int iVar1;

+  uint uVar2;

+  int *piVar3;

+  uint uVar4;

+  int iVar5;

+  ulonglong uVar6;

   

-  pcVar1 = (code *)swi(3);

-  iVar2 = (*pcVar1)();

-  return iVar2;

+  iVar1 = 0;

+  piVar3 = &DAT_0;

+  uVar6 = 0;

+  uVar4 = 0;

+  do {

+    if (iVar1 != 0) {

+      return (int)uVar6;

+    }

+    iVar1 = operator==(param_1,*(_tagpropertykey **)(piVar3 + -2));

+    if ((iVar1 != 0) && (*piVar3 == 1)) {

+      uVar2 = IsEntryComputableForResult_Old(uVar4,param_2);

+      uVar6 = (ulonglong)uVar2;

+    }

+    iVar5 = (int)uVar6;

+    uVar4 = uVar4 + 1;

+    piVar3 = piVar3 + 8;

+  } while (uVar4 < 10);

+  if (iVar1 == 0) {

+    iVar1 = IsAssocPropKey(param_1);

+    if ((iVar1 == 0) && (iVar1 = GetDependentPropertyIndex(param_1), iVar1 == -1)) {

+      return 0;

+    }

+    iVar5 = 1;

+  }

+  return iVar5;

 }
```

## `ProcessCapturedFinishOperations`  (modified)

```diff
--- ProcessCapturedFinishOperations
+++ ProcessCapturedFinishOperations
@@ -1,65 +1,81 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 

-undefined8 *

-ProcessCapturedFinishOperations

-          (vector<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry,std::allocator<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>_>

-           *param_1,undefined8 *param_2,com_ptr<winrt::impl::IRestrictedErrorInfo> *param_3,

-          FileExplorerAppExtension *param_4)

+void ProcessCapturedFinishOperations(longlong param_1)

 

 {

-  com_ptr<winrt::impl::IRestrictedErrorInfo> *pcVar1;

-  undefined8 uVar2;

-  StorageProviderKnownFolderEntry *pSVar3;

-  com_ptr<winrt::impl::IRestrictedErrorInfo> *this;

-  undefined1 auStack_48 [32];

-  vector<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry,std::allocator<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>_>

-  *pvStack_28;

-  undefined8 uStack_20;

+  char cVar1;

+  bool bVar2;

+  test_watcher<class_tip2::details::merged_data<struct_GraphFilesTip::_tip_HomeOperationSinkTest_attributes,class_tip2::test_data_basic>_>

+  *ptVar3;

+  char *pcVar4;

+  HomeUpdateDirReason HVar5;

+  ReportingKind RVar6;

+  undefined1 auStack_208 [32];

+  test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+  local_1e8 [64];

+  test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+  local_1a8 [8];

+  ThreadFailureCallbackHolder local_1a0 [24];

+  int local_188;

+  longlong local_170;

+  ActivityBase<FileExplorerLogging,1,0,5,0,_TlgReflectorTag_Param0IsProviderType> local_168 [336];

   ulonglong local_18;

   

-  local_18 = __security_cookie ^ (ulonglong)auStack_48;

-  pcVar1 = *(com_ptr<winrt::impl::IRestrictedErrorInfo> **)(param_1 + 8);

-  if (pcVar1 == *(com_ptr<winrt::impl::IRestrictedErrorInfo> **)(param_1 + 0x10)) {

-    pSVar3 = std::

-             vector<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry,std::allocator<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>_>

-             ::

-             _Emplace_reallocate<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry_const&___ptr64>

-                       (param_1,(StorageProviderKnownFolderEntry *)param_3,

-                        (StorageProviderKnownFolderEntry *)param_4);

-    *param_2 = pSVar3;

+  local_18 = __security_cookie ^ (ulonglong)auStack_208;

+  FileExplorerTelemetry::UpdateDestListsPostFileOperation::Start<>();

+  tip2::

+  test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+  ::

+  test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+            (local_1a8);

+  ptVar3 = (test_watcher<class_tip2::details::merged_data<struct_GraphFilesTip::_tip_HomeOperationSinkTest_attributes,class_tip2::test_data_basic>_>

+            *)tip2::

+              start_and_watch_errors<tip2::tip_test<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>_>

+                        ();

+  tip2::

+  test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+  ::operator=(local_1a8,ptVar3);

+  tip2::

+  test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+  ::

+  ~test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+            (local_1e8);

+  if (local_188 != 0) {

+    wil::details::ThreadFailureCallbackHolder::StopWatching(local_1a0);

   }

-  else {

-    if (param_3 == pcVar1) {

-      std::

-      vector<winrt::Windows::Internal::FileExplorerAppExtension,std::allocator<winrt::Windows::Internal::FileExplorerAppExtension>_>

-      ::

-      _Emplace_back_with_unused_capacity<winrt::Windows::Internal::FileExplorerAppExtension_const&___ptr64>

-                ((vector<winrt::Windows::Internal::FileExplorerAppExtension,std::allocator<winrt::Windows::Internal::FileExplorerAppExtension>_>

-                  *)param_1,param_4);

+  cVar1 = UpdateDestinationLists(param_1,local_1a8);

+  RVar6 = (ReportingKind)local_1a8;

+  UpdateFrequentFolders(param_1);

+  if ((cVar1 != '\0') || (*(char *)(param_1 + 0x50) != '\0')) {

+    bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>

+            ::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry> *

+                       )&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>::GetImpl(void)'

+                         ::__l2::impl,RVar6);

+    if (bVar2) {

+      HVar5 = 0x10;

     }

     else {

-      uStack_20 = *(undefined8 *)param_4;

-      pvStack_28 = param_1;

-      Microsoft::WRL::ComPtr<Windows::ApplicationModel::Activation::ISplashScreen>::InternalAddRef

-                ((ComPtr<Windows::ApplicationModel::Activation::ISplashScreen> *)&uStack_20);

-      this = pcVar1 + -8;

-      uVar2 = *(undefined8 *)this;

-      *(undefined8 *)this = 0;

-      *(undefined8 *)pcVar1 = uVar2;

-      *(longlong *)(param_1 + 8) = *(longlong *)(param_1 + 8) + 8;

-      while (this != param_3) {

-        winrt::com_ptr<winrt::impl::IRestrictedErrorInfo>::operator=

-                  (this,(com_ptr<struct_winrt::impl::IRestrictedErrorInfo> *)(this + -8));

-        this = this + -8;

-      }

-      winrt::com_ptr<winrt::impl::IRestrictedErrorInfo>::operator=

-                (param_3,(com_ptr<struct_winrt::impl::IRestrictedErrorInfo> *)&uStack_20);

-      winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

-                ((ICoreApplicationPrivate *)&uStack_20);

+      HVar5 = 0;

     }

-    *param_2 = param_3;

+    NotifyHomeFolderUpdated(HVar5);

   }

-  return param_2;

+  pcVar4 = tip2::details::reason_string

+                     ("GraphFilesTip::HomeOperationSinkTestReason::notify_home_folder_completed");

+  tip2::details::shared_data<0,0,1>::set_flag_without_lock

+            ((shared_data<0,0,1> *)(local_170 + 8),4,pcVar4);

+  tip2::details::shared_data<0,0,1>::complete_without_lock((shared_data<0,0,1> *)(local_170 + 8));

+  wil::ActivityBase<FileExplorerLogging,1,0,5,0,_TlgReflectorTag_Param0IsProviderType>::Stop

+            (local_168,0);

+  tip2::

+  test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+  ::

+  ~test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+            ((test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+              *)local_1a8);

+  FileExplorerTelemetry::UpdateDestListsPostFileOperation::~UpdateDestListsPostFileOperation

+            ((UpdateDestListsPostFileOperation *)local_168);

+  return;

 }
```

## `UpdateGrimRecommendations`  (modified)

```diff
--- UpdateGrimRecommendations
+++ UpdateGrimRecommendations
@@ -1,24 +1,332 @@
 

-void UpdateGrimRecommendations(LPCRITICAL_SECTION param_1,undefined8 param_2,longlong param_3)

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+

+void UpdateGrimRecommendations

+               (com_ptr_t<IAgileReference,wil::err_exception_policy> *param_1,

+               com_ptr_t<IAgileReference,wil::err_exception_policy> *param_2)

 

 {

-  byte bVar1;

-  byte bVar2;

-  undefined8 uVar3;

-  longlong unaff_RBX;

-  byte *unaff_RDI;

-  byte in_CF;

+  com_ptr_t<IAgileReference,wil::err_exception_policy> *pcVar1;

+  code *pcVar2;

+  undefined8 *puVar3;

+  bool bVar4;

+  int iVar5;

+  shared_ptr<class_CAutoDestList> *psVar6;

+  char *pcVar7;

+  void **ppvVar8;

+  MicrosoftGraphRecentItemInfo *pMVar9;

+  longlong *plVar10;

+  IObjectCollection *pIVar11;

+  ICoreApplicationPrivate *this;

+  uint uVar12;

+  uint uVar13;

+  void *unaff_retaddr;

+  undefined1 auStackY_118 [32];

+  com_ptr_t<IAgileReference,wil::err_exception_policy> *local_d8 [2];

+  IShellItem local_c8;

+  IShellItem local_c0;

+  _Ref_count_base *local_b8;

+  longlong local_b0;

+  _Ref_count_base *p_Stack_a8;

+  com_ptr_t<IAgileReference,wil::err_exception_policy> *local_a0;

+  com_ptr_t<IAgileReference,wil::err_exception_policy> *local_98;

+  uint local_90 [2];

+  com_ptr_t<IAgileReference,wil::err_exception_policy> *local_88;

+  uint local_80;

+  uint local_7c;

+  IObjectCollection *local_78;

+  IObjectCollection *local_70;

+  IObjectCollection *local_68;

+  undefined8 local_60;

+  undefined8 uStack_58;

+  undefined8 local_50;

+  undefined8 local_48;

+  undefined8 uStack_40;

+  undefined8 local_38;

+  ulonglong local_30;

   

-  bVar1 = *unaff_RDI;

-  bVar2 = *unaff_RDI + (byte)param_1;

-  *unaff_RDI = bVar2 + in_CF;

-  *(int *)(unaff_RBX + 0x20) =

-       *(int *)(unaff_RBX + 0x20) + (int)param_1 +

-       (uint)(CARRY1(bVar1,(byte)param_1) || CARRY1(bVar2,in_CF));

-  uVar3 = *(undefined8 *)(param_3 + 0x28);

-  *(undefined8 *)(unaff_RBX + 0x30) = *(undefined8 *)(param_3 + 0x20);

-  *(undefined8 *)(unaff_RBX + 0x38) = uVar3;

-  InitializeCriticalSection(param_1);

+  local_30 = __security_cookie ^ (ulonglong)auStackY_118;

+  uVar13 = 0;

+  local_68 = (IObjectCollection *)0x0;

+  local_d8[0] = param_2;

+  local_a0 = param_1;

+  if (*(longlong *)(param_1 + 0x10) == 0) {

+    local_90[0] = 0;

+  }

+  else {

+    wil::com_ptr_t<IAgileReference,wil::err_exception_policy>::copy_to<IObjectCollection>

+              (param_1 + 0x10,&local_68);

+    local_90[0] = 0;

+    if ((local_68 != (IObjectCollection *)0x0) &&

+       (iVar5 = (**(code **)(*(longlong *)local_68 + 0x18))(local_68,local_90), iVar5 < 0)) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x9b,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 iVar5);

+    }

+  }

+  local_b0 = 0;

+  p_Stack_a8 = (_Ref_count_base *)0x0;

+  bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_57173102>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_57173102> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_57173102>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_57173102>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar4) {

+    psVar6 = (shared_ptr<class_CAutoDestList> *)

+             GraphRecentItemsManager::InstanceManager::GetInstanceManager();

+    std::shared_ptr<CAutoDestList>::operator=((shared_ptr<CAutoDestList> *)&local_b0,psVar6);

+    if (local_b8 != (_Ref_count_base *)0x0) {

+      std::_Ref_count_base::_Decref(local_b8);

+    }

+  }

+  else {

+    psVar6 = (shared_ptr<class_CAutoDestList> *)

+             GraphRecentItemsManager::InstanceManager::GetInstanceManager();

+    std::shared_ptr<CAutoDestList>::operator=((shared_ptr<CAutoDestList> *)&local_b0,psVar6);

+    if (local_b8 != (_Ref_count_base *)0x0) {

+      std::_Ref_count_base::_Decref(local_b8);

+    }

+  }

+  if (local_b0 == 0) {

+    wil::details::in1diag3::Log_HrMsg

+              (unaff_retaddr,0x108,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+               -0x7ff8ec61,

+               "In CHomeOperationSink::FinishOperations(): Failed to retrieve GraphRecentItemsManager::InstanceManager. Instance manager is unavailable."

+              );

+  }

+  else {

+    pcVar7 = tip2::details::reason_string

+                       ("GraphFilesTip::HomeOperationSinkTestReason::grim_instance_retrieved");

+    pcVar1 = param_2 + 0x38;

+    local_98 = pcVar1;

+    tip2::details::shared_data<0,0,1>::set_flag_without_lock

+              ((shared_data<0,0,1> *)(*(longlong *)pcVar1 + 8),5,pcVar7);

+    if (local_90[0] != 0) {

+      local_60 = 0;

+      uStack_58 = 0;

+      local_50 = 0;

+      std::

+      vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+      ::reserve((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                 *)&local_60,(ulonglong)local_90[0]);

+      for (uVar12 = uVar13; pIVar11 = local_68, uVar12 < local_90[0]; uVar12 = uVar12 + 1) {

+        local_88 = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+        pcVar2 = *(code **)(*(longlong *)local_68 + 0x20);

+        ppvVar8 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&local_88);

+        iVar5 = (*pcVar2)(pIVar11,uVar12,&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar8);

+        if (-1 < iVar5) {

+          pMVar9 = (MicrosoftGraphRecentItemInfo *)

+                   GraphRecentItemsManager::InstanceManager::

+                   CreateMicrosoftGraphRecentItemInfoFromShellItem

+                             ((InstanceManager *)pIVar11,&local_c8);

+          std::

+          vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+          ::emplace_back<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>

+                    ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                      *)&local_60,pMVar9);

+          winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+                    ((ICoreApplicationPrivate *)&local_c8);

+        }

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_88);

+      }

+      plVar10 = (longlong *)

+                winrt::

+                single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                          ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                            *)&local_c8);

+      puVar3 = (undefined8 *)*plVar10;

+      if (puVar3 == (undefined8 *)0x0) {

+        local_88 = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+      }

+      else {

+        local_a0 = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+        (**(code **)*puVar3)

+                  (puVar3,&winrt::impl::

+                           guid_v<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                   ,&local_a0);

+        local_88 = local_a0;

+      }

+      iVar5 = RemoveRecommendationFromBlockList(&local_88);

+      if (iVar5 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0xcd,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                   iVar5);

+      }

+      winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+                ((ICoreApplicationPrivate *)&local_c8);

+      if (iVar5 < 0) {

+        pcVar7 = tip2::details::reason_string

+                           (

+                           "GraphFilesTip::HomeOperationSinkTestReason::remove_recommendation_from_blocklist_failed"

+                           );

+        tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                  ((shared_data<0,0,1> *)(*(longlong *)pcVar1 + 8),7,pcVar7);

+      }

+      winrt::impl::

+      removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+      ::

+      ~removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                ((removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                  *)&local_60);

+    }

+    local_78 = (IObjectCollection *)0x0;

+    local_70 = (IObjectCollection *)0x0;

+    if (*(longlong *)param_1 != 0) {

+      wil::com_ptr_t<IAgileReference,wil::err_exception_policy>::copy_to<IObjectCollection>

+                (param_1,&local_78);

+    }

+    if (*(longlong *)(param_1 + 8) != 0) {

+      wil::com_ptr_t<IAgileReference,wil::err_exception_policy>::copy_to<IObjectCollection>

+                (param_1 + 8,&local_70);

+    }

+    local_80 = 0;

+    local_7c = 0;

+    if ((local_78 != (IObjectCollection *)0x0) &&

+       (iVar5 = (**(code **)(*(longlong *)local_78 + 0x18))(local_78,&local_80), iVar5 < 0)) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0xda,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 iVar5);

+    }

+    if ((local_70 != (IObjectCollection *)0x0) &&

+       (iVar5 = (**(code **)(*(longlong *)local_70 + 0x18))(local_70,&local_7c), iVar5 < 0)) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0xdb,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 iVar5);

+    }

+    if ((local_80 != 0) && (local_80 == local_7c)) {

+      local_48 = 0;

+      uStack_40 = 0;

+      local_38 = 0;

+      local_60 = 0;

+      uStack_58 = 0;

+      local_50 = 0;

+      std::

+      vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+      ::reserve((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                 *)&local_48,(ulonglong)local_80);

+      std::

+      vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+      ::reserve((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                 *)&local_60,(ulonglong)local_80);

+      for (; pIVar11 = local_78, uVar13 < local_80; uVar13 = uVar13 + 1) {

+        local_a0 = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+        local_88 = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+        pcVar2 = *(code **)(*(longlong *)local_78 + 0x20);

+        ppvVar8 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&local_a0);

+        iVar5 = (*pcVar2)(pIVar11,uVar13,&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar8);

+        pIVar11 = local_70;

+        if (-1 < iVar5) {

+          pcVar2 = *(code **)(*(longlong *)local_70 + 0x20);

+          ppvVar8 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&local_88);

+          iVar5 = (*pcVar2)(pIVar11,uVar13,&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar8);

+          if (-1 < iVar5) {

+            pMVar9 = (MicrosoftGraphRecentItemInfo *)

+                     GraphRecentItemsManager::InstanceManager::

+                     CreateMicrosoftGraphRecentItemInfoFromShellItem

+                               ((InstanceManager *)pIVar11,&local_c8);

+            std::

+            vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+            ::emplace_back<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>

+                      ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                        *)&local_48,pMVar9);

+            this = (ICoreApplicationPrivate *)&local_c8;

+            winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::

+            ~ICoreApplicationPrivate(this);

+            pMVar9 = (MicrosoftGraphRecentItemInfo *)

+                     GraphRecentItemsManager::InstanceManager::

+                     CreateMicrosoftGraphRecentItemInfoFromShellItem

+                               ((InstanceManager *)this,&local_c0);

+            std::

+            vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+            ::emplace_back<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>

+                      ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                        *)&local_60,pMVar9);

+            winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::

+            ~ICoreApplicationPrivate((ICoreApplicationPrivate *)&local_c0);

+          }

+        }

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_88);

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_a0);

+      }

+      plVar10 = (longlong *)

+                winrt::

+                single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                          ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                            *)&local_c8);

+      puVar3 = (undefined8 *)*plVar10;

+      if (puVar3 == (undefined8 *)0x0) {

+        local_a0 = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+      }

+      else {

+        local_98 = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+        (**(code **)*puVar3)

+                  (puVar3,&winrt::impl::

+                           guid_v<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                   ,&local_98);

+        local_a0 = local_98;

+      }

+      plVar10 = (longlong *)

+                winrt::

+                single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                          ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                            *)&local_c0);

+      puVar3 = (undefined8 *)*plVar10;

+      if (puVar3 == (undefined8 *)0x0) {

+        local_d8[0] = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+      }

+      else {

+        local_98 = (com_ptr_t<IAgileReference,wil::err_exception_policy> *)0x0;

+        (**(code **)*puVar3)

+                  (puVar3,&winrt::impl::

+                           guid_v<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                   ,&local_98);

+        local_d8[0] = local_98;

+      }

+      iVar5 = UpdateItemsInRecommendedBlockList(local_d8,&local_a0);

+      if (iVar5 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0xff,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                   iVar5);

+      }

+      winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+                ((ICoreApplicationPrivate *)&local_c0);

+      winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+                ((ICoreApplicationPrivate *)&local_c8);

+      if (iVar5 < 0) {

+        pcVar7 = tip2::details::reason_string

+                           (

+                           "GraphFilesTip::HomeOperationSinkTestReason::update_recommendation_in_blocklist_failed"

+                           );

+        tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                  ((shared_data<0,0,1> *)(*(longlong *)pcVar1 + 8),8,pcVar7);

+      }

+      winrt::impl::

+      removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+      ::

+      ~removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                ((removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                  *)&local_60);

+      winrt::impl::

+      removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+      ::

+      ~removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                ((removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                  *)&local_48);

+    }

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_70);

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_78);

+  }

+  pcVar7 = tip2::details::reason_string

+                     (

+                     "GraphFilesTip::HomeOperationSinkTestReason::recommendation_blocklist_update_completed"

+                     );

+  tip2::details::shared_data<0,0,1>::set_flag_without_lock

+            ((shared_data<0,0,1> *)(*(longlong *)(param_2 + 0x38) + 8),2,pcVar7);

+  if (p_Stack_a8 != (_Ref_count_base *)0x0) {

+    std::_Ref_count_base::_Decref(p_Stack_a8);

+  }

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_68);

   return;

 }
```

## ``dynamic_atexit_destructor_for_'config_winrtSearchMode''`  (modified)

```diff
--- `dynamic_atexit_destructor_for_'config_winrtSearchMode''
+++ `dynamic_atexit_destructor_for_'config_winrtSearchMode''
@@ -1,31 +1,16 @@
 

-/* WARNING: Instruction at (ram,0x00018067338b) overlaps instruction at (ram,0x000180673386)

-    */

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

+/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

 

-undefined8 _dynamic_atexit_destructor_for__config_winrtSearchMode__(uint *param_1)

+void _dynamic_atexit_destructor_for__config_winrtSearchMode__(void)

 

 {

-  char *in_RAX;

-  undefined8 uVar1;

-  undefined8 *puVar2;

-  longlong unaff_RBP;

-  bool in_SF;

-  

-  if (in_SF) {

-    *in_RAX = *in_RAX + (char)in_RAX;

+  _config_winrtSearchMode = &fc::config_target<WinrtSearchModeProps>::_vftable_;

+  if (DAT_0 != 0) {

+    __FC_Unsubscribe();

+    DAT_0 = 0;

+    _DAT_1 = 0;

+    _DAT_2 = 0;

   }

-  uVar1 = (**(code **)((ulonglong)*param_1 + 8))();

-  *(undefined8 *)(unaff_RBP + 0xa8) = uVar1;

-  puVar2 = (undefined8 *)winrt::to_hstring<char_const*___ptr64,0>((char **)(unaff_RBP + 0xb0));

-  *(undefined8 *)(unaff_RBP + 0x50) = *puVar2;

-  winrt::hresult_error::hresult_error

-            ((hresult_error *)(unaff_RBP + 0x20),0x8000000b,unaff_RBP + 0x50,unaff_RBP + 0x38);

-  winrt::hresult_error::to_abi((hresult_error *)(unaff_RBP + 0x20));

-  winrt::hresult_error::~hresult_error((hresult_error *)(unaff_RBP + 0x20));

-  winrt::handle_type<winrt::impl::hstring_traits>::close

-            ((handle_type<winrt::impl::hstring_traits> *)(unaff_RBP + 0xb0));

-  return 0;

+  return;

 }
```

## `QueryUserAssocAndVerifyHash`  (modified)

```diff
--- QueryUserAssocAndVerifyHash
+++ QueryUserAssocAndVerifyHash
@@ -1,10 +1,740 @@
 

-/* WARNING: Control flow encountered bad instruction data */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 

-void QueryUserAssocAndVerifyHash(void)

+long QueryUserAssocAndVerifyHash

+               (undefined8 param_1,longlong *param_2,HKEY__ *param_3,undefined8 *param_4)

 

 {

-                    /* WARNING: Bad instruction - Truncating control flow here */

-  halt_baddata();

+  code *pcVar1;

+  longlong *plVar2;

+  HKEY__ *pHVar3;

+  bool bVar4;

+  long lVar5;

+  long lVar6;

+  ulong uVar7;

+  int iVar8;

+  long lVar9;

+  ushort **ppuVar10;

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  *puVar11;

+  HKEY__ *pHVar12;

+  uint uVar13;

+  ushort *puVar14;

+  HKEY__ *pHVar15;

+  HKEY__ *pHVar16;

+  HKEY__ *pHVar17;

+  void *unaff_retaddr;

+  undefined1 auStackY_3d8 [32];

+  char local_368;

+  undefined1 local_367 [7];

+  HKEY__ *local_360;

+  HKEY__ *local_358;

+  HKEY__ *local_350;

+  HKEY__ *local_348;

+  HKEY__ *local_340;

+  longlong *local_338;

+  HKEY__ *local_330;

+  HKEY__ *local_328;

+  HKEY__ *local_320;

+  HKEY__ *local_318;

+  HKEY__ *local_310;

+  _SYSTEMTIME local_308;

+  HKEY__ *local_2f8 [2];

+  ActivityBase<DefaultAssocLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+  local_2e8 [336];

+  ActivityBase<DefaultAssocLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+  local_198 [336];

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStackY_3d8;

+  *param_4 = 0;

+  local_358 = param_3;

+  bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation> *)

+                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AppDefaultHashRotation>::GetImpl(void)'

+                               ::__l2::impl);

+  if (bVar4) {

+    local_330 = (HKEY__ *)0x0;

+    bVar4 = HasAppDefaultsCapability(1);

+    pcVar1 = *(code **)(*param_2 + 0x20);

+    if (bVar4) {

+      ppuVar10 = wil::

+                 unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                 ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_330);

+      lVar5 = (*pcVar1)(param_2,L"UserChoiceLatest\\ProgId",L"ProgId",ppuVar10);

+      lVar6 = -0x7ff8fffe;

+      lVar9 = lVar6;

+      if (lVar5 == -0x7ff8fffe) goto LAB_0;

+      if (lVar5 < 0) {

+        uVar13 = 0x385;

+        goto LAB_1;

+      }

+      local_350 = (HKEY__ *)0x0;

+      pcVar1 = *(code **)(*param_2 + 0x20);

+      ppuVar10 = wil::

+                 unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                 ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_350);

+      lVar9 = (*pcVar1)(param_2,L"UserChoiceLatest",L"Hash",ppuVar10);

+      if (lVar9 == -0x7ff8fffe) {

+        if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+          McTemplateU0zz_EventWriteTransfer();

+        }

+        local_310 = local_330;

+        DefaultAssocTelemetry::

+        HashNotFound<unsigned_short*___ptr64,unsigned_short_const*___ptr64&___ptr64>

+                  ((ushort **)&local_310,(ushort **)&local_358);

+      }

+      else {

+        if (lVar9 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x391,

+                     "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp",

+                     lVar9);

+          wil::details::

+          unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      *)&local_350);

+          goto LAB_0;

+        }

+        local_338 = (longlong *)0x0;

+        pcVar1 = *(code **)*param_2;

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_338);

+        lVar6 = (*pcVar1)(param_2,&_GUID_d960050c_f4e1_4294_ac4b_598913605923,&local_338);

+        plVar2 = local_338;

+        if (lVar6 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x394,

+                     "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp",

+                     lVar6);

+        }

+        else {

+          local_348 = (HKEY__ *)0x0;

+          pcVar1 = *(code **)(*local_338 + 0x20);

+          wil::details::

+          unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>

+          ::reset((unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>

+                   *)&local_348,(HKEY__ *)0x0);

+          puVar14 = (ushort *)0x20019;

+          lVar6 = (*pcVar1)(plVar2,0x20019,&local_348);

+          if (lVar6 < 0) {

+            uVar13 = 0x397;

+LAB_2:

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,uVar13,

+                       "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                       ,lVar6);

+          }

+          else {

+            local_308.wYear = 0;

+            local_308.wMonth = 0;

+            local_308.wDayOfWeek = 0;

+            local_308.wDay = 0;

+            local_308.wHour = 0;

+            local_308.wMinute = 0;

+            local_308.wSecond = 0;

+            local_308.wMilliseconds = 0;

+            lVar6 = GetSystemTimeFromRegKey(local_348,puVar14,&local_308);

+            if (lVar6 < 0) {

+              uVar13 = 0x39b;

+              goto LAB_2;

+            }

+            local_328 = (HKEY__ *)0x0;

+            wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_328);

+            lVar6 = SHGetUserSid();

+            if (-1 < lVar6) {

+              local_340 = (HKEY__ *)0x0;

+              ppuVar10 = wil::

+                         unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                         ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                *)&local_340);

+              lVar6 = GetMachineID(ppuVar10);

+              if (lVar6 < 0) {

+                uVar13 = 0x3a1;

+LAB_3:

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,uVar13,

+                           "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                           ,lVar6);

+              }

+              else {

+                bVar4 = wil::details::

+                        FeatureImpl<__WilFeatureTraits_Feature_AppDefaultSkipVerifyBeforeMigration>

+                        ::__private_IsEnabled

+                                  ((FeatureImpl<__WilFeatureTraits_Feature_AppDefaultSkipVerifyBeforeMigration>

+                                    *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultSkipVerifyBeforeMigration>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AppDefaultSkipVerifyBeforeMigration>::GetImpl(void)'

+                                       ::__l2::impl);

+                if (bVar4) {

+                  local_368 = '\0';

+                  lVar6 = IsPendingMigration<<lambda_eb4d698cb29ca681a6a80049e44b788a>_>

+                                    (local_328,&local_368,local_367);

+                  if (lVar6 < 0) {

+                    uVar13 = 0x3af;

+                    goto LAB_3;

+                  }

+                  if (local_368 != '\0') {

+                    *param_4 = local_330;

+                    local_330 = (HKEY__ *)0x0;

+LAB_4:

+                    wil::details::

+                    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ::

+                    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                *)&local_340);

+                    wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    ::

+                    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                                *)&local_328);

+                    wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                    ::

+                    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                                *)&local_348);

+                    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                              ((ComPtr<IQuerySource> *)&local_338);

+                    wil::details::

+                    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ::

+                    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                *)&local_350);

+                    goto LAB_5;

+                  }

+                  local_320 = (HKEY__ *)0x0;

+                  bVar4 = wil::details::

+                          FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotationV1ToV2>::

+                          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotationV1ToV2>

+                                               *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotationV1ToV2>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AppDefaultHashRotationV1ToV2>::GetImpl(void)'

+                                                  ::__l2::impl);

+                  if (bVar4) {

+                    ppuVar10 = wil::

+                               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                      *)&local_320);

+                    pHVar12 = local_328;

+                    pHVar3 = local_330;

+                    pHVar16 = local_340;

+                    uVar7 = getAssociationsHashVersion();

+                    lVar6 = HashAssociationRotation

+                                      (uVar7,(ushort *)pHVar16,(ushort *)pHVar12,(ushort *)param_3,

+                                       (ushort *)pHVar3,&local_308,ppuVar10);

+                    if (lVar6 < 0) {

+                      uVar13 = 0x3bb;

+                      goto LAB_6;

+                    }

+LAB_7:

+                    iVar8 = CompareStringOrdinal((LPCWSTR)local_350,-1,(LPCWSTR)local_320,-1,0);

+                    if ((iVar8 == 2) || (bVar4 = IsLocalSystem((ushort *)local_328), bVar4)) {

+                      *param_4 = local_330;

+                      local_330 = (HKEY__ *)0x0;

+LAB_8:

+                      puVar11 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                 *)&local_320;

+                      goto LAB_9;

+                    }

+                    local_310 = local_320;

+                    local_318 = local_350;

+                    local_360 = local_330;

+                    DefaultAssocTelemetry::UserAssocVerifyHash::

+                    Start<unsigned_short*___ptr64,unsigned_short_const*___ptr64&___ptr64,unsigned_short*___ptr64,unsigned_short*___ptr64>

+                              ((ushort **)local_198,(ushort **)&local_360,(ushort **)&local_358,

+                               (ushort **)&local_318);

+                    pHVar16 = local_358;

+                    if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+                      McTemplateU0zzzzzhhhhhh_EventWriteTransfer();

+                    }

+                    local_2f8[0] = (HKEY__ *)0x0;

+                    wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           *)local_2f8);

+                    pHVar12 = pHVar16;

+                    pHVar15 = local_330;

+                    pHVar17 = local_328;

+                    TryToResetToRecommendedApp();

+                    pHVar3 = local_2f8[0];

+                    if (local_2f8[0] != (HKEY__ *)0x0) {

+                      local_2f8[0] = (HKEY__ *)0x0;

+                      *param_4 = pHVar3;

+                      wil::

+                      ActivityBase<DefaultAssocLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                      ::Stop(local_198,(long)pHVar15);

+                      wil::details::

+                      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ::

+                      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  *)local_2f8);

+                      DefaultAssocTelemetry::UserAssocVerifyHash::~UserAssocVerifyHash

+                                ((UserAssocVerifyHash *)local_198);

+                      goto LAB_8;

+                    }

+                    ClearUserChoice(pHVar12,(ushort *)pHVar16,SUB81(pHVar17,0));

+                    wil::

+                    ActivityBase<DefaultAssocLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                    ::Stop(local_198,(long)pHVar16);

+                    lVar6 = wil::details::in1diag3::Return_Win32

+                                      (unaff_retaddr,0x3ea,

+                                       "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                                       ,2);

+                    wil::details::

+                    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ::

+                    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                *)local_2f8);

+                    DefaultAssocTelemetry::UserAssocVerifyHash::~UserAssocVerifyHash

+                              ((UserAssocVerifyHash *)local_198);

+                  }

+                  else {

+                    ppuVar10 = wil::

+                               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                      *)&local_320);

+                    lVar6 = HashAssociationRotation

+                                      (1,(ushort *)local_340,(ushort *)local_328,(ushort *)param_3,

+                                       (ushort *)local_330,&local_308,ppuVar10);

+                    if (-1 < lVar6) goto LAB_7;

+                    uVar13 = 0x3c0;

+LAB_6:

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar13,

+                               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                               ,lVar6);

+                  }

+                  puVar11 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                             *)&local_320;

+                }

+                else {

+                  local_318 = (HKEY__ *)0x0;

+                  bVar4 = wil::details::

+                          FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotationV1ToV2>::

+                          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotationV1ToV2>

+                                               *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotationV1ToV2>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AppDefaultHashRotationV1ToV2>::GetImpl(void)'

+                                                  ::__l2::impl);

+                  if (bVar4) {

+                    ppuVar10 = wil::

+                               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                      *)&local_318);

+                    pHVar12 = local_328;

+                    pHVar3 = local_330;

+                    pHVar16 = local_340;

+                    uVar7 = getAssociationsHashVersion();

+                    lVar6 = HashAssociationRotation

+                                      (uVar7,(ushort *)pHVar16,(ushort *)pHVar12,(ushort *)param_3,

+                                       (ushort *)pHVar3,&local_308,ppuVar10);

+                    if (lVar6 < 0) {

+                      uVar13 = 0x3fa;

+                      goto LAB_10;

+                    }

+LAB_11:

+                    iVar8 = CompareStringOrdinal((LPCWSTR)local_350,-1,(LPCWSTR)local_318,-1,0);

+                    if ((iVar8 == 2) || (bVar4 = IsLocalSystem((ushort *)local_328), bVar4)) {

+                      *param_4 = local_330;

+                      local_330 = (HKEY__ *)0x0;

+LAB_12:

+                      puVar11 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                 *)&local_318;

+LAB_9:

+                      wil::details::

+                      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ::

+                      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                (puVar11);

+                      goto LAB_4;

+                    }

+                    local_360 = local_318;

+                    local_2f8[0] = local_350;

+                    local_320 = local_330;

+                    DefaultAssocTelemetry::UserAssocVerifyHash::

+                    Start<unsigned_short*___ptr64,unsigned_short_const*___ptr64&___ptr64,unsigned_short*___ptr64,unsigned_short*___ptr64>

+                              ((ushort **)local_2e8,(ushort **)&local_320,(ushort **)&local_358,

+                               (ushort **)local_2f8);

+                    pHVar16 = local_358;

+                    if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+                      McTemplateU0zzzzzhhhhhh_EventWriteTransfer();

+                    }

+                    local_310 = (HKEY__ *)0x0;

+                    wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           *)&local_310);

+                    pHVar12 = pHVar16;

+                    pHVar15 = local_330;

+                    pHVar17 = local_328;

+                    TryToResetToRecommendedApp();

+                    pHVar3 = local_310;

+                    if (local_310 != (HKEY__ *)0x0) {

+                      local_310 = (HKEY__ *)0x0;

+                      *param_4 = pHVar3;

+                      wil::

+                      ActivityBase<DefaultAssocLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                      ::Stop(local_2e8,(long)pHVar15);

+                      wil::details::

+                      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ::

+                      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  *)&local_310);

+                      DefaultAssocTelemetry::UserAssocVerifyHash::~UserAssocVerifyHash

+                                ((UserAssocVerifyHash *)local_2e8);

+                      goto LAB_12;

+                    }

+                    ClearUserChoice(pHVar12,(ushort *)pHVar16,SUB81(pHVar17,0));

+                    wil::

+                    ActivityBase<DefaultAssocLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                    ::Stop(local_2e8,(long)pHVar16);

+                    lVar6 = wil::details::in1diag3::Return_Win32

+                                      (unaff_retaddr,0x429,

+                                       "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                                       ,2);

+                    wil::details::

+                    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ::

+                    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                *)&local_310);

+                    DefaultAssocTelemetry::UserAssocVerifyHash::~UserAssocVerifyHash

+                              ((UserAssocVerifyHash *)local_2e8);

+                  }

+                  else {

+                    ppuVar10 = wil::

+                               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                      *)&local_318);

+                    lVar6 = HashAssociationRotation

+                                      (1,(ushort *)local_340,(ushort *)local_328,(ushort *)param_3,

+                                       (ushort *)local_330,&local_308,ppuVar10);

+                    if (-1 < lVar6) goto LAB_11;

+                    uVar13 = 0x3ff;

+LAB_10:

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar13,

+                               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                               ,lVar6);

+                  }

+                  puVar11 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                             *)&local_318;

+                }

+                wil::details::

+                unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ::

+                ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                          (puVar11);

+              }

+              wil::details::

+              unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ::

+              ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                          *)&local_340);

+            }

+            wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ::

+            ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_328);

+          }

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+          ::

+          ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                    ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_348);

+        }

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_338);

+      }

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_350);

+      lVar9 = lVar6;

+    }

+    else {

+      ppuVar10 = wil::

+                 unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                 ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_330);

+      lVar5 = (*pcVar1)(param_2,L"UserChoice",L"ProgId",ppuVar10);

+      lVar9 = -0x7ff8fffe;

+      if (lVar5 != -0x7ff8fffe) {

+        if (-1 < lVar5) {

+          *param_4 = local_330;

+          local_330 = (HKEY__ *)0x0;

+LAB_5:

+          puVar11 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                     *)&local_330;

+LAB_13:

+          wil::details::

+          unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    (puVar11);

+          return 0;

+        }

+        uVar13 = 0x377;

+LAB_1:

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,uVar13,

+                   "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp",

+                   lVar5);

+        lVar9 = lVar5;

+      }

+    }

+LAB_0:

+    puVar11 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+               *)&local_330;

+    goto LAB_14;

+  }

+  local_340 = (HKEY__ *)0x0;

+  pcVar1 = *(code **)(*param_2 + 0x20);

+  ppuVar10 = wil::

+             unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+             ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_340);

+  iVar8 = (*pcVar1)(param_2,L"UserChoice",L"ProgId",ppuVar10);

+  lVar9 = -0x7ff8fffe;

+  if (iVar8 != -0x7ff8fffe) {

+    if (iVar8 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x43e,

+                 "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp",iVar8

+                );

+      lVar9 = iVar8;

+    }

+    else {

+      bVar4 = HasAppDefaultsCapability(1);

+      if (bVar4) {

+        local_348 = (HKEY__ *)0x0;

+        pcVar1 = *(code **)(*param_2 + 0x20);

+        ppuVar10 = wil::

+                   unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                          *)&local_348);

+        iVar8 = (*pcVar1)(param_2,L"UserChoice",L"Hash",ppuVar10);

+        if (iVar8 == -0x7ff8fffe) {

+          if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+            McTemplateU0zz_EventWriteTransfer();

+          }

+          local_360 = local_340;

+          DefaultAssocTelemetry::

+          HashNotFound<unsigned_short*___ptr64,unsigned_short_const*___ptr64&___ptr64>

+                    ((ushort **)&local_360,(ushort **)&local_358);

+        }

+        else {

+          local_338 = (longlong *)0x0;

+          pcVar1 = *(code **)*param_2;

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_338);

+          lVar9 = (*pcVar1)(param_2,&_GUID_d960050c_f4e1_4294_ac4b_598913605923,&local_338);

+          plVar2 = local_338;

+          if (lVar9 < 0) {

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,0x453,

+                       "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                       ,lVar9);

+          }

+          else {

+            local_320 = (HKEY__ *)0x0;

+            pcVar1 = *(code **)(*local_338 + 0x20);

+            wil::details::

+            unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>

+            ::reset((unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>

+                     *)&local_320,(HKEY__ *)0x0);

+            puVar14 = (ushort *)0x20019;

+            lVar9 = (*pcVar1)(plVar2,0x20019,&local_320);

+            if (lVar9 < 0) {

+              uVar13 = 0x456;

+LAB_15:

+              wil::details::in1diag3::Return_Hr

+                        (unaff_retaddr,uVar13,

+                         "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                         ,lVar9);

+            }

+            else {

+              local_308.wYear = 0;

+              local_308.wMonth = 0;

+              local_308.wDayOfWeek = 0;

+              local_308.wDay = 0;

+              local_308.wHour = 0;

+              local_308.wMinute = 0;

+              local_308.wSecond = 0;

+              local_308.wMilliseconds = 0;

+              lVar9 = GetTruncatedSystemTimeFromRegKey(local_320,puVar14,&local_308);

+              if (lVar9 < 0) {

+                uVar13 = 0x459;

+                goto LAB_15;

+              }

+              local_318 = (HKEY__ *)0x0;

+              wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_318);

+              lVar9 = SHGetUserSid();

+              if (-1 < lVar9) {

+                local_350 = (HKEY__ *)0x0;

+                ppuVar10 = wil::

+                           unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                  *)&local_350);

+                lVar9 = HashAssociation((ushort *)local_318,(ushort *)param_3,(ushort *)local_340,

+                                        &local_308,ppuVar10);

+                if (-1 < lVar9) {

+                  iVar8 = CompareStringOrdinal((LPCWSTR)local_348,-1,(LPCWSTR)local_350,-1,0);

+                  if ((iVar8 == 2) || (bVar4 = IsLocalSystem((ushort *)local_318), bVar4)) {

+                    *param_4 = local_340;

+                    local_340 = (HKEY__ *)0x0;

+                  }

+                  else {

+                    local_360 = local_350;

+                    local_2f8[0] = local_348;

+                    local_328 = local_340;

+                    DefaultAssocTelemetry::UserAssocVerifyHash::

+                    Start<unsigned_short*___ptr64,unsigned_short_const*___ptr64&___ptr64,unsigned_short*___ptr64,unsigned_short*___ptr64>

+                              ((ushort **)local_2e8,(ushort **)&local_328,(ushort **)&local_358,

+                               (ushort **)local_2f8);

+                    pHVar16 = local_358;

+                    if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+                      McTemplateU0zzzzzhhhhhh_EventWriteTransfer();

+                    }

+                    local_310 = (HKEY__ *)0x0;

+                    wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           *)&local_310);

+                    pHVar12 = pHVar16;

+                    pHVar15 = local_340;

+                    pHVar17 = local_318;

+                    TryToResetToRecommendedApp();

+                    pHVar3 = local_310;

+                    if (local_310 == (HKEY__ *)0x0) {

+                      ClearUserChoice(pHVar12,(ushort *)pHVar16,SUB81(pHVar17,0));

+                      wil::

+                      ActivityBase<DefaultAssocLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                      ::Stop(local_2e8,(long)pHVar16);

+                      lVar9 = wil::details::in1diag3::Return_Win32

+                                        (unaff_retaddr,0x47e,

+                                         "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                                         ,2);

+                      wil::details::

+                      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ::

+                      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  *)&local_310);

+                      DefaultAssocTelemetry::UserAssocVerifyHash::~UserAssocVerifyHash

+                                ((UserAssocVerifyHash *)local_2e8);

+                      goto LAB_16;

+                    }

+                    local_310 = (HKEY__ *)0x0;

+                    *param_4 = pHVar3;

+                    wil::

+                    ActivityBase<DefaultAssocLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                    ::Stop(local_2e8,(long)pHVar15);

+                    wil::details::

+                    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ::

+                    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                *)&local_310);

+                    DefaultAssocTelemetry::UserAssocVerifyHash::~UserAssocVerifyHash

+                              ((UserAssocVerifyHash *)local_2e8);

+                  }

+                  wil::details::

+                  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ::

+                  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              *)&local_350);

+                  wil::

+                  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ::

+                  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                              *)&local_318);

+                  wil::

+                  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                  ::

+                  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                              *)&local_320);

+                  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                            ((ComPtr<IQuerySource> *)&local_338);

+                  wil::details::

+                  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ::

+                  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              *)&local_348);

+                  puVar11 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                             *)&local_340;

+                  goto LAB_13;

+                }

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,0x45f,

+                           "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                           ,lVar9);

+LAB_16:

+                wil::details::

+                unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ::

+                ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                          ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                            *)&local_350);

+              }

+              wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ::

+              ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                        ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                          *)&local_318);

+            }

+            wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+            ::

+            ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                      ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_320);

+          }

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_338);

+        }

+        wil::details::

+        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    *)&local_348);

+      }

+      else {

+        *param_4 = local_340;

+        local_340 = (HKEY__ *)0x0;

+        lVar9 = 0;

+      }

+    }

+  }

+  puVar11 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+             *)&local_340;

+LAB_14:

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            (puVar11);

+  return lVar9;

 }
```

## `UpdateFrequentFolders`  (modified)

```diff
--- UpdateFrequentFolders
+++ UpdateFrequentFolders
@@ -1,19 +1,19 @@
 

-void UpdateFrequentFolders(void)

+void UpdateFrequentFolders(longlong param_1,longlong param_2)

 

 {

-  undefined8 in_RAX;

-  undefined8 *unaff_RBX;

+  char *pcVar1;

   

-  *(undefined4 *)(unaff_RBX + 0x24) = 0;

-  unaff_RBX[0x25] = 0;

-  unaff_RBX[0x26] = 0;

-  unaff_RBX[0x27] = 0;

-  unaff_RBX[0x28] = 0;

-  unaff_RBX[0x29] = 0;

-  *unaff_RBX = in_RAX;

-  unaff_RBX[0x20] = unaff_RBX + 2;

-  *(undefined4 *)(unaff_RBX + 0x2a) = 1;

+  <lambda_b7cda262cf2bc5ddedc14993aec0024c>::operator()(param_1,param_1 + 0x28,5);

+  <lambda_b7cda262cf2bc5ddedc14993aec0024c>::operator()();

+  <lambda_b7cda262cf2bc5ddedc14993aec0024c>::operator()();

+  <lambda_b7cda262cf2bc5ddedc14993aec0024c>::operator()();

+  <lambda_b7cda262cf2bc5ddedc14993aec0024c>::operator()();

+  pcVar1 = tip2::details::reason_string

+                     ("GraphFilesTip::HomeOperationSinkTestReason::frequent_folder_update_completed"

+                     );

+  tip2::details::shared_data<0,0,1>::set_flag_without_lock

+            ((shared_data<0,0,1> *)(*(longlong *)(param_2 + 0x38) + 8),3,pcVar1);

   return;

 }
```

## `_GetServerInfo`  (modified)

```diff
--- _GetServerInfo
+++ _GetServerInfo
@@ -1,31 +1,93 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* long __cdecl _GetServerInfo(unsigned short const * __ptr64,struct _GUID const & __ptr64,unsigned

+   short * __ptr64,unsigned int,int * __ptr64) */

 

 long __cdecl

 _GetServerInfo(ushort *param_1,_GUID *param_2,ushort *param_3,uint param_4,int *param_5)

 

 {

-  int iVar1;

+  bool bVar1;

+  uint uVar2;

+  long lVar3;

+  LSTATUS LVar4;

+  uint uVar5;

   undefined4 in_register_0000008c;

-  longlong in_R11;

-  ushort *in_stack_00000050;

+  HKEY hKey;

+  undefined1 auStackY_228 [32];

+  HKEY local_1f8;

+  DWORD local_1f0 [2];

+  ushort local_1e8 [40];

+  WCHAR local_198 [168];

+  ulonglong local_48;

   

-  *(undefined8 *)(in_R11 + -0x28) = 0;

-  *(undefined8 *)(in_R11 + -0x20) = 0xffffffffffffffff;

-  *(undefined8 *)(in_R11 + -0x18) = 0xffffffffffffffff;

-  *(undefined8 *)(in_R11 + -0x38) = 0;

-  *(undefined8 *)(in_R11 + -0x40) = 0;

-  *(undefined8 *)(in_R11 + -0x48) = 0;

-  *(undefined8 *)(in_R11 + -0x50) = 0;

-  *(undefined8 *)(in_R11 + -0x58) = 0;

-  iVar1 = func_0x0001801b9168(param_1,param_2,0,in_R11 + -0x28);

-  if (-1 < iVar1) {

-    iVar1 = InitPropVariantFromString

-                      (in_stack_00000050,(tagPROPVARIANT *)CONCAT44(in_register_0000008c,param_4));

+  local_48 = __security_cookie ^ (ulonglong)auStackY_228;

+  *param_3 = 0;

+  uVar2 = Ordinal_24(param_2,local_1e8,0x27,CONCAT44(in_register_0000008c,param_4));

+  if (-1 < (int)uVar2) {

+    local_1f0[0] = 0;

+    lVar3 = SHIsCurrentAppElevated((int *)local_1f0);

+    if (((lVar3 < 0) || (local_1f0[0] != 0)) || (bVar1 = IsWUDFHostProcess(), bVar1)) {

+      lVar3 = StringCchCopyW((ushort *)local_198,0xa7,(ushort *)L"Software\\Classes\\");

+      hKey = (HKEY)0xffffffff80000002;

+      if (lVar3 < 0) {

+        return lVar3;

+      }

+    }

+    else {

+      hKey = (HKEY)0xffffffff80000000;

+      local_198[0] = L'\0';

+    }

+    uVar2 = StringCchCatW((ushort *)local_198,0xa7,(ushort *)L"CLSID\\");

+    if (((-1 < (int)uVar2) &&

+        (uVar2 = StringCchCatW((ushort *)local_198,0xa7,local_1e8), -1 < (int)uVar2)) &&

+       (uVar2 = StringCchCatW((ushort *)local_198,0xa7,param_1), -1 < (int)uVar2)) {

+      local_1f8 = (HKEY)0x0;

+      LVar4 = RegOpenKeyExW(hKey,local_198,0,1,&local_1f8);

+      if (LVar4 == 0) {

+        local_1f0[0] = 0x208;

+        uVar5 = SHQueryValueExW(local_1f8,(LPCWSTR)0x0,(DWORD *)0x0,(DWORD *)0x0,param_3,local_1f0);

+        if (*param_3 == 0) {

+          if ((uVar5 & 0xfffffffd) == 0) {

+            uVar2 = 0x80040154;

+          }

+          else {

+            uVar2 = uVar5;

+            if (0 < (int)uVar5) {

+              uVar2 = uVar5 & 0xffff | 0x80070000;

+            }

+          }

+        }

+        if (param_5 != (int *)0x0) {

+          LVar4 = SHQueryValueExW(local_1f8,L"LoadWithoutCOM",(DWORD *)0x0,(DWORD *)0x0,(void *)0x0,

+                                  (DWORD *)0x0);

+          *param_5 = (uint)(LVar4 == 0);

+          bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61014170>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_61014170> *)

+                                      &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61014170>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61014170>::GetImpl(void)'

+                                       ::__l2::impl);

+          if ((bVar1) &&

+             (LVar4 = SHQueryValueExW(local_1f8,L"LoadWithoutCom_61014170",(DWORD *)0x0,(DWORD *)0x0

+                                      ,(void *)0x0,(DWORD *)0x0), LVar4 == 0)) {

+            *param_5 = 1;

+          }

+          bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_61766564> *)

+                                      &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61766564>::GetImpl(void)'

+                                       ::__l2::impl);

+          if ((bVar1) && (*param_5 == 0)) {

+            LVar4 = SHQueryValueExW(local_1f8,L"LoadWithoutCom_61766564",(DWORD *)0x0,(DWORD *)0x0,

+                                    (void *)0x0,(DWORD *)0x0);

+            *param_5 = (uint)(LVar4 == 0);

+          }

+        }

+        RegCloseKey(local_1f8);

+      }

+      else if (LVar4 == 2) {

+        uVar2 = 0x80040154;

+      }

+    }

   }

-  if (in_stack_00000050 != (ushort *)0x0) {

-    CoTaskMemFree(in_stack_00000050);

-  }

-  return iVar1;

+  return uVar2;

 }
```

## `fc_details_GetHostModuleHandle`  (modified)

```diff
--- fc_details_GetHostModuleHandle
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_Standalone_Future>::__private_IsEnabled
@@ -1,12 +1,20 @@
 

-/* struct HINSTANCE__ * __ptr64 __cdecl fc_details_GetHostModuleHandle(void) */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_Standalone_Future>::__private_IsEnabled(enum wil::ReportingKind)

+   __ptr64 */

 

-HINSTANCE__ * __cdecl fc_details_GetHostModuleHandle(void)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_Standalone_Future>::__private_IsEnabled

+          (FeatureImpl<__WilFeatureTraits_Feature_Standalone_Future> *this,ReportingKind param_1)

 

 {

-  if (g_fc_details_hostModuleHandle == (HINSTANCE__ *)0x0) {

-    GetModuleHandleExW(0,L"kernelbase",&g_fc_details_hostModuleHandle);

-  }

-  return g_fc_details_hostModuleHandle;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res18;

+  

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res18 & 1),in_R8D,in_R9);

+  Feature_Standalone_Future__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res18 & 1);

 }
```

## `_SHCoCreateInstance`  (modified)

```diff
--- _SHCoCreateInstance
+++ _SHCoCreateInstance
@@ -1,53 +1,172 @@
 

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-/* public: virtual long __cdecl CItemImageStoreOverItemStore::GetValue(struct _tagpropertykey const

-   & __ptr64,struct tagPROPVARIANT * __ptr64) __ptr64 */

+/* long __cdecl _SHCoCreateInstance(struct _GUID const & __ptr64,struct IUnknown * __ptr64,unsigned

+   long,int,enum EXTCOCREATEFLAGS,struct _GUID const & __ptr64,void * __ptr64 * __ptr64) */

 

 long __cdecl

 _SHCoCreateInstance(_GUID *param_1,IUnknown *param_2,ulong param_3,int param_4,

                    EXTCOCREATEFLAGS param_5,_GUID *param_6,void **param_7)

 

 {

-  longlong *plVar1;

-  int iVar2;

-  undefined4 in_register_00000084;

-  undefined8 *puVar3;

-  undefined1 auStack_98 [32];

-  longlong *plStack_78;

-  uchar *puStack_70;

-  GUID *pGStack_68;

-  longlong **pplStack_60;

-  undefined8 uStack_58;

-  undefined8 uStack_50;

-  undefined8 *local_48;

-  longlong *plStack_38;

-  ulonglong uStack_30;

+  bool bVar1;

+  bool bVar2;

+  int iVar3;

+  long lVar4;

+  int iVar5;

+  HRESULT HVar6;

+  ExtLoadPolicy EVar7;

+  DWORD DVar8;

+  LPWSTR pWVar9;

+  HMODULE hLibModule;

+  ulonglong uVar10;

+  ReportingKind RVar11;

+  _GUID *p_Var12;

+  _GUID *p_Var13;

+  undefined1 auStackY_2e8 [32];

+  int local_2b8;

+  int local_2b4;

+  ushort local_2a8 [40];

+  WCHAR local_258 [264];

+  ulonglong local_48;

   

-  puVar3 = (undefined8 *)CONCAT44(in_register_00000084,param_3);

-  uStack_30 = __security_cookie ^ (ulonglong)auStack_98;

-  plVar1 = *(longlong **)(param_1 + 1);

-  pplStack_60 = &plStack_38;

-  plStack_38 = (longlong *)0x0;

-  *puVar3 = 0;

-  puVar3[1] = 0;

-  puVar3[2] = 0;

-  pGStack_68 = &_GUID_3017056d_9a91_4e90_937d_746c72abbf4f;

-  puStack_70 = (uchar *)((ulonglong)puStack_70 & 0xffffffff00000000);

-  plStack_78 = (longlong *)0x0;

-  iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1,0,param_1[1].Data4,0);

-  if (-1 < iVar2) {

-    uStack_50 = 0;

-    uStack_58 = 0;

-    pplStack_60 = (longlong **)0x0;

-    pGStack_68 = (GUID *)0x0;

-    plStack_78 = plVar1;

-    puStack_70 = param_1[1].Data4;

-    local_48 = puVar3;

-    iVar2 = func_0x0001800ed570(plStack_38,param_2,1);

-    (**(code **)(*plStack_38 + 0x10))();

+  local_48 = __security_cookie ^ (ulonglong)auStackY_2e8;

+  bVar1 = false;

+  *param_7 = (void *)0x0;

+  local_2b4 = param_4;

+  iVar3 = Ordinal_24(param_1,local_2a8,0x27);

+  if (iVar3 < 0) {

+    return -0x7fffbffb;

   }

-  return iVar2;

+  local_2b8 = 0;

+  local_258[0] = L'\0';

+  if (((param_3 & 1) != 0) && ((param_5 & 1) == 0)) {

+    p_Var12 = param_6;

+    lVar4 = _CreateFromDllGetClassObject(DllGetClassObject,param_1,param_2,param_6,param_7);

+    param_4 = (int)p_Var12;

+    if (lVar4 == -0x7ffbfeef) {

+      p_Var12 = param_1;

+      p_Var13 = param_6;

+      lVar4 = _CreateFromSystem32Dll((ushort *)L"shell32.dll",param_1,param_2,param_6,param_7);

+      param_4 = (int)p_Var13;

+      RVar11 = (ReportingKind)p_Var12;

+      if (lVar4 == -0x7ffbfeef) {

+        bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61014170>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61014170> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61014170>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61014170>::GetImpl(void)'

+                            ::__l2::impl);

+        if (!bVar2) {

+          p_Var12 = param_1;

+          p_Var13 = param_6;

+          lVar4 = _CreateFromSystem32Dll

+                            ((ushort *)L"windows.system.launcher.dll",param_1,param_2,param_6,

+                             param_7);

+          param_4 = (int)p_Var13;

+          RVar11 = (ReportingKind)p_Var12;

+        }

+        bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61766564> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61766564>::GetImpl(void)'

+                            ::__l2::impl);

+        if (((!bVar2) &&

+            (bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61110674>::

+                     __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_61110674> *)

+                                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61110674>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61110674>::GetImpl(void)'

+                                          ::__l2::impl,RVar11), bVar2)) && (lVar4 == -0x7ffbfeef)) {

+          p_Var12 = param_6;

+          lVar4 = _CreateFromSystem32Dll

+                            ((ushort *)L"windows.fileexplorer.common.dll",param_1,param_2,param_6,

+                             param_7);

+          param_4 = (int)p_Var12;

+        }

+      }

+    }

+    if ((lVar4 + 0x80000000U & 0x80000000) != 0) {

+      return lVar4;

+    }

+    if (lVar4 == -0x7fffbffe) {

+      return -0x7fffbffe;

+    }

+  }

+  iVar3 = local_2b4;

+  if (((byte)param_3 & 0x17) == 1) {

+    bVar1 = true;

+    lVar4 = _GetServerInfo((ushort *)L"\\InProcServer32",param_1,(ushort *)local_258,param_4,

+                           &local_2b8);

+    if (lVar4 < 0) {

+      return lVar4;

+    }

+    iVar3 = local_2b4;

+    if (lVar4 == 0) {

+      pWVar9 = PathFindFileNameW(local_258);

+      iVar3 = StrCmpICW(pWVar9,L"windows.storage.dll");

+      if (iVar3 == 0) {

+LAB_0:

+        if ((param_5 & 1) != 0) {

+          HVar6 = CoCreateInstance(param_1,param_2,param_3,param_6,param_7);

+          return HVar6;

+        }

+        return -0x7ffbfeef;

+      }

+      pWVar9 = PathFindFileNameW(local_258);

+      iVar5 = StrCmpICW(pWVar9,L"shell32.dll");

+      iVar3 = local_2b4;

+      if (iVar5 == 0) goto LAB_0;

+    }

+LAB_1:

+    EVar7 = 2;

+    if (iVar3 != 0) goto LAB_2;

+LAB_3:

+    DVar8 = CoCreateInstance(param_1,param_2,param_3,param_6,param_7);

+    if ((int)DVar8 < 0) {

+      if ((EVar7 == 1) && (DVar8 == 0x80040154)) goto LAB_4;

+      if (!bVar1) {

+        return DVar8;

+      }

+      if (local_2b8 == 0) {

+        return DVar8;

+      }

+      if ((DVar8 != 0x80040155) && (DVar8 != 0x800401f0)) {

+        return DVar8;

+      }

+      *param_7 = (void *)0x0;

+      hLibModule = LoadLibraryExW(local_258,(HANDLE)0x0,8);

+      if (hLibModule == (HMODULE)0x0) {

+        DVar8 = GetLastError();

+        if (0 < (int)DVar8) {

+          DVar8 = DVar8 & 0xffff | 0x80070000;

+        }

+        if (-1 < (int)DVar8) {

+          DVar8 = 0x80004005;

+        }

+      }

+      else {

+        DVar8 = _CreateFromModule(hLibModule,param_1,param_2,param_6,param_7);

+        if ((int)DVar8 < 0) {

+          FreeLibrary(hLibModule);

+        }

+      }

+      if ((int)DVar8 < 0) {

+        return DVar8;

+      }

+    }

+    if ((bVar1) && (uVar10 = Ordinal_193(0,param_1), (uVar10 & 8) != 0)) {

+      SHPinDllOfCLSID(param_1);

+    }

+  }

+  else {

+    if ((local_2b4 == 0) ||

+       (lVar4 = _GetServerInfo((ushort *)L"\\InProcServer32",param_1,(ushort *)local_258,param_4,

+                               (int *)0x0), -1 < lVar4)) goto LAB_1;

+    _GetServerInfo((ushort *)L"\\LocalServer32",param_1,(ushort *)local_258,param_4,(int *)0x0);

+LAB_2:

+    EVar7 = _ShouldLoadShellExt(param_1,local_2a8,param_6,param_3,param_5,(ushort *)local_258);

+    if (EVar7 == 0) {

+      return -0x7ff8fffb;

+    }

+    if ((EVar7 != 1) || (param_3 = param_3 & 0xfffffffe, !bVar1)) goto LAB_3;

+LAB_4:

+    DVar8 = 0x80270301;

+  }

+  return DVar8;

 }
```

## `SubmitScopeExpansionSignal`  (modified)

```diff
--- SubmitScopeExpansionSignal
+++ SubmitScopeExpansionSignal
@@ -1,323 +1,67 @@
 

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* void __cdecl SubmitScopeExpansionSignal(struct IShellItem2 * __ptr64,unsigned int) */

 

 void __cdecl SubmitScopeExpansionSignal(IShellItem2 *param_1,uint param_2)

 

 {

-  char *pcVar1;

-  code *pcVar2;

-  uint uVar3;

-  longlong *plVar4;

-  ushort *puVar5;

-  int iVar6;

-  HRESULT HVar7;

-  byte *in_RAX;

-  ushort **ppuVar8;

-  longlong unaff_RBX;

-  undefined4 uVar9;

-  ushort *unaff_RDI;

-  SCOPE_EXPANSION_SIGNAL_DATA *pSVar10;

-  uint unaff_R13D;

-  uint uVar11;

-  ulonglong uVar12;

-  SCOPE_EXPANSION_SIGNAL_DATA *pSVar13;

-  uint uVar14;

-  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

-  *pbVar15;

-  ushort in_stack_00000040;

-  undefined6 in_stack_00000042;

-  undefined8 in_stack_00000048;

-  ushort *in_stack_00000050;

-  undefined8 in_stack_00000058;

-  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

-  *in_stack_00000060;

-  undefined4 uStack0000000000000070;

-  longlong *in_stack_00000078;

-  uint in_stack_00000088;

-  int iStack0000000000000090;

-  undefined4 uStack0000000000000094;

-  ushort *in_stack_000000a8;

-  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

-  *in_stack_000000d0;

-  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

-  *in_stack_000000d8;

-  SCOPE_EXPANSION_SIGNAL_DATA *in_stack_000000f0;

-  SCOPE_EXPANSION_SIGNAL_DATA *in_stack_000000f8;

-  SCOPE_EXPANSION_SIGNAL_DATA *in_stack_00000100;

-  void *in_stack_00000128;

+  code *pcVar1;

+  int iVar2;

+  ushort **ppuVar3;

+  bool bVar4;

+  undefined1 auStack_58 [40];

+  undefined8 local_30;

+  uint local_28;

+  undefined8 local_20;

+  short *local_18;

+  ulonglong local_10;

   

-  pcVar1 = (char *)(unaff_RBX + -0x11 + (longlong)param_1 * 4);

-  *pcVar1 = *pcVar1 + ((byte)in_RAX & *in_RAX);

-  pSVar10 = in_stack_000000f8;

-  pSVar13 = in_stack_00000100;

-  pbVar15 = in_stack_000000d0;

-  for (; plVar4 = in_stack_00000078, uVar9 = SUB84(unaff_RDI,0), unaff_R13D < in_stack_00000088;

-      unaff_R13D = unaff_R13D + 1) {

-    pcVar2 = *(code **)(*in_stack_00000078 + 0x20);

-    in_stack_000000a8 = unaff_RDI;

-    wil::com_ptr_t<IShellItem,wil::err_returncode_policy>::reset

-              ((com_ptr_t<IShellItem,wil::err_returncode_policy> *)&stack0x000000a8);

-    iVar6 = (*pcVar2)(plVar4,unaff_R13D,&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,&stack0x000000a8

-                     );

-    puVar5 = in_stack_000000a8;

-    if (-1 < iVar6) {

-      pcVar2 = *(code **)(*(longlong *)in_stack_000000a8 + 0x28);

-      _iStack0000000000000090 = unaff_RDI;

-      ppuVar8 = wil::

-                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

-                ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

-                       *)&stack0x00000090);

-      iVar6 = (*pcVar2)(puVar5,0x80058000,ppuVar8);

-      if (((-1 < iVar6) && (_iStack0000000000000090 != (ushort *)0x0)) &&

-         (*_iStack0000000000000090 != (ushort)unaff_RDI)) {

-        uStack0000000000000070 = (undefined4)((ulonglong)unaff_RDI >> 0x20);

-        iVar6 = (*(code *)**(undefined8 **)in_stack_000000a8)

-                          (in_stack_000000a8,&_GUID_7e9fb0d3_919f_4307_ab2e_9b1860310c93,

-                           &stack0x000000e8);

-        if (-1 < iVar6) {

-          (**(code **)(*(longlong *)unaff_RDI + 0x78))

-                    (unaff_RDI,&PKEY_DateAccessed,&stack0x000000c0);

-        }

-        std::

-        basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

-        ::

-        basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

-                  ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

-                    *)&stack0x00000040,_iStack0000000000000090);

-        if (pbVar15 == in_stack_000000d8) {

-          std::

-          vector<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>

-          ::

-          _Emplace_reallocate<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

-                    ((vector<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>

-                      *)&stack0x000000c8,pbVar15,

-                     (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

-                      *)&stack0x00000040);

-        }

-        else {

-          *(undefined8 *)pbVar15 = 0;

-          *(undefined8 *)(pbVar15 + 8) = 0;

-          *(ushort **)(pbVar15 + 0x10) = unaff_RDI;

-          *(ushort **)(pbVar15 + 0x18) = unaff_RDI;

-          *(ulonglong *)pbVar15 = CONCAT62(in_stack_00000042,in_stack_00000040);

-          *(undefined8 *)(pbVar15 + 8) = in_stack_00000048;

-          *(ushort **)(pbVar15 + 0x10) = in_stack_00000050;

-          *(undefined8 *)(pbVar15 + 0x18) = in_stack_00000058;

-          in_stack_00000058 = 7;

-          in_stack_000000d0 = pbVar15 + 0x20;

-          in_stack_00000040 = (ushort)unaff_RDI;

-          in_stack_00000050 = unaff_RDI;

-        }

-        pbVar15 = in_stack_000000d0;

-        std::

-        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

-        ::

-        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

-                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

-                    *)&stack0x00000040);

-        in_stack_00000060 = pbVar15 + -0x20;

-        if (7 < *(ulonglong *)(pbVar15 + -8)) {

-          in_stack_00000060 =

-               *(basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

-                 **)in_stack_00000060;

-        }

-        if (pSVar10 == pSVar13) {

-          std::vector<SCOPE_EXPANSION_SIGNAL_DATA,std::allocator<SCOPE_EXPANSION_SIGNAL_DATA>_>::

-          _Emplace_reallocate<SCOPE_EXPANSION_SIGNAL_DATA_const&___ptr64>

-                    ((vector<SCOPE_EXPANSION_SIGNAL_DATA,std::allocator<SCOPE_EXPANSION_SIGNAL_DATA>_>

-                      *)&stack0x000000f0,pSVar10,(SCOPE_EXPANSION_SIGNAL_DATA *)&stack0x00000060);

-          pSVar13 = in_stack_00000100;

-        }

-        else {

-          *(basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

-            **)pSVar10 = in_stack_00000060;

-          *(ulonglong *)(pSVar10 + 8) = CONCAT44(uVar9,uVar9);

-          *(ulonglong *)(pSVar10 + 0x10) = CONCAT44(uVar9,uStack0000000000000070);

-          in_stack_000000f8 = pSVar10 + 0x18;

-        }

-        pSVar10 = in_stack_000000f8;

-        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                  ((CComPtrBase<IKnownFolderManager> *)&stack0x000000e8);

-      }

-      wil::details::

-      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

-      ::

-      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

-                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

-                  *)&stack0x00000090);

-    }

-    ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-              ((CComPtrBase<IKnownFolderManager> *)&stack0x000000a8);

+  local_10 = __security_cookie ^ (ulonglong)auStack_58;

+  LOCK();

+  bVar4 = DAT_0 == 0;

+  if (bVar4) {

+    DAT_0 = 1;

   }

-  if (in_stack_000000f0 == pSVar10) {

-    MarkMRUBootstrapPerformed();

-    std::vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>::

-    ~vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>

-              ((vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_> *)&stack0x000000c8);

-    if (in_stack_000000f0 != (SCOPE_EXPANSION_SIGNAL_DATA *)0x0) {

-      std::_Deallocate<16,0>

-                (in_stack_000000f0,((longlong)pSVar13 - (longlong)in_stack_000000f0 >> 3) << 3);

-    }

-    ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-              ((CComPtrBase<IKnownFolderManager> *)&stack0x00000078);

-    ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-              ((CComPtrBase<IKnownFolderManager> *)&stack0x00000080);

+  UNLOCK();

+  if (bVar4) {

+    Windows::Internal::ComTaskPool::QueueTask<<lambda_82e713ba39f085e3735643884fcd2fb6>_>();

   }

-  else {

-    HVar7 = CoCreateInstance((IID *)&_GUID_7d096c5f_ac08_4f1f_beb7_5c22c517ce39,(LPUNKNOWN)0x0,4,

-                             (IID *)&_GUID_ab310581_ac80_11d1_8df3_00c04fb6ef69,

-                             (LPVOID *)&stack0x000000b0);

-    if (HVar7 < 0) {

-      wil::details::in1diag3::Return_Hr

-                (in_stack_00000128,0x7b9,"onecoreuap\\shell\\windows.storage\\recdocs.cpp",HVar7);

-      wil::com_ptr_t<IServiceProvider,wil::err_exception_policy>::

-      ~com_ptr_t<IServiceProvider,wil::err_exception_policy>

-                ((com_ptr_t<IServiceProvider,wil::err_exception_policy> *)&stack0x00000098);

-      ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                ((CComPtrBase<IKnownFolderManager> *)&stack0x000000a0);

-      ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                ((CComPtrBase<IKnownFolderManager> *)&stack0x000000b0);

-      std::vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>::

-      ~vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>

-                ((vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_> *)&stack0x000000c8);

-      if (in_stack_000000f0 != (SCOPE_EXPANSION_SIGNAL_DATA *)0x0) {

-        std::_Deallocate<16,0>

-                  (in_stack_000000f0,((longlong)pSVar13 - (longlong)in_stack_000000f0 >> 3) << 3);

-      }

-      ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                ((CComPtrBase<IKnownFolderManager> *)&stack0x00000078);

-      ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                ((CComPtrBase<IKnownFolderManager> *)&stack0x00000080);

-    }

-    else {

-      pcVar2 = *(code **)(*(longlong *)unaff_RDI + 0x50);

-      if (unaff_RDI != (ushort *)0x0) {

-        (**(code **)(*(longlong *)unaff_RDI + 0x10))();

-      }

-      iVar6 = (*pcVar2)(unaff_RDI,L"SystemIndex",&stack0x000000a0);

-      if (iVar6 < 0) {

-        wil::details::in1diag3::Return_Hr

-                  (in_stack_00000128,0x7ba,"onecoreuap\\shell\\windows.storage\\recdocs.cpp",iVar6);

-        wil::com_ptr_t<IServiceProvider,wil::err_exception_policy>::

-        ~com_ptr_t<IServiceProvider,wil::err_exception_policy>

-                  ((com_ptr_t<IServiceProvider,wil::err_exception_policy> *)&stack0x00000098);

-        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                  ((CComPtrBase<IKnownFolderManager> *)&stack0x000000a0);

-        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                  ((CComPtrBase<IKnownFolderManager> *)&stack0x000000b0);

-        std::vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>::

-        ~vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>

-                  ((vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_> *)&stack0x000000c8);

-        if (in_stack_000000f0 != (SCOPE_EXPANSION_SIGNAL_DATA *)0x0) {

-          std::_Deallocate<16,0>

-                    (in_stack_000000f0,((longlong)pSVar13 - (longlong)in_stack_000000f0 >> 3) << 3);

-        }

-        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                  ((CComPtrBase<IKnownFolderManager> *)&stack0x00000078);

-        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                  ((CComPtrBase<IKnownFolderManager> *)&stack0x00000080);

-      }

-      else {

-        pcVar2 = (code *)**(undefined8 **)unaff_RDI;

-        if (unaff_RDI != (ushort *)0x0) {

-          (**(code **)(*(longlong *)unaff_RDI + 0x10))();

-        }

-        iVar6 = (*pcVar2)(unaff_RDI,&_GUID_7a3b8c4d_e5f6_4a2b_9c1d_8e7f6a5b4c3d,&stack0x00000098);

-        if (iVar6 < 0) {

-          wil::details::in1diag3::Return_Hr

-                    (in_stack_00000128,0x7bb,"onecoreuap\\shell\\windows.storage\\recdocs.cpp",iVar6

-                    );

-          wil::com_ptr_t<IServiceProvider,wil::err_exception_policy>::

-          ~com_ptr_t<IServiceProvider,wil::err_exception_policy>

-                    ((com_ptr_t<IServiceProvider,wil::err_exception_policy> *)&stack0x00000098);

-          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                    ((CComPtrBase<IKnownFolderManager> *)&stack0x000000a0);

-          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                    ((CComPtrBase<IKnownFolderManager> *)&stack0x000000b0);

-          std::vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>::

-          ~vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>

-                    ((vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_> *)&stack0x000000c8);

-          if (in_stack_000000f0 != (SCOPE_EXPANSION_SIGNAL_DATA *)0x0) {

-            std::_Deallocate<16,0>

-                      (in_stack_000000f0,((longlong)pSVar13 - (longlong)in_stack_000000f0 >> 3) << 3

-                      );

-          }

-          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                    ((CComPtrBase<IKnownFolderManager> *)&stack0x00000078);

-          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                    ((CComPtrBase<IKnownFolderManager> *)&stack0x00000080);

-        }

-        else {

-          uVar12 = (ulonglong)unaff_RDI & 0xffffffff;

-          while( true ) {

-            uVar14 = (int)((longlong)pSVar10 - (longlong)in_stack_000000f0 >> 3) * -0x55555555;

-            uVar11 = (uint)uVar12;

-            if (uVar14 <= uVar11) break;

-            uVar3 = 100;

-            if (uVar14 - uVar11 < 100) {

-              uVar3 = uVar14 - uVar11;

-            }

-            _iStack0000000000000090 = (ushort *)CONCAT44(uStack0000000000000094,uVar3);

-            iVar6 = (**(code **)(*(longlong *)unaff_RDI + 0x20))

-                              (unaff_RDI,uVar3,in_stack_000000f0 + uVar12 * 0x18);

-            in_stack_000000a8 = (ushort *)CONCAT44(in_stack_000000a8._4_4_,iVar6);

-            if (iVar6 < 0) {

-              wil::details::in1diag3::Return_Hr

-                        (in_stack_00000128,0x7c5,"onecoreuap\\shell\\windows.storage\\recdocs.cpp",

-                         iVar6);

-              wil::com_ptr_t<IServiceProvider,wil::err_exception_policy>::

-              ~com_ptr_t<IServiceProvider,wil::err_exception_policy>

-                        ((com_ptr_t<IServiceProvider,wil::err_exception_policy> *)&stack0x00000098);

-              ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                        ((CComPtrBase<IKnownFolderManager> *)&stack0x000000a0);

-              ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                        ((CComPtrBase<IKnownFolderManager> *)&stack0x000000b0);

-              std::vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>::

-              ~vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>

-                        ((vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_> *)&stack0x000000c8)

-              ;

-              if (in_stack_000000f0 != (SCOPE_EXPANSION_SIGNAL_DATA *)0x0) {

-                std::_Deallocate<16,0>

-                          (in_stack_000000f0,

-                           ((longlong)pSVar13 - (longlong)in_stack_000000f0 >> 3) << 3);

-              }

-              ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                        ((CComPtrBase<IKnownFolderManager> *)&stack0x00000078);

-              ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                        ((CComPtrBase<IKnownFolderManager> *)&stack0x00000080);

-              return;

-            }

-            uVar12 = (ulonglong)(uVar11 + iStack0000000000000090);

-            if (uVar11 + iStack0000000000000090 < uVar14) {

-              SwitchToThread();

-            }

-          }

-          MarkMRUBootstrapPerformed();

-          wil::com_ptr_t<IServiceProvider,wil::err_exception_policy>::

-          ~com_ptr_t<IServiceProvider,wil::err_exception_policy>

-                    ((com_ptr_t<IServiceProvider,wil::err_exception_policy> *)&stack0x00000098);

-          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                    ((CComPtrBase<IKnownFolderManager> *)&stack0x000000a0);

-          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                    ((CComPtrBase<IKnownFolderManager> *)&stack0x000000b0);

-          std::vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>::

-          ~vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_>

-                    ((vector<kfapi::CRFInfo,std::allocator<kfapi::CRFInfo>_> *)&stack0x000000c8);

-          if (in_stack_000000f0 != (SCOPE_EXPANSION_SIGNAL_DATA *)0x0) {

-            std::_Deallocate<16,0>

-                      (in_stack_000000f0,((longlong)pSVar13 - (longlong)in_stack_000000f0 >> 3) << 3

-                      );

-          }

-          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                    ((CComPtrBase<IKnownFolderManager> *)&stack0x00000078);

-          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

-                    ((CComPtrBase<IKnownFolderManager> *)&stack0x00000080);

-        }

-      }

-    }

+  local_18 = (short *)0x0;

+  pcVar1 = *(code **)(*(longlong *)param_1 + 0x28);

+  ppuVar3 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_18);

+  iVar2 = (*pcVar1)(param_1,0x80058000,ppuVar3);

+  if (((-1 < iVar2) && (local_18 != (short *)0x0)) && (*local_18 != 0)) {

+    wil::

+    make_unique_string<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>

+              ((ushort *)&local_20,(__uint64)local_18);

+    local_30 = local_20;

+    local_20 = 0;

+    local_28 = param_2;

+    Windows::Internal::ComTaskPool::QueueTask<<lambda_f66126dfbd5ca4f612c381c32befcc84>_>();

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_30);

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_20);

   }

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)&local_18);

   return;

 }
```

## `ItemHasHandler`  (modified)

```diff
--- ItemHasHandler
+++ AddToAutoDestList
@@ -1,93 +1,108 @@
 

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Variable defined which should be unmapped: param_5 */

 

-bool __cdecl ItemHasHandler(IShellItem *param_1)

+long __cdecl

+AddToAutoDestList(ulong param_1,_ITEMIDLIST_ABSOLUTE *param_2,ushort *param_3,ushort *param_4,

+                 int *param_5,uint param_6,MFU_FOLDER_ACTION param_7,RecentDocsFlags param_8)

 

 {

-  byte *pbVar1;

-  undefined8 *puVar2;

-  code *pcVar3;

-  longlong *plVar4;

-  byte bVar5;

-  HRESULT HVar6;

-  int iVar7;

-  long lVar8;

-  ulong uVar9;

-  longlong in_RAX;

-  void **ppvVar10;

-  LPUNKNOWN in_RDX;

+  int iVar1;

+  HStringReference *pHVar2;

+  ushort *unaff_RBX;

   longlong unaff_RBP;

-  char unaff_SIL;

-  DWORD in_R8D;

-  IID *in_R9;

-  char *in_R11;

-  undefined8 unaff_R12;

-  undefined8 unaff_R13;

-  CExecuteCommandBase *unaff_R14;

-  LPVOID *in_stack_00000020;

+  ushort *unaff_RDI;

+  ushort *unaff_R12;

+  longlong unaff_R13;

+  _ITEMIDLIST_ABSOLUTE *unaff_R14;

+  ushort *unaff_R15;

+  char in_stack_00000070;

+  ulong in_stack_00000074;

+  uint in_stack_00000078;

+  int in_stack_0000007c;

   

-  *in_R11 = *in_R11 + unaff_SIL;

-  pbVar1 = (byte *)(unaff_RBP + 0x42 + (longlong)param_1 * 4);

-  bVar5 = (byte)param_1 & 7;

-  *pbVar1 = *pbVar1 << bVar5 | *pbVar1 >> 8 - bVar5;

-  HVar6 = CoCreateInstance((IID *)(ulonglong)(uint)((int)param_1 + *(int *)(in_RAX + -0x73)),in_RDX,

-                           in_R8D,in_R9,in_stack_00000020);

-  if (-1 < HVar6) {

-    puVar2 = *(undefined8 **)(unaff_RBP + -0x30);

-    pcVar3 = *(code **)*puVar2;

-    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

-              ((ComPtr<IQuerySource> *)(unaff_RBP + -0x28));

-    iVar7 = (*pcVar3)(puVar2,&_GUID_000214f9_0000_0000_c000_000000000046,unaff_RBP + -0x28);

-    if (-1 < iVar7) {

-      ppvVar10 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(unaff_RBP + -0x18);

-      lVar8 = SHSimpleItemFromAttributes

-                        (*(ushort **)(unaff_R14 + 0x150),0x80,

-                         (_GUID *)&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar10);

-      if (-1 < lVar8) {

-        plVar4 = *(longlong **)(unaff_RBP + -0x20);

-        pcVar3 = *(code **)(*plVar4 + 0x20);

-        Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

-                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

-                   (unaff_R14 + 0x118));

-        *(undefined8 *)(unaff_R14 + 0x120) = unaff_R13;

-        *(undefined8 *)(unaff_R14 + 0x128) = unaff_R13;

-        (*pcVar3)(plVar4,*(undefined8 *)(unaff_RBP + -0x28),*(undefined8 *)(unaff_RBP + -0x18),

-                  (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

-                  (unaff_R14 + 0x118));

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+            ((ComPtr<IQuerySource> *)(ulonglong)((int)unaff_RBP + 0x38));

+  *(undefined8 *)(unaff_RBP + -0x10) = 0;

+  *(undefined8 *)(unaff_RBP + -8) = 0;

+  CRecentDocsHelper::AddToRecentDocs

+            ((CRecentDocsHelper *)(unaff_RBP + -0x20),unaff_R14,unaff_RDI,unaff_RBX,unaff_R15,

+             unaff_R12,*(ushort **)(unaff_RBP + -0x60),*(ushort **)(unaff_RBP + -0x68),

+             *(ushort **)(unaff_RBP + -0x70),in_stack_0000007c,in_stack_00000074,in_stack_00000078,

+             *(MFU_FOLDER_ACTION *)(unaff_RBP + -0x78),

+             -(uint)(*(int *)(unaff_RBP + -0x7c) != 0) & 2 |

+             (uint)(in_stack_00000070 == '\0') | -(uint)(*(int *)(unaff_RBP + -0x80) != 0) & 4);

+  *(undefined8 *)(unaff_RBP + 0x10) = 0;

+  *(undefined8 *)(unaff_RBP + 0x30) = 0;

+  Microsoft::WRL::Wrappers::HStringReference::CreateReference

+            ((HStringReference *)(unaff_RBP + 0x18),

+             (ushort *)L"Windows.Internal.UI.StartScreen.RecentFilesListenerServer",0x3a,0x39);

+  iVar1 = RoGetActivationFactory

+                    (*(undefined8 *)(unaff_RBP + 0x30),&_GUID_0913c69f_a9d0_5a44_9a9e_3c7049eb00c8,

+                     unaff_RBP + 0x10);

+  if (-1 < iVar1) {

+    *(undefined8 *)(unaff_RBP + 8) = 0;

+    iVar1 = (**(code **)(**(longlong **)(unaff_RBP + 0x10) + 0x30))();

+    if (-1 < iVar1) {

+      if (unaff_R15 == (ushort *)0x0) {

+        *(undefined8 *)(unaff_RBP + 0x30) = 0;

+        Microsoft::WRL::Wrappers::HStringReference::CreateReference

+                  ((HStringReference *)(unaff_RBP + 0x18),(ushort *)L"",1,0);

+        pHVar2 = (HStringReference *)(unaff_RBP + 0x18);

       }

+      else {

+        pHVar2 = (HStringReference *)

+                 Microsoft::WRL::Wrappers::HStringReference::

+                 HStringReference<unsigned_short_const*___ptr64>

+                           ((HStringReference *)(unaff_RBP + -0x40),unaff_RBP + -0x48);

+      }

+      Microsoft::WRL::Wrappers::HStringReference::HStringReference

+                ((HStringReference *)(unaff_RBP + 0x80),pHVar2);

+      pHVar2 = (HStringReference *)

+               Microsoft::WRL::Wrappers::HStringReference::

+               HStringReference<unsigned_short_const*___ptr64>

+                         ((HStringReference *)(unaff_RBP + -0x40),unaff_RBP + -0x58);

+      Microsoft::WRL::Wrappers::HStringReference::HStringReference

+                ((HStringReference *)(unaff_RBP + 0x60),pHVar2);

+      if (unaff_R12 == (ushort *)0x0) {

+        *(undefined8 *)(unaff_RBP + 0x30) = 0;

+        Microsoft::WRL::Wrappers::HStringReference::CreateReference

+                  ((HStringReference *)(unaff_RBP + 0x18),(ushort *)L"",1,0);

+        pHVar2 = (HStringReference *)(unaff_RBP + 0x18);

+      }

+      else {

+        pHVar2 = (HStringReference *)

+                 Microsoft::WRL::Wrappers::HStringReference::

+                 HStringReference<unsigned_short_const*___ptr64>

+                           ((HStringReference *)(unaff_RBP + -0x40),unaff_RBP + -0x50);

+      }

+      Microsoft::WRL::Wrappers::HStringReference::HStringReference

+                ((HStringReference *)(unaff_RBP + 0x40),pHVar2);

+      if (unaff_R12 == (ushort *)0x0) {

+        *(undefined8 *)(unaff_RBP + 0x30) = 0;

+      }

+      else {

+        *(undefined8 *)(unaff_RBP + -0x28) = 0;

+      }

+      (**(code **)(**(longlong **)(unaff_RBP + 8) + 0x30))

+                (*(longlong **)(unaff_RBP + 8),in_stack_00000078,in_stack_00000074,

+                 *(undefined8 *)(unaff_RBP + 0x98),*(undefined8 *)(unaff_RBP + 0x78));

+    }

+    if (*(longlong *)(unaff_RBP + 8) != 0) {

+      winrt::com_ptr<IPerFolderRootPropertyHandler>::unconditional_release_ref

+                ((com_ptr<IPerFolderRootPropertyHandler> *)(unaff_RBP + 8));

     }

   }

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -0x18))

-  ;

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -0x28))

-  ;

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -0x20))

-  ;

-  *(undefined8 *)(unaff_RBP + -0x10) = unaff_R12;

-  if ((*(short **)(unaff_R14 + 0x118) == (short *)0x0) ||

-     (**(short **)(unaff_R14 + 0x118) == (short)unaff_R12)) {

-    ppvVar10 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(unaff_RBP + -0x10);

-    lVar8 = CExecuteCommandBase::_GetSelectedItem

-                      (unaff_R14,0,(_GUID *)&_GUID_7e9fb0d3_919f_4307_ab2e_9b1860310c93,ppvVar10);

-    if (-1 < lVar8) {

-      plVar4 = *(longlong **)(unaff_RBP + -0x10);

-      pcVar3 = *(code **)(*plVar4 + 0x88);

-      Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

-                ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

-                 (unaff_R14 + 0x118));

-      *(undefined8 *)(unaff_R14 + 0x120) = unaff_R13;

-      *(undefined8 *)(unaff_R14 + 0x128) = unaff_R13;

-      (*pcVar3)(plVar4,&PKEY_AppUserModel_ID,

-                (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

-                (unaff_R14 + 0x118));

-    }

+  if (*(longlong *)(unaff_RBP + 0x10) != 0) {

+    winrt::com_ptr<IPerFolderRootPropertyHandler>::unconditional_release_ref

+              ((com_ptr<IPerFolderRootPropertyHandler> *)(unaff_RBP + 0x10));

   }

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -0x10))

-  ;

-  uVar9 = Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

-                    ((ComPtr<IQuerySource> *)(unaff_RBP + -0x30));

-  return SUB41(uVar9,0);

+  CRecentDocsHelper::_SetTarget

+            ((CRecentDocsHelper *)(unaff_RBP + -0x20),(_ITEMIDLIST_ABSOLUTE *)0x0);

+  Ordinal_186();

+  Ordinal_187(*(undefined8 *)(unaff_R13 + 0x48),*(undefined4 *)(unaff_R13 + 0x50));

+  return 0;

 }
```

## `operator_new`  (modified)

```diff
--- operator_new
+++ atexit
@@ -1,12 +1,10 @@
 

-/* void * __ptr64 __cdecl operator new(unsigned __int64,struct std::nothrow_t const & __ptr64) */

-

-void * __cdecl operator_new(__uint64 param_1,nothrow_t *param_2)

+int __cdecl atexit(_func_5014 *param_1)

 

 {

-  void *pvVar1;

+  _onexit_t p_Var1;

   

-  pvVar1 = CZeroInitNew::operator_new(param_1,param_2);

-  return pvVar1;

+  p_Var1 = _onexit((_onexit_t)param_1);

+  return (p_Var1 != (_onexit_t)0x0) - 1;

 }
```

## `SHFastDeleteFile`  (modified)

```diff
--- SHFastDeleteFile
+++ wil::details::ThreadFailureCallbackHolder::StopWatching
@@ -1,90 +1,32 @@
 

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: void __cdecl wil::details::ThreadFailureCallbackHolder::StopWatching(void) __ptr64 */

 

-uint SHFastDeleteFile(LPCWSTR param_1,int param_2)

+void __thiscall

+wil::details::ThreadFailureCallbackHolder::StopWatching(ThreadFailureCallbackHolder *this)

 

 {

-  int iVar1;

-  uint uVar2;

-  undefined1 auStack_d8 [32];

-  undefined4 local_b8;

-  undefined4 local_b0;

-  int local_a8 [2];

-  HANDLE local_a0;

-  undefined8 local_98;

-  undefined8 uStack_90;

-  undefined8 local_88;

-  undefined8 uStack_80;

-  undefined4 local_78;

-  undefined4 local_74;

-  undefined8 local_70;

-  undefined8 *local_68;

-  undefined4 local_60;

-  undefined4 local_5c;

-  undefined8 local_58;

-  undefined8 uStack_50;

-  undefined8 local_48;

-  undefined8 uStack_40;

-  undefined8 local_38;

-  undefined8 uStack_30;

-  ulonglong local_28;

+  ThreadFailureCallbackHolder *pTVar1;

+  DWORD DVar2;

+  void *unaff_retaddr;

   

-  local_28 = __security_cookie ^ (ulonglong)auStack_d8;

-  if (param_2 != 0) {

-    local_a0 = (HANDLE)0xffffffffffffffff;

-    local_48 = 0;

-    uStack_40 = 0;

-    local_98 = 0;

-    uStack_90 = 0;

-    local_88 = 0;

-    uStack_80 = 0;

-    iVar1 = RtlDosPathNameToRelativeNtPathName_U_WithStatus(0,&local_48,0,&local_98);

-    if (-1 < iVar1) {

-      local_74 = 0;

-      local_38 = 0;

-      uStack_30 = 0;

-      local_5c = 0;

-      if ((short)local_98 == 0) {

-        local_68 = &local_48;

-        local_88 = 0;

-      }

-      else {

-        local_68 = &local_98;

-      }

-      local_b0 = 0x5040;

-      local_78 = 0x30;

-      local_60 = 0x40;

-      local_58 = 0;

-      uStack_50 = 0;

-      local_b8 = 4;

-      local_70 = local_88;

-      iVar1 = NtOpenFile(&local_a0,0x10000,&local_78,&local_38);

-      RtlReleaseRelativeName(&local_98);

-      RtlFreeUnicodeString(&local_48);

-      uVar2 = (uint)(iVar1 == -0x3fffffaa);

-      if (iVar1 != -0x3fffffaa) {

-        if (iVar1 < 0) goto LAB_0;

-        local_a8[0] = 0;

-        iVar1 = ShouldSetDeleteDisposition(local_a0,local_a8);

-        if (iVar1 == 0) {

-          uVar2 = 1;

-          iVar1 = Feature_61138026__private_IsEnabledDeviceUsageNoInline();

-          if ((iVar1 != 0) && (local_a8[0] != 0)) {

-            TryUpgradeToPosixDelete(local_a0);

-          }

-        }

-        else {

-          uVar2 = SetFileDeleteDisposition(local_a0);

-        }

-        CloseHandle(local_a0);

-      }

-      if (uVar2 != 0) {

-        return uVar2;

-      }

+  DVar2 = GetCurrentThreadId();

+  if (*(DWORD *)(this + 0x18) != DVar2) {

+    in1diag3::Log_Hr(unaff_retaddr,0x3be,"onecore\\internal\\sdk\\inc\\wil\\opensource/wil/result.h"

+                     ,-0x7ff8fd64);

+  }

+  *(undefined4 *)(this + 0x18) = 0;

+  do {

+    pTVar1 = (ThreadFailureCallbackHolder *)**(longlong **)this;

+    if (pTVar1 == (ThreadFailureCallbackHolder *)0x0) {

+LAB_0:

+      *(undefined8 *)this = 0;

+      return;

     }

-  }

-LAB_0:

-  uVar2 = DeleteFileW(param_1);

-  return uVar2;

+    if (pTVar1 == this) {

+      **(longlong **)this = *(longlong *)(this + 0x10);

+      goto LAB_0;

+    }

+    *(ThreadFailureCallbackHolder **)this = pTVar1 + 0x10;

+  } while( true );

 }
```

## `TryToResetToRecommendedApp`  (modified)

```diff
--- TryToResetToRecommendedApp
+++ TryToResetToRecommendedApp
@@ -1,31 +1,286 @@
 

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-

-long TryToResetToRecommendedApp

-               (longlong param_1,_GUID *param_2,IUnknown *param_3,CQueueItem *param_4,

-               undefined8 param_5,CImageQueueItem *param_6)

+

+int TryToResetToRecommendedApp

+              (LPCWSTR param_1,ushort *param_2,ushort *param_3,undefined1 param_4,

+              undefined8 *param_5)

 

 {

-  uint *puVar1;

-  long lVar2;

-  longlong in_RAX;

-  longlong unaff_RBX;

-  int unaff_ESI;

+  ushort *puVar1;

+  LPCWSTR pWVar2;

+  bool bVar3;

+  bool bVar4;

+  int iVar5;

+  int iVar6;

+  long lVar7;

+  HRESULT HVar8;

+  long lVar9;

+  uint uVar10;

+  LPCWSTR *ppWVar11;

+  byte bVar12;

+  undefined **ppuVar13;

+  ReportingKind RVar14;

+  wchar_t *pwVar15;

+  ulong *puVar16;

+  void *unaff_retaddr;

+  undefined1 auStackY_398 [32];

+  undefined1 local_358 [8];

+  ushort *local_350;

+  ushort *local_348;

+  LPCWSTR local_340;

+  ushort *local_338;

+  bool local_330 [8];

+  ulong local_328 [2];

+  ushort *local_320;

+  longlong *local_318;

+  _FILETIME local_310;

+  ulong local_308 [2];

+  _FILETIME local_300;

+  undefined **local_2f8 [42];

+  ResetAppToRecommended local_1a8 [336];

+  ulonglong local_58;

   

-  puVar1 = (uint *)(unaff_RBX + 0x4c + param_1 * 4);

-  *puVar1 = *puVar1 >> 4 | *puVar1 << 0x1c;

-  *(byte *)(in_RAX + -0x73) = *(byte *)(in_RAX + -0x73) ^ (byte)param_1;

-  lVar2 = CCollectionLock::InsertQueueItem

-                    (*(CCollectionLock **)(unaff_RBX + 0x28),param_2,param_3,param_4);

-  if (-1 < lVar2) {

-    CThumbnailLookupTable::SetExtractingOverlay

-              (*(CThumbnailLookupTable **)(unaff_RBX + 0x38),unaff_ESI,param_6);

+  local_58 = __security_cookie ^ (ulonglong)auStackY_398;

+  *param_5 = 0;

+  local_350 = param_2;

+  local_340 = param_1;

+  local_330[0] = (bool)param_4;

+  bVar4 = IsDesktopPresent();

+  if (bVar4) {

+    local_320 = (ushort *)0x0;

+    if (param_3 == (ushort *)0x0) {

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+      ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+             *)&local_320);

+      iVar6 = SHGetUserSid();

+      param_3 = local_320;

+      if (iVar6 < 0) {

+        if (local_320 == (ushort *)0x0) {

+          return iVar6;

+        }

+        LocalFree(local_320);

+        return iVar6;

+      }

+    }

+    local_348 = param_3;

+    bVar4 = IsLocalSystem(param_3);

+    if ((bVar4) || (bVar4 = false, DAT_0 == '\0')) {

+      if (local_320 != (ushort *)0x0) {

+        LocalFree(local_320);

+      }

+    }

+    else {

+      for (ppuVar13 = &c_recommendedAppExtsOrUriSchemes; ppuVar13 != &CParseAndCreateItem::_vftable_

+          ; ppuVar13 = ppuVar13 + 1) {

+        iVar5 = CompareStringOrdinal(param_1,-1,(LPCWSTR)*ppuVar13,-1,1);

+        iVar6 = DAT_1;

+        if (iVar5 == 2) {

+          LOCK();

+          DAT_1 = 1;

+          UNLOCK();

+          if (iVar6 == 1) {

+            if (local_320 != (ushort *)0x0) {

+              LocalFree(local_320);

+            }

+            return -0x7fffbffb;

+          }

+          wil::scope_exit<<lambda_d0a924b685aa8fe147528f4bf0afc783>_>(local_358);

+          local_308[0] = 0;

+          puVar16 = local_308;

+          RVar14 = 0x807540b8;

+          lVar7 = SHRegGetDWORD((HKEY__ *)0xffffffff80000001,

+                                (ushort *)L"Software\\Microsoft\\Windows\\Shell\\Associations",

+                                (ushort *)L"FileAssociationsUpdateVersion",puVar16);

+          bVar12 = (byte)((uint)lVar7 >> 0x1f) ^ 1;

+          local_338._0_1_ = bVar12;

+          wil::details::FeatureImpl<__WilFeatureTraits_Feature_Servicing_ResetRecommendedAppFix>::

+          ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_Servicing_ResetRecommendedAppFix> *)

+                      &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_Servicing_ResetRecommendedAppFix>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_Servicing_ResetRecommendedAppFix>::GetImpl(void)'

+                       ::__l2::impl,true,RVar14,(__uint64)puVar16);

+          local_328[0] = 0;

+          SHRegGetDWORD((HKEY__ *)0xffffffff80000001,

+                        (ushort *)L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                        (ushort *)L"ResetCount",local_328);

+          if (local_328[0] < 10) {

+            local_310 = wil::filetime::get_system_time();

+            SHRegSetFILETIME((HKEY__ *)0xffffffff80000001,

+                             (ushort *)

+                             L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                             (ushort *)L"LastResetTime",&local_310);

+            pwVar15 = L"ResetCount";

+            SHRegSetDWORD((HKEY__ *)0xffffffff80000001,

+                          (ushort *)

+                          L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                          (ushort *)L"ResetCount",local_328[0] + 1);

+            bVar4 = true;

+          }

+          else {

+            local_310.dwLowDateTime = 0;

+            local_310.dwHighDateTime = 0;

+            pwVar15 = L"LastResetTime";

+            SHRegGetFILETIME((HKEY__ *)0xffffffff80000001,

+                             (ushort *)

+                             L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                             (ushort *)L"LastResetTime",&local_310);

+            local_300 = wil::filetime::get_system_time();

+            if (864000000000 <

+                ((((ulonglong)local_300 >> 0x20) - ((ulonglong)local_310 >> 0x20) << 0x20) -

+                ((ulonglong)local_310 & 0xffffffff)) + ((ulonglong)local_300 & 0xffffffff)) {

+              SHRegSetFILETIME((HKEY__ *)0xffffffff80000001,

+                               (ushort *)

+                               L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                               (ushort *)L"LastResetTime",&local_300);

+              pwVar15 = L"ResetCount";

+              SHRegSetDWORD((HKEY__ *)0xffffffff80000001,

+                            (ushort *)

+                            L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                            (ushort *)L"ResetCount",1);

+              bVar4 = true;

+            }

+          }

+          lVar9 = -0x7f8a22b8;

+          wil::

+          ActivityBase<DefaultAssocLogging,1,70368744177664,5,16777216,_TlgReflectorTag_Param0IsProviderType>

+          ::

+          ActivityBase<DefaultAssocLogging,1,70368744177664,5,16777216,_TlgReflectorTag_Param0IsProviderType>

+                    ((ActivityBase<DefaultAssocLogging,1,70368744177664,5,16777216,_TlgReflectorTag_Param0IsProviderType>

+                      *)local_2f8,"ResetAppToRecommended",SUB81(pwVar15,0));

+          local_2f8[0] = &DefaultAssocTelemetry::ResetAppToRecommended::_vftable_;

+          if (bVar4) {

+            pwVar15 = (wchar_t *)local_330;

+            ppWVar11 = &local_340;

+            DefaultAssocTelemetry::ResetAppToRecommended::

+            Start<unsigned_short_const*___ptr64&___ptr64,bool&___ptr64,bool_const&___ptr64,unsigned_short_const*___ptr64&___ptr64,unsigned_short_const*___ptr64&___ptr64>

+                      ((ushort **)local_1a8,(bool *)ppWVar11,(bool *)pwVar15,&local_338,&local_350);

+            lVar9 = (long)ppWVar11;

+            DefaultAssocTelemetry::ResetAppToRecommended::~ResetAppToRecommended(local_1a8);

+            bVar12 = (byte)local_338;

+          }

+          if (bVar12 == 0) {

+            DAT_0 = '\0';

+            if (bVar4) {

+              wil::

+              ActivityBase<OpenWithLogging,1,70368744177664,5,2048,_TlgReflectorTag_Param0IsProviderType>

+              ::SetStopResult((ActivityBase<OpenWithLogging,1,70368744177664,5,2048,_TlgReflectorTag_Param0IsProviderType>

+                               *)local_2f8,lVar9,(long *)pwVar15);

+              DefaultAssocTelemetry::ResetAppToRecommended::Stop

+                        ((ResetAppToRecommended *)local_2f8,(ushort *)L"",local_350,lVar7,0,0,false)

+              ;

+            }

+            lVar9 = -0x7fffbffb;

+          }

+          else {

+            local_318 = (longlong *)0x0;

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                      ((ComPtr<IQuerySource> *)&local_318);

+            HVar8 = SHCoCreateInstance((LPCWSTR)0x0,

+                                       (CLSID *)&CLSID_ApplicationAssociationRegistration,

+                                       (IUnknown *)0x0,

+                                       (IID *)&_GUID_a357134e_8c1e_4edd_8474_40a80546f54f,&local_318

+                                      );

+            pWVar2 = local_340;

+            if (HVar8 < 0) {

+              uVar10 = 0x30c;

+            }

+            else {

+              HVar8 = (**(code **)(*local_318 + 0x78))(local_318,local_340,param_5);

+              if (-1 < HVar8) {

+                GenerateUserAssocChangeNotification(pWVar2);

+                puVar1 = local_350;

+                local_338._0_1_ = false;

+                lVar9 = GetShouldToastUserAboutAppReset

+                                  ((ushort *)pWVar2,local_350,(ushort *)*param_5,(bool *)&local_338)

+                ;

+                bVar3 = (bool)(byte)local_338;

+                if (lVar9 < 0) {

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,0x323,

+                             "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                             ,lVar9);

+                  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                            ((ComPtr<IQuerySource> *)&local_318);

+                }

+                else {

+                  local_350 = (ushort *)((ulonglong)local_350 & 0xffffffff00000000);

+                  if ((bool)(byte)local_338 != false) {

+                    lVar9 = PostAppResetToast((ushort *)pWVar2,puVar1,(ushort *)*param_5);

+                    local_350 = (ushort *)CONCAT44(local_350._4_4_,lVar9);

+                  }

+                  if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+                    McTemplateU0zzzt_EventWriteTransfer();

+                  }

+                  pwVar15 = L"ResetCount";

+                  lVar9 = -0x7f8ab8e0;

+                  SHRegSetDWORD((HKEY__ *)0xffffffff80000001,

+                                (ushort *)

+                                L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                                (ushort *)L"ResetCount",local_328[0] + 1);

+                  if (bVar4) {

+                    wil::

+                    ActivityBase<OpenWithLogging,1,70368744177664,5,2048,_TlgReflectorTag_Param0IsProviderType>

+                    ::SetStopResult((ActivityBase<OpenWithLogging,1,70368744177664,5,2048,_TlgReflectorTag_Param0IsProviderType>

+                                     *)local_2f8,lVar9,(long *)pwVar15);

+                    DefaultAssocTelemetry::ResetAppToRecommended::Stop

+                              ((ResetAppToRecommended *)local_2f8,(ushort *)*param_5,puVar1,lVar7,

+                               HVar8,(long)local_350,bVar3);

+                  }

+                  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                            ((ComPtr<IQuerySource> *)&local_318);

+                  lVar9 = 0;

+                }

+                goto LAB_2;

+              }

+              pwVar15 = L"ResetCount";

+              DAT_0 = '\0';

+              lVar9 = -0x7f8ab8e0;

+              SHRegSetDWORD((HKEY__ *)0xffffffff80000001,

+                            (ushort *)

+                            L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                            (ushort *)L"ResetCount",local_328[0] + 1);

+              if (bVar4) {

+                wil::

+                ActivityBase<OpenWithLogging,1,70368744177664,5,2048,_TlgReflectorTag_Param0IsProviderType>

+                ::SetStopResult((ActivityBase<OpenWithLogging,1,70368744177664,5,2048,_TlgReflectorTag_Param0IsProviderType>

+                                 *)local_2f8,lVar9,(long *)pwVar15);

+                DefaultAssocTelemetry::ResetAppToRecommended::Stop

+                          ((ResetAppToRecommended *)local_2f8,(ushort *)L"",local_350,lVar7,HVar8,0,

+                           false);

+              }

+              uVar10 = 0x31d;

+            }

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,uVar10,

+                       "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\cassochandler.cpp"

+                       ,HVar8);

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                      ((ComPtr<IQuerySource> *)&local_318);

+            lVar9 = HVar8;

+          }

+LAB_2:

+          DefaultAssocTelemetry::ResetAppToRecommended::~ResetAppToRecommended

+                    ((ResetAppToRecommended *)local_2f8);

+          wil::details::ScopeExitFn<<lambda_a32c6b0f88be37929c5634c3cc67586f>_>::

+          ~ScopeExitFn<<lambda_a32c6b0f88be37929c5634c3cc67586f>_>(local_358);

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+          ::

+          ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_320);

+          return lVar9;

+        }

+      }

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&local_320);

+    }

   }

-  if (param_6 != (CImageQueueItem *)0x0) {

-    (**(code **)(*(longlong *)param_6 + 0x10))();

-  }

-  return lVar2;

+  return 0;

 }
```

## `ShouldSetDeleteDisposition`  (modified)

```diff
--- ShouldSetDeleteDisposition
+++ ShouldSetDeleteDisposition
@@ -1,27 +1,48 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Type propagation algorithm not settling */

 

-long ShouldSetDeleteDisposition(long param_1,undefined8 param_2,int param_3,undefined8 param_4)

+undefined8 ShouldSetDeleteDisposition(HANDLE param_1,undefined4 *param_2)

 

 {

-  int in_EAX;

-  ushort *unaff_RBX;

-  ushort auStackX_20 [4];

+  int iVar1;

+  BOOL BVar2;

+  undefined1 auStack_e8 [32];

+  undefined4 local_c8;

+  ulonglong local_b8 [4];

+  undefined1 local_98 [4];

+  int local_94;

+  ushort local_90;

+  ulonglong local_18;

   

-  if (in_EAX == 1) {

-    param_1 = 0;

+  local_18 = __security_cookie ^ (ulonglong)auStack_e8;

+  local_b8[0] = 0;

+  local_b8[1] = 0;

+  local_b8[2] = 0;

+  iVar1 = Feature_61138026__private_IsEnabledDeviceUsageNoInline();

+  if ((iVar1 != 0) && (param_2 != (undefined4 *)0x0)) {

+    *param_2 = 0;

   }

-  else if (param_3 == 1) {

-    param_1 = func_0x0001805e09d8(param_4);

+  local_c8 = 4;

+  iVar1 = NtQueryVolumeInformationFile(param_1,local_b8 + 1,local_b8,8);

+  if (-1 < iVar1) {

+    if ((local_b8[0] & 0x1000000000) == 0) {

+      iVar1 = Feature_61138026__private_IsEnabledDeviceUsageNoInline();

+      if (iVar1 == 0) {

+        return 0;

+      }

+      if (param_2 == (undefined4 *)0x0) {

+        return 0;

+      }

+      *param_2 = 1;

+      return 0;

+    }

+    memset(local_98,0,0x74);

+    BVar2 = GetFileInformationByHandleEx(param_1,FileRemoteProtocolInfo,local_98,0x74);

+    if (((BVar2 != 0) && (local_94 == 0x20000)) && (1 < local_90)) {

+      return 0;

+    }

   }

-  else if ((param_3 == 2) &&

-          (param_1 = StringCchPrintfW(auStackX_20,0x104,

-                                      (ushort *)

-                                      L"Software\\Microsoft\\Windows\\Shell\\Associations\\MIMEAssociations\\%s\\UserChoice"

-                                     ), -1 < param_1)) {

-    param_1 = SHRegSetString((HKEY__ *)0xffffffff80000001,auStackX_20,(ushort *)L"Progid",unaff_RBX)

-    ;

-  }

-  return param_1;

+  return 1;

 }
```

## `_SCNGetWindow`  (modified)

```diff
--- _SCNGetWindow
+++ _SCNGetWindow
@@ -1,29 +1,60 @@
 

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-/* long __cdecl GIT_CancelInform(unsigned long,struct _GUID) */

 

-long _SCNGetWindow(ulong param_1,undefined8 *param_2)

+HWND__ * _SCNGetWindow(SCNW param_1)

 

 {

-  long lVar1;

-  undefined1 auStack_58 [32];

-  longlong *aplStack_38 [2];

-  undefined8 local_28;

-  undefined8 local_20;

+  BOOL BVar1;

+  int iVar2;

+  HWND__ *hWnd;

+  HWND hWnd_00;

+  bool bVar3;

+  bool bVar4;

+  undefined1 auStack_48 [32];

+  bool local_28;

+  bool local_27 [7];

+  SCNW local_20 [2];

   ulonglong local_18;

   

-  local_18 = __security_cookie ^ (ulonglong)auStack_58;

-  local_28 = *param_2;

-  local_20 = param_2[1];

-  aplStack_38[0] = (longlong *)0x0;

-  lVar1 = UnMarshalFromGIT(param_1,(_GUID *)&_GUID_e38fe0f3_3db0_47ee_a314_25cf7f4bf521,aplStack_38)

-  ;

-  if (-1 < lVar1) {

-    lVar1 = (**(code **)(*aplStack_38[0] + 0x20))(aplStack_38[0],&local_28);

-    (**(code **)(*aplStack_38[0] + 0x10))();

+  local_18 = __security_cookie ^ (ulonglong)auStack_48;

+  local_20[0] = param_1;

+  if ((g_hwndSCN != (HWND__ *)0x0) && (BVar1 = IsWindow(g_hwndSCN), BVar1 != 0)) {

+    return g_hwndSCN;

   }

-  return lVar1;

+  bVar3 = true;

+  if (param_1 != 1) {

+    hWnd = _GetDesktop();

+    if ((hWnd == (HWND__ *)0x0) || (BVar1 = IsWindow(hWnd), BVar1 == 0)) {

+      bVar4 = false;

+    }

+    else {

+      bVar4 = true;

+    }

+    local_27[0] = bVar4;

+    hWnd_00 = (HWND)GetShellChangeNotifyWindow();

+    if ((hWnd_00 == (HWND)0x0) || (BVar1 = IsWindow(hWnd_00), BVar1 == 0)) {

+      bVar3 = false;

+    }

+    local_28 = bVar3;

+    ChangeNotifyTelemetry::SCNGetWindow<bool_const&___ptr64,bool_const&___ptr64,SCNW&___ptr64>

+              (local_27,&local_28,local_20);

+    if ((bVar4 != false) && (bVar3 != false)) {

+      iVar2 = _IsImpersonating();

+      if (iVar2 == 0) {

+        g_hwndSCN = hWnd_00;

+        return hWnd_00;

+      }

+      return hWnd_00;

+    }

+    if (param_1 != 2) {

+      return g_hwndSCN;

+    }

+    iVar2 = SHIsCurrentThreadOnUserDesktop();

+    if (iVar2 == 0) {

+      return g_hwndSCN;

+    }

+  }

+  SCNInitialize(&g_hwndSCN);

+  return g_hwndSCN;

 }
```

## `CRegDataDrivenCommand_CreateInstance`  (modified)

```diff
--- CRegDataDrivenCommand_CreateInstance
+++ IterateOverIterable<XWinRT::InterfaceLifetimeTraits,Windows::Storage::Provider::StorageProviderItemPropertyDefinition_*,<lambda_73d0a6a18a52ae44a4d2657998680a1d>_&>
@@ -1,86 +1,39 @@
 

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 

-int CRegDataDrivenCommand_CreateInstance

-              (undefined8 param_1,_GUID *param_2,void **param_3,bool *param_4)

+int IterateOverIterable<XWinRT::InterfaceLifetimeTraits,Windows::Storage::Provider::StorageProviderItemPropertyDefinition_*,<lambda_73d0a6a18a52ae44a4d2657998680a1d>_&>

+              (longlong *param_1,undefined8 param_2)

 

 {

-  int iVar1;

-  RegDataDrivenCommand *pRVar2;

-  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

-  *this;

-  long lVar3;

-  void *unaff_retaddr;

-  undefined1 auStack_48 [32];

-  RegDataDrivenCommand *local_28;

-  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

-  *local_20;

-  ulonglong local_18;

+  code *pcVar1;

+  int iVar2;

+  longlong *plVar3;

+  undefined1 auStack_38 [32];

+  longlong *local_18;

+  ulonglong local_10;

   

-  local_18 = __security_cookie ^ (ulonglong)auStack_48;

-  *param_3 = (void *)0x0;

-  local_20 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

-              *)0x0;

-  local_28 = operator_new(0xd0,&std::nothrow);

-  this = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

-          *)0x0;

-  if (local_28 != (RegDataDrivenCommand *)0x0) {

-    pRVar2 = (RegDataDrivenCommand *)

-             RegDataDrivenCommand::RegDataDrivenCommand

-                       (local_28,(IUnknown *)0x0,(IAssociationElement *)0x0);

-    Microsoft::WRL::ComPtr<RegDataDrivenCommand>::Attach

-              ((ComPtr<RegDataDrivenCommand> *)&local_20,pRVar2);

-    local_28 = (RegDataDrivenCommand *)0x0;

-    this = local_20;

-  }

-  Microsoft::WRL::Details::

-  MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

-  ::

-  ~MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

-            ((MakeAllocator<Windows::Foundation::Collections::Internal::HashMap<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultHash<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultEqualityPredicate<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,Windows::Foundation::Collections::Internal::HashMapOptions<unsigned_int,unsigned_int,Windows::Foundation::Collections::Internal::DefaultLifetimeTraits<unsigned_int>,0,1,0>_>::View>

-              *)&local_28);

-  if (this == (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

-               *)0x0) {

-    wil::details::in1diag3::Return_Hr

-              (unaff_retaddr,0x391,"onecoreuap\\shell\\windows.storage\\ftcommands.cpp",-0x7ff8fff2)

-    ;

-    return -0x7ff8fff2;

-  }

-  *param_3 = (void *)0x0;

-  iVar1 = InlineIsEqualGUID(param_2,&_GUID_00000000_0000_0000_c000_000000000046);

-  if ((iVar1 == 0) && (iVar1 = InlineIsEqualGUID(), iVar1 == 0)) {

-    iVar1 = InlineIsEqualGUID();

-    if (iVar1 == 0) {

-      lVar3 = Microsoft::WRL::Details::

-              ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

-              ::CanCastTo((ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

-                           *)(this + 8),param_2,param_3,param_4);

-      if (lVar3 < 0) goto LAB_0;

+  local_10 = __security_cookie ^ (ulonglong)auStack_38;

+  local_18 = (longlong *)0x0;

+  pcVar1 = *(code **)(*param_1 + 0x30);

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_18);

+  iVar2 = (*pcVar1)(param_1,&local_18);

+  plVar3 = local_18;

+  if (-1 < iVar2) {

+    if (local_18 == (longlong *)0x0) {

+      iVar2 = -0x7ff8ffa9;

     }

     else {

-      *param_3 = this;

-      lVar3 = 0;

+      iVar2 = IterateOverIterator<XWinRT::InterfaceLifetimeTraits,Windows::Storage::Provider::StorageProviderItemPropertyDefinition_*,<lambda_73d0a6a18a52ae44a4d2657998680a1d>_&>

+                        (local_18,param_2);

+      plVar3 = local_18;

     }

-    (**(code **)(*(longlong *)*param_3 + 8))(*param_3);

   }

-  else {

-    *param_3 = this;

-    (**(code **)(*(longlong *)this + 8))(this);

-    lVar3 = 0;

+  if (plVar3 != (longlong *)0x0) {

+    local_18 = (longlong *)0x0;

+    (**(code **)(*plVar3 + 0x10))();

   }

-LAB_0:

-  if (lVar3 < 0) {

-    wil::details::in1diag3::Return_Hr

-              (unaff_retaddr,0x392,"onecoreuap\\shell\\windows.storage\\ftcommands.cpp",lVar3);

-  }

-  else {

-    lVar3 = 0;

-  }

-  Microsoft::WRL::Details::

-  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<3>,1,1,0,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

-  ::Release(this);

-  return lVar3;

+  return iVar2;

 }
```

## `CFSTransfer::_CheckFolderSizeAndDeleteability`  (modified)

```diff
--- CFSTransfer::_CheckFolderSizeAndDeleteability
+++ CFSTransfer::_CheckFolderSizeAndDeleteability
@@ -1,2 +1,151 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSTransfer::_CheckFolderSizeAndDeleteability : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: long __cdecl CFSTransfer::_CheckFolderSizeAndDeleteability(struct FOLDERDELETEINFO *

+   __ptr64,unsigned __int64) __ptr64 */

+

+long __thiscall

+CFSTransfer::_CheckFolderSizeAndDeleteability

+          (CFSTransfer *this,FOLDERDELETEINFO *param_1,__uint64 param_2)

+

+{

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+  *this_00;

+  unique_storage<wil::details::resource_policy<void*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+  *this_01;

+  ushort *puVar1;

+  bool bVar2;

+  bool bVar3;

+  void *pvVar4;

+  long lVar5;

+  int iVar6;

+  BOOL BVar7;

+  long lVar8;

+  ushort **ppuVar9;

+  __uint64 _Var10;

+  longlong lVar11;

+  longlong lVar12;

+  int iVar13;

+  void *local_68;

+  HANDLE local_60;

+  CFSTransfer *local_58;

+  

+  iVar13 = 0;

+  local_58 = this + 0x10;

+  bVar3 = false;

+  lVar5 = UpdateProgress(local_58,*(__uint64 *)(param_1 + 8),*(__uint64 *)(param_1 + 8),

+                         *(int *)(param_1 + 0x10),*(int *)(param_1 + 0x10),*(int *)(param_1 + 0x14),

+                         *(int *)(param_1 + 0x14));

+  if (-1 < lVar5) {

+    this_00 = (unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+               *)(param_1 + 0x228);

+    ppuVar9 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put(this_00);

+    this_01 = (unique_storage<wil::details::resource_policy<void*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+               *)(param_1 + 0x220);

+    iVar6 = PathAllocCombine(*(undefined8 *)this_01,&c_szStarDotStar,1,ppuVar9);

+    if (iVar6 < 0) {

+      StringCchCopyW((ushort *)(param_1 + 0x18),0x104,*(ushort **)this_01);

+      lVar5 = -0x7ff8ff32;

+    }

+    else {

+      local_60 = FindFirstFileExW(*(LPCWSTR *)this_00,FindExInfoStandard,param_1 + 0x230,

+                                  FindExSearchNameMatch,(LPVOID)0x0,2);

+      bVar2 = false;

+      if (local_60 != (HANDLE)0xffffffffffffffff) {

+        do {

+          bVar3 = bVar2;

+          iVar6 = PathIsDotOrDotDotW((ushort *)(param_1 + 0x25c));

+          if (iVar6 == 0) {

+            bVar2 = true;

+            bVar3 = true;

+            wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put(this_00);

+            iVar6 = PathAllocCombine(*(undefined8 *)this_01,param_1 + 0x25c);

+            if (iVar6 < 0) {

+              if (*(short *)(param_1 + 0x464) != 0) {

+                wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                ::put(this_00);

+                iVar6 = PathAllocCombine(*(undefined8 *)this_01,param_1 + 0x464);

+                if (-1 < iVar6) goto LAB_0;

+              }

+LAB_1:

+              lVar8 = -0x7ff8ff32;

+LAB_2:

+              iVar13 = iVar13 + 1;

+            }

+            else {

+LAB_0:

+              puVar1 = *(ushort **)this_00;

+              lVar11 = -1;

+              do {

+                lVar11 = lVar11 + 1;

+              } while (puVar1[lVar11] != 0);

+              if (0x7fe8 < (ulonglong)(lVar11 + (longlong)*(int *)(param_1 + 4) + 1))

+              goto LAB_1;

+              if (((byte)param_1[0x230] & 0x10) == 0) {

+                lVar8 = CanDeletePath(puVar1);

+                _Var10 = GetFileSizeOnDisk((_WIN32_FIND_DATAW *)(param_1 + 0x230),

+                                           *(ushort **)this_00);

+                *(__uint64 *)(param_1 + 8) = *(longlong *)(param_1 + 8) + _Var10;

+                *(int *)(param_1 + 0x10) = *(int *)(param_1 + 0x10) + 1;

+                if (*(ulonglong *)(param_1 + 8) <= param_2) goto LAB_3;

+                lVar8 = -0x7fd8ffc9;

+                goto LAB_2;

+              }

+              wil::

+              make_unique_string_nothrow<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>

+                        ((ushort *)&local_68,(__uint64)puVar1);

+              pvVar4 = local_68;

+              lVar8 = 0;

+              local_68 = (void *)0x0;

+              wil::details::

+              unique_storage<wil::details::resource_policy<void*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+              ::reset(this_01,pvVar4);

+              if (*(longlong *)this_01 == 0) {

+                lVar8 = -0x7ff8ff32;

+              }

+              else {

+                *(int *)(param_1 + 0x14) = *(int *)(param_1 + 0x14) + 1;

+                if ((*(uint *)(param_1 + 0x230) & 0x400) == 0) {

+                  lVar8 = _CheckFolderSizeAndDeleteability(this,param_1,param_2);

+                }

+                lVar11 = -1;

+                do {

+                  lVar12 = lVar11;

+                  lVar11 = lVar12 + 1;

+                } while (*(short *)(*(longlong *)this_01 + lVar11 * 2) != 0);

+                PathCchRemoveFileSpec(*(longlong *)this_01,lVar12 + 2);

+                bVar2 = false;

+              }

+LAB_3:

+              iVar13 = iVar13 + 1;

+              if ((-1 < lVar8) && (iVar13 == 500)) {

+                iVar13 = 0;

+                lVar8 = UpdateProgress(local_58,*(__uint64 *)(param_1 + 8),

+                                       *(__uint64 *)(param_1 + 8),*(int *)(param_1 + 0x10),

+                                       *(int *)(param_1 + 0x10),*(int *)(param_1 + 0x14),

+                                       *(int *)(param_1 + 0x14));

+              }

+            }

+            if (((-1 < lVar5) && (lVar5 = lVar8, bVar2)) && (lVar8 < 0)) {

+              StringCchCopyW((ushort *)(param_1 + 0x18),0x104,*(ushort **)this_00);

+            }

+            if (lVar8 == -0x7fd8ffc9) break;

+          }

+          BVar7 = FindNextFileW(local_60,(LPWIN32_FIND_DATAW)(param_1 + 0x230));

+          bVar2 = bVar3;

+        } while (BVar7 != 0);

+        FindClose(local_60);

+      }

+      if (((-1 < lVar5) && (lVar8 = CanDeletePath(*(ushort **)this_01), lVar5 = lVar8, lVar8 < 0))

+         && ((lVar8 != -0x7ff8ff6f || (lVar5 = 0, !bVar3)))) {

+        StringCchCopyW((ushort *)(param_1 + 0x18),0x104,*(ushort **)this_01);

+        lVar5 = lVar8;

+      }

+    }

+  }

+  return lVar5;

+}

+
```

## `StateRepoHelpers::ExplorerCommandVerb::~ExplorerCommandVerb`  (modified)

```diff
--- StateRepoHelpers::ExplorerCommandVerb::~ExplorerCommandVerb
+++ StateRepoHelpers::ExplorerCommandVerb::~ExplorerCommandVerb
@@ -1,2 +1,34 @@
-Failed to decompile windows.storage.dll - .ProgramDB StateRepoHelpers::ExplorerCommandVerb::~ExplorerCommandVerb : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: __cdecl StateRepoHelpers::ExplorerCommandVerb::~ExplorerCommandVerb(void) __ptr64 */

+

+void __thiscall

+StateRepoHelpers::ExplorerCommandVerb::~ExplorerCommandVerb(ExplorerCommandVerb *this)

+

+{

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)(this + 0x28));

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)(this + 0x20));

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)(this + 8));

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)this);

+  return;

+}

+
```

## `CLibraryFolderDropTarget::WriteCustomText`  (modified)

```diff
--- CLibraryFolderDropTarget::WriteCustomText
+++ CLibraryFolderDropTarget::WriteCustomText
@@ -1,2 +1,189 @@
-Failed to decompile windows.storage.dll - .ProgramDB CLibraryFolderDropTarget::WriteCustomText : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CLibraryFolderDropTarget::WriteCustomText(void) __ptr64 */

+

+long __thiscall CLibraryFolderDropTarget::WriteCustomText(CLibraryFolderDropTarget *this)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  undefined8 uVar3;

+  _union_2284 _Var4;

+  undefined8 *puVar5;

+  undefined8 *puVar6;

+  int iVar7;

+  undefined8 *puVar8;

+  ushort **ppuVar9;

+  undefined8 *puVar10;

+  uint uVar11;

+  longlong lVar12;

+  void *unaff_retaddr;

+  undefined1 auStackY_4c8 [32];

+  ulonglong local_498;

+  undefined8 *local_490;

+  ushort local_488 [16];

+  STGMEDIUM local_468;

+  ushort *local_450;

+  undefined8 local_448 [2];

+  undefined8 local_438 [65];

+  ushort local_22c [266];

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStackY_4c8;

+  local_488[0] = g_cfDropDescription;

+  local_488[1] = 0;

+  local_488[2] = 0;

+  local_488[3] = 0;

+  local_488[4] = 0;

+  local_488[5] = 0;

+  local_488[6] = 0;

+  local_488[7] = 0;

+  local_488[8] = 1;

+  local_488[9] = 0;

+  local_488[10] = 0xffff;

+  local_488[0xb] = 0xffff;

+  local_488[0xc] = 1;

+  local_488[0xd] = 0;

+  local_488[0xe] = 0;

+  local_488[0xf] = 0;

+  local_468.tymed = 0;

+  local_468._4_4_ = 0;

+  local_468.u.hBitmap = (HBITMAP)0x0;

+  local_468.pUnkForRelease = (IUnknown *)0x0;

+  plVar1 = *(longlong **)(this + 0x70);

+  if (plVar1 != (longlong *)0x0) {

+    iVar7 = (**(code **)(*plVar1 + 0x18))(plVar1,local_488,&local_468);

+    _Var4 = local_468.u;

+    if (-1 < iVar7) {

+      local_490 = GlobalLock(local_468.u.hGlobal);

+      local_498 = -(ulonglong)(local_490 != (undefined8 *)0x0) & (ulonglong)_Var4.hBitmap;

+      if (local_490 != (undefined8 *)0x0) {

+        lVar12 = 8;

+        puVar5 = local_490;

+        puVar6 = local_438;

+        do {

+          puVar10 = puVar6;

+          puVar8 = puVar5;

+          uVar3 = puVar8[1];

+          *puVar10 = *puVar8;

+          puVar10[1] = uVar3;

+          uVar3 = puVar8[3];

+          puVar10[2] = puVar8[2];

+          puVar10[3] = uVar3;

+          uVar3 = puVar8[5];

+          puVar10[4] = puVar8[4];

+          puVar10[5] = uVar3;

+          uVar3 = puVar8[7];

+          puVar10[6] = puVar8[6];

+          puVar10[7] = uVar3;

+          uVar3 = puVar8[9];

+          puVar10[8] = puVar8[8];

+          puVar10[9] = uVar3;

+          uVar3 = puVar8[0xb];

+          puVar10[10] = puVar8[10];

+          puVar10[0xb] = uVar3;

+          uVar3 = puVar8[0xd];

+          puVar10[0xc] = puVar8[0xc];

+          puVar10[0xd] = uVar3;

+          uVar3 = puVar8[0xf];

+          puVar10[0xe] = puVar8[0xe];

+          puVar10[0xf] = uVar3;

+          lVar12 = lVar12 + -1;

+          puVar5 = puVar8 + 0x10;

+          puVar6 = puVar10 + 0x10;

+        } while (lVar12 != 0);

+        uVar3 = puVar8[0x11];

+        puVar10[0x10] = puVar8[0x10];

+        puVar10[0x11] = uVar3;

+        *(undefined4 *)(puVar10 + 0x12) = *(undefined4 *)(puVar8 + 0x12);

+        local_448[0] = 0;

+        plVar1 = *(longlong **)(this + 0x80);

+        pcVar2 = *(code **)(*plVar1 + 0x28);

+        ppuVar9 = wil::

+                  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                  ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                         *)local_448);

+        iVar7 = (*pcVar2)(plVar1,0,ppuVar9);

+        if (iVar7 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x101e,"onecoreuap\\shell\\windows.storage\\libraryfolder.cpp",

+                     iVar7);

+        }

+        else {

+          local_450 = (ushort *)0x0;

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+          ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                 *)&local_450);

+          iVar7 = SHFormatMessageArgAlloc(0x400,*(undefined8 *)(this + 0x78),0,0);

+          if (iVar7 < 0) {

+            uVar11 = 0x1023;

+          }

+          else {

+            iVar7 = StringCchCopyW(local_22c,0x104,local_450);

+            if (iVar7 < 0) {

+              uVar11 = 0x1025;

+            }

+            else {

+              iVar7 = DataObj_SetBlobWithIndex

+                                (*(IDataObject **)(this + 0x70),(uint)g_cfDropDescription,local_438,

+                                 0x414,-1);

+              if (-1 < iVar7) {

+                wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ::

+                ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                          ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                            *)&local_450);

+                wil::details::

+                unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ::

+                ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                          ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                            *)local_448);

+                goto LAB_0;

+              }

+              uVar11 = 0x1027;

+            }

+          }

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,uVar11,"onecoreuap\\shell\\windows.storage\\libraryfolder.cpp",

+                     iVar7);

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+          ::

+          ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_450);

+        }

+        wil::details::

+        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    *)local_448);

+        wil::details::

+        unique_storage<wil::details::resource_policy<void*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_GlobalUnlock(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<void*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_GlobalUnlock(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<void*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_GlobalUnlock(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                    *)&local_498);

+        goto LAB_1;

+      }

+LAB_0:

+      wil::details::

+      unique_storage<wil::details::resource_policy<void*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_GlobalUnlock(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<void*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_GlobalUnlock(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<void*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_GlobalUnlock(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  *)&local_498);

+    }

+  }

+  iVar7 = 0;

+LAB_1:

+  ReleaseStgMedium(&local_468);

+  return iVar7;

+}

+
```

## `StateRepoVerbsCache::RebuildCacheWorker`  (modified)

```diff
--- StateRepoVerbsCache::RebuildCacheWorker
+++ StateRepoVerbsCache::RebuildCacheWorker
@@ -1,2 +1,171 @@
-Failed to decompile windows.storage.dll - .ProgramDB StateRepoVerbsCache::RebuildCacheWorker : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* private: long __cdecl StateRepoVerbsCache::RebuildCacheWorker(void) __ptr64 */

+

+long __thiscall StateRepoVerbsCache::RebuildCacheWorker(StateRepoVerbsCache *this)

+

+{

+  ApplicationExtension *pAVar1;

+  longlong lVar2;

+  bool bVar3;

+  uint uVar4;

+  uint uVar5;

+  AsyncStatus AVar6;

+  undefined4 uVar7;

+  int iVar8;

+  com_ptr<struct_winrt::impl::IRestrictedErrorInfo> *pcVar9;

+  hstring *phVar10;

+  ulonglong uVar11;

+  ValueSet *pVVar12;

+  allocator<winrt::Windows::Foundation::Collections::ValueSet> *paVar13;

+  char *pcVar14;

+  ApplicationExtension *pAVar15;

+  void *unaff_retaddr;

+  undefined1 auStack_e8 [32];

+  longlong *local_c8;

+  ApplicationExtension *local_c0;

+  User local_b8 [8];

+  undefined8 local_b0;

+  _RTL_SRWLOCK local_a8 [2];

+  ApplicationExtension *local_98;

+  undefined4 uStack_90;

+  undefined4 uStack_8c;

+  StateRepoVerbsCache *local_88;

+  StateRepoVerbsCache *local_80;

+  undefined1 local_78;

+  hstring local_70 [32];

+  undefined1 local_50 [8];

+  undefined8 local_48;

+  undefined8 uStack_40;

+  undefined8 uStack_38;

+  undefined1 *local_28;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStack_e8;

+  local_88 = this;

+  wil::AcquireSRWLockExclusive(local_a8);

+  wil::details::ResetEvent(*(void **)(this + 0x40));

+  local_78 = 1;

+  local_80 = this;

+  ClearCache(this);

+  local_c8 = (longlong *)0x0;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp> *)

+                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ContextMenuAppsExp>::GetImpl(void)'

+                               ::__l2::impl);

+  if (bVar3) {

+    pcVar9 = (com_ptr<struct_winrt::impl::IRestrictedErrorInfo> *)GetShareTargetExtensions(this);

+    winrt::com_ptr<winrt::impl::IRestrictedErrorInfo>::operator=

+              ((com_ptr<winrt::impl::IRestrictedErrorInfo> *)&local_c8,pcVar9);

+    winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+              ((ICoreApplicationPrivate *)&local_b0);

+  }

+  winrt::param::hstring::hstring(local_70,(ushort *)L"windows.fileExplorerContextMenus");

+  local_b0 = 0;

+  phVar10 = (hstring *)&local_b0;

+  winrt::Windows::Internal::StateRepository::ApplicationExtension::FindByUserAndCategory

+            (local_b8,phVar10);

+  uVar5 = (uint)phVar10;

+  winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+            ((ICoreApplicationPrivate *)&local_b0);

+  uVar4 = winrt::impl::

+          consume_Windows_Foundation_Collections_IVector<winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>,winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>

+          ::Size((consume_Windows_Foundation_Collections_IVector<winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>,winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>

+                  *)local_b8);

+  if (uVar4 != 0) {

+    winrt::com_array<winrt::Windows::Internal::StateRepository::ApplicationExtension>::

+    com_array<winrt::Windows::Internal::StateRepository::ApplicationExtension>

+              ((com_array<winrt::Windows::Internal::StateRepository::ApplicationExtension> *)

+               &local_48,uVar4);

+    uStack_90 = (undefined4)uStack_40;

+    uStack_8c = uStack_40._4_4_;

+    paVar13 = (allocator<winrt::Windows::Foundation::Collections::ValueSet> *)&local_98;

+    uVar5 = winrt::impl::

+            consume_Windows_Foundation_Collections_IVectorView<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Internal::StateRepository::ApplicationExtension>,winrt::Windows::Internal::StateRepository::ApplicationExtension>

+            ::GetMany((consume_Windows_Foundation_Collections_IVectorView<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Internal::StateRepository::ApplicationExtension>,winrt::Windows::Internal::StateRepository::ApplicationExtension>

+                       *)local_b8);

+    if (uVar4 != uVar5) {

+      pcVar14 = "onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp";

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x35e,"onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp",

+                 -0x7fff0001);

+      if (local_48 != (ApplicationExtension *)0x0) {

+        std::_Destroy_range<std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>

+                  ((ValueSet *)local_48,(ValueSet *)(local_48 + (uStack_40 & 0xffffffff) * 8),

+                   (allocator<winrt::Windows::Foundation::Collections::ValueSet> *)pcVar14);

+        CoTaskMemFree(local_48);

+        local_48 = (ApplicationExtension *)0x0;

+        uStack_40 = (ulonglong)uStack_40._4_4_ << 0x20;

+      }

+      winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+                ((ICoreApplicationPrivate *)local_b8);

+      winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+                ((ICoreApplicationPrivate *)&local_c8);

+      wil::details::SetEvent(*(void **)(this + 0x40));

+      CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_a8);

+      return -0x7fff0001;

+    }

+    uVar11 = uStack_40 & 0xffffffff;

+    pAVar1 = local_48 + uVar11 * 8;

+    local_98 = pAVar1;

+    for (pAVar15 = local_48; uVar5 = (uint)uVar11, local_c0 = pAVar15, pAVar15 != pAVar1;

+        pAVar15 = pAVar15 + 8) {

+      UpdateVerbsForAppExtension(this,pAVar15);

+      uVar11 = uStack_40 & 0xffffffff;

+    }

+    if (local_48 != (ApplicationExtension *)0x0) {

+      pVVar12 = (ValueSet *)(local_48 + uVar11 * 8);

+      std::_Destroy_range<std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>

+                ((ValueSet *)local_48,pVVar12,paVar13);

+      uVar5 = (uint)pVVar12;

+      CoTaskMemFree(local_48);

+    }

+  }

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp> *)

+                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ContextMenuAppsExp>::GetImpl(void)'

+                               ::__l2::impl);

+  if (bVar3) {

+    AVar6 = winrt::impl::

+            consume_Windows_Foundation_IAsyncInfo<winrt::Windows::Foundation::IAsyncAction>::Status

+                      ((consume_Windows_Foundation_IAsyncInfo<winrt::Windows::Foundation::IAsyncAction>

+                        *)&local_c8);

+    if (AVar6 == 0) {

+      AVar6 = winrt::impl::wait_for_completed<winrt::Windows::Foundation::IAsyncAction>

+                        ((IAsyncAction *)&local_c8,uVar5);

+    }

+    winrt::impl::check_status_canceled(AVar6);

+    local_48 = (ApplicationExtension *)((ulonglong)local_48._4_4_ << 0x20);

+    uStack_40 = 0;

+    uStack_38 = 0;

+    uVar7 = (**(code **)(*local_c8 + 0x40))();

+    winrt::check_hresult(&local_c0,uVar7,&local_48);

+  }

+  local_50[0] = 0;

+  local_28 = local_50;

+  iVar8 = 1;

+  if (*(longlong *)(this + 0x30) != 0) {

+    for (uVar11 = 0; (iVar8 != 0 && ((uint)uVar11 < *(uint *)(this + 0x24)));

+        uVar11 = (ulonglong)((uint)uVar11 + 1)) {

+      lVar2 = *(longlong *)(this + 0x30);

+      if (*(int *)(lVar2 + uVar11 * 0x18) == 1) {

+        iVar8 = CSimpleHashTable<unsigned_short_const*___ptr64,CCoSimpleArray<StateRepoHelpers::ExplorerCommandVerb*___ptr64,4294967294,CSimpleArrayStandardCompareHelper<StateRepoHelpers::ExplorerCommandVerb*___ptr64>_>*___ptr64,CCaseInsensitiveStringHashPolicy,CCaseInsensitiveStringCompare,CDefaultResizePolicy,CDefaultRehashPolicy>

+                ::s_EnumAdaptor<<lambda_cb75e065b28c1e18ce861b5c5d9abdf5>_>

+                          ((<lambda_cb75e065b28c1e18ce861b5c5d9abdf5> *)&local_28,

+                           (ushort **)(lVar2 + (uVar11 * 3 + 1) * 8),

+                           (CCoSimpleArray<StateRepoHelpers::ExplorerCommandVerb*___ptr64,4294967294,CSimpleArrayStandardCompareHelper<StateRepoHelpers::ExplorerCommandVerb*___ptr64>_>

+                            **)(lVar2 + (uVar11 * 3 + 2) * 8));

+      }

+    }

+  }

+  winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+            ((ICoreApplicationPrivate *)local_b8);

+  winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+            ((ICoreApplicationPrivate *)&local_c8);

+  wil::details::SetEvent(*(void **)(this + 0x40));

+  CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_a8);

+  return 0;

+}

+
```

## `CHomeOperationSink::FinishOperations`  (modified)

```diff
--- CHomeOperationSink::FinishOperations
+++ CHomeOperationSink::FinishOperations
@@ -1,2 +1,550 @@
-Failed to decompile windows.storage.dll - .ProgramDB CHomeOperationSink::FinishOperations : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: virtual long __cdecl CHomeOperationSink::FinishOperations(long) __ptr64 */

+

+long __thiscall CHomeOperationSink::FinishOperations(CHomeOperationSink *this,long param_1)

+

+{

+  code *pcVar1;

+  undefined8 *puVar2;

+  IObjectCollection *pIVar3;

+  bool bVar4;

+  DWORD DVar5;

+  long lVar6;

+  int iVar7;

+  test_watcher<class_tip2::details::merged_data<struct_GraphFilesTip::_tip_HomeOperationSinkTest_attributes,class_tip2::test_data_basic>_>

+  *ptVar8;

+  char *pcVar9;

+  shared_ptr<class_CAutoDestList> *psVar10;

+  void **ppvVar11;

+  MicrosoftGraphRecentItemInfo *pMVar12;

+  longlong *plVar13;

+  TaskApartment TVar14;

+  HomeUpdateDirReason HVar15;

+  ICoreApplicationPrivate *this_01;

+  ComPtr<IQuerySource> *pCVar16;

+  TaskOptions TVar17;

+  ReportingKind RVar18;

+  char cVar20;

+  CHomeOperationSink *pCVar21;

+  uint uVar22;

+  uint uVar23;

+  InstanceManager *unaff_retaddr;

+  undefined1 auStackY_308 [32];

+  bool local_2d8;

+  char local_2d7;

+  uint local_2d4;

+  CHomeOperationSink *local_2d0;

+  IShellItem local_2c8;

+  IShellItem local_2c0;

+  _Ref_count_base *local_2b8;

+  longlong local_2b0;

+  _Ref_count_base *p_Stack_2a8;

+  FinishOperationsData local_2a0 [88];

+  CHomeOperationSink *local_248;

+  CHomeOperationSink *local_240;

+  uint local_238 [2];

+  IObjectCollection *local_230;

+  uint local_228 [2];

+  IObjectCollection *local_220;

+  IObjectCollection *local_218;

+  undefined8 local_210;

+  undefined8 uStack_208;

+  undefined8 local_200;

+  undefined8 local_1f8;

+  undefined8 uStack_1f0;

+  undefined8 local_1e8;

+  FinishOperationsData local_1d8 [8];

+  ThreadFailureCallbackHolder local_1d0 [24];

+  int local_1b8;

+  longlong local_1a0;

+  ActivityBase<FileExplorerLogging,1,0,5,0,_TlgReflectorTag_Param0IsProviderType> local_178 [336];

+  ulonglong local_28;

+  FinishOperationsData *this_00;

+  FinishOperationsData *pFVar19;

+  

+  local_28 = __security_cookie ^ (ulonglong)auStackY_308;

+  local_2d0 = this;

+  bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61021332>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61021332> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61021332>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61021332>::GetImpl(void)'

+                      ::__l2::impl);

+  uVar23 = 0;

+  if (bVar4) {

+    CaptureFinishOperationsData(this);

+    pFVar19 = local_1d8;

+    this_00 = local_2a0;

+    FinishOperationsData::FinishOperationsData(this_00,pFVar19);

+    TVar17 = (TaskOptions)pFVar19;

+    TVar14 = (TaskApartment)this_00;

+    DVar5 = GetCurrentThreadId();

+    lVar6 = Windows::Internal::ComTaskPool::QueueTask<<lambda_5c0b9f33430f110ee0e31fa01efeaba1>_>

+                      (TVar14,TVar17,DVar5,(<lambda_5c0b9f33430f110ee0e31fa01efeaba1> *)local_2a0);

+    if (lVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x1e0,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 lVar6);

+    }

+    FinishOperationsData::~FinishOperationsData(local_2a0);

+    FinishOperationsData::~FinishOperationsData(local_1d8);

+  }

+  else {

+    local_2d8 = false;

+    FileExplorerTelemetry::UpdateDestListsPostFileOperation::Start<>();

+    tip2::

+    test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+    ::

+    test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+              ((test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+                *)local_1d8);

+    ptVar8 = (test_watcher<class_tip2::details::merged_data<struct_GraphFilesTip::_tip_HomeOperationSinkTest_attributes,class_tip2::test_data_basic>_>

+              *)tip2::

+                start_and_watch_errors<tip2::tip_test<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>_>

+                          ();

+    tip2::

+    test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+    ::operator=((test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+                 *)local_1d8,ptVar8);

+    tip2::

+    test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+    ::

+    ~test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+              ((test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+                *)local_2a0);

+    if (local_1b8 != 0) {

+      wil::details::ThreadFailureCallbackHolder::StopWatching(local_1d0);

+    }

+    local_220 = (IObjectCollection *)0x0;

+    local_218 = (IObjectCollection *)0x0;

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_218);

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_220);

+    lVar6 = RenameData::GetCollections((RenameData *)(this + 0x38),&local_220,&local_218);

+    if (lVar6 < 0) {

+      RVar18 = 0x1fd;

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x1fd,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 lVar6);

+    }

+    else {

+      UpdateDestinationList(0,1,local_220,local_218,&local_2d8);

+      RVar18 = 1;

+      UpdateDestinationList(1,1,local_220,local_218,&local_2d8);

+    }

+    wil::details::FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>::

+    __private_IsEnabledPreCheck

+              ((FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure> *)

+               &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>::GetImpl(void)'

+                ::__l2::impl,RVar18);

+    UpdateDestinationList(2,1,local_220,local_218,&local_2d8);

+    lVar6 = TrimDeletedObjectCollections(this);

+    if (lVar6 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x20a,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 lVar6);

+    }

+    pCVar21 = this + 0x70;

+    local_240 = pCVar21;

+    UpdateDestinationList(0,0,*(IObjectCollection **)pCVar21,(IObjectCollection *)0x0,&local_2d8);

+    UpdateDestinationList(1,0,*(IObjectCollection **)pCVar21,(IObjectCollection *)0x0,&local_2d8);

+    UpdateDestinationList

+              (0,2,*(IObjectCollection **)(this + 0xd8),(IObjectCollection *)0x0,&local_2d8);

+    UpdateDestinationList

+              (1,2,*(IObjectCollection **)(this + 0xd8),(IObjectCollection *)0x0,&local_2d8);

+    RVar18 = 2;

+    UpdateDestinationList

+              (1,2,*(IObjectCollection **)(this + 200),(IObjectCollection *)0x0,&local_2d8);

+    wil::details::FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>::

+    __private_IsEnabledPreCheck

+              ((FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure> *)

+               &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_MSGraphIntegrationDestListInfrastructure>::GetImpl(void)'

+                ::__l2::impl,RVar18);

+    RVar18 = 2;

+    UpdateDestinationList

+              (2,2,*(IObjectCollection **)(this + 0xd8),(IObjectCollection *)0x0,&local_2d8);

+    bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_51721485>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_51721485> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_51721485>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_51721485>::GetImpl(void)'

+                        ::__l2::impl,RVar18);

+    if (bVar4) {

+      UpdateDestinationList(3,0,*(IObjectCollection **)pCVar21,(IObjectCollection *)0x0,&local_2d8);

+      UpdateDestinationList

+                (3,2,*(IObjectCollection **)(this + 0xd8),(IObjectCollection *)0x0,&local_2d8);

+      UpdateDestinationList(3,1,local_220,local_218,&local_2d8);

+      pcVar9 = tip2::details::reason_string

+                         (

+                         "GraphFilesTip::HomeOperationSinkTestReason::destination_list_update_completed"

+                         );

+      tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                ((shared_data<0,0,1> *)(local_1a0 + 8),1,pcVar9);

+      local_228[0] = 0;

+      iVar7 = (**(code **)(**(longlong **)pCVar21 + 0x18))(*(longlong **)pCVar21,local_228);

+      if (iVar7 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x226,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                   iVar7);

+      }

+      local_2d7 = '\0';

+      local_2b0 = 0;

+      p_Stack_2a8 = (_Ref_count_base *)0x0;

+      bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_57173102>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_57173102> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_57173102>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_57173102>::GetImpl(void)'

+                          ::__l2::impl);

+      if (bVar4) {

+        psVar10 = (shared_ptr<class_CAutoDestList> *)

+                  GraphRecentItemsManager::InstanceManager::GetInstanceManager();

+        std::shared_ptr<CAutoDestList>::operator=((shared_ptr<CAutoDestList> *)&local_2b0,psVar10);

+        if (local_2b8 != (_Ref_count_base *)0x0) {

+          std::_Ref_count_base::_Decref(local_2b8);

+        }

+      }

+      else {

+        psVar10 = (shared_ptr<class_CAutoDestList> *)

+                  GraphRecentItemsManager::InstanceManager::GetInstanceManager();

+        std::shared_ptr<CAutoDestList>::operator=((shared_ptr<CAutoDestList> *)&local_2b0,psVar10);

+        if (local_2b8 != (_Ref_count_base *)0x0) {

+          std::_Ref_count_base::_Decref(local_2b8);

+        }

+      }

+      if (local_2b0 == 0) {

+        wil::details::in1diag3::Log_HrMsg

+                  (unaff_retaddr,0x28b,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                   -0x7ff8ec61,

+                   "In CHomeOperationSink::FinishOperations(): Failed to retrieve GraphRecentItemsManager::InstanceManager. Instance manager is unavailable."

+                  );

+      }

+      else {

+        pcVar9 = tip2::details::reason_string

+                           ("GraphFilesTip::HomeOperationSinkTestReason::grim_instance_retrieved");

+        tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                  ((shared_data<0,0,1> *)(local_1a0 + 8),5,pcVar9);

+        if (local_228[0] != 0) {

+          local_210 = 0;

+          uStack_208 = 0;

+          local_200 = 0;

+          std::

+          vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+          ::reserve((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                     *)&local_210,(ulonglong)local_228[0]);

+          for (uVar22 = uVar23; local_2d4 = uVar22, uVar22 < local_228[0]; uVar22 = uVar22 + 1) {

+            local_248 = (CHomeOperationSink *)0x0;

+            plVar13 = *(longlong **)pCVar21;

+            pcVar1 = *(code **)(*plVar13 + 0x20);

+            ppvVar11 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&local_248);

+            iVar7 = (*pcVar1)(plVar13,uVar22,&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar11);

+            if (iVar7 < 0) {

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0x242,

+                         "onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",iVar7);

+            }

+            else {

+              pMVar12 = (MicrosoftGraphRecentItemInfo *)

+                        GraphRecentItemsManager::InstanceManager::

+                        CreateMicrosoftGraphRecentItemInfoFromShellItem(unaff_retaddr,&local_2c8);

+              std::

+              vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+              ::emplace_back<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>

+                        ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                          *)&local_210,pMVar12);

+              winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::

+              ~ICoreApplicationPrivate((ICoreApplicationPrivate *)&local_2c8);

+            }

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                      ((ComPtr<IQuerySource> *)&local_248);

+            pCVar21 = local_240;

+          }

+          if (local_2d7 == '\0') {

+            plVar13 = (longlong *)

+                      winrt::

+                      single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                                ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                                  *)&local_2c8);

+            puVar2 = (undefined8 *)*plVar13;

+            if (puVar2 == (undefined8 *)0x0) {

+              local_248 = (CHomeOperationSink *)0x0;

+            }

+            else {

+              local_240 = (CHomeOperationSink *)0x0;

+              (**(code **)*puVar2)

+                        (puVar2,&winrt::impl::

+                                 guid_v<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                         ,&local_240);

+              local_248 = local_240;

+            }

+            iVar7 = RemoveRecommendationFromBlockList(&local_248);

+            if (iVar7 < 0) {

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,599,

+                         "onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",iVar7);

+            }

+            winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::

+            ~ICoreApplicationPrivate((ICoreApplicationPrivate *)&local_2c8);

+            if (iVar7 < 0) {

+              pcVar9 = tip2::details::reason_string

+                                 (

+                                 "GraphFilesTip::HomeOperationSinkTestReason::remove_recommendation_from_blocklist_failed"

+                                 );

+              tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                        ((shared_data<0,0,1> *)(local_1a0 + 8),7,pcVar9);

+            }

+          }

+          winrt::impl::

+          removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+          ::

+          ~removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                    ((removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                      *)&local_210);

+        }

+        local_238[0] = 0;

+        iVar7 = (**(code **)(*(longlong *)local_220 + 0x18))(local_220,local_238);

+        if (iVar7 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x25f,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp"

+                     ,iVar7);

+        }

+        cVar20 = '\0';

+        local_2d7 = '\0';

+        if (local_238[0] != 0) {

+          local_1f8 = 0;

+          uStack_1f0 = 0;

+          local_1e8 = 0;

+          local_210 = 0;

+          uStack_208 = 0;

+          local_200 = 0;

+          std::

+          vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+          ::reserve((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                     *)&local_1f8,(ulonglong)local_238[0]);

+          std::

+          vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+          ::reserve((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                     *)&local_210,(ulonglong)local_238[0]);

+          for (; pIVar3 = local_220, local_2d4 = uVar23, uVar23 < local_238[0]; uVar23 = uVar23 + 1)

+          {

+            local_240 = (CHomeOperationSink *)0x0;

+            local_248 = (CHomeOperationSink *)0x0;

+            pcVar1 = *(code **)(*(longlong *)local_220 + 0x20);

+            ppvVar11 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&local_240);

+            lVar6 = (*pcVar1)(pIVar3,uVar23,&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar11);

+            pIVar3 = local_218;

+            if (lVar6 < 0) {

+LAB_0:

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0x26b,

+                         "onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",lVar6);

+            }

+            else {

+              pcVar1 = *(code **)(*(longlong *)local_218 + 0x20);

+              ppvVar11 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&local_248);

+              lVar6 = (*pcVar1)(pIVar3,uVar23,&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar11);

+              if (lVar6 < 0) goto LAB_0;

+              pMVar12 = (MicrosoftGraphRecentItemInfo *)

+                        GraphRecentItemsManager::InstanceManager::

+                        CreateMicrosoftGraphRecentItemInfoFromShellItem(unaff_retaddr,&local_2c8);

+              std::

+              vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+              ::emplace_back<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>

+                        ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                          *)&local_1f8,pMVar12);

+              this_01 = (ICoreApplicationPrivate *)&local_2c8;

+              winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::

+              ~ICoreApplicationPrivate(this_01);

+              pMVar12 = (MicrosoftGraphRecentItemInfo *)

+                        GraphRecentItemsManager::InstanceManager::

+                        CreateMicrosoftGraphRecentItemInfoFromShellItem

+                                  ((InstanceManager *)this_01,&local_2c0);

+              std::

+              vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+              ::emplace_back<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>

+                        ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                          *)&local_210,pMVar12);

+              winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::

+              ~ICoreApplicationPrivate((ICoreApplicationPrivate *)&local_2c0);

+            }

+            cVar20 = local_2d7;

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                      ((ComPtr<IQuerySource> *)&local_248);

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                      ((ComPtr<IQuerySource> *)&local_240);

+          }

+          if (cVar20 == '\0') {

+            plVar13 = (longlong *)

+                      winrt::

+                      single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                                ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                                  *)&local_2c8);

+            puVar2 = (undefined8 *)*plVar13;

+            if (puVar2 == (undefined8 *)0x0) {

+              local_240 = (CHomeOperationSink *)0x0;

+            }

+            else {

+              local_248 = (CHomeOperationSink *)0x0;

+              (**(code **)*puVar2)

+                        (puVar2,&winrt::impl::

+                                 guid_v<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                         ,&local_248);

+              local_240 = local_248;

+            }

+            plVar13 = (longlong *)

+                      winrt::

+                      single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                                ((vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                                  *)&local_2c0);

+            puVar2 = (undefined8 *)*plVar13;

+            if (puVar2 == (undefined8 *)0x0) {

+              local_2d0 = (CHomeOperationSink *)0x0;

+            }

+            else {

+              local_248 = (CHomeOperationSink *)0x0;

+              (**(code **)*puVar2)

+                        (puVar2,&winrt::impl::

+                                 guid_v<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

+                         ,&local_248);

+              local_2d0 = local_248;

+            }

+            iVar7 = UpdateItemsInRecommendedBlockList(&local_2d0,&local_240);

+            if (iVar7 < 0) {

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0x282,

+                         "onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",iVar7);

+            }

+            winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::

+            ~ICoreApplicationPrivate((ICoreApplicationPrivate *)&local_2c0);

+            winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::

+            ~ICoreApplicationPrivate((ICoreApplicationPrivate *)&local_2c8);

+            if (iVar7 < 0) {

+              pcVar9 = tip2::details::reason_string

+                                 (

+                                 "GraphFilesTip::HomeOperationSinkTestReason::update_recommendation_in_blocklist_failed"

+                                 );

+              tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                        ((shared_data<0,0,1> *)(local_1a0 + 8),8,pcVar9);

+            }

+          }

+          winrt::impl::

+          removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+          ::

+          ~removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                    ((removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                      *)&local_210);

+          winrt::impl::

+          removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+          ::

+          ~removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                    ((removed_values<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,void>

+                      *)&local_1f8);

+        }

+      }

+      pcVar9 = tip2::details::reason_string

+                         (

+                         "GraphFilesTip::HomeOperationSinkTestReason::recommendation_blocklist_update_completed"

+                         );

+      tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                ((shared_data<0,0,1> *)(local_1a0 + 8),2,pcVar9);

+      if (p_Stack_2a8 != (_Ref_count_base *)0x0) {

+        std::_Ref_count_base::_Decref(p_Stack_2a8);

+      }

+    }

+    else {

+      pcVar9 = tip2::details::reason_string

+                         (

+                         "GraphFilesTip::HomeOperationSinkTestReason::destination_list_update_completed"

+                         );

+      tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                ((shared_data<0,0,1> *)(local_1a0 + 8),1,pcVar9);

+      pcVar9 = tip2::details::reason_string

+                         (

+                         "GraphFilesTip::HomeOperationSinkTestReason::recommendation_blocklist_update_completed"

+                         );

+      tip2::details::shared_data<0,0,1>::set_flag_without_lock

+                ((shared_data<0,0,1> *)(local_1a0 + 8),2,pcVar9);

+    }

+    local_230 = (IObjectCollection *)0x0;

+    pCVar16 = (ComPtr<IQuerySource> *)&local_230;

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar16);

+    lVar6 = GetObjectCollection((CHomeOperationSink *)pCVar16,

+                                (CCaseInsensitiveStringHashTable<Microsoft::WRL::ComPtr<IShellItem>_>

+                                 *)(this + 0x50),&local_230);

+    if (lVar6 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x29a,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 lVar6);

+    }

+    else {

+      AddFrequentFolders(local_230,5);

+    }

+    pCVar16 = (ComPtr<IQuerySource> *)&local_230;

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar16);

+    lVar6 = GetObjectCollection((CHomeOperationSink *)pCVar16,

+                                (CCaseInsensitiveStringHashTable<Microsoft::WRL::ComPtr<IShellItem>_>

+                                 *)(this + 0x90),&local_230);

+    if (lVar6 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x29f,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 lVar6);

+    }

+    else {

+      AddFrequentFolders(local_230,3);

+    }

+    pCVar16 = (ComPtr<IQuerySource> *)&local_230;

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar16);

+    lVar6 = GetObjectCollection((CHomeOperationSink *)pCVar16,

+                                (CCaseInsensitiveStringHashTable<Microsoft::WRL::ComPtr<IShellItem>_>

+                                 *)(this + 0xa8),&local_230);

+    if (lVar6 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x2a4,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+                 lVar6);

+    }

+    else {

+      AddFrequentFolders(local_230,4);

+    }

+    AddFrequentFolders(*(IObjectCollection **)(this + 0x68),8);

+    AddFrequentFolders(*(IObjectCollection **)(this + 0xc0),6);

+    pcVar9 = tip2::details::reason_string

+                       (

+                       "GraphFilesTip::HomeOperationSinkTestReason::frequent_folder_update_completed"

+                       );

+    RVar18 = 3;

+    tip2::details::shared_data<0,0,1>::set_flag_without_lock

+              ((shared_data<0,0,1> *)(local_1a0 + 8),3,pcVar9);

+    if ((local_2d8 != false) || (this[0xd0] != (CHomeOperationSink)0x0)) {

+      bVar4 = wil::details::

+              FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>::

+              __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>

+                                   *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ImproveChangeNotificationTelemetry>::GetImpl(void)'

+                                      ::__l2::impl,RVar18);

+      if (bVar4) {

+        HVar15 = 0x10;

+      }

+      else {

+        HVar15 = 0;

+      }

+      NotifyHomeFolderUpdated(HVar15);

+    }

+    pcVar9 = tip2::details::reason_string

+                       ("GraphFilesTip::HomeOperationSinkTestReason::notify_home_folder_completed");

+    tip2::details::shared_data<0,0,1>::set_flag_without_lock

+              ((shared_data<0,0,1> *)(local_1a0 + 8),4,pcVar9);

+    tip2::details::shared_data<0,0,1>::complete_without_lock((shared_data<0,0,1> *)(local_1a0 + 8));

+    wil::ActivityBase<FileExplorerLogging,1,0,5,0,_TlgReflectorTag_Param0IsProviderType>::Stop

+              (local_178,0);

+    ClearCachedData(this);

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_230);

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_218);

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_220);

+    tip2::

+    test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+    ::

+    ~test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+              ((test_watcher<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>_>

+                *)local_1d8);

+    FileExplorerTelemetry::UpdateDestListsPostFileOperation::~UpdateDestListsPostFileOperation

+              ((UpdateDestListsPostFileOperation *)local_178);

+  }

+  return 0;

+}

+
```

## `DirectLaunch::TryDirectLaunchFile`  (modified)

```diff
--- DirectLaunch::TryDirectLaunchFile
+++ DirectLaunch::TryDirectLaunchFile
@@ -1,2 +1,105 @@
-Failed to decompile windows.storage.dll - .ProgramDB DirectLaunch::TryDirectLaunchFile : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* bool __cdecl DirectLaunch::TryDirectLaunchFile(class wil::basic_zstring_view<unsigned

+   short>,class wil::basic_zstring_view<unsigned short>,class std::function<bool __cdecl(struct

+   HWND__ * __ptr64)> const & __ptr64,class std::chrono::duration<__int64,struct std::ratio<1,1000>

+   >) */

+

+bool __cdecl

+DirectLaunch::TryDirectLaunchFile

+          (undefined4 *param_1,DirectLaunchResult *param_2,

+          _Func_class<bool,HWND__*___ptr64> *param_3,undefined8 param_4)

+

+{

+  bool bVar1;

+  HWND__ *pHVar2;

+  longlong *plVar3;

+  undefined1 auStack_78 [32];

+  DirectLaunchResult local_58;

+  DirectLaunchResult DStack_54;

+  DirectLaunchResult DStack_50;

+  DirectLaunchResult DStack_4c;

+  undefined4 local_48;

+  undefined4 uStack_44;

+  undefined4 uStack_40;

+  undefined4 uStack_3c;

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_78;

+  bVar1 = details::IsCurrentProcessGreaterThanMediumIntegrityLevel();

+  if (bVar1) {

+    local_58 = 6;

+  }

+  else {

+    local_48 = *param_1;

+    uStack_44 = param_1[1];

+    uStack_40 = param_1[2];

+    uStack_3c = param_1[3];

+    pHVar2 = details::TryGetHandlerWindowFromRegistry(&local_48);

+    if (pHVar2 != (HWND__ *)0x0) {

+      tip2::

+      start<tip2::tip_test<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>_>

+                ();

+      if ((*(longlong *)(param_3 + 0x38) == 0) ||

+         (bVar1 = std::_Func_class<bool,HWND__*___ptr64>::operator()(param_3,pHVar2), bVar1)) {

+        local_58 = *param_2;

+        DStack_54 = param_2[1];

+        DStack_50 = param_2[2];

+        DStack_4c = param_2[3];

+        bVar1 = details::TrySendFileLaunchMessage(pHVar2,&local_58,param_4);

+        if (bVar1) {

+          plVar3 = (longlong *)

+                   tip2::

+                   tip_test<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+                   ::operator->((tip_test<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+                                 *)&local_48);

+          *(undefined1 *)(*plVar3 + 0x110) = 1;

+          tip2::

+          test_data_control<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+          ::

+          ~test_data_control<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+                    ((test_data_control<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+                      *)&local_58);

+          tip2::

+          tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+          ::complete((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                      *)&local_48);

+          local_58 = 0;

+          details::DirectLaunchTelemetry::

+          FileDirectLaunched<DirectLaunch::details::DirectLaunchTelemetry::DirectLaunchResult>

+                    (&local_58);

+          wil::

+          com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+          ::

+          ~com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+                    ((com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+                      *)&local_48);

+          return true;

+        }

+        local_58 = 4;

+      }

+      else {

+        local_58 = 3;

+      }

+      details::DirectLaunchTelemetry::

+      FileDirectLaunched<DirectLaunch::details::DirectLaunchTelemetry::DirectLaunchResult>

+                (&local_58);

+      tip2::

+      tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+      ::complete((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                  *)&local_48);

+      wil::

+      com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+      ::

+      ~com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+                ((com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+                  *)&local_48);

+      return false;

+    }

+    local_58 = 2;

+  }

+  details::DirectLaunchTelemetry::

+  FileDirectLaunched<DirectLaunch::details::DirectLaunchTelemetry::DirectLaunchResult>(&local_58);

+  return false;

+}

+
```

## `CAutoDestItemsEnum::IsMSGraphSharedFile`  (modified)

```diff
--- CAutoDestItemsEnum::IsMSGraphSharedFile
+++ CAutoDestItemsEnum::IsMSGraphSharedFile
@@ -1,2 +1,164 @@
-Failed to decompile windows.storage.dll - .ProgramDB CAutoDestItemsEnum::IsMSGraphSharedFile : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* private: long __cdecl CAutoDestItemsEnum::IsMSGraphSharedFile(struct IShellItem2 * __ptr64,struct

+   IAutomaticDestinationListPropertyStore * __ptr64,bool * __ptr64) __ptr64 */

+

+long __thiscall

+CAutoDestItemsEnum::IsMSGraphSharedFile

+          (CAutoDestItemsEnum *this,IShellItem2 *param_1,

+          IAutomaticDestinationListPropertyStore *param_2,bool *param_3)

+

+{

+  bool bVar1;

+  int iVar2;

+  long lVar3;

+  ushort **ppuVar4;

+  uint uVar5;

+  ReportingKind RVar6;

+  IPropertyStore *pIVar7;

+  long lVar8;

+  void *unaff_retaddr;

+  undefined1 auStack_88 [32];

+  undefined1 *local_68;

+  uchar auStack_60 [8];

+  DWORD local_58;

+  INamedPropertyStore *local_48;

+  INamedPropertyStore *local_40;

+  PropertyStoreHelper local_38 [8];

+  short *local_30;

+  IPropertyStore *local_28;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStack_88;

+  lVar8 = 0;

+  *param_3 = false;

+  local_28 = (IPropertyStore *)0x0;

+  if (param_2 == (IAutomaticDestinationListPropertyStore *)0x0) {

+    uVar5 = 0x380;

+    lVar8 = -0x7fffbffe;

+  }

+  else {

+    local_28 = (IPropertyStore *)0x0;

+    iVar2 = (**(code **)(*(longlong *)param_2 + 0x18))(param_2,param_1,&local_28);

+    if (-1 < iVar2) {

+      pIVar7 = local_28;

+      wil::PropertyStoreHelper::PropertyStoreHelper(local_38,local_28);

+      RVar6 = (ReportingKind)pIVar7;

+      bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_56859762> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_56859762>::GetImpl(void)'

+                          ::__l2::impl,RVar6);

+      if (!bVar1) {

+        local_40 = (INamedPropertyStore *)0x0;

+        lVar3 = wil::PropertyStoreHelper::GetNamedPropertyStore(local_38,&local_40);

+        if (lVar3 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x397,

+                     "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar3);

+        }

+        else {

+          local_48 = local_40;

+          Microsoft::WRL::ComPtr<IShellItem2>::InternalAddRef((ComPtr<IShellItem2> *)&local_48);

+          local_30 = (short *)0x0;

+          ppuVar4 = wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           *)&local_30);

+          lVar3 = wil::PropertyStoreHelperBase<INamedPropertyStore>::

+                  GetAsString<unsigned_short_const*___ptr64>

+                            ((PropertyStoreHelperBase<INamedPropertyStore> *)&local_48,

+                             (ushort *)L"sharing_state",ppuVar4);

+          if (-1 < lVar3) {

+            if ((*local_30 == 0x31) && (local_30[1] == 0)) {

+              *param_3 = true;

+            }

+            wil::details::

+            unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ::

+            ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        *)&local_30);

+            Microsoft::WRL::ComPtr<Windows::Foundation::IUriRuntimeClass>::

+            ~ComPtr<Windows::Foundation::IUriRuntimeClass>

+                      ((ComPtr<Windows::Foundation::IUriRuntimeClass> *)&local_48);

+            if (local_40 != (INamedPropertyStore *)0x0) {

+              winrt::com_ptr<IPropertyStore>::unconditional_release_ref

+                        ((com_ptr<IPropertyStore> *)&local_40);

+            }

+            goto LAB_0;

+          }

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x39b,

+                     "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar3);

+          wil::details::

+          unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      *)&local_30);

+          Microsoft::WRL::ComPtr<Windows::Foundation::IUriRuntimeClass>::

+          ~ComPtr<Windows::Foundation::IUriRuntimeClass>

+                    ((ComPtr<Windows::Foundation::IUriRuntimeClass> *)&local_48);

+        }

+        lVar8 = lVar3;

+        if (local_40 != (INamedPropertyStore *)0x0) {

+          winrt::com_ptr<IPropertyStore>::unconditional_release_ref

+                    ((com_ptr<IPropertyStore> *)&local_40);

+        }

+LAB_1:

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)local_38);

+        goto LAB_2;

+      }

+      local_48 = (INamedPropertyStore *)((ulonglong)local_48 & 0xffffffff00000000);

+      bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61052451> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61052451>::GetImpl(void)'

+                          ::__l2::impl,RVar6);

+      local_68 = &DAT_3;

+      auStack_60[0] = 0xa9;

+      auStack_60[1] = 0xe7;

+      auStack_60[2] = 0xea;

+      auStack_60[3] = '\"';

+      auStack_60[4] = 0x83;

+      auStack_60[5] = ' ';

+      auStack_60[6] = 0x94;

+      auStack_60[7] = 0xb8;

+      local_58 = 0x75;

+      if (bVar1) {

+        lVar3 = wil::PropertyStoreHelperBase<IPropertyStore>::GetAsUInt32<_tagpropertykey>

+                          ((PropertyStoreHelperBase<IPropertyStore> *)local_38,

+                           (_tagpropertykey *)&local_68,(ulong *)&local_48);

+        if (-1 < lVar3) goto LAB_4;

+      }

+      else {

+        lVar3 = wil::PropertyStoreHelperBase<IPropertyStore>::GetAsUInt32<_tagpropertykey>

+                          ((PropertyStoreHelperBase<IPropertyStore> *)local_38,

+                           (_tagpropertykey *)&local_68,(ulong *)&local_48);

+        if (lVar3 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x390,

+                     "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar3);

+          lVar8 = lVar3;

+          goto LAB_1;

+        }

+LAB_4:

+        *param_3 = (int)local_48 == 1;

+      }

+LAB_0:

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)local_38);

+      goto LAB_2;

+    }

+    uVar5 = 0x381;

+    lVar8 = iVar2;

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar5,"onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",

+             lVar8);

+LAB_2:

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_28);

+  return lVar8;

+}

+
```

## `CFSFolderPropertyBag::Init`  (modified)

```diff
--- CFSFolderPropertyBag::Init
+++ CFSFolderPropertyBag::Init
@@ -1,2 +1,79 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolderPropertyBag::Init : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: long __cdecl CFSFolderPropertyBag::Init(struct _ITEMIDLIST_RELATIVE const __unaligned *

+   __ptr64) __ptr64 */

+

+long __thiscall CFSFolderPropertyBag::Init(CFSFolderPropertyBag *this,_ITEMIDLIST_RELATIVE *param_1)

+

+{

+  longlong lVar1;

+  code *pcVar2;

+  int iVar3;

+  int iVar4;

+  HRESULT HVar5;

+  ushort **ppuVar6;

+  ulonglong uVar7;

+  undefined1 auStack_378 [32];

+  CFSFolderPropertyBag *local_358;

+  undefined8 local_348;

+  undefined8 local_340;

+  WCHAR local_338 [128];

+  ushort local_238 [256];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_378;

+  local_340 = 0;

+  lVar1 = *(longlong *)(this + 0x10);

+  pcVar2 = *(code **)(*(longlong *)(lVar1 + 0x138) + 0x70);

+  ppuVar6 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_340);

+  iVar3 = (*pcVar2)(lVar1 + 0x138,param_1,3,ppuVar6);

+  if (-1 < iVar3) {

+    local_348 = 0;

+    ppuVar6 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_348);

+    iVar4 = PathAllocCombine(local_340,L"desktop.ini",3,ppuVar6);

+    if (-1 < iVar4) {

+      local_358 = this + 0x28;

+      iVar4 = Ordinal_472(local_348,L".ShellClassInfo",*(undefined4 *)(this + 0xc),

+                          &_GUID_55272a00_42cb_11ce_8135_00aa004bb851);

+      if (-1 < iVar4) {

+        HVar5 = PSPropertyBag_ReadStr(*(IPropertyBag **)(this + 0x28),L"FolderType",local_338,0x80);

+        if ((-1 < HVar5) && (local_338[0] != L'\0')) {

+          local_238[0] = 0;

+          uVar7 = 0x100;

+          StringCchCopyW(local_238,0x100,

+                         (ushort *)

+                         L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderClasses\\")

+          ;

+          StringCchCatW(local_238,uVar7 & 0xffffffff,(ushort *)local_338);

+          local_358 = this + 0x18;

+          Ordinal_471(0xffffffff80000001,local_238,*(undefined4 *)(this + 0xc),

+                      &_GUID_55272a00_42cb_11ce_8135_00aa004bb851);

+          local_358 = this + 0x20;

+          Ordinal_471(0xffffffff80000002,local_238,0,&_GUID_55272a00_42cb_11ce_8135_00aa004bb851);

+        }

+      }

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_348);

+  }

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)&local_340);

+  return iVar3;

+}

+
```

## `CEnumFiles::_InitEnumeration`  (modified)

```diff
--- CEnumFiles::_InitEnumeration
+++ CEnumFiles::_InitEnumeration
@@ -1,35 +1,238 @@
+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CEnumFiles::_InitEnumeration(unsigned short const * __ptr64,unsigned short

+   const * __ptr64,int,struct tagWIN32_FIND_DATA_EX * __ptr64) __ptr64 */

 

 long __thiscall

-Microsoft::WRL::Details::

-ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::CloakedIid<IObjectWithDiscardablePropertyStoreLocal>,Microsoft::WRL::CloakedIid<IStorageItemInternalProvider>,Microsoft::WRL::CloakedIid<IStorageItemInternalAvailableCrossProcess>,Microsoft::WRL::CloakedIid<IValidateServerContext>,Microsoft::WRL::CloakedIid<Windows::Storage::Pickers::IStorageItemInternalForCachedFileUpdater>,CCustomPropertyProviderBase<CCustomPropertySync>,Microsoft::WRL::CloakedIid<Windows::Internal::Storage::IStorageItemWithUser>_>

-::_InitEnumeration(CEnumFiles *this,ushort *param_1,ushort *param_2,int param_3,

-                  tagWIN32_FIND_DATA_EX *param_4)

+CEnumFiles::_InitEnumeration

+          (CEnumFiles *this,ushort *param_1,ushort *param_2,int param_3,

+          tagWIN32_FIND_DATA_EX *param_4)

 

 {

-  __uint64 _DstSize;

-  undefined2 *_Dst;

-  longlong unaff_RBX;

-  void *unaff_RBP;

-  longlong unaff_RDI;

-  undefined2 unaff_R12W;

-  undefined8 *unaff_R14;

+  undefined8 uVar1;

+  bool bVar2;

+  char cVar3;

+  int iVar4;

+  int iVar5;

+  UINT UVar6;

+  long lVar7;

+  DWORD DVar8;

+  ulong uVar9;

+  HANDLE pvVar10;

+  ushort **ppuVar11;

+  tagWIN32_FIND_DATA_EX *_Dst;

+  longlong lVar12;

+  void *_Src;

+  size_t sVar13;

+  void *unaff_retaddr;

+  undefined1 auStackY_c8 [32];

+  undefined1 local_63;

+  LPCWSTR local_60;

+  _FILETIME local_58;

+  undefined8 local_50;

+  undefined8 uStack_48;

+  ulonglong local_40;

   

-  if (unaff_RDI == -1) {

-    unaff_RDI = unaff_RBX;

-  }

-  _DstSize = unaff_RDI * 2 + 2;

-  _Dst = CZeroInitNew::operator_new(_DstSize,(nothrow_t *)param_1);

-  if (_Dst != (undefined2 *)0x0) {

-    if (unaff_RBP == (void *)0x0) {

-      *_Dst = unaff_R12W;

+  local_40 = __security_cookie ^ (ulonglong)auStackY_c8;

+  cVar3 = RtlQueryThreadPlaceholderCompatibilityMode();

+  if (cVar3 != '\x02') {

+    local_63 = RtlSetThreadPlaceholderCompatibilityMode(2);

+  }

+  local_50 = 0;

+  uStack_48 = 0;

+  if ((param_2 != (ushort *)0x0) && (iVar4 = RtlInitUnicodeStringEx(&local_50,param_2), iVar4 < 0))

+  {

+    DVar8 = wil::details::in1diag3::Return_NtStatus

+                      (unaff_retaddr,0x178,"onecoreuap\\shell\\windows.storage\\findfile.cpp",iVar4)

+    ;

+    goto LAB_0;

+  }

+  bVar2 = false;

+  iVar4 = Ordinal_190(&POLID_UseFindFirstFileEnumeration);

+  if (iVar4 == 0) {

+    pvVar10 = CreateFileW((LPCWSTR)param_1,0x100081,7,(LPSECURITY_ATTRIBUTES)0x0,3,0x2000000,

+                          (HANDLE)0x0);

+    *(HANDLE *)(this + 0x30) = pvVar10;

+    if (pvVar10 == (HANDLE)0xffffffffffffffff) {

+      DVar8 = GetLastError();

+      if (0 < (int)DVar8) {

+        DVar8 = DVar8 & 0xffff | 0x80070000;

+      }

+      if ((int)DVar8 < 0) {

+        if (1 < DVar8 + 0x7ff8fffe) goto LAB_1;

+      }

+      else {

+        DVar8 = 0x80004005;

+LAB_1:

+        if ((param_3 == 0) || (DVar8 != 0x80070005)) goto LAB_2;

+      }

+      bVar2 = true;

+LAB_3:

+      if (bVar2) goto LAB_4;

     }

     else {

-      memcpy_s(_Dst,_DstSize,unaff_RBP,unaff_RBX * 2);

-      _Dst[unaff_RBX] = unaff_R12W;

-    }

-    _Dst[unaff_RDI] = unaff_R12W;

-  }

-  *unaff_R14 = _Dst;

-  return (long)unaff_R14;

+      iVar4 = -0x7fffbffb;

+      if ((*(int *)(this + 0x94) != 0) || (iVar5 = 0, *(int *)(this + 0x54) == 0x25)) {

+        iVar4 = IsSMBv1();

+        iVar5 = *(int *)(this + 0x94);

+        pvVar10 = *(HANDLE *)(this + 0x30);

+      }

+      if ((*(int *)(this + 0x54) == 0x25) && (iVar4 == 0)) {

+        *(undefined4 *)(this + 0x54) = 3;

+      }

+      if (((iVar5 != 0) && (0x10000 < *(ulonglong *)(this + 0x48))) && (-1 < iVar4)) {

+        *(undefined8 *)(this + 0x48) = 0x10000;

+      }

+      iVar4 = NtQueryDirectoryFile(pvVar10,0,0,0);

+      *(int *)(this + 0x50) = iVar4;

+      if ((iVar4 != 0) || (*(longlong *)(this + 0x28) == 0)) {

+        if ((((iVar4 == -0x3fffff3c) || ((iVar4 == -0x3ffffff1 || (iVar4 == -0x3ffffeb8)))) ||

+            (iVar4 == -0x3fffff45)) || (iVar4 == -0x3ffffff3)) goto LAB_4;

+        GetPathRoot((ushort *)&local_60);

+        if (local_60 == (LPCWSTR)0x0) {

+          DVar8 = 0x8007000e;

+        }

+        else {

+          DVar8 = 0;

+          if ((param_3 == 0) || (UVar6 = GetDriveTypeW(local_60), UVar6 != 5)) {

+            uVar9 = RtlNtStatusToDosError(*(undefined4 *)(this + 0x50));

+            DVar8 = ResultFromKnownError(uVar9);

+            bVar2 = false;

+          }

+          else {

+            bVar2 = true;

+          }

+        }

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_60);

+        goto LAB_3;

+      }

+      DVar8 = 0;

+      if ((*(int *)(this + 0x94) == 0) ||

+         (DVar8 = _InitializeIndexFromBuffer(this), -1 < (int)DVar8)) {

+        if (*(int *)(this + 0x94) == 0) {

+          iVar4 = *(int *)(this + 0x54);

+          uVar1 = *(undefined8 *)(this + 0x40);

+          if (iVar4 == 0x25) {

+            *(undefined8 *)(this + 0x58) = uVar1;

+          }

+          else if (iVar4 == 2) {

+            *(undefined8 *)(this + 0x68) = uVar1;

+          }

+          else {

+            *(undefined8 *)(this + 0x60) = uVar1;

+          }

+          if (iVar4 == 0x25) {

+LAB_5:

+            lVar12 = *(longlong *)(this + 0x58);

+            memset(param_4,0,0x268);

+            *(undefined4 *)param_4 = *(undefined4 *)(lVar12 + 0x38);

+            *(undefined4 *)(param_4 + 4) = *(undefined4 *)(lVar12 + 8);

+            *(undefined4 *)(param_4 + 8) = *(undefined4 *)(lVar12 + 0xc);

+            *(undefined4 *)(param_4 + 0xc) = *(undefined4 *)(lVar12 + 0x10);

+            *(undefined4 *)(param_4 + 0x10) = *(undefined4 *)(lVar12 + 0x14);

+            *(undefined4 *)(param_4 + 0x14) = *(undefined4 *)(lVar12 + 0x18);

+            *(undefined4 *)(param_4 + 0x18) = *(undefined4 *)(lVar12 + 0x1c);

+            *(undefined4 *)(param_4 + 0x20) = *(undefined4 *)(lVar12 + 0x28);

+            *(undefined4 *)(param_4 + 0x1c) = *(undefined4 *)(lVar12 + 0x2c);

+            *(undefined4 *)(param_4 + 0x24) = *(undefined4 *)(lVar12 + 0x40);

+            *(undefined8 *)(param_4 + 0x250) = *(undefined8 *)(lVar12 + 0x60);

+            sVar13 = 0x206;

+            if (*(uint *)(lVar12 + 0x3c) < 0x207) {

+              sVar13 = (size_t)*(uint *)(lVar12 + 0x3c);

+            }

+            memcpy(param_4 + 0x2c,(void *)(lVar12 + 0x68),sVar13);

+            sVar13 = (size_t)*(char *)(lVar12 + 0x44);

+            if (0x18 < sVar13) {

+              sVar13 = 0x18;

+            }

+            _Src = (void *)(lVar12 + 0x46);

+            _Dst = param_4 + 0x234;

+          }

+          else {

+            if (iVar4 != 2) goto LAB_6;

+LAB_7:

+            lVar12 = *(longlong *)(this + 0x68);

+            memset(param_4,0,0x268);

+            *(undefined4 *)param_4 = *(undefined4 *)(lVar12 + 0x38);

+            *(undefined4 *)(param_4 + 4) = *(undefined4 *)(lVar12 + 8);

+            *(undefined4 *)(param_4 + 8) = *(undefined4 *)(lVar12 + 0xc);

+            *(undefined4 *)(param_4 + 0xc) = *(undefined4 *)(lVar12 + 0x10);

+            *(undefined4 *)(param_4 + 0x10) = *(undefined4 *)(lVar12 + 0x14);

+            *(undefined4 *)(param_4 + 0x14) = *(undefined4 *)(lVar12 + 0x18);

+            *(undefined4 *)(param_4 + 0x18) = *(undefined4 *)(lVar12 + 0x1c);

+            *(undefined4 *)(param_4 + 0x20) = *(undefined4 *)(lVar12 + 0x28);

+            *(undefined4 *)(param_4 + 0x1c) = *(undefined4 *)(lVar12 + 0x2c);

+            *(undefined4 *)(param_4 + 0x24) = *(undefined4 *)(lVar12 + 0x40);

+            sVar13 = 0x206;

+            if (*(uint *)(lVar12 + 0x3c) < 0x207) {

+              sVar13 = (size_t)*(uint *)(lVar12 + 0x3c);

+            }

+            _Src = (void *)(lVar12 + 0x44);

+            _Dst = param_4 + 0x2c;

+          }

+          memcpy(_Dst,_Src,sVar13);

+        }

+        else {

+          *(undefined4 *)(this + 0x90) = 0;

+          lVar12 = (ulonglong)**(uint **)(this + 0x70) + *(longlong *)(this + 0x40);

+          if (*(int *)(this + 0x54) == 0x25) {

+            *(longlong *)(this + 0x58) = lVar12;

+            goto LAB_5;

+          }

+          if (*(int *)(this + 0x54) == 2) {

+            *(longlong *)(this + 0x68) = lVar12;

+            goto LAB_7;

+          }

+          *(longlong *)(this + 0x60) = lVar12;

+LAB_6:

+          _ConvertBothDirInfoToWFDX(*(_FILE_BOTH_DIR_INFORMATION **)(this + 0x60),param_4);

+        }

+      }

+    }

+  }

+  else {

+LAB_4:

+    _FindClose(this);

+    if (param_3 == 0) {

+      DVar8 = _InitByNormalFindFirst(this,param_1,param_2,param_4);

+    }

+    else {

+      local_60 = (LPCWSTR)0x0;

+      ppuVar11 = wil::

+                 unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                 ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_60);

+      DVar8 = PathAllocCombine(param_1,param_2,1,ppuVar11);

+      if ((-1 < (int)DVar8) &&

+         (DVar8 = GetFindDataFromFileInformationByHandle(local_60,0,param_4), -1 < (int)DVar8)) {

+        local_58.dwLowDateTime = 0;

+        local_58.dwHighDateTime = 0;

+        lVar7 = SHGetSnapshotTimeFromPath((ushort *)local_60,&local_58);

+        if (-1 < lVar7) {

+          DVar8 = _CheckTimewarp(local_60,&local_58,param_4);

+        }

+      }

+      if (local_60 != (LPCWSTR)0x0) {

+        LocalFree(local_60);

+      }

+    }

+  }

+LAB_2:

+  if (((param_2 == (ushort *)0x0) && (param_3 == 0)) && ((DVar8 + 0x7ff8fffe & 0xffffffef) == 0)) {

+    DVar8 = 1;

+  }

+  else if ((int)DVar8 < 0) {

+    _FindClose(this);

+  }

+LAB_0:

+  if (cVar3 != '\x02') {

+    RtlSetThreadPlaceholderCompatibilityMode(local_63);

+  }

+  return DVar8;

 }
```

## `CFSFolder::GetMaxLength`  (modified)

```diff
--- CFSFolder::GetMaxLength
+++ CFSFolder::GetMaxLength
@@ -1,2 +1,71 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::GetMaxLength : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CFSFolder::GetMaxLength(unsigned short const * __ptr64,int *

+   __ptr64) __ptr64 */

+

+long __thiscall CFSFolder::GetMaxLength(CFSFolder *this,ushort *param_1,int *param_2)

+

+{

+  CFSFolder *this_00;

+  long lVar1;

+  int iVar2;

+  ushort **ppuVar3;

+  IDFOLDER *pIVar4;

+  ulonglong uVar5;

+  CFSFolder *this_01;

+  uint uVar6;

+  void *unaff_retaddr;

+  undefined1 auStackY_98 [32];

+  ulong *in_stack_ffffffffffffff88;

+  ulong *in_stack_ffffffffffffff98;

+  ushort *local_58;

+  _ITEMID_CHILD *local_50;

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStackY_98;

+  *param_2 = 0;

+  local_58 = (ushort *)0x0;

+  this_00 = this + -0x60;

+  ppuVar3 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_58);

+  lVar1 = GetPathForFileAccess(this_00,param_1,ppuVar3);

+  if (lVar1 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x2e4e,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar1);

+  }

+  else {

+    lVar1 = _GetCCHMaxFromPath(local_58,0,1,param_2);

+    if (-1 < lVar1) {

+      uVar5 = 0xffffffffffffffff;

+      do {

+        uVar5 = uVar5 + 1;

+      } while (param_1[uVar5] != 0);

+      if (uVar5 <= (ulonglong)(longlong)*param_2) goto LAB_0;

+    }

+    iVar2 = _DefaultShowExt(this_00);

+    uVar6 = 0;

+    local_50 = (_ITEMID_CHILD *)0x0;

+    this_01 = (CFSFolder *)(-(ulonglong)(this_00 != (CFSFolder *)0x0) & (ulonglong)(this + -0x30));

+    lVar1 = ParseDisplayNameChild

+                      ((IShellFolder *)this_01,(HWND__ *)(this + -0x30),(IBindCtx *)0x0,param_1,

+                       in_stack_ffffffffffffff88,&local_50,in_stack_ffffffffffffff98);

+    if (-1 < lVar1) {

+      pIVar4 = _IsValidID(this_01,(_ITEMIDLIST_RELATIVE *)local_50);

+      if (pIVar4 != (IDFOLDER *)0x0) {

+        uVar6 = (uint)((((byte)pIVar4[2] & 0x37) - 0x31 & 0xfb) == 0);

+        iVar2 = _ShowExtension(this_00,local_50,pIVar4);

+      }

+    }

+    lVar1 = _GetCCHMaxFromPath(local_58,iVar2,uVar6,param_2);

+    CCoTaskMemPtr<_FILE_RENAME_INFO>::~CCoTaskMemPtr<_FILE_RENAME_INFO>

+              ((CCoTaskMemPtr<_FILE_RENAME_INFO> *)&local_50);

+  }

+LAB_0:

+  if (local_58 != (ushort *)0x0) {

+    LocalFree(local_58);

+  }

+  return lVar1;

+}

+
```

## `fc::config_target<WinrtSearchModeProps>::load_payload`  (modified)

```diff
--- fc::config_target<WinrtSearchModeProps>::load_payload
+++ fc::config_target<WinrtSearchModeProps>::load_payload
@@ -1,2 +1,147 @@
-Failed to decompile windows.storage.dll - .ProgramDB fc::config_target<WinrtSearchModeProps>::load_payload : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* protected: void __cdecl fc::config_target<struct WinrtSearchModeProps>::load_payload(enum

+   __FC_System_Flags) __ptr64 */

+

+void __thiscall

+fc::config_target<WinrtSearchModeProps>::load_payload

+          (config_target<WinrtSearchModeProps> *this,__FC_System_Flags param_1)

+

+{

+  __FC_Query_Flags _Var1;

+  uint uVar2;

+  bool bVar3;

+  uint uVar4;

+  __FC_Query_Flags _Var5;

+  long lVar6;

+  longlong lVar7;

+  unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>

+  *this_00;

+  __FC_Report_Kind _Var8;

+  ulonglong uVar9;

+  undefined1 auStackY_1d8 [32];

+  char *pcVar10;

+  __uint64 _Var11;

+  __FC_Report_Kind local_178;

+  uint local_174;

+  uint local_170 [2];

+  undefined8 local_168 [3];

+  undefined8 local_150;

+  WinrtSearchModeProps local_148 [120];

+  undefined8 local_d0;

+  char *pcStack_c8;

+  ulonglong local_c0;

+  unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>

+  local_b8 [128];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_1d8;

+  if (((((param_1 & 1) != 0) || (details::g_suppress_config)) || (DAT_0 != '\0')) ||

+     (bVar3 = false, this[0x89] != (config_target<WinrtSearchModeProps>)0x0)) {

+    bVar3 = true;

+  }

+  if (!bVar3) {

+    _Var5 = 8;

+    if (*(int *)(this + 0xb8) != -2) {

+      _Var5 = 0;

+    }

+    local_d0 = 0;

+    pcStack_c8 = (char *)0x0;

+    _Var1 = _Var5 | 0x4000000;

+    if (this[0x7e] != (config_target<WinrtSearchModeProps>)0x2) {

+      _Var1 = _Var5;

+    }

+    local_150 = 0;

+    local_c0 = 0;

+    _Var5 = _Var1 | 0x2000000;

+    if (this[0x7e] != (config_target<WinrtSearchModeProps>)0x3) {

+      _Var5 = _Var1;

+    }

+    lVar6 = api_query_config(*(uint *)(this + 0x78),_Var5 | 1,(__FC_Config_Info *)&local_d0);

+    pcVar10 = pcStack_c8;

+    if (lVar6 < 0) {

+      uVar9 = 0x960;

+      if (1000 < (int)local_c0) {

+        uVar9 = local_c0 & 0xffffffff;

+      }

+      __FC_Report(*(undefined4 *)(this + 0x78),uVar9);

+    }

+    else {

+      this[0x8a] = (config_target<WinrtSearchModeProps>)0x0;

+      *(undefined4 *)(this + 0xb8) = (undefined4)local_d0;

+      if (pcStack_c8 != (char *)0x0) {

+        this_00 = local_b8;

+        memset(this_00,0,0x80);

+        _Var11 = 0;

+        while( true ) {

+          local_178 = 0;

+          local_168[0] = 0;

+          local_170[0] = 0;

+          local_174 = 0;

+          lVar6 = details::parse_payload

+                            ((change_time)CONCAT71((int7)((ulonglong)this_00 >> 8),this[0x7e]),

+                             *(uint *)(this + 0x78),(bool)this[0x88],(vproperty_container *)this,

+                             pcVar10,&local_174,(uint *)local_b8,_Var11,&local_178,

+                             (unique_any_t<wil::details::unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>_>

+                              *)local_168,local_170);

+          if (-1 < lVar6) break;

+          memset(local_148,0,0x78);

+          lVar7 = WinrtSearchModeProps::WinrtSearchModeProps(local_148);

+          uVar4 = local_170[0];

+          this[0x41] = *(config_target<WinrtSearchModeProps> *)(lVar7 + 0x41);

+          *(uint *)(this + 0x3c) = *(uint *)(lVar7 + 0x3c) | *(uint *)(this + 0x3c) & 3;

+          *(undefined4 *)(this + 0x38) = *(undefined4 *)(lVar7 + 0x38);

+          this[0x71] = *(config_target<WinrtSearchModeProps> *)(lVar7 + 0x71);

+          *(uint *)(this + 0x6c) = *(uint *)(this + 0x6c) & 3 | *(uint *)(lVar7 + 0x6c);

+          *(undefined4 *)(this + 0x68) = *(undefined4 *)(lVar7 + 0x68);

+          if ((local_170[0] != 0) && (uVar9 = 0, _Var11 != 0)) {

+            do {

+              if (*(uint *)(local_b8 + uVar9 * 4) == local_170[0]) goto LAB_1;

+              uVar9 = uVar9 + 1;

+            } while (uVar9 < _Var11);

+          }

+          uVar2 = local_174;

+          if (local_170[0] != 0) {

+            uVar2 = local_170[0];

+          }

+          _Var8 = 0x898;

+          if (1000 < (int)local_178) {

+            _Var8 = local_178;

+          }

+          if (uVar2 != 0xffffffff) {

+            __FC_Report(*(undefined4 *)(this + 0x78),_Var8);

+          }

+          if (((local_174 != 0) || (uVar4 == 0)) || (0x1f < _Var11)) goto LAB_1;

+          *(uint *)(local_b8 + _Var11 * 4) = uVar4;

+          this_00 = (unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>

+                     *)local_168;

+          _Var11 = _Var11 + 1;

+          wil::details::

+          unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>

+                    (this_00);

+          pcVar10 = pcStack_c8;

+        }

+        *(undefined4 *)(this + 0xb8) = (undefined4)local_d0;

+        this[0x8a] = (config_target<WinrtSearchModeProps>)0x1;

+        if ((param_1 & 0x200) != 0) {

+          serialize_and_report(this,0x6e,0x200,(char *)0x0,(char *)0x0);

+        }

+LAB_1:

+        wil::details::

+        unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>

+                    *)local_168);

+      }

+    }

+    details::config_info::~config_info((config_info *)&local_d0);

+  }

+  if ((param_1 >> 10 & 1) != 0) {

+    serialize_and_report(this,0x6f,0,(char *)0x0,(char *)0x0);

+  }

+  return;

+}

+
```

## `GraphRecentItemsManager::InstanceManager::GetInstanceManager`  (modified)

```diff
--- GraphRecentItemsManager::InstanceManager::GetInstanceManager
+++ GraphRecentItemsManager::InstanceManager::GetInstanceManager
@@ -1,2 +1,73 @@
-Failed to decompile windows.storage.dll - .ProgramDB GraphRecentItemsManager::InstanceManager::GetInstanceManager : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: static class std::shared_ptr<class GraphRecentItemsManager::InstanceManager> __cdecl

+   GraphRecentItemsManager::InstanceManager::GetInstanceManager(void) */

+

+void __cdecl GraphRecentItemsManager::InstanceManager::GetInstanceManager(void)

+

+{

+  char cVar1;

+  com_ptr_t<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+  *pcVar2;

+  char *pcVar3;

+  undefined8 *in_RCX;

+  undefined1 auStack_58 [32];

+  undefined8 *local_38 [2];

+  _GUID local_28;

+  undefined8 local_18;

+  ulonglong local_10;

+  

+  local_10 = __security_cookie ^ (ulonglong)auStack_58;

+  local_18 = 0;

+  local_38[0] = in_RCX;

+  pcVar2 = tip2::

+           tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+           ::ensure_data((tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+                          *)&local_18);

+  tip2::details::shared_data<0,0,1>::start

+            ((shared_data<0,0,1> *)(*(longlong *)pcVar2 + 8),&local_28);

+  cVar1 = `anonymous_namespace'::ProcessIsExplorer();

+  if (cVar1 == '\0') {

+    pcVar3 = tip2::details::reason_string

+                       ("GraphFilesTip::GetInstanceManagerTestReason::not_in_explorer_process");

+    tip2::

+    tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+    ::set_flag((tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+                *)&local_18,4,pcVar3);

+    tip2::

+    tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+    ::complete((tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+                *)&local_18);

+    *in_RCX = 0;

+    in_RCX[1] = 0;

+  }

+  else {

+    pcVar2 = tip2::

+             tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+             ::ensure_data((tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+                            *)&local_18);

+    local_38[0] = *(undefined8 **)pcVar2;

+    if (local_38[0] != (undefined8 *)0x0) {

+      LOCK();

+      *(int *)(local_38[0] + 0x2a) = *(int *)(local_38[0] + 0x2a) + 1;

+      UNLOCK();

+    }

+    `anonymous_namespace'::

+    ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>

+    ::Get(local_38[0],&local_28,local_38);

+    tip2::

+    tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+    ::complete((tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+                *)&local_18);

+    *in_RCX = local_28._0_8_;

+    *(uchar (*) [8])(in_RCX + 1) = local_28.Data4;

+  }

+  wil::

+  com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+            ((com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+              *)&local_18);

+  return;

+}

+
```

## `kfapi::CCSCUtils::PinDesktopIni`  (modified)

```diff
--- kfapi::CCSCUtils::PinDesktopIni
+++ kfapi::CCSCUtils::PinDesktopIni
@@ -1,2 +1,49 @@
-Failed to decompile windows.storage.dll - .ProgramDB kfapi::CCSCUtils::PinDesktopIni : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: virtual long __cdecl kfapi::CCSCUtils::PinDesktopIni(unsigned short const *

+   __ptr64,unsigned long,int) __ptr64 */

+

+long __thiscall

+kfapi::CCSCUtils::PinDesktopIni(CCSCUtils *this,ushort *param_1,ulong param_2,int param_3)

+

+{

+  longlong lVar1;

+  BOOL BVar2;

+  int iVar3;

+  ushort **ppuVar4;

+  code *pcVar5;

+  undefined8 local_18;

+  undefined8 local_10;

+  

+  iVar3 = 0;

+  BVar2 = PathIsUNCW((LPCWSTR)param_1);

+  if (BVar2 != 0) {

+    local_18 = 0;

+    ppuVar4 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_18);

+    iVar3 = PathAllocCombine(param_1,L"desktop.ini",1,ppuVar4);

+    if (-1 < iVar3) {

+      local_10 = local_18;

+      lVar1 = **(longlong **)(this + 8);

+      if (param_3 == 0) {

+        pcVar5 = *(code **)(lVar1 + 0x38);

+      }

+      else {

+        pcVar5 = *(code **)(lVar1 + 0x30);

+      }

+      iVar3 = (*pcVar5)(*(longlong **)(this + 8),0,&local_10,1,0,0,

+                        (-(uint)((param_2 & 0xc0000000) != 0) & 0xe0) + 0x20,0);

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_18);

+  }

+  return iVar3;

+}

+
```

## `wil::make_unique_nothrow<StateRepoVerbsCache>`  (modified)

```diff
--- wil::make_unique_nothrow<StateRepoVerbsCache>
+++ wil::make_unique_nothrow<StateRepoVerbsCache>
@@ -1,2 +1,21 @@
-Failed to decompile windows.storage.dll - .ProgramDB wil::make_unique_nothrow<StateRepoVerbsCache> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* class wistd::unique_ptr<class StateRepoVerbsCache,struct wistd::default_delete<class

+   StateRepoVerbsCache> > __cdecl wil::make_unique_nothrow<class StateRepoVerbsCache>(void) */

+

+void __cdecl wil::make_unique_nothrow<StateRepoVerbsCache>(void)

+

+{

+  StateRepoVerbsCache *this;

+  undefined8 uVar1;

+  undefined8 *in_RCX;

+  

+  uVar1 = 0;

+  this = operator_new(0x98,&std::nothrow);

+  if (this != (StateRepoVerbsCache *)0x0) {

+    memset(this,0,0x98);

+    uVar1 = StateRepoVerbsCache::StateRepoVerbsCache(this);

+  }

+  *in_RCX = uVar1;

+  return;

+}

+
```

## `wil::make_process_heap_string_nothrow`  (modified)

```diff
--- wil::make_process_heap_string_nothrow
+++ wil::make_process_heap_string_nothrow
@@ -1,2 +1,11 @@
-Failed to decompile windows.storage.dll - .ProgramDB wil::make_process_heap_string_nothrow : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* __cdecl wil::make_process_heap_string_nothrow(unsigned short const * __ptr64,unsigned __int64) */

+

+ushort * __cdecl wil::make_process_heap_string_nothrow(ushort *param_1,__uint64 param_2)

+

+{

+  make_unique_string_nothrow<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>

+            (param_1,0);

+  return param_1;

+}

+
```

## `RegDataDrivenCommand::RegDataDrivenCommand`  (modified)

```diff
--- RegDataDrivenCommand::RegDataDrivenCommand
+++ RegDataDrivenCommand::RegDataDrivenCommand
@@ -1,2 +1,58 @@
-Failed to decompile windows.storage.dll - .ProgramDB RegDataDrivenCommand::RegDataDrivenCommand : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: __cdecl RegDataDrivenCommand::RegDataDrivenCommand(struct IUnknown * __ptr64,struct

+   IAssociationElement * __ptr64) __ptr64 */

+

+RegDataDrivenCommand * __thiscall

+RegDataDrivenCommand::RegDataDrivenCommand

+          (RegDataDrivenCommand *this,IUnknown *param_1,IAssociationElement *param_2)

+

+{

+  Microsoft::WRL::

+  RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  ::

+  RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+            ((RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+              *)this);

+  *(undefined ***)this = &_vftable_;

+  *(undefined ***)(this + 8) =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<BaseDataDrivenCommand,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>_>__

+  ;

+  *(undefined ***)(this + 0x20) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+        ::_vftable__for__IObjectWithSelection__;

+  *(undefined ***)(this + 0x28) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IObjectWithAssociationElement,IExplorerCommand,IExplorerCommand2>__

+  ;

+  *(undefined ***)(this + 0x30) = &_vftable__for__IExplorerCommand__;

+  *(undefined ***)(this + 0x38) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IExplorerCommand2>__

+  ;

+  *(undefined ***)(this + 0x78) =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>_>__

+  ;

+  *(undefined ***)(this + 0x80) = &_vftable__for__IRegDataDrivenCommand__;

+  *(undefined ***)(this + 0x88) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IHandlerInfo,IHandlerInfo2,IServiceProvider>__

+  ;

+  *(undefined ***)(this + 0x90) = &_vftable__for__IHandlerInfo2__;

+  *(undefined ***)(this + 0x98) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IServiceProvider>__

+  ;

+  *(undefined8 *)(this + 0xb0) = 0;

+  *(undefined8 *)(this + 0xb8) = 0;

+  *(undefined8 *)(this + 0xc0) = 0;

+  *(undefined8 *)(this + 200) = 0;

+  Microsoft::WRL::ComPtr<Windows::Foundation::IAsyncActionCompletedHandler>::operator=

+            ((ComPtr<Windows::Foundation::IAsyncActionCompletedHandler> *)(this + 0x70),

+             (IAsyncActionCompletedHandler *)param_2);

+  BaseDataDrivenCommand::SetSite((BaseDataDrivenCommand *)(this + 8),param_1);

+  return this;

+}

+
```

## `CAutoDestItemsFolder::CreateRelativePidl`  (modified)

```diff
--- CAutoDestItemsFolder::CreateRelativePidl
+++ CAutoDestItemsFolder::CreateRelativePidl
@@ -1,2 +1,1470 @@
-Failed to decompile windows.storage.dll - .ProgramDB CAutoDestItemsFolder::CreateRelativePidl : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Enum "tagPERCEIVED": Some values do not have unique names */

+/* public: long __cdecl CAutoDestItemsFolder::CreateRelativePidl(struct _ITEMIDLIST_ABSOLUTE const *

+   __ptr64,bool,bool,unsigned int,struct IPropertyStore * __ptr64,struct _FILETIME * __ptr64,struct

+   IAutomaticDestinationList * __ptr64,struct _ITEMID_CHILD * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CAutoDestItemsFolder::CreateRelativePidl

+          (CAutoDestItemsFolder *this,_ITEMIDLIST_ABSOLUTE *param_1,bool param_2,bool param_3,

+          uint param_4,IPropertyStore *param_5,_FILETIME *param_6,IAutomaticDestinationList *param_7

+          ,_ITEMID_CHILD **param_8)

+

+{

+  CAutoDestItemsFolder *ppv;

+  code *pcVar1;

+  FOLDER_ENUM_MODE FVar2;

+  _ITEMIDLIST_ABSOLUTE *p_Var3;

+  _FILETIME _Var4;

+  longlong *plVar5;

+  bool bVar6;

+  bool bVar7;

+  bool bVar8;

+  long lVar9;

+  uint uVar10;

+  long lVar11;

+  HRESULT HVar12;

+  int iVar13;

+  ulong uVar14;

+  GUID *ppszDisplay;

+  void **ppv_00;

+  ushort **ppuVar15;

+  _ITEMIDLIST_RELATIVE *p_Var16;

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  *puVar17;

+  FeatureImpl<struct___WilFeatureTraits_Feature_56859762> *this_00;

+  NSITEM *pNVar18;

+  ReportingKind RVar19;

+  INamedPropertyStore **ppIVar20;

+  _tagpropertykey *p_Var21;

+  tagPROPVARIANT *ptVar22;

+  NamedPropertyStoreHelper *pNVar23;

+  undefined1 uVar24;

+  ReportingKind RVar25;

+  undefined7 in_register_00000089;

+  _ITEMIDLIST_ABSOLUTE *p_Var26;

+  NSITEM *unaff_retaddr;

+  undefined1 auStackY_208 [32];

+  IAutomaticDestinationList **local_1d0;

+  unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+  *local_1c8;

+  NSITEM **local_1c0;

+  FOLDER_ENUM_MODE *local_1b8;

+  _ITEMIDLIST_ABSOLUTE **local_1b0;

+  undefined1 *local_1a8;

+  _ITEMID_CHILD **local_1a0;

+  _ITEMIDLIST_ABSOLUTE *local_198;

+  NSITEM *local_190;

+  INamedPropertyStore *local_188;

+  undefined1 local_180 [8];

+  undefined2 local_178 [4];

+  _ITEMIDLIST_RELATIVE *local_170;

+  INamedPropertyStore *local_160;

+  INamedPropertyStore *local_158 [2];

+  _tagpropertykey local_148;

+  INamedPropertyStore *local_128;

+  short *local_120;

+  _ITEMIDLIST_RELATIVE *local_118;

+  _ITEMIDLIST_ABSOLUTE *local_110;

+  ulonglong local_108;

+  ushort *local_100;

+  LPBC local_f8;

+  _ITEMIDLIST_ABSOLUTE **local_f0;

+  _FILETIME local_e8;

+  undefined1 local_e0;

+  _FILETIME local_d8;

+  _ITEMIDLIST_RELATIVE *local_d0;

+  ushort *local_c8;

+  ushort *local_c0;

+  ushort *local_b8;

+  IShellFolder *local_b0;

+  longlong *local_a8;

+  undefined8 local_a0;

+  ushort *local_98;

+  _FILETIME local_90;

+  FOLDER_ENUM_MODE local_88 [2];

+  undefined **local_80;

+  undefined1 local_78;

+  undefined8 local_70;

+  undefined8 uStack_68;

+  undefined4 local_60;

+  undefined4 local_5c;

+  undefined1 local_58;

+  undefined8 local_50;

+  ulonglong local_48;

+  

+  ppszDisplay = (GUID *)CONCAT71(in_register_00000089,param_3);

+  local_48 = __security_cookie ^ (ulonglong)auStackY_208;

+  FVar2 = (FOLDER_ENUM_MODE)param_3;

+  local_1a0 = param_8;

+  *param_8 = (_ITEMID_CHILD *)0x0;

+  local_190 = (NSITEM *)0x0;

+  local_110 = param_1;

+  Microsoft::WRL::ComPtr<IShellItem2>::InternalAddRef((ComPtr<IShellItem2> *)&local_190);

+  lVar9 = wil::PropertyStoreHelperBase<IPropertyStore>::InitFromMemory

+                    ((PropertyStoreHelperBase<IPropertyStore> *)&local_190);

+  if (lVar9 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xb91,"onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",

+               lVar9);

+    goto LAB_0;

+  }

+  local_198 = (_ITEMIDLIST_ABSOLUTE *)0x0;

+  local_f0 = &local_198;

+  local_e8.dwLowDateTime = 0;

+  local_e8.dwHighDateTime = 0;

+  local_e0 = 1;

+  local_88[0] = FVar2;

+  lVar9 = ConvertIDListEnumMode(FVar2,param_1,(_ITEMIDLIST_ABSOLUTE **)&local_e8);

+  wil::details::

+  out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+  ::

+  ~out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+            ((out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+              *)&local_f0);

+  if (lVar9 < 0) {

+    uVar10 = 0xb94;

+LAB_1:

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar10,"onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",

+               lVar9);

+  }

+  else {

+    local_148.fmtid._0_8_ =

+         (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+          *)0x11d2953d28636aa6;

+    local_148.fmtid.Data4[0] = 0xb5;

+    local_148.fmtid.Data4[1] = 0xd6;

+    local_148.fmtid.Data4[2] = '\0';

+    local_148.fmtid.Data4[3] = 0xc0;

+    local_148.fmtid.Data4[4] = 'O';

+    local_148.fmtid.Data4[5] = 0xd9;

+    local_148.fmtid.Data4[6] = '\x18';

+    local_148.fmtid.Data4[7] = 0xd0;

+    local_148.pid = 0x20;

+    lVar9 = wil::ShellItemPropertyStoreHelper::SetIDList<_tagpropertykey>

+                      ((ShellItemPropertyStoreHelper *)&local_190,&local_148,local_198);

+    if (lVar9 < 0) {

+      uVar10 = 0xb95;

+      goto LAB_1;

+    }

+    local_178[0] = 0xb;

+    local_170 = (_ITEMIDLIST_RELATIVE *)CONCAT62(local_170._2_6_,0xffff);

+    if (!param_2) {

+      local_170 = (_ITEMIDLIST_RELATIVE *)((ulonglong)local_170._2_6_ << 0x10);

+    }

+    lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))(local_190,&PKEY_Home_IsPinned,local_178);

+    if (lVar9 < 0) {

+      uVar10 = 0xb96;

+      goto LAB_1;

+    }

+    local_178[0] = 0x13;

+    local_170 = (_ITEMIDLIST_RELATIVE *)CONCAT44(local_170._4_4_,param_4);

+    lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))(local_190,&PKEY_Home_SortOrder,local_178);

+    if (lVar9 < 0) {

+      uVar10 = 0xb97;

+      goto LAB_1;

+    }

+    local_178[0] = 0x13;

+    local_170 = (_ITEMIDLIST_RELATIVE *)CONCAT44(local_170._4_4_,FVar2 << 0x10);

+    lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))(local_190,&PKEY_SFGAOFlags,local_178);

+    if (lVar9 < 0) {

+      uVar10 = 0xb98;

+      goto LAB_1;

+    }

+    local_178[0] = 0x13;

+    local_170 = (_ITEMIDLIST_RELATIVE *)((ulonglong)local_170 & 0xffffffff00000000);

+    lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                      (local_190,&PKEY_Home_GraphFileType,local_178);

+    if (lVar9 < 0) {

+      uVar10 = 0xb9d;

+      goto LAB_1;

+    }

+    local_178[0] = 0xb;

+    local_170 = (_ITEMIDLIST_RELATIVE *)((ulonglong)local_170 & 0xffffffffffff0000);

+    lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))(local_190,&PKEY_Home_Recommended,local_178)

+    ;

+    if (lVar9 < 0) {

+      uVar10 = 0xb9e;

+      goto LAB_1;

+    }

+    local_178[0] = 0x1f;

+    local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+    RVar19 = 0x807347d0;

+    lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))();

+    if (lVar9 < 0) {

+      uVar10 = 0xb9f;

+      goto LAB_1;

+    }

+    bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_FE_PI>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_FE_PI> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_FE_PI>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_FE_PI>::GetImpl(void)'

+                        ::__l2::impl,RVar19);

+    if (bVar6) {

+      local_178[0] = 0x1f;

+      local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+      lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                        (local_190,&PKEY_MsGraph_WebAccountId,local_178);

+      if (lVar9 < 0) {

+        uVar10 = 0xba3;

+      }

+      else {

+        local_178[0] = 0x1f;

+        local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+        lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                          (local_190,&PKEY_MsGraph_SharedByEmail,local_178);

+        if (lVar9 < 0) {

+          uVar10 = 0xba4;

+        }

+        else {

+          local_178[0] = 0x1f;

+          local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+          lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                            (local_190,&PKEY_WebAccountID,local_178);

+          if (lVar9 < 0) {

+            uVar10 = 0xba5;

+          }

+          else {

+            local_178[0] = 0x1f;

+            local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+            lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                              (local_190,&PKEY_MsGraph_PrimaryActivityActorUpn,local_178);

+            if (lVar9 < 0) {

+              uVar10 = 0xba6;

+            }

+            else {

+              local_178[0] = 0x1f;

+              local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+              lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                (local_190,&PKEY_MsGraph_PrimaryActivityActorDisplayName,local_178);

+              if (lVar9 < 0) {

+                uVar10 = 0xba7;

+              }

+              else {

+                local_178[0] = 0x1f;

+                local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+                lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                  (local_190,&PKEY_MsGraph_SharedByName,local_178);

+                if (lVar9 < 0) {

+                  uVar10 = 0xba8;

+                }

+                else {

+                  local_178[0] = 0x13;

+                  local_170 = (_ITEMIDLIST_RELATIVE *)((ulonglong)local_170 & 0xffffffff00000000);

+                  RVar19 = 0x80734710;

+                  lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))();

+                  if (-1 < lVar9) goto LAB_2;

+                  uVar10 = 0xba9;

+                }

+              }

+            }

+          }

+        }

+      }

+      goto LAB_1;

+    }

+LAB_2:

+    bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_55730600>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_55730600> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_55730600>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_55730600>::GetImpl(void)'

+                        ::__l2::impl,RVar19);

+    if (bVar6) {

+      local_178[0] = 0x13;

+      local_170 = (_ITEMIDLIST_RELATIVE *)((ulonglong)local_170 & 0xffffffff00000000);

+      RVar19 = 0x80734620;

+      lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))();

+      if (lVar9 < 0) {

+        uVar10 = 0xbae;

+        goto LAB_1;

+      }

+    }

+    bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_59978822>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_59978822> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_59978822>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_59978822>::GetImpl(void)'

+                        ::__l2::impl,RVar19);

+    if (bVar6) {

+      local_178[0] = 0x40;

+      local_170 = (_ITEMIDLIST_RELATIVE *)0x0;

+      lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))(local_190,&PKEY_ActivityDate,local_178);

+      if (lVar9 < 0) {

+        uVar10 = 0xbb6;

+      }

+      else {

+        local_178[0] = 0x40;

+        local_170 = (_ITEMIDLIST_RELATIVE *)0x0;

+        lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                          (local_190,&PKEY_MsGraph_DateLastShared,local_178);

+        if (lVar9 < 0) {

+          uVar10 = 2999;

+        }

+        else {

+          local_178[0] = 0x40;

+          local_170 = (_ITEMIDLIST_RELATIVE *)0x0;

+          lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                            (local_190,&PKEY_StorageProviderFileDateShared,local_178);

+          if (lVar9 < 0) {

+            uVar10 = 3000;

+          }

+          else {

+            local_178[0] = 0x1f;

+            local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+            lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                              (local_190,&PKEY_ActivityIcon,local_178);

+            if (lVar9 < 0) {

+              uVar10 = 0xbb9;

+            }

+            else {

+              local_178[0] = 0x1f;

+              local_170 = (_ITEMIDLIST_RELATIVE *)0x18071453c;

+              lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                (local_190,&PKEY_StorageProviderFileSharedBy,local_178);

+              if (lVar9 < 0) {

+                uVar10 = 0xbba;

+              }

+              else {

+                local_178[0] = 0x13;

+                local_170 = (_ITEMIDLIST_RELATIVE *)((ulonglong)local_170 & 0xffffffff00000000);

+                lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                  (local_190,&PKEY_Home_RecommendationProviderSource);

+                if (-1 < lVar9) goto LAB_3;

+                uVar10 = 0xbbb;

+              }

+            }

+          }

+        }

+      }

+      goto LAB_1;

+    }

+LAB_3:

+    bVar8 = true;

+    bVar7 = true;

+    bVar6 = true;

+    if (param_5 == (IPropertyStore *)0x0) {

+LAB_4:

+      if (*(int *)(this + 0x68) - 1U < 2) {

+        if (param_6 != (_FILETIME *)0x0) {

+          local_f0 = (_ITEMIDLIST_ABSOLUTE **)CONCAT62(local_f0._2_6_,0x40);

+          local_e8 = *param_6;

+          lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))(local_190,&PKEY_DateAccessed);

+          if (lVar9 < 0) {

+            uVar10 = 0xc29;

+            goto LAB_1;

+          }

+        }

+      }

+      else if ((*(int *)(this + 0x68) == 0) && (!param_2)) {

+        local_f0 = (_ITEMIDLIST_ABSOLUTE **)CONCAT62(local_f0._2_6_,0x40);

+        local_e8.dwLowDateTime = 0;

+        local_e8.dwHighDateTime = 0;

+        lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))(local_190,&PKEY_DateAccessed);

+        if (lVar9 < 0) {

+          uVar10 = 0xc31;

+          goto LAB_1;

+        }

+      }

+      iVar13 = *(int *)(this + 0x68);

+      p_Var26 = local_110;

+      if (iVar13 == 0) {

+LAB_5:

+        lVar9 = 0;

+        if (*(int *)(this + 0x68) - 2U < 2) {

+          local_188 = (INamedPropertyStore *)0x0;

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_188);

+          lVar11 = wil::PropertyStoreHelper::GetNamedPropertyStore

+                             ((PropertyStoreHelper *)&local_190,&local_188);

+          if (lVar11 < 0) {

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,0xc50,

+                       "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar11);

+            lVar9 = lVar11;

+          }

+          else {

+            local_160 = local_188;

+            Microsoft::WRL::ComPtr<IShellItem2>::InternalAddRef((ComPtr<IShellItem2> *)&local_160);

+            local_180[0] = '\0';

+            if (*(int *)(this + 0x68) == 3) {

+              local_148.fmtid.Data1._0_2_ = 0xb;

+              local_148.fmtid.Data4[0] = 0xff;

+              local_148.fmtid.Data4[1] = 0xff;

+              uVar24 = SUB81(&local_148,0);

+              RVar19 = 0x80734a28;

+              iVar13 = (**(code **)(*(longlong *)local_190 + 0x30))();

+              if (iVar13 < 0) {

+                uVar10 = 0xc56;

+                lVar9 = iVar13;

+                goto LAB_6;

+              }

+              bVar8 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_51721485>::

+                      __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_51721485> *)

+                                          &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_51721485>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_51721485>::GetImpl(void)'

+                                           ::__l2::impl,RVar19);

+              if (bVar8) {

+                ppszDisplay = (GUID *)local_180;

+                RVar19 = 0x8076e7d8;

+                lVar11 = wil::PropertyStoreHelperBase<INamedPropertyStore>::

+                         GetAsBoolWithDefault<unsigned_short_const*___ptr64>

+                                   ((PropertyStoreHelperBase<INamedPropertyStore> *)&local_160,

+                                    (ushort *)L"is_local_recommendation",(bool)uVar24,

+                                    (bool *)ppszDisplay);

+                if (lVar11 < 0) {

+                  uVar10 = 0xc5a;

+                  lVar9 = lVar11;

+                  goto LAB_6;

+                }

+              }

+              if (local_180[0] == '\0') goto LAB_7;

+LAB_8:

+              this_00 = &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_56859762>::GetImpl(void)'

+                         ::__l2::impl;

+              bVar8 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>::

+                      __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_56859762> *)

+                                          &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_56859762>::GetImpl(void)'

+                                           ::__l2::impl,RVar19);

+              if (!bVar8) {

+                pNVar23 = (NamedPropertyStoreHelper *)&local_160;

+                bVar8 = IsOneNoteApp((CAutoDestItemsFolder *)this_00,pNVar23);

+                RVar19 = (ReportingKind)pNVar23;

+                if (bVar8) {

+                  bVar6 = false;

+                }

+              }

+              local_120 = (short *)0x0;

+              bVar8 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>::

+                      __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_56859762> *)

+                                          &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_56859762>::GetImpl(void)'

+                                           ::__l2::impl,RVar19);

+              if (bVar8) {

+                ppuVar15 = wil::

+                           unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                  *)&local_120);

+                local_148.fmtid._0_8_ =

+                     (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                      *)0x4a5ab788e3e0584c;

+                local_148.fmtid.Data4[0] = 0xbb;

+                local_148.fmtid.Data4[1] = ' ';

+                local_148.fmtid.Data4[2] = '\x7f';

+                local_148.fmtid.Data4[3] = 'Z';

+                local_148.fmtid.Data4[4] = 'D';

+                local_148.fmtid.Data4[5] = 0xc9;

+                local_148.fmtid.Data4[6] = 0xac;

+                local_148.fmtid.Data4[7] = 0xdd;

+                local_148.pid = 7;

+                p_Var21 = &local_148;

+                uVar10 = wil::PropertyStoreHelperBase<IPropertyStore>::GetAsString<_tagpropertykey>

+                                   ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,p_Var21,

+                                    ppuVar15);

+                RVar19 = (ReportingKind)p_Var21;

+                RVar25 = (ReportingKind)ppuVar15;

+              }

+              else {

+                ppuVar15 = wil::

+                           unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                  *)&local_120);

+                RVar19 = 0x8076e7c0;

+                uVar10 = wil::PropertyStoreHelperBase<INamedPropertyStore>::

+                         GetAsString<unsigned_short_const*___ptr64>

+                                   ((PropertyStoreHelperBase<INamedPropertyStore> *)&local_160,

+                                    (ushort *)L"local_path",ppuVar15);

+                RVar25 = (ReportingKind)ppuVar15;

+              }

+              if ((int)uVar10 < 0) {

+                ppszDisplay = (GUID *)(ulonglong)uVar10;

+                RVar19 = 0xc9d;

+                wil::details::in1diag3::_Log_Hr

+                          (unaff_retaddr,0xc9d,

+                           "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",uVar10);

+LAB_9:

+                uVar10 = SetStorageProviderUIStatusPrimaryState(local_190);

+                if ((int)uVar10 < 0) {

+                  ppszDisplay = (GUID *)(ulonglong)uVar10;

+                  RVar19 = 0xd00;

+                  wil::details::in1diag3::_Log_Hr

+                            (unaff_retaddr,0xd00,

+                             "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",uVar10);

+                }

+                local_100 = (ushort *)0x0;

+                local_90.dwLowDateTime = 0;

+                local_90.dwHighDateTime = 0;

+                local_98 = (ushort *)0x0;

+                bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>::

+                        __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_56859762> *)

+                                            &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_56859762>::GetImpl(void)'

+                                             ::__l2::impl,RVar19);

+                if (bVar6) {

+                  ppuVar15 = wil::

+                             unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                             ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                    *)&local_100);

+                  local_148.fmtid._0_8_ = &DAT_10;

+                  local_148.fmtid.Data4[0] = 0xa9;

+                  local_148.fmtid.Data4[1] = 0xe7;

+                  local_148.fmtid.Data4[2] = 0xea;

+                  local_148.fmtid.Data4[3] = '\"';

+                  local_148.fmtid.Data4[4] = 0x83;

+                  local_148.fmtid.Data4[5] = ' ';

+                  local_148.fmtid.Data4[6] = 0x94;

+                  local_148.fmtid.Data4[7] = 0xb8;

+                  local_148.pid = 0x83;

+                  lVar11 = wil::PropertyStoreHelperBase<IPropertyStore>::

+                           GetAsString<_tagpropertykey>

+                                     ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,

+                                      &local_148,ppuVar15);

+                  RVar19 = (ReportingKind)ppuVar15;

+                  if (-1 < lVar11) goto LAB_11;

+                  uVar10 = 0xd08;

+                  lVar9 = lVar11;

+LAB_12:

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,uVar10,

+                             "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+                }

+                else {

+                  ppuVar15 = wil::

+                             unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                             ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                    *)&local_100);

+                  local_148.fmtid._0_8_ =

+                       (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                        *)0x41e2a83230c8eef4;

+                  local_148.fmtid.Data4[0] = 0xab;

+                  local_148.fmtid.Data4[1] = '2';

+                  local_148.fmtid.Data4[2] = 0xe3;

+                  local_148.fmtid.Data4[3] = 0xc3;

+                  local_148.fmtid.Data4[4] = 0xca;

+                  local_148.fmtid.Data4[5] = '(';

+                  local_148.fmtid.Data4[6] = 0xfd;

+                  local_148.fmtid.Data4[7] = ')';

+                  local_148.pid = 9;

+                  lVar11 = wil::PropertyStoreHelperBase<IPropertyStore>::

+                           GetAsString<_tagpropertykey>

+                                     ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,

+                                      &local_148,ppuVar15);

+                  RVar19 = (ReportingKind)ppuVar15;

+                  if (lVar11 < 0) {

+                    uVar10 = 0xd0c;

+                    lVar9 = lVar11;

+                    goto LAB_12;

+                  }

+LAB_11:

+                  wil::details::

+                  FeatureImpl<__WilFeatureTraits_Feature_Servicing_FileExplorer_LaunchAndEnumerationPerfInefficiencies>

+                  ::ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_Servicing_FileExplorer_LaunchAndEnumerationPerfInefficiencies>

+                                 *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_Servicing_FileExplorer_LaunchAndEnumerationPerfInefficiencies>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_Servicing_FileExplorer_LaunchAndEnumerationPerfInefficiencies>::GetImpl(void)'

+                                    ::__l2::impl,true,RVar19,(__uint64)ppszDisplay);

+                  local_148.fmtid.Data1 = 0xb725f130;

+                  local_148.fmtid.Data2 = 0x47ef;

+                  local_148.fmtid.Data3 = 0x101a;

+                  local_148.fmtid.Data4[0] = 0xa5;

+                  local_148.fmtid.Data4[1] = 0xf1;

+                  local_148.fmtid.Data4[2] = '\x02';

+                  local_148.fmtid.Data4[3] = '`';

+                  local_148.fmtid.Data4[4] = 0x8c;

+                  local_148.fmtid.Data4[5] = 0x9e;

+                  local_148.fmtid.Data4[6] = 0xeb;

+                  local_148.fmtid.Data4[7] = 0xac;

+                  local_148.pid = 0xe;

+                  wil::PropertyStoreHelperBase<IPropertyStore>::GetAsFileTime<_tagpropertykey>

+                            ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,&local_148,

+                             &local_90);

+                  local_148.fmtid._0_8_ =

+                       (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                        *)0x101a47efb725f130;

+                  local_148.fmtid.Data4[0] = 0xa5;

+                  local_148.fmtid.Data4[1] = 0xf1;

+                  local_148.fmtid.Data4[2] = '\x02';

+                  local_148.fmtid.Data4[3] = '`';

+                  local_148.fmtid.Data4[4] = 0x8c;

+                  local_148.fmtid.Data4[5] = 0x9e;

+                  local_148.fmtid.Data4[6] = 0xeb;

+                  local_148.fmtid.Data4[7] = 0xac;

+                  local_148.pid = 0xc;

+                  wil::PropertyStoreHelperBase<IPropertyStore>::GetAsUInt64<_tagpropertykey>

+                            ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,&local_148,

+                             (__uint64 *)&local_98);

+                  local_f0 = (_ITEMIDLIST_ABSOLUTE **)((ulonglong)local_f0 & 0xffffffffffff0000);

+                  lVar11 = GraphFileThumbnailProvider::GetThumbnailCacheId

+                                     (local_100,local_90,(__uint64)local_98,

+                                      (tagPROPVARIANT *)&local_f0);

+                  if (lVar11 < 0) {

+                    uVar10 = 0xd1b;

+                    lVar9 = lVar11;

+LAB_13:

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar10,

+                               "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9)

+                    ;

+                  }

+                  else {

+                    iVar13 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                       (local_190,&PKEY_ThumbnailCacheId);

+                    if (iVar13 < 0) {

+                      uVar10 = 0xd1c;

+                      lVar9 = iVar13;

+                      goto LAB_13;

+                    }

+                    bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_59111371>::

+                            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_59111371> *)

+                                                &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_59111371>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_59111371>::GetImpl(void)'

+                                                 ::__l2::impl);

+                    if ((!bVar6) || (1 < *(int *)(this + 0x68) - 2U)) {

+LAB_14:

+                      PropVariantClear((PROPVARIANT *)&local_f0);

+                      wil::details::

+                      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ::

+                      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  *)&local_100);

+                      wil::details::

+                      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ::

+                      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  *)&local_120);

+                      Microsoft::WRL::ComPtr<Windows::Foundation::IUriRuntimeClass>::

+                      ~ComPtr<Windows::Foundation::IUriRuntimeClass>

+                                ((ComPtr<Windows::Foundation::IUriRuntimeClass> *)&local_160);

+                      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                                ((ComPtr<IQuerySource> *)&local_188);

+                      goto LAB_15;

+                    }

+                    local_1d0 = (IAutomaticDestinationList **)CONCAT62(local_1d0._2_6_,0x13);

+                    local_1c8 = (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                                 *)CONCAT44(local_1c8._4_4_,1);

+                    iVar13 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                       (local_190,&PKEY_Shell_ItemOfflineStatus,&local_1d0);

+                    if (iVar13 < 0) {

+                      uVar10 = 0xd23;

+                      lVar9 = iVar13;

+                      goto LAB_13;

+                    }

+                    local_118 = (_ITEMIDLIST_RELATIVE *)0x0;

+                    local_148.fmtid._0_8_ = local_148.fmtid._0_8_ & 0xffffffffffff0000;

+                    lVar11 = (**(code **)(*(longlong *)local_190 + 0x28))

+                                       (local_190,&PKEY_FileExtension,&local_148);

+                    if (lVar11 < 0) {

+                      uVar10 = 0xd29;

+LAB_16:

+                      wil::details::in1diag3::_Log_Hr

+                                (unaff_retaddr,uVar10,

+                                 "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",

+                                 lVar11);

+LAB_17:

+                      PropVariantClear((PROPVARIANT *)&local_148);

+                      wil::details::

+                      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ::

+                      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  *)&local_118);

+                      goto LAB_14;

+                    }

+                    ppuVar15 = wil::

+                               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                      *)&local_118);

+                    lVar11 = wil::PropVariant::GetAsString((PropVariant *)&local_148,ppuVar15);

+                    if (lVar11 < 0) {

+                      uVar10 = 0xd2b;

+                      goto LAB_16;

+                    }

+                    local_108 = local_108 & 0xffffffff00000000;

+                    local_f8 = (LPBC)((ulonglong)local_f8 & 0xffffffff00000000);

+                    bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>::

+                            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_61052451> *)

+                                                &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61052451>::GetImpl(void)'

+                                                 ::__l2::impl,(ReportingKind)ppuVar15);

+                    if (!bVar6) {

+                      lVar11 = AssocGetPerceivedType

+                                         ((LPCWSTR)local_118,(PERCEIVED *)&local_108,

+                                          (PERCEIVEDFLAG *)&local_f8,(LPWSTR *)0x0);

+                      if (lVar11 < 0) {

+                        uVar10 = 0xd39;

+                        goto LAB_16;

+                      }

+                      local_1d0 = (IAutomaticDestinationList **)CONCAT62(local_1d0._2_6_,3);

+                      local_1c8 = (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                                   *)CONCAT44(local_1c8._4_4_,(undefined4)local_108);

+                      iVar13 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                         (local_190,&PKEY_PerceivedType);

+                      if (iVar13 < 0) {

+                        uVar10 = 0xd3c;

+                        lVar9 = iVar13;

+                        goto LAB_18;

+                      }

+                      goto LAB_17;

+                    }

+                    HVar12 = AssocGetPerceivedType

+                                       ((LPCWSTR)local_118,(PERCEIVED *)&local_108,

+                                        (PERCEIVEDFLAG *)&local_f8,(LPWSTR *)0x0);

+                    if (HVar12 < 0) goto LAB_17;

+                    local_1d0 = (IAutomaticDestinationList **)CONCAT62(local_1d0._2_6_,3);

+                    local_1c8 = (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                                 *)CONCAT44(local_1c8._4_4_,(undefined4)local_108);

+                    iVar13 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                       (local_190,&PKEY_PerceivedType);

+                    if (-1 < iVar13) goto LAB_17;

+                    uVar10 = 0xd34;

+                    lVar9 = iVar13;

+LAB_18:

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar10,

+                               "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9)

+                    ;

+                    PropVariantClear((PROPVARIANT *)&local_148);

+                    wil::details::

+                    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ::

+                    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                *)&local_118);

+                  }

+                  PropVariantClear((PROPVARIANT *)&local_f0);

+                }

+                wil::details::

+                unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ::

+                ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                          ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                            *)&local_100);

+              }

+              else {

+                if ((*local_120 == 0) || (!bVar6)) goto LAB_9;

+                local_108 = 0;

+                wil::details::

+                FeatureImpl<__WilFeatureTraits_Feature_Servicing_FileExplorer_LaunchAndEnumerationPerfInefficiencies>

+                ::ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_Servicing_FileExplorer_LaunchAndEnumerationPerfInefficiencies>

+                               *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_Servicing_FileExplorer_LaunchAndEnumerationPerfInefficiencies>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_Servicing_FileExplorer_LaunchAndEnumerationPerfInefficiencies>::GetImpl(void)'

+                                  ::__l2::impl,true,RVar25,(__uint64)ppszDisplay);

+                local_f8 = (LPBC)0x0;

+                Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                          ((ComPtr<IQuerySource> *)&local_f8);

+                HVar12 = CreateBindCtx(0,&local_f8);

+                if (-1 < HVar12) {

+                  local_148.fmtid.Data4[0] = '\0';

+                  local_148.fmtid.Data4[1] = '\0';

+                  local_148.fmtid.Data4[2] = '\0';

+                  local_148.fmtid.Data4[3] = '\0';

+                  local_148.fmtid.Data4[4] = '\0';

+                  local_148.fmtid.Data4[5] = '\0';

+                  local_148.fmtid.Data4[6] = '\0';

+                  local_148.fmtid.Data4[7] = '\0';

+                  local_148.pid = CONCAT31(local_148.pid._1_3_,1);

+                  ppszDisplay = (GUID *)0x0;

+                  local_148.fmtid._0_8_ =

+                       (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                        *)&local_108;

+                  uVar10 = SHParseDisplayName(local_120,local_f8,local_148.fmtid.Data4);

+                  if ((int)uVar10 < 0) {

+                    ppszDisplay = (GUID *)(ulonglong)uVar10;

+                    wil::details::in1diag3::_Log_Hr

+                              (unaff_retaddr,0xca6,

+                               "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",uVar10

+                              );

+                  }

+                  wil::details::

+                  out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                  ::

+                  ~out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                            ((out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                              *)&local_148);

+                  if ((int)uVar10 < 0) {

+LAB_19:

+                    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                              ((ComPtr<IQuerySource> *)&local_f8);

+                    RVar19 = 0;

+                    wistd::

+                    unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                    ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                             *)&local_108,(tagSERIALIZEDPROPSTORAGE *)0x0);

+                    goto LAB_9;

+                  }

+                  local_1d0 = &param_7;

+                  local_1c0 = &local_190;

+                  local_1b8 = local_88;

+                  local_1b0 = &local_198;

+                  local_1a8 = local_180;

+                  local_1c8 = (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                               *)&local_108;

+                  uVar10 = <lambda_4ebd0b8078377078827ae01c2bee72dc>::operator()(&local_1d0);

+                  if ((int)uVar10 < 0) {

+                    ppszDisplay = (GUID *)(ulonglong)uVar10;

+                    wil::details::in1diag3::_Log_Hr

+                              (unaff_retaddr,0xcc8,

+                               "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",uVar10

+                              );

+                    goto LAB_19;

+                  }

+                  lVar11 = CItemIDFactory<NSITEM,203342025>::s_CreateItemID

+                                     (unaff_retaddr,(IPropertyStore *)local_190,local_1a0,

+                                      *(IMalloc **)(this + 0x48));

+                  if (lVar11 < 0) {

+                    uVar10 = 0xcca;

+                    lVar9 = lVar11;

+                    goto LAB_20;

+                  }

+                  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                            ((ComPtr<IQuerySource> *)&local_f8);

+                  wistd::

+                  unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                  ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                           *)&local_108,(tagSERIALIZEDPROPSTORAGE *)0x0);

+                  wil::details::

+                  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ::

+                  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              *)&local_120);

+                  Microsoft::WRL::ComPtr<Windows::Foundation::IUriRuntimeClass>::

+                  ~ComPtr<Windows::Foundation::IUriRuntimeClass>

+                            ((ComPtr<Windows::Foundation::IUriRuntimeClass> *)&local_160);

+                  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                            ((ComPtr<IQuerySource> *)&local_188);

+                  goto LAB_21;

+                }

+                uVar10 = 0xca5;

+                lVar9 = HVar12;

+LAB_20:

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,uVar10,

+                           "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+                Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                          ((ComPtr<IQuerySource> *)&local_f8);

+                wistd::

+                unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                         *)&local_108,(tagSERIALIZEDPROPSTORAGE *)0x0);

+              }

+              puVar17 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                         *)&local_120;

+LAB_22:

+              wil::details::

+              unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ::

+              ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        (puVar17);

+            }

+            else {

+LAB_7:

+              local_148.fmtid.Data1._0_2_ = 0x13;

+              local_148.fmtid.Data4[0] = '\x01';

+              local_148.fmtid.Data4[1] = '\0';

+              local_148.fmtid.Data4[2] = '\0';

+              local_148.fmtid.Data4[3] = '\0';

+              RVar19 = 0x807169b8;

+              iVar13 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                 (local_190,&PKEY_Home_GraphFileType,&local_148);

+              if (-1 < iVar13) {

+                local_110 = (_ITEMIDLIST_ABSOLUTE *)0x0;

+                bVar8 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>::

+                        __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_56859762> *)

+                                            &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_56859762>::GetImpl(void)'

+                                             ::__l2::impl,RVar19);

+                if (bVar8) {

+                  ppuVar15 = wil::

+                             unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                             ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                    *)&local_110);

+                  local_148.fmtid._0_8_ =

+                       (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                        *)0x4806f75a41cf5ae0;

+                  local_148.fmtid.Data4[0] = 0xbd;

+                  local_148.fmtid.Data4[1] = 0x87;

+                  local_148.fmtid.Data4[2] = 'Y';

+                  local_148.fmtid.Data4[3] = 199;

+                  local_148.fmtid.Data4[4] = 0xd9;

+                  local_148.fmtid.Data4[5] = '$';

+                  local_148.fmtid.Data4[6] = 0x8e;

+                  local_148.fmtid.Data4[7] = 0xb9;

+                  local_148.pid = 100;

+                  lVar11 = wil::PropertyStoreHelperBase<IPropertyStore>::

+                           GetAsString<_tagpropertykey>

+                                     ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,

+                                      &local_148,ppuVar15);

+                  if (lVar11 < 0) {

+                    uVar10 = 0xc65;

+                    lVar9 = lVar11;

+                  }

+                  else {

+LAB_23:

+                    p_Var3 = local_198;

+                    local_198 = (_ITEMIDLIST_ABSOLUTE *)0x0;

+                    p_Var16 = ILAppendHiddenStringW

+                                        ((_ITEMIDLIST_RELATIVE *)p_Var3,0xbeef0028,

+                                         (ushort *)local_110);

+                    wistd::

+                    unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                    ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                             *)&local_198,(tagSERIALIZEDPROPSTORAGE *)p_Var16);

+                    local_148.fmtid._0_8_ =

+                         (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                          *)0x11d2953d28636aa6;

+                    local_148.fmtid.Data4[0] = 0xb5;

+                    local_148.fmtid.Data4[1] = 0xd6;

+                    local_148.fmtid.Data4[2] = '\0';

+                    local_148.fmtid.Data4[3] = 0xc0;

+                    local_148.fmtid.Data4[4] = 'O';

+                    local_148.fmtid.Data4[5] = 0xd9;

+                    local_148.fmtid.Data4[6] = '\x18';

+                    local_148.fmtid.Data4[7] = 0xd0;

+                    local_148.pid = 0x20;

+                    p_Var21 = &local_148;

+                    lVar11 = wil::ShellItemPropertyStoreHelper::SetIDList<_tagpropertykey>

+                                       ((ShellItemPropertyStoreHelper *)&local_190,p_Var21,local_198

+                                       );

+                    RVar19 = (ReportingKind)p_Var21;

+                    if (-1 < lVar11) {

+                      wil::details::

+                      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ::

+                      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  *)&local_110);

+                      goto LAB_8;

+                    }

+                    uVar10 = 0xc70;

+                    lVar9 = lVar11;

+                  }

+                }

+                else {

+                  ppuVar15 = wil::

+                             unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                             ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                    *)&local_110);

+                  lVar11 = wil::PropertyStoreHelperBase<INamedPropertyStore>::

+                           GetAsString<unsigned_short_const*___ptr64>

+                                     ((PropertyStoreHelperBase<INamedPropertyStore> *)&local_160,

+                                      (ushort *)L"title",ppuVar15);

+                  if (-1 < lVar11) goto LAB_23;

+                  uVar10 = 0xc69;

+                  lVar9 = lVar11;

+                }

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,uVar10,

+                           "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+                puVar17 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                           *)&local_110;

+                goto LAB_22;

+              }

+              uVar10 = 0xc60;

+              lVar9 = iVar13;

+LAB_6:

+              wil::details::in1diag3::Return_Hr

+                        (unaff_retaddr,uVar10,

+                         "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+            }

+            Microsoft::WRL::ComPtr<Windows::Foundation::IUriRuntimeClass>::

+            ~ComPtr<Windows::Foundation::IUriRuntimeClass>

+                      ((ComPtr<Windows::Foundation::IUriRuntimeClass> *)&local_160);

+          }

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_188);

+        }

+        else {

+LAB_15:

+          local_118 = (_ITEMIDLIST_RELATIVE *)0x0;

+          local_b0 = (IShellFolder *)0x0;

+          iVar13 = SHBindToFolderIDListParentEx

+                             (0,p_Var26,0,&_GUID_000214e6_0000_0000_c000_000000000046);

+          if (iVar13 < 0) {

+            uVar10 = 0xd47;

+            lVar9 = iVar13;

+          }

+          else {

+            uVar14 = SHGetAttributesWithBindCtx(local_b0,local_118,(IBindCtx *)0x0,0x20400000);

+            local_1d0 = (IAutomaticDestinationList **)CONCAT62(local_1d0._2_6_,0x13);

+            uVar10 = uVar14 | 0x10000;

+            if (!param_3) {

+              uVar10 = uVar14;

+            }

+            local_1c8 = (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                         *)CONCAT44(local_1c8._4_4_,uVar10);

+            pNVar18 = local_190;

+            iVar13 = (**(code **)(*(longlong *)local_190 + 0x30))

+                               (local_190,&PKEY_SFGAOFlags,&local_1d0);

+            if (iVar13 < 0) {

+              uVar10 = 0xd4c;

+              lVar9 = iVar13;

+            }

+            else {

+              lVar11 = CItemIDFactory<NSITEM,203342025>::s_CreateItemID

+                                 (pNVar18,(IPropertyStore *)local_190,local_1a0,

+                                  *(IMalloc **)(this + 0x48));

+              if (-1 < lVar11) {

+                ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                          ((CComPtrBase<IKnownFolderManager> *)&local_b0);

+LAB_21:

+                wistd::

+                unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                         *)&local_198,(tagSERIALIZEDPROPSTORAGE *)0x0);

+                goto LAB_0;

+              }

+              uVar10 = 0xd4e;

+              lVar9 = lVar11;

+            }

+          }

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,uVar10,

+                     "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                    ((CComPtrBase<IKnownFolderManager> *)&local_b0);

+        }

+      }

+      else {

+        local_b8 = (ushort *)0x0;

+        if (iVar13 - 2U < 2) {

+          local_f0 = (_ITEMIDLIST_ABSOLUTE **)((ulonglong)local_f0 & 0xffffffffffff0000);

+          iVar13 = (**(code **)(*(longlong *)local_190 + 0x28))(local_190,&PKEY_Kind,&local_f0);

+          if (-1 < iVar13) {

+            ppuVar15 = wil::

+                       unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                       ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                              *)&local_b8);

+            uVar10 = wil::PropVariant::GetAsString((PropVariant *)&local_f0,ppuVar15);

+            if ((int)uVar10 < 0) {

+              ppszDisplay = (GUID *)(ulonglong)uVar10;

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0xc3c,

+                         "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",uVar10);

+            }

+          }

+          PropVariantClear((PROPVARIANT *)&local_f0);

+          p_Var26 = local_110;

+LAB_24:

+          if ((local_b8 == (ushort *)0x0) ||

+             (bVar8 = FrequentPlacesFolderHelpers::IsVideoOrImageKind(local_b8), !bVar8)) {

+LAB_25:

+            local_e8.dwLowDateTime._0_2_ = 0xffff;

+          }

+          else {

+            local_e8 = (_FILETIME)((ulonglong)local_e8 & 0xffffffffffff0000);

+          }

+          local_f0 = (_ITEMIDLIST_ABSOLUTE **)CONCAT62(local_f0._2_6_,0xb);

+          lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))(local_190,&PKEY_IconsOnlyInTilesMode)

+          ;

+          if (-1 < lVar9) {

+            wil::details::

+            unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ::

+            ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        *)&local_b8);

+            goto LAB_5;

+          }

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0xc4a,

+                     "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+        }

+        else {

+          if (iVar13 != 1) goto LAB_25;

+          local_d8.dwLowDateTime = 0;

+          local_d8.dwHighDateTime = 0;

+          ppv_00 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&local_d8);

+          p_Var26 = local_110;

+          lVar9 = SHCreateItemFromIDList

+                            ((LPCITEMIDLIST)local_110,

+                             (IID *)&_GUID_7e9fb0d3_919f_4307_ab2e_9b1860310c93,ppv_00);

+          _Var4 = local_d8;

+          if (-1 < lVar9) {

+            if (local_d8 != (_FILETIME)0x0) {

+              pcVar1 = *(code **)(*(longlong *)local_d8 + 0x88);

+              ppuVar15 = wil::

+                         unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                         ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                *)&local_b8);

+              (*pcVar1)(_Var4,&PKEY_Kind,ppuVar15);

+            }

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_d8)

+            ;

+            goto LAB_24;

+          }

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0xc42,

+                     "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_d8);

+        }

+        wil::details::

+        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    *)&local_b8);

+      }

+    }

+    else {

+      wil::PropertyStoreHelper::PropertyStoreHelper((PropertyStoreHelper *)&local_188,param_5);

+      local_158[0] = (INamedPropertyStore *)0x0;

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)local_158);

+      ppIVar20 = local_158;

+      uVar10 = wil::PropertyStoreHelper::GetNamedPropertyStore

+                         ((PropertyStoreHelper *)&local_188,ppIVar20);

+      bVar6 = bVar7;

+      if ((int)uVar10 < 0) {

+        ppszDisplay = (GUID *)(ulonglong)uVar10;

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0xbc4,

+                   "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",uVar10);

+LAB_26:

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)local_158);

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_188);

+        goto LAB_4;

+      }

+      if (1 < *(int *)(this + 0x68) - 2U) goto LAB_26;

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_56859762> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_56859762>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_56859762>::GetImpl(void)'

+                          ::__l2::impl,(ReportingKind)ppIVar20);

+      if (bVar7) {

+        lVar9 = SHCopyPropertyStore((IPropertyStore *)local_190,(IPropertyStore *)local_188);

+        if (lVar9 < 0) {

+          uVar10 = 0xbcb;

+          goto LAB_27;

+        }

+        local_128 = (INamedPropertyStore *)0x0;

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_128);

+        lVar9 = wil::PropertyStoreHelper::GetNamedPropertyStore

+                          ((PropertyStoreHelper *)&local_190,&local_128);

+        if (lVar9 < 0) {

+          uVar10 = 0xbce;

+LAB_28:

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,uVar10,

+                     "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+        }

+        else {

+          lVar9 = CopyNamedPropertyStore(local_128,local_158[0]);

+          if (lVar9 < 0) {

+            uVar10 = 0xbcf;

+            goto LAB_28;

+          }

+          bVar6 = FrequentPlacesFolderHelpers::IsOneNoteApp((IPropertyStore *)local_190);

+          if (bVar6) {

+            local_90 = (_FILETIME)0x1807241a0;

+            local_178[0] = 0x1f;

+            local_170 = (_ITEMIDLIST_RELATIVE *)0x1807241a0;

+            lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                              (local_190,&PKEY_FileExtension,local_178);

+            if (lVar9 < 0) {

+              uVar10 = 0xbd7;

+            }

+            else {

+              local_178[0] = 0x1f;

+              local_170 = (_ITEMIDLIST_RELATIVE *)0x1807241a0;

+              lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                (local_190,&PKEY_ItemType,local_178);

+              if (-1 < lVar9) {

+                local_d0 = (_ITEMIDLIST_RELATIVE *)0x0;

+                ppszDisplay = (GUID *)wil::

+                                      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                      ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                             *)&local_d0);

+                local_178[0] = 0x1f;

+                local_170 = (_ITEMIDLIST_RELATIVE *)0x1807241a0;

+                uVar10 = PSFormatForDisplayAlloc

+                                   ((PROPERTYKEY *)&PKEY_ItemType,(PROPVARIANT *)local_178,

+                                    PDFF_DEFAULT,(PWSTR *)ppszDisplay);

+                if ((int)uVar10 < 0) {

+                  ppszDisplay = (GUID *)(ulonglong)uVar10;

+                  wil::details::in1diag3::_Log_Hr

+                            (unaff_retaddr,0xbdb,

+                             "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",uVar10);

+LAB_29:

+                  local_c8 = (ushort *)0x0;

+                  ppuVar15 = wil::

+                             unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                             ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                    *)&local_c8);

+                  local_148.fmtid._0_8_ =

+                       (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                        *)0x101a47efb725f130;

+                  local_148.fmtid.Data4[0] = 0xa5;

+                  local_148.fmtid.Data4[1] = 0xf1;

+                  local_148.fmtid.Data4[2] = '\x02';

+                  local_148.fmtid.Data4[3] = '`';

+                  local_148.fmtid.Data4[4] = 0x8c;

+                  local_148.fmtid.Data4[5] = 0x9e;

+                  local_148.fmtid.Data4[6] = 0xeb;

+                  local_148.fmtid.Data4[7] = 0xac;

+                  local_148.pid = 0x18;

+                  lVar9 = wil::PropertyStoreHelperBase<IPropertyStore>::GetAsString<_tagpropertykey>

+                                    ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,

+                                     &local_148,ppuVar15);

+                  if (lVar9 < 0) {

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,0xbe1,

+                               "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9)

+                    ;

+                  }

+                  else {

+                    local_118 = (_ITEMIDLIST_RELATIVE *)0x0;

+                    local_98 = local_c8;

+                    lVar9 = wil::

+                            str_concat_nothrow<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64>

+                                      ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                        *)&local_118,&local_98,(ushort **)&local_90);

+                    if (lVar9 < 0) {

+                      uVar10 = 0xbe4;

+                    }

+                    else {

+                      local_178[0] = 0x1f;

+                      local_170 = local_118;

+                      lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                        (local_190,&PKEY_FileName,local_178);

+                      if (-1 < lVar9) {

+                        bVar8 = false;

+                        wil::details::

+                        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        ::

+                        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                    *)&local_118);

+                        wil::details::

+                        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        ::

+                        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                    *)&local_c8);

+                        wil::details::

+                        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        ::

+                        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                    *)&local_d0);

+                        goto LAB_30;

+                      }

+                      uVar10 = 0xbe6;

+                    }

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar10,

+                               "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9)

+                    ;

+                    wil::details::

+                    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ::

+                    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                *)&local_118);

+                  }

+                  wil::details::

+                  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ::

+                  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              *)&local_c8);

+                }

+                else {

+                  local_178[0] = 0x1f;

+                  local_170 = local_d0;

+                  lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                    (local_190,&PKEY_ItemTypeText,local_178);

+                  if (-1 < lVar9) goto LAB_29;

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,0xbdd,

+                             "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+                }

+                puVar17 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                           *)&local_d0;

+                goto LAB_31;

+              }

+              uVar10 = 0xbd8;

+            }

+            goto LAB_28;

+          }

+LAB_30:

+          local_c0 = (ushort *)0x0;

+          ppuVar15 = wil::

+                     unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                            *)&local_c0);

+          local_148.fmtid._0_8_ =

+               (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                *)0x405d49e6e4f10a3c;

+          local_148.fmtid.Data4[0] = 0x82;

+          local_148.fmtid.Data4[1] = 0x88;

+          local_148.fmtid.Data4[2] = 0xa2;

+          local_148.fmtid.Data4[3] = ';';

+          local_148.fmtid.Data4[4] = 0xd4;

+          local_148.fmtid.Data4[5] = 0xee;

+          local_148.fmtid.Data4[6] = 0xaa;

+          local_148.fmtid.Data4[7] = 'l';

+          local_148.pid = 100;

+          p_Var21 = &local_148;

+          lVar9 = wil::PropertyStoreHelperBase<IPropertyStore>::GetAsString<_tagpropertykey>

+                            ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,p_Var21,ppuVar15)

+          ;

+          RVar19 = (ReportingKind)p_Var21;

+          if (lVar9 < 0) {

+LAB_32:

+            bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56314744>::

+                    __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_56314744> *)

+                                        &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_56314744>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_56314744>::GetImpl(void)'

+                                         ::__l2::impl,RVar19);

+            if (bVar6) {

+              local_a0 = 0;

+              ppuVar15 = wil::

+                         unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                         ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                *)&local_a0);

+              local_148.fmtid._0_8_ = &DAT_10;

+              local_148.fmtid.Data4[0] = 0xa9;

+              local_148.fmtid.Data4[1] = 0xe7;

+              local_148.fmtid.Data4[2] = 0xea;

+              local_148.fmtid.Data4[3] = '\"';

+              local_148.fmtid.Data4[4] = 0x83;

+              local_148.fmtid.Data4[5] = ' ';

+              local_148.fmtid.Data4[6] = 0x94;

+              local_148.fmtid.Data4[7] = 0xb8;

+              local_148.pid = 0x77;

+              lVar9 = wil::PropertyStoreHelperBase<IPropertyStore>::GetAsString<_tagpropertykey>

+                                ((PropertyStoreHelperBase<IPropertyStore> *)&local_190,&local_148,

+                                 ppuVar15);

+              if (-1 < lVar9) {

+                ppv = this + 0x80;

+                if (*(LPVOID *)ppv == (LPVOID)0x0) {

+                  *(LPVOID *)ppv = (LPVOID)0x0;

+                  ppszDisplay = &_GUID_692d40a4_efa1_4089_88f8_15fd6f5f8b64;

+                  lVar9 = CoCreateInstance((IID *)&_GUID_f324e4f9_8496_40b2_a1ff_9617c1c9affe,

+                                           (LPUNKNOWN)0x0,1,

+                                           (IID *)&_GUID_692d40a4_efa1_4089_88f8_15fd6f5f8b64,

+                                           (LPVOID *)ppv);

+                  if (lVar9 < 0) {

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,0xc04,

+                               "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9)

+                    ;

+                    wil::details::

+                    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ::

+                    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                                *)&local_a0);

+                    goto LAB_33;

+                  }

+                }

+                local_a8 = (longlong *)0x0;

+                iVar13 = (**(code **)(**(longlong **)ppv + 0x18))(*(longlong **)ppv,local_a0);

+                plVar5 = local_a8;

+                if (-1 < iVar13) {

+                  local_d8.dwLowDateTime = 0;

+                  local_d8.dwHighDateTime = 0;

+                  pcVar1 = *(code **)(*local_a8 + 0x38);

+                  ppuVar15 = wil::

+                             unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                             ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                                    *)&local_d8);

+                  iVar13 = (*pcVar1)(plVar5,ppuVar15);

+                  if ((-1 < iVar13) && (local_d8 != (_FILETIME)0x0)) {

+                    local_f0 = (_ITEMIDLIST_ABSOLUTE **)CONCAT62(local_f0._2_6_,0x1f);

+                    local_e8 = local_d8;

+                    uVar10 = (**(code **)(*(longlong *)local_190 + 0x30))

+                                       (local_190,&PKEY_WebAccountID);

+                    if ((int)uVar10 < 0) {

+                      ppszDisplay = (GUID *)(ulonglong)uVar10;

+                      wil::details::in1diag3::_Log_Hr

+                                (unaff_retaddr,0xc0e,

+                                 "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",

+                                 uVar10);

+                    }

+                  }

+                  wil::details::

+                  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ::

+                  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                              *)&local_d8);

+                }

+                ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                          ((CComPtrBase<IKnownFolderManager> *)&local_a8);

+              }

+              wil::details::

+              unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ::

+              ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                          *)&local_a0);

+            }

+            wil::details::

+            unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ::

+            ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        *)&local_c0);

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                      ((ComPtr<IQuerySource> *)&local_128);

+            bVar6 = bVar8;

+            goto LAB_26;

+          }

+          local_80 = &CFileExtension::_vftable_;

+          local_78 = 0;

+          local_70 = 0;

+          uStack_68 = 0;

+          local_60 = 0;

+          local_5c = 0xffffffff;

+          local_58 = 0;

+          local_50 = 0;

+          lVar9 = CFileExtension::SetExtensionOrProgId((CFileExtension *)&local_80,local_c0);

+          if (-1 < lVar9) {

+            local_178[0] = 0;

+            ptVar22 = (tagPROPVARIANT *)local_178;

+            lVar9 = CFileExtension::GetKindsAsPropvariant((CFileExtension *)&local_80,ptVar22);

+            RVar19 = (ReportingKind)ptVar22;

+            if (-1 < lVar9) {

+              RVar19 = 0x807254d0;

+              lVar9 = (**(code **)(*(longlong *)local_190 + 0x30))();

+              if (lVar9 < 0) {

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,0xbf6,

+                           "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+                PropVariantClear((PROPVARIANT *)local_178);

+                goto LAB_34;

+              }

+            }

+            PropVariantClear((PROPVARIANT *)local_178);

+            CFileExtension::~CFileExtension((CFileExtension *)&local_80);

+            goto LAB_32;

+          }

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0xbf1,

+                     "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+LAB_34:

+          CFileExtension::~CFileExtension((CFileExtension *)&local_80);

+LAB_33:

+          puVar17 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                     *)&local_c0;

+LAB_31:

+          wil::details::

+          unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    (puVar17);

+        }

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_128);

+      }

+      else {

+        lVar9 = PopulateShellItemPropertyStoreFromGraphRecentItemNamedPropertyStore

+                          (this,(IPropertyStore *)local_190,local_158[0]);

+        if (-1 < lVar9) goto LAB_26;

+        uVar10 = 0xc18;

+LAB_27:

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,uVar10,

+                   "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar9);

+      }

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)local_158);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_188);

+    }

+  }

+  wistd::

+  unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+  ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+           *)&local_198,(tagSERIALIZEDPROPSTORAGE *)0x0);

+LAB_0:

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_190);

+  return lVar9;

+}

+
```

## `StateRepoVerbsCache::Initialize`  (modified)

```diff
--- StateRepoVerbsCache::Initialize
+++ StateRepoVerbsCache::Initialize
@@ -1,2 +1,49 @@
-Failed to decompile windows.storage.dll - .ProgramDB StateRepoVerbsCache::Initialize : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: long __cdecl StateRepoVerbsCache::Initialize(bool * __ptr64) __ptr64 */

+

+long __thiscall StateRepoVerbsCache::Initialize(StateRepoVerbsCache *this,bool *param_1)

+

+{

+  StateRepoVerbsCache *SRWLock;

+  long lVar1;

+  unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+  *this_00;

+  void *unaff_retaddr;

+  HANDLE local_18;

+  StateRepoVerbsCache *local_10;

+  

+  SRWLock = this + 0x38;

+  AcquireSRWLockExclusive((PSRWLOCK)SRWLock);

+  this_00 = (unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+             *)(this + 0x40);

+  local_10 = SRWLock;

+  if (*(longlong *)this_00 == 0) {

+    local_18 = CreateEventExW((LPSECURITY_ATTRIBUTES)0x0,(LPCWSTR)0x0,1,0x1f0003);

+    if (this_00 !=

+        (unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+         *)&local_18) {

+      wil::details::

+      unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+      ::reset(this_00,local_18);

+      local_18 = (HANDLE)0x0;

+    }

+    wil::details::

+    unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                *)&local_18);

+    if (*(longlong *)this_00 == 0) {

+      lVar1 = wil::details::in1diag3::Return_GetLastError

+                        (unaff_retaddr,0x20b,

+                         "onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp");

+      CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_10);

+      return lVar1;

+    }

+  }

+  if (SRWLock != (StateRepoVerbsCache *)0x0) {

+    ReleaseSRWLockExclusive((PSRWLOCK)SRWLock);

+  }

+  return 0;

+}

+
```

## `CAssocList::_CreateElement`  (modified)

```diff
--- CAssocList::_CreateElement
+++ CAssocList::_CreateElement
@@ -1,2 +1,118 @@
-Failed to decompile windows.storage.dll - .ProgramDB CAssocList::_CreateElement : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: long __cdecl CAssocList::_CreateElement(struct ASSOCIATIONELEMENT const &

+   __ptr64,unsigned long,struct IAssociationElement * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CAssocList::_CreateElement

+          (CAssocList *this,ASSOCIATIONELEMENT *param_1,ulong param_2,IAssociationElement **param_3)

+

+{

+  long lVar1;

+  int iVar2;

+  undefined *puVar3;

+  _GUID *p_Var4;

+  wchar_t *pwVar5;

+  

+  *param_3 = (IAssociationElement *)0x0;

+  iVar2 = *(int *)param_1;

+  if (iVar2 < 7) {

+    if (iVar2 != 6) {

+      if (iVar2 == 0) {

+        if (*(longlong *)(param_1 + 8) == 0) {

+          return -0x7ff8fb70;

+        }

+        puVar3 = &CLSID_AssocSystemElement;

+      }

+      else if (iVar2 == 1) {

+        if (*(longlong *)(param_1 + 8) == 0) {

+          return -0x7ff8fb70;

+        }

+        puVar3 = &CLSID_AssocProgidElement;

+      }

+      else {

+        if (iVar2 == 2) {

+          pwVar5 = *(wchar_t **)(param_1 + 0x10);

+          if (pwVar5 == (wchar_t *)0x0) {

+            return -0x7ff8fb70;

+          }

+          p_Var4 = (_GUID *)&CLSID_AssocProgidElement;

+          goto LAB_0;

+        }

+        if (iVar2 == 3) {

+          if (*(longlong *)(param_1 + 8) == 0) {

+            return -0x7ff8fb70;

+          }

+          puVar3 = &CLSID_AssocClsidElement;

+        }

+        else {

+          if (iVar2 == 4) {

+            pwVar5 = *(wchar_t **)(param_1 + 0x10);

+            if (pwVar5 == (wchar_t *)0x0) {

+              return -0x7ff8fb70;

+            }

+            p_Var4 = (_GUID *)&CLSID_AssocClsidElement;

+            goto LAB_0;

+          }

+          if (iVar2 != 5) {

+            return -0x7fff0001;

+          }

+          if (*(longlong *)(param_1 + 8) == 0) {

+            return -0x7ff8fb70;

+          }

+          puVar3 = &CLSID_AssocApplicationElement;

+        }

+      }

+      lVar1 = AssocElemCreateForKey2(puVar3);

+      return lVar1;

+    }

+    pwVar5 = *(wchar_t **)(param_1 + 0x10);

+    if (pwVar5 == (wchar_t *)0x0) {

+      return -0x7ff8fb70;

+    }

+    p_Var4 = (_GUID *)&CLSID_AssocApplicationElement;

+  }

+  else if (iVar2 == 7) {

+    pwVar5 = *(wchar_t **)(param_1 + 0x10);

+    if (pwVar5 == (wchar_t *)0x0) {

+      return -0x7ff8fb70;

+    }

+    p_Var4 = (_GUID *)&CLSID_AssocSystemElement;

+  }

+  else if (iVar2 == 8) {

+    pwVar5 = L"Folder";

+    p_Var4 = (_GUID *)&CLSID_AssocFolderElement;

+  }

+  else if (iVar2 == 9) {

+    pwVar5 = L"*";

+    p_Var4 = (_GUID *)&CLSID_AssocStarElement;

+  }

+  else if (iVar2 == 10) {

+    if (*(LPCWSTR *)(param_1 + 0x10) == (LPCWSTR)0x0) {

+      return -0x7ff8fb70;

+    }

+    iVar2 = CompareStringOrdinal(*(LPCWSTR *)(param_1 + 0x10),-1,L"AllSyncRootObjects",-1,1);

+    pwVar5 = *(wchar_t **)(param_1 + 0x10);

+    if (iVar2 == 2) {

+      p_Var4 = (_GUID *)&CLSID_AssocSyncRootShellElement;

+    }

+    else {

+      p_Var4 = (_GUID *)&CLSID_AssocFixedProgidElement;

+    }

+  }

+  else {

+    if (iVar2 != 0xb) {

+      return -0x7fff0001;

+    }

+    pwVar5 = *(wchar_t **)(param_1 + 0x10);

+    if (pwVar5 == (wchar_t *)0x0) {

+      return -0x7ff8fb70;

+    }

+    p_Var4 = (_GUID *)&CLSID_AssocProtocolElement;

+  }

+LAB_0:

+  lVar1 = AssocElemCreateForClass2

+                    (p_Var4,(ushort *)pwVar5,param_2,

+                     (_GUID *)&_GUID_d8f6ad5b_b44f_4bcc_88fd_eb3473db7502,param_3);

+  return lVar1;

+}

+
```

## ``wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$0`  (modified)

```diff
--- `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$0
+++ `UpdateGrimRecommendations'::__l1::catch$74
@@ -1,2 +1,16 @@
-Failed to decompile windows.storage.dll - .ProgramDB `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$0 : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+undefined1

+`CXMLPropStoreSaxParser::_AddResourceSchemaToCollection'::__l1::catch_74

+          (undefined8 param_1,undefined2 param_2)

+

+{

+  char in_AL;

+  undefined1 uVar1;

+  undefined7 in_register_00000001;

+  

+  *(char *)CONCAT71(in_register_00000001,in_AL) =

+       *(char *)CONCAT71(in_register_00000001,in_AL) + in_AL;

+  uVar1 = in(param_2);

+  return uVar1;

+}

+
```

## ``wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$6`  (modified)

```diff
--- `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$6
+++ `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$6
@@ -1,2 +1,19 @@
-Failed to decompile windows.storage.dll - .ProgramDB `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$6 : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+bool `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch_6

+               (undefined8 param_1,longlong param_2)

+

+{

+  ResultException *pRVar1;

+  bool bVar2;

+  

+  pRVar1 = *(ResultException **)(param_2 + 0x50);

+  bVar2 = ((byte)pRVar1[0x1c] & 8) == 0;

+  if (bVar2) {

+    **(undefined1 **)(param_2 + 0xa0) = 1;

+    wil::details::MaybeGetExceptionString

+              (pRVar1,*(ushort **)(param_2 + 0x90),*(__uint64 *)(param_2 + 0x98));

+    *(undefined4 *)(param_2 + 0xa8) = *(undefined4 *)(pRVar1 + 0x20);

+  }

+  return bVar2;

+}

+
```

## `CFolderThumbnail::_GetThumbnailPathFromFolderJPG`  (modified)

```diff
--- CFolderThumbnail::_GetThumbnailPathFromFolderJPG
+++ CFolderThumbnail::_GetThumbnailPathFromFolderJPG
@@ -1,2 +1,73 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFolderThumbnail::_GetThumbnailPathFromFolderJPG : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CFolderThumbnail::_GetThumbnailPathFromFolderJPG(unsigned short const *

+   __ptr64,unsigned short * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CFolderThumbnail::_GetThumbnailPathFromFolderJPG

+          (CFolderThumbnail *this,ushort *param_1,ushort **param_2)

+

+{

+  ushort *puVar1;

+  long lVar2;

+  int iVar3;

+  long lVar4;

+  ushort **ppuVar5;

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+  *this_00;

+  ulong uVar6;

+  undefined **ppuVar7;

+  uint uVar8;

+  undefined1 auStack_68 [32];

+  uint local_48 [2];

+  ushort *local_40;

+  ushort *local_38;

+  ulonglong local_30;

+  

+  local_30 = __security_cookie ^ (ulonglong)auStack_68;

+  lVar4 = -0x7fffbffb;

+  *param_2 = (ushort *)0x0;

+  local_38 = (ushort *)0x0;

+  uVar8 = 0;

+  ppuVar7 = &PTR_u_folder_jpg_180816db8;

+  do {

+    lVar2 = CRunnableTask::ShouldContinue((CRunnableTask *)this);

+    if (lVar2 < 0) break;

+    if (-1 < lVar4) goto LAB_0;

+    local_40 = (ushort *)0x0;

+    ppuVar5 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_40);

+    iVar3 = PathAllocCombine(param_1,*ppuVar7,1,ppuVar5);

+    if (-1 < iVar3) {

+      local_48[0] = 0;

+      uVar6 = (ulong)local_48;

+      iVar3 = PathFileExistsAndAttributesW(local_40);

+      if ((iVar3 != 0) && ((local_48[0] & 0x10) == 0)) {

+        this_00 = (unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_38;

+        ppuVar5 = wil::

+                  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                  ::put(this_00);

+        lVar4 = _AllocString<CTCoAllocPolicy>(this_00,uVar6,local_40,ppuVar5);

+      }

+    }

+    if (local_40 != (ushort *)0x0) {

+      LocalFree(local_40);

+    }

+    uVar8 = uVar8 + 1;

+    ppuVar7 = ppuVar7 + 1;

+  } while (uVar8 < 2);

+  if (-1 < lVar4) {

+LAB_0:

+    puVar1 = local_38;

+    local_38 = (ushort *)0x0;

+    *param_2 = puVar1;

+  }

+  if (local_38 != (ushort *)0x0) {

+    CoTaskMemFree(local_38);

+  }

+  return lVar4;

+}

+
```

## `tip2::tip_test<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>::start_and_watch_errors`  (modified)

```diff
--- tip2::tip_test<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>::start_and_watch_errors
+++ tip2::tip_test<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>::start_and_watch_errors
@@ -1,2 +1,73 @@
-Failed to decompile windows.storage.dll - .ProgramDB tip2::tip_test<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>::start_and_watch_errors : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: class tip2::test_watcher<class tip2::details::merged_data<struct

+   GraphFilesTip::_tip_HomeOperationSinkTest_attributes,class tip2::test_data_basic> > __cdecl

+   tip2::tip_test<class tip2::details::merged_data<struct

+   GraphFilesTip::_tip_HomeOperationSinkTest_attributes,class tip2::test_data_basic>

+   >::start_and_watch_errors(void) __ptr64 */

+

+void __thiscall

+tip2::

+tip_test<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+::start_and_watch_errors

+          (tip_test<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+           *this)

+

+{

+  undefined8 uVar1;

+  longlong lVar2;

+  bool bVar3;

+  undefined8 *puVar4;

+  IFailureCallback *in_RDX;

+  merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic> *pmVar5;

+  com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+  local_res8 [8];

+  _GUID local_18;

+  

+  pmVar5 = *(merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic> **)this

+  ;

+  if (pmVar5 != (merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic> *)

+                0x0) {

+    bVar3 = details::shared_data<0,0,0>::has_ever_started((shared_data<0,0,0> *)(pmVar5 + 8));

+    if (bVar3) {

+      *(undefined8 *)this = 0;

+      details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>::

+      Release(pmVar5);

+    }

+  }

+  if (*(longlong *)this == 0) {

+    puVar4 = (undefined8 *)

+             details::

+             tip_make_shared_nothrow<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+                       ();

+    uVar1 = *puVar4;

+    *puVar4 = 0;

+    pmVar5 = *(merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic> **)

+              this;

+    *(undefined8 *)this = uVar1;

+    if (pmVar5 != (merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic> *

+                  )0x0) {

+      details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>::

+      Release(pmVar5);

+    }

+    wil::

+    com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+    ::

+    ~com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+              (local_res8);

+  }

+  details::shared_data<0,0,1>::start((shared_data<0,0,1> *)(*(longlong *)this + 8),&local_18);

+  *(undefined ***)in_RDX =

+       &test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+        ::_vftable_;

+  wil::details::ThreadFailureCallbackHolder::ThreadFailureCallbackHolder

+            ((ThreadFailureCallbackHolder *)(in_RDX + 8),in_RDX,(CallContextInfo *)0x0,true);

+  lVar2 = *(longlong *)this;

+  *(longlong *)(in_RDX + 0x38) = lVar2;

+  if (lVar2 != 0) {

+    LOCK();

+    *(int *)(lVar2 + 0x150) = *(int *)(lVar2 + 0x150) + 1;

+    UNLOCK();

+  }

+  return;

+}

+
```

## `tip2::details::shared_data<0,0,1>::begin_update`  (modified)

```diff
--- tip2::details::shared_data<0,0,1>::begin_update
+++ tip2::details::shared_data<0,0,0>::end_update
@@ -1,11 +1,2 @@
-

-/* private: bool __cdecl tip2::details::shared_data<0,0,1>::begin_update(void) __ptr64 */

-

-bool __thiscall tip2::details::shared_data<0,0,1>::begin_update(shared_data<0,0,1> *this)

-

-{

-  EnterCriticalSection((LPCRITICAL_SECTION)(this + 0xc0));

-  *(int *)(this + 0xe8) = *(int *)(this + 0xe8) + 1;

-  return (bool)(~(byte)((uint)*(undefined4 *)(this + 0x40) >> 8) & 1);

-}

-

+Failed to decompile windows.storage.dll - .ProgramDB tip2::details::shared_data<0,0,0>::end_update : Error: Decompile error: 
+Marshaling error: Did not see expected closing element
```

## `StateRepoVerbsCache::RebuildCacheWorker`  (modified)

```diff
--- StateRepoVerbsCache::RebuildCacheWorker
+++ winrt::Windows::Internal::implementation::FileExplorerAppExtension::GetVerbs
@@ -1,171 +1,138 @@
 

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

-/* private: long __cdecl StateRepoVerbsCache::RebuildCacheWorker(void) __ptr64 */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: struct winrt::Windows::Foundation::Collections::IVectorView<struct

+   winrt::Windows::Foundation::Collections::ValueSet> __cdecl

+   winrt::Windows::Internal::implementation::FileExplorerAppExtension::GetVerbs(enum

+   winrt::Windows::Internal::FileExplorerAppExtensionFlags const & __ptr64) __ptr64 */

 

-long __thiscall StateRepoVerbsCache::RebuildCacheWorker(StateRepoVerbsCache *this)

+FileExplorerAppExtensionFlags * __thiscall

+winrt::Windows::Internal::implementation::FileExplorerAppExtension::GetVerbs

+          (FileExplorerAppExtension *this,FileExplorerAppExtensionFlags *param_1)

 

 {

-  ApplicationExtension *pAVar1;

-  longlong lVar2;

-  bool bVar3;

-  uint uVar4;

-  uint uVar5;

-  AsyncStatus AVar6;

-  undefined4 uVar7;

-  int iVar8;

-  com_ptr<struct_winrt::impl::IRestrictedErrorInfo> *pcVar9;

-  hstring *phVar10;

-  ulonglong uVar11;

-  ValueSet *pVVar12;

-  allocator<winrt::Windows::Foundation::Collections::ValueSet> *paVar13;

-  char *pcVar14;

-  ApplicationExtension *pAVar15;

-  void *unaff_retaddr;

+  ExplorerCommandVerb *pEVar1;

+  ValueSet *pVVar2;

+  ExplorerCommandVerb *pEVar3;

+  undefined4 uVar4;

+  StateRepoVerbsCache *this_00;

+  ushort *puVar5;

+  IInspectable *pIVar6;

+  undefined8 uVar7;

+  undefined4 *puVar8;

+  FileExplorerAppExtensionFlags *pFVar9;

+  char *in_R8;

+  char *pcVar10;

+  FileExplorerAppExtension *pFVar11;

+  allocator<StateRepoHelpers::ExplorerCommandVerb> *paVar12;

+  ExplorerCommandVerb *pEVar13;

   undefined1 auStack_e8 [32];

-  longlong *local_c8;

-  ApplicationExtension *local_c0;

-  User local_b8 [8];

-  undefined8 local_b0;

-  _RTL_SRWLOCK local_a8 [2];

-  ApplicationExtension *local_98;

-  undefined4 uStack_90;

-  undefined4 uStack_8c;

-  StateRepoVerbsCache *local_88;

-  StateRepoVerbsCache *local_80;

-  undefined1 local_78;

-  hstring local_70 [32];

-  undefined1 local_50 [8];

-  undefined8 local_48;

-  undefined8 uStack_40;

-  undefined8 uStack_38;

-  undefined1 *local_28;

-  ulonglong local_20;

+  undefined4 local_c8;

+  hresult local_b8 [8];

+  ValueSet *local_b0;

+  ValueSet *pVStack_a8;

+  longlong local_a0;

+  longlong local_90;

+  FileExplorerAppExtensionFlags *local_88 [2];

+  hstring local_78 [32];

+  undefined8 local_58;

+  undefined8 local_50;

+  ExplorerCommandVerb *local_48;

+  ExplorerCommandVerb *local_40;

+  longlong local_38;

+  ulonglong local_30;

   

-  local_20 = __security_cookie ^ (ulonglong)auStack_e8;

-  local_88 = this;

-  wil::AcquireSRWLockExclusive(local_a8);

-  wil::details::ResetEvent(*(void **)(this + 0x40));

-  local_78 = 1;

-  local_80 = this;

-  ClearCache(this);

-  local_c8 = (longlong *)0x0;

-  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp>::

-          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp> *)

-                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ContextMenuAppsExp>::GetImpl(void)'

-                               ::__l2::impl);

-  if (bVar3) {

-    pcVar9 = (com_ptr<struct_winrt::impl::IRestrictedErrorInfo> *)GetShareTargetExtensions(this);

-    winrt::com_ptr<winrt::impl::IRestrictedErrorInfo>::operator=

-              ((com_ptr<winrt::impl::IRestrictedErrorInfo> *)&local_c8,pcVar9);

-    winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

-              ((ICoreApplicationPrivate *)&local_b0);

+  local_30 = __security_cookie ^ (ulonglong)auStack_e8;

+  pFVar9 = param_1;

+  pcVar10 = in_R8;

+  local_88[0] = param_1;

+  this_00 = StateRepoVerbsCache::GetInstance();

+  if (this_00 != (StateRepoVerbsCache *)0x0) {

+    uVar4 = *(undefined4 *)in_R8;

+    puVar5 = hstring::c_str((hstring *)(this + 0x18));

+    pFVar11 = this + 0x38;

+    if (7 < *(ulonglong *)(this + 0x50)) {

+      pFVar11 = *(FileExplorerAppExtension **)pFVar11;

+    }

+    local_c8 = uVar4;

+    StateRepoVerbsCache::GetContextMenuVerbsForAppId

+              (this_00,(ushort *)&local_48,(ushort *)pFVar11,(FileExplorerAppExtensionFlags)puVar5);

+    local_b0 = (ValueSet *)0x0;

+    pVStack_a8 = (ValueSet *)0x0;

+    local_a0 = 0;

+    single_threaded_vector<winrt::Windows::Foundation::Collections::ValueSet,std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>

+              ((vector<winrt::Windows::Foundation::Collections::ValueSet,std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>

+                *)local_88);

+    pVVar2 = local_b0;

+    if (local_b0 != (ValueSet *)0x0) {

+      std::_Destroy_range<std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>

+                (local_b0,pVStack_a8,

+                 (allocator<winrt::Windows::Foundation::Collections::ValueSet> *)pFVar11);

+      std::_Deallocate<16,0>(pVVar2,local_a0 - (longlong)pVVar2 & 0xfffffffffffffff8);

+    }

+    pEVar3 = local_40;

+    pFVar9 = local_88[0];

+    if (local_48 != local_40) {

+      pEVar13 = local_48 + 8;

+      do {

+        Foundation::Collections::ValueSet::ValueSet((ValueSet *)&local_50);

+        Foundation::PropertyValue::CreateGuid((guid *)&local_90);

+        param::hstring::hstring((hstring *)&local_b0,(ushort *)L"Verb");

+        winrt::impl::

+        consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+        ::Insert((consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+                  *)&local_50,(hstring *)&local_b0,(IInspectable *)&local_90);

+        if (local_90 != 0) {

+          com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>::

+          unconditional_release_ref

+                    ((com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>

+                      *)&local_90);

+        }

+        param::hstring::hstring((hstring *)&local_b0,*(ushort **)pEVar13);

+        pIVar6 = (IInspectable *)box_value((hstring *)&local_58);

+        param::hstring::hstring(local_78,(ushort *)L"Id");

+        winrt::impl::

+        consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+        ::Insert((consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+                  *)&local_50,local_78,pIVar6);

+        if (local_58 != 0) {

+          com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>::

+          unconditional_release_ref

+                    ((com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>

+                      *)&local_58);

+        }

+        local_b0 = (ValueSet *)((ulonglong)local_b0 & 0xffffffff00000000);

+        pVStack_a8 = (ValueSet *)0x0;

+        local_a0 = 0;

+        uVar4 = (**(code **)(*(undefined8 *)pFVar9 + 0x68))(pFVar9,local_50);

+        check_hresult(local_b8,uVar4,&local_b0);

+        ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+                  ((ICoreApplicationPrivate *)&local_50);

+        pEVar1 = pEVar13 + 0x28;

+        pEVar13 = pEVar13 + 0x30;

+      } while (pEVar1 != pEVar3);

+    }

+    local_58 = 0;

+    local_b0 = (ValueSet *)((ulonglong)local_b0 & 0xffffffff00000000);

+    pVStack_a8 = (ValueSet *)0x0;

+    local_a0 = 0;

+    uVar4 = (**(code **)(*(undefined8 *)pFVar9 + 0x40))(pFVar9,&local_58);

+    paVar12 = (allocator<StateRepoHelpers::ExplorerCommandVerb> *)&local_b0;

+    check_hresult(local_b8,uVar4);

+    *(undefined8 *)param_1 = local_58;

+    ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+              ((ICoreApplicationPrivate *)local_88);

+    if (local_48 != (ExplorerCommandVerb *)0x0) {

+      std::_Destroy_range<std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+                (local_48,local_40,paVar12);

+      std::_Deallocate<16,0>(local_48,(local_38 - (longlong)local_48 >> 4) << 4);

+    }

+    return param_1;

   }

-  winrt::param::hstring::hstring(local_70,(ushort *)L"windows.fileExplorerContextMenus");

-  local_b0 = 0;

-  phVar10 = (hstring *)&local_b0;

-  winrt::Windows::Internal::StateRepository::ApplicationExtension::FindByUserAndCategory

-            (local_b8,phVar10);

-  uVar5 = (uint)phVar10;

-  winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

-            ((ICoreApplicationPrivate *)&local_b0);

-  uVar4 = winrt::impl::

-          consume_Windows_Foundation_Collections_IVector<winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>,winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>

-          ::Size((consume_Windows_Foundation_Collections_IVector<winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>,winrt::Windows::Storage::Provider::StorageProviderKnownFolderEntry>

-                  *)local_b8);

-  if (uVar4 != 0) {

-    winrt::com_array<winrt::Windows::Internal::StateRepository::ApplicationExtension>::

-    com_array<winrt::Windows::Internal::StateRepository::ApplicationExtension>

-              ((com_array<winrt::Windows::Internal::StateRepository::ApplicationExtension> *)

-               &local_48,uVar4);

-    uStack_90 = (undefined4)uStack_40;

-    uStack_8c = uStack_40._4_4_;

-    paVar13 = (allocator<winrt::Windows::Foundation::Collections::ValueSet> *)&local_98;

-    uVar5 = winrt::impl::

-            consume_Windows_Foundation_Collections_IVectorView<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Internal::StateRepository::ApplicationExtension>,winrt::Windows::Internal::StateRepository::ApplicationExtension>

-            ::GetMany((consume_Windows_Foundation_Collections_IVectorView<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Internal::StateRepository::ApplicationExtension>,winrt::Windows::Internal::StateRepository::ApplicationExtension>

-                       *)local_b8);

-    if (uVar4 != uVar5) {

-      pcVar14 = "onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp";

-      wil::details::in1diag3::Return_Hr

-                (unaff_retaddr,0x35e,"onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp",

-                 -0x7fff0001);

-      if (local_48 != (ApplicationExtension *)0x0) {

-        std::_Destroy_range<std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>

-                  ((ValueSet *)local_48,(ValueSet *)(local_48 + (uStack_40 & 0xffffffff) * 8),

-                   (allocator<winrt::Windows::Foundation::Collections::ValueSet> *)pcVar14);

-        CoTaskMemFree(local_48);

-        local_48 = (ApplicationExtension *)0x0;

-        uStack_40 = (ulonglong)uStack_40._4_4_ << 0x20;

-      }

-      winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

-                ((ICoreApplicationPrivate *)local_b8);

-      winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

-                ((ICoreApplicationPrivate *)&local_c8);

-      wil::details::SetEvent(*(void **)(this + 0x40));

-      CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_a8);

-      return -0x7fff0001;

-    }

-    uVar11 = uStack_40 & 0xffffffff;

-    pAVar1 = local_48 + uVar11 * 8;

-    local_98 = pAVar1;

-    for (pAVar15 = local_48; uVar5 = (uint)uVar11, local_c0 = pAVar15, pAVar15 != pAVar1;

-        pAVar15 = pAVar15 + 8) {

-      UpdateVerbsForAppExtension(this,pAVar15);

-      uVar11 = uStack_40 & 0xffffffff;

-    }

-    if (local_48 != (ApplicationExtension *)0x0) {

-      pVVar12 = (ValueSet *)(local_48 + uVar11 * 8);

-      std::_Destroy_range<std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>

-                ((ValueSet *)local_48,pVVar12,paVar13);

-      uVar5 = (uint)pVVar12;

-      CoTaskMemFree(local_48);

-    }

-  }

-  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp>::

-          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp> *)

-                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_ContextMenuAppsExp>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_ContextMenuAppsExp>::GetImpl(void)'

-                               ::__l2::impl);

-  if (bVar3) {

-    AVar6 = winrt::impl::

-            consume_Windows_Foundation_IAsyncInfo<winrt::Windows::Foundation::IAsyncAction>::Status

-                      ((consume_Windows_Foundation_IAsyncInfo<winrt::Windows::Foundation::IAsyncAction>

-                        *)&local_c8);

-    if (AVar6 == 0) {

-      AVar6 = winrt::impl::wait_for_completed<winrt::Windows::Foundation::IAsyncAction>

-                        ((IAsyncAction *)&local_c8,uVar5);

-    }

-    winrt::impl::check_status_canceled(AVar6);

-    local_48 = (ApplicationExtension *)((ulonglong)local_48._4_4_ << 0x20);

-    uStack_40 = 0;

-    uStack_38 = 0;

-    uVar7 = (**(code **)(*local_c8 + 0x40))();

-    winrt::check_hresult(&local_c0,uVar7,&local_48);

-  }

-  local_50[0] = 0;

-  local_28 = local_50;

-  iVar8 = 1;

-  if (*(longlong *)(this + 0x30) != 0) {

-    for (uVar11 = 0; (iVar8 != 0 && ((uint)uVar11 < *(uint *)(this + 0x24)));

-        uVar11 = (ulonglong)((uint)uVar11 + 1)) {

-      lVar2 = *(longlong *)(this + 0x30);

-      if (*(int *)(lVar2 + uVar11 * 0x18) == 1) {

-        iVar8 = CSimpleHashTable<unsigned_short_const*___ptr64,CCoSimpleArray<StateRepoHelpers::ExplorerCommandVerb*___ptr64,4294967294,CSimpleArrayStandardCompareHelper<StateRepoHelpers::ExplorerCommandVerb*___ptr64>_>*___ptr64,CCaseInsensitiveStringHashPolicy,CCaseInsensitiveStringCompare,CDefaultResizePolicy,CDefaultRehashPolicy>

-                ::s_EnumAdaptor<<lambda_cb75e065b28c1e18ce861b5c5d9abdf5>_>

-                          ((<lambda_cb75e065b28c1e18ce861b5c5d9abdf5> *)&local_28,

-                           (ushort **)(lVar2 + (uVar11 * 3 + 1) * 8),

-                           (CCoSimpleArray<StateRepoHelpers::ExplorerCommandVerb*___ptr64,4294967294,CSimpleArrayStandardCompareHelper<StateRepoHelpers::ExplorerCommandVerb*___ptr64>_>

-                            **)(lVar2 + (uVar11 * 3 + 2) * 8));

-      }

-    }

-  }

-  winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

-            ((ICoreApplicationPrivate *)local_b8);

-  winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

-            ((ICoreApplicationPrivate *)&local_c8);

-  wil::details::SetEvent(*(void **)(this + 0x40));

-  CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_a8);

-  return 0;

+  uVar7 = winrt::impl::slim_source_location::current((uint)&local_b0,(char *)pFVar9,pcVar10);

+  puVar8 = (undefined4 *)hresult::hresult(local_b8,-0x7ff8fff2);

+                    /* WARNING: Subroutine does not return */

+  throw_hresult(*puVar8,uVar7);

 }
```

## `CFSFolder::CreateStream`  (modified)

```diff
--- CFSFolder::CreateStream
+++ CFSFolder::CreateStream
@@ -1,2 +1,56 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::CreateStream : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CFSFolder::CreateStream(unsigned short const * __ptr64,unsigned

+   long,unsigned long,unsigned long,struct IStream * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CFSFolder::CreateStream

+          (CFSFolder *this,ushort *param_1,ulong param_2,ulong param_3,ulong param_4,

+          IStream **param_5)

+

+{

+  long lVar1;

+  ushort **ppuVar2;

+  CFSFolder *this_00;

+  uint uVar3;

+  void *unaff_retaddr;

+  undefined1 auStackY_58 [32];

+  ushort *local_28;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStackY_58;

+  *param_5 = (IStream *)0x0;

+  if (param_1 == (ushort *)0x0) {

+    lVar1 = -0x7ffcffa9;

+  }

+  else {

+    local_28 = (ushort *)0x0;

+    ppuVar2 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_28);

+    this_00 = this + -0x50;

+    lVar1 = GetPathForFileAccess(this_00,param_1,ppuVar2);

+    if (lVar1 < 0) {

+      uVar3 = 0x2c6f;

+    }

+    else {

+      lVar1 = _OpenCreateStream(this_00,local_28,param_2,param_5,1);

+      if (-1 < lVar1) {

+        SHChangeNotify(2,5,local_28,(LPCVOID)0x0);

+        if (local_28 != (ushort *)0x0) {

+          LocalFree(local_28);

+        }

+        return 0;

+      }

+      uVar3 = 0x2c71;

+    }

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar3,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar1);

+    if (local_28 != (ushort *)0x0) {

+      LocalFree(local_28);

+    }

+  }

+  return lVar1;

+}

+
```

## `kfapi::CFolderPathResolver::GetPath`  (modified)

```diff
--- kfapi::CFolderPathResolver::GetPath
+++ kfapi::CFolderPathResolver::GetPath
@@ -1,2 +1,526 @@
-Failed to decompile windows.storage.dll - .ProgramDB kfapi::CFolderPathResolver::GetPath : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: static long __cdecl kfapi::CFolderPathResolver::GetPath(struct _GUID const &

+   __ptr64,unsigned long,class kfapi::CFolderDefinitionCache * __ptr64,void * __ptr64,class

+   std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> > * __ptr64) */

+

+long __cdecl

+kfapi::CFolderPathResolver::GetPath

+          (_GUID *param_1,ulong param_2,CFolderDefinitionCache *param_3,void *param_4,

+          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+          *param_5)

+

+{

+  undefined1 auVar1 [16];

+  bool bVar2;

+  CTRefObj<kfapi::CKnownFolderDefinition,CTRefBase_NoModuleLifetimePolicy> *pCVar3;

+  char cVar4;

+  bool bVar5;

+  uint uVar6;

+  BOOL BVar7;

+  KnownFolderRedirectionPolicy KVar8;

+  WinInetStoragePartitioningPolicy WVar9;

+  long lVar10;

+  HANDLE ProcessHandle;

+  undefined **ppuVar11;

+  _GUID *p_Var12;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *pbVar13;

+  ushort *******pppppppuVar14;

+  HKEY__ *pHVar15;

+  HKEY__ *pHVar16;

+  longlong lVar17;

+  HKEY__ *pHVar18;

+  void *pvVar19;

+  char cVar20;

+  bool bVar21;

+  ulong uVar22;

+  undefined4 uVar23;

+  undefined4 uVar24;

+  undefined4 uVar25;

+  void *unaff_retaddr;

+  undefined1 auStackY_158 [32];

+  bool local_128;

+  bool local_127;

+  char local_126;

+  bool local_125;

+  void *local_120;

+  CTRefObj<kfapi::CKnownFolderDefinition,CTRefBase_NoModuleLifetimePolicy> *local_118 [2];

+  HKEY__ *local_108;

+  HKEY__ *local_100;

+  void *local_f8;

+  HKEY__ *local_f0;

+  ulong local_e8;

+  CFolderDefinitionCache *local_e0;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *local_d8;

+  _GUID local_c8;

+  _GUID *local_b8 [2];

+  longlong local_a8;

+  ulonglong local_a0;

+  _GUID local_98;

+  undefined8 local_88;

+  undefined8 local_80;

+  ushort ******local_78;

+  undefined8 uStack_70;

+  undefined8 local_68;

+  ulonglong local_60;

+  ulonglong local_58;

+  

+  local_58 = __security_cookie ^ (ulonglong)auStackY_158;

+  local_d8 = param_5;

+  local_120 = param_4;

+  local_e8 = param_2;

+  local_e0 = param_3;

+  if ((param_2 & 0x600) == 0x200) {

+    uVar6 = 0x34;

+LAB_0:

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar6,

+               "onecoreuap\\shell\\windows.storage\\kfapi\\folderpathresolver.cpp",-0x7ff8ffa9);

+    return -0x7ff8ffa9;

+  }

+  pHVar15 = (HKEY__ *)0x0;

+  uVar6 = param_2 & 0xf0000;

+  if ((uVar6 != 0) && ((uVar6 == 0 || ((uVar6 & uVar6 - 1) != 0)))) {

+    uVar6 = 0x38;

+    goto LAB_0;

+  }

+  local_100 = (HKEY__ *)0x0;

+  local_108 = (HKEY__ *)0x0;

+  local_f0 = (HKEY__ *)0x0;

+  bVar5 = false;

+  local_127 = false;

+  cVar20 = '\0';

+  local_125 = false;

+  local_126 = '\0';

+  bVar21 = false;

+  local_f8 = (void *)0xfffffffffffffffa;

+  if ((longlong)param_4 - 1U < 0xfffffffffffffffe) {

+    local_f8 = param_4;

+  }

+  pHVar18 = pHVar15;

+  if (((param_2 >> 0x10 & 1) != 0) || (param_4 == (void *)0xffffffffffffffff)) goto LAB_1;

+  if (param_4 == (void *)0x0) {

+    ProcessHandle = GetCurrentProcess();

+    BVar7 = OpenProcessToken(ProcessHandle,8,&local_f0);

+    if ((BVar7 != 0) && (param_4 = local_f0, pHVar18 = local_f0, local_f0 != (HKEY__ *)0x0))

+    goto LAB_2;

+  }

+  else {

+LAB_2:

+    IsAppContainerToken(param_4,&local_127);

+    pHVar18 = param_4;

+  }

+  if ((param_2 >> 0x12 & 1) == 0) {

+    if ((param_2 >> 0x11 & 1) != 0) {

+      WVar9 = AppModelPolicy::GetWinInetStoragePartitioningPolicy(local_f8);

+      local_128 = WVar9 == 0x1e0001;

+      local_125 = local_128;

+      goto LAB_3;

+    }

+    if ((param_2 >> 0x13 & 1) == 0) goto LAB_4;

+    local_118[0] = (CTRefObj<kfapi::CKnownFolderDefinition,CTRefBase_NoModuleLifetimePolicy> *)

+                   ((ulonglong)local_118[0] & 0xffffffff00000000);

+    lVar10 = AppModelPolicy_GetPolicy(local_f8,0x28,(AppModelPolicy_PolicyValue *)local_118);

+    if (lVar10 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x239,"OneCore\\Internal\\MinWin\\Priv_Sdk\\Inc\\appmodelpolicy.h",

+                 lVar10);

+    }

+    local_128 = false;

+    bVar21 = (int)local_118[0] == 0x280001;

+  }

+  else {

+    KVar8 = AppModelPolicy::GetKnownFolderRedirectionPolicy(local_f8);

+    local_126 = KVar8 == 0x260001;

+    bVar5 = (bool)local_126;

+LAB_4:

+    local_128 = false;

+    if (bVar5) goto LAB_1;

+LAB_3:

+    bVar21 = false;

+    cVar20 = local_128;

+    if (local_128 != false) goto LAB_1;

+  }

+  cVar20 = local_128;

+  if ((((local_127 == false) && (bVar21 == false)) && (pHVar18 != (HKEY__ *)0x0)) &&

+     (lVar10 = IsShareWithAppContainerEnabledForToken(pHVar18,param_1,&local_128),

+     cVar20 = local_128, lVar10 < 0)) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x7b,

+               "onecoreuap\\shell\\windows.storage\\kfapi\\folderpathresolver.cpp",lVar10);

+    CTSmartObj<void*___ptr64,CAutoHandle_Policy<void*___ptr64>_>::Release

+              ((CTSmartObj<void*___ptr64,CAutoHandle_Policy<void*___ptr64>_> *)&local_f0);

+    CAutoHandle<HKEY__*___ptr64>::~CAutoHandle<HKEY__*___ptr64>

+              ((CAutoHandle<HKEY__*___ptr64> *)&local_108);

+    CAutoHandle<HKEY__*___ptr64>::~CAutoHandle<HKEY__*___ptr64>

+              ((CAutoHandle<HKEY__*___ptr64> *)&local_100);

+    return lVar10;

+  }

+LAB_1:

+  uStack_70 = 0;

+  local_68 = 0;

+  local_60 = 7;

+  local_78 = (ushort ******)0x0;

+  local_c8.Data1 = param_1->Data1;

+  local_c8.Data2 = param_1->Data2;

+  local_c8.Data3 = param_1->Data3;

+  local_c8.Data4 = *&param_1->Data4;

+  bVar5 = true;

+  pHVar16 = pHVar15;

+  do {

+    uVar22 = 0;

+    uVar23._0_2_ = 0;

+    uVar23._2_2_ = 0;

+    uVar24._0_1_ = '\0';

+    uVar24._1_1_ = '\0';

+    uVar24._2_1_ = '\0';

+    uVar24._3_1_ = '\0';

+    uVar25._0_1_ = '\0';

+    uVar25._1_1_ = '\0';

+    uVar25._2_1_ = '\0';

+    uVar25._3_1_ = '\0';

+    local_128 = false;

+    GetRegistryOverride((_GUID *)local_b8,&local_c8);

+    if (local_a8 == 0) {

+      local_118[0] = (CTRefObj<kfapi::CKnownFolderDefinition,CTRefBase_NoModuleLifetimePolicy> *)0x0

+      ;

+      uVar6 = CFolderDefinitionCache::Load(local_e0,&local_c8,local_118);

+      pCVar3 = local_118[0];

+      pvVar19 = local_120;

+      pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+      lVar17 = 0;

+      cVar4 = '\0';

+      if ((int)uVar6 < 0) goto LAB_5;

+      uVar22 = *(ulong *)(local_118[0] + 0x28);

+      uVar23 = *(undefined4 *)(local_118[0] + 0x2c);

+      local_98._0_8_ = *(undefined8 *)(local_118[0] + 0x28);

+      uVar24 = *(undefined4 *)(local_118[0] + 0x30);

+      uVar25 = *(undefined4 *)(local_118[0] + 0x34);

+      local_98.Data4 = *(uchar (*) [8])(local_118[0] + 0x30);

+      bVar2 = false;

+      if (cVar20 == '\0') {

+LAB_6:

+        if ((local_126 != '\0') || (bVar21 != false)) goto LAB_7;

+      }

+      else {

+        ppuVar11 = &PTR_FOLDERID_LocalAppData_18068f590;

+        do {

+          if ((local_c8._0_8_ == *(longlong *)*ppuVar11) &&

+             (local_c8.Data4 == *(uchar (*) [8])((longlong)*ppuVar11 + 8))) {

+            if (((ulonglong)ppuVar11[2] & 2) != 0) goto LAB_7;

+            break;

+          }

+          ppuVar11 = ppuVar11 + 3;

+        } while (ppuVar11 != &PTR_FOLDERID_LocalAppData_18068f608);

+        if (local_125 == false) goto LAB_6;

+LAB_7:

+        bVar2 = true;

+      }

+      if ((((local_e8 >> 9 & 1) != 0) ||

+          ((((local_e8 >> 10 & 1) != 0 && (bVar5)) || (local_127 != false)))) || (bVar2)) {

+        bVar5 = false;

+      }

+      else {

+        bVar5 = true;

+      }

+      if (*(int *)(local_118[0] + 0x10) == 2) {

+        uVar6 = CFixedFolderLoader::GetPath

+                          (&local_c8,local_120,

+                           (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                            *)local_b8);

+        pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+        if (-1 < (int)uVar6) goto LAB_8;

+        wil::details::in1diag3::Log_IfFailedWithExpected

+                  (unaff_retaddr,0xc5,

+                   "onecoreuap\\shell\\windows.storage\\kfapi\\folderpathresolver.cpp",uVar6,1);

+        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                  ((CComPtrBase<IKnownFolderManager> *)local_118);

+        std::

+        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+        ::

+        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                    *)local_b8);

+        break;

+      }

+      if (1 < *(int *)(local_118[0] + 0x10) - 3U) {

+        pHVar15 = (HKEY__ *)0x80004005;

+        cVar4 = local_128;

+        goto LAB_5;

+      }

+      if ((bVar5) ||

+         ((local_127 != false &&

+          (bVar5 = IsAppContainerRedirectableFolder(&local_c8,bVar21), pvVar19 = local_120, !bVar5))

+         )) {

+        pbVar13 = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                   *)local_b8;

+        uVar6 = GetPerSessionFolderPath(&local_c8,pbVar13);

+        pvVar19 = local_120;

+        pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+        if ((int)uVar6 < 0) {

+          if (*(int *)(pCVar3 + 0x10) == 3) {

+            if (local_100 != (HKEY__ *)0x0) {

+LAB_9:

+              uVar6 = CFolderPathRegStorage::GetPath

+                                (&local_c8,local_100,

+                                 (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                                  *)local_b8);

+              pvVar19 = local_120;

+              goto LAB_10;

+            }

+            uVar6 = OpenRegKey((HKEY__ *)0xffffffff80000002,

+                               (ushort *)

+                               L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders"

+                               ,0x20019,&local_100);

+            pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+            pvVar19 = local_120;

+            if (-1 < (int)uVar6) goto LAB_9;

+          }

+          else {

+            pHVar15 = (HKEY__ *)0x0;

+            if (*(int *)(pCVar3 + 0x10) != 4) goto LAB_8;

+            if (pHVar16 == (HKEY__ *)0x0) {

+              uVar6 = CRegistryKeyProvider::OpenUserPathKeyWithBackup

+                                (local_120,(ulong)pbVar13,&local_108);

+              pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+              pHVar16 = local_108;

+              if ((int)uVar6 < 0) goto LAB_11;

+            }

+            uVar6 = CFolderPathRegStorage::GetPath

+                              (&local_c8,pHVar16,

+                               (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                                *)local_b8);

+LAB_10:

+            pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+            if (-1 < (int)uVar6) goto LAB_8;

+          }

+LAB_11:

+          lVar17 = 0;

+          cVar4 = local_128;

+          if ((int)pHVar15 == -0x7ff8fffe) goto LAB_12;

+        }

+        else {

+LAB_8:

+          local_128 = true;

+          cVar4 = local_128;

+          if (*(int *)(pCVar3 + 0x10) - 3U < 2) {

+            local_98.Data4[0] = '\0';

+            local_98.Data4[1] = '\0';

+            local_98.Data4[2] = '\0';

+            local_98.Data4[3] = '\0';

+            local_98.Data4[4] = '\0';

+            local_98.Data4[5] = '\0';

+            local_98.Data4[6] = '\0';

+            local_98.Data4[7] = '\0';

+            local_88 = 0;

+            local_80 = 7;

+            local_98.Data1 = 0;

+            local_98.Data2 = 0;

+            local_98.Data3 = 0;

+            p_Var12 = (_GUID *)local_b8;

+            if (7 < local_a0) {

+              p_Var12 = local_b8[0];

+            }

+            uVar6 = ExpandString((ushort *)p_Var12,pvVar19,

+                                 (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                                  *)&local_98);

+            pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+            std::

+            basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+            ::operator=((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                         *)local_b8,

+                        (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                         *)&local_98);

+            std::

+            pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+            ::

+            ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                      ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                        *)&local_98);

+            cVar4 = local_128;

+          }

+        }

+      }

+      else {

+LAB_12:

+        if (*(longlong *)(pCVar3 + 0x38) == lVar17) {

+          pHVar15 = (HKEY__ *)0x8007000d;

+          cVar4 = local_128;

+        }

+        else {

+          if (bVar21 == false) {

+            if (local_127 != false) {

+              uVar6 = RedirectFolder(&local_c8,pHVar18,

+                                     (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                                      *)local_b8,&local_98,&local_127);

+              pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+              goto LAB_13;

+            }

+            if (local_126 != (char)lVar17) {

+              uVar6 = RedirectFolderToCentennialPackage

+                                (&local_c8,pHVar18,

+                                 (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                                  *)local_b8,&local_98);

+              pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+              if (uVar6 == 0) {

+                local_126 = '\0';

+LAB_14:

+                uVar22 = local_98.Data1;

+                uVar23 = local_98._4_4_;

+                uVar24 = local_98.Data4._0_4_;

+                uVar25 = local_98.Data4._4_4_;

+                cVar4 = local_128;

+                goto LAB_5;

+              }

+              goto LAB_13;

+            }

+            if (cVar20 != '\0') {

+              uVar6 = RedirectFolderToShareWithAppContainer

+                                (&local_c8,pHVar18,local_125,

+                                 (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                                  *)local_b8,&local_98);

+              pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+              if (uVar6 == 0) {

+                cVar20 = '\0';

+                goto LAB_14;

+              }

+              goto LAB_13;

+            }

+            cVar4 = TestHook_IsDeferredPrecreateAllowed();

+            if ((cVar4 != '\0') &&

+               ((*(longlong *)(pCVar3 + 0xb0) != 0 || (*(longlong *)(pCVar3 + 0xb8) != 0)))) {

+              uVar22 = *(ulong *)(pCVar3 + 0xb0);

+              uVar23 = *(undefined4 *)(pCVar3 + 0xb4);

+              uVar24 = *(undefined4 *)(pCVar3 + 0xb8);

+              uVar25 = *(undefined4 *)(pCVar3 + 0xbc);

+            }

+          }

+          else {

+            uVar6 = RedirectToStateFolder

+                              (local_f8,&local_c8,

+                               (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                                *)local_b8,&local_98);

+            pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+            if (uVar6 == 0) {

+              bVar21 = false;

+              goto LAB_14;

+            }

+LAB_13:

+            uVar22 = local_98.Data1;

+            uVar23 = local_98._4_4_;

+            uVar24 = local_98.Data4._0_4_;

+            uVar25 = local_98.Data4._4_4_;

+            cVar4 = local_128;

+            if ((int)pHVar15 != 1) goto LAB_5;

+          }

+          uVar6 = ExpandString(*(ushort **)(pCVar3 + 0x38),pvVar19,

+                               (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                                *)local_b8);

+          pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+          cVar4 = local_128;

+        }

+      }

+LAB_5:

+      ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                ((CComPtrBase<IKnownFolderManager> *)local_118);

+    }

+    else {

+      cVar4 = '\x01';

+    }

+    if (-1 < (int)pHVar15) {

+      local_118[0] = (CTRefObj<kfapi::CKnownFolderDefinition,CTRefBase_NoModuleLifetimePolicy> *)0x0

+      ;

+      pppppppuVar14 = &local_78;

+      if (7 < local_60) {

+        pppppppuVar14 = (ushort *******)local_78;

+      }

+      p_Var12 = (_GUID *)local_b8;

+      if (7 < local_a0) {

+        p_Var12 = local_b8[0];

+      }

+      uVar6 = KFPathCombine((ushort *)p_Var12,(ushort *)pppppppuVar14,

+                            (CAutoArrayMemPtr<unsigned_short> *)local_118);

+      pHVar15 = (HKEY__ *)(ulonglong)uVar6;

+      if (-1 < (int)uVar6) {

+        bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_205153595>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_205153595> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_205153595>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_205153595>::GetImpl(void)'

+                            ::__l2::impl);

+        if (((bVar5) && (bVar5 = IsNonStandardUserProfilePathAllowedByPolicy(), !bVar5)) &&

+           ((((local_c8._0_8_ == 0x4cf665f93eb685db &&

+              (local_c8.Data4 == (uchar  [8])0x3d9f7265efe33aa0)) ||

+             ((local_c8._0_8_ == 0x4fcf6fbaf1b32785 &&

+              (local_c8.Data4 == (uchar  [8])0x9170157f8e7b559d)))) &&

+            (bVar5 = IsWin32DeviceNamespacePathWithoutDriveLetter((ushort *)local_118[0]), bVar5))))

+        {

+          pHVar15 = (HKEY__ *)0x800700a1;

+        }

+        std::

+        basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+        ::assign((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  *)&local_78,(ushort *)local_118[0]);

+      }

+      CAutoArrayMemPtr<unsigned_short>::~CAutoArrayMemPtr<unsigned_short>

+                ((CAutoArrayMemPtr<unsigned_short> *)local_118);

+      uVar6 = (uint)pHVar15;

+      if (-1 < (int)uVar6) {

+        if ((cVar4 != '\0') ||

+           ((CONCAT44(uVar23,uVar22) == 0 &&

+            (auVar1._4_2_ = (ushort)uVar23, auVar1._6_2_ = SUB42(uVar23,2), auVar1._0_4_ = uVar22,

+            auVar1[8] = (uchar)uVar24, auVar1[9] = SUB41(uVar24,1), auVar1[10] = SUB41(uVar24,2),

+            auVar1[0xb] = SUB41(uVar24,3), auVar1[0xc] = (uchar)uVar25,

+            auVar1[0xd] = SUB41(uVar25,1), auVar1[0xe] = SUB41(uVar25,2),

+            auVar1[0xf] = SUB41(uVar25,3), auVar1._8_8_ == 0)))) {

+          std::

+          pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+          ::

+          ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                    ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                      *)local_b8);

+          std::

+          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+          ::operator=(local_d8,(basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                                *)&local_78);

+          break;

+        }

+        local_c8.Data2 = (ushort)uVar23;

+        local_c8.Data3 = SUB42(uVar23,2);

+        local_c8.Data1 = uVar22;

+        local_c8.Data4[4] = (uchar)uVar25;

+        local_c8.Data4[5] = SUB41(uVar25,1);

+        local_c8.Data4[6] = SUB41(uVar25,2);

+        local_c8.Data4[7] = SUB41(uVar25,3);

+        local_c8.Data4[0] = (uchar)uVar24;

+        local_c8.Data4[1] = SUB41(uVar24,1);

+        local_c8.Data4[2] = SUB41(uVar24,2);

+        local_c8.Data4[3] = SUB41(uVar24,3);

+      }

+    }

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                *)local_b8);

+    bVar5 = false;

+    uVar6 = (uint)pHVar15;

+  } while (-1 < (int)uVar6);

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+            ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+              *)&local_78);

+  CTSmartObj<void*___ptr64,CAutoHandle_Policy<void*___ptr64>_>::Release

+            ((CTSmartObj<void*___ptr64,CAutoHandle_Policy<void*___ptr64>_> *)&local_f0);

+  CAutoHandle<HKEY__*___ptr64>::~CAutoHandle<HKEY__*___ptr64>

+            ((CAutoHandle<HKEY__*___ptr64> *)&local_108);

+  CAutoHandle<HKEY__*___ptr64>::~CAutoHandle<HKEY__*___ptr64>

+            ((CAutoHandle<HKEY__*___ptr64> *)&local_100);

+  return uVar6;

+}

+
```

## `CInternetFolder::GetUIObjectOf`  (modified)

```diff
--- CInternetFolder::GetUIObjectOf
+++ CInternetFolder::GetUIObjectOf
@@ -1,2 +1,307 @@
-Failed to decompile windows.storage.dll - .ProgramDB CInternetFolder::GetUIObjectOf : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Enum "__MIDL_IUri_0001": Some values do not have unique names */

+/* public: virtual long __cdecl CInternetFolder::GetUIObjectOf(struct HWND__ * __ptr64,unsigned

+   int,struct _ITEMID_CHILD const __unaligned * __ptr64 const * __ptr64,struct _GUID const &

+   __ptr64,unsigned int * __ptr64,void * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CInternetFolder::GetUIObjectOf

+          (CInternetFolder *this,HWND__ *param_1,uint param_2,_ITEMID_CHILD **param_3,_GUID *param_4

+          ,uint *param_5,void **param_6)

+

+{

+  longlong lVar1;

+  longlong lVar2;

+  longlong lVar3;

+  longlong lVar4;

+  longlong lVar5;

+  longlong lVar6;

+  longlong lVar7;

+  longlong lVar8;

+  longlong lVar9;

+  int iVar10;

+  long lVar11;

+  HRESULT HVar12;

+  long lVar13;

+  void *hMem;

+  ushort **ppuVar14;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *pRVar15;

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  *this_00;

+  _ITEMID_CHILD **pp_Var16;

+  undefined4 extraout_XMM0_Da;

+  void *unaff_retaddr;

+  undefined1 auStackY_308 [32];

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *local_2c0;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *local_2b8;

+  ulonglong local_2b0;

+  undefined8 local_2a8;

+  ulonglong uStack_2a0;

+  uint local_298;

+  undefined4 local_294;

+  _ITEMID_CHILD **local_290;

+  undefined8 local_288;

+  undefined8 local_280;

+  undefined8 local_278;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *local_268 [2];

+  WCHAR local_258 [256];

+  ulonglong local_58;

+  

+  local_58 = __security_cookie ^ (ulonglong)auStackY_308;

+  lVar11 = 0;

+  *param_6 = (void *)0x0;

+  local_268[0] = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>

+                  *)0x0;

+  pp_Var16 = param_3;

+  local_2c0 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *)

+              param_1;

+  if (((*param_3 != (_ITEMID_CHILD *)0x0) &&

+      (iVar10 = GetCommonProtocol(param_3,param_2,(char **)local_268), iVar10 != 0)) &&

+     (local_268[0] !=

+      (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *)0x0)) {

+    local_268[0] = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>

+                    *)0x0;

+    lVar11 = _CreateProtocolHandlerFromPidl

+                       (this + -8,(_ITEMIDLIST_RELATIVE *)*param_3,(IBindCtx *)0x0,

+                        (IShellFolder **)local_268);

+    if (lVar11 < 0) {

+      return lVar11;

+    }

+    if (lVar11 == 1) {

+      return 1;

+    }

+    HVar12 = (*(*(IDataObjectVtbl **)local_268[0])->DUnadvise)

+                       ((IDataObject *)local_268[0],(DWORD)local_2c0);

+    pRVar15 = local_268[0];

+LAB_0:

+    (*(*(IDataObjectVtbl **)pRVar15)->Release)((IDataObject *)pRVar15);

+    return HVar12;

+  }

+  lVar1._0_4_ = param_4->Data1;

+  lVar1._4_2_ = param_4->Data2;

+  lVar1._6_2_ = param_4->Data3;

+  if ((lVar1 == 0x10e) && (*(longlong *)param_4->Data4 == 0x46000000000000c0)) {

+    if (param_2 != 1) {

+      return -0x7fffbffe;

+    }

+    local_2c0 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>

+                 *)0x0;

+    lVar11 = _GetUIObjectFromShortcut

+                       (this + -8,*param_3,(_GUID *)&_GUID_0000010e_0000_0000_c000_000000000046,

+                        &local_2c0);

+    if (lVar11 < 0) {

+      return lVar11;

+    }

+    hMem = HIDA_Create(*(_ITEMIDLIST_ABSOLUTE **)(this + 0x20),1,(_ITEMIDLIST_RELATIVE **)param_3);

+    if (hMem == (void *)0x0) {

+      HVar12 = -0x7ff8fff2;

+      pRVar15 = local_2c0;

+    }

+    else {

+      IDLData_InitializeClipboardFormats();

+      HVar12 = DataObj_SetGlobalWithIndex((IDataObject *)local_2c0,(uint)DAT_1,hMem,-1);

+      if (HVar12 < 0) {

+        GlobalFree(hMem);

+        pRVar15 = local_2c0;

+      }

+      else {

+        HVar12 = (*(*(IDataObjectVtbl **)local_2c0)->QueryInterface)

+                           ((IDataObject *)local_2c0,param_4,param_6);

+        pRVar15 = local_2c0;

+      }

+    }

+    goto LAB_0;

+  }

+  lVar2._0_4_ = param_4->Data1;

+  lVar2._4_2_ = param_4->Data2;

+  lVar2._6_2_ = param_4->Data3;

+  if ((lVar2 == 0x214e4) && (*(longlong *)param_4->Data4 == 0x46000000000000c0)) {

+    iVar10 = Ordinal_32();

+    if ((iVar10 == 0) && (param_2 == 1)) {

+      lVar11 = _GetUIObjectFromShortcut(this + -8,*param_3,param_4,param_6);

+      return lVar11;

+    }

+    local_2b8 = local_2c0;

+    local_2b0 = 0;

+    local_2a8 = *(undefined8 *)(this + 0x20);

+    uStack_2a0 = -(ulonglong)(this != (CInternetFolder *)&DAT_2) & (ulonglong)this;

+    local_294 = 0;

+    local_288 = 0;

+    local_280 = 0;

+    local_278 = 0;

+    local_298 = param_2;

+    local_290 = param_3;

+    lVar11 = SHELL32_SHCreateDefaultContextMenu(&local_2b8,param_4,param_6);

+    return lVar11;

+  }

+  lVar3._0_4_ = param_4->Data1;

+  lVar3._4_2_ = param_4->Data2;

+  lVar3._6_2_ = param_4->Data3;

+  if ((((lVar3 == 0x214eb) && (*(longlong *)param_4->Data4 == 0x46000000000000c0)) ||

+      ((lVar4._0_4_ = param_4->Data1, lVar4._4_2_ = param_4->Data2, lVar4._6_2_ = param_4->Data3,

+       lVar4 == 0x214fa && (*(longlong *)param_4->Data4 == 0x46000000000000c0)))) ||

+     ((lVar5._0_4_ = param_4->Data1, lVar5._4_2_ = param_4->Data2, lVar5._6_2_ = param_4->Data3,

+      lVar5 == 0x21500 && (*(longlong *)param_4->Data4 == 0x46000000000000c0)))) {

+    if (param_2 != 1) {

+      return -0x7fffbffe;

+    }

+    lVar6._0_4_ = param_4->Data1;

+    lVar6._4_2_ = param_4->Data2;

+    lVar6._6_2_ = param_4->Data3;

+    if ((lVar6 != 0x214fa) || (*(longlong *)param_4->Data4 != 0x46000000000000c0)) {

+LAB_3:

+      lVar11 = _GetUIObjectFromShortcut(this + -8,*param_3,param_4,param_6);

+      return lVar11;

+    }

+    local_2c0 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>

+                 *)0x0;

+    ppuVar14 = wil::

+               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_2c0);

+    iVar10 = ILGetHiddenStringAllocW((_ITEMIDLIST_RELATIVE *)*param_3,0xbeef0028,ppuVar14);

+    if (iVar10 == 0) {

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_2c0);

+      goto LAB_3;

+    }

+    local_2b8 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>

+                 *)&CFileExtension::_vftable_;

+    local_2b0 = local_2b0 & 0xffffffffffffff00;

+    local_2a8 = 0;

+    uStack_2a0 = 0;

+    local_298 = 0;

+    local_294 = 0xffffffff;

+    local_290 = (_ITEMID_CHILD **)((ulonglong)local_290 & 0xffffffffffffff00);

+    local_288 = 0;

+    lVar13 = CFileExtension::SetExtensionFromFileName

+                       ((CFileExtension *)&local_2b8,(ushort *)local_2c0);

+    if (lVar13 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x88b,

+                 "onecoreuap\\shell\\windows.storage\\internetfolder\\internetfolder.cpp",lVar13);

+LAB_4:

+      lVar11 = SHCreateFileExtractIconW(local_2c0,1,param_4,param_6);

+    }

+    else {

+      Microsoft::WRL::Details::Make<CInternetFolderIconHandler,unsigned_short_const*___ptr64>

+                ((ushort **)local_268);

+      pRVar15 = local_268[0];

+      if (local_268[0] ==

+          (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *)0x0)

+      {

+        lVar11 = -0x7ff8fff2;

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x88e,

+                   "onecoreuap\\shell\\windows.storage\\internetfolder\\internetfolder.cpp",

+                   -0x7ff8fff2);

+      }

+      else {

+        if (*(int *)(local_268[0] + 0x10) == 0) {

+          Microsoft::WRL::Details::

+          RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>::

+          Release(local_268[0]);

+          goto LAB_4;

+        }

+        *param_6 = (void *)0x0;

+        iVar10 = InlineIsEqualGUID(param_4,&_GUID_00000000_0000_0000_c000_000000000046);

+        if ((iVar10 == 0) &&

+           (iVar10 = InlineIsEqualGUID(extraout_XMM0_Da,&_GUID_000214fa_0000_0000_c000_000000000046)

+           , iVar10 == 0)) {

+          lVar11 = -0x7fffbffe;

+        }

+        else {

+          *param_6 = pRVar15;

+          (**(code **)(*(longlong *)pRVar15 + 8))(pRVar15);

+        }

+        Microsoft::WRL::Details::

+        RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>::Release

+                  (pRVar15);

+      }

+    }

+    CFileExtension::~CFileExtension((CFileExtension *)&local_2b8);

+    this_00 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+               *)&local_2c0;

+    goto LAB_5;

+  }

+  lVar7._0_4_ = param_4->Data1;

+  lVar7._4_2_ = param_4->Data2;

+  lVar7._6_2_ = param_4->Data3;

+  if ((lVar7 == 0x11d23c3fc46ca590) && (*(longlong *)param_4->Data4 == 0x57ca05f80000e6be)) {

+    if (param_2 != 1) {

+      return -0x7fffbffe;

+    }

+    lVar11 = _AssocCreate((CInternetFolder *)0x214fa,*param_3,param_4,param_6);

+    return lVar11;

+  }

+  lVar8._0_4_ = param_4->Data1;

+  lVar8._4_2_ = param_4->Data2;

+  lVar8._6_2_ = param_4->Data3;

+  if ((lVar8 == 0x48176a27a39ee748) && (*(longlong *)param_4->Data4 == -0x6fa710b46eec0d5a)) {

+    if (param_2 != 1) {

+      return -0x7fffbffe;

+    }

+    local_268[0] = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>

+                    *)0x0;

+    lVar11 = IEGetIUriFromUrlChild((_ITEMIDLIST_RELATIVE *)*param_3,0xc0,(IUri **)local_268);

+    if (-1 < lVar11) {

+      lVar11 = (*(code *)**(undefined8 **)&local_268[0]->field_0x0)(local_268[0],param_4,param_6);

+    }

+    ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+              ((CComPtrBase<IKnownFolderManager> *)local_268);

+    return lVar11;

+  }

+  lVar9._0_4_ = param_4->Data1;

+  lVar9._4_2_ = param_4->Data2;

+  lVar9._6_2_ = param_4->Data3;

+  if (lVar9 != 0x4b889599973810ae) {

+    return -0x7fffbffe;

+  }

+  if (*(longlong *)param_4->Data4 != -0x25ad6a731691b262) {

+    return -0x7fffbffe;

+  }

+  if (param_2 != 1) {

+    return -0x7fffbffe;

+  }

+  lVar11 = _GetScheme((CInternetFolder *)0x214fa,*param_3,(ushort *)&local_2b8,(ulong)pp_Var16);

+  if (lVar11 < 0) {

+    return lVar11;

+  }

+  local_2c0 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *)

+              CONCAT44(local_2c0._4_4_,0x100);

+  local_268[0] = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>

+                  *)0x0;

+  iVar10 = StrCmpIW((LPCWSTR)&local_2b8,L"http");

+  if ((iVar10 == 0) || (iVar10 = StrCmpIW((LPCWSTR)&local_2b8,L"https"), iVar10 == 0)) {

+    ppuVar14 = wil::

+               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                      *)local_268);

+    lVar11 = GetUriFromUrlIdList((tagURLID *)*param_3,0,ppuVar14);

+    if ((lVar11 < 0) ||

+       (HVar12 = UrlGetPartW((LPCWSTR)local_268[0],local_258,(LPDWORD)&local_2c0,2,0), HVar12 < 0))

+    goto LAB_6;

+    lVar11 = SHAssocEnumHandlersForUrl((ushort *)local_268[0],0,true,param_4,param_6);

+  }

+  else {

+LAB_6:

+    lVar11 = SHAssocEnumHandlersForProtocolByApplicationInternal(&local_2b8,0,param_4,param_6);

+  }

+  this_00 = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+             *)local_268;

+LAB_5:

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            (this_00);

+  return lVar11;

+}

+
```

## `StorageItemHelpers::IsSupportedRemovablePath`  (modified)

```diff
--- StorageItemHelpers::IsSupportedRemovablePath
+++ StorageItemHelpers::IsSupportedRemovablePath
@@ -1,24 +1,67 @@
 

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* bool __cdecl StorageItemHelpers::IsSupportedRemovablePath(unsigned short const * __ptr64) */

 

-bool __cdecl

-StorageTelemetry::ActivityThreadWatcherWithCapturedCallerContextReportOnExit::

-IsSupportedRemovablePath(ushort *param_1)

+bool __cdecl StorageItemHelpers::IsSupportedRemovablePath(ushort *param_1)

 

 {

-  long lVar1;

-  _GUID *in_RDX;

-  void **in_R8;

-  bool *in_R9;

+  CMountPoint *pCVar1;

+  long lVar2;

+  int iVar3;

+  ushort **ppuVar4;

+  bool bVar5;

+  undefined1 auStack_278 [32];

+  CMountPoint *local_258;

+  CMtPtLocal *local_250;

+  HLOCAL local_248;

+  wchar_t local_240 [12];

+  ushort local_228 [264];

+  ulonglong local_18;

   

-  lVar1 = Microsoft::WRL::Details::

-          ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,Microsoft::WRL::Details::ImplementsMarker<Microsoft::WRL::FtmBase>_>

-          ::CanCastTo((ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,Microsoft::WRL::Details::ImplementsMarker<Microsoft::WRL::FtmBase>_>

-                       *)(ulonglong)((int)param_1 + 8),in_RDX,in_R8,in_R9);

-  if (-1 < lVar1) {

-    (**(code **)(*(longlong *)*in_R8 + 8))();

+  local_18 = __security_cookie ^ (ulonglong)auStack_278;

+  bVar5 = false;

+  local_258 = (CMountPoint *)0x0;

+  builtin_wcsncpy(local_240,L"WPSystem",9);

+  local_248 = (HLOCAL)0x0;

+  Microsoft::WRL::ComPtr<CMtPtLocal>::InternalRelease((ComPtr<CMtPtLocal> *)&local_258);

+  lVar2 = CMountPoint::GetMountPoint(param_1,1,&local_258);

+  if (-1 < lVar2) {

+    iVar3 = (**(code **)(*(longlong *)local_258 + 0x1d8))();

+    pCVar1 = local_258;

+    if (iVar3 != 0) {

+      local_250 = (CMtPtLocal *)0x0;

+      Microsoft::WRL::ComPtr<CMtPtLocal>::InternalRelease((ComPtr<CMtPtLocal> *)&local_250);

+      lVar2 = CMountPoint::GetLocalMountPoint(pCVar1,&local_250);

+      if (-1 < lVar2) {

+        iVar3 = CMtPtLocal::IsSystemVolume(local_250);

+        if (iVar3 == 0) {

+          lVar2 = StringCchCopyW(local_228,0x104,(ushort *)(local_258 + 0x34));

+          if (-1 < lVar2) {

+            ppuVar4 = wil::

+                      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                      ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                             *)&local_248);

+            iVar3 = PathAllocCombine(local_228,local_240,1,ppuVar4);

+            if (-1 < iVar3) {

+              iVar3 = PathIsEqualOrSubFolder(local_248,param_1);

+              bVar5 = iVar3 == 0;

+            }

+          }

+        }

+      }

+      Microsoft::WRL::ComPtr<CMtPtLocal>::InternalRelease((ComPtr<CMtPtLocal> *)&local_250);

+    }

   }

-  return SUB41(lVar1,0);

+  if (local_248 != (HLOCAL)0x0) {

+    LocalFree(local_248);

+  }

+  pCVar1 = local_258;

+  if (local_258 != (CMountPoint *)0x0) {

+    local_258 = (CMountPoint *)0x0;

+    CMountPoint::Release(pCVar1);

+  }

+  return bVar5;

 }
```

## `wistd::__function::__func<<lambda_61c4e32953395918db004c5ab12f7976>,void___cdecl(wil::RegistryChangeKind)>::operator()`  (modified)

```diff
--- wistd::__function::__func<<lambda_61c4e32953395918db004c5ab12f7976>,void___cdecl(wil::RegistryChangeKind)>::operator()
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53481887>::__private_IsEnabled
@@ -1,21 +1,19 @@
 

-/* public: virtual void __cdecl wistd::__function::__func<class

-   <lambda_61c4e32953395918db004c5ab12f7976>,void __cdecl(enum

-   wil::RegistryChangeKind)>::operator()(enum wil::RegistryChangeKind && __ptr64) __ptr64 */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_ID53481887>::__private_IsEnabled(void) __ptr64 */

 

-void __thiscall

-wistd::__function::

-__func<<lambda_61c4e32953395918db004c5ab12f7976>,void___cdecl(wil::RegistryChangeKind)>::operator()

-          (__func<<lambda_61c4e32953395918db004c5ab12f7976>,void___cdecl(wil::RegistryChangeKind)>

-           *this,RegistryChangeKind *param_1)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID53481887>::__private_IsEnabled

+          (FeatureImpl<__WilFeatureTraits_Feature_ID53481887> *this)

 

 {

-  _RTL_SRWLOCK local_res10 [3];

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res10;

   

-  local_res10[0].Ptr = param_1;

-  wil::AcquireSRWLockExclusive(local_res10);

-  *(undefined4 *)(*(longlong *)(this + 8) + 8) = 0xffffffff;

-  CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_res10);

-  return;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res10 & 1),in_R8D,in_R9);

+  Feature_ID53481887__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res10 & 1);

 }
```

## `CEnumFiles::_InitByNormalFindFirst`  (modified)

```diff
--- CEnumFiles::_InitByNormalFindFirst
+++ CEnumFiles::_InitByNormalFindFirst
@@ -1,58 +1,115 @@
+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CEnumFiles::_InitByNormalFindFirst(unsigned short const * __ptr64,unsigned

+   short const * __ptr64,struct tagWIN32_FIND_DATA_EX * __ptr64) __ptr64 */

 

 long __thiscall

-Microsoft::WRL::Details::

-ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::CloakedIid<IObjectWithDiscardablePropertyStoreLocal>,Microsoft::WRL::CloakedIid<IStorageItemInternalProvider>,Microsoft::WRL::CloakedIid<IStorageItemInternalAvailableCrossProcess>,Microsoft::WRL::CloakedIid<IValidateServerContext>,Microsoft::WRL::CloakedIid<Windows::Storage::Pickers::IStorageItemInternalForCachedFileUpdater>,CCustomPropertyProviderBase<CCustomPropertySync>,Microsoft::WRL::CloakedIid<Windows::Internal::Storage::IStorageItemWithUser>_>

-::_InitByNormalFindFirst

+CEnumFiles::_InitByNormalFindFirst

           (CEnumFiles *this,ushort *param_1,ushort *param_2,tagWIN32_FIND_DATA_EX *param_3)

 

 {

-  int iVar1;

-  long lVar2;

-  CConfirmHistory *unaff_RBX;

-  int unaff_EBP;

-  uint unaff_ESI;

-  int unaff_EDI;

+  undefined8 uVar1;

+  undefined8 uVar2;

+  undefined8 uVar3;

+  undefined8 uVar4;

+  _WIN32_FIND_DATAW *p_Var5;

+  int iVar6;

+  ushort **ppuVar7;

+  HANDLE pvVar8;

+  _WIN32_FIND_DATAW *p_Var9;

+  longlong lVar10;

+  tagWIN32_FIND_DATA_EX *ptVar11;

+  undefined1 auStack_2b8 [32];

+  LPCWSTR local_298 [2];

+  _WIN32_FIND_DATAW local_288;

+  ulonglong local_38;

   

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)param_1,(long)param_2);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_RECYCLE_SHORTCUT,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_MOVE_SYSTEM_STREAM,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_RENAME_SYSTEM_STREAM,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_RENAME_REPLACE_STREAM,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_STREAM_LOSS_STREAM,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_STREAM_LOSS_STORAGE,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_ENCRYPTION_LOSS_STREAM,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_ENCRYPTION_LOSS_STORAGE,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_RENAME_CONNECTED_STREAM,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_RENAME_CONNECTED_STORAGE,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_DELETE_MULTIPLE_CLOUDFILE,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_DELETE_CLOUDFOLDER,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_DELETE_CLOUDFILE,unaff_EDI);

-  CConfirmHistory::SetToAll

-            (unaff_RBX,(_GUID *)&STCONFIRM_PERMANENTDELETE_MULTIPLE_CLOUDFILE,unaff_EDI);

-  CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_PERMANENTDELETE_CLOUDFOLDER,unaff_EDI);

-  lVar2 = CConfirmHistory::SetToAll

-                    (unaff_RBX,(_GUID *)&STCONFIRM_PERMANENTDELETE_CLOUDFILE,unaff_EDI);

-  if (unaff_EBP == 0) {

-    iVar1 = unaff_EDI + 4;

-    CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_PROPERTIES_LOSS_STORAGE,iVar1);

-    CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_PROPERTIES_LOSS_STREAM,iVar1);

-    CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_PROPERTY_LOSS_STORAGE,iVar1);

-    CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_PROPERTY_LOSS_STREAM,iVar1);

-    CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_REPLACE_STREAM,unaff_EDI);

+  local_38 = __security_cookie ^ (ulonglong)auStack_2b8;

+  local_298[0] = (LPCWSTR)0x0;

+  ppuVar7 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)local_298);

+  if (param_2 == (ushort *)0x0) {

+    param_2 = (ushort *)&c_szStarDotStar;

   }

-  else if ((unaff_ESI >> 0x16 & 1) == 0) goto LAB_0;

-  lVar2 = CConfirmHistory::SetToAll(unaff_RBX,(_GUID *)&STCONFIRM_REPLACE_STORAGE,unaff_EDI);

-LAB_0:

-  if ((unaff_ESI >> 0xe & 1) == 0) {

-    CConfirmHistory::SetToAll

-              (unaff_RBX,(_GUID *)&STCONFIRM_PERMANENTDELETE_TOOLARGE_STREAM,unaff_EDI);

-    CConfirmHistory::SetToAll

-              (unaff_RBX,(_GUID *)&STCONFIRM_PERMANENTDELETE_TOOLARGE_STORAGE,unaff_EDI);

-    CConfirmHistory::SetToAll

-              (unaff_RBX,(_GUID *)&STCONFIRM_PERMANENTDELETE_TOOLARGE_MULTIPLE,unaff_EDI);

-    lVar2 = CConfirmHistory::SetToAll

-                      (unaff_RBX,(_GUID *)&STCONFIRM_PERMANENTDELETE_PATH_TOO_LONG,unaff_EDI);

+  iVar6 = PathAllocCombine(param_1,param_2,1,ppuVar7);

+  if (-1 < iVar6) {

+    memset(&local_288,0,0x250);

+    pvVar8 = FindFirstFileW(local_298[0],&local_288);

+    *(HANDLE *)(this + 0x38) = pvVar8;

+    if (pvVar8 == (HANDLE)0xffffffffffffffff) {

+      iVar6 = ResultFromKnownLastError();

+    }

+    else {

+      lVar10 = 4;

+      *(undefined8 *)(param_3 + 0x250) = 0;

+      *(undefined8 *)(param_3 + 600) = 0;

+      *(undefined8 *)(param_3 + 0x260) = 0;

+      p_Var5 = &local_288;

+      do {

+        ptVar11 = param_3;

+        p_Var9 = p_Var5;

+        uVar1 = *(undefined8 *)&(p_Var9->ftCreationTime).dwHighDateTime;

+        uVar2 = *(undefined8 *)&(p_Var9->ftLastAccessTime).dwHighDateTime;

+        uVar3 = *(undefined8 *)&(p_Var9->ftLastWriteTime).dwHighDateTime;

+        *(undefined8 *)ptVar11 = *(undefined8 *)p_Var9;

+        *(undefined8 *)(ptVar11 + 8) = uVar1;

+        uVar1 = *(undefined8 *)&p_Var9->nFileSizeLow;

+        uVar4 = *(undefined8 *)&p_Var9->dwReserved1;

+        *(undefined8 *)(ptVar11 + 0x10) = uVar2;

+        *(undefined8 *)(ptVar11 + 0x18) = uVar3;

+        uVar2 = *(undefined8 *)(p_Var9->cFileName + 2);

+        uVar3 = *(undefined8 *)(p_Var9->cFileName + 6);

+        *(undefined8 *)(ptVar11 + 0x20) = uVar1;

+        *(undefined8 *)(ptVar11 + 0x28) = uVar4;

+        uVar1 = *(undefined8 *)(p_Var9->cFileName + 10);

+        uVar4 = *(undefined8 *)(p_Var9->cFileName + 0xe);

+        *(undefined8 *)(ptVar11 + 0x30) = uVar2;

+        *(undefined8 *)(ptVar11 + 0x38) = uVar3;

+        uVar2 = *(undefined8 *)(p_Var9->cFileName + 0x12);

+        uVar3 = *(undefined8 *)(p_Var9->cFileName + 0x16);

+        *(undefined8 *)(ptVar11 + 0x40) = uVar1;

+        *(undefined8 *)(ptVar11 + 0x48) = uVar4;

+        uVar1 = *(undefined8 *)(p_Var9->cFileName + 0x1a);

+        uVar4 = *(undefined8 *)(p_Var9->cFileName + 0x1e);

+        *(undefined8 *)(ptVar11 + 0x50) = uVar2;

+        *(undefined8 *)(ptVar11 + 0x58) = uVar3;

+        uVar2 = *(undefined8 *)(p_Var9->cFileName + 0x22);

+        uVar3 = *(undefined8 *)(p_Var9->cFileName + 0x26);

+        *(undefined8 *)(ptVar11 + 0x60) = uVar1;

+        *(undefined8 *)(ptVar11 + 0x68) = uVar4;

+        *(undefined8 *)(ptVar11 + 0x70) = uVar2;

+        *(undefined8 *)(ptVar11 + 0x78) = uVar3;

+        lVar10 = lVar10 + -1;

+        p_Var5 = (_WIN32_FIND_DATAW *)(p_Var9->cFileName + 0x2a);

+        param_3 = ptVar11 + 0x80;

+      } while (lVar10 != 0);

+      uVar1 = *(undefined8 *)(p_Var9->cFileName + 0x2e);

+      iVar6 = 0;

+      uVar2 = *(undefined8 *)(p_Var9->cFileName + 0x32);

+      uVar3 = *(undefined8 *)(p_Var9->cFileName + 0x36);

+      *(undefined8 *)(ptVar11 + 0x80) = *(undefined8 *)(p_Var9->cFileName + 0x2a);

+      *(undefined8 *)(ptVar11 + 0x88) = uVar1;

+      uVar1 = *(undefined8 *)(p_Var9->cFileName + 0x3a);

+      uVar4 = *(undefined8 *)(p_Var9->cFileName + 0x3e);

+      *(undefined8 *)(ptVar11 + 0x90) = uVar2;

+      *(undefined8 *)(ptVar11 + 0x98) = uVar3;

+      uVar2 = *(undefined8 *)(p_Var9->cFileName + 0x42);

+      uVar3 = *(undefined8 *)(p_Var9->cFileName + 0x46);

+      *(undefined8 *)(ptVar11 + 0xa0) = uVar1;

+      *(undefined8 *)(ptVar11 + 0xa8) = uVar4;

+      uVar1 = *(undefined8 *)(p_Var9->cFileName + 0x4a);

+      uVar4 = *(undefined8 *)(p_Var9->cFileName + 0x4e);

+      *(undefined8 *)(ptVar11 + 0xb0) = uVar2;

+      *(undefined8 *)(ptVar11 + 0xb8) = uVar3;

+      *(undefined8 *)(ptVar11 + 0xc0) = uVar1;

+      *(undefined8 *)(ptVar11 + 200) = uVar4;

+    }

   }

-  return lVar2;

+  if (local_298[0] != (LPCWSTR)0x0) {

+    LocalFree(local_298[0]);

+  }

+  return iVar6;

 }
```

## `CFSTransfer::_SetNameDst`  (modified)

```diff
--- CFSTransfer::_SetNameDst
+++ CFSTransfer::_SetNameDst
@@ -1,2 +1,79 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSTransfer::_SetNameDst : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CFSTransfer::_SetNameDst(unsigned short const * __ptr64) __ptr64 */

+

+long __thiscall CFSTransfer::_SetNameDst(CFSTransfer *this,ushort *param_1)

+

+{

+  CFSTransfer *ppwsz;

+  char cVar1;

+  long lVar2;

+  ushort **ppuVar3;

+  longlong lVar4;

+  uint uVar6;

+  void *unaff_retaddr;

+  undefined1 auStack_48 [32];

+  LPCWSTR local_28;

+  ulonglong local_20;

+  longlong lVar5;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStack_48;

+  ppwsz = this + 0x110;

+  CoTaskMemFree(*(LPWSTR *)ppwsz);

+  *(LPWSTR *)ppwsz = (LPWSTR)0x0;

+  if (param_1 == (ushort *)0x0) {

+    param_1 = (ushort *)L"";

+  }

+  lVar2 = StringCchCopyW((ushort *)(this + 0x128),0x104,param_1);

+  if (lVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x174e,

+               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\filecopy.cpp",lVar2);

+    return lVar2;

+  }

+  *(undefined4 *)(this + 0x334) = 0x8027001e;

+  local_28 = (LPCWSTR)0x0;

+  ppuVar3 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_28);

+  lVar2 = PathAllocCombine(*(undefined8 *)(this + 0x108),this + 0x128,1,ppuVar3);

+  if (lVar2 < 0) {

+    uVar6 = 0x1752;

+LAB_0:

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar6,

+               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\filecopy.cpp",lVar2);

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_28);

+  }

+  else {

+    if ((((byte)this[0xe0] & 0x10) == 0) || (cVar1 = RtlAreLongPathsEnabled(), cVar1 != '\0')) {

+LAB_1:

+      *(undefined4 *)(this + 0x334) = 0;

+      lVar2 = SHStrDupW(local_28,(LPWSTR *)ppwsz);

+      if (lVar2 < 0) {

+        uVar6 = 0x1757;

+        goto LAB_0;

+      }

+    }

+    else {

+      lVar4 = -1;

+      do {

+        lVar5 = lVar4;

+        lVar4 = lVar5 + 1;

+      } while (local_28[lVar4] != L'\0');

+      if (lVar5 + 0xdU < 0x105) goto LAB_1;

+    }

+    if (local_28 != (LPCWSTR)0x0) {

+      LocalFree(local_28);

+    }

+    lVar2 = 0;

+  }

+  return lVar2;

+}

+
```

## `Microsoft::WRL::Details::Make<CInternetFolderIconHandler,unsigned_short_const*___ptr64>`  (modified)

```diff
--- Microsoft::WRL::Details::Make<CInternetFolderIconHandler,unsigned_short_const*___ptr64>
+++ Microsoft::WRL::Details::Make<CInternetFolderIconHandler,unsigned_short_const*___ptr64>
@@ -1,34 +1,31 @@
 

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* class Microsoft::WRL::ComPtr<class CInternetFolderIconHandler> __cdecl

+   Microsoft::WRL::Details::Make<class CInternetFolderIconHandler,unsigned short const *

+   __ptr64>(unsigned short const * __ptr64 && __ptr64) */

 

-long __cdecl

-`Windows::Internal::

-COperationLambdaVar<0,<lambda_352b8e4d3e7499b47d5e27318c8dc82d>,Windows::Internal::CBasicResult<unsigned_char,0>_>

-::

-COperationLambdaVar<0,<lambda_352b8e4d3e7499b47d5e27318c8dc82d>,Windows::Internal::CBasicResult<unsigned_char,0>_><<lambda_352b8e4d3e7499b47d5e27318c8dc82d>_>'

-::__l1::Make<CInternetFolderIconHandler,unsigned_short_const*___ptr64>(ushort **param_1)

+ushort ** __cdecl

+Microsoft::WRL::Details::Make<CInternetFolderIconHandler,unsigned_short_const*___ptr64>

+          (ushort **param_1)

 

 {

-  long lVar1;

-  char *in_RAX;

-  _ITEMID_CHILD *in_RDX;

-  undefined8 *unaff_RDI;

-  _GUID *in_stack_00000020;

-  longlong *plStack0000000000000030;

+  CInternetFolderIconHandler *this;

+  ushort *puVar1;

+  undefined8 *in_RDX;

   

-  *in_RAX = *in_RAX + (char)in_RAX;

-  in_RAX[-0x73] = in_RAX[-0x73] + (char)param_1;

-  plStack0000000000000030 = (longlong *)0x0;

-  *unaff_RDI = 0;

-  lVar1 = CKnownFoldersFolder::_GetTargetItem

-                    ((CKnownFoldersFolder *)(param_1 + -0x13),0,0,in_RDX,in_stack_00000020,

-                     (void **)((ulonglong)in_RAX & 0xffffffffffffff30));

-  if (-1 < lVar1) {

-    lVar1 = (**(code **)(*plStack0000000000000030 + 0x18))();

-    (**(code **)(*plStack0000000000000030 + 0x10))();

+  *param_1 = (ushort *)0x0;

+  this = operator_new(0x14,&std::nothrow);

+  if (this != (CInternetFolderIconHandler *)0x0) {

+    puVar1 = (ushort *)

+             CInternetFolderIconHandler::CInternetFolderIconHandler(this,(ushort *)*in_RDX);

+    if ((RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *)

+        *param_1 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory> *)0x0) {

+      RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>::Release

+                ((RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,IPropertyStoreFactory>

+                  *)*param_1);

+    }

+    *param_1 = puVar1;

   }

-  return lVar1;

+  return param_1;

 }
```

## `StateRepository::Cache::Entity::User_NoThrow::GetByUserSid`  (modified)

```diff
--- StateRepository::Cache::Entity::User_NoThrow::GetByUserSid
+++ StateRepository::Cache::Entity::User_NoThrow::GetByUserSid
@@ -1,2 +1,52 @@
-Failed to decompile windows.storage.dll - .ProgramDB StateRepository::Cache::Entity::User_NoThrow::GetByUserSid : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: static long __cdecl StateRepository::Cache::Entity::User_NoThrow::GetByUserSid(class

+   StateRepository::Cache::Manager_NoThrow & __ptr64,void * __ptr64,__int64 & __ptr64) */

+

+long __cdecl

+StateRepository::Cache::Entity::User_NoThrow::GetByUserSid

+          (Manager_NoThrow *param_1,void *param_2,__int64 *param_3)

+

+{

+  int iVar1;

+  long lVar2;

+  ushort **ppuVar3;

+  void *unaff_retaddr;

+  undefined1 auStack_48 [32];

+  ushort *local_28;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStack_48;

+  local_28 = (ushort *)0x0;

+  ppuVar3 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_28);

+  iVar1 = ConvertSidToStringSidW(param_2,ppuVar3);

+  if (iVar1 == 0) {

+    lVar2 = wil::details::in1diag3::Return_GetLastError

+                      (unaff_retaddr,0xaa,

+                       "onecore\\private\\base\\inc\\appmodel\\staterepository\\cache\\SRCache-Entity-User.hpp"

+                      );

+  }

+  else {

+    lVar2 = GetByUserSidAsString(param_1,local_28,param_3);

+    if (lVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xac,

+                 "onecore\\private\\base\\inc\\appmodel\\staterepository\\cache\\SRCache-Entity-User.hpp"

+                 ,lVar2);

+    }

+    else {

+      lVar2 = 0;

+    }

+  }

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_28);

+  return lVar2;

+}

+
```

## `CAutoHandle<HKEY__*___ptr64>::~CAutoHandle<HKEY__*___ptr64>`  (modified)

```diff
--- CAutoHandle<HKEY__*___ptr64>::~CAutoHandle<HKEY__*___ptr64>
+++ wil::details::in1diag3::_Log_Hr
@@ -1,18 +1,13 @@
 

-/* public: __cdecl CAutoHandle<struct HKEY__ * __ptr64>::~CAutoHandle<struct HKEY__ * __ptr64>(void)

-   __ptr64 */

+/* void __cdecl wil::details::in1diag3::_Log_Hr(void * __ptr64,unsigned int,char const *

+   __ptr64,long) */

 

-void __thiscall

-CAutoHandle<HKEY__*___ptr64>::~CAutoHandle<HKEY__*___ptr64>(CAutoHandle<HKEY__*___ptr64> *this)

+void __cdecl wil::details::in1diag3::_Log_Hr(void *param_1,uint param_2,char *param_3,long param_4)

 

 {

-  HKEY hKey;

+  void *unaff_retaddr;

   

-  hKey = *(HKEY *)this;

-  *(undefined8 *)this = 0;

-  if (hKey != (HKEY)0x0) {

-    RegCloseKey(hKey);

-  }

+  ReportFailure_Hr<2>(param_1,param_2,param_3,(char *)0x0,(char *)0x0,unaff_retaddr,param_4);

   return;

 }
```

## `CFolderThumbnail::_GetThumbnailPathFromDesktopINI`  (modified)

```diff
--- CFolderThumbnail::_GetThumbnailPathFromDesktopINI
+++ CFolderThumbnail::_GetThumbnailPathFromDesktopINI
@@ -1,2 +1,75 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFolderThumbnail::_GetThumbnailPathFromDesktopINI : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CFolderThumbnail::_GetThumbnailPathFromDesktopINI(unsigned short const *

+   __ptr64,unsigned short * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CFolderThumbnail::_GetThumbnailPathFromDesktopINI

+          (CFolderThumbnail *this,ushort *param_1,ushort **param_2)

+

+{

+  int iVar1;

+  long lVar2;

+  long lVar3;

+  ushort **ppuVar4;

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+  *this_00;

+  wchar_t *pwVar5;

+  LPVOID pvVar6;

+  ushort *puVar7;

+  CACHEDPRIVATEPROFILEFLAGS CVar8;

+  undefined1 auStackY_68 [32];

+  ushort *local_38;

+  LPVOID local_30;

+  ushort *local_28;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStackY_68;

+  lVar3 = -0x7fffbffb;

+  *param_2 = (ushort *)0x0;

+  local_28 = (ushort *)0x0;

+  ppuVar4 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_28);

+  CVar8 = (CACHEDPRIVATEPROFILEFLAGS)ppuVar4;

+  puVar7 = (ushort *)&DAT_0;

+  pwVar5 = L"desktop.ini";

+  iVar1 = PathAllocCombine(param_1);

+  if (-1 < iVar1) {

+    local_30 = (LPVOID)0x0;

+    this_00 = (unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+               *)&local_30;

+    ppuVar4 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put(this_00);

+    lVar2 = SHGetPrivateProfileStringAlloc

+                      ((ushort *)this_00,(ushort *)pwVar5,puVar7,CVar8,local_28,ppuVar4);

+    if (-1 < lVar2) {

+      local_38 = (ushort *)0x0;

+      ppuVar4 = wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                       *)&local_38);

+      pvVar6 = local_30;

+      iVar1 = PathAllocCombine(param_1,local_30,1,ppuVar4);

+      if (-1 < iVar1) {

+        lVar3 = _AllocString<CTCoAllocPolicy>(param_1,(ulong)pvVar6,local_38,param_2);

+      }

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&local_38);

+    }

+    if (local_30 != (LPVOID)0x0) {

+      CoTaskMemFree(local_30);

+    }

+  }

+  if (local_28 != (ushort *)0x0) {

+    LocalFree(local_28);

+  }

+  return lVar3;

+}

+
```

## `CFSTransfer::_StampMotWOnDestFileIfNeeded`  (modified)

```diff
--- CFSTransfer::_StampMotWOnDestFileIfNeeded
+++ CFSTransfer::_StampMotWOnDestFileIfNeeded
@@ -1,2 +1,50 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSTransfer::_StampMotWOnDestFileIfNeeded : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: void __cdecl CFSTransfer::_StampMotWOnDestFileIfNeeded(void) __ptr64 */

+

+void __thiscall CFSTransfer::_StampMotWOnDestFileIfNeeded(CFSTransfer *this)

+

+{

+  bool bVar1;

+  long lVar2;

+  int iVar3;

+  BOOL BVar4;

+  IUnknown *in_RDX;

+  IUnknown *pIVar5;

+  undefined1 auStack_48 [32];

+  ulong local_28;

+  ulong local_24;

+  _FILETIME local_20;

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_48;

+  if (this[0x89] != (CFSTransfer)0x0) {

+    local_24 = 0xffffffff;

+    lVar2 = SHMapUrlToZone(*(ushort **)(this + 0xd8),in_RDX,0x400,&local_24);

+    if ((-1 < lVar2) && (bVar1 = _ShouldAddMotWTag(this,local_24), bVar1)) {

+      pIVar5 = *(IUnknown **)(this + 0x110);

+      local_28 = 0xffffffff;

+      iVar3 = (**(code **)(**(longlong **)(this + 0x98) + 0x28))

+                        (*(longlong **)(this + 0x98),pIVar5,2);

+      if ((-1 < iVar3) &&

+         (lVar2 = SHMapUrlToZoneEx(*(ushort **)(this + 0x110),pIVar5,0x400,&local_28), lVar2 < 0)) {

+        local_28 = 0xffffffff;

+      }

+      if (((local_28 == 0xffffffff) || (local_28 < local_24)) &&

+         (iVar3 = (**(code **)(**(longlong **)(this + 0xa0) + 0x20))(), -1 < iVar3)) {

+        local_20.dwLowDateTime = 0;

+        local_20.dwHighDateTime = 0;

+        BVar4 = GetFileTime(*(HANDLE *)(this + 0x70),(LPFILETIME)0x0,(LPFILETIME)0x0,&local_20);

+        iVar3 = (**(code **)(**(longlong **)(this + 0x98) + 0x30))

+                          (*(longlong **)(this + 0x98),*(undefined8 *)(this + 0x110),1);

+        if ((-1 < iVar3) && (BVar4 != 0)) {

+          SetFileTime(*(HANDLE *)(this + 0x70),(FILETIME *)0x0,(FILETIME *)0x0,&local_20);

+        }

+      }

+    }

+  }

+  return;

+}

+
```

## ``anonymous_namespace'::ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>::Get`  (modified)

```diff
--- `anonymous_namespace'::ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>::Get
+++ `anonymous_namespace'::ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>::Get
@@ -1,2 +1,140 @@
-Failed to decompile windows.storage.dll - .ProgramDB `anonymous_namespace'::ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>::Get : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+

+longlong *

+`anonymous_namespace'::

+ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>

+::Get(undefined8 param_1,longlong *param_2,

+     tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+     *param_3)

+

+{

+  int *piVar1;

+  longlong lVar2;

+  char *pcVar3;

+  longlong lVar4;

+  undefined1 auStack_c8 [32];

+  longlong local_a8;

+  longlong local_a0 [2];

+  tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+  *local_90;

+  undefined *local_88;

+  hstring local_80 [32];

+  longlong *local_60;

+  longlong local_58;

+  _Ref_count_base *local_50;

+  longlong local_48;

+  _Ref_count_base *local_40;

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_c8;

+  local_90 = param_3;

+  local_60 = param_2;

+  WINRT_IMPL_AcquireSRWLockExclusive((PSRWLOCK)&DAT_0);

+  std::weak_ptr<GraphRecentItemsManager::InstanceManager>::lock

+            ((weak_ptr<GraphRecentItemsManager::InstanceManager> *)&DAT_1);

+  if (local_58 == 0) {

+    if (local_50 != (_Ref_count_base *)0x0) {

+      std::_Ref_count_base::_Decref(local_50);

+    }

+    WINRT_IMPL_ReleaseSRWLockExclusive((PSRWLOCK)&DAT_0);

+    local_88 = &DAT_0;

+    WINRT_IMPL_AcquireSRWLockExclusive((PSRWLOCK)&DAT_0);

+    std::weak_ptr<GraphRecentItemsManager::InstanceManager>::lock

+              ((weak_ptr<GraphRecentItemsManager::InstanceManager> *)&DAT_1);

+    if (local_48 == 0) {

+      if (local_40 != (_Ref_count_base *)0x0) {

+        std::_Ref_count_base::_Decref(local_40);

+      }

+      if (DAT_2 == '\0') {

+        winrt::

+        make_self<__anonymous_namespace_::ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>::Get_::__l2::Holder>

+                  (local_a0);

+        DAT_2 = '\x01';

+        winrt::Windows::ApplicationModel::Core::CoreApplication::Properties();

+        lVar2 = local_a0[0];

+        winrt::

+        implements<``anonymous_namespace'::ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>::Get'::__l2::Holder,winrt::Windows::Foundation::IInspectable>

+        ::operator_winrt::Windows::Foundation::IInspectable(local_a0[0],&local_a8);

+        winrt::param::hstring::hstring

+                  (local_80,(ushort *)L"GraphRecentItemsManager::InstanceManager");

+        winrt::impl::

+        consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+        ::Insert((consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+                  *)&local_60,local_80,(IInspectable *)&local_a8);

+        if (local_a8 != 0) {

+          winrt::

+          com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>::

+          unconditional_release_ref

+                    ((com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>

+                      *)&local_a8);

+        }

+        std::weak_ptr<GraphRecentItemsManager::InstanceManager>::

+        operator=<GraphRecentItemsManager::InstanceManager,0>

+                  ((weak_ptr<GraphRecentItemsManager::InstanceManager> *)&DAT_1,

+                   (shared_ptr<GraphRecentItemsManager::InstanceManager> *)(lVar2 + 0x18));

+        pcVar3 = tip2::details::reason_string

+                           ("GraphFilesTip::GetInstanceManagerTestReason::new_instance_created");

+        tip2::

+        tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+        ::set_flag(param_3,2,pcVar3);

+        *param_2 = 0;

+        param_2[1] = 0;

+        lVar4 = lVar2;

+        if (*(longlong *)(lVar2 + 0x20) != 0) {

+          LOCK();

+          piVar1 = (int *)(*(longlong *)(lVar2 + 0x20) + 8);

+          *piVar1 = *piVar1 + 1;

+          UNLOCK();

+          lVar4 = local_a0[0];

+        }

+        *param_2 = *(longlong *)(lVar2 + 0x18);

+        param_2[1] = *(longlong *)(lVar2 + 0x20);

+        winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+                  ((ICoreApplicationPrivate *)&local_60);

+        if (lVar4 != 0) {

+          winrt::

+          com_ptr<``anonymous_namespace'::ComSingleton<GraphRecentItemsManager::InstanceSingleton,GraphRecentItemsManager::InstanceManager,1>::Get'::__l2::Holder>

+          ::unconditional_release_ref(local_a0);

+        }

+      }

+      else {

+        pcVar3 = tip2::details::reason_string

+                           ("GraphFilesTip::GetInstanceManagerTestReason::instance_expired");

+        tip2::

+        tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+        ::set_flag(param_3,3,pcVar3);

+        *param_2 = 0;

+        param_2[1] = 0;

+      }

+    }

+    else {

+      pcVar3 = tip2::details::reason_string

+                         ("GraphFilesTip::GetInstanceManagerTestReason::existing_instance_retrieved"

+                         );

+      tip2::

+      tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+      ::set_flag(param_3,1,pcVar3);

+      *param_2 = local_48;

+      param_2[1] = (longlong)local_40;

+    }

+  }

+  else {

+    pcVar3 = tip2::details::reason_string

+                       ("GraphFilesTip::GetInstanceManagerTestReason::existing_instance_retrieved");

+    tip2::

+    tip_test<tip2::details::merged_data<GraphFilesTip::_tip_GetInstanceManagerTest_attributes,tip2::test_data_basic>_>

+    ::set_flag(param_3,1,pcVar3);

+    *param_2 = local_58;

+    param_2[1] = (longlong)local_50;

+  }

+  WINRT_IMPL_ReleaseSRWLockExclusive((PSRWLOCK)&DAT_0);

+  wil::

+  com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+            ((com_ptr_t<tip2::details::merged_data<_tip_DesktopRegItemCacheBuildTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+              *)param_3);

+  return param_2;

+}

+
```

## `fc::config_property<bool,fc::details::minmax<bool,0>_>::ensure_store_initialized`  (modified)

```diff
--- fc::config_property<bool,fc::details::minmax<bool,0>_>::ensure_store_initialized
+++ fc::config_property<bool,fc::details::minmax<bool,0>_>::ensure_store_initialized
@@ -1,2 +1,16 @@
-Failed to decompile windows.storage.dll - .ProgramDB fc::config_property<bool,fc::details::minmax<bool,0>_>::ensure_store_initialized : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* protected: virtual bool __cdecl fc::config_property<bool,struct fc::details::minmax<bool,0>

+   >::ensure_store_initialized(void) __ptr64 */

+

+bool __thiscall

+fc::config_property<bool,fc::details::minmax<bool,0>_>::ensure_store_initialized

+          (config_property<bool,fc::details::minmax<bool,0>_> *this)

+

+{

+  bool bVar1;

+  

+  bVar1 = config_property_base::ensure_initialized_without_impression

+                    ((config_property_base *)(this + 8));

+  return bVar1;

+}

+
```

## `wil::details::ResultFromCaughtException_CppWinRt`  (modified)

```diff
--- wil::details::ResultFromCaughtException_CppWinRt
+++ wil::details::ResultFromCaughtException_CppWinRt
@@ -1,2 +1,16 @@
-Failed to decompile windows.storage.dll - .ProgramDB wil::details::ResultFromCaughtException_CppWinRt : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* long __cdecl wil::details::ResultFromCaughtException_CppWinRt(unsigned short * __ptr64,unsigned

+   __int64,bool * __ptr64) */

+

+long __cdecl

+wil::details::ResultFromCaughtException_CppWinRt(ushort *param_1,__uint64 param_2,bool *param_3)

+

+{

+  if (g_pfnResultFromCaughtException == (_func_long *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    _CxxThrowException((void *)0x0,(ThrowInfo *)0x0);

+  }

+                    /* WARNING: Subroutine does not return */

+  _CxxThrowException((void *)0x0,(ThrowInfo *)0x0);

+}

+
```

## `RegDataDrivenCommand::~RegDataDrivenCommand`  (modified)

```diff
--- RegDataDrivenCommand::~RegDataDrivenCommand
+++ RegDataDrivenCommand::~RegDataDrivenCommand
@@ -1,2 +1,55 @@
-Failed to decompile windows.storage.dll - .ProgramDB RegDataDrivenCommand::~RegDataDrivenCommand : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: virtual __cdecl RegDataDrivenCommand::~RegDataDrivenCommand(void) __ptr64 */

+

+void __thiscall RegDataDrivenCommand::~RegDataDrivenCommand(RegDataDrivenCommand *this)

+

+{

+  *(undefined ***)this = &_vftable_;

+  *(undefined ***)(this + 8) =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<BaseDataDrivenCommand,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>_>__

+  ;

+  *(undefined ***)(this + 0x20) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+        ::_vftable__for__IObjectWithSelection__;

+  *(undefined ***)(this + 0x28) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IObjectWithAssociationElement,IExplorerCommand,IExplorerCommand2>__

+  ;

+  *(undefined ***)(this + 0x30) = &_vftable__for__IExplorerCommand__;

+  *(undefined ***)(this + 0x38) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IExplorerCommand2>__

+  ;

+  *(undefined ***)(this + 0x78) =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>_>__

+  ;

+  *(undefined ***)(this + 0x80) = &_vftable__for__IRegDataDrivenCommand__;

+  *(undefined ***)(this + 0x88) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IHandlerInfo,IHandlerInfo2,IServiceProvider>__

+  ;

+  *(undefined ***)(this + 0x90) = &_vftable__for__IHandlerInfo2__;

+  *(undefined ***)(this + 0x98) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IServiceProvider>__

+  ;

+  if (*(HKEY *)(this + 200) != (HKEY)0x0) {

+    RegCloseKey(*(HKEY *)(this + 200));

+  }

+  CDSA_Base<_GUID>::Destroy((CDSA_Base<_GUID> *)(this + 0xb8));

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)(this + 0xc0));

+  CCoTaskMemPtr<_FILE_RENAME_INFO>::~CCoTaskMemPtr<_FILE_RENAME_INFO>

+            ((CCoTaskMemPtr<_FILE_RENAME_INFO> *)(this + 0xb0));

+  Microsoft::WRL::

+  RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  ::

+  ~RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+            ((RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+              *)this);

+  return;

+}

+
```

## `tip2::details::shared_data<0,0,0>::log_failure`  (modified)

```diff
--- tip2::details::shared_data<0,0,0>::log_failure
+++ tip2::details::shared_data<0,0,0>::log_failure
@@ -1,2 +1,37 @@
-Failed to decompile windows.storage.dll - .ProgramDB tip2::details::shared_data<0,0,0>::log_failure : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl tip2::details::shared_data<0,0,0>::log_failure(struct wil::FailureInfo

+   const & __ptr64) __ptr64 */

+

+void __thiscall

+tip2::details::shared_data<0,0,0>::log_failure(shared_data<0,0,0> *this,FailureInfo *param_1)

+

+{

+  bool bVar1;

+  StoredFailureInfo local_b8 [152];

+  shared_buffer local_20 [24];

+  

+  bVar1 = shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)this);

+  if (bVar1) {

+    bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>

+                                 *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::GetImpl(void)'

+                                    ::__l2::impl);

+    if (bVar1) {

+      while (9 < *(ulonglong *)(this + 0x58)) {

+        vector_nothrow<wil::StoredFailureInfo>::erase

+                  ((vector_nothrow<wil::StoredFailureInfo> *)(this + 0x48),

+                   *(StoredFailureInfo **)(this + 0x48));

+      }

+    }

+    wil::StoredFailureInfo::StoredFailureInfo(local_b8,param_1);

+    bVar1 = vector_nothrow<wil::StoredFailureInfo>::push_back

+                      ((vector_nothrow<wil::StoredFailureInfo> *)(this + 0x48),local_b8);

+    wil::details::shared_buffer::reset(local_20);

+    if (!bVar1) {

+      *(uint *)(this + 0x40) = *(uint *)(this + 0x40) | 0x100000;

+    }

+  }

+  end_update(this);

+  return;

+}

+
```

## `fc::config_value<bool,fc::details::minmax<bool,0>_>::generate_suppressed_impressions`  (modified)

```diff
--- fc::config_value<bool,fc::details::minmax<bool,0>_>::generate_suppressed_impressions
+++ fc::config_value<bool,fc::details::minmax<bool,0>_>::generate_suppressed_impressions
@@ -1,2 +1,13 @@
-Failed to decompile windows.storage.dll - .ProgramDB fc::config_value<bool,fc::details::minmax<bool,0>_>::generate_suppressed_impressions : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* protected: virtual void __cdecl fc::config_value<bool,struct fc::details::minmax<bool,0>

+   >::generate_suppressed_impressions(void) __ptr64 */

+

+void __thiscall

+fc::config_value<bool,fc::details::minmax<bool,0>_>::generate_suppressed_impressions

+          (config_value<bool,fc::details::minmax<bool,0>_> *this)

+

+{

+  config_property_base::report_explicit_impression_if_cached((config_property_base *)(this + 8));

+  return;

+}

+
```

## `CInternetFolderIconHandler::CInternetFolderIconHandler`  (modified)

```diff
--- CInternetFolderIconHandler::CInternetFolderIconHandler
+++ CInternetFolderIconHandler::CInternetFolderIconHandler
@@ -1,2 +1,32 @@
-Failed to decompile windows.storage.dll - .ProgramDB CInternetFolderIconHandler::CInternetFolderIconHandler : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: __cdecl CInternetFolderIconHandler::CInternetFolderIconHandler(unsigned short const *

+   __ptr64) __ptr64 */

+

+CInternetFolderIconHandler * __thiscall

+CInternetFolderIconHandler::CInternetFolderIconHandler

+          (CInternetFolderIconHandler *this,ushort *param_1)

+

+{

+  int iVar1;

+  undefined4 uVar2;

+  undefined **ppuVar3;

+  

+  Microsoft::WRL::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,IExtractIconW>::

+  RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,IExtractIconW>

+            ((RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,IExtractIconW> *)this);

+  *(undefined ***)this = &_vftable_;

+  ppuVar3 = &PTR_u__accdb_1806a9ad0;

+  do {

+    iVar1 = CompareStringOrdinal((LPCWSTR)*ppuVar3,-1,(LPCWSTR)param_1,-1,1);

+    if (iVar1 == 2) {

+      uVar2 = *(undefined4 *)(ppuVar3 + 1);

+      goto LAB_0;

+    }

+    ppuVar3 = ppuVar3 + 2;

+  } while (ppuVar3 != &PTR_u_System_ItemName_1806a9ed0);

+  uVar2 = 0;

+LAB_0:

+  *(undefined4 *)(this + 0x10) = uVar2;

+  return this;

+}

+
```

## `CDefCollection::_UpdateItem`  (modified)

```diff
--- CDefCollection::_UpdateItem
+++ CDefCollection::_UpdateItem
@@ -1,116 +1,125 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

+/* private: int __cdecl CDefCollection::_UpdateItem(struct _ITEMID_CHILD const __unaligned *

+   __ptr64,struct tagITEMKEY const * __ptr64,struct _ITEMID_CHILD const __unaligned * __ptr64)

+   __ptr64 */

 

 int __thiscall

-CMarshaledInterface::_UpdateItem

+CDefCollection::_UpdateItem

           (CDefCollection *this,_ITEMID_CHILD *param_1,tagITEMKEY *param_2,_ITEMID_CHILD *param_3)

 

 {

-  undefined1 in_AL;

-  long lVar1;

+  int i;

+  bool bVar1;

   int iVar2;

-  IViewStateInfo *pIVar3;

-  char unaff_BL;

-  longlong unaff_RBP;

-  tagITEMKEY *unaff_RSI;

-  CDefCollection *unaff_RDI;

-  short sVar4;

-  IViewStateInfo *unaff_R13;

-  char unaff_R14B;

-  int unaff_R15D;

-  char in_ZF;

-  IViewStateInfo *in_stack_00000020;

-  IPropertyStore *in_stack_00000028;

-  IShellFolder2 *in_stack_00000030;

-  _ITEMID_CHILD *in_stack_00000038;

-  int *in_stack_00000040;

-  tagPROPVARIANT *in_stack_00000048;

-  int iVar5;

+  int iVar3;

+  long lVar4;

+  tagITEMKEY *ptVar5;

+  ushort **ppuVar6;

+  ITEM_CHANGED_TYPE IVar7;

+  uint uVar8;

+  ulong uVar9;

+  undefined8 uVar10;

+  long lVar11;

+  void *unaff_retaddr;

+  undefined1 auStackY_88 [32];

+  undefined8 local_58;

+  ushort *local_50;

+  ulonglong local_48;

   

-  if (this + -1 == (CDefCollection *)0x0 || in_ZF == '\0') {

-    unaff_R15D = (int)CONCAT62((int6)((ulonglong)param_1 >> 0x10),CONCAT11(in_AL,(char)param_1));

-    unaff_R13 = (IViewStateInfo *)0x0;

-    *(undefined8 *)param_3 = 0;

-    unaff_BL = '\0';

-    *(undefined2 *)(unaff_RBP + 7) = 0;

-    param_1 = (_ITEMID_CHILD *)(this + 0x17);

-    in_stack_00000048 = (tagPROPVARIANT *)(unaff_RBP + 7);

-    in_stack_00000040 = (int *)0x0;

-    in_stack_00000038 = (_ITEMID_CHILD *)0x0;

-    in_stack_00000030 = (IShellFolder2 *)0x0;

-    in_stack_00000020 = (IViewStateInfo *)0x0;

-    param_3 = (_ITEMID_CHILD *)&DAT_0;

-    param_2 = (tagITEMKEY *)&PKEY_IsIconStream;

-    unaff_RSI = (tagITEMKEY *)param_1;

-    unaff_RDI = this + -1;

+  local_48 = __security_cookie ^ (ulonglong)auStackY_88;

+  local_50 = (ushort *)CONCAT44(local_50._4_4_,0xffffffff);

+  local_58 = local_58 & 0xffffffff00000000;

+  ppuVar6 = &local_50;

+  iVar3 = _FindItem(this,param_1,param_2,(int *)ppuVar6,(int *)&local_58);

+  lVar11 = (long)ppuVar6;

+  iVar2 = (int)local_50;

+  i = (int)local_58;

+  if (iVar3 == 0) goto LAB_0;

+  ptVar5 = _GetItemKey(this,(int)local_50,(int)local_58);

+  uVar10 = *(undefined8 *)ptVar5;

+  local_58 = uVar10;

+  if (*(longlong *)(this + 0x220) != 0) {

+    _RecordChange(this,2,(tagITEMKEY *)&local_58,param_3);

+    goto LAB_0;

   }

-  lVar1 = ItemStore_GetProperty

-                    (*(IItemStore **)(this + 0xf),(tagITEMKEY *)param_1,(_tagpropertykey *)param_2,

-                     (GIPTYPE)param_3,in_stack_00000020,in_stack_00000028,in_stack_00000030,

-                     in_stack_00000038,in_stack_00000040,in_stack_00000048);

-  sVar4 = (short)unaff_R13;

-  iVar5 = (int)unaff_R13;

-  if (((-1 < lVar1) && (*(int *)(unaff_RBP + -0x39) = iVar5, *(short *)(unaff_RBP + 7) != sVar4)) &&

-     (iVar2 = PropVariantToBoolean(unaff_RBP + 7,unaff_RBP + -0x39), -1 < iVar2)) {

-    unaff_BL = *(int *)(unaff_RBP + -0x39) != iVar5;

+  bVar1 = true;

+  *(int *)(this + 0x1d4) = *(int *)(this + 0x1d4) + 1;

+  iVar3 = _IsViewStacked(this);

+  IVar7 = (ITEM_CHANGED_TYPE)uVar10;

+  if (iVar3 == 0) {

+    ptVar5 = (tagITEMKEY *)&local_58;

+    iVar3 = IsFilteredItem(*(IItemStore **)(this + 0xc0),ptVar5);

+    IVar7 = (ITEM_CHANGED_TYPE)ptVar5;

+    if (iVar3 == 0) goto LAB_1;

   }

-  if ((unaff_R14B != '\0') && (unaff_BL == '\0')) {

-    lVar1 = -0x7ff8fb70;

-    goto LAB_1;

+  else {

+LAB_1:

+    bVar1 = false;

   }

-  *(short *)(unaff_RBP + -0x11) = sVar4;

-  lVar1 = ItemStore_GetProperty

-                    (*(IItemStore **)(unaff_RDI + 0x10),unaff_RSI,(_tagpropertykey *)&PKEY_ImageSize

-                     ,1,unaff_R13,in_stack_00000028,(IShellFolder2 *)unaff_R13,

-                     (_ITEMID_CHILD *)unaff_R13,(int *)unaff_R13,

-                     (tagPROPVARIANT *)(unaff_RBP + -0x11));

-  if (-1 < lVar1) {

-    *(int *)(unaff_RBP + -0x39) = iVar5;

-    if (*(short *)(unaff_RBP + -0x11) == sVar4) {

+  if (-1 < iVar2) {

+    _FireItemChanging(this,IVar7,(tagITEMKEY *)&local_58);

+    _OnDeleteViewItem(this,(tagITEMKEY *)&local_58,(-(uint)bVar1 & 0xfffffff6) + 0xf);

+  }

+  if (((int)local_58 == *(int *)(this + 0x2e8)) && (local_58._4_4_ == *(int *)(this + 0x2ec))) {

+    *(undefined8 *)(this + 0x2e8) = 0xffffffff;

+    local_50 = (ushort *)0x0;

+    ppuVar6 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_50);

+    lVar4 = _GetInfotip(this,(tagITEMKEY *)&local_58,ppuVar6);

+    if (lVar4 != -0x7ffffff6) {

+      if (lVar4 < 0) {

+        uVar8 = 0x1767;

+      }

+      else {

+        lVar4 = OnQIUpdateInfotip(this + 0x10,(tagITEMKEY *)&local_58,local_50);

+        if (-1 < lVar4) goto LAB_2;

+        uVar8 = 0x176b;

+      }

+      lVar11 = lVar4;

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,uVar8,"onecoreuap\\shell\\windows.storage\\defcollection.cpp",lVar4);

+    }

 LAB_2:

-      lVar1 = -0x7ff8fb70;

-    }

-    else {

-      lVar1 = PropVariantToInt32(unaff_RBP + -0x11,unaff_RBP + -0x39);

-      if (-1 < lVar1) {

-        if (*(int *)(unaff_RBP + -0x39) != unaff_R15D) goto LAB_2;

-        *(short *)(unaff_RBP + -0x29) = sVar4;

-        lVar1 = ItemStore_GetProperty

-                          (*(IItemStore **)(unaff_RDI + 0x10),unaff_RSI,

-                           (_tagpropertykey *)&PKEY_ThumbnailStream,1,unaff_R13,in_stack_00000028,

-                           (IShellFolder2 *)unaff_R13,(_ITEMID_CHILD *)unaff_R13,(int *)unaff_R13,

-                           (tagPROPVARIANT *)(unaff_RBP + -0x29));

-        if (-1 < lVar1) {

-          *(IViewStateInfo **)(unaff_RBP + -0x31) = unaff_R13;

-          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

-                    ((ComPtr<IQuerySource> *)(unaff_RBP + -0x31));

-          *(IViewStateInfo **)(unaff_RBP + -0x31) = unaff_R13;

-          lVar1 = -0x7fffbffe;

-          if ((*(short *)(unaff_RBP + -0x29) == 0xd) ||

-             (pIVar3 = unaff_R13, *(short *)(unaff_RBP + -0x29) == 0x42)) {

-            lVar1 = (**(code **)**(undefined8 **)(unaff_RBP + -0x21))

-                              (*(undefined8 **)(unaff_RBP + -0x21),

-                               &_GUID_0000000c_0000_0000_c000_000000000046,unaff_RBP + -0x31);

-            pIVar3 = *(IViewStateInfo **)(unaff_RBP + -0x31);

-          }

-          if (-1 < lVar1) {

-            lVar1 = (**(code **)(*(longlong *)pIVar3 + 0x68))();

-            pIVar3 = *(IViewStateInfo **)(unaff_RBP + -0x31);

-          }

-          if (pIVar3 != (IViewStateInfo *)0x0) {

-            *(IViewStateInfo **)(unaff_RBP + -0x31) = unaff_R13;

-            (**(code **)(*(longlong *)pIVar3 + 0x10))();

-          }

-        }

-        PropVariantClear((PROPVARIANT *)(unaff_RBP + -0x29));

-      }

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_50);

+  }

+  ItemStore_SetItemAndFlags(*(undefined8 *)(this + 0xc0),&local_58);

+  iVar3 = (int)param_3;

+  ItemStore_MarkPropertyCacheDirty(*(IItemStore **)(this + 0xc0),(tagITEMKEY *)&local_58);

+  if (iVar2 < 0) {

+    if (((-1 < i) && (!bVar1)) &&

+       (iVar3 = _InsertItemInView(this,(tagITEMKEY *)&local_58,1), iVar3 != -1)) {

+      DSA_DeleteItem(*(HDSA *)(this + 0x300),i);

     }

   }

-  PropVariantClear((PROPVARIANT *)(unaff_RBP + -0x11));

-LAB_1:

-  PropVariantClear((PROPVARIANT *)(unaff_RBP + 7));

-  return lVar1;

+  else if (bVar1) {

+    *(undefined4 *)(this + 0x19c) = 1;

+    _RemoveItemFromView(this,iVar2,1);

+    *(undefined4 *)(this + 0x19c) = 0;

+  }

+  else {

+    _OnUpdateViewItem(this,(tagITEMKEY *)&local_58,iVar3,lVar11,1);

+    ptVar5 = (tagITEMKEY *)&local_58;

+    uVar9 = 2;

+    _FireItemChanged(this,2,ptVar5);

+    FireNotifyWinEvent<CEventSinkContainer>

+              ((CEventSinkContainer *)(this + 0x278),uVar9,(int)ptVar5,lVar11);

+  }

+  iVar3 = _IsViewStacked(this);

+  if (iVar3 == 0) {

+    _FilterItem(this,local_58);

+  }

+LAB_0:

+  if (-1 < iVar2) {

+    i = iVar2;

+  }

+  return i;

 }
```

## `StateRepoVerbsCache::AddVerbForExtension`  (modified)

```diff
--- StateRepoVerbsCache::AddVerbForExtension
+++ StateRepoVerbsCache::AddVerbForExtension
@@ -1,2 +1,156 @@
-Failed to decompile windows.storage.dll - .ProgramDB StateRepoVerbsCache::AddVerbForExtension : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Type propagation algorithm not settling */

+/* private: long __cdecl StateRepoVerbsCache::AddVerbForExtension(struct

+   winrt::Windows::Internal::StateRepository::Application const & __ptr64,struct

+   winrt::Windows::Foundation::Collections::PropertySet const & __ptr64,class CCoSimpleArray<struct

+   StateRepoHelpers::ExplorerCommandVerb * __ptr64,4294967294,class

+   CSimpleArrayStandardCompareHelper<struct StateRepoHelpers::ExplorerCommandVerb * __ptr64> > *

+   __ptr64) __ptr64 */

+

+long __thiscall

+StateRepoVerbsCache::AddVerbForExtension

+          (StateRepoVerbsCache *this,Application *param_1,PropertySet *param_2,

+          CCoSimpleArray<StateRepoHelpers::ExplorerCommandVerb*___ptr64,4294967294,CSimpleArrayStandardCompareHelper<StateRepoHelpers::ExplorerCommandVerb*___ptr64>_>

+          *param_3)

+

+{

+  undefined8 *puVar1;

+  longlong lVar2;

+  long lVar3;

+  ushort *puVar4;

+  unique_ptr<struct_StateRepoHelpers::ExplorerCommandVerb,struct_std::default_delete<struct_StateRepoHelpers::ExplorerCommandVerb>_>

+  *puVar5;

+  _GUID *p_Var6;

+  void *unaff_retaddr;

+  undefined1 auStack_c8 [32];

+  _GUID local_a8;

+  unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+  local_98 [8];

+  hstring local_90 [32];

+  hstring local_70 [32];

+  longlong local_50;

+  IInspectable local_48 [8];

+  IInspectable local_40 [8];

+  hstring local_38 [8];

+  _GUID local_30;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStack_c8;

+  winrt::param::hstring::hstring(local_90,(ushort *)L"@Id");

+  winrt::impl::

+  consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+  ::Lookup((consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+            *)param_2,(hstring *)&local_50);

+  winrt::unbox_value<winrt::hstring>(local_40);

+  if (local_50 != 0) {

+    winrt::com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>::

+    unconditional_release_ref

+              ((com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>

+                *)&local_50);

+  }

+  winrt::param::hstring::hstring(local_70,(ushort *)L"@Clsid");

+  winrt::impl::

+  consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+  ::Lookup((consume_Windows_Foundation_Collections_IMap<winrt::Windows::Foundation::Collections::IPropertySet,winrt::hstring,winrt::Windows::Foundation::IInspectable>

+            *)param_2,(hstring *)&local_a8);

+  winrt::unbox_value<winrt::hstring>(local_48);

+  if ((ushort *)local_a8._0_8_ != (ushort *)0x0) {

+    winrt::com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>::

+    unconditional_release_ref

+              ((com_ptr<winrt::impl::abi<winrt::Windows::Foundation::IActivationFactory,void>::type>

+                *)&local_a8);

+  }

+  local_30.Data1 = 0;

+  local_30.Data2 = 0;

+  local_30.Data3 = 0;

+  local_30.Data4[0] = '\0';

+  local_30.Data4[1] = '\0';

+  local_30.Data4[2] = '\0';

+  local_30.Data4[3] = '\0';

+  local_30.Data4[4] = '\0';

+  local_30.Data4[5] = '\0';

+  local_30.Data4[6] = '\0';

+  local_30.Data4[7] = '\0';

+  puVar4 = winrt::hstring::c_str((hstring *)local_48);

+  lVar3 = StateRepoHelpers::ParseCLSID(puVar4,&local_30);

+  if (lVar3 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x21c,"onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp",

+               lVar3);

+    winrt::handle_type<winrt::impl::hstring_traits>::close

+              ((handle_type<winrt::impl::hstring_traits> *)local_48);

+    winrt::handle_type<winrt::impl::hstring_traits>::close

+              ((handle_type<winrt::impl::hstring_traits> *)local_40);

+    return lVar3;

+  }

+  winrt::impl::

+  consume_Windows_Internal_StateRepository_IApplication<winrt::Windows::Internal::StateRepository::IApplication>

+  ::ApplicationUserModelId

+            ((consume_Windows_Internal_StateRepository_IApplication<winrt::Windows::Internal::StateRepository::IApplication>

+              *)param_1);

+  local_50 = 0;

+  local_a8._0_8_ = winrt::hstring::c_str((hstring *)local_40);

+  local_a8.Data4 = (uchar  [8])winrt::hstring::c_str(local_38);

+  p_Var6 = &local_a8;

+  puVar5 = (unique_ptr<struct_StateRepoHelpers::ExplorerCommandVerb,struct_std::default_delete<struct_StateRepoHelpers::ExplorerCommandVerb>_>

+            *)std::

+              make_unique<StateRepoHelpers::ExplorerCommandVerb,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,_GUID&___ptr64,0>

+                        ((ushort **)local_98,(ushort **)local_a8.Data4,p_Var6);

+  std::

+  unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+  ::operator=<std::default_delete<StateRepoHelpers::ExplorerCommandVerb>,0>

+            ((unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+              *)&local_50,puVar5);

+  std::

+  unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+  ::

+  ~unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+            (local_98);

+  lVar3 = 0;

+  if ((*(longlong *)(param_3 + 8) != *(longlong *)(param_3 + 0x18)) ||

+     (lVar3 = CTSimpleArray<Microsoft::WRL::ComPtr<CRefCountedObject<Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>_>_>,4294967294,CTPolicyCoTaskMem<Microsoft::WRL::ComPtr<CRefCountedObject<Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>_>_>_>,CSimpleArrayStandardCompareHelper<Microsoft::WRL::ComPtr<CRefCountedObject<Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>_>_>_>,CSimpleArrayStandardMergeHelper<Microsoft::WRL::ComPtr<CRefCountedObject<Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>_>_>_>_>

+              ::_EnsureCapacity((CTSimpleArray<Microsoft::WRL::ComPtr<CRefCountedObject<Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>_>_>,4294967294,CTPolicyCoTaskMem<Microsoft::WRL::ComPtr<CRefCountedObject<Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>_>_>_>,CSimpleArrayStandardCompareHelper<Microsoft::WRL::ComPtr<CRefCountedObject<Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>_>_>_>,CSimpleArrayStandardMergeHelper<Microsoft::WRL::ComPtr<CRefCountedObject<Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>_>_>_>_>

+                                 *)param_3,*(longlong *)(param_3 + 8) + 1,(__uint64)p_Var6),

+     -1 < lVar3)) {

+    lVar2 = *(longlong *)(param_3 + 8);

+    *(longlong *)(param_3 + 8) = lVar2 + 1;

+    puVar1 = (undefined8 *)(*(longlong *)param_3 + lVar2 * 8);

+    if (puVar1 == (undefined8 *)0x0) goto LAB_0;

+    *puVar1 = local_50;

+  }

+  if (lVar3 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x233,"onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp",

+               lVar3);

+    std::

+    unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+    ::

+    ~unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+              ((unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+                *)&local_50);

+    winrt::handle_type<winrt::impl::hstring_traits>::close

+              ((handle_type<winrt::impl::hstring_traits> *)local_38);

+    winrt::handle_type<winrt::impl::hstring_traits>::close

+              ((handle_type<winrt::impl::hstring_traits> *)local_48);

+    winrt::handle_type<winrt::impl::hstring_traits>::close

+              ((handle_type<winrt::impl::hstring_traits> *)local_40);

+    return lVar3;

+  }

+LAB_0:

+  local_50 = 0;

+  std::

+  unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+  ::

+  ~unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+            ((unique_ptr<StateRepoHelpers::ExplorerCommandVerb,std::default_delete<StateRepoHelpers::ExplorerCommandVerb>_>

+              *)&local_50);

+  winrt::handle_type<winrt::impl::hstring_traits>::close

+            ((handle_type<winrt::impl::hstring_traits> *)local_38);

+  winrt::handle_type<winrt::impl::hstring_traits>::close

+            ((handle_type<winrt::impl::hstring_traits> *)local_48);

+  winrt::handle_type<winrt::impl::hstring_traits>::close

+            ((handle_type<winrt::impl::hstring_traits> *)local_40);

+  return 0;

+}

+
```

## `fc::config_target<WinrtSearchModeProps>::serialize`  (modified)

```diff
--- fc::config_target<WinrtSearchModeProps>::serialize
+++ fc::config_target<WinrtSearchModeProps>::serialize
@@ -1,2 +1,43 @@
-Failed to decompile windows.storage.dll - .ProgramDB fc::config_target<WinrtSearchModeProps>::serialize : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* protected: long __cdecl fc::config_target<struct WinrtSearchModeProps>::serialize(class

+   fc_tson::write_buffer & __ptr64,enum fc_tson::output_flags,unsigned int,char const * __ptr64,char

+   const * __ptr64) __ptr64 */

+

+long __thiscall

+fc::config_target<WinrtSearchModeProps>::serialize

+          (config_target<WinrtSearchModeProps> *this,write_buffer *param_1,output_flags param_2,

+          uint param_3,char *param_4,char *param_5)

+

+{

+  char cVar1;

+  long lVar2;

+  nvpd<fc::details::serialize_config_proxy> *pnVar3;

+  char *_Str1;

+  uchar uVar4;

+  undefined1 auStackY_2a8 [32];

+  config_target<WinrtSearchModeProps> *local_268;

+  char local_260 [88];

+  output_archive local_208 [208];

+  serialize_config_proxy local_138 [256];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_2a8;

+  _Str1 = *(char **)(this + 0x80);

+  if (_Str1 != (char *)0x0) {

+    strncmp(_Str1,"config_",7);

+  }

+  cVar1 = details::change_time_letter

+                    ((change_time)CONCAT71((int7)((ulonglong)_Str1 >> 8),this[0x7e]));

+  uVar4 = 'p';

+  StringCchPrintfA((char *)local_138,0x100,"fc_%d_%c%d_%s",(ulonglong)*(uint *)(this + 0x78));

+  fc_tson::output_archive::output_archive(local_208,param_1,uVar4,param_2 | 9,(int)cVar1);

+  local_268 = this;

+  pnVar3 = (nvpd<fc::details::serialize_config_proxy> *)

+           fc_tson::make_nvpd<fc::details::serialize_config_proxy>

+                     (local_260,local_138,(char *)&local_268,param_5,(nvpd_flags)param_4);

+  fc_tson::save_nothrow<fc::details::serialize_config_proxy>(local_208,pnVar3);

+  lVar2 = fc_tson::output_archive::finish(local_208);

+  return lVar2;

+}

+
```

## `operator==`  (modified)

```diff
--- operator==
+++ std::vector<winrt::Windows::Foundation::Collections::ValueSet,std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>::_Calculate_growth
@@ -1,45 +1,2 @@
-

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-

-int __cdecl operator==(_tagpropertykey *param_1,_tagpropertykey *param_2)

-

-{

-  int *piVar1;

-  longlong *plVar2;

-  long lVar3;

-  ushort *unaff_RBX;

-  longlong unaff_RBP;

-  ICachedPrivateProfile **in_R8;

-  longlong *in_stack_00000040;

-  

-  piVar1 = (int *)(unaff_RBP + 0x44 + (longlong)param_1 * 4);

-  *piVar1 = *piVar1 + -1;

-  lVar3 = SHGetCachedPrivateProfile(unaff_RBX,0,in_R8);

-  plVar2 = in_stack_00000040;

-  if (lVar3 < 0) {

-    if (in_stack_00000040 != (longlong *)0x0) {

-      in_stack_00000040 = (longlong *)0x0;

-      (**(code **)(*plVar2 + 0x10))();

-    }

-  }

-  else {

-    lVar3 = (**(code **)(*in_stack_00000040 + 0x30))

-                      (in_stack_00000040,L".ShellClassInfo",L"Logo",0,0);

-    plVar2 = in_stack_00000040;

-    if (lVar3 < 0) {

-      if (in_stack_00000040 != (longlong *)0x0) {

-        in_stack_00000040 = (longlong *)0x0;

-        (**(code **)(*plVar2 + 0x10))();

-      }

-    }

-    else {

-      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

-                ((ComPtr<IQuerySource> *)&stack0x00000040);

-      lVar3 = 0;

-    }

-  }

-  return lVar3;

-}

-

+Failed to decompile windows.storage.dll - .ProgramDB std::vector<winrt::Windows::Foundation::Collections::ValueSet,std::allocator<winrt::Windows::Foundation::Collections::ValueSet>_>::_Calculate_growth : Error: Decompile error: 
+Marshaling error: Did not see expected closing element
```

## `std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Change_array`  (modified)

```diff
--- std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Change_array
+++ std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Change_array
@@ -1,2 +1,25 @@
-Failed to decompile windows.storage.dll - .ProgramDB std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Change_array : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl std::vector<struct StateRepoHelpers::ExplorerCommandVerb,class

+   std::allocator<struct StateRepoHelpers::ExplorerCommandVerb> >::_Change_array(struct

+   StateRepoHelpers::ExplorerCommandVerb * __ptr64 const,unsigned __int64,unsigned __int64) __ptr64

+    */

+

+void __thiscall

+std::

+vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+::_Change_array(vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+                *this,ExplorerCommandVerb *param_1,__uint64 param_2,__uint64 param_3)

+

+{

+  if (*(ExplorerCommandVerb **)this != (ExplorerCommandVerb *)0x0) {

+    _Destroy_range<std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+              (*(ExplorerCommandVerb **)this,*(ExplorerCommandVerb **)(this + 8),

+               (allocator<StateRepoHelpers::ExplorerCommandVerb> *)param_2);

+    _Deallocate<16,0>(*(void **)this,(*(longlong *)(this + 0x10) - *(longlong *)this >> 4) << 4);

+  }

+  *(ExplorerCommandVerb **)this = param_1;

+  *(ExplorerCommandVerb **)(this + 8) = param_1 + param_2 * 0x30;

+  *(ExplorerCommandVerb **)(this + 0x10) = param_1 + param_3 * 0x30;

+  return;

+}

+
```

## `CRegFolder::CallBack`  (modified)

```diff
--- CRegFolder::CallBack
+++ CRegFolder::CallBack
@@ -1,2 +1,132 @@
-Failed to decompile windows.storage.dll - .ProgramDB CRegFolder::CallBack : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CRegFolder::CallBack(struct IShellFolder * __ptr64,struct HWND__ *

+   __ptr64,struct IDataObject * __ptr64,unsigned int,unsigned __int64,__int64) __ptr64 */

+

+long __thiscall

+CRegFolder::CallBack

+          (CRegFolder *this,IShellFolder *param_1,HWND__ *param_2,IDataObject *param_3,uint param_4,

+          __uint64 param_5,__int64 param_6)

+

+{

+  LPCWSTR pv;

+  undefined4 uVar1;

+  long lVar2;

+  long lVar3;

+  int iVar4;

+  ICIVERBTOIDMAP *pIVar5;

+  HMODULE pHVar6;

+  IDLREGITEM *pIVar7;

+  ushort **ppuVar8;

+  uint uVar9;

+  undefined1 auStackY_308 [32];

+  _ITEMID_CHILD *local_2d8;

+  undefined1 local_2d0 [8];

+  undefined **local_2c8 [13];

+  undefined ***local_260;

+  LPCWSTR local_258 [2];

+  WCHAR local_248 [264];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_308;

+  if (param_4 == 1) {

+    iVar4 = _CanMapNetDrive(this,param_3);

+    if (iVar4 != 0) {

+      pHVar6 = LoadLibraryExW(L"shell32.dll",(HANDLE)0x0,2);

+      SHELL32_CDefFolderMenu_MergeMenu(pHVar6,0xe1,0,param_6);

+      if (pHVar6 != (HMODULE)0x0) {

+        FreeLibrary(pHVar6);

+      }

+    }

+    return 0;

+  }

+  if (((param_4 != 5) && (param_4 != 9)) && (param_4 != 0xb)) {

+    if (param_4 == 0xc) {

+      lVar2 = 0;

+      if (param_5 == 9) {

+        Windows::Internal::ComTaskPool::QueueTask<<lambda_dfbd53f5f9ebc03a625422e6d886e0a8>_>();

+        return 0;

+      }

+      if (param_5 == 0xe) {

+        SHELL32_SHStartNetConnectionDialogW(0,0,1);

+        return 0;

+      }

+      if (param_5 != 0xfffffffb) {

+        if (param_5 != 0xffffffff) {

+          return 1;

+        }

+        _Delete(this + -0x38,param_2,*(uint *)(param_6 + 4),param_3);

+        return 0;

+      }

+      local_2d8 = (_ITEMID_CHILD *)0x0;

+      lVar3 = DataObj_GetChildIDList(param_3,&local_2d8);

+      uVar9 = (uint)param_3;

+      if (lVar3 < 0) {

+        return 0;

+      }

+      pIVar7 = _IsReg(this + -0x38,(_ITEMIDLIST_RELATIVE *)local_2d8);

+      if (pIVar7 != (IDLREGITEM *)0x0) {

+        lVar2 = _GetControlPanelForItem(this + -0x38,pIVar7,(ushort *)local_248,uVar9);

+        if (lVar2 < 0) {

+          lVar2 = 1;

+        }

+        else {

+          iVar4 = CompareStringOrdinal(local_248,-1,L"SYSTEM",-1,1);

+          if (iVar4 == 2) {

+            _FireSystemCPLPerfTrackEvent();

+          }

+          local_258[0] = (LPCWSTR)0x0;

+          local_2c8[0] = &wistd::__function::

+                          __func<<lambda_7c76bf77bd3abbff01993363983af9e6>,long___cdecl(unsigned_short*___ptr64,unsigned___int64,unsigned___int64*___ptr64)>

+                          ::_vftable_;

+          local_260 = local_2c8;

+          lVar2 = wil::

+                  AdaptFixedSizeToAllocatedResult<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>,256>

+                            (local_258,local_2d0);

+          pv = local_258[0];

+          if (-1 < lVar2) {

+            local_258[0] = (LPCWSTR)0x0;

+            ppuVar8 = wil::

+                      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                      ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                             *)local_258);

+            iVar4 = PathAllocCombine(pv,L"control.exe",1,ppuVar8);

+            if (-1 < iVar4) {

+              ShellExecuteW((HWND)0x0,(LPCWSTR)0x0,local_258[0],local_248,(LPCWSTR)0x0,5);

+            }

+            if (local_258[0] != (LPCWSTR)0x0) {

+              LocalFree(local_258[0]);

+            }

+          }

+          if (pv != (LPCWSTR)0x0) {

+            CoTaskMemFree(pv);

+          }

+        }

+      }

+      CoTaskMemFree(local_2d8);

+      return lVar2;

+    }

+    if (param_4 == 0xd) {

+      pIVar5 = _CmdIDToMap(param_6,1,(ICIVERBTOIDMAP *)&PTR_u_connectNetworkD_18068e830);

+      if (pIVar5 == (ICIVERBTOIDMAP *)0x0) {

+        uVar1 = 0xffffffff;

+      }

+      else {

+        uVar1 = *(undefined4 *)(pIVar5 + 0x10);

+      }

+      *(undefined4 *)param_5 = uVar1;

+      return ~-(uint)(pIVar5 != (ICIVERBTOIDMAP *)0x0) & 0x80004005;

+    }

+    if ((param_4 != 0xf) && (param_4 != 0x10)) {

+      return -0x7fffbfff;

+    }

+  }

+  pHVar6 = LoadLibraryExW(L"shell32.dll",(HANDLE)0x0,2);

+  lVar2 = HandleStandardDFM(pHVar6,param_4,param_5,param_6,

+                            (ICIVERBTOIDMAP *)&PTR_u_connectNetworkD_18068e830);

+  if (pHVar6 != (HMODULE)0x0) {

+    FreeLibrary(pHVar6);

+  }

+  return lVar2;

+}

+
```

## `std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>`  (modified)

```diff
--- std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>
+++ std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>
@@ -1,2 +1,66 @@
-Failed to decompile windows.storage.dll - .ProgramDB std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: struct StateRepoHelpers::ExplorerCommandVerb * __ptr64 __cdecl std::vector<struct

+   StateRepoHelpers::ExplorerCommandVerb,class std::allocator<struct

+   StateRepoHelpers::ExplorerCommandVerb> >::_Emplace_reallocate<struct

+   StateRepoHelpers::ExplorerCommandVerb>(struct StateRepoHelpers::ExplorerCommandVerb * __ptr64

+   const,struct StateRepoHelpers::ExplorerCommandVerb && __ptr64) __ptr64 */

+

+ExplorerCommandVerb * __thiscall

+std::

+vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>

+          (vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+           *this,ExplorerCommandVerb *param_1,ExplorerCommandVerb *param_2)

+

+{

+  code *pcVar1;

+  ExplorerCommandVerb *pEVar2;

+  ulonglong uVar3;

+  __uint64 _Var4;

+  ExplorerCommandVerb *pEVar5;

+  ulonglong uVar6;

+  ExplorerCommandVerb *pEVar7;

+  longlong lVar8;

+  ulonglong uVar9;

+  ExplorerCommandVerb *pEVar10;

+  allocator<StateRepoHelpers::ExplorerCommandVerb> *paVar11;

+  ExplorerCommandVerb *this_00;

+  longlong lVar12;

+  ulonglong uVar13;

+  

+  paVar11 = (allocator<StateRepoHelpers::ExplorerCommandVerb> *)(param_1 + -*(longlong *)this);

+  lVar8 = (longlong)paVar11 / 6 + ((longlong)paVar11 >> 0x3f);

+  lVar12 = (*(longlong *)(this + 8) - *(longlong *)this >> 4) * -0x5555555555555555;

+  if (lVar12 == 0x555555555555555) {

+    std::_Xlength_error("vector too long");

+    pcVar1 = (code *)swi(3);

+    pEVar2 = (ExplorerCommandVerb *)(*pcVar1)();

+    return pEVar2;

+  }

+  uVar13 = lVar12 + 1;

+  uVar6 = (*(longlong *)(this + 0x10) - *(longlong *)this >> 4) * -0x5555555555555555;

+  uVar3 = 0x555555555555555 - (uVar6 >> 1);

+  uVar9 = 0x555555555555555;

+  if ((uVar6 < uVar3 || uVar6 - uVar3 == 0) && (uVar9 = (uVar6 >> 1) + uVar6, uVar9 < uVar13)) {

+    uVar9 = uVar13;

+  }

+  _Var4 = _Get_size_of_n<48>(uVar9);

+  pEVar5 = _Allocate<16,std::_Default_allocate_traits,0>(_Var4);

+  this_00 = pEVar5 + ((lVar8 >> 3) - (lVar8 >> 0x3f)) * 0x30;

+  StateRepoHelpers::ExplorerCommandVerb::ExplorerCommandVerb(this_00,param_2);

+  pEVar2 = *(ExplorerCommandVerb **)(this + 8);

+  pEVar7 = *(ExplorerCommandVerb **)this;

+  pEVar10 = pEVar5;

+  if (param_1 != pEVar2) {

+    _Uninitialized_move<StateRepoHelpers::ExplorerCommandVerb*___ptr64,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+              (*(ExplorerCommandVerb **)this,param_1,pEVar5,paVar11);

+    pEVar2 = *(ExplorerCommandVerb **)(this + 8);

+    pEVar7 = param_1;

+    pEVar10 = this_00 + 0x30;

+  }

+  _Uninitialized_move<StateRepoHelpers::ExplorerCommandVerb*___ptr64,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+            (pEVar7,pEVar2,pEVar10,paVar11);

+  _Change_array(this,pEVar5,uVar13,uVar9);

+  return this_00;

+}

+
```

## `winrt::make<winrt::Windows::Internal::implementation::FileExplorerAppExtension,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const&___ptr64,StateRepoHelpers::ExplorerAppExtensionInfo_const&___ptr64>`  (modified)

```diff
--- winrt::make<winrt::Windows::Internal::implementation::FileExplorerAppExtension,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const&___ptr64,StateRepoHelpers::ExplorerAppExtensionInfo_const&___ptr64>
+++ winrt::make<winrt::Windows::Internal::implementation::FileExplorerAppExtension,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const&___ptr64,StateRepoHelpers::ExplorerAppExtensionInfo_const&___ptr64>
@@ -1,21 +1,48 @@
 

-void __cdecl

-`MessageBoxHelper::ShellMessageBoxTextScaled<>'::__l1::dtor$0::

-make<winrt::Windows::Internal::implementation::FileExplorerAppExtension,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const&___ptr64,StateRepoHelpers::ExplorerAppExtensionInfo_const&___ptr64>

-          (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

-           *param_1,ExplorerAppExtensionInfo *param_2)

+/* UNKNOWN __cdecl winrt::make<struct

+   winrt::Windows::Internal::implementation::FileExplorerAppExtension,class

+   std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> > const & __ptr64,struct

+   StateRepoHelpers::ExplorerAppExtensionInfo const & __ptr64>(class std::basic_string<unsigned

+   short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > const &

+   __ptr64,struct StateRepoHelpers::ExplorerAppExtensionInfo const & __ptr64) */

+

+basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_> *

+__cdecl winrt::

+        make<winrt::Windows::Internal::implementation::FileExplorerAppExtension,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const&___ptr64,StateRepoHelpers::ExplorerAppExtensionInfo_const&___ptr64>

+                  (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                   *param_1,ExplorerAppExtensionInfo *param_2)

 

 {

-  longlong unaff_RBX;

-  longlong unaff_RSI;

-  longlong unaff_RDI;

+  heap_implements<winrt::Windows::Internal::implementation::FileExplorerAppExtension> *phVar1;

+  undefined4 *puVar2;

+  longlong lVar3;

+  undefined4 local_28;

+  undefined4 uStack_24;

+  undefined4 uStack_20;

+  undefined4 uStack_1c;

   

-  std::

-  _Med3_unchecked<StateRepoHelpers::ExplorerAppExtensionInfo*___ptr64,std::less<StateRepoHelpers::ExplorerAppExtensionInfo>_>

-            ((longlong)param_1 - unaff_RSI,unaff_RBX - unaff_RDI);

-  std::

-  _Med3_unchecked<StateRepoHelpers::ExplorerAppExtensionInfo*___ptr64,std::less<StateRepoHelpers::ExplorerAppExtensionInfo>_>

-            ();

-  return;

+  lVar3 = 0;

+  phVar1 = CZeroInitNew::operator_new(0x58,(nothrow_t *)param_2);

+  if (phVar1 != (heap_implements<winrt::Windows::Internal::implementation::FileExplorerAppExtension>

+                 *)0x0) {

+    puVar2 = (undefined4 *)

+             std::

+             basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+             ::

+             operator_class_std__basic_string_view<unsigned_short,struct_std::char_traits<unsigned_short>_>

+                       ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                         *)param_2);

+    local_28 = *puVar2;

+    uStack_24 = puVar2[1];

+    uStack_20 = puVar2[2];

+    uStack_1c = puVar2[3];

+    lVar3 = impl::

+            heap_implements<winrt::Windows::Internal::implementation::FileExplorerAppExtension>::

+            heap_implements<winrt::Windows::Internal::implementation::FileExplorerAppExtension>

+                      (phVar1,&local_28);

+  }

+  *(ulonglong *)param_1 = -(ulonglong)(lVar3 != 0) & lVar3 + 0x10U;

+  return param_1;

 }
```

## `tson::input_archive::process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>`  (modified)

```diff
--- tson::input_archive::process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>
+++ tson::input_archive::process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>
@@ -1,2 +1,20 @@
-Failed to decompile windows.storage.dll - .ProgramDB tson::input_archive::process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl tson::input_archive::process<class tson::nvp<bool & __ptr64>,class

+   tson::nvp<bool & __ptr64>,class tson::nvp<bool & __ptr64>,class tson::nvp<bool & __ptr64>,class

+   tson::nvp<bool & __ptr64> >(class tson::nvp<bool & __ptr64> && __ptr64,class tson::nvp<bool &

+   __ptr64> && __ptr64,class tson::nvp<bool & __ptr64> && __ptr64,class tson::nvp<bool & __ptr64> &&

+   __ptr64,class tson::nvp<bool & __ptr64> && __ptr64) __ptr64 */

+

+void __thiscall

+tson::input_archive::

+process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>

+          (input_archive *this,nvp<bool&___ptr64> *param_1,nvp<bool&___ptr64> *param_2,

+          nvp<bool&___ptr64> *param_3,nvp<bool&___ptr64> *param_4,nvp<bool&___ptr64> *param_5)

+

+{

+  process<tson::nvp<bool&___ptr64>_>(this,param_1);

+  process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>

+            (this,param_2,param_3,param_4,param_5);

+  return;

+}

+
```

## `CResultHandlerFactory::_ComputeProperty`  (modified)

```diff
--- CResultHandlerFactory::_ComputeProperty
+++ CResultHandlerFactory::_ComputeProperty
@@ -1,2 +1,72 @@
-Failed to decompile windows.storage.dll - .ProgramDB CResultHandlerFactory::_ComputeProperty : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CResultHandlerFactory::_ComputeProperty(struct IQueryResult *

+   __ptr64,struct _tagpropertykey const & __ptr64,struct IShellFolder * __ptr64,struct _ITEMID_CHILD

+   const * __ptr64) __ptr64 */

+

+long __thiscall

+CResultHandlerFactory::_ComputeProperty

+          (CResultHandlerFactory *this,IQueryResult *param_1,_tagpropertykey *param_2,

+          IShellFolder *param_3,_ITEMID_CHILD *param_4)

+

+{

+  long lVar1;

+  int iVar2;

+  int iVar3;

+  int iVar4;

+  _tagpropertykey *this_00;

+  CResultHandlerFactory *pCVar5;

+  undefined **ppuVar6;

+  uint uVar7;

+  undefined1 auStackY_98 [32];

+  _ITEMID_CHILD *local_60;

+  ulonglong local_58;

+  

+  local_58 = __security_cookie ^ (ulonglong)auStackY_98;

+  ppuVar6 = &PTR_s_ComputeIsFiltered_180816f68;

+  local_60 = param_4;

+  iVar2 = 0;

+  uVar7 = 0;

+  iVar3 = -0x7ff8ffa9;

+  pCVar5 = this;

+  do {

+    if (iVar2 != 0) goto LAB_0;

+    iVar2 = operator==(param_2,(_tagpropertykey *)ppuVar6[-3]);

+    if (iVar2 != 0) {

+      iVar3 = (*(code *)*ppuVar6)(pCVar5,param_3,param_4,param_1);

+      pCVar5 = this;

+      param_4 = local_60;

+    }

+    uVar7 = uVar7 + 1;

+    ppuVar6 = ppuVar6 + 4;

+  } while (uVar7 < 10);

+  if (iVar2 == 0) {

+    this_00 = param_2;

+    iVar3 = GetDependentPropertyIndex(param_2);

+    if (iVar3 == -1) {

+      iVar3 = _ComputeAssocKey((CResultHandlerFactory *)this_00,param_3,param_4,param_2,param_1);

+    }

+    else {

+      iVar2 = GetDependentPropertyIndex(this_00);

+      iVar3 = 0;

+      if (iVar2 != -1) {

+        local_60 = (_ITEMID_CHILD *)((ulonglong)local_60 & 0xffffffff00000000);

+        iVar4 = (**(code **)(*(longlong *)param_1 + 0x40))(param_1,param_2,&local_60);

+        iVar3 = 0;

+        if (iVar4 < 0) {

+          iVar3 = (*(code *)(&PTR_ComputeSnippet_180816138)[(longlong)iVar2 * 4])

+                            (param_2,param_1,param_3);

+        }

+      }

+    }

+  }

+LAB_0:

+  lVar1 = 0;

+  if (iVar3 < 0) {

+    lVar1 = iVar3;

+  }

+  return lVar1;

+}

+
```

## `CFSFolder::_GetFindDataByHandleFromName`  (modified)

```diff
--- CFSFolder::_GetFindDataByHandleFromName
+++ CFSFolder::_GetFindDataByHandleFromName
@@ -1,2 +1,83 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::_GetFindDataByHandleFromName : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* protected: long __cdecl CFSFolder::_GetFindDataByHandleFromName(unsigned short const *

+   __ptr64,struct tagWIN32_FIND_DATA_EX * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CFSFolder::_GetFindDataByHandleFromName

+          (CFSFolder *this,ushort *param_1,tagWIN32_FIND_DATA_EX **param_2)

+

+{

+  bool bVar1;

+  tagWIN32_FIND_DATA_EX *pv;

+  long lVar2;

+  ushort **ppuVar3;

+  void *unaff_retaddr;

+  undefined1 auStack_68 [32];

+  unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+  *local_48;

+  tagSERIALIZEDPROPSTORAGE *local_40;

+  char local_38;

+  tagWIN32_FIND_DATA_EX *local_30;

+  HLOCAL local_28;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStack_68;

+  *param_2 = (tagWIN32_FIND_DATA_EX *)0x0;

+  local_28 = (HLOCAL)0x0;

+  ppuVar3 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_28);

+  lVar2 = GetPathForFileAccess(this,param_1,ppuVar3);

+  if (lVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xa48,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar2);

+  }

+  else {

+    local_30 = (tagWIN32_FIND_DATA_EX *)0x0;

+    local_48 = (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                *)&local_30;

+    local_40 = (tagSERIALIZEDPROPSTORAGE *)0x0;

+    bVar1 = true;

+    local_38 = '\x01';

+    lVar2 = CTCoAllocPolicy::Alloc(this,1,0x268,&local_40);

+    if (local_38 != '\0') {

+      wistd::

+      unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+      ::reset(local_48,local_40);

+    }

+    if (lVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xa4b,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar2);

+    }

+    else {

+      lVar2 = GetFindDataFromFileInformationByHandle(local_28,0,local_30);

+      if (-1 < lVar2) {

+        *param_2 = local_30;

+        local_30 = (tagWIN32_FIND_DATA_EX *)0x0;

+        if (local_28 != (HLOCAL)0x0) {

+          LocalFree(local_28);

+        }

+        return 0;

+      }

+      if (((lVar2 + 0x7ff8fffeU & 0xfffffffc) == 0) && (lVar2 != -0x7ff8fffc)) {

+        bVar1 = false;

+      }

+      if (bVar1) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0xa51,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar2);

+      }

+    }

+    pv = local_30;

+    local_30 = (tagWIN32_FIND_DATA_EX *)0x0;

+    if (pv != (tagWIN32_FIND_DATA_EX *)0x0) {

+      CoTaskMemFree(pv);

+    }

+  }

+  if (local_28 != (HLOCAL)0x0) {

+    LocalFree(local_28);

+  }

+  return lVar2;

+}

+
```

## `std::unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>::unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>`  (modified)

```diff
--- std::unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>::unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>
+++ std::vector<unsigned_short_const*___ptr64,std::allocator<unsigned_short_const*___ptr64>_>::_Change_array
@@ -1,2 +1,2 @@
-Failed to decompile windows.storage.dll - .ProgramDB std::unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>::unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_> : Error: Decompile error: 
+Failed to decompile windows.storage.dll - .ProgramDB std::vector<unsigned_short_const*___ptr64,std::allocator<unsigned_short_const*___ptr64>_>::_Change_array : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `StateRepoVerbsCache::GetInstance`  (modified)

```diff
--- StateRepoVerbsCache::GetInstance
+++ StateRepoVerbsCache::GetInstance
@@ -1,2 +1,54 @@
-Failed to decompile windows.storage.dll - .ProgramDB StateRepoVerbsCache::GetInstance : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: static class StateRepoVerbsCache * __ptr64 __cdecl StateRepoVerbsCache::GetInstance(void)

+    */

+

+StateRepoVerbsCache * __cdecl StateRepoVerbsCache::GetInstance(void)

+

+{

+  long lVar1;

+  uint uVar2;

+  srwlock *psVar3;

+  StateRepoVerbsCache *pSVar4;

+  void *unaff_retaddr;

+  undefined1 auStack_48 [32];

+  _RTL_SRWLOCK local_28;

+  StateRepoVerbsCache *local_20;

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_48;

+  psVar3 = &s_srwLockInstance;

+  wil::AcquireSRWLockExclusive(&local_28);

+  if (s_instance == (StateRepoVerbsCache *)0x0) {

+    wil::make_unique_nothrow<StateRepoVerbsCache>();

+    if (local_20 != (StateRepoVerbsCache *)0x0) {

+      lVar1 = Initialize(local_20,(bool *)psVar3);

+      uVar2 = (uint)psVar3;

+      if (lVar1 < 0) {

+        uVar2 = 300;

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,300,"onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp",

+                   lVar1);

+        pSVar4 = local_20;

+      }

+      else {

+        lVar1 = RebuildCacheAsync(local_20);

+        if (lVar1 < 0) {

+          uVar2 = 0x12e;

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x12e,

+                     "onecoreuap\\shell\\windows.storage\\staterepoverbscache.cpp",lVar1);

+        }

+        pSVar4 = (StateRepoVerbsCache *)0x0;

+        s_instance = local_20;

+      }

+      if (pSVar4 != (StateRepoVerbsCache *)0x0) {

+        _scalar_deleting_destructor_(pSVar4,uVar2);

+      }

+    }

+  }

+  pSVar4 = s_instance;

+  CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_28);

+  return pSVar4;

+}

+
```

## ``std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>'::__l1::catch$0`  (modified)

```diff
--- `std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>'::__l1::catch$0
+++ `std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>'::__l1::catch$0
@@ -1,15 +1,16 @@
 

-void `CDestinationList::s_DeleteList'::catch_0(void)

+void `std::

+     vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+     ::_Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>'::__l1::catch_0

+               (undefined8 param_1,longlong param_2,

+               allocator<StateRepoHelpers::ExplorerCommandVerb> *param_3)

 

 {

-  code *pcVar1;

-  uint in_EAX;

-  undefined4 in_register_00000004;

-  

-  *(uint *)CONCAT44(in_register_00000004,in_EAX) =

-       *(uint *)CONCAT44(in_register_00000004,in_EAX) | in_EAX;

-  pcVar1 = (code *)swi(3);

-  (*pcVar1)();

-  return;

+  std::_Destroy_range<std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+            (*(ExplorerCommandVerb **)(param_2 + 0x70),*(ExplorerCommandVerb **)(param_2 + 0x88),

+             param_3);

+  std::_Deallocate<16,0>(*(void **)(param_2 + 0x20),*(longlong *)(param_2 + 0x78) * 0x30);

+                    /* WARNING: Subroutine does not return */

+  _CxxThrowException((void *)0x0,(ThrowInfo *)0x0);

 }
```

## `CResultHandlerFactory::FastFillProperty`  (modified)

```diff
--- CResultHandlerFactory::FastFillProperty
+++ CResultHandlerFactory::FastFillProperty
@@ -1,2 +1,85 @@
-Failed to decompile windows.storage.dll - .ProgramDB CResultHandlerFactory::FastFillProperty : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: virtual long __cdecl CResultHandlerFactory::FastFillProperty(struct IQueryResult *

+   __ptr64,struct _tagpropertykey const & __ptr64) __ptr64 */

+

+long __thiscall

+CResultHandlerFactory::FastFillProperty

+          (CResultHandlerFactory *this,IQueryResult *param_1,_tagpropertykey *param_2)

+

+{

+  int iVar1;

+  long lVar2;

+  int iVar3;

+  int iVar4;

+  _tagpropertykey **pp_Var5;

+  _tagpropertykey *p_Var6;

+  longlong lVar7;

+  _tagpropertykey **pp_Var8;

+  undefined1 auStackY_98 [32];

+  IShellFolder *local_60;

+  _ITEMID_CHILD *local_58;

+  longlong *local_50;

+  int local_48 [2];

+  ulonglong local_40;

+  

+  local_40 = __security_cookie ^ (ulonglong)auStackY_98;

+  iVar1 = IsFastComputableProperty(param_2,param_1);

+  if (iVar1 == 0) {

+    return 1;

+  }

+  local_50 = (longlong *)0x0;

+  lVar2 = BindHandler(this,param_1,(_GUID *)&DAT_0,

+                      (_GUID *)&_GUID_b3a4b685_b685_4805_99d9_5dead2873236,&local_50);

+  if (lVar2 < 0) {

+    return lVar2;

+  }

+  local_60 = (IShellFolder *)0x0;

+  local_58 = (_ITEMID_CHILD *)0x0;

+  iVar1 = (**(code **)(*local_50 + 0x20))(local_50,0,&local_60,&local_58);

+  if (iVar1 < 0) goto LAB_1;

+  iVar1 = 0;

+  p_Var6 = param_2;

+  iVar3 = GetDependentPropertyIndex(param_2);

+  if (iVar3 == -1) {

+LAB_2:

+    iVar1 = _ComputeProperty(this,param_1,param_2,local_60,local_58);

+  }

+  else {

+    pp_Var5 = GetPropertyDependenciesArray(p_Var6);

+    pp_Var8 = pp_Var5;

+    iVar3 = GetPropertyDependenciesArrayCount(param_2);

+    if (iVar3 < 1) goto LAB_2;

+    lVar7 = 0;

+    do {

+      if (iVar1 != 0) goto LAB_3;

+      p_Var6 = pp_Var8[lVar7];

+      local_48[0] = 0;

+      iVar1 = 1;

+      iVar4 = (**(code **)(*(longlong *)param_1 + 0x40))(param_1,p_Var6,local_48);

+      if (iVar4 == -0x7ffd7fd5) {

+LAB_4:

+        iVar4 = IsFastComputableProperty(p_Var6,param_1);

+        if (iVar4 != 0) {

+          iVar1 = _ComputeProperty(this,param_1,p_Var6,local_60,local_58);

+        }

+      }

+      else if (-1 < iVar4) {

+        if (local_48[0] == 1 || local_48[0] == 2) goto LAB_4;

+        iVar1 = 0;

+      }

+      lVar7 = lVar7 + 1;

+      pp_Var8 = pp_Var5;

+    } while (lVar7 < iVar3);

+    if (iVar1 == 0) goto LAB_2;

+  }

+LAB_3:

+  (*local_60->lpVtbl->Release)(local_60);

+  CoTaskMemFree(local_58);

+LAB_1:

+  (**(code **)(*local_50 + 0x10))();

+  return iVar1;

+}

+
```

## `std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::emplace_back<StateRepoHelpers::ExplorerCommandVerb>`  (modified)

```diff
--- std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::emplace_back<StateRepoHelpers::ExplorerCommandVerb>
+++ std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::emplace_back<StateRepoHelpers::ExplorerCommandVerb>
@@ -1,2 +1,28 @@
-Failed to decompile windows.storage.dll - .ProgramDB std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::emplace_back<StateRepoHelpers::ExplorerCommandVerb> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: UNKNOWN __cdecl std::vector<struct StateRepoHelpers::ExplorerCommandVerb,class

+   std::allocator<struct StateRepoHelpers::ExplorerCommandVerb> >::emplace_back<struct

+   StateRepoHelpers::ExplorerCommandVerb>(struct StateRepoHelpers::ExplorerCommandVerb && __ptr64)

+   __ptr64 */

+

+ExplorerCommandVerb * __thiscall

+std::

+vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+::emplace_back<StateRepoHelpers::ExplorerCommandVerb>

+          (vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+           *this,ExplorerCommandVerb *param_1)

+

+{

+  ExplorerCommandVerb *pEVar1;

+  

+  pEVar1 = *(ExplorerCommandVerb **)(this + 8);

+  if (pEVar1 == *(ExplorerCommandVerb **)(this + 0x10)) {

+    pEVar1 = _Emplace_reallocate<StateRepoHelpers::ExplorerCommandVerb>(this,pEVar1,param_1);

+  }

+  else {

+    StateRepoHelpers::ExplorerCommandVerb::ExplorerCommandVerb(pEVar1,param_1);

+    pEVar1 = *(ExplorerCommandVerb **)(this + 8);

+    *(ExplorerCommandVerb **)(this + 8) = pEVar1 + 0x30;

+  }

+  return pEVar1;

+}

+
```

## `CRegistryVerbArray::AddKeys`  (modified)

```diff
--- CRegistryVerbArray::AddKeys
+++ CRegistryVerbArray::AddKeys
@@ -1,2 +1,51 @@
-Failed to decompile windows.storage.dll - .ProgramDB CRegistryVerbArray::AddKeys : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: unsigned int __cdecl CRegistryVerbArray::AddKeys(struct HKEY__ * __ptr64,unsigned short

+   const * __ptr64) __ptr64 */

+

+uint __thiscall

+CRegistryVerbArray::AddKeys(CRegistryVerbArray *this,HKEY__ *param_1,ushort *param_2)

+

+{

+  LSTATUS LVar1;

+  int iVar2;

+  int iVar3;

+  ushort *puVar4;

+  undefined1 auStackY_58 [32];

+  HKEY local_28;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStackY_58;

+  iVar2 = 0;

+  iVar3 = iVar2;

+  if (*(int **)this != (int *)0x0) {

+    iVar3 = **(int **)this;

+  }

+  local_28 = (HKEY__ *)0x0;

+  wil::details::

+  unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>

+           *)&local_28,(HKEY__ *)0x0);

+  puVar4 = (ushort *)0x20019;

+  LVar1 = RegOpenKeyExW(param_1,L"Shell",0,0x20019,&local_28);

+  if (LVar1 == 0) {

+    _AddOrderedKeys(this,local_28,param_1,puVar4);

+  }

+  if ((*(uint *)(this + 0x24) & 0x8001) == 0) {

+    AddStateRepoVerbs(this);

+  }

+  if (LVar1 == 0) {

+    _AddEnumKeys(this,local_28,param_1);

+  }

+  if (*(int **)this != (int *)0x0) {

+    iVar2 = **(int **)this;

+  }

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_28);

+  return iVar2 - iVar3;

+}

+
```

## `AppDefaultsIntegrity::OnLoad`  (modified)

```diff
--- AppDefaultsIntegrity::OnLoad
+++ AppDefaultsIntegrity::OnLoad
@@ -1,2 +1,369 @@
-Failed to decompile windows.storage.dll - .ProgramDB AppDefaultsIntegrity::OnLoad : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Type propagation algorithm not settling */

+/* public: virtual long __cdecl AppDefaultsIntegrity::OnLoad(unsigned short const * __ptr64,unsigned

+   short const * __ptr64,unsigned long,int) __ptr64 */

+

+long __thiscall

+AppDefaultsIntegrity::OnLoad

+          (AppDefaultsIntegrity *this,ushort *param_1,ushort *param_2,ulong param_3,int param_4)

+

+{

+  bool bVar1;

+  undefined1 uVar2;

+  long lVar3;

+  uint uVar4;

+  int iVar5;

+  Variant_AppDefaultHashRotation VVar6;

+  longlong *plVar7;

+  ushort **ppuVar8;

+  HKEY__ *pHVar9;

+  TaskApartment TVar10;

+  ushort *puVar11;

+  wchar_t *this_00;

+  AppDefaultsIntegrity *this_01;

+  IMigrationContext *this_02;

+  VariantReportingKind VVar12;

+  _GUID *p_Var13;

+  ulong uVar14;

+  LPCWSTR lpString2;

+  ushort *unaff_retaddr;

+  undefined1 auStackY_f8 [32];

+  <lambda_4926345da1aaec9e1f19eef55752a04d> local_b8 [8];

+  ushort *local_b0;

+  uchar local_a8 [8];

+  ulong local_a0 [2];

+  _GUID local_98;

+  WCHAR local_88 [40];

+  ulonglong local_38;

+  

+  uVar14 = (ulong)param_2;

+  local_38 = __security_cookie ^ (ulonglong)auStackY_f8;

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_62049188>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_62049188> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_62049188>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_62049188>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar1) {

+    TVar10 = 0x80754880;

+    puVar11 = param_1;

+    LogAppDefaultMigrationInfo((ushort *)L"[UCC] OnLoad Rollback sid: %s");

+    local_98._0_8_ = param_1;

+    lVar3 = Windows::Internal::ComTaskPool::QueueTask<<lambda_6e0aad4abd72da55c0631c6a9fc15926>_>

+                      (TVar10,(TaskOptions)puVar11,uVar14,

+                       (<lambda_6e0aad4abd72da55c0631c6a9fc15926> *)&local_98);

+    puVar11 = unaff_retaddr;

+    if (lVar3 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0xbc,"onecoreuap\\shell\\windows.storage\\appdefaultsintegrity.cpp",

+                 lVar3);

+    }

+    local_a0[1] = 0;

+    local_a0[0] = 0;

+    DefaultAssocTelemetry::HashRotationMigrate<unsigned_short_const_(&___ptr64)[18],int,int>

+              (puVar11,(int *)local_a0,(int *)(local_a0 + 1));

+  }

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation> *)

+                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AppDefaultHashRotation>::GetImpl(void)'

+                               ::__l2::impl);

+  if (!bVar1) {

+    return 0;

+  }

+  local_a8[0] = '\0';

+  local_a8[1] = '\0';

+  local_a8[2] = '\0';

+  local_a8[3] = '\0';

+  local_a8[4] = '\0';

+  local_a8[5] = '\0';

+  local_a8[6] = '\0';

+  local_a8[7] = '\0';

+  plVar7 = (longlong *)

+           tip2::

+           tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+           ::operator->((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                         *)local_a8);

+  *(undefined4 *)(*plVar7 + 0x110) = 3;

+  tip2::

+  test_data_control<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+            ((test_data_control<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+              *)&local_98);

+  this_00 = L"OnLoad sid: %s";

+  LogAppDefaultMigrationInfo((ushort *)L"OnLoad sid: %s",param_1);

+  local_b8[0] = (<lambda_4926345da1aaec9e1f19eef55752a04d>)0x0;

+  bVar1 = IsFirstLogonOfNewUser((AppDefaultsIntegrity *)this_00,param_1);

+  if (bVar1) {

+    if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+      McTemplateU0z_EventWriteTransfer();

+    }

+    lVar3 = SHRegSetDWORD((HKEY__ *)0xffffffff80000001,

+                          (ushort *)

+                          L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                          (ushort *)L"Version",2);

+    if (-1 < lVar3) {

+      local_b0 = (ushort *)0x0;

+      ppuVar8 = wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                       *)&local_b0);

+      lVar3 = GetMachineID(ppuVar8);

+      if (lVar3 < 0) {

+        uVar4 = 0xd7;

+      }

+      else {

+        this_01 = (AppDefaultsIntegrity *)0xffffffff80000001;

+        lVar3 = SHRegSetString((HKEY__ *)0xffffffff80000001,

+                               (ushort *)

+                               L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                               (ushort *)L"MachineID",local_b0);

+        if (lVar3 < 0) {

+          uVar4 = 0xd8;

+        }

+        else {

+          lVar3 = WriteSystemProtectedHashVersion(this_01,param_1);

+          if (-1 < lVar3) {

+            wil::details::

+            unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ::

+            ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                        *)&local_b0);

+            goto LAB_0;

+          }

+          uVar4 = 0xdc;

+        }

+      }

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,uVar4,"onecoreuap\\shell\\windows.storage\\appdefaultsintegrity.cpp",

+                 lVar3);

+      p_Var13 = (_GUID *)&local_b0;

+LAB_1:

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)p_Var13);

+      goto LAB_2;

+    }

+    uVar4 = 0xd3;

+  }

+  else {

+    local_a0[0] = 0;

+    uVar2 = 0xd0;

+    VVar12 = 0x80754720;

+    lVar3 = SHRegGetDWORD((HKEY__ *)0xffffffff80000001,

+                          (ushort *)

+                          L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                          (ushort *)L"Version",local_a0);

+    if ((lVar3 < 0) || (local_a0[0] != 2)) {

+      p_Var13 = &local_98;

+      this_02 = (IMigrationContext *)local_a8;

+      tip2::

+      tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+      ::start((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+               *)this_02,p_Var13);

+      if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+        p_Var13 = (_GUID *)&AppDefaults_MigrationInfo;

+        McTemplateU0z_EventWriteTransfer();

+      }

+      UpdateUserChoices<<lambda_4926345da1aaec9e1f19eef55752a04d>_>

+                (this_02,(HKEY__ *)p_Var13,param_1,local_b8);

+      uVar2 = 0xd0;

+      VVar12 = 0x80754720;

+      SHRegSetDWORD((HKEY__ *)0xffffffff80000001,

+                    (ushort *)L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                    (ushort *)L"Version",2);

+    }

+    if ((param_3 & 10) != 0) {

+      LogAppDefaultMigrationInfo((ushort *)L"OnLoad, Roamed profile, profileType: 0x%X");

+      local_98._0_8_ = (LPCWSTR)0x0;

+      ppuVar8 = wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                       *)&local_98);

+      lVar3 = GetMachineID(ppuVar8);

+      if (lVar3 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0xf7,"onecoreuap\\shell\\windows.storage\\appdefaultsintegrity.cpp"

+                   ,lVar3);

+        wil::details::

+        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    *)&local_98);

+        goto LAB_2;

+      }

+      memset(local_88,0,0x4e);

+      local_b0 = (ushort *)CONCAT44(local_b0._4_4_,0x4e);

+      uVar4 = RegGetValueW((HKEY)0xffffffff80000001,

+                           L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                           L"MachineID",2,(LPDWORD)0x0,local_88,(LPDWORD)&local_b0);

+      bVar1 = (int)uVar4 < 0;

+      if ((uVar4 != 0) && (local_88[0] = L'\0', 0 < (int)uVar4)) {

+        bVar1 = (int)(uVar4 & 0xffff | 0x80070000) < 0;

+      }

+      if (bVar1) {

+LAB_3:

+        if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+          McTemplateU0z_EventWriteTransfer();

+        }

+        lVar3 = SHRegSetString((HKEY__ *)0xffffffff80000001,

+                               (ushort *)

+                               L"Software\\Microsoft\\Windows\\CurrentVersion\\FileAssociations",

+                               (ushort *)L"MachineID",(ushort *)local_98._0_8_);

+        if (lVar3 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x101,

+                     "onecoreuap\\shell\\windows.storage\\appdefaultsintegrity.cpp",lVar3);

+          wil::details::

+          unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      *)&local_98);

+          goto LAB_2;

+        }

+        p_Var13 = (_GUID *)&local_b0;

+        pHVar9 = (HKEY__ *)

+                 tip2::

+                 tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                 ::

+                 tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                           ((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                             *)p_Var13,

+                            (tip_test<class_tip2::details::merged_data<struct_AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,struct_AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                             *)local_a8);

+        StartTestIfNotRunning();

+        puVar11 = param_1;

+        UpdateUserChoices<<lambda_4926345da1aaec9e1f19eef55752a04d>_>

+                  ((IMigrationContext *)p_Var13,pHVar9,param_1,local_b8);

+        uVar2 = SUB81(puVar11,0);

+        local_a0[1] = 0;

+LAB_4:

+        bVar1 = HasUserChoiceLatest((AppDefaultsIntegrity *)p_Var13);

+        if (bVar1) {

+          if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+            uVar2 = 0xb0;

+            McTemplateU0z_EventWriteTransfer();

+          }

+          lVar3 = WriteSystemProtectedHashVersion((AppDefaultsIntegrity *)p_Var13,param_1);

+          VVar12 = (VariantReportingKind)param_1;

+          if (-1 < lVar3) goto LAB_5;

+          uVar4 = 0x117;

+        }

+        else {

+          if ((Microsoft_Windows_Shell_CoreEnableBits._5_1_ & 2) != 0) {

+            McTemplateU0z_EventWriteTransfer();

+          }

+          uVar2 = tip2::

+                  tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                  ::

+                  tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                            ((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                              *)&local_b0,

+                             (tip_test<class_tip2::details::merged_data<struct_AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,struct_AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                              *)local_a8);

+          lVar3 = MigrateUserChoicesForwardIfNecessary<<lambda_06048ddacc0b6508d7f4221a9c07cadf>_>()

+          ;

+          VVar12 = (VariantReportingKind)param_1;

+          if (-1 < lVar3) goto LAB_5;

+          uVar4 = 0x11c;

+        }

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,uVar4,

+                   "onecoreuap\\shell\\windows.storage\\appdefaultsintegrity.cpp",lVar3);

+        p_Var13 = &local_98;

+        goto LAB_1;

+      }

+      puVar11 = (ushort *)0xffffffff;

+      lpString2 = local_88;

+      iVar5 = CompareStringOrdinal((LPCWSTR)local_98._0_8_,-1,lpString2,-1,1);

+      if (iVar5 != 2) goto LAB_3;

+      local_a0[1] = 0;

+      p_Var13 = (_GUID *)param_1;

+      lVar3 = ReadSystemDataRegistryDWORDForUser(param_1,puVar11,(ushort *)lpString2,local_a0 + 1);

+      uVar2 = SUB81(lpString2,0);

+      VVar12 = (VariantReportingKind)puVar11;

+      if (lVar3 < 0) goto LAB_4;

+LAB_5:

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_98);

+    }

+    VVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation>::

+            __private_GetVariant

+                      ((FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_AppDefaultHashRotation>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_AppDefaultHashRotation>::GetImpl(void)'

+                        ::__l2::impl,VVar12,(bool)uVar2);

+    if ((char)VVar6 == '\x01') {

+      tip2::

+      tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+      ::

+      tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                ((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                  *)&local_b0,

+                 (tip_test<class_tip2::details::merged_data<struct_AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,struct_AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                  *)local_a8);

+      lVar3 = MigrateUserChoicesForwardIfNecessary<<lambda_06048ddacc0b6508d7f4221a9c07cadf>_>();

+      if (lVar3 < 0) {

+        uVar4 = 0x123;

+        goto LAB_6;

+      }

+    }

+    tip2::

+    tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+    ::

+    tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+              ((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                *)&local_b0,

+               (tip_test<class_tip2::details::merged_data<struct_AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,struct_AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                *)local_a8);

+    lVar3 = MigrateUserChoicesBackIfNecessary<<lambda_4926345da1aaec9e1f19eef55752a04d>_>();

+    if (-1 < lVar3) {

+LAB_0:

+      plVar7 = (longlong *)

+               tip2::

+               tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+               ::operator->((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                             *)local_a8);

+      *(undefined1 *)(*plVar7 + 0x114) = 1;

+      tip2::

+      test_data_control<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                ((test_data_control<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                  *)&local_98);

+      tip2::

+      tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+      ::complete((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                  *)local_a8);

+      wil::

+      com_ptr_t<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>,wil::err_returncode_policy>

+      ::

+      ~com_ptr_t<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>,wil::err_returncode_policy>

+                ((com_ptr_t<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>,wil::err_returncode_policy>

+                  *)local_a8);

+      return 0;

+    }

+    uVar4 = 0x128;

+  }

+LAB_6:

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar4,"onecoreuap\\shell\\windows.storage\\appdefaultsintegrity.cpp",

+             lVar3);

+LAB_2:

+  wil::

+  com_ptr_t<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>,wil::err_returncode_policy>

+            ((com_ptr_t<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>,wil::err_returncode_policy>

+              *)local_a8);

+  return lVar3;

+}

+
```

## `CFileLockBytes::LockRegion`  (modified)

```diff
--- CFileLockBytes::LockRegion
+++ CFileLockBytes::LockRegion
@@ -1,2 +1,92 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFileLockBytes::LockRegion : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CFileLockBytes::LockRegion(union _ULARGE_INTEGER,union

+   _ULARGE_INTEGER,unsigned long) __ptr64 */

+

+long __thiscall

+CFileLockBytes::LockRegion

+          (CFileLockBytes *this,_ULARGE_INTEGER param_1,_ULARGE_INTEGER param_2,ulong param_3)

+

+{

+  bool bVar1;

+  BOOL BVar2;

+  DWORD DVar3;

+  long lVar4;

+  longlong *plVar5;

+  void *unaff_retaddr;

+  undefined1 auStackY_a8 [32];

+  _ULARGE_INTEGER local_78;

+  _ULARGE_INTEGER local_70;

+  ulong local_68 [2];

+  _OVERLAPPED local_60;

+  ulonglong local_40;

+  

+  local_40 = __security_cookie ^ (ulonglong)auStackY_a8;

+  local_78 = param_2;

+  local_70 = param_1;

+  local_68[0] = param_3;

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                      ::__l2::impl);

+  local_60.u.s.Offset = param_1.s.LowPart;

+  if (bVar1) {

+    local_60.u.s.OffsetHigh = local_70._4_4_;

+    local_60.Internal = 0;

+    local_60.InternalHigh = 0;

+    local_60.hEvent = (HANDLE)0x0;

+    std::chrono::steady_clock::now();

+    DVar3 = 2;

+    if (param_3 != 2) {

+      DVar3 = 0;

+    }

+    BVar2 = LockFileEx(*(HANDLE *)(this + 0x10),DVar3,0,param_2.s.LowPart,local_78.s.HighPart,

+                       &local_60);

+    if (BVar2 == 0) {

+      DVar3 = GetLastError();

+      if (DVar3 == 0x21) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0xda,

+                   "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                   ,-0x7ffcffdf);

+        return -0x7ffcffdf;

+      }

+      if (DVar3 != 0x3e5) {

+        if (0 < (int)DVar3) {

+          DVar3 = DVar3 & 0xffff | 0x80070000;

+        }

+        if ((int)DVar3 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0xdb,

+                     "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                     ,DVar3);

+          return DVar3;

+        }

+        return DVar3;

+      }

+    }

+    plVar5 = (longlong *)std::chrono::steady_clock::now();

+    if (1000999999 < *plVar5 - (longlong)local_70) {

+      local_78.s.LowPart = (int)((*plVar5 - (longlong)local_70) / 1000000);

+      FileExplorerTelemetry::LockRegionSlowAcquisition<unsigned_long,unsigned_long&___ptr64>

+                ((ulong *)&local_78.QuadPart,local_68);

+    }

+  }

+  else {

+    BVar2 = LockFile(*(HANDLE *)(this + 0x10),local_60.u.s.Offset,local_70._4_4_,param_2.s.LowPart,

+                     local_78.s.HighPart);

+    if (BVar2 == 0) {

+      DVar3 = GetLastError();

+      if (DVar3 == 0x21) {

+        return -0x7ffcffdf;

+      }

+      lVar4 = wil::details::in1diag3::Return_GetLastError

+                        (unaff_retaddr,0xf0,

+                         "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                        );

+      return lVar4;

+    }

+  }

+  return 0;

+}

+
```

## ``CEnumTask::FilterGraphItems'::__l1::dtor$5`  (modified)

```diff
--- `CEnumTask::FilterGraphItems'::__l1::dtor$5
+++ `CEnumTask::FilterGraphItems'::__l1::dtor$5
@@ -1,2 +1,13 @@
-Failed to decompile windows.storage.dll - .ProgramDB `CEnumTask::FilterGraphItems'::__l1::dtor$5 : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void `CEnumTask::FilterGraphItems'::__l1::dtor_5(undefined8 param_1,longlong param_2)

+

+{

+  std::

+  unordered_map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,int>_>_>

+  ::

+  ~unordered_map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,int>_>_>

+            ((unordered_map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,int>_>_>

+              *)(param_2 + 0x150));

+  return;

+}

+
```

## `<lambda_bba47f8bdf431ffdd0db191c4a983075>::operator()`  (modified)

```diff
--- <lambda_bba47f8bdf431ffdd0db191c4a983075>::operator()
+++ <lambda_bba47f8bdf431ffdd0db191c4a983075>::operator()
@@ -1,158 +1,85 @@
 

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 

-long `WaitForCompletion<Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Security::EnterpriseData::FileProtectionInfo_*>,Windows::Foundation::IAsyncOperation<Windows::Security::EnterpriseData::FileProtectionInfo_*>_>'

-     ::operator()(void)

+uint <lambda_bba47f8bdf431ffdd0db191c4a983075>::operator()(undefined8 *param_1)

 

 {

-  STORAGEITEM_CREATION_FLAGS SVar1;

-  ushort *puVar2;

-  longlong *plVar3;

-  code *pcVar4;

-  IStorageFile *pIVar5;

-  long lVar6;

-  int iVar7;

-  long lVar8;

-  longlong in_RAX;

-  void **ppvVar9;

-  ushort *puVar10;

-  void *pvVar11;

-  tagCOWAIT_FLAGS tVar12;

-  uint uVar13;

-  CMarshaledInterface *unaff_RBX;

-  longlong unaff_RBP;

-  undefined4 unaff_ESI;

-  undefined8 *puVar14;

-  undefined8 *unaff_R12;

-  CStorageItemResult<Windows::Storage::IStorageFile> *unaff_R13;

-  IShellItem *unaff_R14;

-  _GUID *in_stack_00000038;

-  char in_stack_00000050;

-  IStorageFile *in_stack_00000058;

-  IShellItem *in_stack_00000060;

-  IAsyncAction *in_stack_00000068;

-  longlong *in_stack_00000070;

+  code *pcVar1;

+  longlong *plVar2;

+  bool bVar3;

+  uint uVar4;

+  uint uVar5;

+  void *unaff_retaddr;

+  undefined1 auStackY_68 [32];

+  longlong *local_38;

+  longlong *local_30;

+  int local_28 [2];

+  longlong *local_20;

+  ulonglong local_18;

   

-  (**(code **)(in_RAX + 0x4cf63345))();

-  *(undefined4 *)(unaff_RBP + -0x80) = unaff_ESI;

-  ppvVar9 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(unaff_RBP + -0x80);

-  lVar6 = CMarshaledInterface::_Unmarshal

-                    (unaff_RBX,(_GUID *)&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar9,false);

-  if (lVar6 < 0) {

-    wil::details::in1diag3::_Log_Hr

-              (*(void **)(unaff_RBP + 0xb8),0x29fa,

-               "onecoreuap\\shell\\windows.storage\\dataaccess.cpp",lVar6);

+  local_18 = __security_cookie ^ (ulonglong)auStackY_68;

+  local_20 = (longlong *)0x0;

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_20);

+  uVar4 = CoCreateInstance((IID *)&_GUID_7d096c5f_ac08_4f1f_beb7_5c22c517ce39,(LPUNKNOWN)0x0,0x17,

+                           (IID *)&_GUID_ab310581_ac80_11d1_8df3_00c04fb6ef69,&local_20);

+  plVar2 = local_20;

+  if ((int)uVar4 < 0) {

+    uVar5 = 0x80070422;

+    if (uVar4 != 0x80070422) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x3b33,"onecoreuap\\shell\\windows.storage\\dataaccess.cpp",uVar4);

+      uVar5 = uVar4;

+    }

     goto LAB_0;

   }

-  in_stack_00000050 = (char)unaff_R14;

-  in_stack_00000060 = unaff_R14;

-  ppvVar9 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&stack0x00000060);

-  puVar2 = *(ushort **)(unaff_RBX + 0x20);

-  SVar1 = *(STORAGEITEM_CREATION_FLAGS *)(unaff_RBX + 0x1c);

-  lVar6 = CStorageFolderBase::_CreateChild

-                    (*(IShellItem **)(unaff_RBP + -0x80),0x80,*(HSTRING__ **)(unaff_RBX + 8),

-                     *(CreationCollisionOption *)(unaff_RBX + 0x18),SVar1,puVar2,

-                     (bool *)&stack0x00000050,in_stack_00000038,ppvVar9);

-  if (lVar6 < 0) {

-    wil::details::in1diag3::_Log_Hr

-              (*(void **)(unaff_RBP + 0xb8),0x2a08,

-               "onecoreuap\\shell\\windows.storage\\dataaccess.cpp",lVar6);

+  local_30 = (longlong *)0x0;

+  pcVar1 = *(code **)(*local_20 + 0x50);

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_30);

+  uVar5 = (*pcVar1)(plVar2,L"SystemIndex",&local_30);

+  if ((int)uVar5 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x3b36,"onecoreuap\\shell\\windows.storage\\dataaccess.cpp",uVar5);

   }

   else {

-    plVar3 = (longlong *)*unaff_R12;

-    iVar7 = (**(code **)(*plVar3 + 0x18))(plVar3);

-    if ((iVar7 < 2) && (-1 < (char)SVar1)) {

-      ModifyZoneIdentifierOnItem<<lambda_e2a0c7358fc5548237ec36a7f405c98a>_>(in_stack_00000060);

-    }

-    in_stack_00000058 = (IStorageFile *)0x0;

-    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&stack0x00000058);

-    lVar6 = STORAGE_CreateStorageItemFromShellItem_FullTrustCaller_ForPackage

-                      (in_stack_00000060,SVar1,puVar2,&_GUID_fa3f6186_4214_428c_a64c_14c9ac7315ea,

-                       &stack0x00000058);

-    pIVar5 = in_stack_00000058;

-    pvVar11 = *(void **)(unaff_RBP + 0xb8);

-    if (lVar6 < 0) {

-      uVar13 = 0x2a22;

-LAB_1:

-      wil::details::in1diag3::_Log_Hr

-                (pvVar11,uVar13,"onecoreuap\\shell\\windows.storage\\dataaccess.cpp",lVar6);

+    local_38 = (longlong *)0x0;

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_57427023>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_57427023> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_57427023>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_57427023>::GetImpl(void)'

+                        ::__l2::impl);

+    plVar2 = local_30;

+    pcVar1 = *(code **)(*local_30 + 0xe0);

+    if (bVar3) {

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_38);

+      uVar5 = (*pcVar1)(plVar2,&local_38);

+      if ((int)uVar5 < 0) {

+        uVar4 = 0x3b50;

+        goto LAB_1;

+      }

+LAB_2:

+      local_28[0] = 0;

+      uVar5 = (**(code **)(*local_38 + 0x68))(local_38,*param_1,local_28);

+      if ((int)uVar5 < 0) {

+        uVar4 = 0x3b59;

+        goto LAB_1;

+      }

+      uVar5 = (uint)(local_28[0] == 0);

     }

     else {

-      puVar10 = (ushort *)(**(code **)(*plVar3 + 0x68))(plVar3,0);

-      lVar6 = StorageItemHelpers::EdpApplyAutomaticEncryption(puVar10,pIVar5);

-      if (lVar6 < 0) {

-        wil::details::in1diag3::_Log_Hr

-                  (*(void **)(unaff_RBP + 0xb8),0x2a25,

-                   "onecoreuap\\shell\\windows.storage\\dataaccess.cpp",lVar6);

-        if ((bool)in_stack_00000050 == false) {

-          in_stack_00000070 = (longlong *)0x0;

-          lVar8 = Microsoft::WRL::ComPtr<Windows::Storage::IStorageFile>::

-                  As<Windows::Storage::IStorageItem>

-                            ((ComPtr<Windows::Storage::IStorageFile> *)&stack0x00000058,

-                             &stack0x00000070);

-          plVar3 = in_stack_00000070;

-          if (lVar8 < 0) {

-            wil::details::in1diag3::_Log_Hr

-                      (*(void **)(unaff_RBP + 0xb8),0x2a2e,

-                       "onecoreuap\\shell\\windows.storage\\dataaccess.cpp",lVar8);

-          }

-          else {

-            in_stack_00000068 = (IAsyncAction *)0x0;

-            pcVar4 = *(code **)(*in_stack_00000070 + 0x48);

-            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

-                      ((ComPtr<IQuerySource> *)&stack0x00000068);

-            puVar14 = &stack0x00000068;

-            tVar12 = 1;

-            lVar8 = (*pcVar4)(plVar3);

-            pvVar11 = *(void **)(unaff_RBP + 0xb8);

-            if (lVar8 < 0) {

-              uVar13 = 0x2a31;

-LAB_2:

-              wil::details::in1diag3::_Log_Hr

-                        (pvVar11,uVar13,"onecoreuap\\shell\\windows.storage\\dataaccess.cpp",lVar8);

-            }

-            else {

-              lVar8 = WaitForCompletion<Windows::Foundation::IAsyncActionCompletedHandler,Windows::Foundation::IAsyncAction>

-                                (in_stack_00000068,tVar12,puVar14);

-              pvVar11 = *(void **)(unaff_RBP + 0xb8);

-              if (lVar8 < 0) {

-                uVar13 = 0x2a33;

-                goto LAB_2;

-              }

-            }

-            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

-                      ((ComPtr<IQuerySource> *)&stack0x00000068);

-          }

-          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

-                    ((ComPtr<IQuerySource> *)&stack0x00000070);

-        }

-      }

-      else {

-        lVar6 = CStorageItemResult<Windows::Storage::IStorageFile>::Initialize

-                          (unaff_R13,in_stack_00000060,SVar1,puVar2,

-                           (IStreamedFileDataRequestedCallback *)0x0);

-        pvVar11 = *(void **)(unaff_RBP + 0xb8);

-        if (lVar6 < 0) {

-          uVar13 = 0x2a28;

-          goto LAB_1;

-        }

-      }

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_38);

+      uVar5 = (*pcVar1)(plVar2,&local_38);

+      if (-1 < (int)uVar5) goto LAB_2;

+      uVar4 = 0x3b55;

+LAB_1:

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,uVar4,"onecoreuap\\shell\\windows.storage\\dataaccess.cpp",uVar5);

     }

-    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&stack0x00000058);

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_38);

   }

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&stack0x00000060);

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_30);

 LAB_0:

-  pvVar11 = (void *)(**(code **)(*(longlong *)*unaff_R12 + 0x88))();

-  lVar6 = SharedConvertHResultToWinRTFileAPIError(lVar6,pvVar11);

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -0x80))

-  ;

-  Windows::Internal::ScopedThreadActivityId::~ScopedThreadActivityId

-            ((ScopedThreadActivityId *)(unaff_RBP + -0x78));

-  StorageTelemetry::ActivityThreadWatcherWithCapturedCallerContextReportOnExit::

-  ~ActivityThreadWatcherWithCapturedCallerContextReportOnExit

-            ((ActivityThreadWatcherWithCapturedCallerContextReportOnExit *)(unaff_RBP + -0x50));

-  return lVar6;

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_20);

+  return uVar5;

 }
```

## `wil::details::WilApiImpl_RecordFeatureUsage`  (modified)

```diff
--- wil::details::WilApiImpl_RecordFeatureUsage
+++ wil::details::WilApiImpl_RecordFeatureUsage
@@ -1,2 +1,169 @@
-Failed to decompile windows.storage.dll - .ProgramDB wil::details::WilApiImpl_RecordFeatureUsage : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

+/* void __cdecl wil::details::WilApiImpl_RecordFeatureUsage(unsigned int,unsigned int,unsigned

+   int,char const * __ptr64) */

+

+void __cdecl

+wil::details::WilApiImpl_RecordFeatureUsage(uint param_1,uint param_2,uint param_3,char *param_4)

+

+{

+  FeatureStateData *SRWLock;

+  undefined8 *puVar1;

+  bool bVar2;

+  FeatureStateData FVar3;

+  uchar uVar4;

+  DWORD dwErrCode;

+  PTP_TIMER p_Var5;

+  undefined4 *puVar6;

+  undefined4 in_register_0000000c;

+  PSRWLOCK SRWLock_00;

+  __uint64 _Var7;

+  wil_details_ServiceReportingKind wVar8;

+  ulonglong uVar9;

+  uint uVar10;

+  uint local_38;

+  undefined2 uStack_34;

+  undefined2 uStack_32;

+  

+  uVar10 = (uint)param_4;

+  wVar8 = param_2 & 0x7fffffff;

+  if (((param_1 == 0) && (param_3 == 0)) && (wVar8 == 0)) {

+    FeatureStateManager::FlushUsage((FeatureStateManager *)&g_featureStateManager);

+    return;

+  }

+  if (wVar8 >> 0x1e == 0) {

+    if ((param_3 == 0) && (wVar8 != 0xfe)) {

+      wil_RtlStagingConfig_RecordFeatureUsage(CONCAT44(in_register_0000000c,param_1),wVar8);

+      return;

+    }

+    if (g_featureStateManager == (shutdown_aware_object<wil::details::FeatureStateManager>)0x0) {

+      return;

+    }

+    bVar2 = FeatureStateManager::EnsureStateData((FeatureStateManager *)&g_featureStateManager);

+    SRWLock = DAT_0;

+    if (!bVar2) {

+      return;

+    }

+    if (wVar8 == 0xfe) {

+      details_abi::FeatureStateData::RecordUsage(DAT_0);

+    }

+    else {

+      if ((199 < wVar8) && (0xff < wVar8 - 0x100)) {

+        return;

+      }

+      ::AcquireSRWLockExclusive((PSRWLOCK)DAT_0);

+      if ((wVar8 - 0x100 < 0x80) || ((wVar8 < 8 && ((0xccU >> (param_2 & 0x1f) & 1) != 0)))) {

+        details_abi::UsageIndex<wil_details_ServiceReportingKind,unsigned_int,0>::RecordUsage

+                  ((UsageIndex<wil_details_ServiceReportingKind,unsigned_int,0> *)(SRWLock + 8),

+                   wVar8,param_1,uVar10);

+        FVar3 = SRWLock[0x40];

+      }

+      else {

+        FVar3 = (FeatureStateData)

+                details_abi::UsageIndex<wil_details_ServiceReportingKind,unsigned_int,2>::

+                RecordUsage((UsageIndex<wil_details_ServiceReportingKind,unsigned_int,2> *)

+                            (SRWLock + 0x48),wVar8,param_1,param_3);

+      }

+      if (SRWLock != (FeatureStateData *)0x0) {

+        ReleaseSRWLockExclusive((PSRWLOCK)SRWLock);

+      }

+      if (FVar3 == (FeatureStateData)0x0) {

+        return;

+      }

+    }

+    if (g_processShutdownInProgress != false) {

+      return;

+    }

+    if ((g_pfnDllShutdownInProgress != (_func_uchar *)0x0) &&

+       (uVar4 = (*g_pfnDllShutdownInProgress)(), uVar4 != '\0')) {

+      return;

+    }

+    ::AcquireSRWLockExclusive((PSRWLOCK)&DAT_1);

+    if (DAT_2 == '\0') {

+      if (DAT_3 == 0) {

+        dwErrCode = GetLastError();

+        p_Var5 = CreateThreadpoolTimer

+                           (<lambda_d51448ba32f8ef42e59400edd4566183>::<lambda_invoker_cdecl>,

+                            &g_featureStateManager,(PTP_CALLBACK_ENVIRON)0x0);

+        unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>

+        ::reset((unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>

+                 *)&DAT_3,p_Var5);

+        ::SetLastError(dwErrCode);

+      }

+      EnsureCoalescedTimer_SetTimer

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>_>

+                  *)&DAT_3,(bool *)&DAT_180817681,300000);

+    }

+    SRWLock_00 = (PSRWLOCK)&DAT_1;

+    goto LAB_4;

+  }

+  if (g_featureStateManager == (shutdown_aware_object<wil::details::FeatureStateManager>)0x0) {

+    return;

+  }

+  if (g_processShutdownInProgress) {

+    return;

+  }

+  if ((g_pfnDllShutdownInProgress != (_func_uchar *)0x0) &&

+     (uVar4 = (*g_pfnDllShutdownInProgress)(), uVar4 != '\0')) {

+    return;

+  }

+  ::AcquireSRWLockExclusive((PSRWLOCK)&DAT_5);

+  uStack_32 = 0;

+  local_38 = param_1;

+  uStack_34 = (short)wVar8;

+  if ((ulonglong)((longlong)DAT_6 + (0xc - _DAT_180817728)) <

+      (ulonglong)((longlong)DAT_7 - _DAT_180817728)) {

+LAB_8:

+    puVar1 = DAT_6;

+    uVar9 = -(ulonglong)(DAT_6 < DAT_180817738) &

+            (longlong)DAT_7 - (longlong)DAT_180817730;

+    if (DAT_6 == (undefined8 *)0x0) {

+      puVar6 = (undefined4 *)_o__errno();

+      *puVar6 = 0x16;

+LAB_9:

+      _invalid_parameter_noinfo();

+    }

+    else {

+      if (uVar9 < 0xc) {

+        memset(DAT_6,0,uVar9);

+        puVar6 = (undefined4 *)_o__errno();

+        *puVar6 = 0x22;

+        goto LAB_9;

+      }

+      *DAT_6 = CONCAT26(uStack_32,CONCAT24(uStack_34,local_38));

+      *(uint *)(puVar1 + 1) = param_3;

+    }

+    DAT_6 = (undefined8 *)((longlong)DAT_6 + 0xc);

+  }

+  else {

+    uVar9 = ((longlong)DAT_7 - _DAT_180817728) * 2;

+    _Var7 = 0xc;

+    if (0xc < uVar9) {

+      _Var7 = uVar9;

+    }

+    bVar2 = details_abi::heap_buffer::reserve((heap_buffer *)&DAT_10,_Var7);

+    if (bVar2) goto LAB_8;

+  }

+  if (DAT_11 == '\0') {

+    if (DAT_12 == 0) {

+      last_error_context::last_error_context((last_error_context *)&local_38);

+      p_Var5 = CreateThreadpoolTimer

+                         (<lambda_5035b992506f4af81a770c5842624510>::<lambda_invoker_cdecl>,

+                          &g_featureStateManager,(PTP_CALLBACK_ENVIRON)0x0);

+      unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>

+      ::reset((unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>

+               *)&DAT_12,p_Var5);

+      last_error_context::~last_error_context((last_error_context *)&local_38);

+    }

+    EnsureCoalescedTimer_SetTimer

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>_>

+                *)&DAT_12,(bool *)&DAT_180817680,5000);

+  }

+  SRWLock_00 = (PSRWLOCK)&DAT_5;

+LAB_4:

+  ReleaseSRWLockExclusive(SRWLock_00);

+  return;

+}

+
```

## `CAutoDestList::_GetDPASortedByListType`  (modified)

```diff
--- CAutoDestList::_GetDPASortedByListType
+++ CAutoDestList::_GetDPASortedByListType
@@ -1,2 +1,47 @@
-Failed to decompile windows.storage.dll - .ProgramDB CAutoDestList::_GetDPASortedByListType : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: long __cdecl CAutoDestList::_GetDPASortedByListType(enum DESTLISTTYPE,class

+   CDPAWeak<struct DESTLISTENTRYMEMORY> * __ptr64) __ptr64 */

+

+long __thiscall

+CAutoDestList::_GetDPASortedByListType

+          (CAutoDestList *this,DESTLISTTYPE param_1,CDPAWeak<DESTLISTENTRYMEMORY> *param_2)

+

+{

+  bool bVar1;

+  BOOL BVar2;

+  long lVar3;

+  HDPA p_Var4;

+  uint uVar5;

+  undefined4 in_register_00000014;

+  void *unaff_retaddr;

+  

+  p_Var4 = (HDPA)CONCAT44(in_register_00000014,param_1);

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_54461705>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_54461705> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_54461705>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_54461705>::GetImpl(void)'

+                      ::__l2::impl);

+  if ((bVar1) && (*(longlong *)(this + 0x80) == 0)) {

+    return -0x7ff8fff3;

+  }

+  p_Var4 = DPA_Clone(*(HDPA *)(this + 0x80),p_Var4);

+  *(HDPA *)param_2 = p_Var4;

+  if (p_Var4 == (HDPA)0x0) {

+    lVar3 = -0x7ff8fff2;

+    uVar5 = 0x118a;

+  }

+  else {

+    if ((((param_1 == 1) ||

+         (BVar2 = DPA_Sort(p_Var4,s_DPA_SortEntryCB,(longlong)(int)param_1), BVar2 == 0)) ||

+        (bVar1 = IsExplorerFrequentWin10List(this), !bVar1)) ||

+       ((param_1 != 2 || (lVar3 = SortBySwapBuffer(this,param_2), -1 < lVar3)))) {

+      return 0;

+    }

+    uVar5 = 0x1191;

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar5,

+             "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\DestLists.cpp"

+             ,lVar3);

+  return lVar3;

+}

+
```

## `CFSTransfer::_FindUniqueName`  (modified)

```diff
--- CFSTransfer::_FindUniqueName
+++ CFSTransfer::_FindUniqueName
@@ -1,2 +1,164 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSTransfer::_FindUniqueName : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* private: long __cdecl CFSTransfer::_FindUniqueName(unsigned short const * __ptr64,unsigned short

+   const * __ptr64,unsigned short const * __ptr64,unsigned short const * __ptr64,unsigned short *

+   __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CFSTransfer::_FindUniqueName

+          (CFSTransfer *this,ushort *param_1,ushort *param_2,ushort *param_3,ushort *param_4,

+          ushort **param_5)

+

+{

+  short sVar1;

+  IFSTransferCache *pIVar2;

+  int iVar3;

+  long lVar4;

+  longlong lVar5;

+  longlong lVar6;

+  ulonglong uVar7;

+  short *psVar8;

+  LPWSTR psz;

+  longlong lVar9;

+  ulonglong uVar10;

+  uint uVar11;

+  longlong lVar12;

+  short *psVar13;

+  void *unaff_retaddr;

+  undefined1 auStack_4f8 [32];

+  int *local_4d8;

+  ushort **local_4d0;

+  int local_4c8 [2];

+  IFSTransferCache *local_4c0;

+  LPCWSTR local_4b8 [2];

+  WCHAR local_4a8 [32];

+  short local_468 [264];

+  ushort local_258 [264];

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStack_4f8;

+  *param_5 = (ushort *)0x0;

+  iVar3 = LoadStringW(g_hinst,0x10e1,local_4a8,0x20);

+  if (iVar3 == 0) {

+    lVar5 = 3;

+  }

+  else {

+    lVar5 = -1;

+    do {

+      lVar5 = lVar5 + 1;

+    } while (local_4a8[lVar5] != L'\0');

+  }

+  lVar9 = -1;

+  do {

+    lVar9 = lVar9 + 1;

+  } while (param_1[lVar9] != 0);

+  lVar12 = -1;

+  do {

+    lVar12 = lVar12 + 1;

+  } while (param_4[lVar12] != 0);

+  lVar6 = -1;

+  do {

+    lVar6 = lVar6 + 1;

+  } while (param_3[lVar6] != 0);

+  uVar10 = (0x104 - lVar6) - (lVar5 + 5 + lVar9 + lVar12);

+  uVar7 = 0xffffffffffffffff;

+  do {

+    uVar7 = uVar7 + 1;

+  } while (param_2[uVar7] != 0);

+  if (uVar7 <= uVar10) {

+    uVar10 = 0xffffffffffffffff;

+    do {

+      uVar10 = uVar10 + 1;

+    } while (param_2[uVar10] != 0);

+  }

+  if (uVar10 < 0x7fffffff) {

+    lVar5 = 0x104;

+    psVar13 = local_468;

+    do {

+      if ((lVar5 + -0x104 + uVar10 == 0) ||

+         (sVar1 = *(short *)(((longlong)param_2 - (longlong)local_468) + (longlong)psVar13),

+         sVar1 == 0)) break;

+      *psVar13 = sVar1;

+      psVar13 = psVar13 + 1;

+      lVar5 = lVar5 + -1;

+    } while (lVar5 != 0);

+    psVar8 = psVar13 + -1;

+    if (lVar5 != 0) {

+      psVar8 = psVar13;

+    }

+    *psVar8 = 0;

+  }

+  else {

+    local_468[0] = 0;

+  }

+  StringCchPrintfW(local_258,0x104,param_4,local_468);

+  if (param_3 != (ushort *)0x0) {

+    StringCchCatW(local_258,0x104,param_3);

+  }

+  local_4c8[0] = 0;

+  iVar3 = GetStartIndexFromUniqueNameTemplate(param_2,local_4c8);

+  if (iVar3 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xe64,

+               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\filecopy.cpp",iVar3);

+    return iVar3;

+  }

+  local_4c8[0] = local_4c8[0] + 1;

+  local_4c0 = (IFSTransferCache *)0x0;

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_4c0);

+  lVar4 = _GetFSTransferCache(this,&local_4c0);

+  if (-1 < lVar4) {

+    (**(code **)(*(longlong *)local_4c0 + 0x20))

+              (local_4c0,*(undefined8 *)(this + 0x110),local_4c8[0],local_4c8);

+  }

+  local_4b8[0] = (LPCWSTR)0x0;

+  local_4d0 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)local_4b8);

+  local_4d8 = local_4c8;

+  lVar4 = TryMakeUniqueName(param_1,param_2,local_258,local_4c8[0]);

+  pIVar2 = local_4c0;

+  if (lVar4 < 0) {

+    uVar11 = 0xe72;

+  }

+  else {

+    if (local_4b8[0] == (LPCWSTR)0x0) {

+      if (local_4c0 != (IFSTransferCache *)0x0) {

+        local_4c0 = (IFSTransferCache *)0x0;

+        (**(code **)(*(longlong *)pIVar2 + 0x10))();

+      }

+      return -0x7ff8ff32;

+    }

+    psz = PathFindFileNameW(local_4b8[0]);

+    lVar4 = SHStrDupW(psz,(LPWSTR *)param_5);

+    if (-1 < lVar4) {

+      if ((local_4c0 != (IFSTransferCache *)0x0) && (local_4c8[0] != 0x7fffffff)) {

+        (**(code **)(*(longlong *)local_4c0 + 0x28))(local_4c0,local_4c8[0] + 1);

+      }

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)local_4b8);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_4c0);

+      return 0;

+    }

+    uVar11 = 0xe77;

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar11,

+             "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\filecopy.cpp",lVar4);

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              *)local_4b8);

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_4c0);

+  return lVar4;

+}

+
```

## `std::vector<unsigned_short_const*___ptr64,std::allocator<unsigned_short_const*___ptr64>_>::_Resize_reallocate<std::_Value_init_tag>`  (modified)

```diff
--- std::vector<unsigned_short_const*___ptr64,std::allocator<unsigned_short_const*___ptr64>_>::_Resize_reallocate<std::_Value_init_tag>
+++ std::vector<unsigned_short_const*___ptr64,std::allocator<unsigned_short_const*___ptr64>_>::_Resize_reallocate<std::_Value_init_tag>
@@ -1,2 +1,37 @@
-Failed to decompile windows.storage.dll - .ProgramDB std::vector<unsigned_short_const*___ptr64,std::allocator<unsigned_short_const*___ptr64>_>::_Resize_reallocate<std::_Value_init_tag> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl std::vector<unsigned short const * __ptr64,class std::allocator<unsigned

+   short const * __ptr64> >::_Resize_reallocate<struct std::_Value_init_tag>(unsigned __int64,struct

+   std::_Value_init_tag const & __ptr64) __ptr64 */

+

+void __thiscall

+std::vector<unsigned_short_const*___ptr64,std::allocator<unsigned_short_const*___ptr64>_>::

+_Resize_reallocate<std::_Value_init_tag>

+          (vector<unsigned_short_const*___ptr64,std::allocator<unsigned_short_const*___ptr64>_>

+           *this,__uint64 param_1,_Value_init_tag *param_2)

+

+{

+  __uint64 _Var1;

+  ushort **_Dst;

+  ulonglong uVar2;

+  ulonglong uVar3;

+  longlong lVar4;

+  

+  if (0x1fffffffffffffff < param_1) {

+                    /* WARNING: Subroutine does not return */

+    vector<winrt::hstring,std::allocator<winrt::hstring>_>::_Xlength();

+  }

+  lVar4 = *(longlong *)(this + 8) - *(longlong *)this >> 3;

+  uVar2 = *(longlong *)(this + 0x10) - *(longlong *)this >> 3;

+  uVar3 = 0x1fffffffffffffff;

+  if ((uVar2 <= 0x1fffffffffffffff - (uVar2 >> 1)) &&

+     (uVar3 = (uVar2 >> 1) + uVar2, uVar3 < param_1)) {

+    uVar3 = param_1;

+  }

+  _Var1 = _Get_size_of_n<8>(uVar3);

+  _Dst = _Allocate<16,std::_Default_allocate_traits,0>(_Var1);

+  memset(_Dst + lVar4,0,(param_1 - lVar4) * 8);

+  memmove(_Dst,*(void **)this,*(longlong *)(this + 8) - *(longlong *)this);

+  _Change_array(this,_Dst,param_1,uVar3);

+  return;

+}

+
```

## `<lambda_c23527d630a795b45494211a57dc21d9>::operator()`  (modified)

```diff
--- <lambda_c23527d630a795b45494211a57dc21d9>::operator()
+++ <lambda_c23527d630a795b45494211a57dc21d9>::operator()
@@ -1,2 +1,153 @@
-Failed to decompile windows.storage.dll - .ProgramDB <lambda_c23527d630a795b45494211a57dc21d9>::operator() : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: long __cdecl <lambda_c23527d630a795b45494211a57dc21d9>::operator()(void)const __ptr64 */

+

+long __thiscall

+<lambda_c23527d630a795b45494211a57dc21d9>::operator()

+          (<lambda_c23527d630a795b45494211a57dc21d9> *this)

+

+{

+  undefined4 *puVar1;

+  longlong lVar2;

+  code *pcVar3;

+  longlong *plVar4;

+  long lVar5;

+  int iVar6;

+  DWORD DVar7;

+  ushort **ppuVar8;

+  undefined8 *puVar9;

+  uint uVar10;

+  void *unaff_retaddr;

+  undefined1 auStack_f8 [32];

+  undefined8 local_d8;

+  longlong **local_d0;

+  longlong *local_b8;

+  longlong *local_b0;

+  undefined4 local_a8 [2];

+  undefined8 *local_a0;

+  ushort *local_98;

+  undefined8 local_90;

+  undefined1 local_88 [24];

+  undefined8 local_70 [4];

+  undefined8 local_50 [4];

+  ulonglong local_30;

+  

+  local_30 = __security_cookie ^ (ulonglong)auStack_f8;

+  puVar1 = *(undefined4 **)(this + 0x10);

+  *puVar1 = 0;

+  local_a0 = (undefined8 *)0x0;

+  lVar2 = *(longlong *)this;

+  lVar5 = wil::get_token_information_nothrow<_TOKEN_USER,0>

+                    ((unique_ptr<_TOKEN_USER,wil::details::token_info_deleter> *)&local_a0,

+                     *(void **)(lVar2 + 0x40));

+  if (lVar5 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x1fc,

+               "onecoreuap\\shell\\windows.storage\\capturedcallercontextlib\\capturedcallercontext.cpp"

+               ,lVar5);

+    puVar9 = local_a0;

+    if (local_a0 == (undefined8 *)0x0) {

+      return lVar5;

+    }

+    goto LAB_0;

+  }

+  local_98 = (ushort *)0x0;

+  ppuVar8 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_98);

+  puVar9 = local_a0;

+  iVar6 = ConvertSidToStringSidW(*local_a0,ppuVar8);

+  if (iVar6 == 0) {

+    lVar5 = wil::details::in1diag3::Return_GetLastError

+                      (unaff_retaddr,0x1ff,

+                       "onecoreuap\\shell\\windows.storage\\capturedcallercontextlib\\capturedcallercontext.cpp"

+                      );

+  }

+  else {

+    Windows::Internal::StringReference::_ConstructorHelper((StringReference *)local_50,local_98);

+    Windows::Internal::StringReference::_ConstructorHelper

+              ((StringReference *)local_70,*(ushort **)(this + 8));

+    local_b0 = (longlong *)0x0;

+    iVar6 = WindowsCreateStringReference

+                      (L"Windows.Internal.CapabilityAccess.CapabilityAccess",0x32,local_88,&local_90

+                      );

+    if (iVar6 < 0) {

+      RaiseException(0xc000000d,1,0,(ULONG_PTR *)0x0);

+    }

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_b0);

+    lVar5 = RoGetActivationFactory(local_90,&_GUID_518f3880_4e5c_4524_ab03_cd01336b2178,&local_b0);

+    plVar4 = local_b0;

+    if (lVar5 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x206,

+                 "onecoreuap\\shell\\windows.storage\\capturedcallercontextlib\\capturedcallercontext.cpp"

+                 ,lVar5);

+    }

+    else {

+      local_b8 = (longlong *)0x0;

+      if ((*(longlong *)(lVar2 + 0x38) + 1U & 0xfffffffffffffffe) == 0) {

+        pcVar3 = *(code **)(*local_b0 + 0x30);

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_b8);

+        local_d8 = &local_b8;

+        lVar5 = (*pcVar3)(plVar4,local_50[0],local_70[0],*(undefined8 *)(this + 0x18));

+        if (lVar5 < 0) {

+          uVar10 = 0x20b;

+        }

+        else {

+LAB_1:

+          if (this[0x20] != (<lambda_c23527d630a795b45494211a57dc21d9>)0x0) {

+            (**(code **)(*local_b8 + 0x90))(local_b8,0);

+          }

+          local_a8[0] = 0;

+          lVar5 = (**(code **)(*local_b8 + 0x58))(local_b8,1);

+          if (lVar5 < 0) {

+            uVar10 = 0x21d;

+          }

+          else {

+            lVar5 = (**(code **)(*local_b8 + 0x98))(local_b8,local_a8);

+            if (-1 < lVar5) {

+              *puVar1 = local_a8[0];

+              Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                        ((ComPtr<IQuerySource> *)&local_b8);

+              Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease

+                        ((ComPtr<IQuerySource> *)&local_b0);

+              lVar5 = 0;

+              goto LAB_2;

+            }

+            uVar10 = 0x21e;

+          }

+        }

+      }

+      else {

+        pcVar3 = *(code **)(*local_b0 + 0x38);

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_b8);

+        DVar7 = GetProcessId(*(HANDLE *)(lVar2 + 0x38));

+        local_d0 = &local_b8;

+        local_d8 = (longlong **)((ulonglong)local_d8._4_4_ << 0x20);

+        lVar5 = (*pcVar3)(plVar4,local_50[0],local_70[0],DVar7);

+        if (-1 < lVar5) goto LAB_1;

+        uVar10 = 0x213;

+      }

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,uVar10,

+                 "onecoreuap\\shell\\windows.storage\\capturedcallercontextlib\\capturedcallercontext.cpp"

+                 ,lVar5);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_b8);

+    }

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_b0);

+  }

+LAB_2:

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_98);

+LAB_0:

+  operator_delete__(puVar9);

+  return lVar5;

+}

+
```

## `tip2::details::find_flags_match`  (modified)

```diff
--- tip2::details::find_flags_match
+++ tip2::details::find_flags_match
@@ -1,14 +1,22 @@
+

+/* struct tip2::test_requirement const * __ptr64 __cdecl tip2::details::find_flags_match(class

+   tip2::test_state const & __ptr64,struct tip2::test_requirement const * __ptr64,bool) */

 

 test_requirement * __cdecl

-`CShellItem::GetImageStreamForRequestedIconSize'::find_flags_match

-          (test_state *param_1,test_requirement *param_2,bool param_3)

+tip2::details::find_flags_match(test_state *param_1,test_requirement *param_2,bool param_3)

 

 {

-  code *pcVar1;

+  bool bVar1;

   test_requirement *ptVar2;

   

-  pcVar1 = (code *)swi(3);

-  ptVar2 = (test_requirement *)(*pcVar1)();

-  return ptVar2;

+  do {

+    ptVar2 = param_2;

+    bVar1 = test_state::is_flag_set<unsigned_short>(param_1,*(ushort *)param_2);

+    if (bVar1 == param_3) {

+      return param_2;

+    }

+    param_2 = param_2 + 0x10;

+  } while (*(longlong *)(ptVar2 + 0x18) != 0);

+  return (test_requirement *)0x0;

 }
```

## `CCopyUndoHandler::FinishOperations`  (modified)

```diff
--- CCopyUndoHandler::FinishOperations
+++ CCopyUndoHandler::FinishOperations
@@ -1,2 +1,54 @@
-Failed to decompile windows.storage.dll - .ProgramDB CCopyUndoHandler::FinishOperations : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CCopyUndoHandler::FinishOperations(long) __ptr64 */

+

+long __thiscall CCopyUndoHandler::FinishOperations(CCopyUndoHandler *this,long param_1)

+

+{

+  bool bVar1;

+  long lVar2;

+  int iVar3;

+  undefined1 auStack_38 [32];

+  longlong *local_18;

+  ulonglong local_10;

+  

+  local_10 = __security_cookie ^ (ulonglong)auStack_38;

+  if (((*(CFileOperationUndoUnit **)(this + 0x10) == (CFileOperationUndoUnit *)0x0) ||

+      (this[0x24] == (CCopyUndoHandler)0x0)) ||

+     (lVar2 = CFileOperationUndoUnit::IsValidUndo(*(CFileOperationUndoUnit **)(this + 0x10)),

+     lVar2 != 0)) {

+    local_18 = (longlong *)0x0;

+    bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61051567>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61051567> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61051567>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61051567>::GetImpl(void)'

+                        ::__l2::impl);

+    if (bVar1) {

+      iVar3 = SHELL32_SHGetThreadUndoManager(&local_18,0);

+      if (iVar3 < 0) {

+        iVar3 = 0;

+        goto LAB_0;

+      }

+    }

+    else {

+      iVar3 = SHELL32_SHGetThreadUndoManager(&local_18,1);

+      if (iVar3 < 0) goto LAB_0;

+    }

+    iVar3 = (**(code **)(*local_18 + 0x38))(local_18,0);

+  }

+  else {

+    local_18 = (longlong *)0x0;

+    iVar3 = SHELL32_SHGetThreadUndoManager(&local_18,1);

+    if (-1 < iVar3) {

+      iVar3 = (**(code **)(*local_18 + 0x28))(local_18,*(undefined8 *)(this + 0x10));

+      CFileOperationUndoUnit::Release(*(CFileOperationUndoUnit **)(this + 0x10));

+      *(undefined8 *)(this + 0x10) = 0;

+    }

+  }

+LAB_0:

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_18);

+  return iVar3;

+}

+
```

## `SyncRootTranslator::TryTranslate`  (modified)

```diff
--- SyncRootTranslator::TryTranslate
+++ SyncRootTranslator::TryTranslate
@@ -1,2 +1,344 @@
-Failed to decompile windows.storage.dll - .ProgramDB SyncRootTranslator::TryTranslate : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: static class wistd::unique_ptr<struct _ITEMIDLIST_ABSOLUTE,struct

+   wil::function_deleter<void (__cdecl*)(void * __ptr64),&void __cdecl CoTaskMemFree(void *

+   __ptr64)> > __cdecl SyncRootTranslator::TryTranslate(struct _ITEMIDLIST_ABSOLUTE const * __ptr64)

+    */

+

+_ITEMIDLIST_ABSOLUTE * __cdecl SyncRootTranslator::TryTranslate(_ITEMIDLIST_ABSOLUTE *param_1)

+

+{

+  _func_13400 *p_Var1;

+  code *pcVar2;

+  longlong *plVar3;

+  IShellItem *This;

+  longlong *plVar4;

+  bool bVar5;

+  char cVar6;

+  int iVar7;

+  HRESULT HVar8;

+  long lVar9;

+  BOOL BVar10;

+  LPWSTR *ppszName;

+  ushort **ppuVar11;

+  undefined8 *puVar12;

+  com_ptr_t<struct_IShellItem2,struct_wil::err_exception_policy> *pcVar13;

+  LPCITEMIDLIST pidl2;

+  IShellItem IVar14;

+  CComPtrBase<IKnownFolderManager> *this;

+  _ITEMIDLIST_RELATIVE *in_RDX;

+  IShellItem2 *pIVar15;

+  void *unaff_retaddr;

+  undefined1 auStackY_108 [32];

+  IShellItem2 *local_c8;

+  longlong *local_c0;

+  undefined4 local_b8;

+  _ITEMIDLIST_ABSOLUTE *local_b0;

+  _ITEMIDLIST_RELATIVE **local_a8;

+  undefined8 local_a0;

+  undefined1 local_98;

+  IShellItem local_90;

+  IShellItem local_88;

+  longlong *local_80;

+  _ITEMIDLIST_RELATIVE *local_78;

+  longlong *local_70;

+  void *local_68;

+  IShellItem *local_60;

+  undefined8 local_58;

+  undefined8 local_50;

+  longlong *local_48;

+  undefined8 local_40;

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_108;

+  *(undefined8 *)param_1 = 0;

+  local_b8 = 1;

+  local_b0 = param_1;

+  iVar7 = ILIsEmpty(in_RDX);

+  if (iVar7 != 0) {

+    return param_1;

+  }

+  bVar5 = Windows::Internal::SyncRootHelpers::AreAnyStorageProvidersRegistered();

+  if (!bVar5) {

+    return param_1;

+  }

+  cVar6 = RtlIsThreadWithinLoaderCallout();

+  if (cVar6 != '\0') {

+    return param_1;

+  }

+  local_60 = (IShellItem *)0x0;

+  HVar8 = SHCreateItemFromIDList

+                    ((LPCITEMIDLIST)in_RDX,(IID *)&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,

+                     &local_60);

+  This = local_60;

+  if (HVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x175,

+               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",HVar8);

+  }

+  local_40 = 0;

+  p_Var1 = local_60->lpVtbl->GetDisplayName;

+  ppszName = (LPWSTR *)

+             wil::

+             unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+             ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_40);

+  HVar8 = (*p_Var1)(This,SIGDN_FILESYSPATH,ppszName);

+  if (HVar8 < 0) goto LAB_0;

+  local_80 = (longlong *)0x0;

+  bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61766564> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61766564>::GetImpl(void)'

+                      ::__l2::impl);

+  plVar3 = local_80;

+  if (bVar5) {

+    local_80 = (longlong *)0x0;

+    if (plVar3 != (longlong *)0x0) {

+      (**(code **)(*plVar3 + 0x10))();

+    }

+    local_80 = (longlong *)0x0;

+    HVar8 = SHCoCreateInstance((LPCWSTR)0x0,(CLSID *)&CLSID_SyncRootManager,(IUnknown *)0x0,

+                               (IID *)&_GUID_692d40a4_efa1_4089_88f8_15fd6f5f8b64,&local_80);

+    if (HVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x17d,

+                 "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",HVar8);

+    }

+  }

+  else {

+    local_80 = (longlong *)0x0;

+    if (plVar3 != (longlong *)0x0) {

+      (**(code **)(*plVar3 + 0x10))();

+    }

+    HVar8 = CoCreateInstance((IID *)&CLSID_SyncRootManager,(LPUNKNOWN)0x0,1,

+                             (IID *)&_GUID_692d40a4_efa1_4089_88f8_15fd6f5f8b64,&local_80);

+    if (HVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x181,

+                 "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",HVar8);

+    }

+  }

+  local_70 = (longlong *)0x0;

+  local_48 = (longlong *)0x0;

+  iVar7 = (**(code **)*local_80)(local_80,&_GUID_03cef3b1_e5de_4654_80d6_d300c5bdc39a,&local_48);

+  plVar4 = local_48;

+  plVar3 = local_70;

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x1c6c,

+               "onecore\\internal\\sdk\\inc\\wil\\opensource\\wil\\result_macros.h",iVar7);

+  }

+  local_b8 = 3;

+  pcVar2 = *(code **)(*local_48 + 0x20);

+  local_70 = (longlong *)0x0;

+  if (plVar3 != (longlong *)0x0) {

+    (**(code **)(*plVar3 + 0x10))();

+  }

+  iVar7 = (*pcVar2)(plVar4,local_40,1,&local_70);

+  plVar3 = local_70;

+  if (-1 < iVar7) {

+    local_50 = 0;

+    pcVar2 = *(code **)(*local_70 + 0x18);

+    ppuVar11 = wil::

+               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_50);

+    iVar7 = (*pcVar2)(plVar3,ppuVar11);

+    plVar3 = local_80;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x18a,

+                 "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",iVar7);

+    }

+    local_c0 = (longlong *)0x0;

+    local_c8 = (IShellItem2 *)0x0;

+    local_58 = 0;

+    pcVar2 = *(code **)(*local_80 + 0x88);

+    ppuVar11 = wil::

+               unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+               ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_58);

+    iVar7 = (*pcVar2)(plVar3,local_50,0,ppuVar11);

+    if (-1 < iVar7) {

+      puVar12 = (undefined8 *)

+                wil::GetItemFromParsingNameAndAttributes((ushort *)&local_90,(ulong)local_58);

+      pIVar15 = (IShellItem2 *)*puVar12;

+      *puVar12 = 0;

+      wil::com_ptr_t<IShellItem2,wil::err_exception_policy>::attach

+                ((com_ptr_t<IShellItem2,wil::err_exception_policy> *)&local_c0,pIVar15);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      plVar3 = local_c0;

+      pcVar13 = (com_ptr_t<struct_IShellItem2,struct_wil::err_exception_policy> *)

+                TryFindFolderOnRootDesktop((IShellItem2 *)&local_90);

+      wil::com_ptr_t<IShellItem2,wil::err_exception_policy>::operator=

+                ((com_ptr_t<IShellItem2,wil::err_exception_policy> *)&local_c8,pcVar13);

+      ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                ((CComPtrBase<IKnownFolderManager> *)&local_90);

+      pIVar15 = local_c8;

+      if (local_c8 == (IShellItem2 *)0x0) {

+        local_88.lpVtbl = (IShellItemVtbl *)0x0;

+        iVar7 = (**(code **)(*plVar3 + 0x20))(plVar3,&local_88);

+        if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x19f,

+                     "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",iVar7);

+        }

+        bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61766564> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61766564>::GetImpl(void)'

+                            ::__l2::impl);

+        if (bVar5) {

+          wil::com_ptr_t<IShellItem,wil::err_exception_policy>::query<IShellItem2>

+                    ((com_ptr_t<IShellItem,wil::err_exception_policy> *)&local_88);

+          pcVar13 = (com_ptr_t<struct_IShellItem2,struct_wil::err_exception_policy> *)

+                    TryFindFolderOnRootDesktop((IShellItem2 *)&local_90);

+          wil::com_ptr_t<IShellItem2,wil::err_exception_policy>::operator=

+                    ((com_ptr_t<IShellItem2,wil::err_exception_policy> *)&local_c8,pcVar13);

+          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                    ((CComPtrBase<IKnownFolderManager> *)&local_90);

+          pIVar15 = local_c8;

+          if (local_c8 != (IShellItem2 *)0x0) {

+            wil::com_ptr_t<IShellItem2,wil::err_exception_policy>::operator=

+                      ((com_ptr_t<IShellItem2,wil::err_exception_policy> *)&local_c0,

+                       (com_ptr_t<struct_IShellItem2,struct_wil::err_exception_policy> *)&local_78);

+          }

+          this = (CComPtrBase<IKnownFolderManager> *)&local_78;

+LAB_1:

+          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>(this);

+        }

+        else {

+          wil::com_ptr_t<IShellItem,wil::err_exception_policy>::query<IShellItem2>

+                    ((com_ptr_t<IShellItem,wil::err_exception_policy> *)&local_88);

+          pcVar13 = (com_ptr_t<struct_IShellItem2,struct_wil::err_exception_policy> *)

+                    TryFindFolderOnRootDesktop((IShellItem2 *)&local_90);

+          wil::com_ptr_t<IShellItem2,wil::err_exception_policy>::operator=

+                    ((com_ptr_t<IShellItem2,wil::err_exception_policy> *)&local_c8,pcVar13);

+          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                    ((CComPtrBase<IKnownFolderManager> *)&local_90);

+          ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                    ((CComPtrBase<IKnownFolderManager> *)&local_68);

+          pIVar15 = local_c8;

+          if (local_c8 != (IShellItem2 *)0x0) {

+            puVar12 = (undefined8 *)

+                      wil::com_ptr_t<IShellItem,wil::err_exception_policy>::query<IShellItem2>

+                                ((com_ptr_t<IShellItem,wil::err_exception_policy> *)&local_88);

+            local_c0 = (longlong *)*puVar12;

+            if (local_c0 != (longlong *)0x0) {

+              (**(code **)(*local_c0 + 8))();

+            }

+            if (plVar3 != (longlong *)0x0) {

+              (**(code **)(*plVar3 + 0x10))(plVar3);

+            }

+            this = (CComPtrBase<IKnownFolderManager> *)&local_90;

+            goto LAB_1;

+          }

+        }

+        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                  ((CComPtrBase<IKnownFolderManager> *)&local_88);

+        if (pIVar15 == (IShellItem2 *)0x0) goto LAB_2;

+      }

+      bVar5 = IsFileSystemFolder(pIVar15);

+      if (bVar5) {

+        wil::GetAbsoluteIdList(&local_90);

+        wil::GetAbsoluteIdList(&local_88);

+        local_78 = (_ITEMIDLIST_RELATIVE *)0x0;

+        local_68 = (void *)0x0;

+        lVar9 = GetUnaliasedItem(local_60,(IBindCtx *)pIVar15,

+                                 (_GUID *)&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,&local_68);

+        if (-1 < lVar9) {

+          local_a8 = &local_78;

+          local_a0 = 0;

+          local_98 = 1;

+          iVar7 = SHGetIDListFromObject(local_68,&local_a0);

+          if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+            wil::details::in1diag3::_Throw_Hr

+                      (unaff_retaddr,0x1c4,

+                       "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",iVar7)

+            ;

+          }

+          wil::details::

+          out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+          ::

+          ~out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                    ((out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                      *)&local_a8);

+          in_RDX = local_78;

+        }

+        BVar10 = ILIsEqual((LPCITEMIDLIST)in_RDX,(LPCITEMIDLIST)local_90.lpVtbl);

+        IVar14.lpVtbl = local_88.lpVtbl;

+        if (BVar10 == 0) {

+          pidl2 = (LPCITEMIDLIST)_ILIsParent(local_90.lpVtbl,in_RDX,0);

+          if (pidl2 != (LPCITEMIDLIST)0x0) {

+            IVar14.lpVtbl = (IShellItemVtbl *)ILCombine(local_88.lpVtbl,pidl2);

+            goto LAB_3;

+          }

+        }

+        else {

+          local_88.lpVtbl = (IShellItemVtbl *)0x0;

+LAB_3:

+          wistd::

+          unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+          ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                   *)param_1,(tagSERIALIZEDPROPSTORAGE *)IVar14.lpVtbl);

+        }

+        wistd::

+        unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+        ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                 *)&local_78,(tagSERIALIZEDPROPSTORAGE *)0x0);

+        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                  ((CComPtrBase<IKnownFolderManager> *)&local_68);

+        wistd::

+        unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+        ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                 *)&local_88,(tagSERIALIZEDPROPSTORAGE *)0x0);

+        wistd::

+        unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+        ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                 *)&local_90,(tagSERIALIZEDPROPSTORAGE *)0x0);

+      }

+    }

+LAB_2:

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_58);

+    ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+              ((CComPtrBase<IKnownFolderManager> *)&local_c8);

+    ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+              ((CComPtrBase<IKnownFolderManager> *)&local_c0);

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_50);

+  }

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_48);

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_70);

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_80);

+LAB_0:

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)&local_40);

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_60);

+  return param_1;

+}

+
```

## `tip2::tip_test<tip2::details::merged_data<_tip_AsyncCanDeletePathTipTest,_tip_AsyncCanDeletePathTipTest>_>::complete_and_fail`  (modified)

```diff
--- tip2::tip_test<tip2::details::merged_data<_tip_AsyncCanDeletePathTipTest,_tip_AsyncCanDeletePathTipTest>_>::complete_and_fail
+++ tip2::tip_test<tip2::details::merged_data<_tip_AsyncCanDeletePathTipTest,_tip_AsyncCanDeletePathTipTest>_>::complete_and_fail
@@ -1,2 +1,22 @@
-Failed to decompile windows.storage.dll - .ProgramDB tip2::tip_test<tip2::details::merged_data<_tip_AsyncCanDeletePathTipTest,_tip_AsyncCanDeletePathTipTest>_>::complete_and_fail : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl tip2::tip_test<class tip2::details::merged_data<struct

+   _tip_AsyncCanDeletePathTipTest,struct _tip_AsyncCanDeletePathTipTest>

+   >::complete_and_fail(unsigned short,char const * __ptr64) __ptr64 */

+

+void __thiscall

+tip2::

+tip_test<tip2::details::merged_data<_tip_AsyncCanDeletePathTipTest,_tip_AsyncCanDeletePathTipTest>_>

+::complete_and_fail(tip_test<tip2::details::merged_data<_tip_AsyncCanDeletePathTipTest,_tip_AsyncCanDeletePathTipTest>_>

+                    *this,ushort param_1,char *param_2)

+

+{

+  undefined2 in_register_00000012;

+  

+  if (*(longlong *)this != 0) {

+    details::shared_data<0,0,0>::complete_without_lock

+              ((shared_data<0,0,0> *)(*(longlong *)this + 8),

+               CONCAT31((int3)(CONCAT22(in_register_00000012,param_1) >> 8),3),param_1,param_2);

+  }

+  return;

+}

+
```

## `CFSFolder::_DiscoverLocalizedName`  (modified)

```diff
--- CFSFolder::_DiscoverLocalizedName
+++ CFSFolder::_DiscoverLocalizedName
@@ -1,2 +1,236 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::_DiscoverLocalizedName : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* protected: long __cdecl CFSFolder::_DiscoverLocalizedName(struct _ITEMIDLIST_RELATIVE const

+   __unaligned * __ptr64,struct tagWIN32_FIND_DATA_EX const * __ptr64,unsigned short *

+   __ptr64,unsigned int) __ptr64 */

+

+long __thiscall

+CFSFolder::_DiscoverLocalizedName

+          (CFSFolder *this,_ITEMIDLIST_RELATIVE *param_1,tagWIN32_FIND_DATA_EX *param_2,

+          ushort *param_3,uint param_4)

+

+{

+  code *pcVar1;

+  char cVar2;

+  bool bVar3;

+  long lVar4;

+  int iVar5;

+  ulong uVar6;

+  ushort **ppuVar7;

+  ComPtr<IQuerySource> *pCVar8;

+  uint uVar9;

+  tagWIN32_FIND_DATA_EX *ptVar10;

+  void *unaff_retaddr;

+  undefined1 auStack_2b8 [32];

+  undefined4 local_298;

+  ICachedPrivateProfile *local_288;

+  ushort *local_280;

+  ICachedPrivateProfile *local_278;

+  ICachedPrivateProfile *local_270;

+  ushort *local_268;

+  ulong local_260;

+  ulong local_25c;

+  ushort local_258 [264];

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStack_2b8;

+  *param_3 = 0;

+  local_268 = (ushort *)0x0;

+  if ((*(uint *)param_2 & 0x400) == 0) {

+LAB_0:

+    bVar3 = false;

+  }

+  else {

+    cVar2 = RtlIsCloudFilesPlaceholder(*(undefined4 *)param_2,*(undefined4 *)(param_2 + 0x24));

+    bVar3 = true;

+    if (cVar2 != '\0') goto LAB_0;

+  }

+  if (((((byte)*param_2 & 0x10) == 0) || (bVar3)) || (((byte)*param_2 & 5) == 0)) {

+    if (param_1 == (_ITEMIDLIST_RELATIVE *)0x0) {

+      uVar6 = _Attributes(this);

+      if ((uVar6 & 5) == 0) {

+        wil::details::

+        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    *)&local_268);

+        return -0x7fffbffb;

+      }

+      local_270 = (ICachedPrivateProfile *)0x0;

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_270);

+      lVar4 = _GetDesktopIni(this,&local_270);

+      if (-1 < lVar4) {

+        ptVar10 = param_2 + 0x2c;

+        local_298 = 0x104;

+        iVar5 = GetFolderString(local_270,L"LocalizedFileNames",ptVar10,local_258);

+        if (iVar5 == 0) {

+          pCVar8 = (ComPtr<IQuerySource> *)&local_270;

+LAB_1:

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar8);

+LAB_2:

+          lVar4 = -0x7fffbffb;

+          goto LAB_3;

+        }

+        lVar4 = _CopyResource(local_258,param_3,(uint)ptVar10);

+        if (-1 < lVar4) {

+          pCVar8 = (ComPtr<IQuerySource> *)&local_270;

+LAB_4:

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar8);

+          goto LAB_5;

+        }

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x660,"onecoreuap\\shell\\windows.storage\\fileext.cpp",lVar4);

+      }

+      pCVar8 = (ComPtr<IQuerySource> *)&local_270;

+    }

+    else {

+      pcVar1 = *(code **)(*(longlong *)(this + 0x138) + 0x70);

+      ppuVar7 = wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                       *)&local_268);

+      lVar4 = (*pcVar1)(this + 0x138,param_1,1,ppuVar7);

+      if (lVar4 < 0) {

+        uVar9 = 0x652;

+        goto LAB_6;

+      }

+      local_278 = (ICachedPrivateProfile *)0x0;

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_278);

+      lVar4 = SHGetCachedPrivateProfile(local_268,0x100000,&local_278);

+      if (-1 < lVar4) {

+        ptVar10 = param_2 + 0x2c;

+        local_298 = 0x104;

+        iVar5 = GetFolderString(local_278,L"LocalizedFileNames",ptVar10,local_258);

+        if (iVar5 == 0) {

+          pCVar8 = (ComPtr<IQuerySource> *)&local_278;

+          goto LAB_1;

+        }

+        lVar4 = _CopyResource(local_258,param_3,(uint)ptVar10);

+        if (-1 < lVar4) {

+          pCVar8 = (ComPtr<IQuerySource> *)&local_278;

+          goto LAB_4;

+        }

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x658,"onecoreuap\\shell\\windows.storage\\fileext.cpp",lVar4);

+      }

+      pCVar8 = (ComPtr<IQuerySource> *)&local_278;

+    }

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar8);

+    goto LAB_3;

+  }

+  pcVar1 = *(code **)(*(longlong *)(this + 0x138) + 0x70);

+  ppuVar7 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_268);

+  lVar4 = (*pcVar1)(this + 0x138,param_1,1,ppuVar7);

+  if (lVar4 < 0) {

+    uVar9 = 0x62b;

+LAB_6:

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar9,"onecoreuap\\shell\\windows.storage\\fileext.cpp",lVar4);

+    goto LAB_3;

+  }

+  local_280 = (ushort *)0x0;

+  ppuVar7 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_280);

+  lVar4 = PathAllocCombine(local_268,param_2 + 0x2c,1,ppuVar7);

+  if (lVar4 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x62e,"onecoreuap\\shell\\windows.storage\\fileext.cpp",lVar4);

+  }

+  else {

+    local_288 = (ICachedPrivateProfile *)0x0;

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_288);

+    lVar4 = SHGetCachedPrivateProfile(local_280,0x100000,&local_288);

+    if (-1 < lVar4) {

+      local_298 = 0x104;

+      uVar9 = 0x80719748;

+      iVar5 = GetFolderString(local_288,L".ShellClassInfo",L"LocalizedResourceName",local_258);

+      if (iVar5 == 0) {

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_288);

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_280);

+        goto LAB_2;

+      }

+      lVar4 = _CopyResource(local_258,param_3,uVar9);

+      if (lVar4 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x635,"onecoreuap\\shell\\windows.storage\\fileext.cpp",lVar4);

+        goto LAB_7;

+      }

+      bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_Servicing_LocalizedResourceName>

+              ::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_Servicing_LocalizedResourceName> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_Servicing_LocalizedResourceName>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_Servicing_LocalizedResourceName>::GetImpl(void)'

+                          ::__l2::impl);

+      if (bVar3) {

+        if (*param_3 == 0x40) {

+          local_260 = 0xffffffff;

+          iVar5 = TryGetResourceStringZone(param_3,&local_260);

+          uVar9 = local_260;

+          goto joined_r0x0001800477df;

+        }

+      }

+      else {

+        local_25c = 0xffffffff;

+        iVar5 = TryGetResourceStringZone(param_3,&local_25c);

+        uVar9 = local_25c;

+joined_r0x0001800477df:

+        if ((iVar5 == 0) || (2 < uVar9)) {

+          *param_3 = 0;

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_288);

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+          ::

+          ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_280);

+          lVar4 = -0x7ff8fffb;

+          goto LAB_3;

+        }

+      }

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_288);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&local_280);

+LAB_5:

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_268);

+      return 0;

+    }

+LAB_7:

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_288);

+  }

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_280);

+LAB_3:

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)&local_268);

+  return lVar4;

+}

+
```

## `CFileUrlStub::TryGetPathFromKnownFolder`  (modified)

```diff
--- CFileUrlStub::TryGetPathFromKnownFolder
+++ CFileUrlStub::TryGetPathFromKnownFolder
@@ -1,2 +1,107 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFileUrlStub::TryGetPathFromKnownFolder : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Type propagation algorithm not settling */

+/* private: class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> > __cdecl CFileUrlStub::TryGetPathFromKnownFolder(unsigned short

+   const * __ptr64,unsigned short const * __ptr64,unsigned long) __ptr64 */

+

+ushort * __thiscall

+CFileUrlStub::TryGetPathFromKnownFolder

+          (CFileUrlStub *this,ushort *param_1,ushort *param_2,ulong param_3)

+

+{

+  code *pcVar1;

+  longlong *plVar2;

+  int iVar3;

+  ulonglong uVar4;

+  ushort **ppuVar5;

+  undefined4 in_register_0000008c;

+  void *unaff_retaddr;

+  uint in_stack_00000028;

+  undefined1 auStack_88 [40];

+  longlong *local_60;

+  _GUID local_58;

+  undefined8 local_48;

+  ulonglong local_40;

+  

+  local_40 = __security_cookie ^ (ulonglong)auStack_88;

+  uVar4 = 0xffffffffffffffff;

+  do {

+    uVar4 = uVar4 + 1;

+  } while (param_2[uVar4] != 0);

+  local_58._0_8_ = param_1;

+  if (uVar4 <= in_stack_00000028) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x2b5,"onecoreuap\\shell\\windows.storage\\deskfldr.cpp",-0x7ff8ffa9);

+  }

+  wil::CoCreateInstance<IKnownFolderManager,wil::err_exception_policy>(&local_58,(ulong)param_1);

+  local_60 = (longlong *)0x0;

+  iVar3 = (**(code **)(*(longlong *)local_58._0_8_ + 0x38))

+                    (local_58._0_8_,CONCAT44(in_register_0000008c,param_3),&local_60);

+  plVar2 = local_60;

+  if (iVar3 < 0) {

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+              ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                *)param_1,(ushort *)L"");

+  }

+  else {

+    local_48 = 0;

+    pcVar1 = *(code **)(*local_60 + 0x30);

+    ppuVar5 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_48);

+    iVar3 = (*pcVar1)(plVar2,0x4000,ppuVar5);

+    if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,700,"onecoreuap\\shell\\windows.storage\\deskfldr.cpp",iVar3);

+    }

+    local_58.Data4[0] = '\0';

+    local_58.Data4[1] = '\0';

+    local_58.Data4[2] = '\0';

+    local_58.Data4[3] = '\0';

+    local_58.Data4[4] = '\0';

+    local_58.Data4[5] = '\0';

+    local_58.Data4[6] = '\0';

+    local_58.Data4[7] = '\0';

+    ppuVar5 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)local_58.Data4);

+    iVar3 = PathAllocCombine(local_48,param_2 + in_stack_00000028,1,ppuVar5);

+    if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x2bf,"onecoreuap\\shell\\windows.storage\\deskfldr.cpp",iVar3);

+    }

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+              ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                *)param_1,(ushort *)local_58.Data4);

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)local_58.Data4);

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_48);

+  }

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_60);

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_58);

+  return param_1;

+}

+
```

## `CFSFolder::SetResourceDisplayName`  (modified)

```diff
--- CFSFolder::SetResourceDisplayName
+++ CFSFolder::SetResourceDisplayName
@@ -1,2 +1,78 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::SetResourceDisplayName : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CFSFolder::SetResourceDisplayName(struct _ITEMID_CHILD const

+   __unaligned * __ptr64,unsigned short const * __ptr64,int) __ptr64 */

+

+long __thiscall

+CFSFolder::SetResourceDisplayName

+          (CFSFolder *this,_ITEMID_CHILD *param_1,ushort *param_2,int param_3)

+

+{

+  long lVar1;

+  DWORD DVar2;

+  IDFOLDER *pIVar3;

+  ushort **ppuVar4;

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+  *puVar5;

+  longlong lVar6;

+  __uint64 _Var8;

+  DWORD cchBuffer;

+  undefined1 auStackY_98 [32];

+  ushort *local_68;

+  LPWSTR local_60;

+  ulonglong local_58;

+  longlong lVar7;

+  

+  local_58 = __security_cookie ^ (ulonglong)auStackY_98;

+  lVar1 = -0x7ff8ffa9;

+  pIVar3 = _IsValidID(this,(_ITEMIDLIST_RELATIVE *)param_1);

+  if (pIVar3 != (IDFOLDER *)0x0) {

+    lVar6 = -1;

+    do {

+      lVar7 = lVar6;

+      lVar6 = lVar7 + 1;

+    } while (param_2[lVar6] != 0);

+    _Var8 = lVar7 + 2;

+    local_60 = (LPWSTR)0x0;

+    puVar5 = (unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_60;

+    ppuVar4 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put(puVar5);

+    lVar1 = _AllocArray<unsigned_short,CTLocalAllocPolicy>(puVar5,0x40,_Var8,ppuVar4);

+    if (-1 < lVar1) {

+      cchBuffer = (DWORD)_Var8;

+      DVar2 = GetShortPathNameW((LPCWSTR)param_2,local_60,cchBuffer);

+      if (DVar2 != 0) {

+        param_2 = (ushort *)local_60;

+        cchBuffer = DVar2;

+      }

+      local_68 = (ushort *)0x0;

+      puVar5 = (unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_68;

+      ppuVar4 = wil::

+                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                ::put(puVar5);

+      lVar1 = _AllocArray<unsigned_short,CTLocalAllocPolicy>

+                        (puVar5,0x40,(ulonglong)(cchBuffer + 0xe),ppuVar4);

+      if (-1 < lVar1) {

+        StringCchPrintfW(local_68,(ulonglong)(cchBuffer + 0xe),(ushort *)L"@%s,%d",param_2);

+        lVar1 = _SetLocalizedDisplayName(this + -0x58,param_1,pIVar3,true,local_68);

+      }

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+      ::

+      ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  *)&local_68);

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_60);

+  }

+  return lVar1;

+}

+
```

## `std::_Make_heap_unchecked<DesktopRegItemCache::WstringToPidlEntry*___ptr64,<lambda_838f9ff3f3e4137a1ef5a55f2263d6ea>_>`  (modified)

```diff
--- std::_Make_heap_unchecked<DesktopRegItemCache::WstringToPidlEntry*___ptr64,<lambda_838f9ff3f3e4137a1ef5a55f2263d6ea>_>
+++ RemoveDuplicateIfNecessary
@@ -1,59 +1,117 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-/* void __cdecl std::_Make_heap_unchecked<struct DesktopRegItemCache::WstringToPidlEntry *

-   __ptr64,class <lambda_838f9ff3f3e4137a1ef5a55f2263d6ea> >(struct

-   DesktopRegItemCache::WstringToPidlEntry * __ptr64,struct DesktopRegItemCache::WstringToPidlEntry

-   * __ptr64,class <lambda_838f9ff3f3e4137a1ef5a55f2263d6ea>) */

+/* void __cdecl RemoveDuplicateIfNecessary(struct IShellFolder2 * __ptr64,struct IItemStore *

+   __ptr64,int,struct tagITEMKEY * __ptr64,int,struct tagITEMKEY * __ptr64,class std::vector<struct

+   std::pair<int,class std::basic_string<unsigned short,struct std::char_traits<unsigned

+   short>,class std::allocator<unsigned short> > >,class std::allocator<struct std::pair<int,class

+   std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> > > > > & __ptr64) */

 

 void __cdecl

-std::

-_Make_heap_unchecked<DesktopRegItemCache::WstringToPidlEntry*___ptr64,<lambda_838f9ff3f3e4137a1ef5a55f2263d6ea>_>

-          (longlong param_1,longlong param_2,undefined1 param_3)

+RemoveDuplicateIfNecessary

+          (IShellFolder2 *param_1,IItemStore *param_2,int param_3,tagITEMKEY *param_4,int param_5,

+          tagITEMKEY *param_6,

+          vector<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>_>

+          *param_7)

 

 {

-  longlong lVar1;

-  longlong lVar2;

-  undefined4 *puVar3;

-  undefined1 auStack_88 [32];

-  undefined1 local_68;

-  undefined4 local_58;

-  undefined4 uStack_54;

-  undefined4 uStack_50;

-  undefined4 uStack_4c;

-  undefined4 local_48;

-  undefined4 uStack_44;

-  undefined4 uStack_40;

-  undefined4 uStack_3c;

-  undefined8 local_38;

-  ulonglong local_30;

+  bool bVar1;

+  bool bVar2;

+  long lVar3;

+  int iVar4;

+  LONG LVar5;

+  ushort **ppuVar6;

+  _FILETIME *p_Var7;

+  void *unaff_retaddr;

+  undefined1 auStackY_a8 [32];

+  _FILETIME local_78;

+  wchar_t *local_70;

+  _FILETIME local_68;

+  wchar_t *local_60;

+  LPCWSTR local_58;

+  LPCWSTR local_50;

+  _FILETIME local_48;

+  ulonglong local_40;

   

-  local_30 = __security_cookie ^ (ulonglong)auStack_88;

-  lVar1 = (param_2 - param_1 >> 3) * -0x3333333333333333;

-  lVar2 = lVar1 >> 1;

-  if (0 < lVar2) {

-    puVar3 = (undefined4 *)(param_1 + -0x28 + lVar2 * 0x28);

-    do {

-      local_58 = *puVar3;

-      uStack_54 = puVar3[1];

-      uStack_50 = puVar3[2];

-      uStack_4c = puVar3[3];

-      lVar2 = lVar2 + -1;

-      local_48 = puVar3[4];

-      uStack_44 = puVar3[5];

-      uStack_40 = puVar3[6];

-      uStack_3c = puVar3[7];

-      *(undefined8 *)(puVar3 + 4) = 0;

-      *(undefined8 *)(puVar3 + 6) = 7;

-      *(undefined2 *)puVar3 = 0;

-      local_38 = *(undefined8 *)(puVar3 + 8);

-      *(undefined8 *)(puVar3 + 8) = 0;

-      local_68 = param_3;

-      _Pop_heap_hole_by_index<DesktopRegItemCache::WstringToPidlEntry*___ptr64,DesktopRegItemCache::WstringToPidlEntry,<lambda_838f9ff3f3e4137a1ef5a55f2263d6ea>_>

-                (param_1,lVar2,lVar1,&local_58);

-      DesktopRegItemCache::WstringToPidlEntry::~WstringToPidlEntry((WstringToPidlEntry *)&local_58);

-      puVar3 = puVar3 + -10;

-    } while (0 < lVar2);

+  local_40 = __security_cookie ^ (ulonglong)auStackY_a8;

+  bVar1 = IsGraphFile(param_2,param_6,param_1);

+  bVar2 = IsGraphFile(param_2,param_4,param_1);

+  if (bVar1 == bVar2) {

+    local_50 = (LPCWSTR)0x0;

+    local_58 = (LPCWSTR)0x0;

+    ppuVar6 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_50);

+    lVar3 = GetStringProperty(param_2,param_6,param_1,(_tagpropertykey *)&PKEY_WebAccountID,ppuVar6)

+    ;

+    if (lVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x505,

+                 "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\dvtasks.cpp",lVar3);

+    }

+    ppuVar6 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_58);

+    lVar3 = GetStringProperty(param_2,param_4,param_1,(_tagpropertykey *)&PKEY_WebAccountID,ppuVar6)

+    ;

+    if (lVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x506,

+                 "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\dvtasks.cpp",lVar3);

+    }

+    iVar4 = CompareStringOrdinal(local_50,-1,local_58,-1,0);

+    if (iVar4 != 2) {

+      bVar1 = IsPinnedFile(param_2,param_6,param_1);

+      bVar2 = IsPinnedFile(param_2,param_4,param_1);

+      if (bVar1 == bVar2) {

+        local_68 = GetAccessedFileTimeFromItem(param_1,param_2,param_6);

+        local_48 = GetAccessedFileTimeFromItem(param_1,param_2,param_4);

+        LVar5 = CompareFileTime(&local_68,&local_48);

+        p_Var7 = &local_78;

+        local_78.dwLowDateTime = param_3;

+        if (LVar5 < 0) {

+          local_78.dwLowDateTime = param_5;

+        }

+        local_70 = L"unused";

+      }

+      else {

+        p_Var7 = &local_68;

+        if (bVar1) {

+          param_5 = param_3;

+        }

+        local_68.dwLowDateTime = param_5;

+        local_60 = L"unused";

+      }

+      std::

+      vector<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>_>

+      ::emplace_back<std::pair<int,unsigned_short_const*___ptr64>_>

+                (param_7,(pair<int,unsigned_short_const*___ptr64> *)p_Var7);

+    }

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_58);

+    wil::details::

+    unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                *)&local_50);

+  }

+  else if ((!bVar2) || (param_3 = param_5, !bVar1)) {

+    local_68.dwLowDateTime = param_3;

+    local_60 = L"unused";

+    std::

+    vector<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>_>

+    ::emplace_back<std::pair<int,unsigned_short_const*___ptr64>_>

+              (param_7,(pair<int,unsigned_short_const*___ptr64> *)&local_68);

   }

   return;

 }
```

## `CFormatForDisplayHelper::FormatForDisplay`  (modified)

```diff
--- CFormatForDisplayHelper::FormatForDisplay
+++ CFormatForDisplayHelper::FormatForDisplay
@@ -1,2 +1,55 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFormatForDisplayHelper::FormatForDisplay : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CFormatForDisplayHelper::FormatForDisplay(enum

+   PROPDESC_DISPLAYTYPE,enum tagPSFORMATAS,struct _tagpropertykey const & __ptr64,struct

+   tagPROPVARIANT const & __ptr64,unsigned short * __ptr64 * __ptr64,int * __ptr64) __ptr64 */

+

+long __thiscall

+CFormatForDisplayHelper::FormatForDisplay

+          (CFormatForDisplayHelper *this,PROPDESC_DISPLAYTYPE param_1,tagPSFORMATAS param_2,

+          _tagpropertykey *param_3,tagPROPVARIANT *param_4,ushort **param_5,int *param_6)

+

+{

+  long lVar1;

+  ushort *pv;

+  undefined1 auStackY_288 [32];

+  ushort *local_258;

+  undefined8 local_250;

+  undefined8 local_248;

+  ushort local_238 [264];

+  ulonglong local_28;

+  

+  local_28 = __security_cookie ^ (ulonglong)auStackY_288;

+  *param_5 = (ushort *)0x0;

+  *param_6 = 0;

+  local_258 = (ushort *)0x0;

+  local_250 = 0;

+  local_248 = 0;

+  lVar1 = _FormatSpecialCaseProperty

+                    (this,param_3,param_4,

+                     (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_258

+                     ,param_6);

+  if (*param_6 == 0) {

+    *param_6 = 0;

+    lVar1 = 0;

+    if ((param_1 == PDDT_STRING) && (param_2 - 1 < 2)) {

+      *param_6 = 1;

+      lVar1 = PropVariantToString(param_4,local_238,0x104);

+      if ((-1 < lVar1) && (lVar1 = HideExtension(), -1 < lVar1)) {

+        lVar1 = Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                ::Concat((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                         &local_258,local_238);

+      }

+    }

+  }

+  pv = local_258;

+  if ((-1 < lVar1) && (*param_6 != 0)) {

+    *param_5 = local_258;

+    pv = (ushort *)0x0;

+  }

+  if (pv != (ushort *)0x0) {

+    CoTaskMemFree(pv);

+  }

+  return lVar1;

+}

+
```

## `std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>`  (modified)

```diff
--- std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>
+++ wil::details::ThreadFailureCallbackHolder::~ThreadFailureCallbackHolder
@@ -1,2 +1,2 @@
-Failed to decompile windows.storage.dll - .ProgramDB std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_> : Error: Decompile error: 
+Failed to decompile windows.storage.dll - .ProgramDB wil::details::ThreadFailureCallbackHolder::~ThreadFailureCallbackHolder : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `CStorageItem::_CheckName`  (modified)

```diff
--- CStorageItem::_CheckName
+++ CStorageItem::_CheckName
@@ -1,2 +1,104 @@
-Failed to decompile windows.storage.dll - .ProgramDB CStorageItem::_CheckName : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* protected: static long __cdecl CStorageItem::_CheckName(struct IShellItem * __ptr64,struct

+   HSTRING__ * __ptr64) */

+

+long __cdecl CStorageItem::_CheckName(IShellItem *param_1,HSTRING__ *param_2)

+

+{

+  _func_13398 *p_Var1;

+  code *pcVar2;

+  IItemNameLimits *pIVar3;

+  longlong *plVar4;

+  int iVar5;

+  long lVar6;

+  BOOL BVar7;

+  HRESULT HVar8;

+  ushort **ppuVar9;

+  void **ppvVar10;

+  long lVar11;

+  uint uVar12;

+  undefined1 auStackY_98 [32];

+  LPCWSTR local_68;

+  IItemNameLimits *local_60;

+  longlong *local_58;

+  LPCWSTR local_50;

+  HSTRING__ *local_48 [4];

+  ulonglong local_28;

+  

+  local_28 = __security_cookie ^ (ulonglong)auStackY_98;

+  local_48[0] = param_2;

+  iVar5 = WindowsGetStringLen(param_2);

+  lVar6 = 0;

+  if (iVar5 == 0) {

+    lVar6 = -0x7ff8ffa9;

+  }

+  CheckAndReportError(lVar6,0xc62d);

+  if (iVar5 == 0) {

+    return lVar6;

+  }

+  local_68 = (LPCWSTR)0x0;

+  lVar6 = Windows::Internal::String::GetLpcwstr((String *)local_48,(ushort **)&local_68);

+  if (lVar6 < 0) {

+    return lVar6;

+  }

+  local_50 = (LPCWSTR)0x0;

+  BVar7 = PathIsRelativeW(local_68);

+  if (BVar7 != 0) {

+    ppuVar9 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_50);

+    iVar5 = PathAllocCanonicalize(local_68,1,ppuVar9);

+    if ((-1 < iVar5) && (iVar5 = StrCmpICW(local_50,local_68), iVar5 == 0)) {

+      local_60 = (IItemNameLimits *)0x0;

+      p_Var1 = param_1->lpVtbl->BindToHandler;

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_60);

+      HVar8 = (*p_Var1)(param_1,(IBindCtx *)0x0,(GUID *)&BHID_SFObject,

+                        (IID *)&_GUID_1df0d7f1_b267_4d28_8b10_12e23202a5c4,&local_60);

+      if (HVar8 < 0) {

+        local_58 = (longlong *)0x0;

+        ppvVar10 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IShellItem2>_>(&local_58);

+        lVar6 = GetDefaultSaveLocationFromItem

+                          (param_1,(_GUID *)&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,ppvVar10);

+        plVar4 = local_58;

+        if (-1 < lVar6) {

+          pcVar2 = *(code **)(*local_58 + 0x18);

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_60);

+          (*pcVar2)(plVar4,0,&BHID_SFObject,&_GUID_1df0d7f1_b267_4d28_8b10_12e23202a5c4);

+        }

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_58);

+      }

+      lVar6 = IsValidNameForFolderItem((ushort *)local_68,local_60);

+      if (lVar6 < 0) {

+        lVar11 = -0x7ff8ff32;

+        if (lVar6 == -0x7ff8ff32) {

+          uVar12 = 0xc62e;

+        }

+        else {

+          lVar11 = -0x7ff8ff85;

+          if (lVar6 != -0x7ff8ff85) goto LAB_0;

+          uVar12 = 0xc62f;

+        }

+        CheckAndReportErrorForPath(lVar11,uVar12,(ushort *)local_68);

+      }

+LAB_0:

+      pIVar3 = local_60;

+      if (local_60 != (IItemNameLimits *)0x0) {

+        local_60 = (IItemNameLimits *)0x0;

+        (**(code **)(*(longlong *)pIVar3 + 0x10))();

+      }

+      goto LAB_1;

+    }

+  }

+  RoOriginateError(0x80070057,0);

+  lVar6 = -0x7ff8ffa9;

+LAB_1:

+  if (local_50 != (LPCWSTR)0x0) {

+    LocalFree(local_50);

+  }

+  return lVar6;

+}

+
```

## `wil::make_unique_failfast<RegistryBasedIdListAliasTranslator>`  (modified)

```diff
--- wil::make_unique_failfast<RegistryBasedIdListAliasTranslator>
+++ wil::make_unique_failfast<RegistryBasedIdListAliasTranslator>
@@ -1,2 +1,30 @@
-Failed to decompile windows.storage.dll - .ProgramDB wil::make_unique_failfast<RegistryBasedIdListAliasTranslator> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* class wistd::unique_ptr<class RegistryBasedIdListAliasTranslator,struct

+   wistd::default_delete<class RegistryBasedIdListAliasTranslator> > __cdecl

+   wil::make_unique_failfast<class RegistryBasedIdListAliasTranslator>(void) */

+

+undefined8 * __cdecl wil::make_unique_failfast<RegistryBasedIdListAliasTranslator>(void)

+

+{

+  code *pcVar1;

+  RegistryBasedIdListAliasTranslator *this;

+  longlong lVar2;

+  undefined8 *puVar3;

+  char *in_R8;

+  void *unaff_retaddr;

+  

+  this = operator_new(0x10,&std::nothrow);

+  lVar2 = 0;

+  if (this != (RegistryBasedIdListAliasTranslator *)0x0) {

+    lVar2 = RegistryBasedIdListAliasTranslator::RegistryBasedIdListAliasTranslator(this);

+  }

+  if (lVar2 != 0) {

+    DAT_0 = lVar2;

+    return &DAT_0;

+  }

+  details::in1diag3::_FailFast_NullAlloc(unaff_retaddr,0x9b0,in_R8);

+  pcVar1 = (code *)swi(3);

+  puVar3 = (undefined8 *)(*pcVar1)();

+  return puVar3;

+}

+
```

## `RegistryBasedIdListAliasTranslator::TryAddItem`  (modified)

```diff
--- RegistryBasedIdListAliasTranslator::TryAddItem
+++ RegistryBasedIdListAliasTranslator::TryAddItem
@@ -1,2 +1,166 @@
-Failed to decompile windows.storage.dll - .ProgramDB RegistryBasedIdListAliasTranslator::TryAddItem : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: void __cdecl RegistryBasedIdListAliasTranslator::TryAddItem(struct HKEY__ *

+   __ptr64,unsigned short const * __ptr64) __ptr64 */

+

+void __thiscall

+RegistryBasedIdListAliasTranslator::TryAddItem

+          (RegistryBasedIdListAliasTranslator *this,HKEY__ *param_1,ushort *param_2)

+

+{

+  LPVOID pvVar1;

+  uint uVar2;

+  long lVar3;

+  unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+  *puVar4;

+  unique_ptr<RegistryBasedIdListAliasTranslator::TranslateItem,std::default_delete<RegistryBasedIdListAliasTranslator::TranslateItem>_>

+  *puVar5;

+  unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+  *this_00;

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+  *this_01;

+  _WIN32_FIND_DATAW *p_Var6;

+  SIMPLE_IDLIST_FLAGS SVar7;

+  void *unaff_retaddr;

+  undefined1 auStackY_728 [32];

+  unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+  *local_6e8;

+  _WIN32_FIND_DATAW *local_6e0;

+  char local_6d8;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_6d0 [32];

+  unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+  *local_6b0;

+  LPVOID local_6a8;

+  LPVOID local_6a0;

+  _WIN32_FIND_DATAW local_698;

+  ushort local_448 [264];

+  ushort local_238 [264];

+  ulonglong local_28;

+  

+  local_28 = __security_cookie ^ (ulonglong)auStackY_728;

+  local_6b0._0_4_ = 0x208;

+  this_00 = (unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+             *)0x0;

+  uVar2 = RegGetValueW(param_1,(LPCWSTR)param_2,L"Source",2,(LPDWORD)0x0,local_448,

+                       (LPDWORD)&local_6b0);

+  if ((uVar2 != 0) && (local_448[0] = 0, 0 < (int)uVar2)) {

+    uVar2 = uVar2 & 0xffff | 0x80070000;

+  }

+  if ((int)uVar2 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x87,

+               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",uVar2);

+  }

+  local_6b0 = (unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+               *)CONCAT44(local_6b0._4_4_,0x208);

+  uVar2 = RegGetValueW(param_1,(LPCWSTR)param_2,L"Target",2,(LPDWORD)0x0,local_238,

+                       (LPDWORD)&local_6b0);

+  if ((uVar2 != 0) && (local_238[0] = 0, 0 < (int)uVar2)) {

+    uVar2 = uVar2 & 0xffff | 0x80070000;

+  }

+  if (-1 < (int)uVar2) {

+    local_6a0 = (LPVOID)0x0;

+    local_6a8 = (LPVOID)0x0;

+    SVar7 = 0x24c;

+    memset(&local_698.ftCreationTime,0,0x24c);

+    local_698.dwFileAttributes = 0x10;

+    local_6e8 = (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                 *)&local_6a0;

+    local_6e0 = (_WIN32_FIND_DATAW *)0x0;

+    local_6d8 = '\x01';

+    lVar3 = SHSimpleIDListFromFindDataAndFlags

+                      (local_448,&local_698,SVar7,(_ITEMIDLIST_ABSOLUTE **)&local_6e0);

+    if (lVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x91,

+                 "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",lVar3);

+    }

+    if (local_6d8 != '\0') {

+      wistd::

+      unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+      ::reset(local_6e8,(tagSERIALIZEDPROPSTORAGE *)local_6e0);

+    }

+    local_6e8 = (unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                 *)&local_6a8;

+    local_6e0 = (_WIN32_FIND_DATAW *)0x0;

+    local_6d8 = '\x01';

+    p_Var6 = &local_698;

+    lVar3 = SHSimpleIDListFromFindDataAndFlags

+                      (local_238,p_Var6,SVar7,(_ITEMIDLIST_ABSOLUTE **)&local_6e0);

+    if (-1 < lVar3) {

+      if (local_6d8 != '\0') {

+        p_Var6 = local_6e0;

+        wistd::

+        unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+        ::reset(local_6e8,(tagSERIALIZEDPROPSTORAGE *)local_6e0);

+      }

+      puVar4 = CZeroInitNew::operator_new(0x10,(nothrow_t *)p_Var6);

+      if (puVar4 != (unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+                     *)0x0) {

+        *(undefined8 *)puVar4 = 0;

+        *(undefined8 *)(puVar4 + 8) = 0;

+        this_00 = puVar4;

+      }

+      local_6b0 = this_00;

+      wistd::

+      unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+      ::swap(this_00,(unique_ptr<unsigned_char_[0],struct_wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+                      *)&local_6a0);

+      wistd::

+      unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+      ::swap(this_00 + 8,

+             (unique_ptr<unsigned_char_[0],struct_wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+              *)&local_6a8);

+      puVar5 = (unique_ptr<RegistryBasedIdListAliasTranslator::TranslateItem,std::default_delete<RegistryBasedIdListAliasTranslator::TranslateItem>_>

+                *)std::

+                  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  ::

+                  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                            (local_6d0,param_2);

+      std::

+      map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::unique_ptr<RegistryBasedIdListAliasTranslator::TranslateItem,std::default_delete<RegistryBasedIdListAliasTranslator::TranslateItem>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::unique_ptr<RegistryBasedIdListAliasTranslator::TranslateItem,std::default_delete<RegistryBasedIdListAliasTranslator::TranslateItem>_>_>_>_>

+      ::

+      _Insert_or_assign<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::unique_ptr<RegistryBasedIdListAliasTranslator::TranslateItem,std::default_delete<RegistryBasedIdListAliasTranslator::TranslateItem>_>_>

+                ((map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::unique_ptr<RegistryBasedIdListAliasTranslator::TranslateItem,std::default_delete<RegistryBasedIdListAliasTranslator::TranslateItem>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::unique_ptr<RegistryBasedIdListAliasTranslator::TranslateItem,std::default_delete<RegistryBasedIdListAliasTranslator::TranslateItem>_>_>_>_>

+                  *)this,(basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          *)&local_6e8,puVar5);

+      this_01 = (pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                 *)local_6d0;

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                (this_01);

+      if (local_6b0 !=

+          (unique_ptr<unsigned_char_[0],wil::function_deleter<void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64)>_>

+           *)0x0) {

+        std::default_delete<RegistryBasedIdListAliasTranslator::TranslateItem>::operator()

+                  ((default_delete<RegistryBasedIdListAliasTranslator::TranslateItem> *)this_01,

+                   (TranslateItem *)local_6b0);

+      }

+      pvVar1 = local_6a8;

+      local_6a8 = (LPVOID)0x0;

+      if (pvVar1 != (LPVOID)0x0) {

+        CoTaskMemFree(pvVar1);

+      }

+      pvVar1 = local_6a0;

+      local_6a0 = (LPVOID)0x0;

+      if (pvVar1 != (LPVOID)0x0) {

+        CoTaskMemFree(pvVar1);

+      }

+      return;

+    }

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x92,

+               "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",lVar3);

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_Throw_Hr

+            (unaff_retaddr,0x8a,

+             "onecoreuap\\shell\\windows.storage\\sharedstoragesources\\folder.cpp",uVar2);

+}

+
```

## `CFSFolder::_OpenCreateStorage`  (modified)

```diff
--- CFSFolder::_OpenCreateStorage
+++ CFSFolder::_OpenCreateStorage
@@ -1,2 +1,103 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::_OpenCreateStorage : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* protected: long __cdecl CFSFolder::_OpenCreateStorage(unsigned short const * __ptr64,unsigned

+   long,struct IStorage * __ptr64 * __ptr64,int) __ptr64 */

+

+long __thiscall

+CFSFolder::_OpenCreateStorage

+          (CFSFolder *this,ushort *param_1,ulong param_2,IStorage **param_3,int param_4)

+

+{

+  long lVar1;

+  int iVar2;

+  ushort **ppuVar3;

+  void *unaff_retaddr;

+  undefined1 auStack_a8 [32];

+  IStorage **local_88;

+  undefined8 *local_80;

+  undefined8 local_78;

+  undefined8 *local_68;

+  undefined8 local_60;

+  undefined1 local_58;

+  uint local_50;

+  ushort *local_48;

+  undefined8 local_40;

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_a8;

+  *param_3 = (IStorage *)0x0;

+  if ((param_1 == (ushort *)0x0) || ((param_2 & 0xffffef8c) != 0)) {

+    return -0x7ffcffa9;

+  }

+  local_48 = (ushort *)0x0;

+  ppuVar3 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_48);

+  lVar1 = GetPathForFileAccess(this,param_1,ppuVar3);

+  if (lVar1 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x2ccb,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar1);

+    if (local_48 == (ushort *)0x0) {

+      return lVar1;

+    }

+    LocalFree(local_48);

+    return lVar1;

+  }

+  local_50 = 0;

+  iVar2 = PathFileExistsAndAttributesW(local_48);

+  if (iVar2 == 0) {

+    iVar2 = -0x7ffcfffe;

+    if (param_4 == 0) goto LAB_0;

+    iVar2 = wil::CreateDirectoryDeepNoThrow(local_48);

+LAB_1:

+    if (iVar2 < 0) goto LAB_0;

+  }

+  else if (param_4 != 0) {

+    if ((param_2 & 0x21000) == 0) {

+      iVar2 = -0x7ffcffb0;

+      goto LAB_0;

+    }

+    if ((param_2 >> 0xc & 1) == 0) {

+      iVar2 = -0x7ffcffa9;

+    }

+    else if ((local_50 & 0x10) == 0) {

+      iVar2 = -0x7fffbffb;

+    }

+    else {

+      iVar2 = _ClearChildFolder(this,param_1);

+    }

+    goto LAB_1;

+  }

+  local_40 = 0;

+  local_68 = &local_40;

+  local_60 = 0;

+  local_58 = 1;

+  local_78 = 0;

+  local_80 = &local_60;

+  local_88 = (IStorage **)0x0;

+  iVar2 = (**(code **)(*(longlong *)(this + 0x30) + 0x18))(this + 0x30,0,0,param_1);

+  wil::details::

+  out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+  ::

+  ~out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+            ((out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+              *)&local_68);

+  if (-1 < iVar2) {

+    local_88 = param_3;

+    iVar2 = (**(code **)(*(longlong *)(this + 0x30) + 0x28))

+                      (this + 0x30,local_40,0,&_GUID_0000000b_0000_0000_c000_000000000046);

+  }

+  wistd::

+  unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+  ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+           *)&local_40,(tagSERIALIZEDPROPSTORAGE *)0x0);

+LAB_0:

+  if (local_48 != (ushort *)0x0) {

+    LocalFree(local_48);

+  }

+  return iVar2;

+}

+
```

## `tip2::details::find_flags_match`  (modified)

```diff
--- tip2::details::find_flags_match
+++ tip2::details::evaluate_flags
@@ -1,22 +1,52 @@
 

-/* struct tip2::test_requirement const * __ptr64 __cdecl tip2::details::find_flags_match(class

-   tip2::test_state const & __ptr64,struct tip2::test_requirement const * __ptr64,bool) */

+/* bool __cdecl tip2::details::evaluate_flags(class tip2::test_state const & __ptr64,struct

+   tip2::test_requirement const * __ptr64,struct tip2::test_requirement const * __ptr64,struct

+   tip2::test_requirement const * __ptr64) */

 

-test_requirement * __cdecl

-tip2::details::find_flags_match(test_state *param_1,test_requirement *param_2,bool param_3)

+bool __cdecl

+tip2::details::evaluate_flags

+          (test_state *param_1,test_requirement *param_2,test_requirement *param_3,

+          test_requirement *param_4)

 

 {

-  bool bVar1;

-  test_requirement *ptVar2;

+  undefined8 uVar1;

+  bool bVar2;

+  test_requirement *ptVar3;

   

-  do {

-    ptVar2 = param_2;

-    bVar1 = test_state::is_flag_set<unsigned_short>(param_1,*(ushort *)param_2);

-    if (bVar1 == param_3) {

-      return param_2;

+  if (param_2 == (test_requirement *)0x0) {

+LAB_0:

+    if (param_3 != (test_requirement *)0x0) {

+      ptVar3 = find_flags_match(param_1,param_3,true);

+      if (ptVar3 != (test_requirement *)0x0) goto LAB_1;

     }

-    param_2 = param_2 + 0x10;

-  } while (*(longlong *)(ptVar2 + 0x18) != 0);

-  return (test_requirement *)0x0;

+    if (param_4 != (test_requirement *)0x0) {

+      ptVar3 = find_flags_match(param_1,param_4,true);

+      if (ptVar3 == (test_requirement *)0x0) {

+        uVar1 = *(undefined8 *)(param_4 + 8);

+        if (param_1[0x98] == (test_state)0x0) {

+          *(undefined2 *)(param_1 + 0x9a) = *(undefined2 *)param_4;

+          *(undefined8 *)(param_1 + 0xa0) = uVar1;

+          goto LAB_2;

+        }

+        goto LAB_3;

+      }

+    }

+    bVar2 = true;

+  }

+  else {

+    ptVar3 = find_flags_match(param_1,param_2,false);

+    if (ptVar3 == (test_requirement *)0x0) goto LAB_0;

+LAB_1:

+    uVar1 = *(undefined8 *)(ptVar3 + 8);

+    if (param_1[0x98] == (test_state)0x0) {

+      *(undefined2 *)(param_1 + 0x9a) = *(undefined2 *)ptVar3;

+      *(undefined8 *)(param_1 + 0xa0) = uVar1;

+LAB_2:

+      param_1[0x98] = (test_state)0x3;

+    }

+LAB_3:

+    bVar2 = false;

+  }

+  return bVar2;

 }
```

## `CAutoDestItemsEnum::RefreshFilter`  (modified)

```diff
--- CAutoDestItemsEnum::RefreshFilter
+++ CAutoDestItemsEnum::RefreshFilter
@@ -1,2 +1,169 @@
-Failed to decompile windows.storage.dll - .ProgramDB CAutoDestItemsEnum::RefreshFilter : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CAutoDestItemsEnum::RefreshFilter(struct IShellItem2 * __ptr64,enum

+   DESTLISTTYPE,struct IAutomaticDestinationListPropertyStore * __ptr64,class std::set<class

+   Microsoft::WRL::ComPtr<struct IShellItem>,class ShellItemCompare,class std::allocator<class

+   Microsoft::WRL::ComPtr<struct IShellItem> > > const & __ptr64,bool * __ptr64,bool * __ptr64)

+   __ptr64 */

+

+long __thiscall

+CAutoDestItemsEnum::RefreshFilter

+          (CAutoDestItemsEnum *this,IShellItem2 *param_1,DESTLISTTYPE param_2,

+          IAutomaticDestinationListPropertyStore *param_3,

+          set<Microsoft::WRL::ComPtr<IShellItem>,ShellItemCompare,std::allocator<Microsoft::WRL::ComPtr<IShellItem>_>_>

+          *param_4,bool *param_5,bool *param_6)

+

+{

+  int iVar1;

+  IShellItem2 *pIVar2;

+  undefined8 uVar3;

+  uchar auVar4 [8];

+  bool bVar5;

+  bool bVar6;

+  long lVar7;

+  Variant_FE_SharedIXH VVar8;

+  __uint64 _Var9;

+  FeatureImpl<struct___WilFeatureTraits_Feature_FE_SharedIXH> *this_00;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61052451> *this_01;

+  ReportingKind RVar10;

+  _GUID *p_Var11;

+  undefined1 uVar13;

+  uint uVar14;

+  uint uVar15;

+  bool bVar16;

+  void *unaff_retaddr;

+  undefined1 auStack_c8 [32];

+  bool local_a8 [8];

+  bool *local_a0;

+  bool *local_98;

+  IShellItem2 *local_90;

+  IAutomaticDestinationListPropertyStore *local_88;

+  uint local_7c;

+  IShellItem2 *local_78;

+  set<Microsoft::WRL::ComPtr<IShellItem>,ShellItemCompare,std::allocator<Microsoft::WRL::ComPtr<IShellItem>_>_>

+  *local_70;

+  bool *local_68;

+  bool *local_60;

+  _GUID local_58;

+  ulonglong local_48;

+  IShellItem2 *pIVar12;

+  

+  uVar13 = (undefined1)param_2;

+  local_48 = __security_cookie ^ (ulonglong)auStack_c8;

+  local_90 = (IShellItem2 *)CONCAT44(local_90._4_4_,param_2);

+  local_70 = param_4;

+  local_a0 = param_5;

+  local_68 = param_5;

+  local_98 = param_6;

+  local_60 = param_6;

+  bVar6 = false;

+  bVar16 = false;

+  uVar15 = (uint)(*(longlong *)(*(longlong *)(this + 0x48) + 0x18) -

+                  *(longlong *)(*(longlong *)(this + 0x48) + 0x10) >> 5);

+  if (uVar15 < *(uint *)(this + 0x28)) {

+    local_58.Data1 = 0;

+    local_58.Data2 = 0;

+    local_58.Data3 = 0;

+    local_58.Data4[0] = '\0';

+    local_58.Data4[1] = '\0';

+    local_58.Data4[2] = '\0';

+    local_58.Data4[3] = '\0';

+    local_58.Data4[4] = '\0';

+    local_58.Data4[5] = '\0';

+    local_58.Data4[6] = '\0';

+    local_58.Data4[7] = '\0';

+    p_Var11 = &local_58;

+    local_88 = param_3;

+    local_78 = param_1;

+    lVar7 = CAutoDestItemsFolder::GetClassID

+                      ((CAutoDestItemsFolder *)(*(longlong *)(this + 0x50) + 0x28),p_Var11);

+    if (lVar7 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x32f,"onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",

+                 lVar7);

+      return lVar7;

+    }

+    this_00 = &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_FE_SharedIXH>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_FE_SharedIXH>::GetImpl(void)'

+               ::__l2::impl;

+    VVar8 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_FE_SharedIXH>::__private_GetVariant

+                      ((FeatureImpl<__WilFeatureTraits_Feature_FE_SharedIXH> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_FE_SharedIXH>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_FE_SharedIXH>::GetImpl(void)'

+                        ::__l2::impl,(VariantReportingKind)p_Var11,(bool)uVar13);

+    uVar14 = 0x32;

+    if ((char)VVar8 == '\x01') {

+      wil::details::FeatureImpl<__WilFeatureTraits_Feature_FE_SharedIXH>::GetCachedVariantState

+                ((FeatureImpl<__WilFeatureTraits_Feature_FE_SharedIXH> *)this_00);

+      uVar14 = local_7c;

+    }

+    auVar4 = local_58.Data4;

+    uVar3 = local_58._0_8_;

+    pIVar2 = local_78;

+    if ((param_2 != 0) ||

+       ((((local_58._0_8_ != 0x4065e62542254ee9 ||

+          (local_58.Data4 != (uchar  [8])0x726f25905077708f)) || (uVar15 < uVar14)) &&

+        ((local_58._0_8_ != 0x4b30b34b18f546f6 || (local_58.Data4 != (uchar  [8])0x84bdd8be885ec6b4)

+         ))))) {

+      iVar1 = (int)local_90;

+      pIVar12 = local_78;

+      bVar5 = _ExcludeItem(this,(IShellItem *)local_78,(int)local_90 == 0);

+      RVar10 = (ReportingKind)pIVar12;

+      if (bVar5) {

+        bVar16 = true;

+        goto LAB_0;

+      }

+      if (iVar1 == 2) {

+        *(int *)(this + 0x44) = *(int *)(this + 0x44) + 1;

+        uVar15 = *(uint *)(this + 0x44);

+        CAutoDestListParser::_EnsureRegistryVariables();

+        if ((uint)CAutoDestListParser::s_unpinnedDisplayCap < uVar15) goto LAB_1;

+      }

+      if ((uVar3 == 0x4b30b34b18f546f6) && (auVar4 == (uchar  [8])0x84bdd8be885ec6b4)) {

+        local_a8[0] = false;

+        this_01 = &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61052451>::GetImpl(void)'

+                   ::__l2::impl;

+        bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61052451> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61052451>::GetImpl(void)'

+                            ::__l2::impl,RVar10);

+        if (bVar6) {

+          lVar7 = IsMSGraphSharedFile((CAutoDestItemsEnum *)this_01,pIVar2,local_88,local_a8);

+          if (lVar7 < 0) goto LAB_2;

+        }

+        else {

+          lVar7 = IsMSGraphSharedFile((CAutoDestItemsEnum *)this_01,pIVar2,local_88,local_a8);

+          if (lVar7 < 0) {

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,0x356,

+                       "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar7);

+            return lVar7;

+          }

+        }

+        if (local_a8[0] != false) goto LAB_2;

+        bVar16 = true;

+      }

+      else {

+LAB_2:

+        if (((uVar3 != 0x4065e62542254ee9) || (auVar4 != (uchar  [8])0x726f25905077708f)) &&

+           ((uVar3 != 0x49966b183134ef9c || (auVar4 != (uchar  [8])0xb50ee01259ed04ad)))) {

+          local_90 = pIVar2;

+          Microsoft::WRL::ComPtr<IShellItem2>::InternalAddRef((ComPtr<IShellItem2> *)&local_90);

+          _Var9 = std::

+                  _Tree<std::_Tset_traits<Microsoft::WRL::ComPtr<IShellItem>,ShellItemCompare,std::allocator<Microsoft::WRL::ComPtr<IShellItem>_>,0>_>

+                  ::count((_Tree<std::_Tset_traits<Microsoft::WRL::ComPtr<IShellItem>,ShellItemCompare,std::allocator<Microsoft::WRL::ComPtr<IShellItem>_>,0>_>

+                           *)local_70,(ComPtr<IShellItem> *)&local_90);

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+          bVar16 = _Var9 != 0;

+        }

+      }

+      bVar6 = false;

+      goto LAB_0;

+    }

+  }

+LAB_1:

+  bVar6 = true;

+LAB_0:

+  *local_98 = bVar6;

+  *local_a0 = bVar16;

+  return 0;

+}

+
```

## `StateRepoVerbsCache::StateRepoVerbsCache`  (modified)

```diff
--- StateRepoVerbsCache::StateRepoVerbsCache
+++ StateRepoVerbsCache::StateRepoVerbsCache
@@ -1,2 +1,44 @@
-Failed to decompile windows.storage.dll - .ProgramDB StateRepoVerbsCache::StateRepoVerbsCache : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: __cdecl StateRepoVerbsCache::StateRepoVerbsCache(void) __ptr64 */

+

+StateRepoVerbsCache * __thiscall StateRepoVerbsCache::StateRepoVerbsCache(StateRepoVerbsCache *this)

+

+{

+  undefined4 uVar1;

+  void *pvVar2;

+  

+  *(undefined8 *)this = 0;

+  *(undefined8 *)(this + 8) = 0;

+  pvVar2 = std::_Allocate<16,std::_Default_allocate_traits,0>(0x60);

+  *(void **)pvVar2 = pvVar2;

+  *(void **)((longlong)pvVar2 + 8) = pvVar2;

+  *(void **)((longlong)pvVar2 + 0x10) = pvVar2;

+  *(undefined2 *)((longlong)pvVar2 + 0x18) = 0x101;

+  *(void **)this = pvVar2;

+  *(undefined8 *)(this + 0x10) = 0;

+  *(undefined8 *)(this + 0x18) = 0;

+  pvVar2 = std::_Allocate<16,std::_Default_allocate_traits,0>(0x58);

+  *(void **)pvVar2 = pvVar2;

+  *(void **)((longlong)pvVar2 + 8) = pvVar2;

+  *(void **)((longlong)pvVar2 + 0x10) = pvVar2;

+  *(undefined2 *)((longlong)pvVar2 + 0x18) = 0x101;

+  *(void **)(this + 0x10) = pvVar2;

+  *(undefined4 *)(this + 0x20) = 0;

+  *(undefined4 *)(this + 0x28) = 0;

+  *(undefined8 *)(this + 0x30) = 0;

+  *(undefined4 *)(this + 0x24) = 0x1f;

+  *(undefined8 *)(this + 0x38) = 0;

+  *(undefined8 *)(this + 0x40) = 0;

+  *(undefined4 *)(this + 0x48) = 0x96;

+  uVar1 = SHTaskPoolGetUniqueContext();

+  *(undefined4 *)(this + 0x4c) = uVar1;

+  this[0x50] = (StateRepoVerbsCache)0x0;

+  std::

+  unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>

+  ::

+  unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>

+            ((unordered_set<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>

+              *)(this + 0x58));

+  return this;

+}

+
```

## `wil::make_unique_nothrow<StateRepoVerbsCache>`  (modified)

```diff
--- wil::make_unique_nothrow<StateRepoVerbsCache>
+++ StateRepoVerbsCache::~StateRepoVerbsCache
@@ -1,21 +1,39 @@
 

-/* class wistd::unique_ptr<class StateRepoVerbsCache,struct wistd::default_delete<class

-   StateRepoVerbsCache> > __cdecl wil::make_unique_nothrow<class StateRepoVerbsCache>(void) */

+/* public: __cdecl StateRepoVerbsCache::~StateRepoVerbsCache(void) __ptr64 */

 

-void __cdecl wil::make_unique_nothrow<StateRepoVerbsCache>(void)

+void __thiscall StateRepoVerbsCache::~StateRepoVerbsCache(StateRepoVerbsCache *this)

 

 {

-  StateRepoVerbsCache *this;

-  undefined8 uVar1;

-  undefined8 *in_RCX;

-  

-  uVar1 = 0;

-  this = operator_new(0x98,&std::nothrow);

-  if (this != (StateRepoVerbsCache *)0x0) {

-    memset(this,0,0x98);

-    uVar1 = StateRepoVerbsCache::StateRepoVerbsCache(this);

-  }

-  *in_RCX = uVar1;

+  ClearCache(this);

+  std::

+  _Hash<std::_Uset_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,0>_>

+  ::

+  ~_Hash<std::_Uset_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,0>_>

+            ((_Hash<std::_Uset_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,0>_>

+              *)(this + 0x58));

+  wil::details::

+  unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+              *)(this + 0x40));

+  CStringHashTable<CCoSimpleArray<StateRepoHelpers::ExplorerCommandVerb*___ptr64,4294967294,CSimpleArrayStandardCompareHelper<StateRepoHelpers::ExplorerCommandVerb*___ptr64>_>*___ptr64,CCaseInsensitiveStringHashPolicy,CCaseInsensitiveStringCompare>

+  ::

+  ~CStringHashTable<CCoSimpleArray<StateRepoHelpers::ExplorerCommandVerb*___ptr64,4294967294,CSimpleArrayStandardCompareHelper<StateRepoHelpers::ExplorerCommandVerb*___ptr64>_>*___ptr64,CCaseInsensitiveStringHashPolicy,CCaseInsensitiveStringCompare>

+            ((CStringHashTable<CCoSimpleArray<StateRepoHelpers::ExplorerCommandVerb*___ptr64,4294967294,CSimpleArrayStandardCompareHelper<StateRepoHelpers::ExplorerCommandVerb*___ptr64>_>*___ptr64,CCaseInsensitiveStringHashPolicy,CCaseInsensitiveStringCompare>

+              *)(this + 0x20));

+  std::

+  _Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,StateRepoHelpers::ShareTargetAppExtensionInfo,StateRepoVerbsCache::CaseInsensitiveKeyCompare,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,StateRepoHelpers::ShareTargetAppExtensionInfo>_>,1>_>

+  ::

+  ~_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,StateRepoHelpers::ShareTargetAppExtensionInfo,StateRepoVerbsCache::CaseInsensitiveKeyCompare,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,StateRepoHelpers::ShareTargetAppExtensionInfo>_>,1>_>

+            ((_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,StateRepoHelpers::ShareTargetAppExtensionInfo,StateRepoVerbsCache::CaseInsensitiveKeyCompare,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,StateRepoHelpers::ShareTargetAppExtensionInfo>_>,1>_>

+              *)(this + 0x10));

+  std::

+  _Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,StateRepoHelpers::ExplorerAppExtensionInfo,StateRepoVerbsCache::CaseInsensitiveKeyCompare,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,StateRepoHelpers::ExplorerAppExtensionInfo>_>,1>_>

+  ::

+  ~_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,StateRepoHelpers::ExplorerAppExtensionInfo,StateRepoVerbsCache::CaseInsensitiveKeyCompare,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,StateRepoHelpers::ExplorerAppExtensionInfo>_>,1>_>

+            ((_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,StateRepoHelpers::ExplorerAppExtensionInfo,StateRepoVerbsCache::CaseInsensitiveKeyCompare,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,StateRepoHelpers::ExplorerAppExtensionInfo>_>,1>_>

+              *)this);

   return;

 }
```

## ``anonymous_namespace'::InitializeUnicodeDesktopIni`  (modified)

```diff
--- `anonymous_namespace'::InitializeUnicodeDesktopIni
+++ `anonymous_namespace'::InitializeUnicodeDesktopIni
@@ -1,22 +1,102 @@
 

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 

-void `CStorageItemProxyBase::get_DisplayType'::InitializeUnicodeDesktopIni(void)

+int `anonymous_namespace'::InitializeUnicodeDesktopIni(bool param_1,longlong *param_2)

 

 {

-  undefined8 *in_RAX;

-  undefined8 *unaff_RBX;

-  undefined8 unaff_RDI;

-  undefined4 *unaff_R14;

-  undefined8 uStackX_20;

+  code *pcVar1;

+  int iVar2;

+  BOOL BVar3;

+  ushort **ppuVar4;

+  void *unaff_retaddr;

+  undefined1 auStackY_138 [32];

+  HANDLE local_f8;

+  undefined2 local_f0 [4];

+  LPCWSTR local_e8;

+  undefined8 local_e0;

+  ActivityThreadWatcherWithCapturedCallerContextReportOnExit local_d8 [192];

+  ulonglong local_18;

   

-  uStackX_20 = *in_RAX;

-  *unaff_RBX = unaff_RDI;

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&uStackX_20);

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&stack0x00000028);

-  *unaff_R14 = (int)unaff_RDI;

-  Microsoft::WRL::ComPtr<`anonymous_namespace'::CRoamedItemRetriever>::InternalRelease

-            (&stack0x00000030);

-  return;

+  local_18 = __security_cookie ^ (ulonglong)auStackY_138;

+  WinRTStorageTelemetry::WatchCurrentThread

+            ((char *)local_d8,(ICapturedCallerContext *)"InitializeUnicodeDesktopIni",param_1);

+  local_e0 = 0;

+  pcVar1 = *(code **)(*param_2 + 0x28);

+  ppuVar4 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_e0);

+  iVar2 = (*pcVar1)(param_2,0x80058000,ppuVar4);

+  if (iVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x2f,"onecoreuap\\shell\\windows.storage\\perappknownfolders.cpp",iVar2

+              );

+  }

+  else {

+    local_e8 = (LPCWSTR)0x0;

+    ppuVar4 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_e8);

+    iVar2 = PathAllocCombine(local_e0,L"desktop.ini",0,ppuVar4);

+    if (iVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x33,"onecoreuap\\shell\\windows.storage\\perappknownfolders.cpp",

+                 iVar2);

+    }

+    else {

+      local_f8 = CreateFileW(local_e8,0x40000000,5,(LPSECURITY_ATTRIBUTES)0x0,1,6,(HANDLE)0x0);

+      if (((longlong)local_f8 + 1U & 0xfffffffffffffffe) == 0) {

+        iVar2 = wil::details::GetLastErrorFailHr();

+      }

+      else {

+        local_f0[0] = 0xfeff;

+        BVar3 = WriteFile(local_f8,local_f0,2,(LPDWORD)0x0,(LPOVERLAPPED)0x0);

+        if (BVar3 != 0) {

+          wil::details::

+          unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+          ::

+          ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                      *)&local_f8);

+          wil::

+          unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+          ::

+          ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                      *)&local_e8);

+          iVar2 = 0;

+          goto LAB_0;

+        }

+        iVar2 = wil::details::in1diag3::Return_GetLastError

+                          (unaff_retaddr,0x3a,

+                           "onecoreuap\\shell\\windows.storage\\perappknownfolders.cpp");

+      }

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)&local_f8);

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_e8);

+  }

+LAB_0:

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)&local_e0);

+  StorageTelemetry::ActivityThreadWatcherWithCapturedCallerContextReportOnExit::

+  ~ActivityThreadWatcherWithCapturedCallerContextReportOnExit(local_d8);

+  return iVar2;

 }
```

## `CEnumTask::_IncrEnumFolder`  (modified)

```diff
--- CEnumTask::_IncrEnumFolder
+++ CEnumTask::_IncrEnumFolder
@@ -1,2 +1,199 @@
-Failed to decompile windows.storage.dll - .ProgramDB CEnumTask::_IncrEnumFolder : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CEnumTask::_IncrEnumFolder(struct IShellFolder2 * __ptr64,int) __ptr64 */

+

+long __thiscall CEnumTask::_IncrEnumFolder(CEnumTask *this,IShellFolder2 *param_1,int param_2)

+

+{

+  CDSA<tagITEMKEY> *pCVar1;

+  int *piVar2;

+  HDPA hdpa;

+  long lVar3;

+  long lVar4;

+  DWORD DVar5;

+  int iVar6;

+  int iVar7;

+  CDSA_Base<tagITEMKEY> *this_00;

+  CDPA<_ITEMID_CHILD,CTContainer_PolicyUnOwned<_ITEMID_CHILD>_> *pCVar8;

+  CDPA<_ITEMID_CHILD,CTContainer_PolicyUnOwned<_ITEMID_CHILD>_> *pCVar9;

+  ITEM_FLAGS IVar10;

+  uint uVar11;

+  _ITEMID_CHILD *p_Var12;

+  CDSA<tagITEMKEY> *in_R9;

+  uint uVar13;

+  undefined1 auStackY_c8 [32];

+  int *local_98;

+  int local_90 [2];

+  IShellFolder2 *local_88;

+  HDPA local_80;

+  CEnumLock *local_78;

+  int local_70;

+  CEventResult *local_68;

+  _ITEMID_CHILD *local_60;

+  IItemStoreOwner *local_58;

+  uint *local_50;

+  undefined8 local_48;

+  ulonglong local_40;

+  

+  local_40 = __security_cookie ^ (ulonglong)auStackY_c8;

+  local_88 = param_1;

+  local_70 = param_2;

+  _EmptyViewForIncrEnum(this);

+  DVar5 = 0;

+  local_58 = (IItemStoreOwner *)0x0;

+  iVar7 = (**(code **)**(undefined8 **)(this + 0x78))

+                    (*(undefined8 **)(this + 0x78),&_GUID_35c22fea_79f6_4d3d_ae15_1699cbf54721,

+                     &local_58);

+  if (iVar7 < 0) {

+    return iVar7;

+  }

+  local_78 = (CEnumLock *)0x0;

+  local_68 = (CEventResult *)0x0;

+  lVar3 = _StartEnumThread(this,&local_68,&local_78);

+  if (-1 < lVar3) {

+    local_50 = (uint *)0x0;

+    local_98 = (int *)0x0;

+    local_90[0] = 0;

+    do {

+      if (local_90[0] != 0) goto LAB_0;

+      WaitForSingleObject(*(HANDLE *)(local_68 + 8),*(DWORD *)(this + 0x98));

+      lVar3 = _ShouldQuit(this);

+      if (lVar3 < 0) break;

+      local_80 = (HDPA)0x0;

+      do {

+        pCVar9 = (CDPA<_ITEMID_CHILD,CTContainer_PolicyUnOwned<_ITEMID_CHILD>_> *)0x0;

+        p_Var12 = (_ITEMID_CHILD *)local_90;

+        pCVar8 = (CDPA<_ITEMID_CHILD,CTContainer_PolicyUnOwned<_ITEMID_CHILD>_> *)&local_80;

+        lVar4 = CEnumLock::NextItemBatch(local_78,pCVar8,(int *)p_Var12);

+        hdpa = local_80;

+        uVar13 = 0;

+        if (lVar4 != 0) {

+          if (local_50 != (uint *)0x0) {

+            uVar13 = *local_50;

+          }

+          iVar7 = _ShouldPostBatch(this,DVar5,uVar13);

+          param_1 = local_88;

+          if (iVar7 != 0) {

+            in_R9 = (CDSA<tagITEMKEY> *)&local_98;

+            _IncrFillEnumToView(this,local_88,(CDSA<tagITEMKEY> *)&local_50,in_R9,0);

+            CDSA_Base<unsigned_int>::Destroy((CDSA_Base<unsigned_int> *)&local_50);

+            CDSA_Base<unsigned_int>::Destroy((CDSA_Base<unsigned_int> *)&local_98);

+          }

+          break;

+        }

+        if (local_80 != (HDPA)0x0) {

+          uVar13 = *(uint *)local_80;

+        }

+        do {

+          iVar7 = (int)pCVar9;

+          if ((int)uVar13 <= iVar7) break;

+          lVar3 = _ShouldQuit(this);

+          if (-1 < lVar3) {

+            if (local_50 == (uint *)0x0) {

+              DVar5 = GetTickCount();

+              pCVar8 = (CDPA<_ITEMID_CHILD,CTContainer_PolicyUnOwned<_ITEMID_CHILD>_> *)0x100;

+              CDSA_Base<tagITEMKEY>::Create((CDSA_Base<tagITEMKEY> *)&local_50,0x100);

+              if (local_50 == (uint *)0x0) {

+                lVar3 = -0x7ff8fff2;

+                break;

+              }

+            }

+            IVar10 = (ITEM_FLAGS)p_Var12;

+            local_60 = DPA_GetPtr(hdpa,(longlong)iVar7);

+            local_48 = 0;

+            lVar3 = ItemStore_StealToInsertItem

+                              (*(IItemStore **)(this + 0x78),&local_60,IVar10,

+                               (IPropertyStore *)in_R9,(tagITEMKEY *)&local_48);

+            if (-1 < lVar3) {

+              if (local_70 != 0) {

+                in_R9 = (CDSA<tagITEMKEY> *)local_88;

+                _FilterItem(this,local_58,(tagITEMKEY *)&local_48,local_88);

+              }

+              iVar6 = IsFilteredItem((IItemStore *)local_58,(tagITEMKEY *)&local_48);

+              if (iVar6 == 0) {

+                this_00 = (CDSA_Base<tagITEMKEY> *)&local_50;

+              }

+              else {

+                if ((local_98 == (int *)0x0) &&

+                   (iVar6 = CDSA_Base<tagITEMKEY>::Create((CDSA_Base<tagITEMKEY> *)&local_98,0x100),

+                   iVar6 == 0)) {

+                  lVar3 = -0x7ff8fff2;

+                  goto LAB_1;

+                }

+                this_00 = (CDSA_Base<tagITEMKEY> *)&local_98;

+              }

+              lVar3 = CDSA_Base<tagITEMKEY>::AppendItem(this_00,(tagITEMKEY *)&local_48,(int *)0x0);

+              if (-1 < lVar3) {

+                uVar11 = 0;

+                if (local_50 != (uint *)0x0) {

+                  uVar11 = *local_50;

+                }

+                iVar6 = _ShouldPostBatch(this,DVar5,uVar11);

+                if (iVar6 != 0) {

+                  in_R9 = (CDSA<tagITEMKEY> *)&local_98;

+                  _IncrFillEnumToView(this,local_88,(CDSA<tagITEMKEY> *)&local_50,in_R9,0);

+                  CDSA_Base<unsigned_int>::Destroy((CDSA_Base<unsigned_int> *)&local_50);

+                  CDSA_Base<unsigned_int>::Destroy((CDSA_Base<unsigned_int> *)&local_98);

+                }

+              }

+            }

+LAB_1:

+            p_Var12 = local_60;

+            DPA_SetPtr(hdpa,iVar7,local_60);

+            pCVar8 = pCVar9;

+          }

+          pCVar9 = (CDPA<_ITEMID_CHILD,CTContainer_PolicyUnOwned<_ITEMID_CHILD>_> *)

+                   (ulonglong)(iVar7 + 1);

+        } while (-1 < lVar3);

+        CDPA<_ITEMID_CHILD,CTContainer_PolicyUnOwned<_ITEMID_CHILD>_>::DestroyCallback

+                  ((CDPA<_ITEMID_CHILD,CTContainer_PolicyUnOwned<_ITEMID_CHILD>_> *)&local_80,

+                   (_func_int__ITEMID_CHILD_ptr_void_ptr *)pCVar8,p_Var12);

+        param_1 = local_88;

+      } while (-1 < lVar3);

+      CDPA_Base<IFilterCondition,CTContainer_PolicyUnOwned<IFilterCondition>_>::

+      ~CDPA_Base<IFilterCondition,CTContainer_PolicyUnOwned<IFilterCondition>_>

+                ((CDPA_Base<IFilterCondition,CTContainer_PolicyUnOwned<IFilterCondition>_> *)

+                 &local_80);

+    } while (-1 < lVar3);

+    if (lVar3 == -0x7ff8fb39) {

+      CEnumLock::SetState(local_78,2);

+    }

+    else if (-1 < lVar3) {

+LAB_0:

+      if ((((local_50 != (uint *)0x0) && (*local_50 != 0)) ||

+          ((local_98 != (int *)0x0 && (*local_98 != 0)))) || (((byte)this[0xac] & 2) != 0)) {

+        _IncrFillEnumToView(this,param_1,(CDSA<tagITEMKEY> *)&local_50,(CDSA<tagITEMKEY> *)&local_98

+                            ,1);

+      }

+      lVar3 = FilterGraphItems(this,param_1,*(IItemStore **)(this + 0x78),

+                               (CDSA<tagITEMKEY> *)(this + 0x68),true);

+    }

+    CDSA_Base<unsigned_int>::Destroy((CDSA_Base<unsigned_int> *)&local_50);

+    CDSA_Base<unsigned_int>::Destroy((CDSA_Base<unsigned_int> *)&local_98);

+    CEventResult::Release(local_68);

+    CEnumLock::Release(local_78);

+  }

+  (**(code **)(*(longlong *)local_58 + 0x10))();

+  if (lVar3 < 0) {

+    return lVar3;

+  }

+  pCVar1 = (CDSA<tagITEMKEY> *)(this + 0x68);

+  piVar2 = *(int **)pCVar1;

+  if ((piVar2 == (int *)0x0) || (*piVar2 < 0xc9)) {

+    if (*(int **)(this + 0xb0) == (int *)0x0) {

+      return lVar3;

+    }

+    if (**(int **)(this + 0xb0) == 0) {

+      return lVar3;

+    }

+    if ((piVar2 == (int *)0x0) || (*piVar2 < 0xc9)) goto LAB_2;

+  }

+  _SortItems(this,pCVar1,param_1,*(IItemStore **)(this + 0x78));

+LAB_2:

+  _PushBatchToView(this,param_1,pCVar1,(CDSA<tagITEMKEY> *)(this + 0x70),

+                   *(IItemStore **)(this + 0x78));

+  return lVar3;

+}

+
```

## `CFSFolder::SetElementTimes`  (modified)

```diff
--- CFSFolder::SetElementTimes
+++ CFSFolder::SetElementTimes
@@ -1,2 +1,90 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::SetElementTimes : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CFSFolder::SetElementTimes(unsigned short const * __ptr64,struct

+   _FILETIME const * __ptr64,struct _FILETIME const * __ptr64,struct _FILETIME const * __ptr64)

+   __ptr64 */

+

+long __thiscall

+CFSFolder::SetElementTimes

+          (CFSFolder *this,ushort *param_1,_FILETIME *param_2,_FILETIME *param_3,_FILETIME *param_4)

+

+{

+  long lVar1;

+  BOOL BVar2;

+  DWORD DVar3;

+  ushort **ppuVar4;

+  uint uVar5;

+  void *unaff_retaddr;

+  undefined1 auStackY_98 [32];

+  HANDLE local_58;

+  LPCWSTR local_50;

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStackY_98;

+  if (param_1 == (ushort *)0x0) {

+    return -0x7ffcffa9;

+  }

+  local_50 = (LPCWSTR)0x0;

+  ppuVar4 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_50);

+  lVar1 = GetPathForFileAccess(this + -0x50,param_1,ppuVar4);

+  if (lVar1 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x2d7e,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar1);

+  }

+  else {

+    local_58 = CreateFileW(local_50,0x40000000,1,(LPSECURITY_ATTRIBUTES)0x0,3,0,(HANDLE)0x0);

+    if ((longlong)local_58 - 1U < 0xfffffffffffffffe) {

+      BVar2 = SetFileTime(local_58,param_2,param_3,param_4);

+      if (BVar2 != 0) {

+        wil::details::

+        unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+        ::

+        ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    *)&local_58);

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_50);

+        return 0;

+      }

+      uVar5 = 0x2d83;

+    }

+    else {

+      DVar3 = GetLastError();

+      if (DVar3 == 2) {

+        wil::details::

+        unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+        ::

+        ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    *)&local_58);

+        lVar1 = -0x7ffcfffe;

+        goto LAB_0;

+      }

+      uVar5 = 0x2d8b;

+    }

+    lVar1 = wil::details::in1diag3::Return_GetLastError

+                      (unaff_retaddr,uVar5,"onecoreuap\\shell\\windows.storage\\filefldr.cpp");

+    wil::details::

+    unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+    ::

+    ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+              ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                *)&local_58);

+  }

+LAB_0:

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_50);

+  return lVar1;

+}

+
```

## `CFSFolder::DestroyElement`  (modified)

```diff
--- CFSFolder::DestroyElement
+++ CFSFolder::DestroyElement
@@ -1,2 +1,47 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::DestroyElement : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CFSFolder::DestroyElement(unsigned short const * __ptr64) __ptr64 */

+

+long __thiscall CFSFolder::DestroyElement(CFSFolder *this,ushort *param_1)

+

+{

+  long lVar1;

+  ushort **ppuVar2;

+  CFSFolder *this_00;

+  uint uVar3;

+  void *unaff_retaddr;

+  undefined1 auStack_38 [32];

+  ushort *local_18;

+  ulonglong local_10;

+  

+  local_10 = __security_cookie ^ (ulonglong)auStack_38;

+  if (param_1 == (ushort *)0x0) {

+    return -0x7ffcffa9;

+  }

+  local_18 = (ushort *)0x0;

+  ppuVar2 = wil::

+            unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+            ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                   *)&local_18);

+  this_00 = this + -0x50;

+  lVar1 = GetPathForFileAccess(this_00,param_1,ppuVar2);

+  if (lVar1 < 0) {

+    uVar3 = 0x2d54;

+  }

+  else {

+    lVar1 = _Delete(this_00,local_18);

+    if (-1 < lVar1) goto LAB_0;

+    uVar3 = 0x2d55;

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar3,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar1);

+LAB_0:

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_18);

+  return lVar1;

+}

+
```

## `CTextPurifier::Clean`  (modified)

```diff
--- CTextPurifier::Clean
+++ CTextPurifier::Clean
@@ -1,2 +1,102 @@
-Failed to decompile windows.storage.dll - .ProgramDB CTextPurifier::Clean : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: static long __cdecl CTextPurifier::Clean(unsigned short const * __ptr64,unsigned short *

+   __ptr64,unsigned long) */

+

+long __cdecl CTextPurifier::Clean(ushort *param_1,ushort *param_2,ulong param_3)

+

+{

+  ushort *puVar1;

+  bool bVar2;

+  char cVar3;

+  int iVar4;

+  __uint64 _Var5;

+  ulonglong uVar6;

+  ushort *puVar7;

+  ushort uVar8;

+  ushort uVar9;

+  __uint64 _Var10;

+  undefined4 in_register_00000084;

+  __uint64 _Var11;

+  void *unaff_retaddr;

+  wchar32 local_res20 [2];

+  

+  _Var11 = CONCAT44(in_register_00000084,param_3);

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_62832182>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_62832182> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_62832182>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_62832182>::GetImpl(void)'

+                      ::__l2::impl);

+  _Var10 = 0;

+  puVar7 = param_2;

+  if (bVar2) {

+    if ((param_2 == (ushort *)0x0) || (param_3 == 0)) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x5a,"onecoreuap\\private\\shell\\inc\\textpurifier.h",-0x7ff8ffa9);

+      return -0x7ff8ffa9;

+    }

+    if (param_1 == (ushort *)0x0) goto LAB_0;

+  }

+  puVar1 = param_2 + ((ulonglong)param_3 - 1);

+  uVar8 = 0;

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_62832182>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_62832182> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_62832182>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_62832182>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar2) {

+    if (*param_1 != 0) {

+      _Var10 = 0xffffffffffffffff;

+      do {

+        _Var10 = _Var10 + 1;

+      } while (param_1[_Var10] != 0);

+    }

+    for (; (puVar7 < puVar1 && (*param_1 != 0)); param_1 = param_1 + _Var5) {

+      local_res20[0] = L'\0';

+      _Var5 = GetNextCodePoint(param_1,_Var10,_Var11,local_res20);

+      if (_Var5 == 0) break;

+      cVar3 = u_charType(local_res20[0]);

+      bVar2 = (byte)(cVar3 - 0xcU) < 4;

+      if (cVar3 == '\0') {

+        bVar2 = _IsWhitespaceOrControlFallback(local_res20[0]);

+      }

+      if (bVar2 == false) {

+        if ((longlong)puVar1 - (longlong)puVar7 >> 1 < (longlong)_Var5) break;

+        uVar6 = 0;

+        if (_Var5 != 0) {

+          do {

+            uVar8 = param_1[uVar6];

+            uVar6 = uVar6 + 1;

+            *puVar7 = uVar8;

+            puVar7 = puVar7 + 1;

+          } while (uVar6 < _Var5);

+        }

+      }

+      else {

+        if ((uVar8 != 0x20) && (puVar7 != param_2)) {

+          *puVar7 = 0x20;

+          puVar7 = puVar7 + 1;

+        }

+        uVar8 = 0x20;

+      }

+      _Var10 = _Var10 - _Var5;

+    }

+  }

+  else {

+    for (; (puVar7 < puVar1 && (uVar9 = *param_1, uVar9 != 0)); param_1 = param_1 + 1) {

+      iVar4 = _o_iswcntrl(uVar9);

+      if (((iVar4 != 0) || (iVar4 = _o_iswspace(uVar9), iVar4 != 0)) ||

+         ((iVar4 = _o_iswprint(uVar9), iVar4 == 0 && (iVar4 = _IsRemarkable(uVar9), iVar4 == 0)))) {

+        uVar9 = 0x20;

+      }

+      iVar4 = _o_iswalnum(uVar9);

+      if (((iVar4 != 0) || (iVar4 = _IsRemarkable(uVar9), iVar4 != 0)) ||

+         ((uVar9 != uVar8 && ((iVar4 = _o_iswspace(uVar9), iVar4 == 0 || (puVar7 != param_2)))))) {

+        *puVar7 = uVar9;

+        puVar7 = puVar7 + 1;

+      }

+      uVar8 = uVar9;

+    }

+  }

+LAB_0:

+  *puVar7 = 0;

+  return 0;

+}

+
```

## `CEnumTask::RemoveDuplicateItems`  (modified)

```diff
--- CEnumTask::RemoveDuplicateItems
+++ CEnumTask::RemoveDuplicateItems
@@ -1,2 +1,255 @@
-Failed to decompile windows.storage.dll - .ProgramDB CEnumTask::RemoveDuplicateItems : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CEnumTask::RemoveDuplicateItems(struct IShellFolder2 * __ptr64,struct

+   IItemStore * __ptr64,class CDSA<struct tagITEMKEY> * __ptr64,class std::unordered_map<class

+   std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> >,int,struct std::hash<class std::basic_string<unsigned

+   short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> > >,struct

+   std::equal_to<class std::basic_string<unsigned short,struct std::char_traits<unsigned

+   short>,class std::allocator<unsigned short> > >,class std::allocator<struct std::pair<class

+   std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> > const ,int> > > & __ptr64,class std::vector<struct

+   std::pair<int,class std::basic_string<unsigned short,struct std::char_traits<unsigned

+   short>,class std::allocator<unsigned short> > >,class std::allocator<struct std::pair<int,class

+   std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> > > > > & __ptr64,class std::unordered_set<int,struct

+   std::hash<int>,struct std::equal_to<int>,class std::allocator<int> > const * __ptr64) __ptr64 */

+

+long __thiscall

+CEnumTask::RemoveDuplicateItems

+          (CEnumTask *this,IShellFolder2 *param_1,IItemStore *param_2,CDSA<tagITEMKEY> *param_3,

+          unordered_map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,int>_>_>

+          *param_4,vector<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>_>

+                   *param_5,

+          unordered_set<int,std::hash<int>,std::equal_to<int>,std::allocator<int>_> *param_6)

+

+{

+  bool bVar1;

+  long lVar2;

+  int iVar3;

+  longlong lVar4;

+  tagITEMKEY *ptVar5;

+  ushort **ppuVar6;

+  undefined8 *puVar7;

+  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+  *pbVar8;

+  tagITEMKEY *ptVar9;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61052451> *pFVar10;

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+  *this_00;

+  ulonglong uVar11;

+  int iVar12;

+  uint i;

+  unordered_set<int,std::hash<int>,std::equal_to<int>,std::allocator<int>_> *this_01;

+  undefined1 auStackY_178 [32];

+  undefined8 local_d0;

+  undefined8 uStack_c8;

+  undefined8 local_c0;

+  undefined8 uStack_b8;

+  uint local_b0;

+  longlong local_a8;

+  uint local_a0 [2];

+  wchar_t *local_98;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_90 [32];

+  int local_70 [4];

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+  local_60 [16];

+  uint local_50 [2];

+  ushort *local_48;

+  ulonglong local_40;

+  

+  local_40 = __security_cookie ^ (ulonglong)auStackY_178;

+  iVar3 = 0;

+  iVar12 = 0;

+  if (*(int **)param_3 != (int *)0x0) {

+    iVar12 = **(int **)param_3;

+  }

+  i = iVar12 - 1;

+  uVar11 = (ulonglong)i;

+  local_50[0] = i;

+  do {

+    if (((int)(ReportingKind)uVar11 < 0) || (iVar3 < 0)) {

+      return iVar3;

+    }

+    pFVar10 = &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61052451>::GetImpl(void)'

+               ::__l2::impl;

+    bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61052451> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61052451>::GetImpl(void)'

+                        ::__l2::impl,(ReportingKind)uVar11);

+    if ((bVar1) &&

+       (param_6 != (unordered_set<int,std::hash<int>,std::equal_to<int>,std::allocator<int>_> *)0x0)

+       ) {

+      this_01 = param_6;

+      std::_Fnv1a_append_bytes((__uint64)pFVar10,(uchar *)local_50,4);

+      lVar4 = std::

+              _Hash<std::_Uset_traits<int,std::_Uhash_compare<int,std::hash<int>,std::equal_to<int>_>,std::allocator<int>,0>_>

+              ::_Find_last<int>((_Hash<std::_Uset_traits<int,std::_Uhash_compare<int,std::hash<int>,std::equal_to<int>_>,std::allocator<int>,0>_>

+                                 *)this_01,local_70,(__uint64)local_50);

+      if (*(longlong *)(lVar4 + 8) == 0) goto LAB_0;

+    }

+    else {

+LAB_0:

+      ptVar5 = DSA_GetItemPtr(*(HDSA *)param_3,i);

+      local_48 = (ushort *)0x0;

+      bVar1 = IsFolder(param_2,ptVar5,param_1);

+      if ((!bVar1) && (bVar1 = IsRecommendationsFile(param_2,ptVar5,param_1), !bVar1)) {

+        ppuVar6 = wil::

+                  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                  ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                         *)&local_48);

+        lVar2 = GetStringProperty(param_2,ptVar5,param_1,

+                                  (_tagpropertykey *)&PKEY_StorageProviderFileIdentifier,ppuVar6);

+        if (-1 < lVar2) {

+          lVar4 = -1;

+          do {

+            lVar4 = lVar4 + 1;

+          } while (local_48[lVar4] != 0);

+          std::

+          transform<unsigned_short*___ptr64,unsigned_short*___ptr64,unsigned_short_(__cdecl*)(unsigned_short)>

+                    (local_48,local_48 + lVar4,local_48,_o_towlower_exref);

+          std::

+          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+          ::

+          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    (local_90,local_48);

+          std::

+          _Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,int>_>,0>_>

+          ::find<void>((_Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,int>_>,0>_>

+                        *)param_4,

+                       (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                        *)&local_a8);

+          std::

+          pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+          ::

+          ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                    ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                      *)local_90);

+          lVar4 = local_a8;

+          if (local_a8 == *(longlong *)(param_4 + 8)) {

+            puVar7 = (undefined8 *)

+                     std::

+                     basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                     ::

+                     basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                               (local_90,local_48);

+            local_d0 = *puVar7;

+            uStack_c8 = puVar7[1];

+            local_c0 = puVar7[2];

+            uStack_b8 = puVar7[3];

+            puVar7[2] = 0;

+            puVar7[3] = 7;

+            *(undefined2 *)puVar7 = 0;

+            local_b0 = i;

+            std::

+            _Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,int>_>,0>_>

+            ::

+            emplace<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>_>

+                      ((_Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,int>_>,0>_>

+                        *)param_4,local_60);

+            std::

+            pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+            ::

+            ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                      ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                        *)&local_d0);

+            this_00 = (pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                       *)local_90;

+LAB_1:

+            std::

+            pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+            ::

+            ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                      (this_00);

+          }

+          else {

+            pbVar8 = (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                      *)(local_a8 + 0x10);

+            iVar12 = *(int *)(local_a8 + 0x30);

+            ptVar9 = DSA_GetItemPtr(*(HDSA *)param_3,iVar12);

+            iVar3 = CompareItems(param_1,param_2,ptVar5,ptVar9);

+            if (iVar3 == 0) goto LAB_2;

+            bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_FE_SharedBackend>::

+                    __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_FE_SharedBackend> *)

+                                        &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_FE_SharedBackend>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_FE_SharedBackend>::GetImpl(void)'

+                                         ::__l2::impl);

+            if (bVar1) {

+              RemoveDuplicateIfNecessary(param_1,param_2,i,ptVar5,iVar12,ptVar9,param_5);

+            }

+            else {

+              bVar1 = ShouldRemoveLocalItem(param_1,param_2,ptVar5,ptVar9);

+              if (!bVar1) {

+                local_d0 = CONCAT44(local_d0._4_4_,i);

+                std::

+                basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                ::

+                basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                            *)&uStack_c8,pbVar8);

+                std::

+                vector<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>_>

+                ::

+                emplace_back<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>

+                          (param_5,(pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+                                    *)&local_d0);

+                this_00 = (pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                           *)&uStack_c8;

+                goto LAB_1;

+              }

+              local_d0 = CONCAT44(local_d0._4_4_,iVar12);

+              std::

+              basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+              ::

+              basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                        ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          *)&uStack_c8,pbVar8);

+              std::

+              vector<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>_>

+              ::

+              emplace_back<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>

+                        (param_5,(pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+                                  *)&local_d0);

+              std::

+              pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+              ::

+              ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                        ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                          *)&uStack_c8);

+              *(uint *)(lVar4 + 0x30) = i;

+            }

+          }

+          wil::details::

+          unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                      *)&local_48);

+          goto LAB_3;

+        }

+        bVar1 = IsGraphFile(param_2,ptVar5,param_1);

+        if ((bVar1) || (bVar1 = IsOneDriveFile(param_2,ptVar5,param_1), bVar1)) {

+          local_98 = L"unused";

+          local_a0[0] = i;

+          std::

+          vector<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<int,std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>_>

+          ::emplace_back<std::pair<int,unsigned_short_const*___ptr64>_>

+                    (param_5,(pair<int,unsigned_short_const*___ptr64> *)local_a0);

+        }

+      }

+LAB_2:

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_48);

+    }

+LAB_3:

+    i = i - 1;

+    uVar11 = (ulonglong)i;

+    local_50[0] = i;

+    iVar3 = _ShouldQuit(this);

+  } while( true );

+}

+
```

## `CAutoDestListParser::_EnsureStorage`  (modified)

```diff
--- CAutoDestListParser::_EnsureStorage
+++ CAutoDestListParser::_EnsureStorage
@@ -1,2 +1,1044 @@
-Failed to decompile windows.storage.dll - .ProgramDB CAutoDestListParser::_EnsureStorage : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* protected: long __cdecl CAutoDestListParser::_EnsureStorage(void) __ptr64 */

+

+long __thiscall CAutoDestListParser::_EnsureStorage(CAutoDestListParser *this)

+

+{

+  ComPtr<IQuerySource> *pCVar1;

+  longlong lVar2;

+  undefined8 *puVar3;

+  code *pcVar4;

+  undefined4 uVar5;

+  longlong lVar6;

+  bool bVar7;

+  DWORD DVar8;

+  longlong *plVar9;

+  char *pcVar10;

+  HANDLE pvVar11;

+  longlong lVar12;

+  uint grfMode;

+  test_watcher<class_tip2::details::merged_data<struct_AutoDestListTip::_tip_DestListLockHealthTip,struct_AutoDestListTip::_tip_DestListLockHealthTip>_>

+  *ptVar13;

+  ulonglong uVar14;

+  undefined8 uVar15;

+  DWORD DVar16;

+  undefined4 uVar17;

+  DWORD dwDesiredAccess;

+  void *unaff_retaddr;

+  undefined1 auStackY_208 [32];

+  DWORD local_1c8;

+  undefined4 local_1c4;

+  DWORD local_1c0;

+  undefined4 uStack_1bc;

+  undefined8 local_1b8;

+  longlong local_1b0;

+  longlong local_1a8;

+  longlong local_1a0;

+  longlong local_198;

+  longlong local_190;

+  longlong local_188;

+  longlong local_180;

+  longlong local_178;

+  longlong local_170;

+  longlong local_168;

+  longlong local_160;

+  longlong local_158;

+  longlong local_150;

+  longlong local_148;

+  longlong local_140;

+  longlong local_138;

+  longlong local_130;

+  longlong local_128;

+  longlong local_120;

+  longlong local_118;

+  longlong local_110;

+  longlong local_108;

+  longlong local_100 [4];

+  CAutoDestListParser *local_e0;

+  undefined1 local_d8;

+  test_watcher<class_tip2::details::merged_data<struct_AutoDestListTip::_tip_DestListLockHealthTip,struct_AutoDestListTip::_tip_DestListLockHealthTip>_>

+  local_d0 [64];

+  ILockBytes *local_90;

+  HANDLE local_88 [2];

+  undefined **local_78;

+  ThreadFailureCallbackHolder local_70 [48];

+  longlong local_40;

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_208;

+  pCVar1 = (ComPtr<IQuerySource> *)(this + 0x20);

+  if (*(longlong *)pCVar1 != 0) {

+    return 1;

+  }

+  dwDesiredAccess = 0xc0000000;

+  if (*(int *)(this + 0x8c) != 1) {

+    dwDesiredAccess = 0x80000000;

+  }

+  DVar16 = 4 - (*(int *)(this + 0x8c) != 1);

+  local_78 = &tip2::

+              test_watcher<tip2::details::merged_data<PerFolderRootPropertyHandlerTip::_tip_GetPropertyValues,PerFolderRootPropertyHandlerTip::_tip_GetPropertyValues>_>

+              ::_vftable_;

+  ptVar13 = (test_watcher<class_tip2::details::merged_data<struct_AutoDestListTip::_tip_DestListLockHealthTip,struct_AutoDestListTip::_tip_DestListLockHealthTip>_>

+             *)&local_78;

+  local_1c8 = dwDesiredAccess;

+  local_1c0 = DVar16;

+  wil::details::ThreadFailureCallbackHolder::ThreadFailureCallbackHolder

+            (local_70,(IFailureCallback *)ptVar13,(CallContextInfo *)0x0,false);

+  tip2::details::

+  tip_make_shared_nothrow<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+            ();

+  bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar7) {

+    local_1b8 = 0;

+    tip2::

+    tip_test<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+    ::start_and_watch_errors

+              ((tip_test<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                *)&local_1b8);

+    wil::

+    com_ptr_t<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>,wil::err_returncode_policy>

+    ::

+    ~com_ptr_t<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>,wil::err_returncode_policy>

+              ((com_ptr_t<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>,wil::err_returncode_policy>

+                *)&local_1b8);

+    ptVar13 = local_d0;

+    tip2::

+    test_watcher<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+    ::operator=((test_watcher<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                 *)&local_78,ptVar13);

+    tip2::

+    test_watcher<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+    ::

+    ~test_watcher<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+              ((test_watcher<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                *)local_d0);

+    lVar2 = local_40;

+    uVar17 = *(undefined4 *)(this + 0x8c);

+    local_1a0 = local_40;

+    if (local_40 != 0) {

+      LOCK();

+      *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+      UNLOCK();

+    }

+    tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+    *(undefined4 *)(lVar2 + 0x11c) = uVar17;

+    tip2::

+    test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+              ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                *)&local_1a0);

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                        ::__l2::impl);

+    lVar2 = local_40;

+    local_198 = local_40;

+    if (local_40 != 0) {

+      LOCK();

+      *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+      UNLOCK();

+    }

+    tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+    *(bool *)(lVar2 + 0x12f) = bVar7;

+    tip2::

+    test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+              ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                *)&local_198);

+  }

+  bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                      ::__l2::impl);

+  if (!bVar7) {

+    std::chrono::steady_clock::now();

+    DVar8 = ReadWriteLock::AcquireLock((ReadWriteLock *)(this + 0x30));

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                        ::__l2::impl);

+    if (bVar7) {

+      plVar9 = (longlong *)std::chrono::steady_clock::now();

+      lVar12 = local_40;

+      lVar2 = *plVar9;

+      ptVar13 = SUB168(SEXT816(0x431bde82d7b634db) * SEXT816(lVar2 - local_190),8);

+      local_188 = local_40;

+      if (local_40 != 0) {

+        LOCK();

+        *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+        UNLOCK();

+      }

+      tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+      *(int *)(lVar12 + 0x110) = (int)((lVar2 - local_190) / 1000000);

+      tip2::

+      test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  *)&local_188);

+      dwDesiredAccess = local_1c8;

+    }

+    if ((int)DVar8 < 0) {

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                          ::__l2::impl);

+      lVar2 = local_40;

+      if (bVar7) {

+        local_180 = local_40;

+        if (local_40 != 0) {

+          LOCK();

+          *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+        *(DWORD *)(lVar2 + 0x120) = DVar8;

+        tip2::

+        test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    *)&local_180);

+        pcVar10 = tip2::details::reason_string

+                            ("DestListLockHealthTip::reason::read_write_lock_failed");

+        tip2::details::shared_data<0,0,0>::complete_without_lock

+                  ((shared_data<0,0,0> *)(local_40 + 8),

+                   (TestCompletionKind)CONCAT71((int7)((ulonglong)ptVar13 >> 8),3),6,pcVar10);

+      }

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x2fc,

+                 "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                 ,DVar8);

+      goto LAB_0;

+    }

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                        ::__l2::impl);

+    lVar2 = local_40;

+    if (bVar7) {

+      local_178 = local_40;

+      if (local_40 != 0) {

+        LOCK();

+        *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+        UNLOCK();

+      }

+      tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+      *(undefined1 *)(lVar2 + 300) = 1;

+      tip2::

+      test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  *)&local_178);

+    }

+  }

+  local_d8 = 1;

+  local_90 = (ILockBytes *)0x0;

+  local_e0 = this;

+  pvVar11 = CreateFileW(*(LPCWSTR *)(this + 8),dwDesiredAccess,3,(LPSECURITY_ATTRIBUTES)0x0,DVar16,0

+                        ,(HANDLE)0x0);

+  local_88[0] = pvVar11;

+  DVar16 = GetLastError();

+  bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar7) {

+    if (((longlong)pvVar11 + 1U & 0xfffffffffffffffe) == 0) {

+      DVar8 = DVar16;

+      if (0 < (int)DVar16) {

+        DVar8 = DVar16 & 0xffff | 0x80070000;

+      }

+      bVar7 = tip2::details::shared_data<0,0,0>::is_running((shared_data<0,0,0> *)(local_40 + 8));

+      if (bVar7) {

+        local_170 = local_40;

+        if (local_40 != 0) {

+          LOCK();

+          *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+        *(DWORD *)(local_40 + 0x114) = DVar8;

+        tip2::

+        test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    *)&local_170);

+      }

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)local_88);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (!bVar7) {

+        ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+      }

+      goto LAB_0;

+    }

+  }

+  else if (((longlong)pvVar11 + 1U & 0xfffffffffffffffe) == 0) {

+    DVar8 = wil::details::in1diag3::Return_GetLastError

+                      (unaff_retaddr,0x324,

+                       "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                      );

+    wil::details::

+    unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+    ::

+    ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+              ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                *)local_88);

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                        ::__l2::impl);

+    if (!bVar7) {

+      ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+    }

+    goto LAB_0;

+  }

+  bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar7) {

+    uVar17 = 30000;

+    if (*(int *)(this + 0x8c) != 1) {

+      uVar17 = 500;

+    }

+    local_1c4 = 0;

+    uVar5 = 2;

+    if (*(int *)(this + 0x8c) != 1) {

+      uVar5 = 0;

+    }

+    DVar8 = AcquireWholeFileLockWithTimeout(pvVar11,uVar5,uVar17,&local_1c4);

+    bVar7 = tip2::details::shared_data<0,0,0>::is_running((shared_data<0,0,0> *)(local_40 + 8));

+    lVar2 = local_40;

+    if (-1 < (int)DVar8) {

+      dwDesiredAccess = local_1c8;

+      if (bVar7) {

+        local_150 = local_40;

+        if (local_40 != 0) {

+          LOCK();

+          *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+        *(undefined1 *)(lVar2 + 300) = 1;

+        tip2::

+        test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    *)&local_150);

+        lVar2 = local_40;

+        local_148 = local_40;

+        if (local_40 != 0) {

+          LOCK();

+          *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+        *(undefined4 *)(lVar2 + 0x110) = local_1c4;

+        tip2::

+        test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    *)&local_148);

+        dwDesiredAccess = local_1c8;

+      }

+      goto LAB_1;

+    }

+    if (bVar7) {

+      local_168 = local_40;

+      if (local_40 != 0) {

+        LOCK();

+        *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+        UNLOCK();

+      }

+      tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+      *(DWORD *)(lVar2 + 0x120) = DVar8;

+      tip2::

+      test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  *)&local_168);

+      lVar2 = local_40;

+      local_160 = local_40;

+      if (local_40 != 0) {

+        LOCK();

+        *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+        UNLOCK();

+      }

+      tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+      *(undefined4 *)(lVar2 + 0x110) = local_1c4;

+      tip2::

+      test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  *)&local_160);

+    }

+    if (DVar8 != 0x80030021) {

+      wil::details::in1diag3::Return_HrMsg

+                (unaff_retaddr,0x354,

+                 "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                 ,DVar8,"LockFileEx fail %ums (timeout=%u)");

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)local_88);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (!bVar7) {

+        ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+      }

+      goto LAB_0;

+    }

+    bVar7 = tip2::details::shared_data<0,0,0>::is_running((shared_data<0,0,0> *)(local_40 + 8));

+    if (bVar7) {

+      local_158 = local_40;

+      if (local_40 != 0) {

+        LOCK();

+        *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+        UNLOCK();

+      }

+      tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+      tip2::details::shared_data<0,0,0>::complete_helper

+                ((shared_data<0,0,0> *)(local_40 + 8),0x800,10);

+      tip2::

+      test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  *)&local_158);

+    }

+    wil::details::

+    unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+    ::

+    ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+              ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                *)local_88);

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+LAB_2:

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                        ::__l2::impl);

+    if (!bVar7) {

+      ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+    }

+    DVar8 = 0x80030021;

+    goto LAB_0;

+  }

+LAB_1:

+  if ((DVar16 == 0xb7) || (*(int *)(this + 0x8c) == 0)) {

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+    DVar8 = CFileLockBytes::Create

+                      ((unique_any_t<wil::details::unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>_>

+                        *)local_88,&local_90);

+    if ((int)DVar8 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x360,

+                 "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                 ,DVar8);

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)local_88);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (!bVar7) {

+        ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+      }

+      goto LAB_0;

+    }

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar1);

+    uVar14 = 0;

+    DVar8 = StgOpenStorageOnILockBytes

+                      (local_90,(IStorage *)0x0,

+                       (-(uint)(*(int *)(this + 0x8c) != 0) & 0xffffffe2) + 0x400040,(SNB)0x0,0,

+                       (IStorage **)pCVar1);

+    if (((DVar8 == 0x80030109) || (DVar8 == 0x80030050)) && (*(int *)(this + 0x8c) == 1)) {

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                          ::__l2::impl);

+      lVar2 = local_40;

+      if (bVar7) {

+        local_140 = local_40;

+        if (local_40 != 0) {

+          LOCK();

+          *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+        *(undefined1 *)(lVar2 + 0x12e) = 1;

+        tip2::

+        test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    *)&local_140);

+      }

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      DeleteFileW(*(LPCWSTR *)(this + 8));

+      pvVar11 = CreateFileW(*(LPCWSTR *)(this + 8),dwDesiredAccess,3,(LPSECURITY_ATTRIBUTES)0x0,

+                            local_1c0,0,(HANDLE)0x0);

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::reset((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+               *)local_88,pvVar11);

+      pvVar11 = local_88[0];

+      if (((longlong)local_88[0] + 1U & 0xfffffffffffffffe) == 0) {

+        DVar8 = wil::details::in1diag3::Return_GetLastError

+                          (unaff_retaddr,0x36e,

+                           "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                          );

+        wil::details::

+        unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+        ::

+        ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    *)local_88);

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+        bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                            ::__l2::impl);

+        if (!bVar7) {

+          ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+        }

+        goto LAB_0;

+      }

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (bVar7) {

+        local_1c8 = 0;

+        DVar8 = AcquireWholeFileLockWithTimeout(pvVar11,2,30000,&local_1c8);

+        bVar7 = tip2::details::shared_data<0,0,0>::is_running((shared_data<0,0,0> *)(local_40 + 8));

+        lVar2 = local_40;

+        if (bVar7) {

+          local_138 = local_40;

+          if (local_40 != 0) {

+            LOCK();

+            *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+            UNLOCK();

+          }

+          tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+          *(DWORD *)(lVar2 + 0x120) = DVar8;

+          tip2::

+          test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+          ::

+          ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                      *)&local_138);

+          lVar2 = local_40;

+          local_130 = local_40;

+          if (local_40 != 0) {

+            LOCK();

+            *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+            UNLOCK();

+          }

+          tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+          *(DWORD *)(lVar2 + 0x110) = local_1c8;

+          tip2::

+          test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+          ::

+          ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                      *)&local_130);

+        }

+        if ((int)DVar8 < 0) {

+          if (DVar8 != 0x80030021) {

+            wil::details::in1diag3::Return_HrMsg

+                      (unaff_retaddr,0x395,

+                       "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                       ,DVar8,"Recovery LockFileEx fail %ums (timeout=%u)");

+            wil::details::

+            unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+            ::

+            ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                      ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                        *)local_88);

+            Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90)

+            ;

+            bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::

+                    __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                                        &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                                         ::__l2::impl);

+            if (!bVar7) {

+              ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+            }

+            goto LAB_0;

+          }

+          bVar7 = tip2::details::shared_data<0,0,0>::is_running

+                            ((shared_data<0,0,0> *)(local_40 + 8));

+          if (bVar7) {

+            local_128 = local_40;

+            if (local_40 != 0) {

+              LOCK();

+              *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+              UNLOCK();

+            }

+            tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+            tip2::details::shared_data<0,0,0>::complete_helper

+                      ((shared_data<0,0,0> *)(local_40 + 8),0x800,10);

+            tip2::

+            test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+            ::

+            ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                      ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                        *)&local_128);

+          }

+          wil::details::

+          unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+          ::

+          ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                      *)local_88);

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+          goto LAB_2;

+        }

+      }

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      DVar8 = CFileLockBytes::Create

+                        ((unique_any_t<wil::details::unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>_>

+                          *)local_88,&local_90);

+      if ((int)DVar8 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x399,

+                   "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                   ,DVar8);

+        wil::details::

+        unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+        ::

+        ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    *)local_88);

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+        bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                            ::__l2::impl);

+        if (!bVar7) {

+          ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+        }

+        goto LAB_0;

+      }

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(this + 0x20));

+      grfMode = (-(uint)(*(int *)(this + 0x8c) != 0) & 0xffffffe2) + 0x401040;

+      uVar14 = (ulonglong)grfMode;

+      DVar8 = StgCreateDocfileOnILockBytes(local_90,grfMode,0,(IStorage **)(this + 0x20));

+      if ((int)DVar8 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x39a,

+                   "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                   ,DVar8);

+        wil::details::

+        unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+        ::

+        ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    *)local_88);

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+        bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                            ::__l2::impl);

+        if (!bVar7) {

+          ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+        }

+        goto LAB_0;

+      }

+      DVar8 = 0;

+    }

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                        ::__l2::impl);

+    lVar2 = local_40;

+    if (bVar7) {

+      if ((int)DVar8 < 0) {

+        local_120 = local_40;

+        if (local_40 != 0) {

+          LOCK();

+          *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+        *(DWORD *)(lVar2 + 0x124) = DVar8;

+        tip2::

+        test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    *)&local_120);

+        pcVar10 = tip2::details::reason_string("DestListLockHealthTip::reason::storage_open_failed")

+        ;

+        tip2::details::shared_data<0,0,0>::complete_without_lock

+                  ((shared_data<0,0,0> *)(local_40 + 8),

+                   (TestCompletionKind)CONCAT71((int7)(uVar14 >> 8),3),3,pcVar10);

+LAB_3:

+        if (((DVar8 == 0x80030021) || (DVar8 == 0x80030109)) || (DVar8 == 0x80030050)) {

+          wil::details::

+          unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+          ::

+          ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                      *)local_88);

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+        }

+        else {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x3a5,

+                     "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                     ,DVar8);

+          wil::details::

+          unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+          ::

+          ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                      *)local_88);

+          Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+        }

+        bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                            ::__l2::impl);

+        if (!bVar7) {

+          ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+        }

+        goto LAB_0;

+      }

+    }

+    else if ((int)DVar8 < 0) goto LAB_3;

+  }

+  else if (*(int *)(this + 0x8c) == 1) {

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+    DVar8 = CFileLockBytes::Create

+                      ((unique_any_t<wil::details::unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>_>

+                        *)local_88,&local_90);

+    if ((int)DVar8 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x3a9,

+                 "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                 ,DVar8);

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)local_88);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (!bVar7) {

+        ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+      }

+      goto LAB_0;

+    }

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar1);

+    DVar8 = StgCreateDocfileOnILockBytes

+                      (local_90,(-(uint)(*(int *)(this + 0x8c) != 0) & 0xffffffe2) + 0x401040,0,

+                       (IStorage **)pCVar1);

+    if ((int)DVar8 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x3aa,

+                 "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                 ,DVar8);

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)local_88);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (!bVar7) {

+        ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+      }

+      goto LAB_0;

+    }

+  }

+  if (*(int *)(this + 0x8c) == 1) {

+    pCVar1 = (ComPtr<IQuerySource> *)(this + 0x28);

+    puVar3 = *(undefined8 **)(this + 0x20);

+    pcVar4 = *(code **)*puVar3;

+    Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease(pCVar1);

+    DVar8 = (*pcVar4)(puVar3,&_GUID_0e6d4d92_6738_11cf_9608_00aa00680db4,pCVar1);

+    if ((int)DVar8 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x3af,

+                 "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                 ,DVar8);

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)local_88);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (!bVar7) {

+        ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+      }

+      goto LAB_0;

+    }

+    std::chrono::steady_clock::now();

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                        ::__l2::impl);

+    plVar9 = *(longlong **)pCVar1;

+    if (bVar7) {

+      uVar15 = 30000;

+      DVar8 = (**(code **)(*plVar9 + 0x18))(plVar9,30000);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                          ::__l2::impl);

+      if (bVar7) {

+        plVar9 = (longlong *)std::chrono::steady_clock::now();

+        lVar2 = local_40;

+        lVar12 = *plVar9 - CONCAT44(uStack_1bc,local_1c0);

+        uVar15 = SUB168(SEXT816(0x431bde82d7b634db) * SEXT816(lVar12),8);

+        local_118 = local_40;

+        if (local_40 != 0) {

+          LOCK();

+          *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+        *(int *)(lVar2 + 0x118) = (int)(lVar12 / 1000000);

+        tip2::

+        test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    *)&local_118);

+        lVar2 = local_40;

+        local_110 = local_40;

+        if (local_40 != 0) {

+          LOCK();

+          *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+        *(DWORD *)(lVar2 + 0x128) = DVar8;

+        tip2::

+        test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                    *)&local_110);

+      }

+      if (DVar8 == 0x800705b4) {

+        bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                           &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                            ::__l2::impl);

+        if (bVar7) {

+          pcVar10 = tip2::details::reason_string

+                              ("DestListLockHealthTip::reason::writer_wait_timeout");

+          tip2::details::shared_data<0,0,0>::complete_without_lock

+                    ((shared_data<0,0,0> *)(local_40 + 8),

+                     (TestCompletionKind)CONCAT71((int7)((ulonglong)uVar15 >> 8),3),4,pcVar10);

+        }

+        wil::details::

+        unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+        ::

+        ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                    *)local_88);

+        Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+        goto LAB_2;

+      }

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                          ::__l2::impl);

+      if (bVar7) {

+        if (-1 < (int)DVar8) goto LAB_4;

+        pcVar10 = tip2::details::reason_string

+                            ("DestListLockHealthTip::reason::wait_for_write_access_failed");

+        tip2::details::shared_data<0,0,0>::complete_without_lock

+                  ((shared_data<0,0,0> *)(local_40 + 8),

+                   (TestCompletionKind)CONCAT71((int7)((ulonglong)uVar15 >> 8),3),10,pcVar10);

+      }

+      else if (-1 < (int)DVar8) goto LAB_4;

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x3cb,

+                 "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                 ,DVar8);

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)local_88);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (!bVar7) {

+        ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+      }

+      goto LAB_0;

+    }

+    DVar8 = (**(code **)(*plVar9 + 0x18))(plVar9,0xffffffff);

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                        ::__l2::impl);

+    if (bVar7) {

+      plVar9 = (longlong *)std::chrono::steady_clock::now();

+      lVar6 = local_40;

+      lVar2 = *plVar9;

+      lVar12 = CONCAT44(uStack_1bc,local_1c0);

+      local_108 = local_40;

+      if (local_40 != 0) {

+        LOCK();

+        *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+        UNLOCK();

+      }

+      tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+      *(int *)(lVar6 + 0x118) = (int)((lVar2 - lVar12) / 1000000);

+      tip2::

+      test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  *)&local_108);

+      lVar2 = local_40;

+      local_100[0] = local_40;

+      if (local_40 != 0) {

+        LOCK();

+        *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+        UNLOCK();

+      }

+      tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+      *(DWORD *)(lVar2 + 0x128) = DVar8;

+      tip2::

+      test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                  *)local_100);

+    }

+    if ((int)DVar8 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x3d6,

+                 "onecoreuap\\shell\\SrcPkg\\ShellDataLayer\\AutomaticDestinationList\\src\\AutoDestListParser.cpp"

+                 ,DVar8);

+      wil::details::

+      unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+      ::

+      ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+                  *)local_88);

+      Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+      bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61012802> *)

+                         &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61012802>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61012802>::GetImpl(void)'

+                          ::__l2::impl);

+      if (!bVar7) {

+        ReadWriteLock::ReleaseLock((ReadWriteLock *)(this + 0x30));

+      }

+      goto LAB_0;

+    }

+  }

+LAB_4:

+  bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61934604> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61934604>::GetImpl(void)'

+                      ::__l2::impl);

+  lVar2 = local_40;

+  if (bVar7) {

+    local_1b0 = local_40;

+    if (local_40 != 0) {

+      LOCK();

+      *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+      UNLOCK();

+    }

+    tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+    *(undefined1 *)(lVar2 + 0x12d) = 1;

+    tip2::

+    test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+              ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                *)&local_1b0);

+    local_1a8 = local_40;

+    if (local_40 != 0) {

+      LOCK();

+      *(int *)(local_40 + 0x130) = *(int *)(local_40 + 0x130) + 1;

+      UNLOCK();

+    }

+    tip2::details::shared_data<0,0,1>::begin_update((shared_data<0,0,1> *)(local_40 + 8));

+    tip2::details::shared_data<0,0,0>::complete_helper

+              ((shared_data<0,0,0> *)(local_40 + 8),0x800,10);

+    tip2::

+    test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+              ((test_data_control<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+                *)&local_1a8);

+  }

+  wil::details::

+  unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+  ::

+  ~unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+            ((unique_storage<wil::details::handle_invalid_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>

+              *)local_88);

+  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)&local_90);

+  DVar8 = 0;

+LAB_0:

+  tip2::

+  test_watcher<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+  ::

+  ~test_watcher<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+            ((test_watcher<tip2::details::merged_data<AutoDestListTip::_tip_DestListLockHealthTip,AutoDestListTip::_tip_DestListLockHealthTip>_>

+              *)&local_78);

+  return DVar8;

+}

+
```

## `tip2::details::shared_data<0,0,0>::complete_without_lock`  (modified)

```diff
--- tip2::details::shared_data<0,0,0>::complete_without_lock
+++ tip2::details::shared_data<0,0,0>::complete_without_lock
@@ -1,2 +1,20 @@
-Failed to decompile windows.storage.dll - .ProgramDB tip2::details::shared_data<0,0,0>::complete_without_lock : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl tip2::details::shared_data<0,0,0>::complete_without_lock(void) __ptr64 */

+

+void __thiscall tip2::details::shared_data<0,0,0>::complete_without_lock(shared_data<0,0,0> *this)

+

+{

+  LPCRITICAL_SECTION lpCriticalSection;

+  

+  lpCriticalSection = (LPCRITICAL_SECTION)(this + 0xc0);

+  EnterCriticalSection(lpCriticalSection);

+  *(uint *)(this + 0x40) = *(uint *)(this + 0x40) | 0x300;

+  if (*(longlong *)(this + 0xf0) != 0) {

+    complete_helper(this,2);

+  }

+  if (lpCriticalSection != (LPCRITICAL_SECTION)0x0) {

+    LeaveCriticalSection(lpCriticalSection);

+  }

+  return;

+}

+
```

## `std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::~vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>`  (modified)

```diff
--- std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::~vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>
+++ std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::~vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>
@@ -1,2 +1,28 @@
-Failed to decompile windows.storage.dll - .ProgramDB std::vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>::~vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: __cdecl std::vector<struct StateRepoHelpers::ExplorerCommandVerb,class

+   std::allocator<struct StateRepoHelpers::ExplorerCommandVerb> >::~vector<struct

+   StateRepoHelpers::ExplorerCommandVerb,class std::allocator<struct

+   StateRepoHelpers::ExplorerCommandVerb> >(void) __ptr64 */

+

+void __thiscall

+std::

+vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+::

+~vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+          (vector<StateRepoHelpers::ExplorerCommandVerb,std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+           *this)

+

+{

+  allocator<StateRepoHelpers::ExplorerCommandVerb> *in_R8;

+  

+  if (*(ExplorerCommandVerb **)this != (ExplorerCommandVerb *)0x0) {

+    _Destroy_range<std::allocator<StateRepoHelpers::ExplorerCommandVerb>_>

+              (*(ExplorerCommandVerb **)this,*(ExplorerCommandVerb **)(this + 8),in_R8);

+    _Deallocate<16,0>(*(void **)this,(*(longlong *)(this + 0x10) - *(longlong *)this >> 4) << 4);

+    *(undefined8 *)this = 0;

+    *(undefined8 *)(this + 8) = 0;

+    *(undefined8 *)(this + 0x10) = 0;

+  }

+  return;

+}

+
```

## `DirectLaunch::TryDirectLaunchUri`  (modified)

```diff
--- DirectLaunch::TryDirectLaunchUri
+++ DirectLaunch::TryDirectLaunchUri
@@ -1,2 +1,157 @@
-Failed to decompile windows.storage.dll - .ProgramDB DirectLaunch::TryDirectLaunchUri : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* bool __cdecl DirectLaunch::TryDirectLaunchUri(class wil::basic_zstring_view<unsigned short>,class

+   wil::basic_zstring_view<unsigned short>,class std::function<bool __cdecl(struct HWND__ *

+   __ptr64)> const & __ptr64,class std::chrono::duration<__int64,struct std::ratio<1,1000> >) */

+

+bool __cdecl

+DirectLaunch::TryDirectLaunchUri

+          (DirectLaunchResult *param_1,DirectLaunchResult *param_2,

+          _Func_class<bool,HWND__*___ptr64> *param_3,undefined8 param_4)

+

+{

+  undefined8 uVar1;

+  bool bVar2;

+  UriSchemeType UVar3;

+  HWND__ *pHVar4;

+  HWND__ *pHVar5;

+  longlong *plVar6;

+  bool bVar7;

+  undefined1 auStack_88 [32];

+  undefined8 local_68;

+  undefined8 uStack_60;

+  DirectLaunchResult local_58;

+  DirectLaunchResult DStack_54;

+  DirectLaunchResult DStack_50;

+  DirectLaunchResult DStack_4c;

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStack_88;

+  bVar2 = details::IsCurrentProcessGreaterThanMediumIntegrityLevel();

+  bVar7 = false;

+  if (bVar2) {

+    local_68 = CONCAT44(local_68._4_4_,6);

+LAB_0:

+    details::DirectLaunchTelemetry::

+    UriDirectLaunched<DirectLaunch::details::DirectLaunchTelemetry::DirectLaunchResult>

+              ((DirectLaunchResult *)&local_68);

+    return false;

+  }

+  local_58 = *param_1;

+  DStack_54 = param_1[1];

+  DStack_50 = param_1[2];

+  DStack_4c = param_1[3];

+  pHVar4 = details::TryGetHandlerWindowFromRegistry(&local_58);

+  if (pHVar4 == (HWND__ *)0x0) {

+    local_68 = CONCAT44(local_68._4_4_,2);

+    goto LAB_0;

+  }

+  tip2::

+  start<tip2::tip_test<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>_>

+            ();

+  local_68._0_4_ = *param_1;

+  local_68._4_4_ = param_1[1];

+  uStack_60 = *(undefined8 *)(param_1 + 2);

+  UVar3 = details::GetUriSchemeType(&local_68);

+  if (UVar3 == 2) {

+    local_68._0_4_ = *param_2;

+    local_68._4_4_ = param_2[1];

+    uStack_60 = *(undefined8 *)(param_2 + 2);

+    bVar2 = details::DoesHostNameForUriMatchAnyAppUriRegistration(&local_68);

+    if (bVar2) {

+      local_68 = CONCAT44(local_68._4_4_,7);

+      details::DirectLaunchTelemetry::

+      UriDirectLaunched<DirectLaunch::details::DirectLaunchTelemetry::DirectLaunchResult>

+                ((DirectLaunchResult *)&local_68);

+      goto LAB_1;

+    }

+  }

+  if (g_isSensitiveUriSchemeFn == (_func_bool_basic_zstring_view<unsigned_short> *)0x0) {

+    if (UVar3 == 0) {

+      local_68._0_4_ = *param_1;

+      local_68._4_4_ = param_1[1];

+      uStack_60 = *(undefined8 *)(param_1 + 2);

+      UVar3 = details::GetUriSchemeType(&local_68);

+    }

+    bVar2 = UVar3 == 2;

+  }

+  else {

+    local_68._0_4_ = *param_1;

+    local_68._4_4_ = param_1[1];

+    uStack_60 = *(undefined8 *)(param_1 + 2);

+    bVar2 = (*g_isSensitiveUriSchemeFn)(SUB81(&local_68,0));

+  }

+  if (bVar2 != false) {

+    uVar1 = *(undefined8 *)param_1;

+    uStack_60 = 0xffffffffffffffff;

+    do {

+      uStack_60 = uStack_60 + 1;

+    } while (*(short *)(uVar1 + uStack_60 * 2) != 0);

+    local_68._4_4_ = (DirectLaunchResult)((ulonglong)uVar1 >> 0x20);

+    local_68._0_4_ = (DirectLaunchResult)uVar1;

+    pHVar5 = details::TryGetHandlerWindowFromService(&local_68);

+    if (pHVar4 != pHVar5) {

+      local_68 = CONCAT44(local_68._4_4_,5);

+      goto LAB_2;

+    }

+  }

+  if ((*(longlong *)(param_3 + 0x38) == 0) ||

+     (bVar2 = std::_Func_class<bool,HWND__*___ptr64>::operator()(param_3,pHVar4), bVar2)) {

+    local_68 = *(undefined8 *)param_2;

+    uStack_60 = *(undefined8 *)(param_2 + 2);

+    bVar2 = details::TrySendLaunchMessage(pHVar4,&local_68,param_4);

+    if (bVar2) {

+      local_68 = (ulonglong)local_68._4_4_ << 0x20;

+      details::DirectLaunchTelemetry::

+      UriDirectLaunched<DirectLaunch::details::DirectLaunchTelemetry::DirectLaunchResult>

+                ((DirectLaunchResult *)&local_68);

+      plVar6 = (longlong *)

+               tip2::

+               tip_test<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+               ::operator->((tip_test<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+                             *)&local_58);

+      *(undefined1 *)(*plVar6 + 0x110) = 1;

+      tip2::

+      test_data_control<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+                ((test_data_control<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>_>

+                  *)&local_68);

+      tip2::

+      tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+      ::complete((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+                  *)&local_58);

+      bVar7 = true;

+LAB_1:

+      wil::

+      com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+      ::

+      ~com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+                ((com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+                  *)&local_58);

+      return bVar7;

+    }

+    local_68 = CONCAT44(local_68._4_4_,4);

+  }

+  else {

+    local_68 = CONCAT44(local_68._4_4_,3);

+  }

+LAB_2:

+  details::DirectLaunchTelemetry::

+  UriDirectLaunched<DirectLaunch::details::DirectLaunchTelemetry::DirectLaunchResult>

+            ((DirectLaunchResult *)&local_68);

+  tip2::

+  tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+  ::complete((tip_test<tip2::details::merged_data<AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest,AppDefaultsIntegrityTipTests::_tip_HashRotationTipTest>_>

+              *)&local_58);

+  wil::

+  com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+            ((com_ptr_t<tip2::details::merged_data<DirectLaunch::details::_tip_DirectLaunchInvocationTest,DirectLaunch::details::_tip_DirectLaunchInvocationTest>,wil::err_returncode_policy>

+              *)&local_58);

+  return false;

+}

+
```

## `tip2::details::shared_data<0,0,1>::shared_data<0,0,1>`  (modified)

```diff
--- tip2::details::shared_data<0,0,1>::shared_data<0,0,1>
+++ UpdateItemsInRecommendedBlockList
@@ -1,40 +1,37 @@
 

-/* public: __cdecl tip2::details::shared_data<0,0,1>::shared_data<0,0,1>(struct

-   tip2::details::test_data_interface & __ptr64,struct tip2::test_info const & __ptr64) __ptr64 */

-

-shared_data<0,0,1> * __thiscall

-tip2::details::shared_data<0,0,1>::shared_data<0,0,1>

-          (shared_data<0,0,1> *this,test_data_interface *param_1,test_info *param_2)

+undefined8

+UpdateItemsInRecommendedBlockList(ICoreApplicationPrivate *param_1,ICoreApplicationPrivate *param_2)

 

 {

-  undefined4 uVar1;

-  undefined4 uVar2;

-  undefined4 uVar3;

-  undefined8 uVar4;

+  void *unaff_retaddr;

+  undefined1 local_res18 [8];

+  undefined8 local_res20;

+  undefined8 local_38;

+  InstanceManager *local_30;

+  _Ref_count_base *local_28;

   

-  *(test_data_interface **)this = param_1;

-  test_state::test_state((test_state *)(this + 8));

-  *(undefined8 *)(this + 0xf0) = 0;

-  *(undefined4 *)(this + 0xb8) = 0;

-  *(undefined4 *)(this + 0xe8) = 0;

-  uVar4 = *(undefined8 *)(param_2 + 8);

-  *(undefined8 *)(this + 0x10) = *(undefined8 *)param_2;

-  *(undefined8 *)(this + 0x18) = uVar4;

-  uVar1 = *(undefined4 *)(param_2 + 0x14);

-  uVar2 = *(undefined4 *)(param_2 + 0x18);

-  uVar3 = *(undefined4 *)(param_2 + 0x1c);

-  *(undefined4 *)(this + 0x20) = *(undefined4 *)(param_2 + 0x10);

-  *(undefined4 *)(this + 0x24) = uVar1;

-  *(undefined4 *)(this + 0x28) = uVar2;

-  *(undefined4 *)(this + 0x2c) = uVar3;

-  uVar1 = *(undefined4 *)(param_2 + 0x24);

-  uVar2 = *(undefined4 *)(param_2 + 0x28);

-  uVar3 = *(undefined4 *)(param_2 + 0x2c);

-  *(undefined4 *)(this + 0x30) = *(undefined4 *)(param_2 + 0x20);

-  *(undefined4 *)(this + 0x34) = uVar1;

-  *(undefined4 *)(this + 0x38) = uVar2;

-  *(undefined4 *)(this + 0x3c) = uVar3;

-  InitializeCriticalSection((LPCRITICAL_SECTION)(this + 0xc0));

-  return this;

+  GraphRecentItemsManager::InstanceManager::GetInstanceManager();

+  if (local_30 != (InstanceManager *)0x0) {

+    local_res20 = *(undefined8 *)param_2;

+    Microsoft::WRL::ComPtr<Windows::ApplicationModel::Activation::ISplashScreen>::InternalAddRef

+              ((ComPtr<Windows::ApplicationModel::Activation::ISplashScreen> *)&local_res20);

+    local_38 = *(undefined8 *)param_1;

+    Microsoft::WRL::ComPtr<Windows::ApplicationModel::Activation::ISplashScreen>::InternalAddRef

+              ((ComPtr<Windows::ApplicationModel::Activation::ISplashScreen> *)&local_38);

+    GraphRecentItemsManager::InstanceManager::UpdateItemsInRecommendedBlockListFireAndForget

+              (local_30,local_res18,&local_38,&local_res20);

+    if (local_28 != (_Ref_count_base *)0x0) {

+      std::_Ref_count_base::_Decref(local_28);

+    }

+    winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+              (param_1);

+    winrt::Windows::ApplicationModel::Core::ICoreApplicationPrivate::~ICoreApplicationPrivate

+              (param_2);

+    return 0;

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_Throw_Hr

+            (unaff_retaddr,0x35,"onecoreuap\\shell\\windows.storage\\homeoperationsink.cpp",

+             -0x7ff8ec61);

 }
```

## `fc::details::serialize_config_helper<bool,void>::serialize_config`  (modified)

```diff
--- fc::details::serialize_config_helper<bool,void>::serialize_config
+++ fc::details::serialize_config_helper<bool,void>::serialize_config
@@ -1,2 +1,53 @@
-Failed to decompile windows.storage.dll - .ProgramDB fc::details::serialize_config_helper<bool,void>::serialize_config : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: static void __cdecl

+   fc::details::serialize_config_helper<bool,void>::serialize_config(class fc_tson::output_archive &

+   __ptr64,char const * __ptr64,bool const & __ptr64,unsigned int,char const * __ptr64,char const *

+   __ptr64,bool const * __ptr64,bool const * __ptr64) */

+

+void __cdecl

+fc::details::serialize_config_helper<bool,void>::serialize_config

+          (output_archive *param_1,char *param_2,bool *param_3,uint param_4,char *param_5,

+          char *param_6,bool *param_7,bool *param_8)

+

+{

+  int iVar1;

+  nvpd<bool_const&___ptr64> *pnVar2;

+  longlong lVar3;

+  undefined7 in_stack_ffffffffffffff91;

+  char local_58 [80];

+  

+  if ((*(uint *)(param_1 + 200) & 0x100) != 0) {

+    if (((((param_6 == (char *)0x0) || (iVar1 = strcmp(param_6,"bool"), iVar1 == 0)) ||

+         (iVar1 = strcmp(param_6,"int"), iVar1 == 0)) ||

+        ((((iVar1 = strcmp(param_6,"unsigned int"), iVar1 == 0 ||

+           (iVar1 = strcmp(param_6,"long"), iVar1 == 0)) ||

+          ((iVar1 = strcmp(param_6,"unsigned long"), iVar1 == 0 ||

+           ((iVar1 = strcmp(param_6,"char"), iVar1 == 0 ||

+            (iVar1 = strcmp(param_6,"unsigned char"), iVar1 == 0)))))) ||

+         (iVar1 = strcmp(param_6,"short"), iVar1 == 0)))) ||

+       ((((iVar1 = strcmp(param_6,"unsigned short"), iVar1 == 0 ||

+          (iVar1 = strcmp(param_6,"long long"), iVar1 == 0)) ||

+         (iVar1 = strcmp(param_6,"unsigned long long"), iVar1 == 0)) ||

+        ((iVar1 = strcmp(param_6,"double"), iVar1 == 0 ||

+         (iVar1 = strcmp(param_6,"float"), iVar1 == 0)))))) {

+      param_6 = "";

+    }

+    pnVar2 = (nvpd<bool_const&___ptr64> *)

+             fc_tson::make_nvpd<bool_const&___ptr64>

+                       (local_58,(bool *)param_2,param_3,param_5,(nvpd_flags)param_6,

+                        (bool *)(CONCAT71(in_stack_ffffffffffffff91,-(param_7 != (bool *)0x0)) &

+                                0xffffffffffffff02),param_7);

+    fc_tson::output_archive::operator()<fc_tson::nvpd<bool_const&___ptr64>_>(param_1,pnVar2);

+    return;

+  }

+  lVar3 = -1;

+  do {

+    lVar3 = lVar3 + 1;

+  } while (param_2[lVar3] != '\0');

+  *(char **)param_1 = param_2;

+  param_1[8] = SUB81(lVar3,0);

+  *(uint *)(param_1 + 0xcc) = param_4;

+  fc_tson::output_archive::saveValue(param_1,*param_3);

+  return;

+}

+
```

## `fc::config_property<bool,fc::details::minmax<bool,0>_>::serialize_config`  (modified)

```diff
--- fc::config_property<bool,fc::details::minmax<bool,0>_>::serialize_config
+++ fc::config_property<bool,fc::details::minmax<bool,0>_>::serialize_config
@@ -1,2 +1,24 @@
-Failed to decompile windows.storage.dll - .ProgramDB fc::config_property<bool,fc::details::minmax<bool,0>_>::serialize_config : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* protected: virtual void __cdecl fc::config_property<bool,struct fc::details::minmax<bool,0>

+   >::serialize_config(class fc_tson::output_archive & __ptr64) __ptr64 */

+

+void __thiscall

+fc::config_property<bool,fc::details::minmax<bool,0>_>::serialize_config

+          (config_property<bool,fc::details::minmax<bool,0>_> *this,output_archive *param_1)

+

+{

+  char *pcVar1;

+  char *pcVar2;

+  config_property_base *this_00;

+  

+  if (((*(uint *)(param_1 + 200) & 0x200) == 0) || ((*(uint *)(this + 0x24) & 0x200) != 0)) {

+    this_00 = (config_property_base *)(this + 8);

+    pcVar1 = config_property_base::type(this_00);

+    pcVar2 = config_property_base::description(this_00);

+    details::serialize_config_helper<bool,void>::serialize_config

+              (param_1,*(char **)(this + 0x10),(bool *)(this + 0x29),*(uint *)(this + 0x20),pcVar2,

+               pcVar1,(bool *)0x0,(bool *)0x0);

+  }

+  return;

+}

+
```

## `SyncRootTranslator::TryFindFolderOnRootDesktop`  (modified)

```diff
--- SyncRootTranslator::TryFindFolderOnRootDesktop
+++ SyncRootTranslator::TryFindFolderOnRootDesktop
@@ -1,2 +1,40 @@
-Failed to decompile windows.storage.dll - .ProgramDB SyncRootTranslator::TryFindFolderOnRootDesktop : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: static class wil::com_ptr_t<struct IShellItem2,struct wil::err_exception_policy> __cdecl

+   SyncRootTranslator::TryFindFolderOnRootDesktop(struct IShellItem2 * __ptr64) */

+

+IShellItem2 * __cdecl SyncRootTranslator::TryFindFolderOnRootDesktop(IShellItem2 *param_1)

+

+{

+  bool bVar1;

+  int *this;

+  

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61766564> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61766564>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar1) {

+    this = (int *)&DAT_0;

+    if (*(int *)(*(longlong *)((longlong)ThreadLocalStoragePointer + (ulonglong)_tls_index * 8) + 8)

+        < `private:_static_class_wil::com_ptr_t<IShellItem2,wil::err_exception_policy>___cdecl_SyncRootTranslator::TryFindFolderOnRootDesktop(IShellItem2*___ptr64)'

+          ::__l5::_thread_safe_static_guard_0__) {

+      this = &`private:_static_class_wil::com_ptr_t<IShellItem2,wil::err_exception_policy>___cdecl_SyncRootTranslator::TryFindFolderOnRootDesktop(IShellItem2*___ptr64)'

+              ::__l5::_thread_safe_static_guard_0__;

+      _Init_thread_header();

+      if (`private:_static_class_wil::com_ptr_t<IShellItem2,wil::err_exception_policy>___cdecl_SyncRootTranslator::TryFindFolderOnRootDesktop(IShellItem2*___ptr64)'

+          ::__l5::_thread_safe_static_guard_0__ == -1) {

+        DesktopRegItemCache::DesktopRegItemCache((DesktopRegItemCache *)this);

+        atexit(`private:_static_class_wil::com_ptr_t<IShellItem2,wil::err_exception_policy>___cdecl_SyncRootTranslator::TryFindFolderOnRootDesktop(IShellItem2*___ptr64)'

+               ::__l5::_dynamic_atexit_destructor_for__s_desktopRegItemCache__);

+        this = &`private:_static_class_wil::com_ptr_t<IShellItem2,wil::err_exception_policy>___cdecl_SyncRootTranslator::TryFindFolderOnRootDesktop(IShellItem2*___ptr64)'

+                ::__l5::_thread_safe_static_guard_0__;

+        _Init_thread_footer();

+      }

+    }

+    DesktopRegItemCache::TryFind((DesktopRegItemCache *)this,param_1);

+  }

+  else {

+    TryFindFolderOnRootDesktopUncached(param_1);

+  }

+  return param_1;

+}

+
```

## `CFSFolder::OpenStream`  (modified)

```diff
--- CFSFolder::OpenStream
+++ CFSFolder::OpenStream
@@ -1,2 +1,49 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::OpenStream : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual long __cdecl CFSFolder::OpenStream(unsigned short const * __ptr64,void *

+   __ptr64,unsigned long,unsigned long,struct IStream * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CFSFolder::OpenStream

+          (CFSFolder *this,ushort *param_1,void *param_2,ulong param_3,ulong param_4,

+          IStream **param_5)

+

+{

+  long lVar1;

+  ushort **ppuVar2;

+  CFSFolder *this_00;

+  void *unaff_retaddr;

+  undefined1 auStackY_58 [32];

+  ushort *local_28;

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStackY_58;

+  *param_5 = (IStream *)0x0;

+  if (param_1 == (ushort *)0x0) {

+    lVar1 = -0x7ffcffa9;

+  }

+  else {

+    local_28 = (ushort *)0x0;

+    ppuVar2 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_28);

+    this_00 = this + -0x50;

+    lVar1 = GetPathForFileAccess(this_00,param_1,ppuVar2);

+    if (lVar1 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x2c83,"onecoreuap\\shell\\windows.storage\\filefldr.cpp",lVar1);

+    }

+    else {

+      lVar1 = _OpenCreateStream(this_00,local_28,param_3,param_5,0);

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_28);

+  }

+  return lVar1;

+}

+
```

## `PiiSafeFolderList::Initialize`  (modified)

```diff
--- PiiSafeFolderList::Initialize
+++ PiiSafeFolderList::Initialize
@@ -1,2 +1,340 @@
-Failed to decompile windows.storage.dll - .ProgramDB PiiSafeFolderList::Initialize : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: void __cdecl PiiSafeFolderList::Initialize(void) __ptr64 */

+

+void __thiscall PiiSafeFolderList::Initialize(PiiSafeFolderList *this)

+

+{

+  undefined8 uVar1;

+  int iVar2;

+  ushort **ppuVar3;

+  uint uVar4;

+  PiiSafeFolderList *pPVar5;

+  undefined1 *puVar6;

+  PiiSafeFolderList *pPVar7;

+  PiiSafeFolderList *pPVar8;

+  undefined1 auStack_308 [32];

+  undefined8 local_2e8;

+  undefined8 local_2d8;

+  undefined8 *local_2d0;

+  undefined8 local_2c8;

+  undefined1 local_2c0;

+  wchar_t *local_2b8;

+  undefined1 local_2b0;

+  undefined4 local_2af;

+  undefined2 local_2ab;

+  undefined1 local_2a9;

+  wchar_t *local_2a8;

+  undefined1 local_2a0;

+  undefined4 local_29f;

+  undefined2 local_29b;

+  undefined1 local_299;

+  wchar_t *local_298;

+  undefined1 local_290;

+  undefined4 local_28f;

+  undefined2 local_28b;

+  undefined1 local_289;

+  wchar_t *local_288;

+  undefined1 local_280;

+  undefined4 local_27f;

+  undefined2 local_27b;

+  undefined1 local_279;

+  wchar_t *local_278;

+  undefined1 local_270;

+  undefined4 local_26f;

+  undefined2 local_26b;

+  undefined1 local_269;

+  wchar_t *local_268;

+  undefined1 local_260;

+  undefined4 local_25f;

+  undefined2 local_25b;

+  undefined1 local_259;

+  wchar_t *local_258;

+  undefined1 local_250;

+  undefined4 local_24f;

+  undefined2 local_24b;

+  undefined1 local_249;

+  wchar_t *local_248;

+  undefined1 local_240;

+  undefined4 local_23f;

+  undefined2 local_23b;

+  undefined1 local_239;

+  wchar_t *local_238;

+  undefined1 local_230;

+  undefined4 local_22f;

+  undefined2 local_22b;

+  undefined1 local_229;

+  wchar_t *local_228;

+  undefined1 local_220;

+  undefined4 local_21f;

+  undefined2 local_21b;

+  undefined1 local_219;

+  wchar_t *local_218;

+  undefined1 local_210;

+  undefined4 local_20f;

+  undefined2 local_20b;

+  undefined1 local_209;

+  wchar_t *local_208;

+  undefined1 local_200;

+  undefined4 local_1ff;

+  undefined2 local_1fb;

+  undefined1 local_1f9;

+  wchar_t *local_1f8;

+  undefined1 local_1f0;

+  undefined4 local_1ef;

+  undefined2 local_1eb;

+  undefined1 local_1e9;

+  undefined8 local_1e8;

+  undefined8 uStack_1e0;

+  PiiSafeFolderList local_1d8 [4];

+  undefined8 local_1d4;

+  undefined8 uStack_1cc;

+  undefined1 local_1c4;

+  undefined8 local_1c0;

+  undefined8 uStack_1b8;

+  undefined1 local_1b0;

+  undefined8 local_1ac;

+  undefined8 uStack_1a4;

+  undefined1 local_19c;

+  undefined8 local_198;

+  undefined8 uStack_190;

+  undefined1 local_188;

+  undefined8 local_184;

+  undefined8 uStack_17c;

+  undefined1 local_174;

+  undefined8 local_170;

+  undefined8 uStack_168;

+  undefined1 local_160;

+  undefined8 local_15c;

+  undefined8 uStack_154;

+  undefined1 local_14c;

+  undefined8 local_148;

+  undefined8 uStack_140;

+  undefined1 local_138;

+  undefined8 local_134;

+  undefined8 uStack_12c;

+  undefined1 local_124;

+  undefined8 local_120;

+  undefined8 uStack_118;

+  undefined1 local_110;

+  undefined8 local_10c;

+  undefined8 uStack_104;

+  undefined1 local_fc;

+  undefined8 local_f8;

+  undefined8 uStack_f0;

+  undefined1 local_e8;

+  undefined8 local_e4;

+  undefined8 uStack_dc;

+  undefined1 local_d4;

+  undefined8 local_d0;

+  undefined8 uStack_c8;

+  undefined1 local_c0;

+  undefined8 local_bc;

+  undefined8 uStack_b4;

+  undefined1 local_ac;

+  undefined8 local_a8;

+  undefined8 uStack_a0;

+  undefined1 local_98;

+  undefined8 local_94;

+  undefined8 uStack_8c;

+  undefined1 local_84;

+  undefined8 local_80;

+  undefined8 uStack_78;

+  undefined1 local_70;

+  undefined8 local_6c;

+  undefined8 uStack_64;

+  undefined1 local_5c;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  undefined1 local_48;

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_308;

+  local_1d8[0] = (PiiSafeFolderList)0x33;

+  local_1c4 = 0x34;

+  uVar4 = 0;

+  local_1e8 = 0x45342f1924d89e24;

+  uStack_1e0 = 0xfeb8fb71666ade9d;

+  local_1b0 = 0x35;

+  local_19c = 0x36;

+  pPVar8 = local_1d8;

+  local_1d4 = 0x427349cb767e6811;

+  uStack_1cc = 0x5b08e155f320c287;

+  local_188 = 0x32;

+  pPVar7 = this + 0x410;

+  local_174 = 0xb;

+  local_1c0 = 0x48948c47339719b5;

+  uStack_1b8 = 0xa644dd7af7d8c294;

+  local_160 = 0x71;

+  local_14c = 0x72;

+  local_1ac = 0x45dc80d6c3f2459e;

+  uStack_1a4 = 0x30e72b9f761fefbf;

+  local_138 = 0x73;

+  local_124 = 0x74;

+  local_198 = 0x435fe9e1a52bba46;

+  uStack_190 = 0xf6c048a6da28d9b3;

+  local_110 = 0x75;

+  local_fc = 0x76;

+  local_184 = 0x47600e225e6c858f;

+  uStack_17c = 0x7371b61733eafe9a;

+  local_e8 = 0x16;

+  local_d4 = 0x17;

+  local_170 = 0x4ae3ae11fd228cb7;

+  uStack_168 = 0xfeb80a91f3164c86;

+  local_c0 = 0x18;

+  local_ac = 0x19;

+  local_15c = 0x4bfca0fb7c5a40ef;

+  uStack_154 = 0x8efab9e0f2c04a87;

+  local_98 = 0x1a;

+  local_84 = 0x1b;

+  local_148 = 0x444b6af06d809377;

+  uStack_140 = 0xe20023f77a35789;

+  local_70 = 0x1c;

+  local_5c = 0x1d;

+  local_134 = 0x494ec1bf905e63b6;

+  uStack_12c = 0x1ad2d332b7659cb2;

+  local_48 = 0x1e;

+  local_120 = 0x42f21d43f38bf404;

+  uStack_118 = 0x23fc280bde670593;

+  local_10c = 0x4addb9e352528a6b;

+  uStack_104 = 0x2d84ba2d8c580db6;

+  local_f8 = 0x424cdb2cb4bfcc3a;

+  uStack_f0 = 0x41c6879ae97f29b0;

+  local_e4 = 0x46af238ffdd39ad0;

+  uStack_dc = 0xc7690348856cb4ad;

+  local_d0 = 0x4565123f374de290;

+  uStack_c8 = 0x7b465e92c4396491;

+  local_bc = 0x4f837ce2ab5fb87b;

+  uStack_b4 = 0x7b53c94608555d91;

+  local_a8 = 0x46764e1e33e28130;

+  uStack_a0 = 0xbbc33b5c39985a83;

+  local_94 = 0x48d36d194bd8d571;

+  uStack_8c = 0x430e0820224297be;

+  local_80 = 0x455b99b518989b1d;

+  uStack_78 = 0xfcdde4747cab1c84;

+  *(undefined4 *)(this + 0x5a0) = 0x15;

+  local_6c = 0x4f12943931c0dd25;

+  uStack_64 = 0x2287a3edf47f41bf;

+  local_58 = 0x4682df94b7bede81;

+  uStack_50 = 0x6fb82026a557d8a7;

+  pPVar5 = this;

+  do {

+    ppuVar3 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)(this + (longlong)(int)uVar4 * 8 + 0x410));

+    iVar2 = SHGetKnownFolderPath

+                      ((longlong)&local_1e8 + (longlong)(int)uVar4 * 0x14,0x4100,0,ppuVar3);

+    if (-1 < iVar2) {

+      *(undefined8 *)pPVar5 = *(undefined8 *)pPVar7;

+    }

+    uVar4 = uVar4 + 1;

+    pPVar5[8] = *pPVar8;

+    pPVar7 = pPVar7 + 8;

+    pPVar5 = pPVar5 + 0x10;

+    pPVar8 = pPVar8 + 0x14;

+  } while (uVar4 < 0x15);

+  local_2b0 = 0x78;

+  local_2b8 = L"shell:::{f874310e-b6b7-47dc-bc84-b9e6b38f5903}";

+  local_2af = 0;

+  local_2ab = 0;

+  local_2a9 = 0;

+  local_2a8 = L"shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}";

+  local_29f = 0;

+  local_29b = 0;

+  local_299 = 0;

+  local_298 = L"shell:::{645FF040-5081-101B-9F08-00AA002F954E}";

+  local_28f = 0;

+  local_28b = 0;

+  local_289 = 0;

+  local_288 = L"shell:::{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}";

+  local_27f = 0;

+  local_27b = 0;

+  local_279 = 0;

+  local_278 = L"shell:::{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}";

+  local_26f = 0;

+  local_26b = 0;

+  local_269 = 0;

+  local_268 = L"shell:::{031e4825-7b94-4dc3-b131-e946b44c8dd5}";

+  local_25f = 0;

+  local_25b = 0;

+  local_259 = 0;

+  local_258 = L"shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}";

+  local_24f = 0;

+  local_24b = 0;

+  local_249 = 0;

+  local_248 = L"shell:::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\\CameraRoll.library-ms";

+  local_23f = 0;

+  local_23b = 0;

+  local_239 = 0;

+  local_238 = L"shell:::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\\Documents.library-ms";

+  local_22f = 0;

+  local_22b = 0;

+  local_229 = 0;

+  local_228 = L"shell:::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\\Music.library-ms";

+  local_21f = 0;

+  local_21b = 0;

+  local_219 = 0;

+  local_218 = L"shell:::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\\Pictures.library-ms";

+  local_20f = 0;

+  local_20b = 0;

+  local_209 = 0;

+  local_208 = L"shell:::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\\SavedPictures.library-ms";

+  local_2a0 = 0x6e;

+  local_290 = 0x70;

+  local_280 = 0x79;

+  local_270 = 0x7b;

+  local_260 = 0x7a;

+  local_250 = 0x6f;

+  local_240 = 0x7c;

+  local_230 = 0x7d;

+  local_220 = 0x7e;

+  local_210 = 0x7f;

+  local_200 = 0x80;

+  local_1ff = 0;

+  puVar6 = &local_2b0;

+  local_1fb = 0;

+  uVar4 = 0;

+  local_1f9 = 0;

+  local_1f0 = 0x81;

+  local_1f8 = L"shell:::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\\Videos.library-ms";

+  local_1ef = 0;

+  local_1eb = 0;

+  local_1e9 = 0;

+  do {

+    uVar1 = *(undefined8 *)(puVar6 + -8);

+    local_2d8 = 0;

+    local_2c8 = 0;

+    local_2e8 = 0;

+    puVar6[(longlong)(this + (800 - (longlong)&local_2b0))] = *puVar6;

+    local_2d0 = &local_2d8;

+    local_2c0 = 1;

+    iVar2 = SHParseDisplayName(uVar1,0,&local_2c8,0);

+    wil::details::

+    out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+    ::

+    ~out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+              ((out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                *)&local_2d0);

+    if (iVar2 < 0) {

+      wistd::

+      unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+      ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+               *)&local_2d8,(tagSERIALIZEDPROPSTORAGE *)0x0);

+    }

+    wistd::

+    unique_ptr<_ITEMIDLIST_ABSOLUTE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+    ::operator=((unique_ptr<_ITEMIDLIST_ABSOLUTE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                 *)(this + (longlong)(int)uVar4 * 0x10 + 0x328),

+                (unique_ptr<struct__ITEMIDLIST_ABSOLUTE,struct_wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                 *)&local_2d8);

+    wistd::

+    unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+    ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+             *)&local_2d8,(tagSERIALIZEDPROPSTORAGE *)0x0);

+    uVar4 = uVar4 + 1;

+    puVar6 = puVar6 + 0x10;

+  } while (uVar4 < 0xd);

+  return;

+}

+
```

## `tip2::details::shared_data<1,0,0>::log_failure`  (modified)

```diff
--- tip2::details::shared_data<1,0,0>::log_failure
+++ tip2::details::shared_data<1,0,0>::log_failure
@@ -1,2 +1,37 @@
-Failed to decompile windows.storage.dll - .ProgramDB tip2::details::shared_data<1,0,0>::log_failure : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl tip2::details::shared_data<1,0,0>::log_failure(struct wil::FailureInfo

+   const & __ptr64) __ptr64 */

+

+void __thiscall

+tip2::details::shared_data<1,0,0>::log_failure(shared_data<1,0,0> *this,FailureInfo *param_1)

+

+{

+  bool bVar1;

+  StoredFailureInfo local_b8 [152];

+  shared_buffer local_20 [24];

+  

+  bVar1 = begin_update(this);

+  if (bVar1) {

+    bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>

+                                 *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::GetImpl(void)'

+                                    ::__l2::impl);

+    if (bVar1) {

+      while (9 < *(ulonglong *)(this + 0x58)) {

+        vector_nothrow<wil::StoredFailureInfo>::erase

+                  ((vector_nothrow<wil::StoredFailureInfo> *)(this + 0x48),

+                   *(StoredFailureInfo **)(this + 0x48));

+      }

+    }

+    wil::StoredFailureInfo::StoredFailureInfo(local_b8,param_1);

+    bVar1 = vector_nothrow<wil::StoredFailureInfo>::push_back

+                      ((vector_nothrow<wil::StoredFailureInfo> *)(this + 0x48),local_b8);

+    wil::details::shared_buffer::reset(local_20);

+    if (!bVar1) {

+      *(uint *)(this + 0x40) = *(uint *)(this + 0x40) | 0x100000;

+    }

+  }

+  end_update(this);

+  return;

+}

+
```

## `StorageItemHelpers::ValidateCanonicalPath`  (modified)

```diff
--- StorageItemHelpers::ValidateCanonicalPath
+++ StorageItemHelpers::ValidateCanonicalPath
@@ -1,72 +1,119 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* long __cdecl StorageItemHelpers::ValidateCanonicalPath(struct HSTRING__ * __ptr64,enum

+   CANONICALIZE_FLAGS) */

 

 long __cdecl

-StorageTelemetry::ActivityThreadWatcherWithCapturedCallerContextReportOnExit::ValidateCanonicalPath

-          (HSTRING__ *param_1,CANONICALIZE_FLAGS param_2)

+StorageItemHelpers::ValidateCanonicalPath(HSTRING__ *param_1,CANONICALIZE_FLAGS param_2)

 

 {

-  undefined8 *puVar1;

-  longlong lVar2;

-  undefined1 auVar3 [16];

-  undefined1 auVar4 [16];

-  HSTRING__ *pHVar5;

-  ulonglong cb;

-  LPVOID pvVar6;

-  ulonglong uVar7;

-  ulonglong unaff_RBX;

-  HSTRING__ *pHVar8;

-  longlong *unaff_RDI;

-  long in_R8D;

-  HSTRING__ *in_R9;

-  undefined8 *unaff_R15;

+  WCHAR WVar1;

+  char cVar2;

+  int iVar3;

+  uint uVar4;

+  BOOL BVar5;

+  ushort *puVar6;

+  ushort **ppuVar7;

+  uint uVar8;

+  uint uVar9;

+  LPCWSTR pWVar10;

+  void *unaff_retaddr;

+  undefined1 auStack_128 [32];

+  LPCWSTR local_108;

+  int local_100 [2];

+  LPCWSTR local_f8 [2];

+  ActivityThreadWatcherWithCapturedCallerContextReportOnExit local_e8 [192];

+  ulonglong local_28;

   

-  if ((uint)unaff_RBX < (uint)param_1) {

-    auVar3._8_8_ = 0;

-    auVar3._0_8_ = unaff_RBX;

-    auVar3 = ZEXT416(in_R8D + 2) * auVar3;

-    pHVar5 = auVar3._0_8_;

-    if (auVar3._8_8_ == 0) {

-      pHVar8 = (HSTRING__ *)(unaff_RBX + 0x1000);

-      if ((longlong)pHVar5 - unaff_RBX < 0x1001) {

-        pHVar8 = pHVar5;

+  local_28 = __security_cookie ^ (ulonglong)auStack_128;

+  WinRTStorageTelemetry::WatchCurrentThread((char *)local_e8,false);

+  uVar9 = 0;

+  local_100[0] = 0;

+  WindowsStringHasEmbeddedNull(param_1,local_100);

+  if (local_100[0] == 0) {

+    puVar6 = (ushort *)WindowsGetStringRawBuffer(param_1,0);

+    iVar3 = WindowsGetStringLen(param_1);

+    uVar8 = uVar9;

+    if (iVar3 == 0) {

+      uVar8 = 0x80070057;

+    }

+    CheckAndReportError(uVar8,0xc629);

+    if (iVar3 != 0) {

+      cVar2 = RtlAreLongPathsEnabled();

+      if (cVar2 == '\0') {

+        uVar4 = WindowsGetStringLen(param_1);

+        uVar8 = ~-(uint)(uVar4 < 0x104) & 0x800700ce;

+        CheckAndReportErrorForPath(uVar8,0xc62a,puVar6,0x104);

+        if (0x103 < uVar4) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x1fd0,"onecoreuap\\shell\\windows.storage\\dataaccess.cpp",uVar8

+                    );

+          goto LAB_0;

+        }

       }

-      if ((param_1 <= pHVar8) && (param_1 = pHVar8, in_R9 < pHVar8)) {

-        param_1 = in_R9;

+      wil::make_cotaskmem_string_nothrow((ushort *)&local_108,(__uint64)puVar6);

+      pWVar10 = local_108;

+      if (local_108 == (LPCWSTR)0x0) {

+        uVar8 = 0x8007000e;

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x1fd4,"onecoreuap\\shell\\windows.storage\\dataaccess.cpp",

+                   -0x7ff8fff2);

       }

-      auVar4._8_8_ = 0;

-      auVar4._0_8_ = param_1;

-      cb = SUB168(ZEXT816(8) * auVar4,0);

-      if (SUB168(ZEXT816(8) * auVar4,8) == 0) {

-        pvVar6 = CoTaskMemRealloc((LPVOID)*unaff_RDI,cb);

-        if (pvVar6 == (LPVOID)0x0) {

-          return -0x7ff8fff2;

+      else {

+        while (-1 < (int)uVar8) {

+          while( true ) {

+            WVar1 = *pWVar10;

+            if (WVar1 == L'\0') goto LAB_1;

+            if (WVar1 == L'/') break;

+            iVar3 = PathIsValidCharW(WVar1,0x1fc);

+            if (iVar3 == 0) {

+              uVar8 = 0x800700a1;

+              goto LAB_1;

+            }

+            pWVar10 = pWVar10 + 1;

+            uVar8 = uVar9;

+          }

+          if ((param_2 & 2) == 0) {

+            uVar8 = 0x800700a1;

+          }

+          else {

+            *pWVar10 = L'\\';

+            uVar8 = uVar9;

+          }

+          pWVar10 = pWVar10 + 1;

         }

-        uVar7 = func_0x0001800462a0(pvVar6);

-        if (cb < uVar7) {

-          memset((void *)(cb + (longlong)pvVar6),0,uVar7 - cb);

+LAB_1:

+        CheckAndReportErrorForPath(uVar8,0xc62a,puVar6,0x104);

+        if (-1 < (int)uVar8) {

+          local_f8[0] = (LPCWSTR)0x0;

+          ppuVar7 = wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                    ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                           *)local_f8);

+          iVar3 = PathAllocCanonicalize(local_108,1,ppuVar7);

+          if ((iVar3 < 0) || (iVar3 = StrCmpICW(local_f8[0],local_108), iVar3 != 0)) {

+            uVar9 = 0x80070057;

+          }

+          if (local_f8[0] != (LPCWSTR)0x0) {

+            LocalFree(local_f8[0]);

+          }

+          uVar8 = uVar9;

+          if (((-1 < (int)uVar9) && ((param_2 & 1) == 0)) &&

+             (BVar5 = PathIsRelativeW(local_108), BVar5 != 0)) {

+            CheckAndReportErrorForPath(-0x7ff8ffa9,0xc62a,puVar6,0x104);

+            uVar8 = 0x80070057;

+          }

         }

-        in_R8D = 0;

-        unaff_RDI[3] = (longlong)param_1;

-        *unaff_RDI = (longlong)pvVar6;

-        goto LAB_0;

+        CoTaskMemFree(local_108);

       }

     }

-    in_R8D = -0x7ff8fdea;

   }

   else {

-    if (in_R8D < 0) {

-      return in_R8D;

-    }

+    uVar8 = 0x80070057;

+  }

 LAB_0:

-    lVar2 = unaff_RDI[1];

-    unaff_RDI[1] = lVar2 + 1;

-    puVar1 = (undefined8 *)(*unaff_RDI + -8 + (lVar2 + 1) * 8);

-    if ((puVar1 != (undefined8 *)0x0) && (*puVar1 = 0, puVar1 != unaff_R15)) {

-      *puVar1 = *unaff_R15;

-      *unaff_R15 = 0;

-    }

-  }

-  return in_R8D;

+  StorageTelemetry::ActivityThreadWatcherWithCapturedCallerContextReportOnExit::

+  ~ActivityThreadWatcherWithCapturedCallerContextReportOnExit(local_e8);

+  return uVar8;

 }
```

## `CFSFolder::CallBack`  (modified)

```diff
--- CFSFolder::CallBack
+++ CFSFolder::CallBack
@@ -1,2 +1,48 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::CallBack : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual long __cdecl CFSFolder::CallBack(struct IShellFolder * __ptr64,struct HWND__ *

+   __ptr64,struct IDataObject * __ptr64,unsigned int,unsigned __int64,__int64) __ptr64 */

+

+long __thiscall

+CFSFolder::CallBack(CFSFolder *this,IShellFolder *param_1,HWND__ *param_2,IDataObject *param_3,

+                   uint param_4,__uint64 param_5,__int64 param_6)

+

+{

+  long lVar1;

+  int iVar2;

+  HINSTANCE__ *pHVar3;

+  undefined8 local_18 [2];

+  

+  if (param_4 != 1) {

+    if (((param_4 != 5) && (param_4 != 9)) && (param_4 != 0xb)) {

+      if (param_4 == 0xc) {

+        if (param_5 == 0xfffffffc) {

+          lVar1 = _CreateFileLinks(this + -0x68,param_2,*(IUnknown **)(param_6 + 0x20),param_3,

+                                   *(ushort **)(param_6 + 8),*(ulong *)(param_6 + 4));

+          return lVar1;

+        }

+      }

+      else if ((param_4 != 0xf) && (param_4 != 0x10)) {

+        return -0x7fffbfff;

+      }

+    }

+    return 1;

+  }

+  if ((param_5 & 2) != 0) {

+    return 0;

+  }

+  iVar2 = Ordinal_192(1);

+  if (iVar2 == 0) {

+    return 0;

+  }

+  local_18[0] = 0;

+  pHVar3 = Shell32Instance::get((Shell32Instance *)local_18);

+  SHELL32_CDefFolderMenu_MergeMenu(pHVar3,0xdf,0,param_6);

+  wil::details::

+  unique_storage<wil::details::resource_policy<HINSTANCE__*___ptr64,int_(__cdecl*)(HINSTANCE__*___ptr64),&int___cdecl_FreeMUILibrary(struct_HINSTANCE__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HINSTANCE__*___ptr64,HINSTANCE__*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<HINSTANCE__*___ptr64,int_(__cdecl*)(HINSTANCE__*___ptr64),&int___cdecl_FreeMUILibrary(struct_HINSTANCE__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HINSTANCE__*___ptr64,HINSTANCE__*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<HINSTANCE__*___ptr64,int_(__cdecl*)(HINSTANCE__*___ptr64),&int___cdecl_FreeMUILibrary(struct_HINSTANCE__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HINSTANCE__*___ptr64,HINSTANCE__*___ptr64,0,std::nullptr_t>_>

+              *)local_18);

+  return 0;

+}

+
```

## `CFSFolder::RenameElement`  (modified)

```diff
--- CFSFolder::RenameElement
+++ CFSFolder::SetElementTimes
@@ -1,2 +1,2 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::RenameElement : Error: Decompile error: 
+Failed to decompile windows.storage.dll - .ProgramDB CFSFolder::SetElementTimes : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `wil::details::in1diag3::_FailFast_NullAlloc`  (modified)

```diff
--- wil::details::in1diag3::_FailFast_NullAlloc
+++ wil::details::in1diag3::_FailFast_NullAlloc
@@ -1,2 +1,17 @@
-Failed to decompile windows.storage.dll - .ProgramDB wil::details::in1diag3::_FailFast_NullAlloc : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* void __cdecl wil::details::in1diag3::_FailFast_NullAlloc(void * __ptr64,unsigned int,char const *

+   __ptr64) */

+

+void __cdecl wil::details::in1diag3::_FailFast_NullAlloc(void *param_1,uint param_2,char *param_3)

+

+{

+  char *in_R9;

+  void *unaff_retaddr;

+  char *in_stack_ffffffffffffffd8;

+  

+                    /* WARNING: Subroutine does not return */

+  ReportFailure_Hr<3>(param_1,param_2,

+                      "onecore\\internal\\sdk\\inc\\wil\\opensource\\wil\\resource.h",in_R9,

+                      in_stack_ffffffffffffffd8,unaff_retaddr,-0x7ff8fff2);

+}

+
```

## `CSyncRootManagerStatics::TryCreateSyncRootInformation`  (modified)

```diff
--- CSyncRootManagerStatics::TryCreateSyncRootInformation
+++ CSyncRootManagerStatics::TryCreateSyncRootInformation
@@ -1,18 +1,549 @@
 

+/* WARNING: Function: __chkstk replaced with injection: alloca_probe */

 /* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

    guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: class wil::com_ptr_t<struct

+   Windows::Storage::Provider::IStorageProviderSyncRootInfo,struct wil::err_exception_policy>

+   __cdecl CSyncRootManagerStatics::TryCreateSyncRootInformation(struct IStorageProviderInfo *

+   __ptr64) __ptr64 */

 

-undefined4 __thiscall

-Windows::Storage::AppDataPathsImpl::TryCreateSyncRootInformation

+IStorageProviderInfo * __thiscall

+CSyncRootManagerStatics::TryCreateSyncRootInformation

           (CSyncRootManagerStatics *this,IStorageProviderInfo *param_1)

 

 {

-  undefined4 unaff_EBX;

+  undefined4 *puVar1;

+  IStorageProviderInfo *pIVar2;

+  longlong *plVar3;

+  CCustomStateDefinition *pCVar4;

+  long lVar5;

+  int iVar6;

+  undefined4 uVar7;

+  longlong lVar8;

+  HANDLE pvVar9;

+  undefined8 *puVar10;

+  undefined8 uVar11;

+  uint uVar12;

+  longlong *in_R8;

+  IStorageProviderSyncRootInfo *pIVar13;

+  code *pcVar14;

+  undefined4 *puVar15;

+  byte bVar16;

+  void *unaff_retaddr;

+  undefined1 auStackY_2128 [32];

+  bool local_20f8 [8];

+  IStorageProviderInfo **local_20f0;

+  undefined8 local_20e8;

+  undefined1 local_20e0;

+  undefined8 local_20d8;

+  IStorageProviderInfo *local_20d0 [2];

+  IStorageProviderSyncRootInfo *local_20c0;

+  IStorageProviderInfo *local_20b8;

+  longlong *local_20b0;

+  CCustomStateDefinition *local_20a8;

+  IStorageProviderInfo *local_20a0;

+  IStorageProviderInfo *local_2098;

+  uint local_2090;

+  uint local_208c;

+  IStorageProviderInfo *local_2088;

+  undefined4 local_2080;

+  LPCWSTR local_2078;

+  undefined4 *local_2070;

+  longlong *local_2068;

+  IStorageProviderInfo *local_2060;

+  IStorageProviderInfo *local_2058 [2];

+  undefined1 local_2048 [8];

+  uint local_2040;

+  short local_203c;

+  undefined4 local_2038;

+  ushort local_1e2c [258];

+  undefined1 local_1c28 [7136];

+  ulonglong local_48;

+  undefined8 uStack_40;

   

-  if (this != (CSyncRootManagerStatics *)0x0) {

-    (**(code **)(*(longlong *)this + 0x10))();

+  uStack_40 = 0x18024208e;

+  local_48 = __security_cookie ^ (ulonglong)auStackY_2128;

+  uVar11 = 0;

+  local_20c0 = (IStorageProviderSyncRootInfo *)0x0;

+  local_20d0[0] = param_1;

+  lVar5 = Microsoft::WRL::Details::

+          MakeAndInitialize<CSyncRootInformation,Windows::Storage::Provider::IStorageProviderSyncRootInfo>

+                    (&local_20c0);

+  if (lVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x46d,

+               "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",lVar5);

   }

-  return unaff_EBX;

+  local_2098 = (IStorageProviderInfo *)0x0;

+  local_20f0 = &local_2098;

+  local_20e8 = 0;

+  local_20e0 = 1;

+  iVar6 = (**(code **)(*in_R8 + 0x18))();

+  if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x471,

+               "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+  }

+  wil::details::

+  out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+  ::

+  ~out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+            ((out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+              *)&local_20f0);

+  pIVar13 = local_20c0;

+  pcVar14 = *(code **)(*(longlong *)local_20c0 + 0x38);

+  local_20b8 = local_2098;

+  lVar8 = Microsoft::WRL::Wrappers::HStringReference::HStringReference<unsigned_short*___ptr64>

+                    ((HStringReference *)&local_20f0,&local_20b8);

+  iVar6 = (*pcVar14)(pIVar13,*(undefined8 *)(lVar8 + 0x18));

+  if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x472,

+               "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+  }

+  local_20a0 = (IStorageProviderInfo *)0x0;

+  local_20f0 = &local_20a0;

+  local_20e8 = 0;

+  local_20e0 = 1;

+  iVar6 = (**(code **)(**(longlong **)(this + 0x58) + 0x88))

+                    (*(longlong **)(this + 0x58),local_2098,0,&local_20e8);

+  wil::details::

+  out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+  ::

+  ~out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+            ((out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+              *)&local_20f0);

+  if (iVar6 < 0) {

+    *(undefined8 *)param_1 = 0;

+  }

+  else {

+    local_20b0 = (longlong *)0x0;

+    local_20f8[0] = false;

+    pvVar9 = GetCurrentProcess();

+    lVar5 = CallerIdentity::IsProcessAppContainer(pvVar9,local_20f8);

+    plVar3 = local_20b0;

+    if ((lVar5 < 0) || (local_20f8[0] == false)) {

+      local_20b0 = (longlong *)0x0;

+      if (plVar3 != (longlong *)0x0) {

+        (**(code **)(*plVar3 + 0x10))();

+      }

+      iVar6 = CreateStorageItemFromPath_FullTrustCaller_ForPackage

+                        ((ushort *)local_20a0,0x44,(ushort *)0x0,

+                         (_GUID *)&_GUID_72d1cb78_b3ef_4f75_a80b_6fd9dae2944b,&local_20b0);

+    }

+    else {

+      local_20b0 = (longlong *)0x0;

+      if (plVar3 != (longlong *)0x0) {

+        (**(code **)(*plVar3 + 0x10))();

+      }

+      iVar6 = CreateStorageItemFromPath_PartialTrustCaller

+                        (local_20a0,0x40,&_GUID_72d1cb78_b3ef_4f75_a80b_6fd9dae2944b,&local_20b0);

+    }

+    if (iVar6 < 0) {

+      *(undefined8 *)param_1 = 0;

+    }

+    else {

+      iVar6 = (**(code **)(*(longlong *)local_20c0 + 0x58))(local_20c0,local_20b0);

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x496,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      local_2058[0] = (IStorageProviderInfo *)0x0;

+      local_20f0 = local_2058;

+      local_20e8 = 0;

+      local_20e0 = 1;

+      iVar6 = (**(code **)(*in_R8 + 0x40))();

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x49a,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      wil::details::

+      out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+      ::

+      ~out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+                ((out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+                  *)&local_20f0);

+      pIVar13 = local_20c0;

+      pcVar14 = *(code **)(*(longlong *)local_20c0 + 0x68);

+      local_20b8 = local_2058[0];

+      lVar8 = Microsoft::WRL::Wrappers::HStringReference::HStringReference<unsigned_short*___ptr64>

+                        ((HStringReference *)&local_20f0,&local_20b8);

+      iVar6 = (*pcVar14)(pIVar13,*(undefined8 *)(lVar8 + 0x18));

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x49b,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      local_2060 = (IStorageProviderInfo *)0x0;

+      local_20f0 = &local_2060;

+      local_20e8 = 0;

+      local_20e0 = 1;

+      iVar6 = (**(code **)(*in_R8 + 0x58))();

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x49f,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      wil::details::

+      out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+      ::

+      ~out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+                ((out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+                  *)&local_20f0);

+      pIVar13 = local_20c0;

+      pcVar14 = *(code **)(*(longlong *)local_20c0 + 0x78);

+      local_20b8 = local_2060;

+      lVar8 = Microsoft::WRL::Wrappers::HStringReference::HStringReference<unsigned_short*___ptr64>

+                        ((HStringReference *)&local_20f0,&local_20b8);

+      iVar6 = (*pcVar14)(pIVar13,*(undefined8 *)(lVar8 + 0x18));

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x4a0,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      local_2090 = 0;

+      iVar6 = (**(code **)(*in_R8 + 0xa8))();

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x4a4,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      if (((local_2090 & 0x20) != 0) &&

+         (iVar6 = (**(code **)(*(longlong *)local_20c0 + 0x108))(local_20c0,1), iVar6 < 0)) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x4a7,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      local_2068 = (longlong *)0x0;

+      local_20f0 = (IStorageProviderInfo **)&local_2068;

+      local_20e8 = 0;

+      local_20e0 = 1;

+      iVar6 = (**(code **)(*(longlong *)local_20c0 + 0x110))(local_20c0,&local_20e8);

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x4ac,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      wil::details::out_param_t<wil::com_ptr_t<IObjectArray,wil::err_exception_policy>_>::

+      ~out_param_t<wil::com_ptr_t<IObjectArray,wil::err_exception_policy>_>

+                ((out_param_t<wil::com_ptr_t<IObjectArray,wil::err_exception_policy>_> *)&local_20f0

+                );

+      local_2070 = (undefined4 *)0x0;

+      local_208c = 0;

+      local_20f0 = (IStorageProviderInfo **)&local_2070;

+      local_20e8 = 0;

+      local_20e0 = 1;

+      iVar6 = (**(code **)(*in_R8 + 0xb8))();

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x4af,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      wil::details::

+      out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+      ::

+      ~out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                ((out_param_t<wistd::unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                  *)&local_20f0);

+      puVar1 = local_2070 + local_208c;

+      for (puVar15 = local_2070; puVar15 != puVar1; puVar15 = puVar15 + 1) {

+        uVar7 = *puVar15;

+        local_20b8 = (IStorageProviderInfo *)0x0;

+        local_20f0 = &local_20b8;

+        local_20e8 = 0;

+        local_20e0 = 1;

+        iVar6 = (**(code **)(*in_R8 + 0xc0))();

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4b3,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        wil::details::

+        out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+        ::

+        ~out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+                  ((out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+                    *)&local_20f0);

+        local_20a8 = (CCustomStateDefinition *)0x0;

+        lVar5 = Microsoft::WRL::Details::

+                MakeAndInitialize<CCustomStateDefinition,CCustomStateDefinition>(&local_20a8);

+        pCVar4 = local_20a8;

+        if (lVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4b5,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",lVar5);

+        }

+        iVar6 = (**(code **)(*(longlong *)local_20a8 + 0x38))(local_20a8,uVar7);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4b6,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        pcVar14 = *(code **)(*(longlong *)pCVar4 + 0x48);

+        local_20d0[0] = local_20b8;

+        lVar8 = Microsoft::WRL::Wrappers::HStringReference::

+                HStringReference<unsigned_short*___ptr64>

+                          ((HStringReference *)&local_20f0,local_20d0);

+        iVar6 = (*pcVar14)(pCVar4,*(undefined8 *)(lVar8 + 0x18));

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4b7,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        iVar6 = (**(code **)(*local_2068 + 0x68))(local_2068,pCVar4);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4b8,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                  ((CComPtrBase<IKnownFolderManager> *)&local_20a8);

+        wil::details::

+        unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    *)&local_20b8);

+      }

+      local_2088 = (IStorageProviderInfo *)0x0;

+      local_20f0 = &local_2088;

+      local_20e8 = 0;

+      local_20e0 = 1;

+      iVar6 = (**(code **)(*in_R8 + 0xd8))();

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x4bd,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      wil::details::

+      out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+      ::

+      ~out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+                ((out_param_t<Windows::Internal::MoveOnCopy<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>_>

+                  *)&local_20f0);

+      if (local_2088 != (IStorageProviderInfo *)0x0) {

+        local_20b8 = (IStorageProviderInfo *)0x0;

+        local_20d8 = 0;

+        Microsoft::WRL::Wrappers::HStringReference::CreateReference

+                  ((HStringReference *)&local_20f0,(ushort *)L"Windows.Foundation.Uri",0x17,0x16);

+        iVar6 = RoGetActivationFactory

+                          (local_20d8,&_GUID_44a9796f_723e_4fdf_a218_033e75b0c084,&local_20b8);

+        pIVar2 = local_20b8;

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4c1,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        pcVar14 = *(code **)(*(longlong *)local_20b8 + 0x30);

+        local_20a8 = (CCustomStateDefinition *)0x0;

+        local_20d0[0] = local_2088;

+        lVar8 = Microsoft::WRL::Wrappers::HStringReference::

+                HStringReference<unsigned_short*___ptr64>

+                          ((HStringReference *)&local_20f0,local_20d0);

+        iVar6 = (*pcVar14)(pIVar2,*(undefined8 *)(lVar8 + 0x18),&local_20a8);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4c3,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        iVar6 = (**(code **)(*(longlong *)local_20c0 + 0x120))(local_20c0,local_20a8);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4c4,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                  ((CComPtrBase<IKnownFolderManager> *)&local_20a8);

+        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                  ((CComPtrBase<IKnownFolderManager> *)&local_20b8);

+      }

+      local_2078 = (LPCWSTR)0x0;

+      pcVar14 = *(code **)(*in_R8 + 200);

+      wil::

+      unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+      ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+             *)&local_2078);

+      iVar6 = (*pcVar14)();

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x4c9,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      iVar6 = CompareStringOrdinal(local_2078,-1,L"Personal",-1,1);

+      if ((iVar6 == 2) &&

+         (iVar6 = (**(code **)(*(longlong *)local_20c0 + 0xf8))(local_20c0,1), iVar6 < 0)) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x4cc,

+                   "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+      }

+      local_2080 = 0;

+      iVar6 = CfGetSyncRootInfoByPath(local_20a0,1,local_2048,0x2000);

+      pIVar13 = local_20c0;

+      if (-1 < iVar6) {

+        pcVar14 = *(code **)(*(longlong *)local_20c0 + 0xe8);

+        lVar8 = Microsoft::WRL::Wrappers::HStringReference::HStringReference<256>

+                          ((HStringReference *)&local_20f0,local_1e2c);

+        iVar6 = (*pcVar14)(pIVar13,*(undefined8 *)(lVar8 + 0x18));

+        pIVar13 = local_20c0;

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4d8,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        pcVar14 = *(code **)(*(longlong *)local_20c0 + 0x48);

+        puVar10 = (undefined8 *)CreateIBufferFromBytes((uchar *)local_20d0,(uint)local_1c28);

+        iVar6 = (*pcVar14)(pIVar13,*puVar10);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4db,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                  ((CComPtrBase<IKnownFolderManager> *)local_20d0);

+        if ((short)local_2040 != 0) {

+          uVar12 = local_2040 & 0xffff;

+          if (uVar12 == 1) {

+            uVar11 = 1;

+          }

+          else if (uVar12 == 2) {

+            uVar11 = 2;

+          }

+          else if (uVar12 == 3) {

+            uVar11 = 3;

+          }

+        }

+        iVar6 = (**(code **)(*(longlong *)local_20c0 + 0x88))(local_20c0,uVar11);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4de,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        if ((local_203c == 2) || (uVar11 = 2, local_203c != 3)) {

+          uVar11 = 1;

+        }

+        iVar6 = (**(code **)(*(longlong *)local_20c0 + 0xa8))(local_20c0,uVar11);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4df,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        pcVar14 = *(code **)(*(longlong *)local_20c0 + 0xb8);

+        pIVar13 = local_20c0;

+        uVar7 = CfInSyncPolicyToInSyncPolicy(local_2038);

+        iVar6 = (*pcVar14)(pIVar13,uVar7);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4e0,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        uVar12 = local_2040 >> 0x10;

+        bVar16 = (uVar12 & 1) != 0;

+        if ((local_2040 & 0x20000) != 0) {

+          bVar16 = bVar16 | 2;

+        }

+        if ((uVar12 & 4) != 0) {

+          bVar16 = bVar16 | 4;

+        }

+        if ((uVar12 & 8) != 0) {

+          bVar16 = bVar16 | 8;

+        }

+        iVar6 = (**(code **)(*(longlong *)local_20c0 + 0x98))(local_20c0,bVar16);

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4e1,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+        iVar6 = (**(code **)(*(longlong *)local_20c0 + 200))();

+        if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x4e2,

+                     "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar6);

+        }

+      }

+      pIVar13 = local_20c0;

+      local_20c0 = (IStorageProviderSyncRootInfo *)0x0;

+      *(IStorageProviderSyncRootInfo **)param_1 = pIVar13;

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_2078);

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_2088);

+      wistd::

+      unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+      ::reset((unique_ptr<tagSERIALIZEDPROPSTORAGE,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+               *)&local_2070,(tagSERIALIZEDPROPSTORAGE *)0x0);

+      ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+                ((CComPtrBase<IKnownFolderManager> *)&local_2068);

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_2060);

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)local_2058);

+    }

+    ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+              ((CComPtrBase<IKnownFolderManager> *)&local_20b0);

+  }

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)&local_20a0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+              *)&local_2098);

+  ATL::CComPtrBase<IKnownFolderManager>::~CComPtrBase<IKnownFolderManager>

+            ((CComPtrBase<IKnownFolderManager> *)&local_20c0);

+  return param_1;

 }
```

## `tip2::test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>::NotifyFailure`  (modified)

```diff
--- tip2::test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>::NotifyFailure
+++ tip2::test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>::NotifyFailure
@@ -1,2 +1,17 @@
-Failed to decompile windows.storage.dll - .ProgramDB tip2::test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>::NotifyFailure : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: virtual bool __cdecl tip2::test_watcher<class tip2::details::merged_data<struct

+   GraphFilesTip::_tip_HomeOperationSinkTest_attributes,class tip2::test_data_basic>

+   >::NotifyFailure(struct wil::FailureInfo const & __ptr64) __ptr64 */

+

+bool __thiscall

+tip2::

+test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+::NotifyFailure(test_watcher<tip2::details::merged_data<GraphFilesTip::_tip_HomeOperationSinkTest_attributes,tip2::test_data_basic>_>

+                *this,FailureInfo *param_1)

+

+{

+  details::shared_data<0,0,1>::log_failure

+            ((shared_data<0,0,1> *)(*(longlong *)(this + 0x38) + 8),param_1);

+  return false;

+}

+
```

## `KnownFoldersSettingsProvider::StartChangeNotification`  (modified)

```diff
--- KnownFoldersSettingsProvider::StartChangeNotification
+++ KnownFoldersSettingsProvider::StartChangeNotification
@@ -1,76 +1,159 @@
 

-/* WARNING: Instruction at (ram,0x0001804a8fb3) overlaps instruction at (ram,0x0001804a8fb2)

-    */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

+/* public: static long __cdecl KnownFoldersSettingsProvider::StartChangeNotification(void) */

 

-long __cdecl

-Microsoft::WRL::Details::

-ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,ISyncTransferStatus2,Microsoft::WRL::FtmBase>

-::FillArrayWithIid::StartChangeNotification(void)

+long __cdecl KnownFoldersSettingsProvider::StartChangeNotification(void)

 

 {

-  uint *puVar1;

+  long lVar1;

   int iVar2;

-  uint uVar3;

-  uint *in_RAX;

-  char in_CL;

-  uint in_EDX;

-  uint *unaff_RBX;

-  longlong unaff_RBP;

-  int unaff_ESI;

-  uint *unaff_RDI;

-  uint in_R8D;

-  bool bVar4;

+  ushort *puVar3;

+  unique_any_t<class_wil::registry_watcher_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_wil::details::registry_watcher_state*___ptr64,void_(__cdecl*)(struct_wil::details::registry_watcher_state*___ptr64),&void___cdecl_wil::details::delete_registry_watcher_state(struct_wil::details::registry_watcher_state*___ptr64),struct_wistd::integral_constant<unsigned___int64,2>,struct_wil::details::registry_watcher_state*___ptr64,struct_wil::details::registry_watcher_state*___ptr64,0,std::nullptr_t>_>,struct_wil::err_returncode_policy>_>

+  *puVar4;

+  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+  bVar5;

+  void *unaff_retaddr;

+  undefined1 auStack_138 [32];

+  function<void___cdecl(CPinnedPeopleList::PINNED_PEOPLE_CHANGED_DATA_const&___ptr64)> *local_118;

+  ushort *local_108;

+  void *local_100;

+  HKEY__ local_f8 [2];

+  ushort **local_f0;

+  undefined8 local_e8;

+  undefined1 local_e0;

+  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+  local_d0 [24];

+  ulonglong local_b8;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_b0 [32];

+  function<void___cdecl(CPinnedPeopleList::PINNED_PEOPLE_CHANGED_DATA_const&___ptr64)> local_90 [8];

+  undefined **local_88 [13];

+  undefined ***local_20;

+  ulonglong local_18;

   

-  *in_RAX = *in_RAX | (uint)in_RAX;

-  *(char *)unaff_RBX = (char)*unaff_RBX + in_CL;

-  puVar1 = (uint *)((longlong)unaff_RBX + 0x138902ca);

-  *puVar1 = *puVar1 << 1 | (uint)((int)*puVar1 < 0);

-  while( true ) {

-    if ((in_R8D & 4) == 0) {

-      in_EDX = in_EDX & 0xfffffbff | (uint)in_RAX & 0x400 | 4;

-      *unaff_RBX = in_EDX;

-    }

-    LOCK();

-    uVar3 = *unaff_RDI;

-    bVar4 = in_R8D == uVar3;

-    if (bVar4) {

-      *unaff_RDI = in_EDX;

-      uVar3 = in_R8D;

-    }

-    UNLOCK();

-    if (bVar4) break;

-    in_RAX = *(uint **)(unaff_RBP + 0x30);

-    in_EDX = uVar3 | 0x40000;

-    iVar2 = *(int *)(unaff_RBP + 0x28);

-    *unaff_RBX = in_EDX;

-    in_R8D = uVar3;

-    if ((iVar2 != 0) && ((uVar3 & 2) == 0)) {

-      in_EDX = uVar3 & 0xfffff63e | 0x40000 | (uint)in_RAX & 0x9c1 | 2;

-      *unaff_RBX = in_EDX;

-    }

-  }

-  if (((in_R8D & 4) != 0) || (_g_enabledStateManager == 0)) goto LAB_0;

-  wil::AcquireSRWLockExclusive((_RTL_SRWLOCK *)(unaff_RBP + 0x38));

-  if ((unaff_ESI == 0) || (unaff_ESI != DAT_1)) {

-LAB_2:

-    LOCK();

-    *unaff_RDI = *unaff_RDI & 0xfffffffb;

-    UNLOCK();

+  local_18 = __security_cookie ^ (ulonglong)auStack_138;

+  local_100 = (void *)0x0;

+  wil::details::

+  unique_storage<wil::details::resource_policy<void*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<void*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+           *)&local_100,(void *)0x0);

+  lVar1 = GetCurrentUserSid(&local_100);

+  if (lVar1 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xad,

+               "onecoreuap\\shell\\windows.storage\\kfapi\\knownfolderssettingsprovider.cpp",lVar1);

   }

   else {

-    *(undefined4 *)(unaff_RBP + -0xc) = 0;

-    *(undefined4 *)(unaff_RBP + -0x10) = 3;

-    *(uint **)(unaff_RBP + -8) = unaff_RDI;

-    bVar4 = wil::details_abi::heap_buffer::push_back

-                      ((heap_buffer *)&DAT_3,(void *)(unaff_RBP + -0x10),0x10);

-    if (!bVar4) goto LAB_2;

+    local_108 = (ushort *)0x0;

+    local_f0 = &local_108;

+    local_e8 = 0;

+    local_e0 = 1;

+    iVar2 = ConvertSidToStringSidW(local_100,&local_e8);

+    wil::details::

+    out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>

+    ::

+    ~out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>

+              ((out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>_>

+                *)&local_f0);

+    if (iVar2 == 0) {

+      lVar1 = wil::details::in1diag3::Return_GetLastError

+                        (unaff_retaddr,0xb0,

+                         "onecoreuap\\shell\\windows.storage\\kfapi\\knownfolderssettingsprovider.cpp"

+                        );

+    }

+    else {

+      puVar3 = (ushort *)

+               std::

+               basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+               ::

+               basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                         (local_b0,local_108);

+      puVar3 = (ushort *)

+               std::

+               operator+<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                         ((basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                           *)&local_f0,puVar3);

+      std::

+      operator+<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                (local_d0,puVar3);

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                  *)&local_f0);

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                  *)local_b0);

+      local_88[0] = &PTR__scalar_deleting_destructor__1806df5a8;

+      local_20 = local_88;

+      bVar5 = SUB81(local_d0,0);

+      if (7 < local_b8) {

+        bVar5 = local_d0[0];

+      }

+      local_118 = local_90;

+      puVar4 = (unique_any_t<class_wil::registry_watcher_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_wil::details::registry_watcher_state*___ptr64,void_(__cdecl*)(struct_wil::details::registry_watcher_state*___ptr64),&void___cdecl_wil::details::delete_registry_watcher_state(struct_wil::details::registry_watcher_state*___ptr64),struct_wistd::integral_constant<unsigned___int64,2>,struct_wil::details::registry_watcher_state*___ptr64,struct_wil::details::registry_watcher_state*___ptr64,0,std::nullptr_t>_>,struct_wil::err_returncode_policy>_>

+                *)wil::make_registry_watcher_nothrow

+                            (local_f8,(ushort *)0xffffffff80000003,(bool)bVar5,

+                             (function<void___cdecl(wil::RegistryChangeKind)> *)0x0);

+      wil::

+      unique_any_t<wil::registry_watcher_t<wil::details::unique_storage<wil::details::resource_policy<wil::details::registry_watcher_state*___ptr64,void_(__cdecl*)(wil::details::registry_watcher_state*___ptr64),&void___cdecl_wil::details::delete_registry_watcher_state(struct_wil::details::registry_watcher_state*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::registry_watcher_state*___ptr64,wil::details::registry_watcher_state*___ptr64,0,std::nullptr_t>_>,wil::err_returncode_policy>_>

+      ::operator=(&g_knownFolderWatcher,puVar4);

+      wil::details::

+      unique_storage<wil::details::resource_policy<wil::details::registry_watcher_state*___ptr64,void_(__cdecl*)(wil::details::registry_watcher_state*___ptr64),&void___cdecl_wil::details::delete_registry_watcher_state(struct_wil::details::registry_watcher_state*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::registry_watcher_state*___ptr64,wil::details::registry_watcher_state*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<wil::details::registry_watcher_state*___ptr64,void_(__cdecl*)(wil::details::registry_watcher_state*___ptr64),&void___cdecl_wil::details::delete_registry_watcher_state(struct_wil::details::registry_watcher_state*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::registry_watcher_state*___ptr64,wil::details::registry_watcher_state*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<wil::details::registry_watcher_state*___ptr64,void_(__cdecl*)(wil::details::registry_watcher_state*___ptr64),&void___cdecl_wil::details::delete_registry_watcher_state(struct_wil::details::registry_watcher_state*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::registry_watcher_state*___ptr64,wil::details::registry_watcher_state*___ptr64,0,std::nullptr_t>_>

+                  *)local_f8);

+      wistd::function<void___cdecl(CPinnedPeopleList::PINNED_PEOPLE_CHANGED_DATA_const&___ptr64)>::

+      ~function<void___cdecl(CPinnedPeopleList::PINNED_PEOPLE_CHANGED_DATA_const&___ptr64)>

+                (local_90);

+      if (_g_knownFolderWatcher != 0) {

+        std::

+        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+        ::

+        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                    *)local_d0);

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_108);

+        lVar1 = 0;

+        goto LAB_0;

+      }

+      lVar1 = -0x7ff8fff2;

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xbb,

+                 "onecoreuap\\shell\\windows.storage\\kfapi\\knownfolderssettingsprovider.cpp",

+                 -0x7ff8fff2);

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,int>

+                  *)local_d0);

+    }

+    wil::

+    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+    ::

+    ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                *)&local_108);

   }

-  CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)(unaff_RBP + 0x38));

 LAB_0:

-  if ((*unaff_RBX & 2) == 0) {

-    *unaff_RBX = *unaff_RBX & 0xfffff63e | *(uint *)(unaff_RBP + 0x30) & 0x9c1;

-  }

-  return (long)unaff_RBX;

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_100);

+  return lVar1;

 }
```

## `wil::details::`dynamic_initializer_for_'g_header_init_InitializeStagingHeaderInternalApi''`  (modified)

```diff
--- wil::details::`dynamic_initializer_for_'g_header_init_InitializeStagingHeaderInternalApi''
+++ wil::details::`dynamic_initializer_for_'g_header_init_InitializeStagingHeaderInternalApi''
@@ -1,2 +1,27 @@
-Failed to decompile windows.storage.dll - .ProgramDB wil::details::`dynamic_initializer_for_'g_header_init_InitializeStagingHeaderInternalApi'' : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

+

+void wil::details::_dynamic_initializer_for__g_header_init_InitializeStagingHeaderInternalApi__

+               (void)

+

+{

+  g_wil_details_ensureSubscribedToFeatureConfigurationChanges =

+       EnsureSubscribedToFeatureConfigurationChanges;

+  g_wil_details_subscribeFeatureStateCacheToConfigurationChanges =

+       SubscribeFeatureStateCacheToConfigurationChanges;

+  g_wil_details_internalGetFeatureEnabledState = WilApiImpl_GetFeatureEnabledState;

+  g_wil_details_internalRecordFeatureUsage = WilApiImpl_RecordFeatureUsage;

+  g_wil_details_internalRecordFeatureError = WilApiImpl_RecordFeatureError;

+  g_wil_details_internalSubscribeFeatureStateChangeNotification =

+       WilApiImpl_SubscribeFeatureStateChangeNotification;

+  g_wil_details_internalUnsubscribeFeatureStateChangeNotification =

+       WilApiImpl_UnsubscribeFeatureStateChangeNotification;

+  g_wil_details_internalGetFeatureVariant = WilApiImpl_GetFeatureVariant;

+  g_wil_details_realtimeFeatureUsageHook = wil_StagingConfig_LogStagedFeatureUsage;

+  _g_wil_details_featureProcessUsageHook =

+       wistd::__function::

+       __func<<lambda_9add42f29847e4cf93cc02d1f4af8ace>,long___cdecl(unsigned_short*___ptr64,unsigned___int64,unsigned___int64*___ptr64)>

+       ::destroy;

+  return;

+}

+
```

## `tip2::details::shared_data<0,0,0>::complete_helper`  (modified)

```diff
--- tip2::details::shared_data<0,0,0>::complete_helper
+++ tip2::details::shared_data<0,0,0>::complete_helper
@@ -1,2 +1,16 @@
-Failed to decompile windows.storage.dll - .ProgramDB tip2::details::shared_data<0,0,0>::complete_helper : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl tip2::details::shared_data<0,0,0>::complete_helper(enum TestFlags,enum

+   TestQueryOptions) __ptr64 */

+

+void __thiscall

+tip2::details::shared_data<0,0,0>::complete_helper

+          (shared_data<0,0,0> *this,TestFlags param_1,TestQueryOptions param_2)

+

+{

+  *(TestFlags *)(this + 0x40) = *(TestFlags *)(this + 0x40) | param_1 | 0x300;

+  if (*(longlong *)(this + 0xf0) != 0) {

+    complete_helper(this,param_2);

+  }

+  return;

+}

+
```

## `tson::output_archive::process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>`  (modified)

```diff
--- tson::output_archive::process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>
+++ tson::output_archive::process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>
@@ -1,2 +1,25 @@
-Failed to decompile windows.storage.dll - .ProgramDB tson::output_archive::process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl tson::output_archive::process<class tson::nvp<bool & __ptr64>,class

+   tson::nvp<bool & __ptr64>,class tson::nvp<bool & __ptr64>,class tson::nvp<bool & __ptr64>,class

+   tson::nvp<bool & __ptr64> >(class tson::nvp<bool & __ptr64> && __ptr64,class tson::nvp<bool &

+   __ptr64> && __ptr64,class tson::nvp<bool & __ptr64> && __ptr64,class tson::nvp<bool & __ptr64> &&

+   __ptr64,class tson::nvp<bool & __ptr64> && __ptr64) __ptr64 */

+

+void __thiscall

+tson::output_archive::

+process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>

+          (output_archive *this,nvp<bool&___ptr64> *param_1,nvp<bool&___ptr64> *param_2,

+          nvp<bool&___ptr64> *param_3,nvp<bool&___ptr64> *param_4,nvp<bool&___ptr64> *param_5)

+

+{

+  output_archive oVar1;

+  

+  oVar1 = *(output_archive *)(param_1 + 8);

+  *(undefined8 *)this = *(undefined8 *)param_1;

+  this[8] = oVar1;

+  operator()<bool&___ptr64>(this,*(bool **)(param_1 + 0x10));

+  process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>

+            (this,param_2,param_3,param_4,param_5);

+  return;

+}

+
```

## `IsPathInOpenWithKillList`  (modified)

```diff
--- IsPathInOpenWithKillList
+++ IsPathInOpenWithKillList
@@ -1,2 +1,49 @@
-Failed to decompile windows.storage.dll - .ProgramDB IsPathInOpenWithKillList : Error: Decompile error: 
-Low-level Error: DuplicateFunctionError, but could not recover original symbol+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+

+int IsPathInOpenWithKillList(LPCWSTR param_1)

+

+{

+  long lVar1;

+  int iVar2;

+  LPWSTR pWVar3;

+  ushort uVar4;

+  undefined1 auStack_48 [32];

+  ushort **local_28;

+  undefined8 local_20;

+  ushort *local_18;

+  ulonglong local_10;

+  

+  local_10 = __security_cookie ^ (ulonglong)auStack_48;

+  if ((param_1 != (LPCWSTR)0x0) && (*param_1 != L'\0')) {

+    pWVar3 = PathFindFileNameW(param_1);

+    lVar1 = OpenHKCRApplicationKey((ushort *)pWVar3,6,(HKEY__ **)0x0);

+    if (lVar1 != -0x7ff8fffb) {

+      local_18 = (ushort *)0x0;

+      local_28 = wil::

+                 unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                 ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                        *)&local_18);

+      local_20 = 0;

+      uVar4 = 0x4da8;

+      iVar2 = Ordinal_519(2,L"FileAssociation");

+      if (iVar2 < 0) {

+        wil::

+        unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+        ::

+        ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                  ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_char*___ptr64,void*___ptr64_(__cdecl*)(void*___ptr64),&void*___ptr64___cdecl_LocalFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_char*___ptr64,unsigned_char*___ptr64,0,std::nullptr_t>_>_>

+                    *)&local_18);

+        return 0;

+      }

+      iVar2 = InDelimitedList((ushort *)pWVar3,local_18,uVar4);

+      if (local_18 == (ushort *)0x0) {

+        return iVar2;

+      }

+      LocalFree(local_18);

+      return iVar2;

+    }

+  }

+  return 1;

+}

+
```

## `<lambda_4dc039736f339823b66e5058babcb175>::operator()`  (modified)

```diff
--- <lambda_4dc039736f339823b66e5058babcb175>::operator()
+++ <lambda_73d0a6a18a52ae44a4d2657998680a1d>::operator()
@@ -1,27 +1,92 @@
 

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

 

-ulonglong `winrt::

-          vector_base<winrt::impl::vector_impl<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::vector<winrt::Windows::Internal::FileExplorerAppExtensionVerb,std::allocator<winrt::Windows::Internal::FileExplorerAppExtensionVerb>_>,winrt::impl::single_threaded_collection_base>,winrt::Windows::Internal::FileExplorerAppExtensionVerb>

-          ::ReplaceAll'::operator()(char param_1)

+undefined8

+<lambda_73d0a6a18a52ae44a4d2657998680a1d>::operator()

+          (undefined8 *param_1,longlong *param_2,undefined1 *param_3)

 

 {

-  uint in_EAX;

-  ulonglong unaff_RBX;

-  longlong unaff_RBP;

+  code *pcVar1;

+  int iVar2;

+  long lVar3;

+  ulong uVar4;

+  ushort *puVar5;

+  void *unaff_retaddr;

+  undefined1 auStackY_2c8 [32];

+  HKEY__ **local_278;

+  HKEY local_270;

+  undefined1 local_268;

+  undefined4 local_260 [2];

+  undefined8 local_258;

+  HKEY__ *local_250;

+  WCHAR local_248 [264];

+  ulonglong local_38;

   

-  *(char *)(unaff_RBX + 0x79c085d8) = *(char *)(unaff_RBX + 0x79c085d8) + param_1;

-  wil::details::in1diag3::Return_Hr

-            ((void *)(ulonglong)*(uint *)(unaff_RBP + 0x5f),0xaa,

-             "onecoreuap\\shell\\windows.storage\\storageprovidercustomstates.cpp",

-             in_EAX & 0xffffff48);

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -0x61))

-  ;

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -0x59))

-  ;

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -0x69))

-  ;

-  Microsoft::WRL::ComPtr<IQuerySource>::InternalRelease((ComPtr<IQuerySource> *)(unaff_RBP + -1));

-  return unaff_RBX & 0xffffffff;

+  local_38 = __security_cookie ^ (ulonglong)auStackY_2c8;

+  local_260[0] = 0;

+  iVar2 = (**(code **)(*param_2 + 0x30))(param_2,local_260);

+  if (iVar2 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x305,

+               "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar2);

+  }

+  local_258 = 0;

+  pcVar1 = *(code **)(*param_2 + 0x40);

+  WindowsDeleteString(0);

+  local_258 = 0;

+  iVar2 = (*pcVar1)(param_2,&local_258);

+  if (iVar2 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x307,

+               "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",iVar2);

+  }

+  *param_3 = 1;

+  WindowsGetStringRawBuffer(*(undefined8 *)param_1[1],0);

+  lVar3 = StringCchPrintfW((ushort *)local_248,0x104,(ushort *)L"%s\\%s\\CustomStates\\%d",

+                           *(undefined8 *)*param_1);

+  if (lVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x30b,

+               "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",lVar3);

+  }

+  local_250 = (HKEY__ *)0x0;

+  local_278 = &local_250;

+  local_270 = (HKEY)0x0;

+  local_268 = 1;

+  uVar4 = RegCreateKeyExW((HKEY)0xffffffff80000002,local_248,0,(LPWSTR)0x0,0,0x20106,

+                          (LPSECURITY_ATTRIBUTES)0x0,&local_270,(LPDWORD)0x0);

+  if (uVar4 != 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Win32

+              (unaff_retaddr,0x30e,

+               "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",uVar4);

+  }

+  wil::details::

+  out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>_>

+  ::

+  ~out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>_>

+            ((out_param_t<wil::unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>_>

+              *)&local_278);

+  puVar5 = (ushort *)WindowsGetStringRawBuffer(local_258);

+  lVar3 = SHRegSetString(local_250,(ushort *)0x0,(ushort *)L"DisplayName",puVar5);

+  if (lVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x30f,

+               "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",lVar3);

+  }

+  wil::

+  unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+  ::

+  ~unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+            ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HKEY__*___ptr64,long_(__cdecl*)(HKEY__*___ptr64),&long___cdecl_RegCloseKey(struct_HKEY__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HKEY__*___ptr64,HKEY__*___ptr64,0,std::nullptr_t>_>_>

+              *)&local_250);

+  WindowsDeleteString(local_258);

+  return 0;

 }
```

## `DirectLaunch::details::IsSensitiveUriScheme`  (modified)

```diff
--- DirectLaunch::details::IsSensitiveUriScheme
+++ Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IHandlerInfo,IHandlerInfo2,IServiceProvider>::CanCastTo
@@ -1,2 +1,43 @@
-Failed to decompile windows.storage.dll - .ProgramDB DirectLaunch::details::IsSensitiveUriScheme : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* protected: long __cdecl Microsoft::WRL::Details::ImplementsHelper<struct

+   Microsoft::WRL::RuntimeClassFlags<3>,1,struct IHandlerInfo,struct IHandlerInfo2,struct

+   IServiceProvider>::CanCastTo(struct _GUID const & __ptr64,void * __ptr64 * __ptr64,bool *

+   __ptr64) __ptr64 */

+

+long __thiscall

+Microsoft::WRL::Details::

+ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+::CanCastTo(ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+            *this,_GUID *param_1,void **param_2,bool *param_3)

+

+{

+  int iVar1;

+  long lVar2;

+  ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+  *pIVar3;

+  

+  iVar1 = InlineIsEqualGUID(param_1,&_GUID_997706ef_f880_453b_8118_39e1a2d2655a);

+  lVar2 = 0;

+  if (iVar1 == 0) {

+    pIVar3 = this + 8;

+    iVar1 = InlineIsEqualGUID();

+    if (iVar1 == 0) {

+      iVar1 = InlineIsEqualGUID();

+      if (iVar1 == 0) {

+        lVar2 = -0x7fffbffe;

+      }

+      else {

+        *param_2 = pIVar3 + 8;

+      }

+    }

+    else {

+      *param_2 = pIVar3;

+    }

+  }

+  else {

+    *param_2 = this;

+    lVar2 = 0;

+  }

+  return lVar2;

+}

+
```

## `IndexerStartupTimeoutHelper::IsEncryptionPending`  (modified)

```diff
--- IndexerStartupTimeoutHelper::IsEncryptionPending
+++ CDefCollection::_OnUpdateViewItem
@@ -1,2 +1,26 @@
-Failed to decompile windows.storage.dll - .ProgramDB IndexerStartupTimeoutHelper::IsEncryptionPending : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* private: void __cdecl CDefCollection::_OnUpdateViewItem(struct tagITEMKEY const *

+   __ptr64,int,int,int) __ptr64 */

+

+void __thiscall

+CDefCollection::_OnUpdateViewItem

+          (CDefCollection *this,tagITEMKEY *param_1,int param_2,int param_3,int param_4)

+

+{

+  tagITEMKEY *ptVar1;

+  

+  if (((byte)this[0x178] & 4) != 0) {

+    if (param_4 != 0) {

+      ptVar1 = param_1;

+      _SetItemCategory(this,(_tagpropertykey *)(this + 0xf8),param_1,1,0);

+      param_2 = (int)ptVar1;

+    }

+    _GroupItem(this,param_1,param_2);

+  }

+  (**(code **)(**(longlong **)(this + 0xc0) + 0x98))

+            (*(longlong **)(this + 0xc0),param_1,0,0x80,0x80);

+  return;

+}

+
```

## `IsEntryComputableForResult`  (modified)

```diff
--- IsEntryComputableForResult
+++ kfapi::CFolderPathResolver::GetPerSessionFolderPath
@@ -1,2 +1,49 @@
-Failed to decompile windows.storage.dll - .ProgramDB IsEntryComputableForResult : Error: Decompile error: 
-Low-level Error: DuplicateFunctionError, but could not recover original symbol+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: static long __cdecl kfapi::CFolderPathResolver::GetPerSessionFolderPath(struct _GUID

+   const & __ptr64,class std::basic_string<unsigned short,struct std::char_traits<unsigned

+   short>,class std::allocator<unsigned short> > * __ptr64) */

+

+long __cdecl

+kfapi::CFolderPathResolver::GetPerSessionFolderPath

+          (_GUID *param_1,

+          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+          *param_2)

+

+{

+  int iVar1;

+  ushort **ppuVar2;

+  undefined1 auStack_98 [32];

+  ushort *local_78 [2];

+  OLECHAR local_68 [40];

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_98;

+  local_78[0] = (ushort *)0x0;

+  iVar1 = StringFromGUID2(param_1,local_68,0x27);

+  if (iVar1 == 0) {

+    iVar1 = -0x7ff8ff86;

+  }

+  else {

+    ppuVar2 = wil::

+              unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>_>

+                     *)local_78);

+    iVar1 = GetSessionKeyStringAlloc(L"KnownFolders",local_68,ppuVar2);

+    if (-1 < iVar1) {

+      if (*local_78[0] == 0) {

+        iVar1 = -0x7fffbffb;

+      }

+      else {

+        std::

+        basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+        ::assign(param_2,local_78[0]);

+      }

+    }

+  }

+  if (local_78[0] != (ushort *)0x0) {

+    CoTaskMemFree(local_78[0]);

+  }

+  return iVar1;

+}

+
```

## `winrt::single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>`  (modified)

```diff
--- winrt::single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>
+++ wil::details::ScopeExitFn<<lambda_172b769f4cfee01deaa5c669531a6063>_>::~ScopeExitFn<<lambda_172b769f4cfee01deaa5c669531a6063>_>
@@ -1,20 +1,23 @@
 

-/* struct winrt::Windows::Foundation::Collections::IVector<struct

-   winrt::Windows::Internal::MicrosoftGraphRecentItemInfo> __cdecl

-   winrt::single_threaded_vector<struct winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,class

-   std::allocator<struct winrt::Windows::Internal::MicrosoftGraphRecentItemInfo> >(class

-   std::vector<struct winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,class

-   std::allocator<struct winrt::Windows::Internal::MicrosoftGraphRecentItemInfo> > && __ptr64) */

-

-vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

-* __cdecl winrt::

-          single_threaded_vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

-                    (vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>

-                     *param_1)

+void wil::details::ScopeExitFn<<lambda_172b769f4cfee01deaa5c669531a6063>_>::

+     ~ScopeExitFn<<lambda_172b769f4cfee01deaa5c669531a6063>_>(undefined8 *param_1)

 

 {

-  make<winrt::impl::vector_impl<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>,winrt::impl::single_threaded_collection_base>,std::vector<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo,std::allocator<winrt::Windows::Internal::MicrosoftGraphRecentItemInfo>_>_>

-            (param_1);

-  return param_1;

+  undefined8 uVar1;

+  int iVar2;

+  void *unaff_retaddr;

+  

+  if (*(char *)(param_1 + 1) != '\0') {

+    *(undefined1 *)(param_1 + 1) = 0;

+    uVar1 = WindowsGetStringRawBuffer(*(undefined8 *)*param_1,0);

+    iVar2 = CfUnregisterSyncRoot(uVar1);

+    if (iVar2 < 0) {

+                    /* WARNING: Subroutine does not return */

+      in1diag3::_Throw_Hr(unaff_retaddr,0x2da,

+                          "onecoreuap\\shell\\windows.storage\\storageproviderregistration.cpp",

+                          iVar2);

+    }

+  }

+  return;

 }
```

## `Microsoft::WRL::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider,IExplorerCommandWithBackgroundColor>::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider,IExplorerCommandWithBackgroundColor>`  (modified)

```diff
--- Microsoft::WRL::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider,IExplorerCommandWithBackgroundColor>::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider,IExplorerCommandWithBackgroundColor>
+++ Microsoft::WRL::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>
@@ -1,2 +1,60 @@
-Failed to decompile windows.storage.dll - .ProgramDB Microsoft::WRL::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider,IExplorerCommandWithBackgroundColor>::RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider,IExplorerCommandWithBackgroundColor> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: __cdecl Microsoft::WRL::RuntimeClass<struct Microsoft::WRL::RuntimeClassFlags<3>,class

+   BaseDataDrivenCommand,struct IRegDataDrivenCommand,struct IHandlerInfo,struct

+   IHandlerInfo2,struct IServiceProvider>::RuntimeClass<struct

+   Microsoft::WRL::RuntimeClassFlags<3>,class BaseDataDrivenCommand,struct

+   IRegDataDrivenCommand,struct IHandlerInfo,struct IHandlerInfo2,struct IServiceProvider>(void)

+   __ptr64 */

+

+RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+* __thiscall

+Microsoft::WRL::

+RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+::

+RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+          (RuntimeClass<Microsoft::WRL::RuntimeClassFlags<3>,BaseDataDrivenCommand,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>

+           *this)

+

+{

+  BaseDataDrivenCommand *this_00;

+  

+  this_00 = (BaseDataDrivenCommand *)(this + 8);

+  BaseDataDrivenCommand::BaseDataDrivenCommand(this_00);

+  *(undefined8 *)(this + 0xa8) = 1;

+  *(undefined ***)this = &RegDataDrivenCommand::_vftable_;

+  *(undefined ***)this_00 =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<BaseDataDrivenCommand,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>_>__

+  ;

+  *(undefined ***)(this + 0x20) = &_vftable__for__IObjectWithSelection__;

+  *(undefined ***)(this + 0x28) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IObjectWithAssociationElement,IExplorerCommand,IExplorerCommand2>__

+  ;

+  *(undefined ***)(this + 0x30) = &_vftable__for__IExplorerCommand__;

+  *(undefined ***)(this + 0x38) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IExplorerCommand2>__

+  ;

+  *(undefined ***)(this + 0x78) =

+       &RegDataDrivenCommand::

+        _vftable__for__Microsoft__WRL__Details__Selector<Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,Microsoft::WRL::Details::ImplementsMarker<BaseDataDrivenCommand>,IWeakReferenceSource,IRegDataDrivenCommand,IHandlerInfo,IHandlerInfo2,IServiceProvider>_>__

+  ;

+  *(undefined ***)(this + 0x80) = &_vftable__for__IRegDataDrivenCommand__;

+  *(undefined ***)(this + 0x88) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IHandlerInfo,IHandlerInfo2,IServiceProvider>__

+  ;

+  *(undefined ***)(this + 0x90) = &_vftable__for__IHandlerInfo2__;

+  *(undefined ***)(this + 0x98) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<3>,1,IServiceProvider>__

+  ;

+  if (Details::ModuleBase::module_ != (ModuleBase *)0x0) {

+    (**(code **)(*(longlong *)Details::ModuleBase::module_ + 8))();

+  }

+  return this;

+}

+
```

## `<lambda_1937120cec787f9b5d2713e1fc31bf80>::operator()`  (modified)

```diff
--- <lambda_1937120cec787f9b5d2713e1fc31bf80>::operator()
+++ <lambda_dc0556fc4db7421138bdd1f2c36d7d45>::operator()
@@ -1,15 +1,60 @@
 

-void `CLinkResolver::CLinkResolver'::__l1::operator()(longlong param_1)

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+

+long <lambda_dc0556fc4db7421138bdd1f2c36d7d45>::operator()

+               (undefined8 *param_1,ReportingKind param_2)

 

 {

-  byte *pbVar1;

-  char in_AL;

+  bool bVar1;

+  long lVar2;

+  long lVar3;

+  undefined1 uVar4;

+  void *unaff_retaddr;

+  undefined1 auStack_48 [32];

+  short local_28 [4];

+  short *local_20;

+  ulonglong local_10;

   

-  *(char *)(param_1 + -9) = *(char *)(param_1 + -9) + in_AL;

-                    /* WARNING: Read-only address (ram,0x00018063e0fc) is written */

-  uRam000000018063e0fc = 0;

-  pbVar1 = (byte *)(param_1 + -0x75);

-  *pbVar1 = *pbVar1 << 1 | (char)*pbVar1 < '\0';

-  return;

+  local_10 = __security_cookie ^ (ulonglong)auStack_48;

+  local_28[0] = 0;

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61052451> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61052451>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61052451>::GetImpl(void)'

+                      ::__l2::impl,param_2);

+  if (bVar1) {

+    lVar2 = CItemIDFactory<NSITEM,203342025>::GetPropertyFromIDList

+                      ((_ITEMIDLIST_RELATIVE *)**(undefined8 **)*param_1,

+                       (_tagpropertykey *)&PKEY_StorageProviderId,(tagPROPVARIANT *)local_28);

+    if (lVar2 < 0) {

+      lVar3 = -0x7ff8f9b8;

+      if (lVar2 != -0x7ff8f9b8) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x599,

+                   "onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",lVar2);

+        lVar3 = lVar2;

+      }

+      goto LAB_0;

+    }

+  }

+  else {

+    lVar3 = CItemIDFactory<NSITEM,203342025>::GetPropertyFromIDList

+                      ((_ITEMIDLIST_RELATIVE *)**(undefined8 **)*param_1,

+                       (_tagpropertykey *)&PKEY_StorageProviderId,(tagPROPVARIANT *)local_28);

+    if (lVar3 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x59d,"onecoreuap\\shell\\windows.storage\\frequentplacesfolder.cpp",

+                 lVar3);

+      goto LAB_0;

+    }

+  }

+  if ((((local_28[0] != 0x1f) && (local_28[0] != 8)) || (local_20 == (short *)0x0)) ||

+     (uVar4 = 1, *local_20 == 0)) {

+    uVar4 = 0;

+  }

+  *(undefined1 *)param_1[1] = uVar4;

+  lVar3 = 0;

+LAB_0:

+  PropVariantClear((PROPVARIANT *)local_28);

+  return lVar3;

 }
```

## `tson::read_buffer::consume_n`  (modified)

```diff
--- tson::read_buffer::consume_n
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_Standalone_26_08_NonSec>::__private_IsEnabled
@@ -1,21 +1,21 @@
 

-/* public: bool __cdecl tson::read_buffer::consume_n(void * __ptr64,unsigned __int64) __ptr64 */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_Standalone_26_08_NonSec>::__private_IsEnabled(enum wil::ReportingKind)

+   __ptr64 */

 

-bool __thiscall tson::read_buffer::consume_n(read_buffer *this,void *param_1,__uint64 param_2)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_Standalone_26_08_NonSec>::__private_IsEnabled

+          (FeatureImpl<__WilFeatureTraits_Feature_Standalone_26_08_NonSec> *this,

+          ReportingKind param_1)

 

 {

-  ulonglong uVar1;

-  ulonglong uVar2;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res18;

   

-  uVar1 = (longlong)*(void **)(this + 8) + param_2;

-  uVar2 = *(ulonglong *)(this + 0x10);

-  if (uVar2 < uVar1) {

-    this[0x18] = (read_buffer)0x1;

-  }

-  else {

-    memcpy(param_1,*(void **)(this + 8),param_2);

-    *(__uint64 *)(this + 8) = *(longlong *)(this + 8) + param_2;

-  }

-  return uVar1 <= uVar2;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res18 & 1),in_R8D,in_R9);

+  Feature_Standalone_26_08_NonSec__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res18 & 1);

 }
```

## `tson::read_buffer::consume_n`  (modified)

```diff
--- tson::read_buffer::consume_n
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_62832182>::__private_IsEnabled
@@ -1,21 +1,19 @@
 

-/* public: bool __cdecl tson::read_buffer::consume_n(void * __ptr64,unsigned __int64) __ptr64 */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_62832182>::__private_IsEnabled(void) __ptr64 */

 

-bool __thiscall tson::read_buffer::consume_n(read_buffer *this,void *param_1,__uint64 param_2)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_62832182>::__private_IsEnabled

+          (FeatureImpl<__WilFeatureTraits_Feature_62832182> *this)

 

 {

-  ulonglong uVar1;

-  ulonglong uVar2;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res10;

   

-  uVar1 = (longlong)*(void **)(this + 8) + param_2;

-  uVar2 = *(ulonglong *)(this + 0x10);

-  if (uVar2 < uVar1) {

-    this[0x18] = (read_buffer)0x1;

-  }

-  else {

-    memcpy(param_1,*(void **)(this + 8),param_2);

-    *(__uint64 *)(this + 8) = *(longlong *)(this + 8) + param_2;

-  }

-  return uVar1 <= uVar2;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res10 & 1),in_R8D,in_R9);

+  Feature_62832182__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res10 & 1);

 }
```

## `tson::read_buffer::consume_n`  (modified)

```diff
--- tson::read_buffer::consume_n
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::__private_IsEnabled
@@ -1,21 +1,20 @@
 

-/* public: bool __cdecl tson::read_buffer::consume_n(void * __ptr64,unsigned __int64) __ptr64 */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::__private_IsEnabled(void) __ptr64

+    */

 

-bool __thiscall tson::read_buffer::consume_n(read_buffer *this,void *param_1,__uint64 param_2)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::

+__private_IsEnabled(FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation> *this)

 

 {

-  ulonglong uVar1;

-  ulonglong uVar2;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res10;

   

-  uVar1 = (longlong)*(void **)(this + 8) + param_2;

-  uVar2 = *(ulonglong *)(this + 0x10);

-  if (uVar2 < uVar1) {

-    this[0x18] = (read_buffer)0x1;

-  }

-  else {

-    memcpy(param_1,*(void **)(this + 8),param_2);

-    *(__uint64 *)(this + 8) = *(longlong *)(this + 8) + param_2;

-  }

-  return uVar1 <= uVar2;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res10 & 1),in_R8D,in_R9);

+  Feature_TIPLimitErrorWatcherAccumulation__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res10 & 1);

 }
```

## `tson::read_buffer::consume_n`  (modified)

```diff
--- tson::read_buffer::consume_n
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_ApplyWindowActionConvergence2>::__private_IsEnabled
@@ -1,21 +1,19 @@
 

-/* public: bool __cdecl tson::read_buffer::consume_n(void * __ptr64,unsigned __int64) __ptr64 */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_ApplyWindowActionConvergence2>::__private_IsEnabled(void) __ptr64 */

 

-bool __thiscall tson::read_buffer::consume_n(read_buffer *this,void *param_1,__uint64 param_2)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_ApplyWindowActionConvergence2>::

+__private_IsEnabled(FeatureImpl<__WilFeatureTraits_Feature_ApplyWindowActionConvergence2> *this)

 

 {

-  ulonglong uVar1;

-  ulonglong uVar2;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res10;

   

-  uVar1 = (longlong)*(void **)(this + 8) + param_2;

-  uVar2 = *(ulonglong *)(this + 0x10);

-  if (uVar2 < uVar1) {

-    this[0x18] = (read_buffer)0x1;

-  }

-  else {

-    memcpy(param_1,*(void **)(this + 8),param_2);

-    *(__uint64 *)(this + 8) = *(longlong *)(this + 8) + param_2;

-  }

-  return uVar1 <= uVar2;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res10 & 1),in_R8D,in_R9);

+  Feature_ApplyWindowActionConvergence2__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res10 & 1);

 }
```

## `tson::read_buffer::consume_n`  (modified)

```diff
--- tson::read_buffer::consume_n
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_LocPerfVal>::__private_IsEnabled
@@ -1,21 +1,19 @@
 

-/* public: bool __cdecl tson::read_buffer::consume_n(void * __ptr64,unsigned __int64) __ptr64 */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_LocPerfVal>::__private_IsEnabled(enum wil::ReportingKind) __ptr64 */

 

-bool __thiscall tson::read_buffer::consume_n(read_buffer *this,void *param_1,__uint64 param_2)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_LocPerfVal>::__private_IsEnabled

+          (FeatureImpl<__WilFeatureTraits_Feature_LocPerfVal> *this,ReportingKind param_1)

 

 {

-  ulonglong uVar1;

-  ulonglong uVar2;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res18;

   

-  uVar1 = (longlong)*(void **)(this + 8) + param_2;

-  uVar2 = *(ulonglong *)(this + 0x10);

-  if (uVar2 < uVar1) {

-    this[0x18] = (read_buffer)0x1;

-  }

-  else {

-    memcpy(param_1,*(void **)(this + 8),param_2);

-    *(__uint64 *)(this + 8) = *(longlong *)(this + 8) + param_2;

-  }

-  return uVar1 <= uVar2;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res18 & 1),in_R8D,in_R9);

+  Feature_LocPerfVal__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res18 & 1);

 }
```

## `tson::read_buffer::consume_n`  (modified)

```diff
--- tson::read_buffer::consume_n
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>::__private_IsEnabled
@@ -1,21 +1,19 @@
 

-/* public: bool __cdecl tson::read_buffer::consume_n(void * __ptr64,unsigned __int64) __ptr64 */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_61766564>::__private_IsEnabled(void) __ptr64 */

 

-bool __thiscall tson::read_buffer::consume_n(read_buffer *this,void *param_1,__uint64 param_2)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_61766564>::__private_IsEnabled

+          (FeatureImpl<__WilFeatureTraits_Feature_61766564> *this)

 

 {

-  ulonglong uVar1;

-  ulonglong uVar2;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res10;

   

-  uVar1 = (longlong)*(void **)(this + 8) + param_2;

-  uVar2 = *(ulonglong *)(this + 0x10);

-  if (uVar2 < uVar1) {

-    this[0x18] = (read_buffer)0x1;

-  }

-  else {

-    memcpy(param_1,*(void **)(this + 8),param_2);

-    *(__uint64 *)(this + 8) = *(longlong *)(this + 8) + param_2;

-  }

-  return uVar1 <= uVar2;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res10 & 1),in_R8D,in_R9);

+  Feature_61766564__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res10 & 1);

 }
```

## `tson::read_buffer::consume_n`  (modified)

```diff
--- tson::read_buffer::consume_n
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled
@@ -1,21 +1,19 @@
 

-/* public: bool __cdecl tson::read_buffer::consume_n(void * __ptr64,unsigned __int64) __ptr64 */

+/* public: bool __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_61934604>::__private_IsEnabled(void) __ptr64 */

 

-bool __thiscall tson::read_buffer::consume_n(read_buffer *this,void *param_1,__uint64 param_2)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_61934604>::__private_IsEnabled

+          (FeatureImpl<__WilFeatureTraits_Feature_61934604> *this)

 

 {

-  ulonglong uVar1;

-  ulonglong uVar2;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res10;

   

-  uVar1 = (longlong)*(void **)(this + 8) + param_2;

-  uVar2 = *(ulonglong *)(this + 0x10);

-  if (uVar2 < uVar1) {

-    this[0x18] = (read_buffer)0x1;

-  }

-  else {

-    memcpy(param_1,*(void **)(this + 8),param_2);

-    *(__uint64 *)(this + 8) = *(longlong *)(this + 8) + param_2;

-  }

-  return uVar1 <= uVar2;

+  GetCachedFeatureEnabledState(this);

+  ReportUsage(this,(bool)(local_res10 & 1),in_R8D,in_R9);

+  Feature_61934604__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res10 & 1);

 }
```
