# CVE-2026-42907 — twinui.pcshell.dll patch diff

`twinui.pcshell.dll` 10.0.26100.8457 -> 10.0.26100.8655 (ghidriff).

## `GetPidlsFromTaskbarLayout`  (modified)

```diff
--- GetPidlsFromTaskbarLayout
+++ GetPidlsFromTaskbarLayout
@@ -1,9 +1,954 @@
 

 /* 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 GetPidlsFromTaskbarLayout(void)

+HRESULT GetPidlsFromTaskbarLayout

+                  (int param_1,

+                  CTSimpleArray<_ITEMIDLIST___unaligned*___ptr64,4294967294,CTPolicyCoTaskMem<_ITEMIDLIST___unaligned*___ptr64>,CSimpleArrayStandardCompareHelper<_ITEMIDLIST___unaligned*___ptr64>,CSimpleArrayStandardMergeHelper<_ITEMIDLIST___unaligned*___ptr64>_>

+                  *param_2,int *param_3,undefined4 *param_4)

 

 {

-  return;

+  code *pcVar1;

+  merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic> *pmVar2

+  ;

+  ushort *****pppppuVar3;

+  TaskbarPinningSource TVar4;

+  merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic> *this;

+  ushort ******ppppppuVar5;

+  bool bVar6;

+  char cVar7;

+  HRESULT HVar8;

+  uint uVar9;

+  int iVar10;

+  long lVar11;

+  longlong lVar12;

+  longlong **pplVar13;

+  GUID **ppGVar14;

+  com_ptr<class_GamingFallbackWindow> *pcVar15;

+  undefined8 *puVar16;

+  char *pcVar17;

+  HSTRING__ **ppHVar18;

+  wchar_t *lpString1;

+  longlong *plVar19;

+  ushort *puVar20;

+  ushort *puVar21;

+  ChannelId CVar22;

+  test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+  *this_00;

+  ushort uVar23;

+  uint uVar24;

+  InstallationLevel IVar25;

+  undefined8 uVar26;

+  GUID *pGVar27;

+  longlong *plVar28;

+  void *pvVar29;

+  Info *pIVar30;

+  __uint64 _Var31;

+  GUID *pGVar32;

+  GUID *pGVar33;

+  void *unaff_retaddr;

+  undefined1 auStackY_4e8 [32];

+  GUID *local_4a8;

+  longlong *local_4a0;

+  CTSimpleArray<_ITEMIDLIST___unaligned*___ptr64,4294967294,CTPolicyCoTaskMem<_ITEMIDLIST___unaligned*___ptr64>,CSimpleArrayStandardCompareHelper<_ITEMIDLIST___unaligned*___ptr64>,CSimpleArrayStandardMergeHelper<_ITEMIDLIST___unaligned*___ptr64>_>

+  *local_498;

+  test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+  local_490 [8];

+  test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+  local_488 [8];

+  test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+  local_480 [8];

+  test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+  local_478 [8];

+  test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+  local_470 [8];

+  test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+  local_468 [8];

+  undefined4 *local_460;

+  int *local_458;

+  _ITEMIDLIST *local_450;

+  merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>

+  *local_448;

+  GUID local_440;

+  longlong local_430;

+  uint local_428;

+  int local_424;

+  undefined1 local_420 [8];

+  IShellItem *local_418;

+  undefined4 local_410;

+  undefined4 local_40c;

+  longlong *local_400;

+  IObjectArray *local_3f8;

+  longlong local_3f0;

+  ushort ******local_3e8;

+  int local_3e0 [2];

+  longlong local_3d8;

+  JsonArray local_3d0 [8];

+  JsonArray local_3c8 [8];

+  int local_3c0 [2];

+  ushort ******ppppppuStack_3b8;

+  longlong local_3b0;

+  ObjectArrayAdapterImpl<ITaskbarLayoutItem,Microsoft::WRL::ComPtr<ITaskbarLayoutItem>_>

+  local_3a8 [8];

+  uint local_3a0;

+  undefined8 local_398;

+  ushort ******local_390;

+  undefined8 uStack_388;

+  longlong local_380;

+  ulonglong local_378;

+  basic_ostringstream<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_348 [8];

+  basic_stringbuf<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_340 [232];

+  WCHAR local_258 [264];

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStackY_4e8;

+  *param_3 = 0;

+  if (param_4 != (undefined4 *)0x0) {

+    *param_4 = 0;

+  }

+  local_3e0[0] = 0;

+  local_420._0_4_ = 0;

+  local_400 = (longlong *)0x0;

+  local_498 = param_2;

+  local_460 = param_4;

+  local_458 = param_3;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_400);

+  HVar8 = CoCreateInstance((IID *)&CLSID_TaskbarLayoutPolicyManager,(LPUNKNOWN)0x0,1,

+                           (IID *)&_GUID_99846e14_d914_4eb8_97e0_5432c32b2f40,&local_400);

+  if (HVar8 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x1a1,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",HVar8);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_400);

+  }

+  else {

+    pGVar32 = (GUID *)local_420;

+    HVar8 = (**(code **)(*local_400 + 0x18))(local_400,param_1,local_3e0);

+    plVar28 = local_400;

+    if (HVar8 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x1a3,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",HVar8);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_400);

+    }

+    else {

+      if (local_3e0[0] != 0) {

+        local_3f8 = (IObjectArray *)0x0;

+        pcVar1 = *(code **)(*local_400 + 0x20);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_3f8);

+        iVar10 = (*pcVar1)(plVar28,param_1,&local_3f8);

+        if (iVar10 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x1a8,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",iVar10);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_3f8);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_400);

+          return iVar10;

+        }

+        pvVar29 = (void *)0xe8;

+        memset(local_348,0,0xe8);

+        std::

+        basic_ostringstream<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+        ::

+        basic_ostringstream<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  (local_348);

+        local_428 = 0;

+        local_424 = 1;

+        if (param_1 == 3) {

+          (**(code **)(*(longlong *)local_3f8 + 0x18))(local_3f8,&local_428);

+        }

+        winrt::Windows::Data::Json::JsonArray::JsonArray(local_3d0);

+        winrt::Windows::Data::Json::JsonArray::JsonArray(local_3c8);

+        plVar28 = (longlong *)0x0;

+        local_4a0 = (longlong *)0x0;

+        pGVar27 = (GUID *)0x0;

+        local_4a8 = (GUID *)0x0;

+        local_448 = (merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>

+                     *)0x0;

+        bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowEnterpriseUnpin>::

+                __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AllowEnterpriseUnpin> *)

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

+                                     ::__l2::impl);

+        if ((bVar6) && (param_1 == 2)) {

+          lVar12 = tip2::

+                   start_and_watch_errors<tip2::tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>_>

+                             ();

+          this = local_448;

+          pmVar2 = *(merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>

+                     **)(lVar12 + 0x38);

+          if (pmVar2 != (merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>

+                         *)0x0) {

+            LOCK();

+            *(int *)(pmVar2 + 0x150) = *(int *)(pmVar2 + 0x150) + 1;

+            UNLOCK();

+            pGVar27 = local_4a8;

+            plVar28 = local_4a0;

+          }

+          bVar6 = local_448 !=

+                  (merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>

+                   *)0x0;

+          local_448 = pmVar2;

+          if (bVar6) {

+            tip2::details::

+            merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>

+            ::Release(this);

+          }

+          tip2::

+          test_watcher<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+          ::

+          ~test_watcher<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                    ((test_watcher<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                      *)&local_390);

+          local_440._0_8_ = (IShellItem *)0x4b5873a9660b90c8;

+          local_440._8_1_ = 0x8c;

+          local_440._9_1_ = 0xae;

+          local_440._10_1_ = 0x35;

+          local_440._11_1_ = 0x5b;

+          local_440._12_1_ = 0x7f;

+          local_440._13_1_ = 0x55;

+          local_440._14_1_ = 0x34;

+          local_440._15_1_ = 0x1b;

+          pplVar13 = (longlong **)

+                     winrt::try_create_instance<IApplicationResolver>

+                               ((guid *)&local_3e8,(uint)&local_440,pvVar29);

+          if (&local_4a0 != pplVar13) {

+            plVar28 = *pplVar13;

+            *pplVar13 = (longlong *)0x0;

+            local_4a0 = plVar28;

+          }

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

+            winrt::com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>::

+            unconditional_release_ref

+                      ((com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>

+                        *)&local_3e8);

+          }

+          local_418 = (IShellItem *)0x42331cba90aa3a4e;

+          local_410 = 0x5753bbb8;

+          local_40c = 0x4984d473;

+          ppGVar14 = (GUID **)winrt::try_create_instance<IPinnedList>

+                                        ((guid *)&local_3d8,(uint)&local_418,pvVar29);

+          if (&local_4a8 != ppGVar14) {

+            pGVar27 = *ppGVar14;

+            *ppGVar14 = (GUID *)0x0;

+            local_4a8 = pGVar27;

+          }

+          if (local_3d8 != 0) {

+            winrt::com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>::

+            unconditional_release_ref

+                      ((com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>

+                        *)&local_3d8);

+          }

+          if ((plVar28 == (longlong *)0x0) || (pGVar27 == (GUID *)0x0)) {

+            puVar16 = (undefined8 *)

+                      tip2::

+                      tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                      ::operator->((tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                    *)&local_448);

+            pGVar32 = (GUID *)*puVar16;

+            pcVar17 = tip2::details::reason_string

+                                (

+                                "PinnedListTip::TaskbarEnterprisePinTestReason::helper_instances_unavailable"

+                                );

+            tip2::details::shared_data<0,0,1>::get_or_add_flag_under_lock

+                      ((shared_data<0,0,1> *)&pGVar32->field_0x8,8,pcVar17);

+            tip2::

+            test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+            ::

+            ~test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                      ((test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                        *)&local_430);

+          }

+          else {

+            pcVar15 = (com_ptr<class_GamingFallbackWindow> *)

+                      GetEnterprisePinDataFromRegistry(&local_430,&local_448);

+            winrt::com_ptr<GamingFallbackWindow>::operator=

+                      ((com_ptr<GamingFallbackWindow> *)local_3d0,pcVar15);

+            winrt::Windows::Internal::Shell::WindowManagementEvents::

+            IArrangedWindowResizeStartedEventArgs::~IArrangedWindowResizeStartedEventArgs

+                      ((IArrangedWindowResizeStartedEventArgs *)&local_430);

+          }

+          (**(code **)(*(longlong *)local_3f8 + 0x18))(local_3f8,&local_428);

+          if (local_428 == 0) {

+            puVar16 = (undefined8 *)

+                      tip2::

+                      tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                      ::operator->((tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                    *)&local_448);

+            pGVar32 = (GUID *)*puVar16;

+            pcVar17 = tip2::details::reason_string

+                                (

+                                "PinnedListTip::TaskbarEnterprisePinTestReason::layout_items_array_empty"

+                                );

+            tip2::details::shared_data<0,0,1>::get_or_add_flag_under_lock

+                      ((shared_data<0,0,1> *)&pGVar32->field_0x8,0x10,pcVar17);

+            tip2::

+            test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+            ::

+            ~test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                      ((test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                        *)&local_3f0);

+          }

+        }

+        details::

+        ObjectArrayAdapterImpl<ITaskbarLayoutItem,Microsoft::WRL::ComPtr<ITaskbarLayoutItem>_>::

+        ObjectArrayAdapterImpl<ITaskbarLayoutItem,Microsoft::WRL::ComPtr<ITaskbarLayoutItem>_>

+                  (local_3a8,local_3f8);

+        local_3c0[0] = 0;

+        local_3c0[1] = 0;

+        ppppppuStack_3b8 = (ushort ******)0x0;

+        local_3b0 = 0;

+        details::

+        ObjectArrayAdapterImpl<ITaskbarLayoutItem,Microsoft::WRL::ComPtr<ITaskbarLayoutItem>_>::

+        Iterator::Iterator((Iterator *)local_3c0,

+                           (ObjectArrayAdapterImpl<struct_ITaskbarLayoutItem,class_Microsoft::WRL::ComPtr<struct_ITaskbarLayoutItem>_>

+                            *)local_3a8,0);

+        local_390 = (ushort ******)0x0;

+        uStack_388 = 0;

+        local_380 = 0;

+        details::

+        ObjectArrayAdapterImpl<ITaskbarLayoutItem,Microsoft::WRL::ComPtr<ITaskbarLayoutItem>_>::

+        Iterator::Iterator((Iterator *)&local_390,

+                           (ObjectArrayAdapterImpl<struct_ITaskbarLayoutItem,class_Microsoft::WRL::ComPtr<struct_ITaskbarLayoutItem>_>

+                            *)local_3a8,local_3a0);

+        while( true ) {

+          ppppppuVar5 = ppppppuStack_3b8;

+          if ((local_3c0[0] == (int)local_390) && (local_3b0 == local_380)) break;

+          local_3e8 = ppppppuStack_3b8;

+          Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>::InternalAddRef

+                    ((ComPtr<IImmersiveApplicationInternal> *)&local_3e8);

+          local_440._0_8_ = (IShellItem *)0x0;

+          local_3f0 = 0;

+          local_3d8 = 0;

+          pppppuVar3 = (ushort *****)(*ppppppuVar5)[3];

+          ppHVar18 = wil::

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

+                     ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>_>

+                            *)&local_3f0);

+          iVar10 = (*(code *)pppppuVar3)(ppppppuVar5,ppHVar18);

+          if ((iVar10 < 0) || (local_3f0 == 0)) {

+            pppppuVar3 = (ushort *****)(*ppppppuVar5)[7];

+            ppHVar18 = wil::

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

+                       ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>_>

+                              *)&local_3f0);

+            iVar10 = (*(code *)pppppuVar3)(ppppppuVar5,ppHVar18);

+            if ((iVar10 < 0) || (local_3f0 == 0)) {

+              pppppuVar3 = (ushort *****)(*ppppppuVar5)[4];

+              ppHVar18 = wil::

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

+                         ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>_>

+                                *)&local_3d8);

+              iVar10 = (*(code *)pppppuVar3)(ppppppuVar5,ppHVar18);

+              if ((-1 < iVar10) && (local_3d8 != 0)) {

+                puVar20 = (ushort *)WindowsGetStringRawBuffer(local_3d8,0);

+                if (param_1 == 3) {

+                  uVar23 = (ushort)&local_418;

+                  plVar19 = (longlong *)

+                            std::basic_ostream<unsigned_short,std::char_traits<unsigned_short>_>::

+                            tellp((basic_ostream<unsigned_short,std::char_traits<unsigned_short>_> *

+                                  )local_348);

+                  if (plVar19[1] + *plVar19 != 0) {

+                    std::basic_ostream<unsigned_short,std::char_traits<unsigned_short>_>::operator<<

+                              ((basic_ostream<unsigned_short,std::char_traits<unsigned_short>_> *)

+                               local_348,uVar23);

+                  }

+                  puVar21 = LoggingUtil::AppIdCensorUtility::CensorAppIdAnyPath(puVar20);

+                  std::operator<<<unsigned_short,std::char_traits<unsigned_short>_>

+                            ((basic_ostream<unsigned_short,struct_std::char_traits<unsigned_short>_>

+                              *)local_348,puVar21);

+                }

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

+                  iVar10 = SHExpandEnvironmentStringsW(puVar20,local_258,0x104);

+                  if (iVar10 == 0) {

+                    wil::details::in1diag3::_Log_GetLastError

+                              (unaff_retaddr,0x232,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp"

+                              );

+                    param_2 = local_498;

+                  }

+                  else {

+                    Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+                              ((ComPtr<IApplicationResolver> *)&local_440);

+                    pGVar32 = &local_440;

+                    uVar9 = SHCreateItemFromParsingName

+                                      (local_258,(IBindCtx *)0x0,

+                                       (IID *)&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe,

+                                       (void **)pGVar32);

+                    param_2 = local_498;

+                    if ((int)uVar9 < 0) {

+                      pGVar32 = (GUID *)(ulonglong)uVar9;

+                      wil::details::in1diag3::_Log_Hr

+                                (unaff_retaddr,0x234,

+                                 "pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",uVar9);

+                      param_2 = local_498;

+                    }

+                  }

+                }

+              }

+              goto LAB_0;

+            }

+            puVar20 = (ushort *)WindowsGetStringRawBuffer(local_3f0,0);

+            if (param_1 == 3) {

+              uVar23 = (ushort)&local_418;

+              plVar19 = (longlong *)

+                        std::basic_ostream<unsigned_short,std::char_traits<unsigned_short>_>::tellp

+                                  ((basic_ostream<unsigned_short,std::char_traits<unsigned_short>_>

+                                    *)local_348);

+              if (plVar19[1] + *plVar19 != 0) {

+                std::basic_ostream<unsigned_short,std::char_traits<unsigned_short>_>::operator<<

+                          ((basic_ostream<unsigned_short,std::char_traits<unsigned_short>_> *)

+                           local_348,uVar23);

+              }

+              puVar21 = LoggingUtil::AppIdCensorUtility::CensorAppIdAnyPath(puVar20);

+              std::operator<<<unsigned_short,std::char_traits<unsigned_short>_>

+                        ((basic_ostream<unsigned_short,struct_std::char_traits<unsigned_short>_> *)

+                         local_348,puVar21);

+            }

+            iVar10 = (*(code *)(*ppppppuVar5)[8])(ppppppuVar5,&local_424);

+            if ((-1 < iVar10) && (local_424 == 0)) {

+              uVar9 = CreatePlaceholderPidl(puVar20,(IShellItem **)&local_440);

+              if ((int)uVar9 < 0) {

+                pGVar32 = (GUID *)(ulonglong)uVar9;

+                wil::details::in1diag3::_Log_Hr

+                          (unaff_retaddr,0x215,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",

+                           uVar9);

+              }

+              goto LAB_0;

+            }

+            Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+                      ((ComPtr<IApplicationResolver> *)&local_440);

+            pGVar32 = &_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe;

+            uVar9 = SHCreateItemInKnownFolder(&FOLDERID_AppsFolder,0x4000);

+            if ((int)uVar9 < 0) {

+              pGVar32 = (GUID *)(ulonglong)uVar9;

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0x21a,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",uVar9

+                        );

+            }

+            if ((IShellItem *)local_440._0_8_ != (IShellItem *)0x0) {

+              local_418 = (IShellItem *)0x0;

+              Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+                        ((ComPtr<IApplicationResolver> *)&local_418);

+              lVar11 = TaskbarPinHelper::GetTaskbarPinnableItem

+                                 ((IShellItem *)local_440._0_8_,&local_418);

+              if (-1 < lVar11) {

+                Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+                          ((ComPtr<IApplicationResolver> *)&local_440);

+                if (local_418 != (IShellItem *)0x0) {

+                  (*local_418->lpVtbl->AddRef)(local_418);

+                }

+                local_440._0_8_ = local_418;

+              }

+              Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+                        ((ComPtr<IApplicationResolver> *)&local_418);

+              goto LAB_0;

+            }

+LAB_1:

+            bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowEnterpriseUnpin>::

+                    __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AllowEnterpriseUnpin>

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

+                                            ::__l2::impl);

+            if ((bVar6) && (param_1 == 2)) {

+              puVar16 = (undefined8 *)

+                        tip2::

+                        tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                        ::operator->((tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                      *)&local_448);

+              pGVar32 = (GUID *)*puVar16;

+              pcVar17 = tip2::details::reason_string

+                                  (

+                                  "PinnedListTip::TaskbarEnterprisePinTestReason::shell_item_not_found"

+                                  );

+              tip2::details::shared_data<0,0,1>::get_or_add_flag_under_lock

+                        ((shared_data<0,0,1> *)&pGVar32->field_0x8,9,pcVar17);

+              tip2::

+              test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+              ::

+              ~test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                        (local_490);

+            }

+          }

+          else {

+            lpString1 = (wchar_t *)WindowsGetStringRawBuffer(local_3f0,0);

+            local_398 = 0;

+            iVar10 = (*(code *)(*ppppppuVar5)[8])(ppppppuVar5);

+            if ((iVar10 < 0) || (local_424 != 0)) {

+              if (lpString1 != (LPCWSTR)0x0) {

+                uVar26 = 0;

+                uVar9 = ParseAppUserModelId((ushort *)lpString1,(ushort **)0x0,(ushort **)0x0);

+                if ((int)uVar9 < 0) {

+                  uVar24 = 0x1ec;

+LAB_2:

+                  pGVar32 = (GUID *)(ulonglong)uVar9;

+                  wil::details::in1diag3::_Log_Hr

+                            (unaff_retaddr,uVar24,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",

+                             uVar9);

+                }

+                else {

+                  pIVar30 = (Info *)0x0;

+                  IVar25 = (InstallationLevel)CONCAT71((int7)((ulonglong)uVar26 >> 8),1);

+                  CVar22 = 0x808db728;

+                  wil::details::FeatureImpl<__WilFeatureTraits_Feature_BrowserReplacement>::

+                  ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_BrowserReplacement> *)

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

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

+                  bVar6 = GetInstalledBrowserChannelInfo(CVar22,IVar25,pIVar30);

+                  if ((((bVar6) || (bVar6 = IsPackagedBrowserReplacementFeaturePresent(), bVar6)) ||

+                      (bVar6 = IsPackagedBrowserReplacementFeaturePresent(), bVar6)) &&

+                     (iVar10 = CompareStringOrdinal

+                                         (lpString1,-1,

+                                          L"Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge",-1,

+                                          1), iVar10 == 2)) {

+                    TaskbarFlexibleLayoutTelemetry::LegacyBrowserUpgrade();

+                    Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+                              ((ComPtr<IApplicationResolver> *)&local_440);

+                    pGVar32 = &_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe;

+                    uVar9 = SHCreateItemInKnownFolder(&FOLDERID_CommonPrograms,0x4000);

+                    if ((int)uVar9 < 0) {

+                      pGVar32 = (GUID *)(ulonglong)uVar9;

+                      wil::details::in1diag3::_Log_Hr

+                                (unaff_retaddr,0x1f5,

+                                 "pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",uVar9);

+                    }

+                    lpString1 = L"Microsoft Edge.lnk";

+                  }

+                  else {

+                    Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+                              ((ComPtr<IApplicationResolver> *)&local_440);

+                    pGVar32 = &_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe;

+                    uVar9 = SHCreateItemInKnownFolder(&FOLDERID_AppsFolder,0x4000);

+                    if ((int)uVar9 < 0) {

+                      uVar24 = 0x1fa;

+                      goto LAB_2;

+                    }

+                  }

+                }

+              }

+            }

+            else {

+              uVar9 = CreatePlaceholderPidl((ushort *)lpString1,(IShellItem **)&local_440);

+              if ((int)uVar9 < 0) {

+                uVar24 = 0x1ea;

+                goto LAB_2;

+              }

+            }

+            if (param_1 == 3) {

+              plVar19 = (longlong *)

+                        std::basic_ostream<unsigned_short,std::char_traits<unsigned_short>_>::tellp

+                                  ((basic_ostream<unsigned_short,std::char_traits<unsigned_short>_>

+                                    *)local_348);

+              if (plVar19[1] + *plVar19 != 0) {

+                std::basic_ostream<unsigned_short,std::char_traits<unsigned_short>_>::operator<<

+                          ((basic_ostream<unsigned_short,std::char_traits<unsigned_short>_> *)

+                           local_348,(ushort)(plVar19[1] + *plVar19));

+              }

+              puVar20 = LoggingUtil::AppIdCensorUtility::CensorAppIdAnyPath((ushort *)lpString1);

+              std::operator<<<unsigned_short,std::char_traits<unsigned_short>_>

+                        ((basic_ostream<unsigned_short,struct_std::char_traits<unsigned_short>_> *)

+                         local_348,puVar20);

+            }

+            wil::details::

+            unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+            ::

+            ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                      ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                        *)&local_398);

+LAB_0:

+            if ((IShellItem *)local_440._0_8_ == (IShellItem *)0x0) goto LAB_1;

+            local_450 = (_ITEMIDLIST *)0x0;

+            uVar9 = SHGetIDListFromObject(local_440._0_8_,&local_450);

+            pGVar33 = (GUID *)(ulonglong)uVar9;

+            if ((int)uVar9 < 0) {

+              pGVar32 = (GUID *)(ulonglong)uVar9;

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0x247,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",uVar9

+                        );

+              bVar6 = wil::details::

+                      FeatureImpl<__WilFeatureTraits_Feature_Servicing_EnterprisePinTestFailFlags>::

+                      __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_Servicing_EnterprisePinTestFailFlags>

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

+                                              ::__l2::impl);

+              if ((bVar6) && (param_1 == 2)) {

+                plVar19 = (longlong *)

+                          tip2::

+                          tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                          ::operator->((tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                        *)&local_448);

+                lVar12 = *plVar19;

+                pcVar17 = tip2::details::reason_string

+                                    (

+                                    "PinnedListTip::TaskbarEnterprisePinTestReason::get_object_id_list_failed"

+                                    );

+                tip2::details::shared_data<0,0,1>::set_flag_value<long>

+                          ((shared_data<0,0,1> *)(lVar12 + 8),0xd,pcVar17,uVar9);

+                this_00 = local_488;

+LAB_3:

+                tip2::

+                test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                ::

+                ~test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                          (this_00);

+                pGVar32 = pGVar33;

+              }

+LAB_4:

+              ILFree(local_450);

+            }

+            else {

+              uVar9 = 0;

+              local_418 = (IShellItem *)CONCAT44(local_418._4_4_,0xffffffff);

+              if (local_424 == 0) {

+                local_418 = (IShellItem *)CONCAT44(local_418._4_4_,9);

+                TVar4 = 9;

+              }

+              else {

+                uVar9 = (*(code *)(*ppppppuVar5)[5])(ppppppuVar5,&local_418);

+                if ((int)uVar9 < 0) {

+                  wil::details::in1diag3::_Log_Hr

+                            (unaff_retaddr,0x251,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",

+                             uVar9);

+                }

+                TVar4 = (TaskbarPinningSource)local_418;

+              }

+              _Var31 = (__uint64)TVar4;

+              if ((int)uVar9 < 0) {

+                pGVar32 = (GUID *)(ulonglong)uVar9;

+                wil::details::in1diag3::_Log_Hr

+                          (unaff_retaddr,0x254,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",

+                           uVar9);

+                bVar6 = wil::details::

+                        FeatureImpl<__WilFeatureTraits_Feature_Servicing_EnterprisePinTestFailFlags>

+                        ::__private_IsEnabled

+                                  ((FeatureImpl<__WilFeatureTraits_Feature_Servicing_EnterprisePinTestFailFlags>

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

+                                       ::__l2::impl);

+                if ((bVar6) && (param_1 == 2)) {

+                  plVar19 = (longlong *)

+                            tip2::

+                            tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                            ::operator->((tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                          *)&local_448);

+                  lVar12 = *plVar19;

+                  pcVar17 = tip2::details::reason_string

+                                      (

+                                      "PinnedListTip::TaskbarEnterprisePinTestReason::get_pin_source_failed"

+                                      );

+                  pGVar33 = (GUID *)(ulonglong)uVar9;

+                  tip2::details::shared_data<0,0,1>::set_flag_value<long>

+                            ((shared_data<0,0,1> *)(lVar12 + 8),0xf,pcVar17,uVar9);

+                  this_00 = local_480;

+                  goto LAB_3;

+                }

+                goto LAB_4;

+              }

+              uVar9 = SetPinSourceForPinnedItem(local_450,&local_450,TVar4);

+              if ((int)uVar9 < 0) {

+                pGVar32 = (GUID *)(ulonglong)uVar9;

+                wil::details::in1diag3::_Log_Hr

+                          (unaff_retaddr,0x256,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",

+                           uVar9);

+                bVar6 = wil::details::

+                        FeatureImpl<__WilFeatureTraits_Feature_Servicing_EnterprisePinTestFailFlags>

+                        ::__private_IsEnabled

+                                  ((FeatureImpl<__WilFeatureTraits_Feature_Servicing_EnterprisePinTestFailFlags>

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

+                                       ::__l2::impl);

+                if ((bVar6) && (param_1 == 2)) {

+                  plVar19 = (longlong *)

+                            tip2::

+                            tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                            ::operator->((tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                          *)&local_448);

+                  lVar12 = *plVar19;

+                  pcVar17 = tip2::details::reason_string

+                                      (

+                                      "PinnedListTip::TaskbarEnterprisePinTestReason::set_pin_source_failed"

+                                      );

+                  pGVar33 = (GUID *)(ulonglong)uVar9;

+                  tip2::details::shared_data<0,0,1>::set_flag_value<long>

+                            ((shared_data<0,0,1> *)(lVar12 + 8),0xe,pcVar17,uVar9);

+                  this_00 = local_478;

+                  goto LAB_3;

+                }

+                goto LAB_4;

+              }

+              bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowEnterpriseUnpin>::

+                      __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AllowEnterpriseUnpin>

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

+                                              ::__l2::impl);

+              if (bVar6) {

+                cVar7 = '\x01';

+                local_430 = 0;

+                plVar19 = &local_430;

+                (*(code *)**ppppppuVar5)(ppppppuVar5,&_GUID_0437407b_4598_4e99_b045_bf1f3a3d11b4);

+                bVar6 = wil::details::

+                        FeatureImpl<__WilFeatureTraits_Feature_Servicing_EnterprisePinTestFailFlags>

+                        ::__private_IsEnabled

+                                  ((FeatureImpl<__WilFeatureTraits_Feature_Servicing_EnterprisePinTestFailFlags>

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

+                                       ::__l2::impl);

+                pGVar32 = pGVar27;

+                if (bVar6) {

+                  if (param_1 == 2) {

+                    if ((TaskbarPinningSource)local_418 == 3) {

+                      if (local_430 != 0) {

+                        if ((plVar28 != (longlong *)0x0) && (pGVar27 != (GUID *)0x0)) {

+                          plVar19 = plVar28;

+                          cVar7 = ShouldAddEnterprisePinToOutput(local_430,&local_450);

+                          goto LAB_5;

+                        }

+                        goto LAB_6;

+                      }

+                    }

+                    else {

+LAB_6:

+                      if (local_430 != 0) {

+                        if ((TaskbarPinningSource)local_418 != 3) {

+                          puVar16 = (undefined8 *)

+                                    tip2::

+                                    tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                    ::operator->((tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                                  *)&local_448);

+                          pGVar32 = (GUID *)*puVar16;

+                          plVar19 = (longlong *)

+                                    tip2::details::reason_string

+                                              (

+                                              "PinnedListTip::TaskbarEnterprisePinTestReason::unsupported_pin_source"

+                                              );

+                          tip2::details::shared_data<0,0,1>::get_or_add_flag_under_lock

+                                    ((shared_data<0,0,1> *)&pGVar32->field_0x8,0xb,(char *)plVar19);

+                          tip2::

+                          test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                          ::

+                          ~test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                    (local_470);

+                          goto LAB_5;

+                        }

+                        goto LAB_7;

+                      }

+                    }

+                    plVar19 = (longlong *)

+                              tip2::

+                              tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                              ::operator->((tip_test<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                                            *)&local_448);

+                    lVar12 = *plVar19;

+                    plVar19 = (longlong *)

+                              tip2::details::reason_string

+                                        (

+                                        "PinnedListTip::TaskbarEnterprisePinTestReason::layout_item_com_query_failed"

+                                        );

+                    tip2::details::shared_data<0,0,1>::get_or_add_flag_under_lock

+                              ((shared_data<0,0,1> *)(lVar12 + 8),0xc,(char *)plVar19);

+                    tip2::

+                    test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                    ::

+                    ~test_data_control<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>_>

+                              (local_468);

+                  }

+LAB_7:

+                  pGVar32 = (GUID *)0x0;

+                  if (*(longlong *)(param_2 + 8) == *(longlong *)(param_2 + 0x18)) {

+                    uVar9 = CTSimpleArray<_ITEMIDLIST___unaligned*___ptr64,4294967294,CTPolicyCoTaskMem<_ITEMIDLIST___unaligned*___ptr64>,CSimpleArrayStandardCompareHelper<_ITEMIDLIST___unaligned*___ptr64>,CSimpleArrayStandardMergeHelper<_ITEMIDLIST___unaligned*___ptr64>_>

+                            ::_EnsureCapacity(param_2,*(longlong *)(param_2 + 8) + 1,

+                                              (__uint64)plVar19);

+                    pGVar32 = (GUID *)(ulonglong)uVar9;

+                    if (-1 < (int)uVar9) goto LAB_8;

+                  }

+                  else {

+LAB_8:

+                    lVar12 = *(longlong *)(param_2 + 8);

+                    *(longlong *)(param_2 + 8) = lVar12 + 1;

+                    puVar16 = (undefined8 *)(*(longlong *)param_2 + lVar12 * 8);

+                    if (puVar16 != (undefined8 *)0x0) {

+                      *puVar16 = local_450;

+                    }

+                  }

+                  if ((int)pGVar32 < 0) {

+                    wil::details::in1diag3::_Log_Hr

+                              (unaff_retaddr,0x28a,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp"

+                               ,(int)pGVar32);

+                  }

+                }

+                else {

+                  if (((((TaskbarPinningSource)local_418 != 3) || (local_430 == 0)) ||

+                      (plVar28 == (longlong *)0x0)) || (pGVar27 == (GUID *)0x0)) goto LAB_7;

+                  plVar19 = plVar28;

+                  cVar7 = ShouldAddEnterprisePinToOutput(local_430,&local_450);

+LAB_5:

+                  if (cVar7 != '\0') goto LAB_7;

+                  ILFree(local_450);

+                }

+                wil::com_ptr_t<IAutomaticDestinationList,wil::err_exception_policy>::

+                ~com_ptr_t<IAutomaticDestinationList,wil::err_exception_policy>

+                          ((com_ptr_t<IAutomaticDestinationList,wil::err_exception_policy> *)

+                           &local_430);

+              }

+              else {

+                pGVar32 = (GUID *)0x0;

+                if (*(longlong *)(param_2 + 8) == *(longlong *)(param_2 + 0x18)) {

+                  uVar9 = CTSimpleArray<_ITEMIDLIST___unaligned*___ptr64,4294967294,CTPolicyCoTaskMem<_ITEMIDLIST___unaligned*___ptr64>,CSimpleArrayStandardCompareHelper<_ITEMIDLIST___unaligned*___ptr64>,CSimpleArrayStandardMergeHelper<_ITEMIDLIST___unaligned*___ptr64>_>

+                          ::_EnsureCapacity(param_2,*(longlong *)(param_2 + 8) + 1,_Var31);

+                  pGVar32 = (GUID *)(ulonglong)uVar9;

+                  if (-1 < (int)uVar9) goto LAB_9;

+                }

+                else {

+LAB_9:

+                  lVar12 = *(longlong *)(param_2 + 8);

+                  *(longlong *)(param_2 + 8) = lVar12 + 1;

+                  puVar16 = (undefined8 *)(*(longlong *)param_2 + lVar12 * 8);

+                  if (puVar16 != (undefined8 *)0x0) {

+                    *puVar16 = local_450;

+                  }

+                }

+                if ((int)pGVar32 < 0) {

+                  wil::details::in1diag3::_Log_Hr

+                            (unaff_retaddr,0x293,"pcshell\\shell\\pinninglib\\lib\\PinnedList.cpp",

+                             (int)pGVar32);

+                }

+              }

+            }

+          }

+          wil::details::

+          unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                    ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                      *)&local_3d8);

+          wil::details::

+          unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+          ::

+          ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                    ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                      *)&local_3f0);

+          Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+                    ((ComPtr<IApplicationResolver> *)&local_440);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_3e8);

+          local_3c0[0] = local_3c0[0] + 1;

+          details::

+          ObjectArrayAdapterImpl<ITaskbarLayoutItem,Microsoft::WRL::ComPtr<ITaskbarLayoutItem>_>::

+          Iterator::GetCurrentObject((Iterator *)local_3c0);

+          param_4 = local_460;

+        }

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&uStack_388);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&ppppppuStack_3b8);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)local_3a8);

+        bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_AllowEnterpriseUnpin>::

+                __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_AllowEnterpriseUnpin> *)

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

+                                     ::__l2::impl);

+        if ((bVar6) && (param_1 == 2)) {

+          if ((pGVar27 != (GUID *)0x0) && (plVar28 != (longlong *)0x0)) {

+            PersistEnterprisePinDataToRegistry(local_3c8,&local_448);

+          }

+          if (local_448 !=

+              (merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>

+               *)0x0) {

+            tip2::details::shared_data<0,0,1>::complete_without_lock

+                      ((shared_data<0,0,1> *)(local_448 + 8));

+          }

+        }

+        else if (param_1 == 3) {

+          if ((ulonglong)local_428 < *(ulonglong *)(param_2 + 8)) {

+            local_418 = (IShellItem *)CONCAT44(local_418._4_4_,4);

+            ProgrammableTaskbarTelemetry::ProgrammableTaskbarTelemetryProvider::

+            FailureEvent<ProgrammableTaskbarTelemetry::FailureCases>((FailureCases *)&local_418);

+            wil::

+            com_ptr_t<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+            ::

+            ~com_ptr_t<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+                      ((com_ptr_t<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+                        *)&local_448);

+            if (pGVar27 != (GUID *)0x0) {

+              winrt::com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>::

+              unconditional_release_ref

+                        ((com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>

+                          *)&local_4a8);

+            }

+            if (plVar28 != (longlong *)0x0) {

+              winrt::com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>::

+              unconditional_release_ref

+                        ((com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>

+                          *)&local_4a0);

+            }

+            winrt::Windows::Internal::Shell::WindowManagementEvents::

+            IArrangedWindowResizeStartedEventArgs::~IArrangedWindowResizeStartedEventArgs

+                      ((IArrangedWindowResizeStartedEventArgs *)local_3c8);

+            winrt::Windows::Internal::Shell::WindowManagementEvents::

+            IArrangedWindowResizeStartedEventArgs::~IArrangedWindowResizeStartedEventArgs

+                      ((IArrangedWindowResizeStartedEventArgs *)local_3d0);

+            std::

+            basic_ostringstream<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+            ::_vbase_destructor_(local_348);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_3f8);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_400);

+            return -0x7ff8fb70;

+          }

+          std::

+          basic_stringbuf<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+          ::str(local_340);

+          local_3e8 = (ushort ******)&local_390;

+          if (7 < local_378) {

+            local_3e8 = local_390;

+          }

+          local_418 = (IShellItem *)CONCAT44(local_418._4_4_,1);

+          ProgrammableTaskbarTelemetry::ProgrammableTaskbarTelemetryProvider::

+          PinningEvent<ProgrammableTaskbarTelemetry::PinningEventType,unsigned_int&___ptr64,unsigned_short_const*___ptr64>

+                    ((PinningEventType *)&local_418,&local_428,(ushort **)&local_3e8);

+          std::

+          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+          ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                              *)&local_390);

+        }

+        wil::

+        com_ptr_t<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+        ::

+        ~com_ptr_t<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+                  ((com_ptr_t<tip2::details::merged_data<PinnedListTip::_tip_TaskbarEnterprisePinTest_attributes,tip2::test_data_basic>,wil::err_returncode_policy>

+                    *)&local_448);

+        if (pGVar27 != (GUID *)0x0) {

+          winrt::com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>::

+          unconditional_release_ref

+                    ((com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal> *)

+                     &local_4a8);

+        }

+        if (plVar28 != (longlong *)0x0) {

+          winrt::com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal>::

+          unconditional_release_ref

+                    ((com_ptr<Windows::Management::Deployment::Internal::IPackageManagerInternal> *)

+                     &local_4a0);

+        }

+        winrt::Windows::Internal::Shell::WindowManagementEvents::

+        IArrangedWindowResizeStartedEventArgs::~IArrangedWindowResizeStartedEventArgs

+                  ((IArrangedWindowResizeStartedEventArgs *)local_3c8);

+        winrt::Windows::Internal::Shell::WindowManagementEvents::

+        IArrangedWindowResizeStartedEventArgs::~IArrangedWindowResizeStartedEventArgs

+                  ((IArrangedWindowResizeStartedEventArgs *)local_3d0);

+        std::

+        basic_ostringstream<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+        ::_vbase_destructor_(local_348);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_3f8);

+      }

+      *local_458 = local_3e0[0];

+      if (param_4 != (undefined4 *)0x0) {

+        *param_4 = local_420._0_4_;

+      }

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_400);

+      HVar8 = 0;

+    }

+  }

+  return HVar8;

 }
```

## `VirtualDesktopTabletModePolicy_CreateInstance`  (modified)

```diff
--- VirtualDesktopTabletModePolicy_CreateInstance
+++ VirtualDesktopTabletModePolicy_CreateInstance
@@ -1,61 +1,78 @@
 

-/* WARNING: Instruction at (ram,0x00018009898f) overlaps instruction at (ram,0x00018009898e)

-    */

+/* long __cdecl VirtualDesktopTabletModePolicy_CreateInstance(enum _TABLETMODESTATE,struct

+   IVirtualDesktopCollection * __ptr64,struct IVirtualDesktopManagerPrivate * __ptr64,struct

+   IVirtualDesktopVisibilityPolicy * __ptr64,struct IVirtualDesktopLock * __ptr64,struct _GUID const

+   & __ptr64,void * __ptr64 * __ptr64) */

 

 long __cdecl

 VirtualDesktopTabletModePolicy_CreateInstance

           (_TABLETMODESTATE param_1,IVirtualDesktopCollection *param_2,

           IVirtualDesktopManagerPrivate *param_3,IVirtualDesktopVisibilityPolicy *param_4,

           IVirtualDesktopLock *param_5,_GUID *param_6,void **param_7)

 

 {

-  _TABLETMODESTATE in_EAX;

-  _TABLETMODESTATE _Var1;

-  _TABLETMODESTATE _Var2;

-  _TABLETMODESTATE *unaff_RBX;

-  uint unaff_ESI;

-  wil_details_FeatureStateCache *unaff_RDI;

-  _TABLETMODESTATE _Var3;

-  bool bVar4;

-  _TABLETMODESTATE in_stack_00000040;

+  void **ppvVar1;

+  long lVar2;

+  VirtualDesktopTabletModePolicy *this;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopAnimationSyncNotificationServicePrivate,IVirtualDesktopAnimationSyncNotificationService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>

+  *this_00;

+  uint uVar3;

+  void *unaff_retaddr;

   

-  while( true ) {

-    _Var2 = (_TABLETMODESTATE)param_2;

-    *(byte *)((longlong)unaff_RBX + 0x750b89d1) =

-         *(byte *)((longlong)unaff_RBX + 0x750b89d1) + (char)param_1;

-    if ((in_EAX & 0xffffff38) == 0x4c0f641) {

-      _Var2 = _Var2 & 0xfffffbff | 4;

-      *unaff_RBX = _Var2;

+  ppvVar1 = param_7;

+  *param_7 = (void *)0x0;

+  param_7 = (void **)0x0;

+  Microsoft::WRL::ComPtr<VirtualDesktopTabletModePolicy>::InternalRelease

+            ((ComPtr<VirtualDesktopTabletModePolicy> *)&param_7);

+  param_7 = (void **)0x0;

+  this = operator_new(0x68,&std::nothrow);

+  if (this == (VirtualDesktopTabletModePolicy *)0x0) {

+    lVar2 = -0x7ff8fff2;

+    uVar3 = 0x9f;

+  }

+  else {

+    this_00 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopAnimationSyncNotificationServicePrivate,IVirtualDesktopAnimationSyncNotificationService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>

+               *)VirtualDesktopTabletModePolicy::VirtualDesktopTabletModePolicy(this);

+    *(_TABLETMODESTATE *)(this_00 + 0x60) = param_1;

+    Microsoft::WRL::ComPtr<WeakReference::IWeakReference>::operator=

+              ((ComPtr<WeakReference::IWeakReference> *)(this_00 + 0x30),(IWeakReference *)param_2);

+    Microsoft::WRL::ComPtr<WeakReference::IWeakReference>::operator=

+              ((ComPtr<WeakReference::IWeakReference> *)(this_00 + 0x38),(IWeakReference *)param_3);

+    Microsoft::WRL::ComPtr<WeakReference::IWeakReference>::operator=

+              ((ComPtr<WeakReference::IWeakReference> *)(this_00 + 0x40),(IWeakReference *)param_4);

+    Microsoft::WRL::ComPtr<WeakReference::IWeakReference>::operator=

+              ((ComPtr<WeakReference::IWeakReference> *)(this_00 + 0x48),(IWeakReference *)param_5);

+    if (this_00 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopAnimationSyncNotificationServicePrivate,IVirtualDesktopAnimationSyncNotificationService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>

+         *)0x0) {

+      Microsoft::WRL::Details::SafeUnknownIncrementReference((long *)(this_00 + 0x2c));

+      param_7 = (void **)this_00;

+      Microsoft::WRL::Details::

+      RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopAnimationSyncNotificationServicePrivate,IVirtualDesktopAnimationSyncNotificationService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>

+      ::Release(this_00);

+      this_00 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopAnimationSyncNotificationServicePrivate,IVirtualDesktopAnimationSyncNotificationService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>

+                 *)param_7;

     }

-    _Var3 = (_TABLETMODESTATE)param_3;

-    LOCK();

-    _Var1 = *(_TABLETMODESTATE *)unaff_RDI;

-    bVar4 = _Var3 == _Var1;

-    if (bVar4) {

-      *(_TABLETMODESTATE *)unaff_RDI = _Var2;

-      _Var1 = _Var3;

-    }

-    UNLOCK();

-    if (bVar4) break;

-    param_3 = (IVirtualDesktopManagerPrivate *)(ulonglong)_Var1;

-    param_1 = _Var1 | 0x40000;

-    param_2 = (IVirtualDesktopCollection *)(ulonglong)param_1;

-    *unaff_RBX = param_1;

-    in_EAX = in_stack_00000040;

-    if (((int)param_7 != 0) && ((_Var1 & 2) == 0)) {

-      param_1 = in_stack_00000040 & 0x9c1;

-      _Var2 = _Var1 & 0xfffff63e | 0x40000 | param_1 | 2;

-      param_2 = (IVirtualDesktopCollection *)(ulonglong)_Var2;

-      *unaff_RBX = _Var2;

-    }

+    param_7 = (void **)this_00;

+    lVar2 = Microsoft::WRL::Details::RuntimeClassBaseT<2>::

+            AsIID<Microsoft::WRL::Details::RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopTabletModePolicy,IVirtualDesktopTabletModePolicyService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>_>

+                      ((RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopTabletModePolicy,IVirtualDesktopTabletModePolicyService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>

+                        *)param_7,(_GUID *)&_GUID_1a147df6_551e_4e5a_b227_8a9ad37f7f78,ppvVar1);

+    if (-1 < lVar2) goto LAB_0;

+    uVar3 = 0xa0;

   }

-  if (((ulonglong)param_3 & 4) == 0) {

-    wil::details::EnabledStateManager::SubscribeFeatureStateCacheToConfigurationChanges

-              ((EnabledStateManager *)&wil::details::g_enabledStateManager,unaff_RDI,3,unaff_ESI);

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar3,

+             "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktoptabletmodepolicy.cpp",lVar2);

+LAB_0:

+  ppvVar1 = param_7;

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

+    param_7 = (void **)0x0;

+    Microsoft::WRL::Details::

+    RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopAnimationSyncNotificationServicePrivate,IVirtualDesktopAnimationSyncNotificationService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>

+    ::Release((RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Microsoft::WRL::ChainInterfaces<IVirtualDesktopAnimationSyncNotificationServicePrivate,IVirtualDesktopAnimationSyncNotificationService,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::FtmBase>

+               *)ppvVar1);

   }

-  if ((*unaff_RBX & 2) == 0) {

-    *unaff_RBX = *unaff_RBX & 0xfffff63e | in_stack_00000040 & 0x9c1;

-  }

-  return (long)unaff_RBX;

+  return lVar2;

 }
```

## `GetSearchboxTaskbarMode`  (modified)

```diff
--- GetSearchboxTaskbarMode
+++ GetSearchboxTaskbarMode
@@ -1,12 +1,40 @@
+

+/* enum SearchboxTaskbarMode __cdecl GetSearchboxTaskbarMode(void) */

 

 SearchboxTaskbarMode __cdecl GetSearchboxTaskbarMode(void)

 

 {

-  code *pcVar1;

-  SearchboxTaskbarMode SVar2;

+  bool bVar1;

+  long lVar2;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  ulong local_res8 [2];

+  SearchboxTaskbarMode local_res10 [6];

   

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

-  SVar2 = (*pcVar1)();

-  return SVar2;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if ((!bVar1) && (bVar1 = TabletModeHelpers::IsTabletMode(), bVar1)) {

+    return 1;

+  }

+  wil::details::FeatureImpl<__WilFeatureTraits_Feature_SearchInAllMarkets>::ReportUsage

+            ((FeatureImpl<__WilFeatureTraits_Feature_SearchInAllMarkets> *)

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

+              ::__l2::impl,true,in_R8D,in_R9);

+  local_res10[0] = 2;

+  lVar2 = SHRegGetDWORD((HKEY__ *)0xffffffff80000001,

+                        (ushort *)L"Software\\Microsoft\\Windows\\CurrentVersion\\Search",

+                        (ushort *)L"SearchboxTaskbarMode",local_res10);

+  if (lVar2 == -0x7ff8fffe) {

+    local_res8[0] = 0;

+    lVar2 = SHRegGetDWORD((HKEY__ *)0xffffffff80000001,

+                          (ushort *)L"Software\\Microsoft\\Windows\\CurrentVersion\\Search",

+                          (ushort *)L"SearchboxTaskbarModeForceGlyph",local_res8);

+    if ((-1 < lVar2) && (local_res8[0] != 0)) {

+      return 1;

+    }

+  }

+  return local_res10[0];

 }
```

## `GamingPosture_get_activation_factory`  (modified)

```diff
--- GamingPosture_get_activation_factory
+++ GamingPosture_get_activation_factory
@@ -1,71 +1,42 @@
+

+/* void * __ptr64 __cdecl GamingPosture_get_activation_factory(class std::basic_string_view<unsigned

+   short,struct std::char_traits<unsigned short> > const & __ptr64) */

 

 void * __cdecl

 GamingPosture_get_activation_factory

           (basic_string_view<unsigned_short,std::char_traits<unsigned_short>_> *param_1)

 

 {

-  bool bVar1;

-  ulong uVar2;

-  longlong in_RAX;

-  void *extraout_RAX;

-  GamingPostureController *unaff_RBX;

-  longlong unaff_RBP;

-  ushort *in_R9;

+  char cVar1;

+  undefined8 *puVar2;

+  void *pvVar3;

+  IArrangedWindowResizeStartedEventArgs local_res10 [24];

+  wchar_t *local_18;

+  undefined8 local_10;

   

-  *(byte *)(in_RAX + 0xff00000000) = *(byte *)(in_RAX + 0xff00000000) & (byte)in_RAX;

-  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61097376>::__private_IsEnabled

-                    ((FeatureImpl<__WilFeatureTraits_Feature_61097376> *)

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

-                      ::__l2::impl);

-  if (bVar1) {

-    winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::

-    StopUserPresenceTracking(unaff_RBX);

-    uVar2 = winrt::Windows::Internal::GamingExperiences::Posture::implementation::

-            GamingPostureConfiguration::CurrentSessionActiveTime();

-    *(ulong *)(unaff_RBP + 0x20) = uVar2;

-  }

-  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61780595>::__private_IsEnabled

-                    ((FeatureImpl<__WilFeatureTraits_Feature_61780595> *)

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

-                      ::__l2::impl);

-  if (bVar1) {

-    winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::

-    StopDeviceLockTracking(unaff_RBX);

-  }

-  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 *)(unaff_RBP + -0x18),0);

-  TraceLoggingCorrelationVector::ToStringW

-            (*(TraceLoggingCorrelationVector **)(unaff_RBX + 0xa0),*(ushort **)(unaff_RBP + -0x18));

-  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61540955>::__private_IsEnabled

-                    ((FeatureImpl<__WilFeatureTraits_Feature_61540955> *)

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

-                      ::__l2::impl);

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

-  if (bVar1) {

-    *(undefined4 *)(unaff_RBP + -0x20) = 5;

+  local_10 = 0x45;

+  local_18 = L"Windows.Internal.GamingExperiences.Posture.GamingPostureConfiguration";

+  cVar1 = <lambda_cda7f2709516968e53372a35eeb75ae1>::operator()(param_1,param_1,&local_18);

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

+    local_10 = 0x3e;

+    local_18 = L"Windows.Internal.GamingExperiences.Posture.GamingPostureHelper";

+    cVar1 = <lambda_cda7f2709516968e53372a35eeb75ae1>::operator()();

+    if (cVar1 != '\0') {

+      pvVar3 = winrt_make_Windows_Internal_GamingExperiences_Posture_GamingPostureHelper();

+      return pvVar3;

+    }

+    pvVar3 = (void *)0x0;

   }

   else {

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

+    puVar2 = (undefined8 *)

+             winrt::

+             make<winrt::Windows::Internal::GamingExperiences::Posture::factory_implementation::GamingPostureConfiguration>

+                       ();

+    pvVar3 = (void *)*puVar2;

+    *puVar2 = 0;

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs(local_res10);

   }

-  GamingPostureCoreTelemetryProvider::

-  EndSession<unsigned_short*___ptr64,unsigned_long&___ptr64,int,unsigned_short_const_(&___ptr64)[1]>

-            ((ushort **)(unaff_RBP + -0x10),(ulong *)(unaff_RBP + 0x20),(int *)(unaff_RBP + -0x20),

-             in_R9);

-  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61097376>::__private_IsEnabled

-                    ((FeatureImpl<__WilFeatureTraits_Feature_61097376> *)

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

-                      ::__l2::impl);

-  if (bVar1) {

-    winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureConfiguration

-    ::CurrentSessionActiveTime(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>_>

-              *)(unaff_RBP + -0x18));

-  return extraout_RAX;

+  return pvVar3;

 }
```

## ``dynamic_initializer_for_'c_animationPropertyName''`  (modified)

```diff
--- `dynamic_initializer_for_'c_animationPropertyName''
+++ `dynamic_initializer_for_'c_animationPropertyName''
@@ -1,39 +1,9 @@
 

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

-

-void _dynamic_initializer_for__c_animationPropertyName__

-               (longlong param_1,int param_2,longlong param_3)

+void _dynamic_initializer_for__c_animationPropertyName__(void)

 

 {

-  longlong unaff_RBP;

-  longlong unaff_RSI;

-  undefined4 unaff_EDI;

-  undefined1 *puStack0000000000000028;

-  undefined8 uStack0000000000000050;

-  undefined8 uStack0000000000000058;

-  undefined8 uStack0000000000000060;

-  undefined8 uStack0000000000000068;

-  undefined8 uStack0000000000000070;

-  undefined8 uStack0000000000000078;

-  

-  if (param_3 != 0) {

-    do {

-      param_1 = param_1 + 1;

-    } while (*(char *)(param_3 + param_1) != (char)unaff_EDI);

-    param_2 = (int)param_1 + param_2;

-    unaff_RSI = param_3;

-  }

-  uStack0000000000000070 = *(undefined8 *)(unaff_RBP + 0xf0);

-  uStack0000000000000060 = *(undefined8 *)(unaff_RBP + 0xe8);

-  uStack0000000000000050 = *(undefined8 *)(unaff_RBP + 0xe0);

-  puStack0000000000000028 = &stack0x00000030;

-  *(longlong *)(unaff_RBP + -0x80) = unaff_RSI;

-  *(int *)(unaff_RBP + -0x78) = param_2;

-  *(undefined4 *)(unaff_RBP + -0x74) = unaff_EDI;

-  uStack0000000000000078 = 4;

-  uStack0000000000000068 = 8;

-  uStack0000000000000058 = 8;

-  _tlgWriteTransfer_EventWriteTransfer();

+  DAT_0 = winrt::impl::create_hstring_on_heap(L"Translation.Y",0xd);

+  atexit(_dynamic_atexit_destructor_for__c_animationPropertyName__);

   return;

 }
```

## `CSnapComponentTelemetry::AppSnapped_`  (modified)

```diff
--- CSnapComponentTelemetry::AppSnapped_
+++ CSnapComponentTelemetry::AppSnapped_
@@ -1,2 +1,71 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CSnapComponentTelemetry::AppSnapped_ : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl CSnapComponentTelemetry::AppSnapped_(enum SnapRegion,struct Geometry::CRect

+   const & __ptr64,struct Geometry::CRect const & __ptr64,unsigned short const * __ptr64,struct

+   HWND__ * __ptr64)const __ptr64 */

+

+void __thiscall

+CSnapComponentTelemetry::AppSnapped_

+          (CSnapComponentTelemetry *this,SnapRegion param_1,CRect *param_2,CRect *param_3,

+          ushort *param_4,HWND__ *param_5)

+

+{

+  bool bVar1;

+  char cVar2;

+  _tlgProvider_t *p_Var3;

+  _GUID *p_Var4;

+  _GUID *p_Var5;

+  ulonglong local_res8;

+  _TABLETMODESTATE local_58;

+  undefined4 local_54;

+  undefined4 local_50;

+  undefined4 local_4c;

+  undefined4 local_48;

+  undefined4 local_44;

+  undefined4 local_40;

+  undefined4 local_3c;

+  undefined4 local_38;

+  undefined4 local_34;

+  SnapRegion local_30 [2];

+  ushort *local_28 [2];

+  

+  local_res8 = (ulonglong)this & 0xffffffff00000000;

+  p_Var4 = (_GUID *)param_2;

+  p_Var5 = (_GUID *)param_3;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (!bVar1) {

+    TabletModeHelpers::QueryTabletMode((_TABLETMODESTATE *)&local_res8);

+  }

+  p_Var3 = WindowManagementLogging::Provider();

+  if (5 < *(uint *)p_Var3) {

+    cVar2 = _tlgKeywordOn(p_Var3,0x400000000000);

+    if (cVar2 != '\0') {

+      local_58 = (_TABLETMODESTATE)local_res8;

+      local_54 = param_5._0_4_;

+      local_28[0] = SQM::CensorAppID(param_4);

+      local_50 = *(undefined4 *)(param_3 + 0xc);

+      local_4c = *(undefined4 *)(param_3 + 8);

+      local_48 = *(undefined4 *)(param_3 + 4);

+      local_44 = *(undefined4 *)param_3;

+      local_40 = *(undefined4 *)(param_2 + 0xc);

+      local_3c = *(undefined4 *)(param_2 + 8);

+      local_38 = *(undefined4 *)(param_2 + 4);

+      local_34 = *(undefined4 *)param_2;

+      local_30[0] = GetTelemetrySnapRegion(param_1);

+      _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+      ::

+      Write<_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapSz<unsigned_short>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>_>

+                (p_Var3,&DAT_0,p_Var4,p_Var5,(_tlgWrapperByVal<4> *)local_30,

+                 (_tlgWrapperByVal<4> *)&local_34,(_tlgWrapperByVal<4> *)&local_38,

+                 (_tlgWrapperByVal<4> *)&local_3c,(_tlgWrapperByVal<4> *)&local_40,

+                 (_tlgWrapperByVal<4> *)&local_44,(_tlgWrapperByVal<4> *)&local_48,

+                 (_tlgWrapperByVal<4> *)&local_4c,(_tlgWrapperByVal<4> *)&local_50,

+                 (_tlgWrapSz<unsigned_short> *)local_28,(_tlgWrapperByVal<4> *)&local_54,

+                 (_tlgWrapperByVal<4> *)&local_58);

+    }

+  }

+  return;

+}

+
```

## `CVirtualDesktopComponent::UnsubscribeFromServices`  (modified)

```diff
--- CVirtualDesktopComponent::UnsubscribeFromServices
+++ CVirtualDesktopComponent::UnsubscribeFromServices
@@ -1,2 +1,180 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CVirtualDesktopComponent::UnsubscribeFromServices : 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 CVirtualDesktopComponent::UnsubscribeFromServices(struct

+   IServiceProvider * __ptr64) __ptr64 */

+

+long __thiscall

+CVirtualDesktopComponent::UnsubscribeFromServices

+          (CVirtualDesktopComponent *this,IServiceProvider *param_1)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  bool bVar3;

+  uint uVar4;

+  int iVar5;

+  uint uVar6;

+  char *in_R8;

+  GUID *pGVar7;

+  longlong **in_R9;

+  void *unaff_retaddr;

+  longlong *local_res8;

+  SyncLockExclusive local_res18 [8];

+  

+  (**(code **)(**(longlong **)(this + 0x68) + 0x20))(*(longlong **)(this + 0x68),local_res18);

+  uVar4 = (**(code **)(**(longlong **)(this + 0x78) + 0xf0))(*(longlong **)(this + 0x78),0);

+  if ((int)uVar4 < 0) {

+    in_R9 = (longlong **)(ulonglong)uVar4;

+    in_R8 = "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x17f,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",uVar4);

+  }

+  uVar4 = (**(code **)(**(longlong **)(this + 0x70) + 0x30))(*(longlong **)(this + 0x70),0);

+  if ((int)uVar4 < 0) {

+    in_R9 = (longlong **)(ulonglong)uVar4;

+    in_R8 = "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x180,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",uVar4);

+  }

+  uVar4 = (**(code **)(**(longlong **)(this + 0xa0) + 0x18))(*(longlong **)(this + 0xa0),0);

+  if ((int)uVar4 < 0) {

+    in_R9 = (longlong **)(ulonglong)uVar4;

+    in_R8 = "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x181,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",uVar4);

+  }

+  uVar4 = (**(code **)(**(longlong **)(this + 0x98) + 0x18))(*(longlong **)(this + 0x98),0);

+  if ((int)uVar4 < 0) {

+    in_R9 = (longlong **)(ulonglong)uVar4;

+    in_R8 = "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x182,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",uVar4);

+  }

+  (**(code **)(**(longlong **)(this + 0xc0) + 0x18))();

+  plVar1 = *(longlong **)(this + 0xb0);

+  if (plVar1 != (longlong *)0x0) {

+    uVar4 = (**(code **)(*plVar1 + 0x48))(plVar1,0);

+    if ((int)uVar4 < 0) {

+      in_R9 = (longlong **)(ulonglong)uVar4;

+      in_R8 = "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x187,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",uVar4);

+    }

+  }

+  if (*(int *)(this + 0xf4) != 0) {

+    local_res8 = (longlong *)0x0;

+    pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_res8);

+    in_R9 = &local_res8;

+    pGVar7 = &_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3;

+    uVar4 = (*pcVar2)(param_1,&_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,

+                      &_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3);

+    if ((int)uVar4 < 0) {

+      uVar6 = 0x18d;

+LAB_0:

+      in_R9 = (longlong **)(ulonglong)uVar4;

+      in_R8 = "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,uVar6,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",uVar4);

+    }

+    else {

+      uVar4 = (**(code **)(*local_res8 + 0x20))(local_res8,*(undefined4 *)(this + 0xf4));

+      in_R8 = (char *)pGVar7;

+      if ((int)uVar4 < 0) {

+        uVar6 = 399;

+        goto LAB_0;

+      }

+    }

+    *(undefined4 *)(this + 0xf4) = 0;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_res8);

+  }

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if ((!bVar3) && (*(int *)(this + 0xf8) != 0)) {

+    local_res8 = (longlong *)0x0;

+    pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_res8);

+    in_R9 = &local_res8;

+    pGVar7 = &_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a;

+    uVar4 = (*pcVar2)(param_1,&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,

+                      &_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a);

+    if ((int)uVar4 < 0) {

+      uVar6 = 0x197;

+LAB_1:

+      in_R9 = (longlong **)(ulonglong)uVar4;

+      in_R8 = "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,uVar6,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",uVar4);

+    }

+    else {

+      uVar4 = (**(code **)(*local_res8 + 0x50))(local_res8,*(undefined4 *)(this + 0xf8));

+      in_R8 = (char *)pGVar7;

+      if ((int)uVar4 < 0) {

+        uVar6 = 0x199;

+        goto LAB_1;

+      }

+    }

+    *(undefined4 *)(this + 0xf8) = 0;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_res8);

+  }

+  if (*(int *)(this + 0xfc) == 0) goto LAB_2;

+  local_res8 = (longlong *)0x0;

+  pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+  in_R9 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IApplicationViewArrangePosition>_>(&local_res8)

+  ;

+  pGVar7 = &_GUID_5090de35_ed23_43be_9714_586c5041026a;

+  uVar4 = (*pcVar2)(param_1,&_GUID_5090de35_ed23_43be_9714_586c5041026a,

+                    &_GUID_5090de35_ed23_43be_9714_586c5041026a);

+  if ((int)uVar4 < 0) {

+    uVar6 = 0x1a1;

+LAB_3:

+    in_R9 = (longlong **)(ulonglong)uVar4;

+    in_R8 = "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,uVar6,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",uVar4);

+  }

+  else {

+    uVar4 = (**(code **)(*local_res8 + 0x20))(local_res8,*(undefined4 *)(this + 0xfc));

+    in_R8 = (char *)pGVar7;

+    if ((int)uVar4 < 0) {

+      uVar6 = 0x1a3;

+      goto LAB_3;

+    }

+  }

+  *(undefined4 *)(this + 0xfc) = 0;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_res8);

+LAB_2:

+  wil::details::FeatureImpl<__WilFeatureTraits_Feature_VDSLTest>::ReportUsage

+            ((FeatureImpl<__WilFeatureTraits_Feature_VDSLTest> *)

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

+              ::__l2::impl,true,(ReportingKind)CONCAT71((int7)((ulonglong)in_R8 >> 8),3),

+             (__uint64)in_R9);

+  if (this[0xf0] != (CVirtualDesktopComponent)0x0) {

+    iVar5 = (**(code **)(**(longlong **)(this + 0xd8) + 0x18))();

+    if (iVar5 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x1ac,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",iVar5);

+    }

+    this[0xf0] = (CVirtualDesktopComponent)0x0;

+  }

+  Microsoft::WRL::Wrappers::Details::SyncLockExclusive::~SyncLockExclusive(local_res18);

+  return 0;

+}

+
```

## `CStartExperienceManager::ReactivateForDrag`  (modified)

```diff
--- CStartExperienceManager::ReactivateForDrag
+++ CStartExperienceManager::ReactivateForDrag
@@ -1,15 +1,23 @@
 

-/* [thunk]:public: virtual unsigned long __cdecl CStartExperienceManager::Release`adjustor{56}'

-   (void) __ptr64 */

+/* public: virtual long __cdecl CStartExperienceManager::ReactivateForDrag(unsigned __int64,unsigned

+   __int64,unsigned __int64) __ptr64 */

 

 long __thiscall

-CActivationBasedCollection<Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>_>::

-ReactivateForDrag(CStartExperienceManager *this,__uint64 param_1,__uint64 param_2,__uint64 param_3)

+CStartExperienceManager::ReactivateForDrag

+          (CStartExperienceManager *this,__uint64 param_1,__uint64 param_2,__uint64 param_3)

 

 {

-  ulong uVar1;

-  

-  uVar1 = CStartExperienceManager::Release((CStartExperienceManager *)(this + -0x38));

-  return uVar1;

+  wil::details::FeatureImpl<__WilFeatureTraits_Feature_49402389>::ReportUsage

+            ((FeatureImpl<__WilFeatureTraits_Feature_49402389> *)

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

+              ::__l2::impl,true,(ReportingKind)CONCAT71((int7)(param_2 >> 8),3),param_3);

+  if (*(longlong *)(this + 0x228) != 0) {

+    winrt::impl::

+    consume_WindowsUdk_UI_StartScreen_Implementation_IDockedStartController2<winrt::WindowsUdk::UI::StartScreen::Implementation::DockedStartController>

+    ::ReportReactivatingForDrag

+              ((consume_WindowsUdk_UI_StartScreen_Implementation_IDockedStartController2<winrt::WindowsUdk::UI::StartScreen::Implementation::DockedStartController>

+                *)(this + 0x228),param_1,param_2,param_3);

+  }

+  return 0;

 }
```

## `CMultitaskingViewServiceProvider::s_CreateMTVManager`  (modified)

```diff
--- CMultitaskingViewServiceProvider::s_CreateMTVManager
+++ CMultitaskingViewServiceProvider::s_CreateMTVManager
@@ -1,2 +1,425 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CMultitaskingViewServiceProvider::s_CreateMTVManager : 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: static long __cdecl CMultitaskingViewServiceProvider::s_CreateMTVManager(struct

+   CMultitaskingViewServiceProvider::INIT_THREAD_DATA * __ptr64) */

+

+long __cdecl CMultitaskingViewServiceProvider::s_CreateMTVManager(INIT_THREAD_DATA *param_1)

+

+{

+  bool bVar1;

+  long lVar2;

+  void **ppvVar3;

+  uint uVar4;

+  ComPtr<IImmersiveSystemModeNotification> *pCVar5;

+  __uint64 _Var6;

+  void *unaff_retaddr;

+  _GUID *in_stack_ffffffffffffff18;

+  IApplicationViewVisibilityDebouncedNotificationService *local_d8;

+  IApplicationViewCollection *local_d0;

+  IApplicationViewSwitcher *local_c8;

+  ITabletModeController *local_c0;

+  IVirtualDesktopPinnedApps *local_b8;

+  IVirtualDesktopManagerInternal *local_b0;

+  IImmersiveAppCrusher *local_a8;

+  IVirtualDesktopNotificationService *local_a0;

+  IMultitaskingViewVisibilityServiceInternal *local_98;

+  IMultitaskingViewGestureState *local_90;

+  IImmersiveSettingsCache *local_88;

+  ITabletModeViewManager *local_80;

+  IShellTargetingContractManager *local_78;

+  ISnapServiceProvider *local_70;

+  IApplicationViewIconLoader *local_68;

+  ITouchGestureSettings *local_60;

+  IImmersiveMonitorManager *local_58;

+  IImmersiveShellHookService *local_50;

+  IInspectable *local_48;

+  IInspectable *local_40;

+  ISnapAssistSwitchItemRelevanceProvider *local_38;

+  void *local_30;

+  IMultitaskingViewServiceProvider *local_28;

+  IRemoteSessionWindowManager *local_20;

+  IWindowTabExtension *local_18 [2];

+  

+  local_28 = (IMultitaskingViewServiceProvider *)0x0;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_28);

+  lVar2 = CMarshaledInterface::_Unmarshal

+                    ((CMarshaledInterface *)param_1,

+                     (_GUID *)&_GUID_90adbab9_cdb8_43dd_8daa_ba1180be5215,&local_28,false);

+  if (lVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x237,

+               "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",lVar2);

+    goto LAB_0;

+  }

+  local_d0 = (IApplicationViewCollection *)0x0;

+  ppvVar3 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IApplicationViewArrangePosition>_>(&local_d0)

+  ;

+  lVar2 = CMarshaledInterface::_Unmarshal

+                    ((CMarshaledInterface *)(param_1 + 8),

+                     (_GUID *)&_GUID_1841c6d7_4f9d_42c0_af41_8747538f10e5,ppvVar3,false);

+  if (lVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x239,

+               "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",lVar2);

+  }

+  else {

+    local_d8 = (IApplicationViewVisibilityDebouncedNotificationService *)0x0;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_d8);

+    lVar2 = CMarshaledInterface::_Unmarshal

+                      ((CMarshaledInterface *)(param_1 + 0x10),

+                       (_GUID *)&_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,&local_d8,false);

+    if (lVar2 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x23b,

+                 "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",lVar2

+                );

+    }

+    else {

+      local_c8 = (IApplicationViewSwitcher *)0x0;

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

+      lVar2 = CMarshaledInterface::_Unmarshal

+                        ((CMarshaledInterface *)(param_1 + 0x18),

+                         (_GUID *)&_GUID_e0fe7384_5482_4659_ab2c_4ff038948779,&local_c8,false);

+      if (lVar2 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x23d,

+                   "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",

+                   lVar2);

+      }

+      else {

+        local_b0 = (IVirtualDesktopManagerInternal *)0x0;

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_b0);

+        CMarshaledInterface::_Unmarshal

+                  ((CMarshaledInterface *)(param_1 + 0x20),

+                   (_GUID *)&_GUID_4970ba3d_fd4e_4647_bea3_d89076ef4b9c,&local_b0,false);

+        local_b8 = (IVirtualDesktopPinnedApps *)0x0;

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_b8);

+        CMarshaledInterface::_Unmarshal

+                  ((CMarshaledInterface *)(param_1 + 0x28),

+                   (_GUID *)&_GUID_4ce81583_1e4c_4632_a621_07a53543148f,&local_b8,false);

+        local_c0 = (ITabletModeController *)0x0;

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

+                          ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                            ::__l2::impl);

+        if (bVar1) {

+LAB_1:

+          local_a0 = (IVirtualDesktopNotificationService *)0x0;

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_a0);

+          CMarshaledInterface::_Unmarshal

+                    ((CMarshaledInterface *)(param_1 + 0x38),

+                     (_GUID *)&_GUID_0cd45e71_d927_4f15_8b0a_8fef525337bf,&local_a0,false);

+          local_a8 = (IImmersiveAppCrusher *)0x0;

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_a8);

+          lVar2 = CMarshaledInterface::_Unmarshal

+                            ((CMarshaledInterface *)(param_1 + 0x40),

+                             (_GUID *)&_GUID_103231ae_04cb_4e5e_b63d_e3ce47cd0f0a,&local_a8,false);

+          if (lVar2 < 0) {

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,0x24a,

+                       "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                       ,lVar2);

+          }

+          else {

+            local_98 = (IMultitaskingViewVisibilityServiceInternal *)0x0;

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_98);

+            lVar2 = CMarshaledInterface::_Unmarshal

+                              ((CMarshaledInterface *)(param_1 + 0x48),

+                               (_GUID *)&_GUID_6e7da126_f47e_4b81_b43f_e466cf325f58,&local_98,false)

+            ;

+            if (lVar2 < 0) {

+              wil::details::in1diag3::Return_Hr

+                        (unaff_retaddr,0x24c,

+                         "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                         ,lVar2);

+            }

+            else {

+              local_90 = (IMultitaskingViewGestureState *)0x0;

+              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                        ((ComPtr<IImmersiveSystemModeNotification> *)&local_90);

+              lVar2 = CMarshaledInterface::_Unmarshal

+                                ((CMarshaledInterface *)(param_1 + 0x50),

+                                 (_GUID *)&_GUID_4639c886_cffe_492c_915a_1e3f02d22434,&local_90,

+                                 false);

+              if (lVar2 < 0) {

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,0x24e,

+                           "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                           ,lVar2);

+              }

+              else {

+                local_88 = (IImmersiveSettingsCache *)0x0;

+                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                          ((ComPtr<IImmersiveSystemModeNotification> *)&local_88);

+                lVar2 = CMarshaledInterface::_Unmarshal

+                                  ((CMarshaledInterface *)(param_1 + 0x58),

+                                   (_GUID *)&_GUID_4214f6fa_eb36_4e2f_9ca2_23fdc1832df7,&local_88,

+                                   false);

+                if (lVar2 < 0) {

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,0x250,

+                             "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                             ,lVar2);

+                }

+                else {

+                  local_80 = (ITabletModeViewManager *)0x0;

+                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                            ((ComPtr<IImmersiveSystemModeNotification> *)&local_80);

+                  lVar2 = CMarshaledInterface::_Unmarshal

+                                    ((CMarshaledInterface *)(param_1 + 0x60),

+                                     (_GUID *)&_GUID_373e56cf_0a1b_4b4a_a1a4_a46b25ffd7e3,&local_80,

+                                     false);

+                  if (lVar2 < 0) {

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,0x252,

+                               "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                               ,lVar2);

+                  }

+                  else {

+                    local_78 = (IShellTargetingContractManager *)0x0;

+                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                              ((ComPtr<IImmersiveSystemModeNotification> *)&local_78);

+                    lVar2 = CMarshaledInterface::_Unmarshal

+                                      ((CMarshaledInterface *)(param_1 + 0x68),

+                                       (_GUID *)&_GUID_c59a546b_412b_40f3_b151_9b3202e2835f,

+                                       &local_78,false);

+                    if (lVar2 < 0) {

+                      wil::details::in1diag3::Return_Hr

+                                (unaff_retaddr,0x254,

+                                 "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                 ,lVar2);

+                    }

+                    else {

+                      local_70 = (ISnapServiceProvider *)0x0;

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_70);

+                      lVar2 = CMarshaledInterface::_Unmarshal

+                                        ((CMarshaledInterface *)(param_1 + 0x70),

+                                         (_GUID *)&_GUID_fff59320_db70_4865_8fed_8b502d692f12,

+                                         &local_70,false);

+                      if (lVar2 < 0) {

+                        wil::details::in1diag3::Return_Hr

+                                  (unaff_retaddr,0x256,

+                                   "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                   ,lVar2);

+                      }

+                      else {

+                        local_38 = (ISnapAssistSwitchItemRelevanceProvider *)0x0;

+                        local_68 = (IApplicationViewIconLoader *)0x0;

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_68);

+                        lVar2 = CMarshaledInterface::_Unmarshal

+                                          ((CMarshaledInterface *)(param_1 + 0x80),

+                                           (_GUID *)&_GUID_f622d8ac_35d3_4374_9148_66f1f7894191,

+                                           &local_68,false);

+                        if (lVar2 < 0) {

+                          wil::details::in1diag3::Return_Hr

+                                    (unaff_retaddr,0x25d,

+                                     "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                     ,lVar2);

+                        }

+                        else {

+                          local_58 = (IImmersiveMonitorManager *)0x0;

+                          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_58);

+                          _Var6 = 0;

+                          pCVar5 = (ComPtr<IImmersiveSystemModeNotification> *)&local_58;

+                          lVar2 = CMarshaledInterface::_Unmarshal

+                                            ((CMarshaledInterface *)(param_1 + 0x98),

+                                             (_GUID *)&_GUID_4d4c1e64_e410_4faa_bafa_59ca069bfec2,

+                                             (void **)&local_58,false);

+                          if (lVar2 < 0) {

+                            wil::details::in1diag3::Return_Hr

+                                      (unaff_retaddr,0x25f,

+                                       "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                       ,lVar2);

+                          }

+                          else {

+                            local_40 = (IInspectable *)0x0;

+                            local_48 = (IInspectable *)0x0;

+                            wil::details::FeatureImpl<__WilFeatureTraits_Feature_XamlAllUpView>::

+                            ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_XamlAllUpView> *)

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

+                                         ::__l2::impl,true,(ReportingKind)pCVar5,_Var6);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_40);

+                            CMarshaledInterface::_Unmarshal

+                                      ((CMarshaledInterface *)(param_1 + 0x88),

+                                       (_GUID *)&_GUID_af86e2e0_b12d_4c6a_9c5a_d7aa65101e90,

+                                       &local_40,false);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_48);

+                            CMarshaledInterface::_Unmarshal

+                                      ((CMarshaledInterface *)(param_1 + 0x90),

+                                       (_GUID *)&_GUID_af86e2e0_b12d_4c6a_9c5a_d7aa65101e90,

+                                       &local_48,false);

+                            local_60 = (ITouchGestureSettings *)0x0;

+                            if (*(longlong *)(param_1 + 0xa0) != 0) {

+                              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                              InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_60)

+                              ;

+                              lVar2 = CMarshaledInterface::_Unmarshal

+                                                ((CMarshaledInterface *)(param_1 + 0xa0),

+                                                 (_GUID *)&

+                                                  _GUID_8bc0416b_e6fa_4b43_9553_9386b4584de0,

+                                                 &local_60,false);

+                              if (lVar2 < 0) {

+                                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                &local_60);

+                              }

+                            }

+                            local_50 = (IImmersiveShellHookService *)0x0;

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_50);

+                            lVar2 = CMarshaledInterface::_Unmarshal

+                                              ((CMarshaledInterface *)(param_1 + 0xa8),

+                                               (_GUID *)&_GUID_914d9b3a_5e53_4e14_bbba_46062acb35a4,

+                                               &local_50,false);

+                            if (lVar2 < 0) {

+                              wil::details::in1diag3::Return_Hr

+                                        (unaff_retaddr,0x273,

+                                         "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                         ,lVar2);

+                            }

+                            else {

+                              local_18[0] = (IWindowTabExtension *)0x0;

+                              CMarshaledInterface::_Unmarshal

+                                        ((CMarshaledInterface *)(param_1 + 0xb0),

+                                         (_GUID *)&_GUID_0e84cceb_709b_52d2_a663_ec5130862a9b,

+                                         local_18,false);

+                              local_20 = (IRemoteSessionWindowManager *)0x0;

+                              lVar2 = CMarshaledInterface::_Unmarshal

+                                                ((CMarshaledInterface *)(param_1 + 0xb8),

+                                                 (_GUID *)&

+                                                  _GUID_cb6e4ee4_9424_5bb0_b290_0e37b7c5c386,

+                                                 &local_20,false);

+                              if (lVar2 < 0) {

+                                wil::details::in1diag3::_Log_Hr

+                                          (unaff_retaddr,0x279,

+                                           "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                           ,lVar2);

+                              }

+                              local_30 = (void *)0x0;

+                              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                              InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_30)

+                              ;

+                              lVar2 = CMultitaskingViewManager_CreateInstance

+                                                (local_28,local_d0,local_d8,local_c8,local_b0,

+                                                 local_b8,local_c0,local_a0,local_a8,local_98,

+                                                 local_90,local_88,local_80,local_78,local_70,

+                                                 local_38,local_68,local_40,local_48,local_58,

+                                                 local_60,local_50,local_18[0],local_20,

+                                                 in_stack_ffffffffffffff18,&local_30);

+                              if (lVar2 < 0) {

+                                uVar4 = 0x295;

+LAB_2:

+                                wil::details::in1diag3::Return_Hr

+                                          (unaff_retaddr,uVar4,

+                                           "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                           ,lVar2);

+                              }

+                              else {

+                                lVar2 = (**(code **)(*(longlong *)local_28 + 0x18))

+                                                  (local_28,local_30);

+                                if (lVar2 < 0) {

+                                  uVar4 = 0x298;

+                                  goto LAB_2;

+                                }

+                              }

+                              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                              InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_30)

+                              ;

+                              wil::

+                              com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                              ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                          *)&local_20);

+                              wil::

+                              com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                              ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                          *)local_18);

+                            }

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_50);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_60);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_48);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_40);

+                          }

+                          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_58);

+                        }

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_68);

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_38);

+                      }

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_70);

+                    }

+                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                              ((ComPtr<IImmersiveSystemModeNotification> *)&local_78);

+                  }

+                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                            ((ComPtr<IImmersiveSystemModeNotification> *)&local_80);

+                }

+                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                          ((ComPtr<IImmersiveSystemModeNotification> *)&local_88);

+              }

+              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                        ((ComPtr<IImmersiveSystemModeNotification> *)&local_90);

+            }

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_98);

+          }

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_a8);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_a0);

+        }

+        else {

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_c0);

+          lVar2 = CMarshaledInterface::_Unmarshal

+                            ((CMarshaledInterface *)(param_1 + 0x30),

+                             (_GUID *)&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,&local_c0,false);

+          if (-1 < lVar2) goto LAB_1;

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x245,

+                     "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",

+                     lVar2);

+        }

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_c0);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_b8);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_b0);

+      }

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

+    }

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_d8);

+  }

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_d0);

+LAB_0:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_28);

+  return lVar2;

+}

+
```

## `GamingPosturePositioner::ArrangeViewForFullScreenV2`  (modified)

```diff
--- GamingPosturePositioner::ArrangeViewForFullScreenV2
+++ GamingPosturePositioner::ArrangeViewForFullScreenV2
@@ -1,2 +1,350 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB GamingPosturePositioner::ArrangeViewForFullScreenV2 : 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: void __cdecl GamingPosturePositioner::ArrangeViewForFullScreenV2(struct IApplicationView

+   * __ptr64) __ptr64 */

+

+void __thiscall

+GamingPosturePositioner::ArrangeViewForFullScreenV2

+          (GamingPosturePositioner *this,IApplicationView *param_1)

+

+{

+  longlong *plVar1;

+  bool bVar2;

+  BOOL BVar3;

+  int iVar4;

+  ActivityThreadWatcher *pAVar5;

+  ULONGLONG UVar6;

+  IImmersiveMonitor *hWnd;

+  ulonglong uVar7;

+  uint uVar8;

+  IImmersiveMonitor *pIVar9;

+  int iVar10;

+  int iVar11;

+  void *unaff_retaddr;

+  undefined1 auStackY_1a8 [32];

+  IImmersiveMonitor *local_158;

+  longlong *local_150;

+  optional<wil::ActivityThreadWatcher> local_148 [80];

+  undefined1 local_f8;

+  GamingPosturePositioner *local_e8;

+  undefined1 local_e0;

+  ActivityThreadWatcher local_d8 [80];

+  tagRECT local_88;

+  undefined8 local_78;

+  undefined8 uStack_70;

+  undefined8 local_68;

+  undefined8 uStack_60;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  tagRECT local_48;

+  ulonglong local_38;

+  LPRECT lpRect;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_1a8;

+  local_f8 = 0;

+  pAVar5 = (ActivityThreadWatcher *)

+           GamingPosturePositionerTelemetryProvider::WatchCurrentThread((char *)local_d8);

+  std::optional<wil::ActivityThreadWatcher>::emplace<wil::ActivityThreadWatcher>(local_148,pAVar5);

+  pAVar5 = local_d8;

+  wil::ActivityThreadWatcher::~ActivityThreadWatcher(pAVar5);

+  if ((*(longlong *)(this + 800) != 0) && (3 < *(uint *)(this + 0x328))) {

+    UVar6 = GetTickCount64();

+    local_78 = (longlong *)(UVar6 - *(longlong *)(this + 800));

+    if (local_78 < &DAT_0) {

+      local_158 = (IImmersiveMonitor *)ApplicationViewHelpers::GetWindowForView(param_1);

+      GamingPosturePositionerTelemetryProvider::

+      DetectedArrangeLoop<HWND__*___ptr64&___ptr64,unsigned___int64&___ptr64,unsigned_int&___ptr64>

+                ((HWND__ **)&local_158,&local_78,(uint *)(this + 0x328));

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+      return;

+    }

+  }

+  local_e0 = 1;

+  local_e8 = this;

+  bVar2 = KioskPositioner::IsWin32ApplicationView((KioskPositioner *)pAVar5,param_1);

+  if (!bVar2) {

+    GetMainMonitor(this);

+    SetUwpViewFullScreen(this,param_1,local_158);

+    wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+    ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+              ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_158);

+    UVar6 = GetTickCount64();

+    *(ULONGLONG *)(this + 800) = UVar6;

+    *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+    std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+    ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+              ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+    return;

+  }

+  hWnd = (IImmersiveMonitor *)ApplicationViewHelpers::GetWindowForView(param_1);

+  local_158 = hWnd;

+  bVar2 = ApplicationViewHelpers::CanMaximizeWindow((HWND__ *)hWnd);

+  if (bVar2) {

+    bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60843977>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_60843977> *)

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

+                        ::__l2::impl);

+    if (((bVar2) && (BVar3 = IsIconic((HWND)hWnd), BVar3 != 0)) &&

+       (bVar2 = ApplicationViewHelpers::IsMaximizedWindow((HWND__ *)hWnd), bVar2)) {

+      GamingPosturePositionerTelemetryProvider::

+      FixingInvalidMinimizedMaximizedState<HWND__*___ptr64&___ptr64>((HWND__ **)&local_158);

+      uVar7 = GetWindowLongPtrW((HWND)hWnd,-0x10);

+      SetWindowLongPtrW((HWND)hWnd,-0x10,uVar7 & 0xfffffffffeffffff);

+    }

+    bVar2 = ApplicationViewHelpers::IsMaximizedWindow((HWND__ *)hWnd);

+    if (!bVar2) {

+      bVar2 = ApplicationViewHelpers::CanResizeWindow((HWND__ *)hWnd);

+      if ((!bVar2) && (pIVar9 = hWnd, bVar2 = IsFullScreenWindow(this,(HWND__ *)hWnd), bVar2)) {

+        GamingPosturePositionerTelemetryProvider::

+        SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[33]>

+                  ((HWND__ **)&local_158,(ushort *)pIVar9);

+        UVar6 = GetTickCount64();

+        *(ULONGLONG *)(this + 800) = UVar6;

+        *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+        std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+        ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                  ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+        return;

+      }

+      GamingPosturePositionerTelemetryProvider::MaximizingWin32View<HWND__*___ptr64&___ptr64>

+                ((HWND__ **)&local_158);

+      plVar1 = *(longlong **)(this + 0xd0);

+      if ((plVar1 != (longlong *)0x0) &&

+         (iVar4 = (**(code **)(*plVar1 + 0x20))(plVar1,hWnd), iVar4 < 0)) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0xc91,

+                   "pcshell\\twinui\\shellpositioners\\lib\\gamingposturepositioner.cpp",iVar4);

+      }

+      UVar6 = GetTickCount64();

+      *(ULONGLONG *)(this + 800) = UVar6;

+      *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+      return;

+    }

+    pIVar9 = hWnd;

+    bVar2 = IsFullScreenWindow(this,(HWND__ *)hWnd);

+    if (bVar2) {

+      GamingPosturePositionerTelemetryProvider::

+      SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[29]>

+                ((HWND__ **)&local_158,(ushort *)pIVar9);

+      UVar6 = GetTickCount64();

+      *(ULONGLONG *)(this + 800) = UVar6;

+      *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+      return;

+    }

+    bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61476325>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61476325> *)

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

+                        ::__l2::impl);

+    if ((bVar2) && (bVar2 = ApplicationViewHelpers::CanResizeWindow((HWND__ *)hWnd), !bVar2)) {

+      GamingPosturePositionerTelemetryProvider::

+      SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[31]>

+                ((HWND__ **)&local_158,(ushort *)L"Non-resizable maximized window");

+      UVar6 = GetTickCount64();

+      *(ULONGLONG *)(this + 800) = UVar6;

+      *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+      return;

+    }

+    GetMainMonitor(this);

+    local_58 = 0;

+    uStack_50 = 0;

+    local_48.left = 0;

+    local_48.top = 0;

+    local_48.right = 0;

+    local_48.bottom = 0;

+    iVar4 = (**(code **)(*local_78 + 0x58))(local_78,&local_58);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0xc78,

+                 "pcshell\\twinui\\shellpositioners\\lib\\gamingposturepositioner.cpp",iVar4);

+    }

+    else {

+      BVar3 = GetWindowRect((HWND)hWnd,&local_48);

+      if (BVar3 != 0) {

+        GamingPosturePositionerTelemetryProvider::

+        RepositioningViewMaximized<HWND__*___ptr64&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64>

+                  ((HWND__ **)&local_158,&local_48.left,&local_48.top,&local_48.right,

+                   &local_48.bottom,(long *)&local_58,(long *)((longlong)&local_58 + 4),

+                   (long *)&uStack_50,(long *)((longlong)&uStack_50 + 4));

+        iVar4 = (**(code **)(**(longlong **)(this + 0xe8) + 0x18))

+                          (*(longlong **)(this + 0xe8),hWnd,0,&local_58);

+        if (iVar4 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0xc7f,

+                     "pcshell\\twinui\\shellpositioners\\lib\\gamingposturepositioner.cpp",iVar4);

+        }

+        *(undefined8 *)(this + 0x3d4) = local_58;

+        *(undefined8 *)(this + 0x3dc) = uStack_50;

+      }

+    }

+    wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+    ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+              ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_78);

+    UVar6 = GetTickCount64();

+    *(ULONGLONG *)(this + 800) = UVar6;

+    *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+    std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+    ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+              ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+    return;

+  }

+  BVar3 = IsIconic((HWND)hWnd);

+  if (BVar3 != 0) {

+    GamingPosturePositionerTelemetryProvider::RestoringWin32View<HWND__*___ptr64&___ptr64>

+              ((HWND__ **)&local_158);

+    PostMessageW((HWND)hWnd,0x112,0xf120,0);

+    UVar6 = GetTickCount64();

+    *(ULONGLONG *)(this + 800) = UVar6;

+    *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+    std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+    ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+              ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+    return;

+  }

+  GetMainMonitor(this);

+  local_68 = 0;

+  uStack_60 = 0;

+  local_88.left = 0;

+  local_88.top = 0;

+  local_88.right = 0;

+  local_88.bottom = 0;

+  iVar4 = (**(code **)(*local_150 + 0x58))(local_150,&local_68);

+  if (iVar4 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0xca4,

+               "pcshell\\twinui\\shellpositioners\\lib\\gamingposturepositioner.cpp",iVar4);

+  }

+  else {

+    lpRect = &local_88;

+    BVar3 = GetWindowRect((HWND)hWnd,lpRect);

+    if (BVar3 != 0) {

+      if ((local_88.right - local_88.left < 2) && (local_88.bottom - local_88.top < 2)) {

+        GamingPosturePositionerTelemetryProvider::

+        SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[22]>

+                  ((HWND__ **)&local_158,(ushort *)lpRect);

+        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                   &local_150);

+        UVar6 = GetTickCount64();

+        *(ULONGLONG *)(this + 800) = UVar6;

+        *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+        std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+        ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                  ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+        return;

+      }

+      if ((local_88.left < -31999) && (local_88.top < -31999)) {

+        GamingPosturePositionerTelemetryProvider::

+        SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[28]>

+                  ((HWND__ **)&local_158,(ushort *)lpRect);

+        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                   &local_150);

+        UVar6 = GetTickCount64();

+        *(ULONGLONG *)(this + 800) = UVar6;

+        *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+        std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+        ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                  ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+        return;

+      }

+      local_78._0_4_ = local_88.left;

+      local_78._4_4_ = local_88.top;

+      uStack_70._0_4_ = local_88.right;

+      uStack_70._4_4_ = local_88.bottom;

+      bVar2 = ApplicationViewHelpers::CanResizeWindow((HWND__ *)hWnd);

+      if (bVar2) {

+        local_78 = (longlong *)local_68;

+        uStack_70 = uStack_60;

+      }

+      else {

+        iVar11 = ((((int)uStack_60 - (int)local_68) - local_88.right) + local_88.left) / 2 +

+                 (int)local_68;

+        uVar8 = (((uStack_60._4_4_ - local_68._4_4_) - local_88.bottom) + local_88.top) / 2 +

+                local_68._4_4_;

+        lpRect = (LPRECT)(ulonglong)uVar8;

+        iVar10 = iVar11 - local_88.left;

+        iVar4 = -iVar10;

+        if (-iVar10 < 0) {

+          iVar4 = iVar10;

+        }

+        if ((float)iVar4 <= (float)((int)uStack_60 - (int)local_68) * 0.025) {

+          iVar4 = -(uVar8 - local_88.top);

+          if (iVar4 < 0) {

+            iVar4 = uVar8 - local_88.top;

+          }

+          if ((float)iVar4 <= (float)(uStack_60._4_4_ - local_68._4_4_) * 0.025) goto LAB_1;

+        }

+        local_78 = (longlong *)CONCAT44(uVar8,iVar11);

+        uStack_70 = CONCAT44((uVar8 - local_88.top) + local_88.bottom,iVar10 + local_88.right);

+      }

+LAB_1:

+      if (((longlong *)local_88._0_8_ == local_78) && (local_88._8_8_ == uStack_70)) {

+        GamingPosturePositionerTelemetryProvider::

+        SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[19]>

+                  ((HWND__ **)&local_158,(ushort *)lpRect);

+        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                   &local_150);

+        UVar6 = GetTickCount64();

+        *(ULONGLONG *)(this + 800) = UVar6;

+        *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+        std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+        ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                  ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+        return;

+      }

+      GamingPosturePositionerTelemetryProvider::

+      RepositioningView<HWND__*___ptr64&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64,long&___ptr64>

+                ((HWND__ **)&local_158,&local_88.left,&local_88.top,&local_88.right,&local_88.bottom

+                 ,(long *)&local_78,(long *)((longlong)&local_78 + 4),(long *)&uStack_70,

+                 (long *)((longlong)&uStack_70 + 4));

+      iVar4 = (**(code **)(**(longlong **)(this + 0xe8) + 0x18))

+                        (*(longlong **)(this + 0xe8),hWnd,0,&local_78);

+      if (iVar4 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0xcd5,

+                   "pcshell\\twinui\\shellpositioners\\lib\\gamingposturepositioner.cpp",iVar4);

+      }

+      *(__uint64 *)(this + 0x3d4) = local_68;

+      *(longlong *)(this + 0x3dc) = uStack_60;

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_150)

+      ;

+      UVar6 = GetTickCount64();

+      *(ULONGLONG *)(this + 800) = UVar6;

+      *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+      return;

+    }

+  }

+  wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+  ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+            ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_150);

+  UVar6 = GetTickCount64();

+  *(ULONGLONG *)(this + 800) = UVar6;

+  *(int *)(this + 0x328) = *(int *)(this + 0x328) + 1;

+  std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+  ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+            ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_148);

+  return;

+}

+
```

## `CDragVisual::_OnStartDrag`  (modified)

```diff
--- CDragVisual::_OnStartDrag
+++ CDragVisual::_OnStartDrag
@@ -1,2 +1,38 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CDragVisual::_OnStartDrag : 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: long __cdecl CDragVisual::_OnStartDrag(unsigned int,struct tagPOINT) __ptr64 */

+

+long __thiscall CDragVisual::_OnStartDrag(CDragVisual *this,uint param_1,tagPOINT param_2)

+

+{

+  bool bVar1;

+  HRESULT HVar2;

+  longlong *local_res20;

+  undefined8 local_18 [2];

+  

+  if (param_1 != 0) {

+    DwmShowContact(param_1,0);

+  }

+  _ClearVisualFeedback(this);

+  HVar2 = 0;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (!bVar1) {

+    local_res20 = (longlong *)0x0;

+    Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_res20);

+    HVar2 = IUnknown_QueryService

+                      (*(IUnknown **)(this + 0x10),

+                       (GUID *)&_GUID_373e56cf_0a1b_4b4a_a1a4_a46b25ffd7e3,

+                       (IID *)&_GUID_84098f74_87a7_4582_b398_f6c3178e9dd6,&local_res20);

+    if (-1 < HVar2) {

+      Geometry::CPoint::ClientToScreen((HWND__ *)local_18,*(tagPOINT **)(this + 0x98));

+      HVar2 = (**(code **)(*local_res20 + 0x58))(local_res20,param_1,local_18[0]);

+    }

+    Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_res20);

+  }

+  return HVar2;

+}

+
```

## `winrt::Windows::Internal::Shell::implementation::`dynamic_initializer_for_'c_snapWindowId''`  (modified)

```diff
--- winrt::Windows::Internal::Shell::implementation::`dynamic_initializer_for_'c_snapWindowId''
+++ winrt::Windows::Internal::Shell::implementation::`dynamic_initializer_for_'c_snapWindowId''
@@ -1,2 +1,10 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::Windows::Internal::Shell::implementation::`dynamic_initializer_for_'c_snapWindowId'' : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void winrt::Windows::Internal::Shell::implementation::_dynamic_initializer_for__c_snapWindowId__

+               (void)

+

+{

+  DAT_0 = winrt::impl::create_hstring_on_heap((ushort *)L"SnapWindow.Id",0xd);

+  atexit(_dynamic_atexit_destructor_for__c_snapWindowId__);

+  return;

+}

+
```

## `winrt::impl::produce<winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController,winrt::Windows::Internal::GamingExperiences::Posture::IGamingPostureController>::ExitGamingPostureAsync`  (modified)

```diff
--- winrt::impl::produce<winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController,winrt::Windows::Internal::GamingExperiences::Posture::IGamingPostureController>::ExitGamingPostureAsync
+++ winrt::impl::produce<winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController,winrt::Windows::Internal::GamingExperiences::Posture::IGamingPostureController>::ExitGamingPostureAsync
@@ -1,2 +1,39 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce<winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController,winrt::Windows::Internal::GamingExperiences::Posture::IGamingPostureController>::ExitGamingPostureAsync : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual int __cdecl winrt::impl::produce<struct

+   winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController,struct

+   winrt::Windows::Internal::GamingExperiences::Posture::IGamingPostureController>::ExitGamingPostureAsync(int,void

+   * __ptr64,void * __ptr64 * __ptr64) __ptr64 */

+

+int __thiscall

+winrt::impl::

+produce<winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController,winrt::Windows::Internal::GamingExperiences::Posture::IGamingPostureController>

+::ExitGamingPostureAsync

+          (produce<winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController,winrt::Windows::Internal::GamingExperiences::Posture::IGamingPostureController>

+           *this,int param_1,void *param_2,void **param_3)

+

+{

+  void *pvVar1;

+  undefined8 uVar2;

+  undefined8 *puVar3;

+  hstring local_res8 [16];

+  void *local_res18;

+  IArrangedWindowResizeStartedEventArgs local_res20 [8];

+  

+  *param_3 = (void *)0x0;

+  local_res18 = param_2;

+  uVar2 = hstring::hstring(local_res8,(hstring *)&local_res18);

+  puVar3 = (undefined8 *)

+           Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::

+           ExitGamingPostureAsync

+                     ((GamingPostureController *)

+                      (-(ulonglong)

+                        (this != (produce<winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController,winrt::Windows::Internal::GamingExperiences::Posture::IGamingPostureController>

+                                  *)0x0) & (ulonglong)(this + -0x58)),local_res20,param_1,uVar2);

+  pvVar1 = (void *)*puVar3;

+  *puVar3 = 0;

+  *param_3 = pvVar1;

+  Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs(local_res20);

+  return 0;

+}

+
```

## `VirtualDesktopSwitcherHost::CreateXaml`  (modified)

```diff
--- VirtualDesktopSwitcherHost::CreateXaml
+++ VirtualDesktopSwitcherHost::CreateXaml
@@ -1,2 +1,583 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB VirtualDesktopSwitcherHost::CreateXaml : 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: long __cdecl VirtualDesktopSwitcherHost::CreateXaml(struct IImmersiveMonitor * __ptr64)

+   __ptr64 */

+

+long __thiscall

+VirtualDesktopSwitcherHost::CreateXaml(VirtualDesktopSwitcherHost *this,IImmersiveMonitor *param_1)

+

+{

+  com_ptr<GamingFallbackWindow> *this_00;

+  VirtualDesktopSwitcherHost *pVVar1;

+  RECT *lprc;

+  undefined4 uVar2;

+  undefined4 uVar3;

+  undefined4 uVar4;

+  undefined4 uVar5;

+  code *pcVar6;

+  longlong *plVar7;

+  hstring_header *phVar8;

+  undefined4 uVar9;

+  undefined4 uVar10;

+  undefined4 uVar11;

+  undefined4 uVar12;

+  bool bVar13;

+  BOOL BVar14;

+  int iVar15;

+  long lVar16;

+  int iVar17;

+  com_ptr<class_GamingFallbackWindow> *pcVar18;

+  undefined8 *puVar19;

+  IVirtualDesktopController *this_01;

+  IVirtualDesktopController *pIVar20;

+  IVirtualDesktopDataSource *pIVar21;

+  TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+  *pTVar22;

+  TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+  *pTVar23;

+  Object *pOVar24;

+  VirtualDesktopSwitcherController *pVVar25;

+  undefined8 uVar26;

+  longlong *plVar27;

+  FeatureImpl<struct___WilFeatureTraits_Feature_56387219> *this_02;

+  hstring *this_03;

+  bool bVar28;

+  double dVar29;

+  double dVar30;

+  void *unaff_retaddr;

+  XamlExplorerHostWindow local_res8 [8];

+  IImmersiveMonitor *local_res10;

+  uchar local_res18 [8];

+  undefined4 local_res20 [2];

+  TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+  *local_118;

+  String *local_110;

+  undefined8 local_108;

+  float local_100;

+  float fStack_fc;

+  Object local_f8 [8];

+  undefined4 local_f0 [2];

+  com_ptr_t<struct_IApplicationViewTitlebarConfiguration,struct_wil::err_exception_policy>

+  local_e8 [16];

+  undefined8 local_d8;

+  undefined8 local_d0;

+  IVirtualDesktopDataSource *local_b8;

+  undefined8 local_a8;

+  VirtualDesktopBarElementViewModel *pVStack_a0;

+  undefined8 local_98;

+  undefined8 uStack_90;

+  undefined8 local_88;

+  HSTRING__ *local_80;

+  IVirtualDesktopController *local_78;

+  undefined8 local_70 [6];

+  

+  local_a8 = 0;

+  pVStack_a0 = (VirtualDesktopBarElementViewModel *)0x0;

+  local_res10 = param_1;

+  pcVar18 = (com_ptr<class_GamingFallbackWindow> *)

+            winrt::Windows::Internal::Shell::XamlExplorerHost::XamlExplorerHostWindow::

+            XamlExplorerHostWindow(local_res8,7,(Rect *)&local_a8);

+  this_00 = (com_ptr<GamingFallbackWindow> *)(this + 0xe0);

+  winrt::com_ptr<GamingFallbackWindow>::operator=(this_00,pcVar18);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_res8);

+  winrt::impl::

+  consume_Windows_Internal_Shell_WindowManagementEvents_IArrangedWindowResizeStartedEventArgs<winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs>

+  ::ProgressRequest((consume_Windows_Internal_Shell_WindowManagementEvents_IArrangedWindowResizeStartedEventArgs<winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs>

+                     *)this_00,0);

+  winrt::impl::

+  consume_Windows_Internal_UI_StartScreen_ISecondaryTilePrivate<winrt::Windows::Internal::UI::StartScreen::ISecondaryTilePrivate>

+  ::CreateInTileStore((consume_Windows_Internal_UI_StartScreen_ISecondaryTilePrivate<winrt::Windows::Internal::UI::StartScreen::ISecondaryTilePrivate>

+                       *)this_00);

+  if (*(longlong *)this_00 != 0) {

+    local_70[0] = 0;

+    iVar15 = (**(code **)(*(longlong *)param_1 + 0x28))(param_1,local_70);

+    if (iVar15 < 0) {

+      return iVar15;

+    }

+    plVar27 = *(longlong **)(this + 0xc0);

+    pcVar6 = *(code **)(*plVar27 + 0x48);

+    pVVar1 = this + 0xd0;

+    plVar7 = *(longlong **)pVVar1;

+    *(longlong *)pVVar1 = 0;

+    if (plVar7 != (longlong *)0x0) {

+      (**(code **)(*plVar7 + 0x10))();

+    }

+    iVar15 = (*pcVar6)(plVar27,local_70[0],&SID_EdgeUi,&_GUID_6e6c3c52_5a5e_4b4b_a0f8_7fe12621a93e,

+                       pVVar1);

+    if (iVar15 < 0) {

+      return iVar15;

+    }

+    lprc = (RECT *)(this + 0x1e0);

+    iVar15 = (**(code **)(**(longlong **)pVVar1 + 0x98))(*(longlong **)pVVar1,lprc);

+    if (iVar15 < 0) {

+      return iVar15;

+    }

+    BVar14 = IsRectEmpty(lprc);

+    if (BVar14 != 0) {

+      return -0x7fffbffc;

+    }

+    local_res20[0] = 0;

+    local_f0[0] = 0;

+    iVar15 = (**(code **)(*(longlong *)param_1 + 0x70))(param_1,local_res20,local_f0);

+    if (iVar15 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x1ff,

+                 "pcshell\\twinui\\xamlmultitaskingview\\lib\\virtualdesktopswitcherhost.cpp",iVar15

+                );

+      local_res20[0] = 0x60;

+      local_f0[0] = 0x60;

+    }

+    *(undefined4 *)(this + 0x1cc) = local_res20[0];

+    *(undefined4 *)(this + 0x1d0) = local_f0[0];

+    local_80 = (HSTRING__ *)0x0;

+    local_res18[0] = '\0';

+    local_res8[0] = (XamlExplorerHostWindow)0x0;

+    local_88 = 0;

+    bVar13 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56387219>::__private_IsEnabled

+                       ((FeatureImpl<__WilFeatureTraits_Feature_56387219> *)

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

+                         ::__l2::impl);

+    if ((bVar13) && (iVar15 = IsGamingFullScreenExperienceSupported(), iVar15 != 0)) {

+      puVar19 = (undefined8 *)

+                winrt::Windows::Internal::GamingExperiences::Posture::GamingPostureConfiguration::

+                GamingAppAumid();

+      if (&local_88 != puVar19) {

+        phVar8 = (hstring_header *)*puVar19;

+        *puVar19 = 0;

+        winrt::handle_type<winrt::impl::hstring_traits>::attach

+                  ((handle_type<winrt::impl::hstring_traits> *)&local_88,phVar8);

+      }

+      winrt::hstring::~hstring((hstring *)&local_118);

+    }

+    GetRemoteSessionWindowManagerAttributes

+              (*(IRemoteSessionWindowManager **)(this + 0xd8),local_res18,(uchar *)local_res8,

+               &local_80);

+    if ((local_res18[0] == '\0') && (local_res8[0] == (XamlExplorerHostWindow)0x0)) {

+      bVar13 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56387219>::__private_IsEnabled

+                         ((FeatureImpl<__WilFeatureTraits_Feature_56387219> *)

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

+                           ::__l2::impl);

+      if (bVar13) {

+        local_118 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                     *)0x0;

+        this_01 = (IVirtualDesktopController *)to_cx((hstring *)&local_88);

+        uVar2 = lprc->left;

+        uVar9 = lprc->top;

+        local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                     *)CONCAT44((float)(int)uVar9,(float)(int)uVar2);

+        local_100 = (float)((int)*(undefined8 *)(this + 0x1e8) - uVar2);

+        fStack_fc = (float)((int)((ulonglong)*(undefined8 *)(this + 0x1e8) >> 0x20) - uVar9);

+        local_110 = (String *)this_01;

+        pIVar20 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopController>

+                            ((IUnknown *)(this + 0xf0));

+        local_78 = pIVar20;

+        pIVar21 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopDataSource>

+                            ((IUnknown *)(this + 0xe8));

+        local_d8 = local_108;

+        local_d0 = (VirtualDesktopBarElementViewModel *)CONCAT44(fStack_fc,local_100);

+        local_b8 = pIVar21;

+        pTVar22 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                   *)WindowsInternal::ComposableShell::Experiences::Switcher::

+                     VirtualDesktopBarElementViewModel::VirtualDesktopBarElementViewModel

+                               (local_d0,pIVar21,pIVar20,1,&local_d8,this_01);

+        local_118 = pTVar22;

+        __abi_winrt_ptr_assign((void **)(this + 0xb0),(Object *)pTVar22);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  (pTVar22);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)pIVar21);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)pIVar20);

+        __Platform_WindowsDeleteString();

+        param_1 = local_res10;

+      }

+      else {

+        local_b8 = (IVirtualDesktopDataSource *)0x0;

+        uVar3 = lprc->left;

+        uVar10 = lprc->top;

+        local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                     *)CONCAT44((float)(int)uVar10,(float)(int)uVar3);

+        local_100 = (float)((int)*(undefined8 *)(this + 0x1e8) - uVar3);

+        fStack_fc = (float)((int)((ulonglong)*(undefined8 *)(this + 0x1e8) >> 0x20) - uVar10);

+        this_01 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopController>

+                            ((IUnknown *)(this + 0xf0));

+        local_78 = this_01;

+        pIVar21 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopDataSource>

+                            ((IUnknown *)(this + 0xe8));

+        local_d8 = local_108;

+        local_d0 = (VirtualDesktopBarElementViewModel *)CONCAT44(fStack_fc,local_100);

+        local_118 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                     *)pIVar21;

+        pTVar22 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                   *)WindowsInternal::ComposableShell::Experiences::Switcher::

+                     VirtualDesktopBarElementViewModel::VirtualDesktopBarElementViewModel

+                               (local_d0,pIVar21,this_01,1,&local_d8);

+        local_b8 = (IVirtualDesktopDataSource *)pTVar22;

+        __abi_winrt_ptr_assign((void **)(this + 0xb0),(Object *)pTVar22);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  (pTVar22);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)pIVar21);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)this_01);

+      }

+    }

+    else {

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

+                 ::__l2::impl;

+      bVar13 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_56387219>::__private_IsEnabled

+                         ((FeatureImpl<__WilFeatureTraits_Feature_56387219> *)

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

+                           ::__l2::impl);

+      if (bVar13) {

+        local_b8 = (IVirtualDesktopDataSource *)0x0;

+        this_03 = (hstring *)&local_88;

+        this_01 = (IVirtualDesktopController *)to_cx(this_03);

+        local_118 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                     *)0x0;

+        local_78 = this_01;

+        pTVar22 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                   *)Platform::String::String((String *)this_03,local_80);

+        bVar13 = local_res8[0] != (XamlExplorerHostWindow)0x0;

+        bVar28 = local_res18[0] != '\0';

+        uVar4 = lprc->left;

+        uVar11 = lprc->top;

+        local_d8 = CONCAT44((float)(int)uVar11,(float)(int)uVar4);

+        local_d0 = (VirtualDesktopBarElementViewModel *)

+                   CONCAT44((float)((int)((ulonglong)*(undefined8 *)(this + 0x1e8) >> 0x20) - uVar11

+                                   ),(float)((int)*(undefined8 *)(this + 0x1e8) - uVar4));

+        local_118 = pTVar22;

+        pIVar20 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopController>

+                            ((IUnknown *)(this + 0xf0));

+        local_110 = (String *)pIVar20;

+        pIVar21 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopDataSource>

+                            ((IUnknown *)(this + 0xe8));

+        local_a8 = local_d8;

+        pVStack_a0 = local_d0;

+        local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                     *)pIVar21;

+        pTVar23 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                   *)WindowsInternal::ComposableShell::Experiences::Switcher::

+                     VirtualDesktopBarElementViewModel::VirtualDesktopBarElementViewModel

+                               (local_d0,pIVar21,pIVar20,1,&local_a8,bVar28,bVar13,pTVar22,this_01);

+        local_b8 = (IVirtualDesktopDataSource *)pTVar23;

+        __abi_winrt_ptr_assign((void **)(this + 0xb0),(Object *)pTVar23);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  (pTVar23);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)pIVar21);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)pIVar20);

+        __Platform_WindowsDeleteString(pTVar22);

+        __Platform_WindowsDeleteString();

+        param_1 = local_res10;

+      }

+      else {

+        local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                     *)0x0;

+        local_b8 = (IVirtualDesktopDataSource *)0x0;

+        this_01 = (IVirtualDesktopController *)Platform::String::String((String *)this_02,local_80);

+        bVar13 = local_res8[0] != (XamlExplorerHostWindow)0x0;

+        bVar28 = local_res18[0] != '\0';

+        uVar5 = lprc->left;

+        uVar12 = lprc->top;

+        local_d8 = CONCAT44((float)(int)uVar12,(float)(int)uVar5);

+        local_d0 = (VirtualDesktopBarElementViewModel *)

+                   CONCAT44((float)((int)((ulonglong)*(undefined8 *)(this + 0x1e8) >> 0x20) - uVar12

+                                   ),(float)((int)*(undefined8 *)(this + 0x1e8) - uVar5));

+        local_b8 = (IVirtualDesktopDataSource *)this_01;

+        pIVar20 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopController>

+                            ((IUnknown *)(this + 0xf0));

+        local_78 = pIVar20;

+        pIVar21 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopDataSource>

+                            ((IUnknown *)(this + 0xe8));

+        local_a8 = local_d8;

+        pVStack_a0 = local_d0;

+        local_118 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                     *)pIVar21;

+        pTVar22 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                   *)WindowsInternal::ComposableShell::Experiences::Switcher::

+                     VirtualDesktopBarElementViewModel::VirtualDesktopBarElementViewModel

+                               (local_d0,pIVar21,pIVar20,1,&local_a8,bVar28,bVar13,this_01);

+        local_108 = pTVar22;

+        __abi_winrt_ptr_assign((void **)(this + 0xb0),(Object *)pTVar22);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  (pTVar22);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)pIVar21);

+        __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                  ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)pIVar20);

+        __Platform_WindowsDeleteString();

+        param_1 = local_res10;

+      }

+    }

+    local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                 *)0x0;

+    pTVar22 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+               *)WindowsInternal::ComposableShell::Experiences::Switcher::VirtualDesktopBarElement::

+                 VirtualDesktopBarElement((VirtualDesktopBarElement *)this_01);

+    pVVar1 = this + 0xa8;

+    local_108 = pTVar22;

+    __abi_winrt_ptr_assign((void **)pVVar1,(Object *)pTVar22);

+    __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+              (pTVar22);

+    pOVar24 = __abi_winrt_cast_to(false,*(Object **)pVVar1,

+                                  (_GUID *)&__uuidof__AVUIElement_Xaml_UI_Windows__);

+    local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                 *)pOVar24;

+    ApplyTheme((UIElement *)pOVar24);

+    __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+              ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                *)pOVar24);

+    lVar16 = (**(code **)(**(longlong **)pVVar1 + 0x60))

+                       (*(longlong **)pVVar1,*(undefined8 *)(this + 0xb0));

+    __abi_ThrowIfFailed(lVar16);

+    pVVar25 = VirtualDesktopSwitcherController::Make

+                        ((IVirtualDesktopSwitcherHost *)

+                         (-(ulonglong)(this != (VirtualDesktopSwitcherHost *)0x0) &

+                         (ulonglong)(this + 8)),*(VirtualDesktopBarElementViewModel **)(this + 0xb0)

+                        );

+    local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                 *)pVVar25;

+    __abi_winrt_ptr_assign((void **)(this + 0xa0),(Object *)pVVar25);

+    __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+              ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                *)pVVar25);

+    iVar15 = MulDiv(0xc,*(int *)(this + 0x1cc),0x60);

+    iVar17 = MulDiv(0xc,*(int *)(this + 0x1d0),0x60);

+    bVar13 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_59213768>::__private_IsEnabled

+                       ((FeatureImpl<__WilFeatureTraits_Feature_59213768> *)

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

+                         ::__l2::impl);

+    dVar29 = (double)iVar15;

+    dVar30 = (double)iVar17;

+    if (bVar13) {

+      pOVar24 = __abi_winrt_cast_to(false,*(Object **)pVVar1,

+                                    (_GUID *)&__uuidof__AUIFrameworkElement_Xaml_UI_Windows__);

+      local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                   *)pOVar24;

+      puVar19 = (undefined8 *)

+                Windows::UI::Xaml::Thickness::Thickness

+                          ((Thickness *)&local_d8,dVar29,dVar30,dVar29,dVar30);

+      local_a8 = *puVar19;

+      pVStack_a0 = (VirtualDesktopBarElementViewModel *)puVar19[1];

+      local_98 = puVar19[2];

+      uStack_90 = puVar19[3];

+      Windows::UI::Xaml::FrameworkElement::Margin::[Windows::UI::Xaml::IFrameworkElement]::set

+                ((_Windows__UI__Xaml__IFrameworkElement_ *)pOVar24,&local_a8);

+    }

+    else {

+      pOVar24 = __abi_winrt_cast_to(false,*(Object **)pVVar1,

+                                    (_GUID *)&__uuidof__AUIFrameworkElement_Xaml_UI_Windows__);

+      local_108 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                   *)pOVar24;

+      puVar19 = (undefined8 *)

+                Windows::UI::Xaml::Thickness::Thickness

+                          ((Thickness *)&local_d8,dVar29,dVar30,dVar29,0.0);

+      local_a8 = *puVar19;

+      pVStack_a0 = (VirtualDesktopBarElementViewModel *)puVar19[1];

+      local_98 = puVar19[2];

+      uStack_90 = puVar19[3];

+      Windows::UI::Xaml::FrameworkElement::Margin::[Windows::UI::Xaml::IFrameworkElement]::set

+                ((_Windows__UI__Xaml__IFrameworkElement_ *)pOVar24,&local_a8);

+    }

+    __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+              ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                *)pOVar24);

+    from_cx<winrt::Windows::UI::Xaml::FrameworkElement>(local_f8);

+    local_118 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                 *)this;

+    wil::com_weak_query_failfast<VirtualDesktopSwitcherHost*___ptr64>

+              ((VirtualDesktopSwitcherHost **)local_e8);

+    wil::com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>::

+    com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>

+              ((com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy> *)

+               &local_118,local_e8);

+    winrt::Windows::UI::Xaml::RoutedEventHandler::

+    RoutedEventHandler<<lambda_ca880a75b2c5520c482e457acf4bf272>_>(&local_110,&local_118);

+    uVar26 = winrt::impl::

+             consume_Windows_UI_Xaml_IFrameworkElement<winrt::Windows::UI::Xaml::IFrameworkElement>

+             ::Loaded((consume_Windows_UI_Xaml_IFrameworkElement<winrt::Windows::UI::Xaml::IFrameworkElement>

+                       *)local_f8,&local_a8);

+    __4__event_revoker_UIFrameworkElement_Xaml_UI_Windows_winrt___MP8type___abi_UIFrameworkElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BBGA_AA_impl_winrt__QEAAAEAU012___QEAU012__Z

+              (this + 0x198,uVar26);

+    __1__event_revoker_UIFrameworkElement_Xaml_UI_Windows_winrt___MP8type___abi_UIFrameworkElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BBGA_AA_impl_winrt__QEAA_XZ

+              (&local_a8);

+    if (local_110 != (String *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_110);

+    }

+    wil::com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>::

+    com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>

+              ((com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy> *)

+               &local_118,local_e8);

+    winrt::Windows::UI::Xaml::Input::PointerEventHandler::

+    PointerEventHandler<<lambda_828944ce103634e2e050a423f7a4c10d>_>(&local_110,&local_118);

+    uVar26 = winrt::impl::

+             consume_Windows_UI_Xaml_IUIElement<winrt::Windows::UI::Xaml::FrameworkElement>::

+             PointerExited((consume_Windows_UI_Xaml_IUIElement<winrt::Windows::UI::Xaml::FrameworkElement>

+                            *)local_f8,&local_a8);

+    __4__event_revoker_UIUIElement_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BCBA_AA_impl_winrt__QEAAAEAU012___QEAU012__Z

+              (this + 0xf8,uVar26);

+    __1__event_revoker_UIUIElement_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BCBA_AA_impl_winrt__QEAA_XZ

+              (&local_a8);

+    if (local_110 != (String *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_110);

+    }

+    wil::com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>::

+    com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>

+              ((com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy> *)

+               &local_118,local_e8);

+    winrt::Windows::UI::Xaml::Input::PointerEventHandler::

+    PointerEventHandler<<lambda_070e192e9fba98d43315428c14debf7b>_>(&local_110,&local_118);

+    uVar26 = winrt::impl::

+             consume_Windows_UI_Xaml_IUIElement<winrt::Windows::UI::Xaml::FrameworkElement>::

+             PointerEntered((consume_Windows_UI_Xaml_IUIElement<winrt::Windows::UI::Xaml::FrameworkElement>

+                             *)local_f8,&local_a8);

+    __4__event_revoker_UIUIElement_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BCAA_AA_impl_winrt__QEAAAEAU012___QEAU012__Z

+              (this + 0x108,uVar26);

+    __1__event_revoker_UIUIElement_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BCAA_AA_impl_winrt__QEAA_XZ

+              (&local_a8);

+    if (local_110 != (String *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_110);

+    }

+    wil::com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>::

+    com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>

+              ((com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy> *)

+               &local_118,local_e8);

+    winrt::Windows::Foundation::

+    TypedEventHandler<winrt::Windows::UI::Xaml::UIElement,winrt::Windows::UI::Xaml::Input::ContextRequestedEventArgs>

+    ::

+    TypedEventHandler<winrt::Windows::UI::Xaml::UIElement,winrt::Windows::UI::Xaml::Input::ContextRequestedEventArgs><<lambda_28e2deb1c60008eafa8d487ea9ad6bb5>_>

+              (&local_110,&local_118);

+    uVar26 = winrt::impl::

+             consume_Windows_UI_Xaml_IUIElement4<winrt::Windows::UI::Xaml::FrameworkElement>::

+             ContextRequested((consume_Windows_UI_Xaml_IUIElement4<winrt::Windows::UI::Xaml::FrameworkElement>

+                               *)local_f8,&local_a8);

+    __4__event_revoker_UIUIElement4_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement4_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BII_AA_impl_winrt__QEAAAEAU012___QEAU012__Z

+              (this + 0x150,uVar26);

+    __1__event_revoker_UIUIElement4_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement4_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BII_AA_impl_winrt__QEAA_XZ

+              (&local_a8);

+    if (local_110 != (String *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_110);

+    }

+    wil::com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>::

+    com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>

+              ((com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy> *)

+               &local_118,local_e8);

+    winrt::Windows::UI::Xaml::RoutedEventHandler::

+    RoutedEventHandler<<lambda_ec805711c79670d05ccf93f6b458b0f9>_>(&local_110,&local_118);

+    puVar19 = (undefined8 *)

+              winrt::impl::

+              consume_Windows_UI_Xaml_IUIElement<winrt::Windows::UI::Xaml::FrameworkElement>::

+              GotFocus((consume_Windows_UI_Xaml_IUIElement<winrt::Windows::UI::Xaml::FrameworkElement>

+                        *)local_f8,&local_a8);

+    local_d8 = *puVar19;

+    *puVar19 = 0;

+    local_d0 = (VirtualDesktopBarElementViewModel *)puVar19[1];

+    std::

+    swap<winrt::weak_ref<winrt::Windows::Internal::Shell::SnapComponent::ISnapFlyoutInstance>,0>

+              ((weak_ref<winrt::Windows::Internal::Shell::SnapComponent::ISnapFlyoutInstance> *)

+               &local_d8,

+               (weak_ref<winrt::Windows::Internal::Shell::SnapComponent::ISnapFlyoutInstance> *)

+               (this + 0x160));

+    uVar26 = *(undefined8 *)(this + 0x168);

+    *(VirtualDesktopBarElementViewModel **)(this + 0x168) = local_d0;

+    local_d0 = (VirtualDesktopBarElementViewModel *)uVar26;

+    __1__event_revoker_UIUIElement_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BBHA_AA_impl_winrt__QEAA_XZ

+              (&local_d8);

+    __1__event_revoker_UIUIElement_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BBHA_AA_impl_winrt__QEAA_XZ

+              (&local_a8);

+    if (local_110 != (String *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_110);

+    }

+    wil::com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>::

+    com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy>

+              ((com_ptr_t<IApplicationViewTitlebarConfiguration,wil::err_exception_policy> *)

+               &local_118,local_e8);

+    winrt::Windows::UI::Xaml::RoutedEventHandler::

+    RoutedEventHandler<<lambda_0448dd6b07ee8d154ed22029eec6a770>_>(&local_110,&local_118);

+    puVar19 = (undefined8 *)

+              winrt::impl::

+              consume_Windows_UI_Xaml_IUIElement<winrt::Windows::UI::Xaml::FrameworkElement>::

+              LostFocus((consume_Windows_UI_Xaml_IUIElement<winrt::Windows::UI::Xaml::FrameworkElement>

+                         *)local_f8,&local_a8);

+    local_d8 = *puVar19;

+    *puVar19 = 0;

+    local_d0 = (VirtualDesktopBarElementViewModel *)puVar19[1];

+    std::

+    swap<winrt::weak_ref<winrt::Windows::Internal::Shell::SnapComponent::ISnapFlyoutInstance>,0>

+              ((weak_ref<winrt::Windows::Internal::Shell::SnapComponent::ISnapFlyoutInstance> *)

+               &local_d8,

+               (weak_ref<winrt::Windows::Internal::Shell::SnapComponent::ISnapFlyoutInstance> *)

+               (this + 0x170));

+    uVar26 = *(undefined8 *)(this + 0x178);

+    *(VirtualDesktopBarElementViewModel **)(this + 0x178) = local_d0;

+    local_d0 = (VirtualDesktopBarElementViewModel *)uVar26;

+    __1__event_revoker_UIUIElement_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BBIA_AA_impl_winrt__QEAA_XZ

+              (&local_d8);

+    __1__event_revoker_UIUIElement_Xaml_UI_Windows_winrt___MP8type___abi_UIUIElement_Xaml_UI_Windows_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BBIA_AA_impl_winrt__QEAA_XZ

+              (&local_a8);

+    if (local_110 != (String *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_110);

+    }

+    plVar27 = (longlong *)

+              tip2::

+              tip_test<tip2::details::merged_data<SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest,SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest>_>

+              ::operator->((tip_test<tip2::details::merged_data<SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest,SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest>_>

+                            *)(this + 0xb8));

+    *(undefined1 *)(*plVar27 + 0x111) = 1;

+    tip2::

+    test_data_control<tip2::details::merged_data<SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest,SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest,SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest>_>

+              ((test_data_control<tip2::details::merged_data<SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest,SwitcherTip::_tip_VirtualDesktopSwitcherShowReliabiltyTest>_>

+                *)&local_118);

+    winrt::impl::

+    consume_Windows_Internal_Shell_XamlExplorerHost_IXamlExplorerHostWindow<winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostWindow>

+    ::XamlContent((consume_Windows_Internal_Shell_XamlExplorerHost_IXamlExplorerHostWindow<winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostWindow>

+                   *)(this + 0xe0),(IInspectable *)local_f8);

+    PositionVirtualDesktopSwitcher(this,param_1);

+    wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+    ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+              ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)local_e8);

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_f8);

+    winrt::hstring::~hstring((hstring *)&local_88);

+  }

+  return 0;

+}

+
```

## `CAppViewManager::_CheckTabletMode`  (modified)

```diff
--- CAppViewManager::_CheckTabletMode
+++ CAppViewManager::_CheckTabletMode
@@ -1,2 +1,53 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CAppViewManager::_CheckTabletMode : 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: long __cdecl CAppViewManager::_CheckTabletMode(void) __ptr64 */

+

+long __thiscall CAppViewManager::_CheckTabletMode(CAppViewManager *this)

+

+{

+  bool bVar1;

+  long lVar2;

+  uint uVar3;

+  void *unaff_retaddr;

+  int local_res10 [2];

+  longlong *local_res18 [2];

+  

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (bVar1) {

+    return 0;

+  }

+  local_res18[0] = (longlong *)0x0;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)local_res18);

+  lVar2 = IUnknown_QueryService

+                    (*(IUnknown **)(this + 0x78),(GUID *)&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a

+                     ,(IID *)&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,local_res18);

+  if (lVar2 < 0) {

+    uVar3 = 0x3b3;

+  }

+  else {

+    local_res10[0] = 0;

+    lVar2 = (**(code **)(*local_res18[0] + 0x18))(local_res18[0],local_res10);

+    if (-1 < lVar2) {

+      if (local_res10[0] == 0) {

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)local_res18);

+        return 0;

+      }

+      lVar2 = -0x7ff8ec61;

+      goto LAB_0;

+    }

+    uVar3 = 0x3b7;

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar3,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",lVar2);

+LAB_0:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)local_res18);

+  return lVar2;

+}

+
```

## `TabletModePositioner::TabletModePositioner`  (modified)

```diff
--- TabletModePositioner::TabletModePositioner
+++ TabletModePositioner::TabletModePositioner
@@ -1,78 +1,118 @@
 

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

-   guard_dispatch_icall */

-/* protected: long __cdecl PrivilegedOperationsServiceBase<class CPrivilegedDesktopOperations,class

-   CPrivilegedPresentationOperations,class CPrivilegedNotificationOperations,class

-   CPrivilegedArrangementOperations,class CPrivilegedForegroundOperations,class

-   CPrivilegedTabletModeOperations,class CPrivilegedSizeConstraintsOperations,class

-   PrivilegedWindowOwnershipOperations,class PrivilegedHotkeyOperations,class

-   PrivilegedWindowingOperations>::PublishPrivilegedOperations(struct IPrivilegedOperationsConsumer

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

+/* public: __cdecl TabletModePositioner::TabletModePositioner(void) __ptr64 */

 

-long __thiscall VirtualDesktopController::TabletModePositioner(TabletModePositioner *this)

+TabletModePositioner * __thiscall

+TabletModePositioner::TabletModePositioner(TabletModePositioner *this)

 

 {

-  long lVar1;

-  longlong lVar2;

-  longlong *in_RDX;

-  longlong *in_R8;

+  bool bVar1;

   void *unaff_retaddr;

   

-  lVar2 = *in_R8 + -0x4be9548a02d40f3e;

-  if (lVar2 == 0) {

-    lVar2 = in_R8[1] + 0x37e45101f0a30153;

+  Microsoft::WRL::

+  RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::ChainInterfaces<IApplicationViewStatePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,ITabletModePositionerInternal,ITabletModePositionerPriv,IStartDismissalPolicy,IShellPositionerViewHandoff,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>

+  ::

+  RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::ChainInterfaces<IApplicationViewStatePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,ITabletModePositionerInternal,ITabletModePositionerPriv,IStartDismissalPolicy,IShellPositionerViewHandoff,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>

+            ((RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::ChainInterfaces<IApplicationViewStatePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,ITabletModePositionerInternal,ITabletModePositionerPriv,IStartDismissalPolicy,IShellPositionerViewHandoff,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>

+              *)this);

+  *(undefined ***)this =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<CImmersiveShellComponentWithSite,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CImmersiveShellComponentWithSite>,Microsoft::WRL::ChainInterfaces<ITabletModePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::ChainInterfaces<IApplicationViewStatePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,ITabletModePositionerInternal,ITabletModePositionerPriv,IStartDismissalPolicy,IShellPositionerViewHandoff,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>_>__

+  ;

+  *(undefined ***)(this + 0x18) = &_vftable__for__IImmersiveShellComponent__;

+  *(undefined ***)(this + 0x20) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::ChainInterfaces<IApplicationViewStatePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,ITabletModePositionerInternal,ITabletModePositionerPriv,IStartDismissalPolicy,IShellPositionerViewHandoff,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>

+        ::

+        _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IServiceProvider>__

+  ;

+  *(undefined ***)(this + 0x58) =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,Microsoft::WRL::ChainInterfaces<ITabletModePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,Microsoft::WRL::ChainInterfaces<IApplicationViewStatePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,ITabletModePositionerInternal,ITabletModePositionerPriv,IStartDismissalPolicy,IShellPositionerViewHandoff,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlag___lTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>_>__

+  ;

+  *(undefined ***)(this + 0x60) =

+       &

+       _vftable__for__Microsoft__WRL__ChainInterfaces<IApplicationViewStatePositioner,IBasicPositioner,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>__

+  ;

+  *(undefined ***)(this + 0x68) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,ITabletModePositionerInternal,ITabletModePositionerPriv,IStartDismissalPolicy,IShellPositionerViewHandoff,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>__

+  ;

+  *(undefined ***)(this + 0x70) = &_vftable__for__ITabletModePositionerPriv__;

+  *(undefined ***)(this + 0x78) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IStartDismissalPolicy,IShellPositionerViewHandoff,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>__

+  ;

+  *(undefined ***)(this + 0x80) = &_vftable__for__IShellPositionerViewHandoff__;

+  *(undefined ***)(this + 0x88) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IApplicationViewChangeListener,ITabletModeChangeListener,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>__

+  ;

+  *(undefined ***)(this + 0x90) = &_vftable__for__ITabletModeChangeListener__;

+  *(undefined ***)(this + 0x98) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IImmersiveMonitorNotification,Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,IShellPositionerWindowingDelegationHandler,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>_>__

+  ;

+  *(undefined ***)(this + 0xa0) = &_vftable__for__IShellPositionerWindowingDelegationHandler__;

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

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IImmersiveShellHookNotification,IMultitaskingViewVisibilityNotification,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>__

+  ;

+  *(undefined ***)(this + 0xb0) = &_vftable__for__IMultitaskingViewVisibilityNotification__;

+  *(undefined ***)(this + 0xb8) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IShellTargetingChangeNotification,IFullScreenPositionerPrivateNotification,ITransitionNotification>__

+  ;

+  *(undefined ***)(this + 0xc0) = &_vftable__for__IFullScreenPositionerPrivateNotification__;

+  *(undefined ***)(this + 200) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,ITransitionNotification>__

+  ;

+  *(undefined8 *)(this + 0xe8) = 0;

+  *(undefined4 *)(this + 0xf0) = 0;

+  *(undefined8 *)(this + 0xf8) = 0;

+  *(undefined8 *)(this + 0x100) = 0;

+  *(undefined8 *)(this + 0x108) = 0;

+  *(undefined8 *)(this + 0x110) = 0;

+  *(undefined8 *)(this + 0x118) = 0;

+  *(undefined8 *)(this + 0x120) = 0;

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

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

+  *(undefined8 *)(this + 0x138) = 0;

+  *(undefined8 *)(this + 0x140) = 0;

+  *(undefined8 *)(this + 0x148) = 0;

+  *(undefined8 *)(this + 0x150) = 0;

+  *(undefined8 *)(this + 0x158) = 0;

+  *(undefined8 *)(this + 0x160) = 0;

+  *(undefined8 *)(this + 0x168) = 0;

+  *(undefined8 *)(this + 0x170) = 0;

+  *(undefined8 *)(this + 0x178) = 0;

+  *(undefined8 *)(this + 0x180) = 0;

+  *(undefined8 *)(this + 0x188) = 0;

+  *(undefined8 *)(this + 400) = 0;

+  *(undefined8 *)(this + 0x198) = 0;

+  *(undefined8 *)(this + 0x1a0) = 0;

+  *(undefined8 *)(this + 0x1a8) = 0;

+  *(undefined8 *)(this + 0x1b0) = 0;

+  *(undefined8 *)(this + 0x1b8) = 0;

+  *(undefined8 *)(this + 0x1c0) = 0;

+  *(undefined8 *)(this + 0x1c8) = 0;

+  *(undefined8 *)(this + 0x1d0) = 0;

+  *(undefined8 *)(this + 0x1d8) = 0;

+  *(undefined8 *)(this + 0x1e0) = 0;

+  *(undefined8 *)(this + 0x1ec) = 0;

+  *(undefined8 *)(this + 500) = 0;

+  *(undefined8 *)(this + 0x1fc) = 0;

+  *(undefined4 *)(this + 0x204) = 0;

+  *(undefined8 *)(this + 0x208) = 0;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (!bVar1) {

+    return this;

   }

-  if (lVar2 == 0) {

-    lVar1 = (**(code **)(*in_RDX + 0x18))();

-    if (-1 < lVar1) {

-      return 0;

-    }

-  }

-  else {

-    lVar2 = *in_R8 + -0x42c3d9b1ea149c36;

-    if (lVar2 == 0) {

-      lVar2 = in_R8[1] + 0x26d9e520aa41c171;

-    }

-    if (lVar2 == 0) {

-      lVar2 = *in_RDX;

-    }

-    else {

-      lVar2 = *in_R8 + -0x411012893dc37409;

-      if (lVar2 == 0) {

-        lVar2 = in_R8[1] + -0x7d6ac68330a0b6ad;

-      }

-      if (lVar2 == 0) {

-        lVar2 = *in_RDX;

-      }

-      else {

-        lVar2 = *in_R8 + -0x4d8ba3244aa32b90;

-        if (lVar2 == 0) {

-          lVar2 = in_R8[1] + 0x6fa4c14e5b378156;

-        }

-        if (lVar2 == 0) {

-          lVar2 = *in_RDX;

-        }

-        else {

-          lVar2 = *in_R8 + -0x45561336c3bafd5f;

-          if (lVar2 == 0) {

-            lVar2 = in_R8[1] + 0x59e5584469806048;

-          }

-          if (lVar2 != 0) {

-            lVar1 = func_0x00018007824c();

-            return lVar1;

-          }

-          lVar2 = *in_RDX;

-        }

-      }

-    }

-    lVar1 = (**(code **)(lVar2 + 0x18))();

-    if (-1 < lVar1) {

-      return 0;

-    }

-  }

-  wil::details::in1diag3::Return_Hr

-            (unaff_retaddr,0x27c,

-             "pcshell\\twinui\\privilegedoperations\\lib\\privilegedoperations.cpp",lVar1);

-  return lVar1;

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_FailFast_Unexpected

+            (unaff_retaddr,0x41,"pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp");

 }
```

## `UndockedSearchAppExperienceManager::ActivateAppAsync`  (modified)

```diff
--- UndockedSearchAppExperienceManager::ActivateAppAsync
+++ UndockedSearchAppExperienceManager::ActivateAppAsync
@@ -1,105 +1,604 @@
 

-/* 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 */

+/* private: void __cdecl UndockedSearchAppExperienceManager::ActivateAppAsync(bool,enum

+   Windows::Internal::Shell::Experience::ShellExperienceViewFocusOptions,struct winrt::hstring const

+   & __ptr64,enum winrt::WindowsUdk::UI::Shell::SearchAppActivationMode,unsigned short const *

+   __ptr64) __ptr64 */

 

 void __thiscall

-Windows::Internal::ShellHelpers::PropertySetHelper::ActivateAppAsync

+UndockedSearchAppExperienceManager::ActivateAppAsync

           (UndockedSearchAppExperienceManager *this,bool param_1,

           ShellExperienceViewFocusOptions param_2,hstring *param_3,SearchAppActivationMode param_4,

           ushort *param_5)

 

 {

-  longlong lVar1;

-  longlong *plVar2;

-  int iVar3;

-  long lVar4;

-  __uint64 _Var5;

-  consume_Windows_Internal_Shell_IRegistrationData<winrt::Windows::Internal::Shell::IRegistrationData>

+  tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

   *this_00;

-  hstring *this_01;

-  ushort *puVar6;

-  longlong lVar7;

-  undefined8 *puVar8;

-  undefined8 unaff_RSI;

-  void *unaff_RDI;

-  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

-  *unaff_R14;

-  void *in_stack_00000090;

+  shared_ptr<SnapInteraction::InteractionRecord> *this_01;

+  IUnknown *this_02;

+  hstring_header *phVar1;

+  longlong lVar2;

+  ICortanaShownEventArgs *pIVar3;

+  SearchAppActivationMode SVar4;

+  ushort *puVar5;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+  *this_03;

+  bool bVar6;

+  UndockedSearchAppExperienceManager UVar7;

+  char cVar8;

+  bool bVar9;

+  _Ref_count_base _Var10;

+  long lVar11;

+  uint uVar12;

+  hstring *phVar13;

+  longlong *plVar14;

+  _Ref_count_base *this_04;

+  WeakRef *pWVar15;

+  undefined8 *puVar16;

+  com_ptr<class_GamingFallbackWindow> *pcVar17;

+  undefined8 uVar18;

+  SearchAppActivatedEventArgs *pSVar19;

+  HWND__ *pHVar20;

+  com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+  *pcVar21;

+  int iVar22;

+  event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>_>

+  *this_05;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61883920> *this_06;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61866157> *this_07;

+  event<winrt::Windows::Foundation::TypedEventHandler<winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::Windows::Foundation::IInspectable>_>

+  *peVar23;

+  _Ref_count_base _Var24;

+  void *unaff_retaddr;

+  undefined1 auStackY_178 [32];

+  _Ref_count_base *local_138;

+  HWND__ local_130 [2];

+  UndockedSearchAppExperienceManager local_128;

+  undefined8 local_118;

+  undefined8 uStack_110;

+  ushort *local_108;

+  ShellExperienceViewFocusOptions local_100;

+  undefined4 uStack_fc;

+  longlong local_f8;

+  _Ref_count_base *local_f0;

+  _Ref_count_base *local_e8;

+  UndockedSearchAppExperienceManager *local_e0;

+  _Ref_count_base *local_d8;

+  undefined8 uStack_d0;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+  *local_c8;

+  ulonglong local_c0;

+  undefined8 local_b8;

+  undefined8 uStack_b0;

+  test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  local_a8 [64];

+  int local_68;

+  int iStack_64;

+  int iStack_60;

+  int iStack_5c;

+  ulonglong local_58;

   

+  puVar5 = param_5;

+  local_58 = __security_cookie ^ (ulonglong)auStackY_178;

+  local_c8 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+              *)CONCAT44(local_c8._4_4_,param_2);

+  local_130[0].unused._0_1_ = param_1;

+  local_100 = param_2;

+  local_108 = winrt::hstring::c_str(param_3);

+  SearchAppExperienceManagerTelemetry::

+  UndockedSearchAppExperienceManager_ActivateAppAsync<bool&___ptr64,unsigned_short_const*___ptr64,winrt::WindowsUdk::UI::Shell::SearchAppActivationMode&___ptr64,Windows::Internal::Shell::Experience::ShellExperienceViewFocusOptions&___ptr64>

+            ((bool *)local_130,&local_108,&param_4,&local_100);

+  this_00 = (tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+             *)(this + 0x348);

+  tip2::

+  tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::watch_errors(this_00);

+  *(ShellExperienceViewFocusOptions *)(this + 0x2f4) = param_2;

+  if (!param_1) {

+    RevokeShellViewButtonBoundsChangedEvent(this);

+  }

+  winrt::hstring::hstring((hstring *)&local_f8,puVar5);

+  if (*(longlong *)(this + 0x360) != 0) {

+    tip2::

+    tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::ensure_data(this_00);

+    winrt::impl::hstring_convert<unsigned_int>((uint)&local_138);

+    winrt::operator+((ushort *)&local_108,(hstring *)L"&AdoId=");

+    winrt::hstring::~hstring((hstring *)&local_138);

+    if (local_f8 == 0) {

+      phVar13 = (hstring *)winrt::operator+((ushort *)&local_f0,(hstring *)L"SessionId=");

+      plVar14 = (longlong *)winrt::operator+((hstring *)&local_138,phVar13);

+      if (&local_f8 != plVar14) {

+        phVar1 = (hstring_header *)*plVar14;

+        *plVar14 = 0;

+        winrt::handle_type<winrt::impl::hstring_traits>::attach

+                  ((handle_type<winrt::impl::hstring_traits> *)&local_f8,phVar1);

+      }

+      winrt::hstring::~hstring((hstring *)&local_138);

+      phVar13 = (hstring *)&local_f0;

+    }

+    else {

+      phVar13 = (hstring *)winrt::operator+((hstring *)&local_100,(ushort *)&local_f8);

+      phVar13 = (hstring *)winrt::operator+((hstring *)&local_f0,phVar13);

+      plVar14 = (longlong *)winrt::operator+((hstring *)&local_138,phVar13);

+      if (&local_f8 != plVar14) {

+        phVar1 = (hstring_header *)*plVar14;

+        *plVar14 = 0;

+        winrt::handle_type<winrt::impl::hstring_traits>::attach

+                  ((handle_type<winrt::impl::hstring_traits> *)&local_f8,phVar1);

+      }

+      winrt::hstring::~hstring((hstring *)&local_138);

+      winrt::hstring::~hstring((hstring *)&local_f0);

+      phVar13 = (hstring *)&local_100;

+    }

+    winrt::hstring::~hstring(phVar13);

+    winrt::hstring::~hstring((hstring *)&local_108);

+  }

+  *(ShellExperienceViewFocusOptions *)(this + 0x2f4) = param_2;

+  bVar6 = tip2::

+          tip_test<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+          ::operator_bool((tip_test<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+                           *)(this + 0x388));

+  if (bVar6) {

+    plVar14 = (longlong *)

+              tip2::tip_test<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>::

+              data((tip_test<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_> *

+                   )(this + 0x388));

+    *(undefined1 *)(*plVar14 + 0x115) = 1;

+    tip2::test_data_control<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>::

+    ~test_data_control<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>

+              ((test_data_control<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>

+                *)&local_108);

+    CompleteHideTest(this);

+  }

+  CancelSearchAppHideRequestedTimer(this);

+  CancelVisibilityChangedTimeoutTimer(this);

+  CancelPrelaunchDeferralTimer(this);

+  bVar6 = winrt::operator==(param_3,(ushort *)L"StartSearchBox");

+  SVar4 = param_4;

+  if (bVar6) {

+    iVar22 = 8;

+  }

+  else {

+    iVar22 = 2 - (uint)param_1;

+  }

+  *(int *)(this + 0x2f0) = iVar22;

+  if ((param_4 == 1) || (bVar6)) {

+    RegisterViewCoordinatorEvents(this);

+  }

+  else {

+    UnregisterViewCoordinatorEvents(this);

+  }

+  *(SearchAppActivationMode *)(this + 0x98) = SVar4;

+  local_128 = this[0x390];

+  if ((bVar6) || (UVar7 = (UndockedSearchAppExperienceManager)0x0, SVar4 == 1)) {

+    UVar7 = (UndockedSearchAppExperienceManager)0x1;

+  }

+  this[0x390] = UVar7;

+  local_108 = (ushort *)0x0;

+  this_01 = (shared_ptr<SnapInteraction::InteractionRecord> *)(this + 0x328);

+  puVar16 = *(undefined8 **)this_01;

+  if (puVar16 != (undefined8 *)0x0) {

+    local_f0 = (_Ref_count_base *)0x0;

+    local_138 = (_Ref_count_base *)*puVar16;

+    *puVar16 = 0;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_138);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_f0);

+    std::shared_ptr<SnapInteraction::InteractionRecord>::reset(this_01);

+  }

+  if (param_1) {

+    this_04 = operator_new(0x18);

+    *(undefined8 *)this_04 = 0;

+    *(undefined8 *)(this_04 + 8) = 0;

+    *(undefined4 *)(this_04 + 8) = 1;

+    *(undefined4 *)(this_04 + 0xc) = 1;

+    *(undefined ***)this_04 = &std::_Ref_count_obj2<DeferralHolder>::_vftable_;

+    local_138 = this_04 + 0x10;

+    *(longlong *)local_138 = 0;

+    local_e0 = (UndockedSearchAppExperienceManager *)((ulonglong)local_e0 & 0xffffffff00000000);

+    local_d8 = (_Ref_count_base *)0x0;

+    uStack_d0 = 0;

+    local_118 = this_04;

+    local_f0 = local_138;

+    local_e8 = this_04;

+    pWVar15 = Microsoft::WRL::Details::ComPtrRef<Microsoft::WRL::WeakRef>::

+              operator_class_Microsoft__WRL__WeakRef____ptr64

+                        ((ComPtrRef<Microsoft::WRL::WeakRef> *)&local_138);

+    lVar11 = Microsoft::WRL::AsWeak<UndockedSearchAppExperienceManager>(this,pWVar15);

+    winrt::check_hresult(&local_138,lVar11,&local_e0);

+    puVar16 = (undefined8 *)

+              std::

+              shared_ptr<wil::unique_any_t<wil::event_t<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>_>,wil::err_exception_policy>_>_>

+              ::

+              shared_ptr<wil::unique_any_t<wil::event_t<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>_>,wil::err_exception_policy>_>_>

+                        ((shared_ptr<wil::unique_any_t<wil::event_t<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>_>,wil::err_exception_policy>_>_>

+                          *)&local_e0,

+                         (shared_ptr<class_wil::unique_any_t<class_wil::event_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),struct_wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>,struct_wil::err_exception_policy>_>_>

+                          *)&local_f0);

+    uVar18 = *puVar16;

+    *puVar16 = *(undefined8 *)this_01;

+    *(undefined8 *)this_01 = uVar18;

+    uVar18 = puVar16[1];

+    puVar16[1] = *(undefined8 *)(this + 0x330);

+    *(undefined8 *)(this + 0x330) = uVar18;

+    if (local_d8 != (_Ref_count_base *)0x0) {

+      std::_Ref_count_base::_Decref(local_d8);

+    }

+    std::

+    shared_ptr<wil::unique_any_t<wil::event_t<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>_>,wil::err_exception_policy>_>_>

+    ::

+    shared_ptr<wil::unique_any_t<wil::event_t<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>_>,wil::err_exception_policy>_>_>

+              ((shared_ptr<wil::unique_any_t<wil::event_t<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>_>,wil::err_exception_policy>_>_>

+                *)&local_e0,

+               (shared_ptr<class_wil::unique_any_t<class_wil::event_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<void*___ptr64,void_(__cdecl*)(void*___ptr64)_noexcept,&void___cdecl_wil::details::CloseHandle(void*___ptr64),struct_wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>,struct_wil::err_exception_policy>_>_>

+                *)&local_f0);

+    winrt::Windows::Foundation::DeferralCompletedHandler::

+    DeferralCompletedHandler<<lambda_d0c95642d1e5d46a3e78810cc56b3dbe>_>(&local_138,&local_e0);

+    winrt::com_ptr<GamingFallbackWindow>::operator=

+              ((com_ptr<GamingFallbackWindow> *)&local_108,

+               (com_ptr<class_GamingFallbackWindow> *)&local_138);

+    if (local_138 != (_Ref_count_base *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_138);

+    }

+    std::_Ref_count_base::_Decref(this_04);

+  }

+  local_68 = (int)*(float *)(this + 0x88);

+  iStack_64 = (int)*(float *)(this + 0x8c);

+  local_118 = (_Ref_count_base *)CONCAT44(iStack_64,local_68);

+  iStack_60 = (int)(*(float *)(this + 0x88) + *(float *)(this + 0x90));

+  iStack_5c = (int)(*(float *)(this + 0x8c) + *(float *)(this + 0x94));

+  uStack_110 = (_Ref_count_base *)CONCAT44(iStack_5c,iStack_60);

+  local_b8 = 0;

+  uStack_b0 = 0;

+  cVar8 = (**(code **)(**(longlong **)(this + 0x68) + 0x28))(*(longlong **)(this + 0x68),&local_68);

+  if (cVar8 != '\0') {

+    puVar16 = (undefined8 *)

+              (**(code **)(**(longlong **)(this + 0x68) + 0x10))

+                        (*(longlong **)(this + 0x68),&local_e0,&local_68);

+    local_b8 = *puVar16;

+    uStack_b0 = puVar16[1];

+  }

+  local_138 = (_Ref_count_base *)0x0;

+  this_02 = (IUnknown *)(this + 0xb0);

+  bVar9 = winrt::Windows::Foundation::operator==(this_02,(IUnknown *)&local_138);

+  if (bVar9) {

+    pcVar17 = (com_ptr<class_GamingFallbackWindow> *)

+              winrt::make<winrt::WindowsUdk::UI::Shell::implementation::SearchAppHost>();

+    winrt::com_ptr<GamingFallbackWindow>::operator=

+              ((com_ptr<GamingFallbackWindow> *)this_02,pcVar17);

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_138);

+    local_f0 = (_Ref_count_base *)0x0;

+    local_e0 = (UndockedSearchAppExperienceManager *)((ulonglong)local_e0 & 0xffffffff00000000);

+    local_d8 = (_Ref_count_base *)0x0;

+    uStack_d0 = 0;

+    local_138 = (_Ref_count_base *)&local_f0;

+    pWVar15 = Microsoft::WRL::Details::ComPtrRef<Microsoft::WRL::WeakRef>::

+              operator_class_Microsoft__WRL__WeakRef____ptr64

+                        ((ComPtrRef<Microsoft::WRL::WeakRef> *)&local_138);

+    lVar11 = Microsoft::WRL::AsWeak<UndockedSearchAppExperienceManager>(this,pWVar15);

+    winrt::check_hresult(&local_138,lVar11,&local_e0);

+    lVar2 = *(longlong *)this_02;

+    uStack_110 = local_f0;

+    local_118 = (_Ref_count_base *)this;

+    if (local_f0 != (_Ref_count_base *)0x0) {

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

+    }

+    winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>::

+    EventHandler<winrt::Windows::Foundation::IInspectable><<lambda_3de6029cafb1b1797844d9dcaf37490b>_>

+              (&local_138,&local_118);

+    this_05 = (event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>_>

+               *)(lVar2 + 0x40);

+    if (lVar2 == 0) {

+      this_05 = (event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>_>

+                 *)&DAT_0;

+    }

+    winrt::

+    event<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable>_>::add

+              (this_05,(EventHandler<winrt::Windows::Foundation::IInspectable> *)&local_100);

+    *(ulonglong *)(this + 0xb8) = CONCAT44(uStack_fc,local_100);

+    if (local_138 != (_Ref_count_base *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_138);

+    }

+    lVar2 = *(longlong *)this_02;

+    local_d8 = local_f0;

+    local_e0 = this;

+    if (local_f0 != (_Ref_count_base *)0x0) {

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

+    }

+    winrt::Windows::Foundation::

+    TypedEventHandler<winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::hstring>::

+    TypedEventHandler<winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::hstring><<lambda_a82892a54ea4ee96ff53bffdf11fab0b>_>

+              (&local_138,&local_e0);

+    peVar23 = (event<winrt::Windows::Foundation::TypedEventHandler<winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::Windows::Foundation::IInspectable>_>

+               *)(lVar2 + 0x58);

+    if (lVar2 == 0) {

+      peVar23 = (event<winrt::Windows::Foundation::TypedEventHandler<winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::Windows::Foundation::IInspectable>_>

+                 *)&DAT_1;

+    }

+    uVar18 = winrt::impl::

+             make_agile_delegate<winrt::Windows::Foundation::TypedEventHandler<winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::hstring>_>

+                       ((TypedEventHandler<struct_winrt::WindowsUdk::UI::Shell::SearchAppHost,struct_winrt::hstring>

+                         *)&local_100);

+    winrt::

+    event<winrt::Windows::Foundation::TypedEventHandler<winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::Windows::Foundation::IInspectable>_>

+    ::add_agile(peVar23,&local_118,uVar18);

+    *(_Ref_count_base **)(this + 0xc0) = local_118;

+    if (local_138 != (_Ref_count_base *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_138);

+    }

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_f0);

+  }

+  pHVar20 = (HWND__ *)0x0;

+  local_118 = (_Ref_count_base *)0x0;

+  bVar9 = winrt::Windows::Foundation::operator==(this_02,(IUnknown *)&local_118);

+  if (bVar9) {

+    pcVar17 = (com_ptr<class_GamingFallbackWindow> *)

+              winrt::make<winrt::WindowsUdk::UI::Shell::implementation::SearchAppHost>();

+    winrt::com_ptr<GamingFallbackWindow>::operator=

+              ((com_ptr<GamingFallbackWindow> *)this_02,pcVar17);

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_118);

+  }

+  pSVar19 = winrt::impl::

+            create_and_initialize<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::hstring_const&___ptr64,winrt::WindowsUdk::UI::Shell::SearchAppActivationMode&___ptr64,winrt::Windows::Foundation::Rect&___ptr64,winrt::Windows::Foundation::DeferralCompletedHandler&___ptr64,bool&___ptr64,winrt::hstring&___ptr64,winrt::WindowsUdk::UI::Shell::SearchAppHost&___ptr64>

+                      (param_3,&param_4,(Rect *)&local_b8,(DeferralCompletedHandler *)&local_108,

+                       (bool *)local_130,(hstring *)&local_f8,(SearchAppHost *)this_02);

+  local_c0 = -(ulonglong)(pSVar19 != (SearchAppActivatedEventArgs *)0x0) &

+             (ulonglong)(pSVar19 + 0x10);

+  CancelDeferredSuspensionTimer(this);

+  CancelLastResortSuspensionTimer(this);

+  cVar8 = false;

+  if (*(longlong *)(this + 0x38) == 0) goto LAB_2;

+  bVar9 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61883920>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61883920> *)

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

+                      ::__l2::impl);

+  if (bVar9) {

+    pHVar20 = ExperienceManagerUtils::WindowFromViewWrapper(*(IViewWrapper **)(this + 0x38));

+  }

+  cVar8 = (**(code **)(**(longlong **)(this + 0x60) + 0x30))

+                    (*(longlong **)(this + 0x60),*(undefined8 *)(this + 0x38),pHVar20);

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

+             ::__l2::impl;

+  bVar9 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61883920>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61883920> *)

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

+                      ::__l2::impl);

+  if (bVar9) {

+    if (cVar8 != '\0') {

+      bVar9 = DetectUnresponsiveProcess((UndockedSearchAppExperienceManager *)this_06,pHVar20);

+      if (bVar9) {

+        plVar14 = (longlong *)

+                  tip2::

+                  tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                  ::operator->(this_00);

+        *(undefined1 *)(*plVar14 + 0x155) = 1;

+        tip2::

+        test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                  ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                    *)&local_118);

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

+                   ::__l2::impl;

+        bVar9 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61866157>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61866157> *)

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

+                            ::__l2::impl);

+        if (bVar9) {

+          TerminateUnresponsiveProcess((UndockedSearchAppExperienceManager *)this_07,local_130);

+          plVar14 = (longlong *)

+                    tip2::

+                    tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                    ::operator->(this_00);

+          *(undefined1 *)(*plVar14 + 0x156) = (undefined1)local_130[0].unused;

+          tip2::

+          test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+          ::

+          ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                    ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                      *)&local_118);

+          if (local_130[0].unused._1_1_ != '\0') {

+            cVar8 = '\0';

+            plVar14 = (longlong *)

+                      tip2::

+                      tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                      ::operator->(this_00);

+            *(undefined1 *)(*plVar14 + 0x157) = 1;

+            tip2::

+            test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+            ::

+            ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                      ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                        *)&local_118);

+            CleanupViewWrapper(this);

+            goto LAB_3;

+          }

+        }

+      }

+LAB_4:

+      _Var10 = (_Ref_count_base)

+               (**(code **)(**(longlong **)(this + 0x60) + 0x20))

+                         (*(longlong **)(this + 0x60),*(undefined8 *)(this + 0x38));

+      _Var24 = (_Ref_count_base)0x0;

+      local_100 = 0;

+      iVar22 = (**(code **)(**(longlong **)(this + 0x38) + 0x160))

+                         (*(longlong **)(this + 0x38),&local_100);

+      if ((-1 < iVar22) && (local_100 == 4)) {

+        _Var24 = (_Ref_count_base)0x1;

+      }

+      bVar9 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61846764>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61846764> *)

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

+                          ::__l2::impl);

+      plVar14 = *(longlong **)(this + 0x38);

+      if (bVar9) {

+        uVar12 = (**(code **)(*plVar14 + 0x158))(plVar14,4);

+        local_f0 = (_Ref_count_base *)CONCAT44(local_f0._4_4_,4);

+        local_138 = (_Ref_count_base *)CONCAT44(local_138._4_4_,local_100);

+        local_130[0].unused = uVar12;

+        SearchAppExperienceManagerTelemetry::

+        UndockedSearchAppExperienceManager_ActivateAppAsync_NavigateResult<unsigned_int,unsigned_int,long_const&___ptr64>

+                  ((uint *)&local_138,(uint *)&local_f0,&local_130[0].unused);

+        if ((int)uVar12 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0xc76,

+                     "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                     ,uVar12);

+        }

+      }

+      else {

+        iVar22 = (**(code **)(*plVar14 + 0x158))(plVar14,4);

+        if (iVar22 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0xc7a,

+                     "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                     ,iVar22);

+        }

+      }

+      pcVar21 = tip2::

+                tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                ::ensure_data(this_00);

+      tip2::

+      test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+      ::

+      test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                  *)&local_138,pcVar21);

+      local_138[0x120] = (_Ref_count_base)0x1;

+      local_138[0x121] = _Var10;

+      local_138[0x122] = _Var24;

+      local_138[0x11d] = (_Ref_count_base)0x1;

+      tip2::

+      test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                  *)&local_138);

+      if (((int)local_c8 != 2) && (lVar11 = BringToForeground(this), lVar11 < 0)) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0xca1,

+                   "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                   ,lVar11);

+      }

+      if (!bVar6) {

+        uVar12 = (uint)local_130[0].unused >> 8;

+        local_130[0].unused = local_130[0].unused & 0xffffff00;

+        if (this[0x390] != (UndockedSearchAppExperienceManager)0x0) {

+          local_130[0].unused = CONCAT31((int3)uVar12,local_128 != this[0x390]);

+        }

+        puVar16 = (undefined8 *)

+                  Microsoft::WRL::Details::

+                  Make<CCortanaShownEventArgs,Windows::Foundation::Rect&___ptr64,bool&___ptr64>

+                            ((Rect *)&local_c8,(bool *)(this + 0x88));

+        this_03 = local_c8;

+        pIVar3 = (ICortanaShownEventArgs *)*puVar16;

+        *puVar16 = 0;

+        if (local_c8 !=

+            (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+             *)0x0) {

+          local_c8 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+                      *)0x0;

+          Microsoft::WRL::Details::

+          RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+          ::Release(this_03);

+        }

+        Microsoft::WRL::

+        EventSource<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,Windows::Internal::Shell::Experience::ICortanaShownEventArgs*___ptr64>,Microsoft::WRL::InvokeModeOptions<2>_>

+        ::

+        InvokeAll<UndockedSearchAppExperienceManager*___ptr64,Windows::Internal::Shell::Experience::ICortanaShownEventArgs*___ptr64>

+                  ((EventSource<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,Windows::Internal::Shell::Experience::ICortanaShownEventArgs*___ptr64>,Microsoft::WRL::InvokeModeOptions<2>_>

+                    *)(this + 0x150),this,pIVar3);

+        if (pIVar3 != (ICortanaShownEventArgs *)0x0) {

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

+        }

+      }

+      goto LAB_2;

+    }

+  }

+  else if (cVar8 != '\0') goto LAB_4;

+LAB_3:

+  bVar9 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61106536>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61106536> *)

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

+                      ::__l2::impl);

+  if ((bVar9) && (this[0x40] == (UndockedSearchAppExperienceManager)0x0)) {

+    plVar14 = (longlong *)

+              tip2::

+              tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+              ::operator->(this_00);

+    *(undefined1 *)(*plVar14 + 0x124) = 1;

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+              ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                *)&local_118);

+    SearchAppExperienceManagerTelemetry::

+    UndockedSearchAppExperienceManager_SkippedCleanupWhenHwndNotLinked();

+  }

+  else {

+    plVar14 = (longlong *)

+              tip2::

+              tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+              ::operator->(this_00);

+    *(undefined1 *)(*plVar14 + 0x123) = 1;

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+              ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                *)&local_118);

+    CleanupViewWrapper(this);

+  }

+LAB_2:

+  BoostPriority(this);

+  if (*(longlong **)(this + 0x80) == (longlong *)0x0) {

+    ActivateSearch(this,(SearchAppActivatedEventArgs *)&local_c0,(bool)cVar8);

+  }

+  else {

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

+  }

+  if (bVar6) {

+    StartVisibilityChangedTimeoutTimer(this);

+  }

+  DisableActivationTimeoutPolicy(this);

   winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

-  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)this);

-  _Var5 = std::

-          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

-          ::find(unaff_R14,(ushort *)L"Source=SearchApp",0);

-  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

-  ::_Tidy_deallocate(unaff_R14);

-  if (_Var5 == 0xffffffffffffffff) {

-    lVar4 = XamlLauncher::Hide((XamlLauncher *)(*(longlong *)((longlong)unaff_RDI + 0xc1) + 0x40));

-    if (lVar4 < 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (in_stack_00000090,0x86a,"pcshell\\twinui\\xamllauncher\\lib\\xamllauncher.cpp",

-                 lVar4);

-    }

-  }

-  else {

-    lVar1 = *(longlong *)((longlong)unaff_RDI + 0xc1);

-    this_00 = (consume_Windows_Internal_Shell_IRegistrationData<winrt::Windows::Internal::Shell::IRegistrationData>

-               *)winrt::impl::

-                 consume_Windows_Foundation_IWwwFormUrlDecoderEntry<winrt::Windows::Foundation::IWwwFormUrlDecoderEntry>

-                 ::Value((consume_Windows_Foundation_IWwwFormUrlDecoderEntry<winrt::Windows::Foundation::IWwwFormUrlDecoderEntry>

-                          *)(*(longlong *)((longlong)unaff_RDI + 0xa0) + 0xc0));

-    this_01 = (hstring *)

-              winrt::impl::

-              consume_Windows_Internal_Shell_IRegistrationData<winrt::Windows::Internal::Shell::IRegistrationData>

-              ::DisplayName(this_00);

-    puVar8 = (undefined8 *)((longlong)unaff_RDI + 0x80);

-    puVar6 = winrt::hstring::c_str(this_01);

-    *puVar8 = puVar6;

-    lVar7 = Microsoft::WRL::Wrappers::HStringReference::

-            HStringReference<unsigned_short_const*___ptr64>

-                      ((HStringReference *)((longlong)unaff_RDI + 0x60));

-    plVar2 = *(longlong **)(lVar1 + 0x178);

-    if (plVar2 == (longlong *)0x0) {

-      iVar3 = -0x7ff8fb70;

-    }

-    else {

-      iVar3 = (**(code **)(*plVar2 + 0x58))(plVar2,*(undefined8 *)(lVar7 + 0x18));

-    }

-    if (iVar3 < 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (in_stack_00000090,0x866,"pcshell\\twinui\\xamllauncher\\lib\\xamllauncher.cpp",

-                 iVar3);

-    }

-    *(undefined8 *)((longlong)unaff_RDI + 0x78) = unaff_RSI;

-    winrt::hstring::~hstring((hstring *)((longlong)unaff_RDI + 0x90));

-    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

-    ~IArrangedWindowResizeStartedEventArgs

-              ((IArrangedWindowResizeStartedEventArgs *)((longlong)unaff_RDI + 0x88));

-  }

-  winrt::impl::

-  consume_Windows_Internal_ComposableShell_Multitasking_ISwitchItemDataView<winrt::Windows::Internal::ComposableShell::Multitasking::ISwitchItemDataView>

-  ::ReevaluateAll((consume_Windows_Internal_ComposableShell_Multitasking_ISwitchItemDataView<winrt::Windows::Internal::ComposableShell::Multitasking::ISwitchItemDataView>

-                   *)(*(longlong *)((longlong)unaff_RDI + 0xa0) + 0xc0));

-  winrt::impl::

-  consume_Windows_Internal_Shell_SnapComponent_ISnapFlyoutInstance<winrt::Windows::Internal::Shell::SnapComponent::ISnapFlyoutInstance>

-  ::Show((consume_Windows_Internal_Shell_SnapComponent_ISnapFlyoutInstance<winrt::Windows::Internal::Shell::SnapComponent::ISnapFlyoutInstance>

-          *)((longlong)unaff_RDI + 0x10));

-  if (*(longlong *)((longlong)unaff_RDI + 0x18) != 0) {

-    winrt::com_ptr<XamlLauncher>::unconditional_release_ref

-              ((com_ptr<XamlLauncher> *)((longlong)unaff_RDI + 0x18));

-  }

-  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

-  ~IArrangedWindowResizeStartedEventArgs

-            ((IArrangedWindowResizeStartedEventArgs *)((longlong)unaff_RDI + 0x10));

-  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

-  ~IArrangedWindowResizeStartedEventArgs

-            ((IArrangedWindowResizeStartedEventArgs *)((longlong)unaff_RDI + 0xc9));

-  if (*(short *)((longlong)unaff_RDI + 10) != (short)unaff_RSI) {

-    operator_delete__(unaff_RDI);

-  }

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_c0);

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

+    winrt::

+    com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+    ::unconditional_release_ref

+              ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                *)&local_108);

+  }

+  winrt::hstring::~hstring((hstring *)&local_f8);

+  tip2::

+  test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::

+  ~test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+            (local_a8);

   return;

 }
```

## `KeyboardHosting::TabTipAdapter::OnButtomEdgeCandidateWindowAlignmentChanged`  (modified)

```diff
--- KeyboardHosting::TabTipAdapter::OnButtomEdgeCandidateWindowAlignmentChanged
+++ KeyboardHosting::TabTipAdapter::OnButtomEdgeCandidateWindowAlignmentChanged
@@ -1,2 +1,64 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KeyboardHosting::TabTipAdapter::OnButtomEdgeCandidateWindowAlignmentChanged : 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: long __cdecl

+   KeyboardHosting::TabTipAdapter::OnButtomEdgeCandidateWindowAlignmentChanged(struct

+   Windows::UI::Internal::Text::Core::ICoreKeyboardManager * __ptr64,struct

+   Windows::UI::Internal::Text::Core::ICoreKeyboardManagerBottomEdgeCandidateWindowAlignmentChangedEventArgs

+   * __ptr64) __ptr64 */

+

+long __thiscall

+KeyboardHosting::TabTipAdapter::OnButtomEdgeCandidateWindowAlignmentChanged

+          (TabTipAdapter *this,ICoreKeyboardManager *param_1,

+          ICoreKeyboardManagerBottomEdgeCandidateWindowAlignmentChangedEventArgs *param_2)

+

+{

+  bool bVar1;

+  int iVar2;

+  uint uVar3;

+  void *unaff_retaddr;

+  undefined1 local_res18 [8];

+  int local_res20 [2];

+  

+  local_res18[0] = 0;

+  iVar2 = (**(code **)(*(longlong *)param_2 + 0x30))(param_2,local_res18);

+  if (iVar2 < 0) {

+    uVar3 = 0x34f;

+  }

+  else {

+    local_res20[0] = 0;

+    iVar2 = (**(code **)(**(longlong **)(this + 0x78) + 0x40))

+                      (*(longlong **)(this + 0x78),local_res18[0],local_res20);

+    if (iVar2 < 0) {

+      uVar3 = 0x352;

+    }

+    else {

+      if (local_res20[0] != 3) {

+        return 0;

+      }

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

+              __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_CoreKeyboardMultiClient> *

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

+                                    ::__l2::impl);

+      if (bVar1) {

+        iVar2 = RequestPositionAndSizeUpdateForView(this,1);

+        if (-1 < iVar2) {

+          return 0;

+        }

+        uVar3 = 0x358;

+      }

+      else {

+        iVar2 = RequestPositionAndSizeUpdate(this);

+        if (-1 < iVar2) {

+          return 0;

+        }

+        uVar3 = 0x35c;

+      }

+    }

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar3,

+             "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar2);

+  return iVar2;

+}

+
```

## `KeyboardHosting::TabTipAdapter::ProcessShowRequestWithStoredData`  (modified)

```diff
--- KeyboardHosting::TabTipAdapter::ProcessShowRequestWithStoredData
+++ KeyboardHosting::TabTipAdapter::ProcessShowRequestWithStoredData
@@ -1,2 +1,97 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KeyboardHosting::TabTipAdapter::ProcessShowRequestWithStoredData : 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: Type propagation algorithm not settling */

+/* private: long __cdecl KeyboardHosting::TabTipAdapter::ProcessShowRequestWithStoredData(class

+   Microsoft::WRL::ComPtr<struct Windows::Foundation::Collections::IVectorView<struct

+   Windows::UI::Internal::Text::Core::CoreKeyboardPositionAndSizeOption> >,enum

+   Windows::UI::Internal::Text::Core::CoreKeyboardViewType,enum

+   Windows::UI::Internal::Text::Core::CoreKeyboardModality) __ptr64 */

+

+long __thiscall

+KeyboardHosting::TabTipAdapter::ProcessShowRequestWithStoredData

+          (TabTipAdapter *this,ComPtr<IImmersiveSystemModeNotification> *param_2,

+          CoreKeyboardViewType param_3,undefined4 param_4)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  bool bVar3;

+  long lVar4;

+  uint uVar5;

+  void *unaff_retaddr;

+  undefined1 local_48;

+  undefined1 local_47 [3];

+  uint local_44 [3];

+  undefined8 local_38 [2];

+  

+  LogForegroundAppInfo(this,param_3);

+  if (param_3 == 0) {

+    lVar4 = SetOverrideMonitorSizeForSIP(this);

+    if (lVar4 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0xae2,

+                 "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",lVar4);

+    }

+  }

+  lVar4 = SetTrackSelectionPosition(this,true);

+  if (lVar4 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xae6,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",lVar4);

+    goto LAB_0;

+  }

+  local_47[0] = 0;

+  local_48 = 0;

+  local_44[1] = 0;

+  local_38[0] = 0;

+  plVar1 = *(longlong **)(this + 0x78);

+  pcVar2 = *(code **)(*plVar1 + 0x130);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)local_38);

+  lVar4 = (*pcVar2)(plVar1,param_3,local_47,&local_48,local_44 + 1,local_38);

+  if (lVar4 < 0) {

+    uVar5 = 0xaec;

+  }

+  else {

+    local_44[0] = 0;

+    bVar3 = GetApplicationViewIdIfExists(this,param_3,local_44);

+    if (bVar3) {

+      bVar3 = InvokeIsViewShown(this,local_44[0]);

+      UpdateViewVisibilityInShellPreference(this,local_44[0],bVar3);

+    }

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_CoreKeyboardMultiClient>::

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_CoreKeyboardMultiClient> *)

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

+                                 ::__l2::impl);

+    plVar1 = *(longlong **)(this + 0x20);

+    if (bVar3) {

+      lVar4 = (**(code **)(*plVar1 + 0x2e0))

+                        (plVar1,*(undefined8 *)param_2,param_4,local_47[0],local_48,1,param_3,

+                         param_3);

+      if (-1 < lVar4) {

+LAB_1:

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)local_38);

+        lVar4 = 0;

+        goto LAB_0;

+      }

+      uVar5 = 0xb0e;

+    }

+    else {

+      lVar4 = (**(code **)(*plVar1 + 0x240))

+                        (plVar1,*(undefined8 *)param_2,param_4,local_47[0],local_48,1,param_3);

+      if (-1 < lVar4) goto LAB_1;

+      uVar5 = 0xb18;

+    }

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar5,

+             "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",lVar4);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)local_38);

+LAB_0:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(param_2);

+  return lVar4;

+}

+
```

## `TouchKeyboardExperienceManager::ShutdownServices`  (modified)

```diff
--- TouchKeyboardExperienceManager::ShutdownServices
+++ TouchKeyboardExperienceManager::ShutdownServices
@@ -1,2 +1,78 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TouchKeyboardExperienceManager::ShutdownServices : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual long __cdecl TouchKeyboardExperienceManager::ShutdownServices(struct

+   IProfferService * __ptr64) __ptr64 */

+

+long __thiscall

+TouchKeyboardExperienceManager::ShutdownServices

+          (TouchKeyboardExperienceManager *this,IProfferService *param_1)

+

+{

+  InputAppPreloader *pIVar1;

+  TabTipAdapter *this_00;

+  bool bVar2;

+  longlong *plVar3;

+  TouchKeyboardExperienceManager *this_01;

+  tip_test<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+  *this_02;

+  longlong local_res8;

+  

+  this_01 = this;

+  TouchKeyboardExperienceTelemetryLogger::OnShutdownServices();

+  pIVar1 = *(InputAppPreloader **)(this + 0x398);

+  *(undefined8 *)(this + 0x398) = 0;

+  if (pIVar1 != (InputAppPreloader *)0x0) {

+    std::default_delete<KeyboardHosting::InputAppPreloader>::operator()

+              ((default_delete<KeyboardHosting::InputAppPreloader> *)this_01,pIVar1);

+  }

+  wil::details::

+  unique_storage<wil::details::resource_policy<HWINEVENTHOOK__*___ptr64,int_(__cdecl*)(HWINEVENTHOOK__*___ptr64),&int___cdecl_UnhookWinEvent(struct_HWINEVENTHOOK__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HWINEVENTHOOK__*___ptr64,HWINEVENTHOOK__*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<HWINEVENTHOOK__*___ptr64,int_(__cdecl*)(HWINEVENTHOOK__*___ptr64),&int___cdecl_UnhookWinEvent(struct_HWINEVENTHOOK__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HWINEVENTHOOK__*___ptr64,HWINEVENTHOOK__*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x240),(HWINEVENTHOOK__ *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<HWINEVENTHOOK__*___ptr64,int_(__cdecl*)(HWINEVENTHOOK__*___ptr64),&int___cdecl_UnhookWinEvent(struct_HWINEVENTHOOK__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HWINEVENTHOOK__*___ptr64,HWINEVENTHOOK__*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<HWINEVENTHOOK__*___ptr64,int_(__cdecl*)(HWINEVENTHOOK__*___ptr64),&int___cdecl_UnhookWinEvent(struct_HWINEVENTHOOK__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HWINEVENTHOOK__*___ptr64,HWINEVENTHOOK__*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x238),(HWINEVENTHOOK__ *)0x0);

+  UnsubscribeTouchKeyboardWnfNotifications(this + -0x30);

+  this_00 = *(TabTipAdapter **)(this + 0x210);

+  if (this_00 != (TabTipAdapter *)0x0) {

+    KeyboardHosting::TabTipAdapter::UnInitialize(this_00);

+    local_res8 = 0;

+    winrt::com_ptr<GamingFallbackWindow>::operator=

+              ((com_ptr<GamingFallbackWindow> *)(this + 0x210),

+               (com_ptr<class_GamingFallbackWindow> *)&local_res8);

+    if (local_res8 != 0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_res8);

+    }

+  }

+  *(undefined8 *)(this + 0x2d0) = 0;

+  *(undefined8 *)(this + 0x2d8) = 0;

+  *(undefined8 *)(this + 0x2e0) = 0;

+  this_02 = (tip_test<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+             *)(this + 0x848);

+  bVar2 = tip2::

+          tip_test<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+          ::operator_bool(this_02);

+  if (bVar2) {

+    plVar3 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+             ::operator->(this_02);

+    *(undefined1 *)(*plVar3 + 0x11f) = 1;

+    tip2::

+    test_data_control<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+              ((test_data_control<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+                *)&local_res8);

+    tip2::

+    tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+    ::complete((tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+                *)this_02);

+  }

+  return 0;

+}

+
```

## `CMultitaskingViewServiceProvider::_StartMTVThread`  (modified)

```diff
--- CMultitaskingViewServiceProvider::_StartMTVThread
+++ CMultitaskingViewServiceProvider::_StartMTVThread
@@ -1,2 +1,788 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CMultitaskingViewServiceProvider::_StartMTVThread : 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: long __cdecl CMultitaskingViewServiceProvider::_StartMTVThread(void) __ptr64 */

+

+long __thiscall

+CMultitaskingViewServiceProvider::_StartMTVThread(CMultitaskingViewServiceProvider *this)

+

+{

+  undefined8 *puVar1;

+  code *pcVar2;

+  longlong *plVar3;

+  bool bVar4;

+  long lVar5;

+  HRESULT HVar6;

+  BOOL BVar7;

+  CMarshaledInterface *pCVar8;

+  HANDLE pvVar9;

+  uint uVar10;

+  CMarshaledInterface *this_00;

+  IUnknown *pIVar11;

+  __uint64 _Var12;

+  void *unaff_retaddr;

+  IUnknown *local_e8;

+  IUnknown *local_e0;

+  IUnknown *local_d8;

+  IUnknown *local_d0;

+  IUnknown *local_c8;

+  IUnknown *local_c0;

+  IUnknown *local_b8;

+  IUnknown *local_b0;

+  IUnknown *local_a8;

+  IUnknown *local_a0;

+  IUnknown *local_98;

+  IUnknown *local_90;

+  IUnknown *local_88;

+  IUnknown *local_80;

+  IUnknown *local_78;

+  IUnknown *local_70;

+  IUnknown *local_68;

+  IUnknown *local_60;

+  IUnknown *local_58;

+  IUnknown *local_50;

+  IUnknown *local_48;

+  IUnknown *local_40;

+  CMarshaledInterface *local_38 [2];

+  

+  pCVar8 = operator_new(200,&std::nothrow);

+  this_00 = (CMarshaledInterface *)0x0;

+  if (pCVar8 != (CMarshaledInterface *)0x0) {

+    *(undefined8 *)(pCVar8 + 0xc0) = 0;

+    *(undefined8 *)pCVar8 = 0;

+    *(undefined8 *)(pCVar8 + 8) = 0;

+    *(undefined8 *)(pCVar8 + 0x10) = 0;

+    *(undefined8 *)(pCVar8 + 0x18) = 0;

+    *(undefined8 *)(pCVar8 + 0x20) = 0;

+    *(undefined8 *)(pCVar8 + 0x28) = 0;

+    *(undefined8 *)(pCVar8 + 0x30) = 0;

+    *(undefined8 *)(pCVar8 + 0x38) = 0;

+    *(undefined8 *)(pCVar8 + 0x40) = 0;

+    *(undefined8 *)(pCVar8 + 0x48) = 0;

+    *(undefined8 *)(pCVar8 + 0x50) = 0;

+    *(undefined8 *)(pCVar8 + 0x58) = 0;

+    *(undefined8 *)(pCVar8 + 0x60) = 0;

+    *(undefined8 *)(pCVar8 + 0x68) = 0;

+    *(undefined8 *)(pCVar8 + 0x70) = 0;

+    *(undefined8 *)(pCVar8 + 0x78) = 0;

+    *(undefined8 *)(pCVar8 + 0x80) = 0;

+    *(undefined8 *)(pCVar8 + 0x88) = 0;

+    *(undefined8 *)(pCVar8 + 0x90) = 0;

+    *(undefined8 *)(pCVar8 + 0x98) = 0;

+    *(undefined8 *)(pCVar8 + 0xa0) = 0;

+    *(undefined8 *)(pCVar8 + 0xa8) = 0;

+    *(undefined8 *)(pCVar8 + 0xb0) = 0;

+    *(undefined8 *)(pCVar8 + 0xb8) = 0;

+    this_00 = pCVar8;

+  }

+  local_38[0] = this_00;

+  if (this_00 == (CMarshaledInterface *)0x0) {

+    lVar5 = -0x7ff8fff2;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x12e,

+               "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",

+               -0x7ff8fff2);

+    goto LAB_0;

+  }

+  local_e8 = (IUnknown *)0x0;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_e8);

+  Microsoft::WRL::Details::RuntimeClassBaseT<2>::

+  AsIID<Microsoft::WRL::Details::RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,CImmersiveShellComponentWithSite,IMultitaskingViewServiceProvider,IMultitaskingViewTaskScheduler>_>

+            ((RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,CImmersiveShellComponentWithSite,IMultitaskingViewServiceProvider,IMultitaskingViewTaskScheduler>

+              *)this,(_GUID *)&_GUID_90adbab9_cdb8_43dd_8daa_ba1180be5215,&local_e8);

+  lVar5 = CMarshaledInterface::Marshal

+                    (this_00,(_GUID *)&_GUID_90adbab9_cdb8_43dd_8daa_ba1180be5215,local_e8,2);

+  if (lVar5 < 0) {

+    uVar10 = 0x133;

+LAB_1:

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar10,

+               "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",lVar5);

+  }

+  else {

+    lVar5 = CMarshaledInterface::Marshal

+                      (this_00 + 8,(_GUID *)&_GUID_1841c6d7_4f9d_42c0_af41_8747538f10e5,

+                       *(IUnknown **)(this + 0xe0),2);

+    if (lVar5 < 0) {

+      uVar10 = 0x135;

+      goto LAB_1;

+    }

+    local_e0 = (IUnknown *)0x0;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_e0);

+    lVar5 = IUnknown_QueryService

+                      (*(IUnknown **)(this + 0x10),

+                       (GUID *)&_GUID_e0fe7384_5482_4659_ab2c_4ff038948779,

+                       (IID *)&_GUID_e0fe7384_5482_4659_ab2c_4ff038948779,&local_e0);

+    if (lVar5 < 0) {

+      uVar10 = 0x138;

+LAB_2:

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,uVar10,

+                 "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",lVar5

+                );

+    }

+    else {

+      lVar5 = CMarshaledInterface::Marshal

+                        (this_00 + 0x18,(_GUID *)&_GUID_e0fe7384_5482_4659_ab2c_4ff038948779,

+                         local_e0,2);

+      if (lVar5 < 0) {

+        uVar10 = 0x139;

+        goto LAB_2;

+      }

+      local_d8 = (IUnknown *)0x0;

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_d8);

+      lVar5 = IUnknown_QueryService

+                        (*(IUnknown **)(this + 0x10),

+                         (GUID *)&_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,

+                         (IID *)&_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,&local_d8);

+      if (lVar5 < 0) {

+        uVar10 = 0x13c;

+LAB_3:

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,uVar10,

+                   "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",

+                   lVar5);

+      }

+      else {

+        lVar5 = CMarshaledInterface::Marshal

+                          (this_00 + 0x10,(_GUID *)&_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,

+                           local_d8,2);

+        if (lVar5 < 0) {

+          uVar10 = 0x13d;

+          goto LAB_3;

+        }

+        local_c8 = (IUnknown *)0x0;

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

+        HVar6 = IUnknown_QueryService

+                          (*(IUnknown **)(this + 0x10),(GUID *)&SID_VirtualDesktopManager,

+                           (IID *)&_GUID_4970ba3d_fd4e_4647_bea3_d89076ef4b9c,&local_c8);

+        if (-1 < HVar6) {

+          CMarshaledInterface::Marshal

+                    (this_00 + 0x20,(_GUID *)&_GUID_4970ba3d_fd4e_4647_bea3_d89076ef4b9c,local_c8,2)

+          ;

+        }

+        local_d0 = (IUnknown *)0x0;

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_d0);

+        HVar6 = IUnknown_QueryService

+                          (*(IUnknown **)(this + 0x10),(GUID *)&SID_VirtualDesktopPinnedApps,

+                           (IID *)&_GUID_4ce81583_1e4c_4632_a621_07a53543148f,&local_d0);

+        if ((HVar6 < 0) ||

+           (lVar5 = CMarshaledInterface::Marshal

+                              (this_00 + 0x28,(_GUID *)&_GUID_4ce81583_1e4c_4632_a621_07a53543148f,

+                               local_d0,2), -1 < lVar5)) {

+          bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::__private_IsEnabled

+                            ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                              ::__l2::impl);

+          if (bVar4) {

+LAB_4:

+            local_c0 = (IUnknown *)0x0;

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_c0);

+            HVar6 = IUnknown_QueryService

+                              (*(IUnknown **)(this + 0x10),

+                               (GUID *)&SID_VirtualDesktopNotificationService,

+                               (IID *)&_GUID_0cd45e71_d927_4f15_8b0a_8fef525337bf,&local_c0);

+            if ((HVar6 < 0) ||

+               (lVar5 = CMarshaledInterface::Marshal

+                                  (this_00 + 0x38,

+                                   (_GUID *)&_GUID_0cd45e71_d927_4f15_8b0a_8fef525337bf,local_c0,2),

+               -1 < lVar5)) {

+              local_b8 = (IUnknown *)0x0;

+              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                        ((ComPtr<IImmersiveSystemModeNotification> *)&local_b8);

+              lVar5 = IUnknown_QueryService

+                                (*(IUnknown **)(this + 0x10),(GUID *)&DAT_5,

+                                 (IID *)&_GUID_103231ae_04cb_4e5e_b63d_e3ce47cd0f0a,&local_b8);

+              if (lVar5 < 0) {

+                uVar10 = 0x159;

+LAB_6:

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,uVar10,

+                           "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                           ,lVar5);

+              }

+              else {

+                lVar5 = CMarshaledInterface::Marshal

+                                  (this_00 + 0x40,

+                                   (_GUID *)&_GUID_103231ae_04cb_4e5e_b63d_e3ce47cd0f0a,local_b8,2);

+                if (lVar5 < 0) {

+                  uVar10 = 0x15a;

+                  goto LAB_6;

+                }

+                local_b0 = (IUnknown *)0x0;

+                puVar1 = *(undefined8 **)(this + 200);

+                pcVar2 = *(code **)*puVar1;

+                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                          ((ComPtr<IImmersiveSystemModeNotification> *)&local_b0);

+                (*pcVar2)(puVar1,&_GUID_6e7da126_f47e_4b81_b43f_e466cf325f58,&local_b0);

+                lVar5 = CMarshaledInterface::Marshal

+                                  (this_00 + 0x48,

+                                   (_GUID *)&_GUID_6e7da126_f47e_4b81_b43f_e466cf325f58,local_b0,2);

+                if (lVar5 < 0) {

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,0x15e,

+                             "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                             ,lVar5);

+                }

+                else {

+                  local_a8 = (IUnknown *)0x0;

+                  plVar3 = *(longlong **)(this + 0xb0);

+                  pcVar2 = *(code **)(*plVar3 + 0x40);

+                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                            ((ComPtr<IImmersiveSystemModeNotification> *)&local_a8);

+                  lVar5 = (*pcVar2)(plVar3,&local_a8);

+                  if (lVar5 < 0) {

+                    uVar10 = 0x161;

+LAB_7:

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar10,

+                               "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                               ,lVar5);

+                  }

+                  else {

+                    lVar5 = CMarshaledInterface::Marshal

+                                      (this_00 + 0x50,

+                                       (_GUID *)&_GUID_4639c886_cffe_492c_915a_1e3f02d22434,local_a8

+                                       ,2);

+                    if (lVar5 < 0) {

+                      uVar10 = 0x162;

+                      goto LAB_7;

+                    }

+                    local_a0 = (IUnknown *)0x0;

+                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                              ((ComPtr<IImmersiveSystemModeNotification> *)&local_a0);

+                    lVar5 = IUnknown_QueryService

+                                      (*(IUnknown **)(this + 0x10),(GUID *)&DAT_8,

+                                       (IID *)&_GUID_4214f6fa_eb36_4e2f_9ca2_23fdc1832df7,&local_a0)

+                    ;

+                    if (lVar5 < 0) {

+                      uVar10 = 0x165;

+LAB_9:

+                      wil::details::in1diag3::Return_Hr

+                                (unaff_retaddr,uVar10,

+                                 "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                 ,lVar5);

+                    }

+                    else {

+                      lVar5 = CMarshaledInterface::Marshal

+                                        (this_00 + 0x58,

+                                         (_GUID *)&_GUID_4214f6fa_eb36_4e2f_9ca2_23fdc1832df7,

+                                         local_a0,2);

+                      if (lVar5 < 0) {

+                        uVar10 = 0x166;

+                        goto LAB_9;

+                      }

+                      local_98 = (IUnknown *)0x0;

+                      puVar1 = *(undefined8 **)(this + 0xd0);

+                      pcVar2 = *(code **)*puVar1;

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_98);

+                      lVar5 = (*pcVar2)(puVar1,&_GUID_373e56cf_0a1b_4b4a_a1a4_a46b25ffd7e3,&local_98

+                                       );

+                      if (lVar5 < 0) {

+                        uVar10 = 0x169;

+LAB_10:

+                        wil::details::in1diag3::Return_Hr

+                                  (unaff_retaddr,uVar10,

+                                   "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                   ,lVar5);

+                      }

+                      else {

+                        lVar5 = CMarshaledInterface::Marshal

+                                          (this_00 + 0x60,

+                                           (_GUID *)&_GUID_373e56cf_0a1b_4b4a_a1a4_a46b25ffd7e3,

+                                           local_98,2);

+                        if (lVar5 < 0) {

+                          uVar10 = 0x16a;

+                          goto LAB_10;

+                        }

+                        local_90 = (IUnknown *)0x0;

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_90);

+                        lVar5 = IUnknown_QueryService

+                                          (*(IUnknown **)(this + 0x10),

+                                           (GUID *)&SID_ShellTargetingTracker,

+                                           (IID *)&_GUID_c59a546b_412b_40f3_b151_9b3202e2835f,

+                                           &local_90);

+                        if (lVar5 < 0) {

+                          uVar10 = 0x16d;

+LAB_11:

+                          wil::details::in1diag3::Return_Hr

+                                    (unaff_retaddr,uVar10,

+                                     "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                     ,lVar5);

+                        }

+                        else {

+                          lVar5 = CMarshaledInterface::Marshal

+                                            (this_00 + 0x68,

+                                             (_GUID *)&_GUID_c59a546b_412b_40f3_b151_9b3202e2835f,

+                                             local_90,2);

+                          if (lVar5 < 0) {

+                            uVar10 = 0x16e;

+                            goto LAB_11;

+                          }

+                          local_88 = (IUnknown *)0x0;

+                          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_88);

+                          lVar5 = IUnknown_QueryService

+                                            (*(IUnknown **)(this + 0x10),

+                                             (GUID *)&_GUID_fff59320_db70_4865_8fed_8b502d692f12,

+                                             (IID *)&_GUID_fff59320_db70_4865_8fed_8b502d692f12,

+                                             &local_88);

+                          if (lVar5 < 0) {

+                            uVar10 = 0x171;

+LAB_12:

+                            wil::details::in1diag3::Return_Hr

+                                      (unaff_retaddr,uVar10,

+                                       "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                       ,lVar5);

+                          }

+                          else {

+                            lVar5 = CMarshaledInterface::Marshal

+                                              (this_00 + 0x70,

+                                               (_GUID *)&_GUID_fff59320_db70_4865_8fed_8b502d692f12,

+                                               local_88,2);

+                            if (lVar5 < 0) {

+                              uVar10 = 0x172;

+                              goto LAB_12;

+                            }

+                            local_80 = (IUnknown *)0x0;

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_80);

+                            lVar5 = IUnknown_QueryService

+                                              (*(IUnknown **)(this + 0x10),

+                                               (GUID *)&SID_ApplicationViewIconLoaderService,

+                                               (IID *)&_GUID_f622d8ac_35d3_4374_9148_66f1f7894191,

+                                               &local_80);

+                            if (lVar5 < 0) {

+                              uVar10 = 0x17e;

+LAB_13:

+                              wil::details::in1diag3::Return_Hr

+                                        (unaff_retaddr,uVar10,

+                                         "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                         ,lVar5);

+                            }

+                            else {

+                              lVar5 = CMarshaledInterface::Marshal

+                                                (this_00 + 0x80,

+                                                 (_GUID *)&

+                                                  _GUID_f622d8ac_35d3_4374_9148_66f1f7894191,

+                                                 local_80,2);

+                              if (lVar5 < 0) {

+                                uVar10 = 0x17f;

+                                goto LAB_13;

+                              }

+                              local_78 = (IUnknown *)0x0;

+                              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                              InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_78)

+                              ;

+                              lVar5 = IUnknown_QueryService

+                                                (*(IUnknown **)(this + 0x10),

+                                                 (GUID *)&SID_IImmersiveMonitorService,

+                                                 (IID *)&_GUID_4d4c1e64_e410_4faa_bafa_59ca069bfec2,

+                                                 &local_78);

+                              if (lVar5 < 0) {

+                                uVar10 = 0x182;

+LAB_14:

+                                wil::details::in1diag3::Return_Hr

+                                          (unaff_retaddr,uVar10,

+                                           "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                           ,lVar5);

+                              }

+                              else {

+                                _Var12 = 2;

+                                pIVar11 = local_78;

+                                lVar5 = CMarshaledInterface::Marshal

+                                                  (this_00 + 0x98,

+                                                   (_GUID *)&

+                                                  _GUID_4d4c1e64_e410_4faa_bafa_59ca069bfec2,

+                                                  local_78,2);

+                                if (lVar5 < 0) {

+                                  uVar10 = 0x183;

+                                  goto LAB_14;

+                                }

+                                wil::details::FeatureImpl<__WilFeatureTraits_Feature_XamlAllUpView>

+                                ::ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_XamlAllUpView>

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

+                                                  ::__l2::impl,true,(ReportingKind)pIVar11,_Var12);

+                                local_48 = (IUnknown *)0x0;

+                                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                &local_48);

+                                IUnknown_QueryService

+                                          (*(IUnknown **)(this + 0x10),

+                                           (GUID *)&SID_VirtualDesktopDataSource,

+                                           (IID *)&_GUID_af86e2e0_b12d_4c6a_9c5a_d7aa65101e90,

+                                           &local_48);

+                                if (local_48 != (IUnknown *)0x0) {

+                                  CMarshaledInterface::Marshal

+                                            (this_00 + 0x88,

+                                             (_GUID *)&_GUID_af86e2e0_b12d_4c6a_9c5a_d7aa65101e90,

+                                             local_48,2);

+                                }

+                                local_50 = (IUnknown *)0x0;

+                                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                &local_50);

+                                IUnknown_QueryService

+                                          (*(IUnknown **)(this + 0x10),

+                                           (GUID *)&SID_VirtualDesktopController,

+                                           (IID *)&_GUID_af86e2e0_b12d_4c6a_9c5a_d7aa65101e90,

+                                           &local_50);

+                                if ((local_50 == (IUnknown *)0x0) ||

+                                   (lVar5 = CMarshaledInterface::Marshal

+                                                      (this_00 + 0x90,

+                                                       (_GUID *)&

+                                                  _GUID_af86e2e0_b12d_4c6a_9c5a_d7aa65101e90,

+                                                  local_50,2), -1 < lVar5)) {

+                                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                  InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_50);

+                                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                  InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_48);

+                                  local_70 = (IUnknown *)0x0;

+                                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                  InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_70);

+                                  HVar6 = IUnknown_QueryService

+                                                    (*(IUnknown **)(this + 0x10),

+                                                     (GUID *)&DAT_15,

+                                                     (IID *)&

+                                                  _GUID_8bc0416b_e6fa_4b43_9553_9386b4584de0,

+                                                  &local_70);

+                                  if ((HVar6 < 0) ||

+                                     (lVar5 = CMarshaledInterface::Marshal

+                                                        (this_00 + 0xa0,

+                                                         (_GUID *)&

+                                                  _GUID_8bc0416b_e6fa_4b43_9553_9386b4584de0,

+                                                  local_70,2), -1 < lVar5)) {

+                                    local_68 = (IUnknown *)0x0;

+                                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                    InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                    &local_68);

+                                    lVar5 = IUnknown_QueryService

+                                                      (*(IUnknown **)(this + 0x10),

+                                                       (GUID *)&SID_ImmersiveShellHookService,

+                                                       (IID *)&

+                                                  _GUID_914d9b3a_5e53_4e14_bbba_46062acb35a4,

+                                                  &local_68);

+                                    if (lVar5 < 0) {

+                                      uVar10 = 0x19e;

+LAB_16:

+                                      wil::details::in1diag3::Return_Hr

+                                                (unaff_retaddr,uVar10,

+                                                 "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                                 ,lVar5);

+                                    }

+                                    else {

+                                      lVar5 = CMarshaledInterface::Marshal

+                                                        (this_00 + 0xa8,

+                                                         (_GUID *)&

+                                                  _GUID_914d9b3a_5e53_4e14_bbba_46062acb35a4,

+                                                  local_68,2);

+                                      if (lVar5 < 0) {

+                                        uVar10 = 0x19f;

+                                        goto LAB_16;

+                                      }

+                                      local_58 = (IUnknown *)0x0;

+                                      HVar6 = IUnknown_QueryService

+                                                        (*(IUnknown **)(this + 0x10),

+                                                         (GUID *)&winrt::impl::

+                                                                                                                                    

+                                                  guid_v<winrt::Windows::Internal::UI::Shell::IWindowTabExtension>

+                                                  ,(IID *)&

+                                                  _GUID_0e84cceb_709b_52d2_a663_ec5130862a9b,

+                                                  &local_58);

+                                      if ((HVar6 < 0) ||

+                                         (lVar5 = CMarshaledInterface::Marshal

+                                                            (this_00 + 0xb0,

+                                                             (_GUID *)&

+                                                  _GUID_0e84cceb_709b_52d2_a663_ec5130862a9b,

+                                                  local_58,2), -1 < lVar5)) {

+                                        local_40 = (IUnknown *)0x0;

+                                        lVar5 = IUnknown_QueryService

+                                                          (*(IUnknown **)(this + 0x10),

+                                                           (GUID *)&

+                                                  _GUID_cb6e4ee4_9424_5bb0_b290_0e37b7c5c386,

+                                                  (IID *)&_GUID_cb6e4ee4_9424_5bb0_b290_0e37b7c5c386

+                                                  ,&local_40);

+                                        if (lVar5 < 0) {

+                                          uVar10 = 0x1a9;

+LAB_17:

+                                          wil::details::in1diag3::_Log_Hr

+                                                    (unaff_retaddr,uVar10,

+                                                                                                          

+                                                  "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                                  ,lVar5);

+                                        }

+                                        else {

+                                          lVar5 = CMarshaledInterface::Marshal

+                                                            (this_00 + 0xb8,

+                                                             (_GUID *)&

+                                                  _GUID_cb6e4ee4_9424_5bb0_b290_0e37b7c5c386,

+                                                  local_40,2);

+                                          if (lVar5 < 0) {

+                                            uVar10 = 0x1ab;

+                                            goto LAB_17;

+                                          }

+                                        }

+                                        pvVar9 = CreateEventW((LPSECURITY_ATTRIBUTES)0x0,1,0,

+                                                              (LPCWSTR)0x0);

+                                        CTSmartObj<void*___ptr64,CAutoHandle_Policy<void*___ptr64>_>

+                                        ::Release((

+                                                  CTSmartObj<void*___ptr64,CAutoHandle_Policy<void*___ptr64>_>

+                                                  *)(this + 0xf0));

+                                        *(HANDLE *)(this + 0xf0) = pvVar9;

+                                        if (pvVar9 == (HANDLE)0x0) {

+                                          uVar10 = 0x1b1;

+                                        }

+                                        else {

+                                          *(HANDLE *)(this_00 + 0xc0) = pvVar9;

+                                          local_38[0] = (CMarshaledInterface *)0x0;

+                                          pCVar8 = this_00;

+                                          BVar7 = SHCreateThread(s_RunMTVThread,this_00,8,

+                                                                 s_InitMTVThread);

+                                          if (BVar7 != 0) {

+                                            wil::

+                                            com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                            ::

+                                            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                                      ((

+                                                  com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                                  *)&local_40);

+                                            wil::

+                                            com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                            ::

+                                            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                                      ((

+                                                  com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                                  *)&local_58);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_68);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_70);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_78);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_80);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_88);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_90);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_98);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_a0);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_a8);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_b0);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_b8);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_c0);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_d0);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_c8);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_d8);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_e0);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_e8);

+                                            lVar5 = 0;

+                                            goto LAB_0;

+                                          }

+                                          INIT_THREAD_DATA::_scalar_deleting_destructor_

+                                                    ((INIT_THREAD_DATA *)this_00,(uint)pCVar8);

+                                          uVar10 = 0x1ba;

+                                        }

+                                        lVar5 = wil::details::in1diag3::Return_GetLastError

+                                                          (unaff_retaddr,uVar10,

+                                                                                                                      

+                                                  "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                                  );

+                                        wil::

+                                        com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        ::

+                                        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                                  ((

+                                                  com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                                  *)&local_40);

+                                      }

+                                      else {

+                                        wil::details::in1diag3::Return_Hr

+                                                  (unaff_retaddr,0x1a5,

+                                                                                                      

+                                                  "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                                  ,lVar5);

+                                      }

+                                      wil::

+                                      com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                      ::

+                                      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                                  *)&local_58);

+                                    }

+                                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                    InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                    &local_68);

+                                  }

+                                  else {

+                                    wil::details::in1diag3::Return_Hr

+                                              (unaff_retaddr,0x19a,

+                                               "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                               ,lVar5);

+                                  }

+                                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                  InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_70);

+                                }

+                                else {

+                                  wil::details::in1diag3::Return_Hr

+                                            (unaff_retaddr,0x193,

+                                             "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                                             ,lVar5);

+                                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                  InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_50);

+                                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                  InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_48);

+                                }

+                              }

+                              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                              InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_78)

+                              ;

+                            }

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_80);

+                          }

+                          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_88);

+                        }

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_90);

+                      }

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_98);

+                    }

+                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                              ((ComPtr<IImmersiveSystemModeNotification> *)&local_a0);

+                  }

+                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                            ((ComPtr<IImmersiveSystemModeNotification> *)&local_a8);

+                }

+                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                          ((ComPtr<IImmersiveSystemModeNotification> *)&local_b0);

+              }

+              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                        ((ComPtr<IImmersiveSystemModeNotification> *)&local_b8);

+            }

+            else {

+              wil::details::in1diag3::Return_Hr

+                        (unaff_retaddr,0x155,

+                         "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                         ,lVar5);

+            }

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_c0);

+          }

+          else {

+            local_60 = (IUnknown *)0x0;

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_60);

+            lVar5 = IUnknown_QueryService

+                              (*(IUnknown **)(this + 0x10),

+                               (GUID *)&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,

+                               (IID *)&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,&local_60);

+            if (lVar5 < 0) {

+              uVar10 = 0x14e;

+            }

+            else {

+              lVar5 = CMarshaledInterface::Marshal

+                                (this_00 + 0x30,(_GUID *)&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a

+                                 ,local_60,2);

+              if (-1 < lVar5) {

+                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                          ((ComPtr<IImmersiveSystemModeNotification> *)&local_60);

+                goto LAB_4;

+              }

+              uVar10 = 0x14f;

+            }

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,uVar10,

+                       "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp"

+                       ,lVar5);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_60);

+          }

+        }

+        else {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x148,

+                     "pcshell\\twinui\\multitaskingview\\lib\\multitaskingviewserviceprovider.cpp",

+                     lVar5);

+        }

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_d0);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

+      }

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_d8);

+    }

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_e0);

+  }

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_e8);

+LAB_0:

+  CAutoMemPtr<CMultitaskingViewServiceProvider::INIT_THREAD_DATA>::

+  ~CAutoMemPtr<CMultitaskingViewServiceProvider::INIT_THREAD_DATA>

+            ((CAutoMemPtr<CMultitaskingViewServiceProvider::INIT_THREAD_DATA> *)local_38);

+  return lVar5;

+}

+
```

## `KioskPositioner::LoadAssignedAccessConfiguration`  (modified)

```diff
--- KioskPositioner::LoadAssignedAccessConfiguration
+++ KioskPositioner::LoadAssignedAccessConfiguration
@@ -1,2 +1,165 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KioskPositioner::LoadAssignedAccessConfiguration : 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: class std::optional<struct KioskPositioner::KioskPositionerConfiguration> __cdecl

+   KioskPositioner::LoadAssignedAccessConfiguration(void)const __ptr64 */

+

+void __thiscall KioskPositioner::LoadAssignedAccessConfiguration(KioskPositioner *this)

+

+{

+  code *pcVar1;

+  longlong *plVar2;

+  int iVar3;

+  longlong lVar4;

+  HSTRING__ **ppHVar5;

+  ushort *puVar6;

+  undefined8 uVar7;

+  undefined8 *in_RDX;

+  void *unaff_retaddr;

+  undefined1 auStack_c8 [32];

+  char local_a8 [8];

+  longlong *local_a0;

+  longlong *local_98;

+  longlong *local_90;

+  Win32PrimaryAppProxy *local_88;

+  int local_80 [2];

+  longlong *local_78;

+  longlong *local_70;

+  undefined8 local_68;

+  Win32PrimaryAppProxy *local_60 [2];

+  undefined8 local_50;

+  undefined1 local_48;

+  HStringReference local_40 [32];

+  ulonglong local_20;

+  

+  local_20 = __security_cookie ^ (ulonglong)auStack_c8;

+  GetUserSidString(this,&local_88);

+  iVar3 = IsUserSidAssignedAccessSingleAppClassicApp(local_88);

+  if (iVar3 == 0) {

+    *(undefined1 *)(in_RDX + 2) = 0;

+    if (local_88 == (Win32PrimaryAppProxy *)0x0) {

+      return;

+    }

+    LocalFree(local_88);

+    return;

+  }

+  local_50 = 0;

+  local_48 = 0;

+  wil::ActivateInstance<Windows::Internal::AssignedAccess::IAssignedAccessManager>

+            ((ushort *)&local_70);

+  local_90 = (longlong *)0x0;

+  iVar3 = (**(code **)(*local_70 + 0x38))(local_70,&local_90);

+  plVar2 = local_90;

+  if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x454,"pcshell\\twinui\\shellpositioners\\lib\\kioskpositioner.cpp",

+               iVar3);

+  }

+  pcVar1 = *(code **)(*local_90 + 0x48);

+  local_a0 = (longlong *)0x0;

+  local_60[0] = local_88;

+  lVar4 = Microsoft::WRL::Wrappers::HStringReference::

+          HStringReference<unsigned_short_const*___ptr64>(local_40,local_60);

+  iVar3 = (*pcVar1)(plVar2,*(undefined8 *)(lVar4 + 0x18),&local_a0);

+  if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x456,"pcshell\\twinui\\shellpositioners\\lib\\kioskpositioner.cpp",

+               iVar3);

+  }

+  if (local_a0 != (longlong *)0x0) {

+    local_a8[0] = '\0';

+    iVar3 = (**(code **)(*local_a0 + 0x58))(local_a0,local_a8);

+    if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x45c,"pcshell\\twinui\\shellpositioners\\lib\\kioskpositioner.cpp",

+                 iVar3);

+    }

+    if (local_a8[0] != '\0') {

+      local_78 = (longlong *)0x0;

+      iVar3 = (**(code **)(*local_a0 + 0x78))(local_a0,&local_78);

+      if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x462,"pcshell\\twinui\\shellpositioners\\lib\\kioskpositioner.cpp"

+                   ,iVar3);

+      }

+      local_98 = (longlong *)0x0;

+      iVar3 = (**(code **)(*local_78 + 0x30))(local_78,0,&local_98);

+      if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x464,"pcshell\\twinui\\shellpositioners\\lib\\kioskpositioner.cpp"

+                   ,iVar3);

+      }

+      local_80[0] = 0;

+      iVar3 = (**(code **)(*local_98 + 0x40))(local_98,local_80);

+      plVar2 = local_98;

+      if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x466,"pcshell\\twinui\\shellpositioners\\lib\\kioskpositioner.cpp"

+                   ,iVar3);

+      }

+      if (local_80[0] == 3) {

+        local_68 = 0;

+        pcVar1 = *(code **)(*local_98 + 0x30);

+        ppHVar5 = wil::

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

+                  ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>_>

+                         *)&local_68);

+        iVar3 = (*pcVar1)(plVar2,ppHVar5);

+        if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x46c,

+                     "pcshell\\twinui\\shellpositioners\\lib\\kioskpositioner.cpp",iVar3);

+        }

+        puVar6 = (ushort *)WindowsGetStringRawBuffer(local_68,0);

+        local_60[0] = operator_new(0x28);

+        uVar7 = Win32PrimaryAppProxy::Win32PrimaryAppProxy(local_60[0],puVar6);

+        *in_RDX = uVar7;

+        *(undefined1 *)(in_RDX + 1) = 1;

+        *(undefined1 *)(in_RDX + 2) = 1;

+        wil::details::

+        unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                    *)&local_68);

+      }

+      else {

+        *(undefined1 *)(in_RDX + 2) = 0;

+      }

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_98);

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_78);

+      goto LAB_0;

+    }

+  }

+  *(undefined1 *)(in_RDX + 2) = 0;

+LAB_0:

+  wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+  ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+            ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_a0);

+  wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+  ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+            ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_90);

+  wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+  ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+            ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_70);

+  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>_>

+  ::

+  ~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>_>

+            ((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_88);

+  return;

+}

+
```

## `XamlLauncherState::CompleteStartShowTelemetry`  (modified)

```diff
--- XamlLauncherState::CompleteStartShowTelemetry
+++ XamlLauncherState::CompleteStartShowTelemetry
@@ -1,2 +1,95 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB XamlLauncherState::CompleteStartShowTelemetry : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl XamlLauncherState::CompleteStartShowTelemetry(long,class

+   CommonStartTelemetry::LauncherInvokeActivity * __ptr64) __ptr64 */

+

+void __thiscall

+XamlLauncherState::CompleteStartShowTelemetry

+          (XamlLauncherState *this,long param_1,LauncherInvokeActivity *param_2)

+

+{

+  undefined8 *puVar1;

+  bool bVar2;

+  int iVar3;

+  void *unaff_retaddr;

+  XamlLauncherState *local_res8;

+  

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_IgnoreFastForegroundLostInvokeAbort>

+          ::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_IgnoreFastForegroundLostInvokeAbort> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    bVar2 = tip2::

+            tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+            ::operator_bool((tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+                             *)(this + 0x3e0));

+    if (bVar2) {

+      tip2::

+      tip_test<tip2::details::merged_data<_tip_InboxedAppInstallerTest,_tip_InboxedAppInstallerTest>_>

+      ::complete((tip_test<tip2::details::merged_data<_tip_InboxedAppInstallerTest,_tip_InboxedAppInstallerTest>_>

+                  *)(this + 0x3e0));

+    }

+  }

+  wistd::unique_ptr<FocusHoldingTank,wistd::default_delete<FocusHoldingTank>_>::reset

+            ((unique_ptr<FocusHoldingTank,wistd::default_delete<FocusHoldingTank>_> *)(this + 0x458)

+             ,(FocusHoldingTank *)0x0);

+  CancelStartTelemetryTimeout(this,SUB41((uint)param_1 >> 0x1f,0));

+  CommonStartTelemetry::LauncherInvokeActivity::LauncherOpened

+            (param_2,*(uint *)(this + 0x128),*(uint *)(this + 300),0x17);

+  *(undefined4 *)(this + 0x128) = 0;

+  *(undefined4 *)(this + 300) = 0;

+  wil::

+  ActivityBase<LauncherTelemetryLogging,1,70368744177664,4,50331648,_TlgReflectorTag_Param0IsProviderType>

+  ::Stop((ActivityBase<LauncherTelemetryLogging,1,70368744177664,4,50331648,_TlgReflectorTag_Param0IsProviderType>

+          *)param_2,param_1);

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_IgnoreFastForegroundLostInvokeAbort>

+          ::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_IgnoreFastForegroundLostInvokeAbort> *)

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

+                      ::__l2::impl);

+  if (!bVar2) {

+    bVar2 = tip2::

+            tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+            ::operator_bool((tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+                             *)(this + 0x3e0));

+    if (bVar2) {

+      tip2::

+      tip_test<tip2::details::merged_data<_tip_InboxedAppInstallerTest,_tip_InboxedAppInstallerTest>_>

+      ::complete((tip_test<tip2::details::merged_data<_tip_InboxedAppInstallerTest,_tip_InboxedAppInstallerTest>_>

+                  *)(this + 0x3e0));

+    }

+  }

+  bVar2 = tip2::

+          tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+          ::operator_bool((tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+                           *)(this + 1000));

+  if (bVar2) {

+    puVar1 = (undefined8 *)std::chrono::steady_clock::now();

+    *(undefined8 *)(this + 0x400) = *puVar1;

+    local_res8 = this;

+    Microsoft::WRL::ComPtr<XamlLauncherState>::InternalAddRef

+              ((ComPtr<XamlLauncherState> *)&local_res8);

+    local_res8 = this;

+    Microsoft::WRL::ComPtr<XamlLauncherState>::InternalAddRef

+              ((ComPtr<XamlLauncherState> *)&local_res8);

+    iVar3 = Windows::Internal::ComTaskPool::

+            QueueTaskWithDelay<<lambda_d809bcae088e0d8c26a5f3bb8865dbda>_>();

+    if (local_res8 != (XamlLauncherState *)0x0) {

+      Microsoft::WRL::Details::

+      RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,CWRLObjectWithSite,IXamlLauncherState,IImmersiveLauncherCortana,IImmersiveWindowMessageNotification,IImmersiveSessionIdleNotification>

+      ::Release((RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,CWRLObjectWithSite,IXamlLauncherState,IImmersiveLauncherCortana,IImmersiveWindowMessageNotification,IImmersiveSessionIdleNotification>

+                 *)local_res8);

+    }

+    if (iVar3 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x7c3,"pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",

+                 iVar3);

+    }

+    Microsoft::WRL::Details::

+    RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,CWRLObjectWithSite,IXamlLauncherState,IImmersiveLauncherCortana,IImmersiveWindowMessageNotification,IImmersiveSessionIdleNotification>

+    ::Release((RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,CWRLObjectWithSite,IXamlLauncherState,IImmersiveLauncherCortana,IImmersiveWindowMessageNotification,IImmersiveSessionIdleNotification>

+               *)this);

+  }

+  return;

+}

+
```

## `AccessibilityExperienceManager::SetWindowPosition`  (modified)

```diff
--- AccessibilityExperienceManager::SetWindowPosition
+++ AccessibilityExperienceManager::SetWindowPosition
@@ -1,2 +1,82 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB AccessibilityExperienceManager::SetWindowPosition : 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 AccessibilityExperienceManager::SetWindowPosition(unsigned

+   int,unsigned int,unsigned int,unsigned int) __ptr64 */

+

+long __thiscall

+AccessibilityExperienceManager::SetWindowPosition

+          (AccessibilityExperienceManager *this,uint param_1,uint param_2,uint param_3,uint param_4)

+

+{

+  longlong *plVar1;

+  longlong lVar2;

+  longlong lVar3;

+  _tlgProvider_t *p_Var4;

+  uint uVar5;

+  undefined4 in_register_00000084;

+  uint uVar6;

+  undefined4 in_register_0000008c;

+  undefined1 auStackY_108 [32];

+  _tlgWrapperByVal<1> local_a8;

+  _tlgWrapperByVal<1> local_a7 [3];

+  uint local_a4;

+  uint local_a0;

+  uint local_9c;

+  uint local_98 [2];

+  char *local_90;

+  undefined8 local_88 [2];

+  AccessibilityExperienceManager *local_78;

+  uint local_70;

+  uint local_6c;

+  uint local_68;

+  uint local_64;

+  uint local_58;

+  uint local_54;

+  uint local_50;

+  uint local_4c;

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStackY_108;

+  plVar1 = *(longlong **)(this + 0xe8);

+  local_4c = param_4;

+  uVar5 = param_2;

+  uVar6 = param_3;

+  local_58 = param_1;

+  local_54 = param_3;

+  local_50 = param_2;

+  if (plVar1 != (longlong *)0x0) {

+    (**(code **)(*plVar1 + 0x40))(plVar1,&local_58);

+    local_78 = this + -0x90;

+    local_64 = param_4;

+    local_70 = param_1;

+    local_6c = param_2;

+    local_68 = param_3;

+    CreationThreadDispatcher::RunAsync<<lambda_0659b3364d1f42626f7c5867fa6af3a9>_>

+              (*(undefined8 *)(this + 0x90),&local_78);

+  }

+  lVar2 = *(longlong *)(this + 0xe8);

+  lVar3 = *(longlong *)(this + 0x108);

+  p_Var4 = GazeUITraceLogging::Provider();

+  if (5 < *(uint *)p_Var4) {

+    local_a8 = (_tlgWrapperByVal<1>)(lVar3 != 0);

+    local_a4 = param_4;

+    local_90 = "AccessibilityExperienceManager::SetWindowPosition - Triggered";

+    local_a7[0] = (_tlgWrapperByVal<1>)(lVar2 != 0);

+    local_88[0] = 0x1000000;

+    local_a0 = param_2;

+    local_9c = param_3;

+    local_98[0] = param_1;

+    _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+    ::

+    Write<_tlgWrapperByVal<8>,_tlgWrapSz<char>,_tlgWrapperByVal<1>,_tlgWrapperByVal<1>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>_>

+              (p_Var4,&DAT_0,(_GUID *)CONCAT44(in_register_00000084,uVar5),

+               (_GUID *)CONCAT44(in_register_0000008c,uVar6),(_tlgWrapperByVal<8> *)local_88,

+               (_tlgWrapSz<char> *)&local_90,local_a7,&local_a8,(_tlgWrapperByVal<4> *)local_98,

+               (_tlgWrapperByVal<4> *)&local_9c,(_tlgWrapperByVal<4> *)&local_a0,

+               (_tlgWrapperByVal<4> *)&local_a4);

+  }

+  return 0;

+}

+
```

## `UndockedSearchAppExperienceManager::OnViewWrapperViewEvent`  (modified)

```diff
--- UndockedSearchAppExperienceManager::OnViewWrapperViewEvent
+++ UndockedSearchAppExperienceManager::OnViewWrapperViewEvent
@@ -1,23 +1,203 @@
 

 /* 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 UndockedSearchAppExperienceManager::OnViewWrapperViewEvent(struct

+   Windows::Internal::Shell::ViewManagerInterop::IViewWrapper * __ptr64,struct

+   Windows::Internal::Shell::ViewManagerInterop::IViewEventArgs * __ptr64) __ptr64 */

 

 long __thiscall

-Windows::Internal::ShellHelpers::PropertySetHelper::OnViewWrapperViewEvent

+UndockedSearchAppExperienceManager::OnViewWrapperViewEvent

           (UndockedSearchAppExperienceManager *this,IViewWrapper *param_1,IViewEventArgs *param_2)

 

 {

-  longlong *unaff_RBX;

-  longlong *unaff_RDI;

-  undefined4 uStackX_20;

+  ICortanaShownEventArgs *pIVar1;

+  code *pcVar2;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+  *this_00;

+  bool bVar3;

+  UndockedSearchAppExperienceManager UVar4;

+  int iVar5;

+  undefined8 *puVar6;

+  HWND__ *pHVar7;

+  void *unaff_retaddr;

+  undefined1 auStack_78 [32];

+  ViewEventType local_58 [2];

+  IPropertySet *local_50;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+  *local_48;

+  uint local_40 [2];

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+  *local_38;

+  ulonglong local_30;

   

-  if ((int)unaff_RDI != 0) {

-    (**(code **)(*unaff_RDI + 0x10))();

-  }

-  if (unaff_RBX != (longlong *)0x0) {

-    (**(code **)(*unaff_RBX + 0x10))();

-  }

-  return uStackX_20;

+  local_30 = __security_cookie ^ (ulonglong)auStack_78;

+  local_58[0] = 0;

+  iVar5 = (**(code **)(*(longlong *)param_2 + 0x30))(param_2,local_58);

+  if (iVar5 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x7dd,

+               "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp",

+               iVar5);

+    return iVar5;

+  }

+  local_40[0] = 0;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61294227>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61294227> *)

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

+                      ::__l2::impl);

+  if ((bVar3) && (iVar5 = (**(code **)(*(longlong *)param_1 + 0x30))(param_1,local_40), iVar5 < 0))

+  {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x7e2,

+               "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp",

+               iVar5);

+  }

+  SearchAppExperienceManagerTelemetry::

+  UndockedSearchAppExperienceManager_OnViewWrapperViewEvent<Windows::Internal::Shell::ViewManagerInterop::ViewEventType&___ptr64,unsigned_int&___ptr64>

+            (local_58,local_40);

+  if (local_58[0] == 0) {

+    OnViewCreated(this,param_1);

+  }

+  else if (local_58[0] == 2) {

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61294227>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61294227> *)

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

+                        ::__l2::impl);

+    if (((bVar3) && (*(longlong *)(this + 0x38) == 0)) &&

+       (bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_59771790>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_59771790> *)

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

+                            ::__l2::impl), bVar3)) {

+      SearchAppExperienceManagerTelemetry::UndockedSearchExperienceManager_ViewWrapperUnexpectedNull

+                ();

+      local_48 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+                  *)param_1;

+      Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>::InternalAddRef

+                ((ComPtr<IImmersiveApplicationInternal> *)&local_48);

+      Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>::operator=

+                ((ComPtr<IImmersiveApplicationInternal> *)(this + 0x38),

+                 (ComPtr<struct_IImmersiveApplicationInternal> *)&local_48);

+      puVar6 = (undefined8 *)

+               Microsoft::WRL::Details::

+               Make<CCortanaShownEventArgs,Windows::Foundation::Rect&___ptr64>((Rect *)&local_38);

+      this_00 = local_38;

+      pIVar1 = (ICortanaShownEventArgs *)*puVar6;

+      *puVar6 = 0;

+      if (local_38 !=

+          (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+           *)0x0) {

+        local_38 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+                    *)0x0;

+        Microsoft::WRL::Details::

+        RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+        ::Release(this_00);

+      }

+      Microsoft::WRL::

+      EventSource<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,Windows::Internal::Shell::Experience::ICortanaShownEventArgs*___ptr64>,Microsoft::WRL::InvokeModeOptions<2>_>

+      ::

+      InvokeAll<UndockedSearchAppExperienceManager*___ptr64,Windows::Internal::Shell::Experience::ICortanaShownEventArgs*___ptr64>

+                ((EventSource<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,Windows::Internal::Shell::Experience::ICortanaShownEventArgs*___ptr64>,Microsoft::WRL::InvokeModeOptions<2>_>

+                  *)(this + 0x150),this,pIVar1);

+      if (pIVar1 != (ICortanaShownEventArgs *)0x0) {

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

+      }

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_48);

+    }

+    local_50 = (IPropertySet *)0x0;

+    pcVar2 = *(code **)(*(longlong *)param_2 + 0x38);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_50);

+    iVar5 = (*pcVar2)(param_2,&local_50);

+    if (iVar5 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x808,

+                 "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp",

+                 iVar5);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_50);

+      return iVar5;

+    }

+    OnViewRequestNavigate(this,local_50);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_50);

+  }

+  else if (local_58[0] == 0x23) {

+    OnViewConsolidationRequested(this);

+  }

+  else if (local_58[0] == 4) {

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61294227>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61294227> *)

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

+                        ::__l2::impl);

+    if (bVar3) {

+      iVar5 = SHIsSameObject(*(IUnknown **)(this + 0x38),(IUnknown *)param_1);

+      if (iVar5 == 0) {

+        return 0;

+      }

+    }

+    else if (*(IViewWrapper **)(this + 0x38) != param_1) {

+      return 0;

+    }

+    OnViewDestroyed(this);

+  }

+  else if (local_58[0] == 6) {

+    SearchAppExperienceManagerTelemetry::UndockedSearchAppExperienceManager_OnWindowChanged();

+    iVar5 = SHIsSameObject(*(IUnknown **)(this + 0x38),(IUnknown *)param_1);

+    if (iVar5 != 0) {

+      pHVar7 = ExperienceManagerUtils::WindowFromViewWrapper(*(IViewWrapper **)(this + 0x38));

+      Microsoft::WRL::

+      EventSource<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,Windows::UI::WindowId>,Microsoft::WRL::InvokeModeOptions<2>_>

+      ::InvokeAll<UndockedSearchAppExperienceManager*___ptr64,Windows::UI::WindowId>

+                ((EventSource<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,Windows::UI::WindowId>,Microsoft::WRL::InvokeModeOptions<2>_>

+                  *)(this + 0x2b8),this,pHVar7);

+      bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61106536>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61106536> *)

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

+                          ::__l2::impl);

+      if (bVar3) {

+        this[0x40] = (UndockedSearchAppExperienceManager)0x1;

+      }

+    }

+  }

+  else {

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_46485871>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_46485871> *)

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

+                        ::__l2::impl);

+    if (((bVar3) && (local_58[0] == 7)) && (param_1 != (IViewWrapper *)0x0)) {

+      local_50 = (IPropertySet *)0x0;

+      winrt::copy_from_abi((IUnknown *)&local_50,param_1);

+      if (local_50 == (IPropertySet *)0x0) {

+        local_48 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+                    *)0x0;

+      }

+      else {

+        local_38 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+                    *)0x0;

+        (*(code *)**(undefined8 **)local_50)

+                  (local_50,&winrt::impl::

+                             guid_v<winrt::Windows::Internal::Shell::Desktop::ViewManagerInterop::IViewVisibilityOverride>

+                   ,&local_38);

+        local_48 = local_38;

+        if (local_38 !=

+            (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<1>,1,1,0,Windows::Internal::Shell::Experience::ICortanaShownEventArgs>

+             *)0x0) {

+          UVar4 = (UndockedSearchAppExperienceManager)

+                  winrt::impl::

+                  consume_Windows_Internal_Shell_Desktop_ViewManagerInterop_IViewVisibilityOverride<winrt::Windows::Internal::Shell::Desktop::ViewManagerInterop::IViewVisibilityOverride>

+                  ::VisibilityRevoked((consume_Windows_Internal_Shell_Desktop_ViewManagerInterop_IViewVisibilityOverride<winrt::Windows::Internal::Shell::Desktop::ViewManagerInterop::IViewVisibilityOverride>

+                                       *)&local_48);

+          this[0x3a2] = UVar4;

+        }

+      }

+      winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs

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

+      winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs

+      ::~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_50);

+    }

+  }

+  return 0;

 }
```

## `WindowingEnvironmentManager::CreateWindowingEnvironmentConfig`  (modified)

```diff
--- WindowingEnvironmentManager::CreateWindowingEnvironmentConfig
+++ WindowingEnvironmentManager::CreateWindowingEnvironmentConfig
@@ -1,2 +1,86 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB WindowingEnvironmentManager::CreateWindowingEnvironmentConfig : 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 WindowingEnvironmentManager::CreateWindowingEnvironmentConfig(enum

+   WindowingEnvironmentType,struct IWindowingEnvironmentConfig * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+WindowingEnvironmentManager::CreateWindowingEnvironmentConfig

+          (WindowingEnvironmentManager *this,WindowingEnvironmentType param_1,

+          IWindowingEnvironmentConfig **param_2)

+

+{

+  WindowingEnvironmentManager *SRWLock;

+  char cVar1;

+  undefined8 *puVar2;

+  undefined8 *puVar3;

+  int iVar4;

+  undefined8 *puVar5;

+  undefined8 *puVar6;

+  void *unaff_retaddr;

+  longlong *local_res8;

+  WindowingEnvironmentType local_res10;

+  WindowingEnvironmentManager *local_res18;

+  

+  *param_2 = (IWindowingEnvironmentConfig *)0x0;

+  local_res8 = (longlong *)0x0;

+  SRWLock = this + 0x18;

+  local_res10 = param_1;

+  AcquireSRWLockShared((PSRWLOCK)SRWLock);

+  puVar2 = *(undefined8 **)(this + 0x20);

+  cVar1 = *(char *)((longlong)puVar2[1] + 0x19);

+  puVar3 = puVar2;

+  puVar6 = (undefined8 *)puVar2[1];

+  while (cVar1 == '\0') {

+    if (*(int *)(puVar6 + 4) < (int)local_res10) {

+      puVar5 = (undefined8 *)puVar6[2];

+      puVar6 = puVar3;

+    }

+    else {

+      puVar5 = (undefined8 *)*puVar6;

+    }

+    puVar3 = puVar6;

+    puVar6 = puVar5;

+    cVar1 = *(char *)((longlong)puVar5 + 0x19);

+  }

+  if (((*(char *)((longlong)puVar3 + 0x19) == '\0') && (*(int *)(puVar3 + 4) <= (int)local_res10))

+     && (puVar3 != puVar2)) {

+    wil::com_ptr_t<IUwpWindowWrapperInternal,wil::err_exception_policy>::operator=

+              ((com_ptr_t<IUwpWindowWrapperInternal,wil::err_exception_policy> *)&local_res8,

+               (com_ptr_t<struct_IUwpWindowWrapperInternal,struct_wil::err_exception_policy> *)

+               (puVar3 + 5));

+  }

+  if (SRWLock != (WindowingEnvironmentManager *)0x0) {

+    ReleaseSRWLockShared((PSRWLOCK)SRWLock);

+  }

+  if (local_res8 == (longlong *)0x0) {

+    AcquireSRWLockExclusive((PSRWLOCK)SRWLock);

+    local_res18 = SRWLock;

+    GetCurrentThreadId();

+    iVar4 = Windows::Internal::ComTaskPool::

+            RunSynchronousTaskOnMTA<<lambda_68022f0d3b489cdc066e60d642ae628d>_>();

+    if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x66,

+                 "pcshell\\twinui\\windowingenvironment\\lib\\windowingenvironmentmanager.cpp",iVar4

+                );

+    }

+    if (SRWLock != (WindowingEnvironmentManager *)0x0) {

+      ReleaseSRWLockExclusive((PSRWLOCK)SRWLock);

+    }

+  }

+  iVar4 = (**(code **)*local_res8)(local_res8,&_GUID_3c32be79_d44b_4c43_b19b_12f70e686f35,param_2);

+  if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x1c60,

+               "onecore\\internal\\sdk\\inc\\wil\\opensource/wil/result_macros.h",iVar4);

+  }

+  (**(code **)(*local_res8 + 0x18))();

+  if (local_res8 != (longlong *)0x0) {

+    (**(code **)(*local_res8 + 0x10))();

+  }

+  return 0;

+}

+
```

## `KeyboardHosting::TabTipAdapter::OnEditControlEmbeddedHandwritingViewVisibleSettingChanged`  (modified)

```diff
--- KeyboardHosting::TabTipAdapter::OnEditControlEmbeddedHandwritingViewVisibleSettingChanged
+++ KeyboardHosting::TabTipAdapter::OnEditControlEmbeddedHandwritingViewVisibleSettingChanged
@@ -1,2 +1,65 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KeyboardHosting::TabTipAdapter::OnEditControlEmbeddedHandwritingViewVisibleSettingChanged : 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: long __cdecl

+   KeyboardHosting::TabTipAdapter::OnEditControlEmbeddedHandwritingViewVisibleSettingChanged(struct

+   Windows::UI::Internal::Text::Core::ICoreKeyboardManager * __ptr64,struct

+   Windows::UI::Internal::Text::Core::ICoreKeyboardManagerEditControlEmbeddedHandwritingViewVisibleSettingChangedEventArgs

+   * __ptr64) __ptr64 */

+

+long __thiscall

+KeyboardHosting::TabTipAdapter::OnEditControlEmbeddedHandwritingViewVisibleSettingChanged

+          (TabTipAdapter *this,ICoreKeyboardManager *param_1,

+          ICoreKeyboardManagerEditControlEmbeddedHandwritingViewVisibleSettingChangedEventArgs

+          *param_2)

+

+{

+  bool bVar1;

+  int iVar2;

+  uint uVar3;

+  void *unaff_retaddr;

+  undefined1 local_res18 [8];

+  int local_res20;

+  

+  local_res18[0] = 0;

+  iVar2 = (**(code **)(*(longlong *)param_2 + 0x30))(param_2,local_res18);

+  if (iVar2 < 0) {

+    uVar3 = 0x3dd;

+  }

+  else {

+    local_res20 = 0;

+    iVar2 = (**(code **)(**(longlong **)(this + 0x78) + 0xe0))();

+    if (iVar2 < 0) {

+      uVar3 = 0x3e0;

+    }

+    else {

+      if (local_res20 != 2) {

+        return 0;

+      }

+      IhmNotification::SendKeyboardSetVisible(0,0,false,false);

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

+              __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_CoreKeyboardMultiClient> *

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

+                                    ::__l2::impl);

+      if (bVar1) {

+        iVar2 = ProcessChangeRequest(this,2,*(uint *)(this + 0x1f0),7);

+        if (-1 < iVar2) {

+          return 0;

+        }

+        uVar3 = 0x3e9;

+      }

+      else {

+        iVar2 = ProcessChangeRequest(this,2,*(uint *)(this + 0x1f0),0);

+        if (-1 < iVar2) {

+          return 0;

+        }

+        uVar3 = 0x3ed;

+      }

+    }

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar3,

+             "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar2);

+  return iVar2;

+}

+
```

## `GamingOverlayExperienceManager::HandleGamingPostureHotkey`  (modified)

```diff
--- GamingOverlayExperienceManager::HandleGamingPostureHotkey
+++ GamingOverlayExperienceManager::HandleGamingPostureHotkey
@@ -1,29 +1,154 @@
+

+/* 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 GamingOverlayExperienceManager::HandleGamingPostureHotkey(void) __ptr64 */

 

 long __thiscall

-Microsoft::WRL::

-RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CServiceHostComponentWithGITSite,Microsoft::WRL::FtmBase>

-::HandleGamingPostureHotkey(GamingOverlayExperienceManager *this)

+GamingOverlayExperienceManager::HandleGamingPostureHotkey(GamingOverlayExperienceManager *this)

 

 {

-  int in_EAX;

-  long lVar1;

-  undefined4 in_register_00000004;

-  consume_Windows_Internal_ComposableShell_Multitasking_ISwitchItemDataView<winrt::Windows::Internal::ComposableShell::Multitasking::ISwitchItemDataView>

-  *unaff_RBX;

-  void *in_stack_00000028;

+  longlong *plVar1;

+  code *pcVar2;

+  bool bVar3;

+  int iVar4;

+  int iVar5;

+  uint uVar6;

+  char *pcVar7;

+  undefined1 uVar8;

+  void *unaff_retaddr;

+  undefined1 auStack_318 [48];

+  undefined **local_2e8 [42];

+  undefined1 local_198;

+  undefined8 local_188;

+  longlong *local_180;

+  undefined **local_178 [42];

+  ulonglong local_28;

   

-  *(char *)CONCAT44(in_register_00000004,in_EAX) =

-       *(char *)CONCAT44(in_register_00000004,in_EAX) + (char)in_EAX;

-  if (-1 < in_EAX) {

-    lVar1 = winrt::impl::

-            consume_Windows_Internal_ComposableShell_Multitasking_ISwitchItemDataView<winrt::Windows::Internal::ComposableShell::Multitasking::ISwitchItemDataView>

-            ::ReevaluateAll(unaff_RBX);

-    return lVar1;

+  local_28 = __security_cookie ^ (ulonglong)auStack_318;

+  local_180 = (longlong *)0x0;

+  plVar1 = *(longlong **)(this + 0x1c0);

+  pcVar2 = *(code **)(*plVar1 + 0x18);

+  Microsoft::WRL::ComPtr<IGameInput>::InternalRelease((ComPtr<IGameInput> *)&local_180);

+  iVar5 = (*pcVar2)(plVar1,&SID_GamingPostureController,&_GUID_21c3337a_afaf_5470_aa95_90fc8d496d8c,

+                    &local_180);

+  if (iVar5 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x1229,

+               "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+               ,iVar5);

+    goto LAB_0;

   }

-                    /* WARNING: Subroutine does not return */

-  wil::details::in1diag3::_Throw_Hr

-            (in_stack_00000028,0x66e,

-             "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-             ,in_EAX);

+  local_188 = 0;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_57804088>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_57804088> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    iVar4 = IsGamingFullScreenExperienceActive();

+    pcVar7 = (char *)0x0;

+    uVar8 = 0x50;

+    memset(local_178,0,0x150);

+    wil::

+    ActivityBase<GamingPostureUXTelemetryProvider,0,0,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+    ::

+    ActivityBase<GamingPostureUXTelemetryProvider,0,0,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+              ((ActivityBase<GamingPostureUXTelemetryProvider,0,0,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+                *)local_178,pcVar7,(bool)uVar8);

+    local_178[0] = &GamingPostureUXTelemetryProvider::HotkeyEntryPointActivity::_vftable_;

+    GamingPostureUXTelemetryProvider::HotkeyEntryPointActivity::StartActivity

+              ((HotkeyEntryPointActivity *)local_178,iVar4 == 0);

+    plVar1 = local_180;

+    if (iVar4 == 0) {

+      pcVar2 = *(code **)(*local_180 + 0x30);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_188);

+      iVar5 = (*pcVar2)(plVar1,1,0,&local_188);

+      if (-1 < iVar5) {

+LAB_1:

+        wil::

+        ActivityBase<GamingPostureUXTelemetryProvider,0,0,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+        ::

+        ActivityBase<GamingPostureUXTelemetryProvider,0,0,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+                  ((ActivityBase<GamingPostureUXTelemetryProvider,0,0,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+                    *)local_2e8,

+                   (ActivityBase<class_GamingPostureUXTelemetryProvider,0,0,5,50331648,struct__TlgReflectorTag_Param0IsProviderType>

+                    *)local_178);

+        local_2e8[0] = &GamingPostureUXTelemetryProvider::HotkeyEntryPointActivity::_vftable_;

+        local_198 = iVar4 == 0;

+        iVar5 = wil::details::

+                RunWhenCompleteAction<IUnknown,Windows::Foundation::IAsyncAction_*,<lambda_670c3bfbe2527c19a6d3da5bf7d2d729>_>

+                          (local_188,local_2e8);

+        GamingPostureUXTelemetryProvider::HotkeyEntryPointActivity::~HotkeyEntryPointActivity

+                  ((HotkeyEntryPointActivity *)local_2e8);

+        if (iVar5 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x125d,

+                     "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+                     ,iVar5);

+        }

+        wil::ActivityBase<ControlCenterLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

+        IgnoreCurrentThread((ActivityBase<ControlCenterLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>

+                             *)local_178);

+        GamingPostureUXTelemetryProvider::HotkeyEntryPointActivity::~HotkeyEntryPointActivity

+                  ((HotkeyEntryPointActivity *)local_178);

+        goto LAB_2;

+      }

+      uVar6 = 0x1233;

+    }

+    else {

+      pcVar2 = *(code **)(*local_180 + 0x38);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_188);

+      iVar5 = (*pcVar2)(plVar1,1,0,&local_188);

+      if (-1 < iVar5) goto LAB_1;

+      uVar6 = 0x1237;

+    }

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar6,

+               "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+               ,iVar5);

+    GamingPostureUXTelemetryProvider::HotkeyEntryPointActivity::~HotkeyEntryPointActivity

+              ((HotkeyEntryPointActivity *)local_178);

+LAB_3:

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_188);

+  }

+  else {

+    iVar5 = IsGamingFullScreenExperienceActive();

+    plVar1 = local_180;

+    if (iVar5 == 0) {

+      pcVar2 = *(code **)(*local_180 + 0x30);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_188);

+      iVar5 = (*pcVar2)(plVar1,1,0,&local_188);

+      if (iVar5 < 0) {

+        uVar6 = 0x1265;

+LAB_4:

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,uVar6,

+                   "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+                   ,iVar5);

+        goto LAB_3;

+      }

+    }

+    else {

+      pcVar2 = *(code **)(*local_180 + 0x38);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_188);

+      iVar5 = (*pcVar2)(plVar1,1,0,&local_188);

+      if (iVar5 < 0) {

+        uVar6 = 0x1269;

+        goto LAB_4;

+      }

+    }

+LAB_2:

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_188);

+    iVar5 = 0;

+  }

+LAB_0:

+  Microsoft::WRL::ComPtr<IGameInput>::InternalRelease((ComPtr<IGameInput> *)&local_180);

+  return iVar5;

 }
```

## `TouchKeyboardExperienceManager::OnMessage`  (modified)

```diff
--- TouchKeyboardExperienceManager::OnMessage
+++ TouchKeyboardExperienceManager::OnMessage
@@ -1,2 +1,31 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TouchKeyboardExperienceManager::OnMessage : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual long __cdecl TouchKeyboardExperienceManager::OnMessage(unsigned int,unsigned

+   __int64,__int64) __ptr64 */

+

+long __thiscall

+TouchKeyboardExperienceManager::OnMessage

+          (TouchKeyboardExperienceManager *this,uint param_1,__uint64 param_2,__int64 param_3)

+

+{

+  int iVar1;

+  long lVar2;

+  void *unaff_retaddr;

+  

+  if (param_1 == 0x1a) {

+    iVar1 = CompareStringOrdinal((LPCWSTR)param_3,-1,L"ImmersiveColorSet",-1,1);

+    if ((iVar1 == 2) || ((int)param_2 == 0x43)) {

+      lVar2 = UpdateVisibileViewsBorder(this + -0x88);

+      if (lVar2 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x246,

+                   "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\touchkeyboardexperiencemanager.cpp"

+                   ,lVar2);

+      }

+    }

+  }

+  else if (param_1 == 0x7e) {

+    OnDisplayChanged(this + -0x88);

+  }

+  return 0;

+}

+
```

## `SearchBoxOnTaskbarSearchAppPositioner::GetSearchBoxOnTaskbarClippingRegion`  (modified)

```diff
--- SearchBoxOnTaskbarSearchAppPositioner::GetSearchBoxOnTaskbarClippingRegion
+++ SearchBoxOnTaskbarSearchAppPositioner::GetSearchBoxOnTaskbarClippingRegion
@@ -1,2 +1,106 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB SearchBoxOnTaskbarSearchAppPositioner::GetSearchBoxOnTaskbarClippingRegion : 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

+   SearchBoxOnTaskbarSearchAppPositioner::GetSearchBoxOnTaskbarClippingRegion(struct tagRECT const &

+   __ptr64,struct MonitorInfo const & __ptr64,bool,struct tagRECT * __ptr64,class std::vector<struct

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

+

+void __thiscall

+SearchBoxOnTaskbarSearchAppPositioner::GetSearchBoxOnTaskbarClippingRegion

+          (SearchBoxOnTaskbarSearchAppPositioner *this,tagRECT *param_1,MonitorInfo *param_2,

+          bool param_3,tagRECT *param_4,vector<tagRECT,std::allocator<tagRECT>_> *param_5)

+

+{

+  LONG *pLVar1;

+  int iVar2;

+  int iVar3;

+  int iVar4;

+  int iVar5;

+  undefined1 auStack_c8 [32];

+  undefined4 local_a8;

+  undefined4 uStack_a4;

+  undefined4 uStack_a0;

+  int iStack_9c;

+  undefined8 local_98;

+  undefined8 uStack_90;

+  undefined8 local_88;

+  undefined8 uStack_80;

+  undefined8 local_78;

+  undefined8 uStack_70;

+  undefined4 local_68;

+  undefined4 uStack_64;

+  undefined4 uStack_60;

+  int iStack_5c;

+  tagRECT local_58;

+  undefined8 local_48;

+  tagRECT local_38;

+  ulonglong local_28;

+  

+  local_28 = __security_cookie ^ (ulonglong)auStack_c8;

+  iVar5 = param_1->left;

+  pLVar1 = &param_1->top;

+  iVar2 = *pLVar1;

+  iVar3 = param_1->right;

+  iVar4 = param_1->bottom;

+  param_4->left = 0;

+  param_4->top = 0;

+  param_4->right = iVar3 - iVar5;

+  param_4->bottom = iVar4 - iVar2;

+  if (*(int *)(param_2 + 0x50) != 2) {

+    return;

+  }

+  local_98 = *(undefined8 *)param_2;

+  uStack_90 = *(undefined8 *)(param_2 + 8);

+  local_88 = *(undefined8 *)(param_2 + 0x10);

+  uStack_80 = *(undefined8 *)(param_2 + 0x18);

+  local_78 = *(undefined8 *)(param_2 + 0x20);

+  uStack_70 = *(undefined8 *)(param_2 + 0x28);

+  local_58._0_8_ = *(undefined8 *)(param_2 + 0x40);

+  local_58._8_8_ = *(undefined8 *)(param_2 + 0x48);

+  local_48 = *(undefined8 *)(param_2 + 0x50);

+  local_a8 = *(undefined4 *)(param_2 + 0x30);

+  uStack_a4 = *(undefined4 *)(param_2 + 0x34);

+  uStack_a0 = *(undefined4 *)(param_2 + 0x38);

+  iStack_9c = *(int *)(param_2 + 0x3c);

+  local_68 = local_a8;

+  uStack_64 = uStack_a4;

+  uStack_60 = uStack_a0;

+  iStack_5c = iStack_9c;

+  local_38._0_8_ = local_58._0_8_;

+  local_38._8_8_ = local_58._8_8_;

+  iVar5 = `anonymous_namespace'::GetInnerSearchBoxOffset(&local_98);

+  if (param_3) {

+    if (param_1->right == local_38.top + iVar5) {

+      local_38.left = 0;

+      iVar5 = param_1->left;

+LAB_0:

+      local_38.top = *(int *)(param_2 + 0x40) - param_1->top;

+      if (param_3) {

+        local_38.right = *(LONG *)(param_2 + 0x3c);

+      }

+      else {

+        local_38.right = param_1->right;

+      }

+      local_38.right = local_38.right - iVar5;

+      local_38.bottom = *(int *)(param_2 + 0x48) - param_1->top;

+      goto LAB_1;

+    }

+  }

+  else if (param_1->left + iVar5 == iStack_9c) {

+    iVar5 = param_1->left;

+    local_38.left = *(int *)(param_2 + 0x44) - iVar5;

+    goto LAB_0;

+  }

+  local_38._0_8_ = (ulonglong)(uint)(*(int *)(param_2 + 0x40) - *pLVar1) << 0x20;

+  local_38.bottom = *(int *)(param_2 + 0x48) - *pLVar1;

+  local_38.right = *(int *)(param_2 + 0x3c) - param_1->left;

+  std::vector<tagRECT,std::allocator<tagRECT>_>::emplace_back<tagRECT>(param_5,&local_38);

+  local_38.top = *(int *)(param_2 + 0x40) - *pLVar1;

+  local_38.left = *(int *)(param_2 + 0x44) - param_1->left;

+  local_38.right = param_1->right - param_1->left;

+  local_38.bottom = *(int *)(param_2 + 0x48) - *pLVar1;

+LAB_1:

+  std::vector<tagRECT,std::allocator<tagRECT>_>::emplace_back<tagRECT>(param_5,&local_38);

+  return;

+}

+
```

## `CDragVisual::_OnCaptureChanged`  (modified)

```diff
--- CDragVisual::_OnCaptureChanged
+++ CDragVisual::_OnCaptureChanged
@@ -1,2 +1,42 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CDragVisual::_OnCaptureChanged : 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 CDragVisual::_OnCaptureChanged(void) __ptr64 */

+

+void __thiscall CDragVisual::_OnCaptureChanged(CDragVisual *this)

+

+{

+  bool bVar1;

+  HRESULT HVar2;

+  HWND pHVar3;

+  HWND pHVar4;

+  longlong *local_res8;

+  

+  pHVar3 = GetCapture();

+  if ((this[0x144] != (CDragVisual)0x0) && (pHVar3 != *(HWND *)(this + 0x98))) {

+    pHVar4 = (HWND)0x0;

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

+                      ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                        ::__l2::impl);

+    if (!bVar1) {

+      local_res8 = (longlong *)0x0;

+      Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_res8);

+      HVar2 = IUnknown_QueryService

+                        (*(IUnknown **)(this + 0x10),

+                         (GUID *)&_GUID_373e56cf_0a1b_4b4a_a1a4_a46b25ffd7e3,

+                         (IID *)&_GUID_84098f74_87a7_4582_b398_f6c3178e9dd6,&local_res8);

+      if (-1 < HVar2) {

+        pHVar4 = (HWND)(**(code **)(*local_res8 + 0x60))();

+      }

+      Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_res8);

+      if ((pHVar4 != (HWND)0x0) && (pHVar3 == pHVar4)) {

+        return;

+      }

+    }

+    this[0x144] = (CDragVisual)0x0;

+    _OnCancelDrag(this);

+  }

+  return;

+}

+
```

## `CopilotHotkeyManager::GetTargetAppExtensionDetails`  (modified)

```diff
--- CopilotHotkeyManager::GetTargetAppExtensionDetails
+++ CopilotHotkeyManager::GetTargetAppExtensionDetails
@@ -1,2 +1,781 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CopilotHotkeyManager::GetTargetAppExtensionDetails : 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: struct TargetAppExtensionDetails __cdecl

+   CopilotHotkeyManager::GetTargetAppExtensionDetails(class std::basic_string<unsigned short,struct

+   std::char_traits<unsigned short>,class std::allocator<unsigned short> >) __ptr64 */

+

+TargetAppExtensionDetails * __thiscall

+CopilotHotkeyManager::GetTargetAppExtensionDetails

+          (CopilotHotkeyManager *this,TargetAppExtensionDetails *param_2,

+          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+          *param_3)

+

+{

+  tip_test<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+  *this_00;

+  LPVOID pvVar1;

+  bool bVar2;

+  undefined4 uVar3;

+  int iVar4;

+  longlong *plVar5;

+  __uint64 _Var6;

+  consume_Windows_Networking_Connectivity_IConnectionProfile<winrt::Windows::Networking::Connectivity::IConnectionProfile>

+  *pcVar7;

+  ushort *puVar8;

+  void **ppvVar9;

+  undefined8 uVar10;

+  ushort ***pppuVar11;

+  undefined8 ***pppuVar12;

+  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+  *pbVar13;

+  undefined8 ***pppuVar14;

+  int iVar15;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *pbVar16;

+  TargetAppExtensionDetails **ppTVar17;

+  undefined4 extraout_XMM0_Da;

+  undefined4 extraout_XMM0_Db;

+  CopilotHotkeyManager *pCVar18;

+  CopilotHotkeyManager *pCVar19;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dd;

+  void *unaff_retaddr;

+  undefined1 auStack_378 [32];

+  undefined8 local_358;

+  ulonglong local_350;

+  consume_WindowsUdk_ApplicationModel_OnScreenInput_IKnownOnScreenInputUriSchemesStatics<winrt::WindowsUdk::ApplicationModel::OnScreenInput::IKnownOnScreenInputUriSchemesStatics>

+  local_348 [8];

+  longlong *local_340;

+  longlong *local_338 [2];

+  TargetAppExtensionDetails *local_328 [2];

+  undefined8 *local_318 [2];

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *local_308;

+  ulonglong *local_300;

+  longlong *local_2f8;

+  undefined8 local_2f0;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *local_2e8;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *local_2e0;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_2c8 [32];

+  TargetAppExtensionDetails *local_2a8 [4];

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *local_288;

+  undefined8 **local_280;

+  undefined8 uStack_278;

+  undefined8 local_270;

+  ulonglong uStack_268;

+  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+  local_260 [32];

+  undefined1 local_240;

+  undefined4 local_23c;

+  undefined4 local_238;

+  undefined4 uStack_234;

+  undefined8 uStack_230;

+  undefined8 uStack_228;

+  undefined8 local_220;

+  undefined8 **local_218;

+  undefined8 uStack_210;

+  undefined8 local_208;

+  ulonglong uStack_200;

+  ushort **local_1f8 [2];

+  __uint64 local_1e8;

+  ulonglong local_1e0;

+  ushort **local_1d8;

+  undefined8 uStack_1d0;

+  ulonglong local_1c8;

+  ulonglong local_1c0;

+  undefined8 local_1b8;

+  undefined8 uStack_1b0;

+  undefined8 local_1a8;

+  undefined8 uStack_1a0;

+  undefined8 local_198;

+  undefined8 uStack_190;

+  undefined8 local_188;

+  undefined8 uStack_180;

+  undefined8 local_178;

+  undefined8 local_170;

+  undefined8 uStack_168;

+  undefined8 local_160;

+  undefined8 local_158;

+  undefined8 local_150;

+  undefined8 local_148;

+  undefined8 uStack_140;

+  undefined8 local_138;

+  undefined8 uStack_130;

+  undefined8 local_128;

+  undefined8 local_120;

+  undefined8 uStack_118;

+  undefined8 local_110;

+  undefined8 local_108;

+  undefined8 local_100;

+  undefined8 local_f8;

+  undefined8 uStack_f0;

+  undefined8 local_e8;

+  undefined8 uStack_e0;

+  undefined8 local_d8;

+  undefined8 local_d0;

+  undefined8 uStack_c8;

+  undefined8 local_c0;

+  undefined8 local_b8;

+  undefined8 local_b0;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_a8 [32];

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_88 [32];

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_68 [32];

+  ulonglong local_48 [2];

+  

+  local_48[0] = __security_cookie ^ (ulonglong)auStack_378;

+  iVar15 = 0;

+  this_00 = (tip_test<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+             *)(this + 0x238);

+  local_328[0] = param_2;

+  local_288 = param_3;

+  plVar5 = (longlong *)

+           tip2::

+           tip_test<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+           ::operator->(this_00);

+  *(undefined1 *)(*plVar5 + 0x11c) = 1;

+  tip2::

+  test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+            ((test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+              *)local_328);

+  plVar5 = (longlong *)

+           tip2::

+           tip_test<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+           ::operator->(this_00);

+  *(undefined1 *)(*plVar5 + 0x11d) = 1;

+  tip2::

+  test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+            ((test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+              *)local_328);

+  uStack_1d0 = 0;

+  local_1c8 = 0;

+  local_1c0 = 7;

+  local_1d8 = (ushort **)0x0;

+  uStack_1b0 = 0;

+  local_1a8 = 0;

+  uStack_1a0 = 7;

+  local_1b8 = 0;

+  uStack_190 = 0;

+  local_188 = 0;

+  uStack_180 = 7;

+  local_198 = 0;

+  local_178 = 0;

+  uStack_168 = 0;

+  local_160 = 0;

+  local_158 = 7;

+  local_170 = 0;

+  local_150 = 0;

+  uStack_140 = 0;

+  local_138 = 0;

+  uStack_130 = 7;

+  local_148 = 0;

+  local_128 = 0;

+  uStack_118 = 0;

+  local_110 = 0;

+  local_108 = 7;

+  local_120 = 0;

+  local_100 = 0;

+  uStack_f0 = 0;

+  local_e8 = 0;

+  uStack_e0 = 7;

+  local_f8 = 0;

+  local_d8 = 0;

+  uStack_c8 = 0;

+  local_c0 = 0;

+  local_b8 = 7;

+  local_d0 = 0;

+  local_b0 = 0;

+  winrt::hstring::hstring

+            ((hstring *)local_328,(ushort *)L"com.microsoft.windows.copilotkeyprovider");

+  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_a8,(ushort *)L"PressAndHoldStart");

+  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_88,(ushort *)L"PressAndHoldStop");

+  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_68,(ushort *)L"SingleTap");

+  local_308 = local_a8;

+  local_300 = local_48;

+  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>_>_>_>

+  ::

+  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>_>_>_>

+            ((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>_>_>_>

+              *)&local_2e8,&local_308);

+  _eh_vector_destructor_iterator_

+            (local_a8,0x20,3,

+             std::

+             basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+             ::_Tidy_deallocate);

+  local_2a8[0] = local_328[0];

+  local_2f0 = 0;

+  ppTVar17 = local_2a8;

+  winrt::Windows::Internal::StateRepository::AppExtension::FindByUserOrDefaultAccountAndName

+            ((User *)&local_2f8,(hstring *)&local_2f0);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_2f0);

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_PenButtonSettingsModernization>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_PenButtonSettingsModernization>

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

+                                  ::__l2::impl);

+  if (!bVar2) {

+    local_308 = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                 *)&local_2f8;

+    local_300 = (ulonglong *)((ulonglong)local_300 & 0xffffffff00000000);

+    local_358 = local_358 & 0xffffffff00000000;

+    local_238 = 0;

+    uStack_230 = 0;

+    uStack_228 = 0;

+    uVar3 = (**(code **)(*local_2f8 + 0x38))(local_2f8,&local_358);

+    pbVar16 = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+               *)&local_350;

+    winrt::check_hresult(pbVar16,uVar3,&local_238);

+LAB_0:

+    if (iVar15 != (int)local_358) {

+      winrt::impl::

+      fast_iterator<winrt::Windows::Foundation::Collections::IVectorView<winrt::WindowsUdk::UI::Shell::WebSearchProvider>_>

+      ::operator*((fast_iterator<winrt::Windows::Foundation::Collections::IVectorView<winrt::WindowsUdk::UI::Shell::WebSearchProvider>_>

+                   *)&local_308);

+      pcVar7 = (consume_Windows_Networking_Connectivity_IConnectionProfile<winrt::Windows::Networking::Connectivity::IConnectionProfile>

+                *)winrt::impl::

+                  consume_WindowsUdk_ApplicationModel_OnScreenInput_IKnownOnScreenInputUriSchemesStatics<winrt::WindowsUdk::ApplicationModel::OnScreenInput::IKnownOnScreenInputUriSchemesStatics>

+                  ::Other(local_348);

+      winrt::impl::

+      consume_Windows_Networking_Connectivity_IConnectionProfile<winrt::Windows::Networking::Connectivity::IConnectionProfile>

+      ::GetConnectionCost(pcVar7);

+      winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs

+      ::~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_340);

+      winrt::impl::

+      consume_Windows_Internal_StateRepository_IApplication<winrt::Windows::Internal::StateRepository::IApplication>

+      ::ApplicationUserModelId

+                ((consume_Windows_Internal_StateRepository_IApplication<winrt::Windows::Internal::StateRepository::IApplication>

+                  *)local_318);

+      bVar2 = winrt::operator==((hstring *)&local_350,param_3);

+      if (!bVar2) goto code_r0x00018062c563;

+      winrt::impl::

+      consume_Windows_Internal_StateRepository_IAppExtension<winrt::Windows::Internal::StateRepository::IAppExtension>

+      ::Get_Dictionary((consume_Windows_Internal_StateRepository_IAppExtension<winrt::Windows::Internal::StateRepository::IAppExtension>

+                        *)local_348);

+      local_338[0] = (longlong *)0x0;

+      winrt::put_abi((IUnknown *)local_338);

+      pvVar1 = (LPVOID)CONCAT44(uStack_234,local_238);

+      iVar15 = SRDictionaryToPropertySet(uStack_230 & 0xffffffff,pvVar1);

+      if (iVar15 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x8d5,

+                   "pcshell\\twinui\\copilothotkeymanager\\lib\\copilothotkeymanager.cpp",iVar15);

+      }

+      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_1d8,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)param_3);

+      _Var6 = std::

+              basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+              ::find((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_1d8,(ushort *)L"!",0);

+      local_218 = (undefined8 ***)0x0;

+      uStack_210 = 0;

+      local_208 = 0;

+      uStack_200 = 0;

+      std::_String_val<std::_Simple_types<unsigned_short>_>::_Check_offset

+                ((_String_val<std::_Simple_types<unsigned_short>_> *)&local_1d8,0);

+      if (local_1c8 < _Var6) {

+        _Var6 = local_1c8;

+      }

+      pppuVar11 = &local_1d8;

+      if (7 < local_1c0) {

+        pppuVar11 = (ushort ***)local_1d8;

+      }

+      std::

+      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+      ::_Construct<1,unsigned_short_const*___ptr64>

+                ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  *)&local_218,(ushort *)pppuVar11,_Var6);

+      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_1b8,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)&local_218);

+      std::

+      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+      ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          *)&local_218);

+      for (pbVar16 = local_2e8; pbVar16 != local_2e0; pbVar16 = pbVar16 + 0x20) {

+        local_308 = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                     *)&local_340;

+        local_340 = local_338[0];

+        Microsoft::WRL::ComPtr<ITemporaryAppVisualArray>::InternalAddRef

+                  ((ComPtr<ITemporaryAppVisualArray> *)&local_340);

+        uVar10 = 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_2c8,

+                            (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                             *)pbVar16);

+        GetTargetAppExtensionHelper(pCVar19._0_4_,local_260,uVar10,&local_340);

+        bVar2 = std::

+                basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                ::_Equal(pbVar16,(ushort *)L"PressAndHoldStart");

+        if (bVar2) {

+          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_170,local_260);

+          local_150 = CONCAT71(local_150._1_7_,local_240);

+          local_150 = CONCAT44(local_23c,(undefined4)local_150);

+        }

+        else {

+          bVar2 = std::

+                  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  ::_Equal(pbVar16,(ushort *)L"PressAndHoldStop");

+          if (bVar2) {

+            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_148,local_260);

+            local_128 = CONCAT71(local_128._1_7_,local_240);

+            local_128 = CONCAT44(local_23c,(undefined4)local_128);

+          }

+          else {

+            bVar2 = std::

+                    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    ::_Equal(pbVar16,(ushort *)L"SingleTap");

+            if (bVar2) {

+              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_198,local_260);

+              local_178 = CONCAT71(local_178._1_7_,local_240);

+              local_178 = CONCAT44(local_23c,(undefined4)local_178);

+            }

+          }

+        }

+        std::

+        basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+        ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                            *)local_260);

+      }

+      winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs

+      ::~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_338);

+      if (pvVar1 != (LPVOID)0x0) {

+        __Platform_CoTaskMemFree(pvVar1);

+      }

+      winrt::hstring::~hstring((hstring *)&local_350);

+      winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs

+      ::~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_318);

+      pbVar16 = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                 *)local_348;

+      winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs

+      ::~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)pbVar16);

+    }

+    goto LAB_1;

+  }

+  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>_>

+              *)&local_280,(ushort *)L"PenButtonSingleClick");

+  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_one_at_back<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>_>_>_>

+              *)&local_2e8,

+             (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+              *)&local_280);

+  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_280);

+  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>_>

+              *)&local_280,(ushort *)L"PenButtonDoubleClick");

+  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_one_at_back<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>_>_>_>

+              *)&local_2e8,

+             (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+              *)&local_280);

+  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_280);

+  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>_>

+              *)&local_280,(ushort *)L"PenButtonPressAndHold");

+  pbVar13 = (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+             *)&local_280;

+  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_one_at_back<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>_>_>_>

+              *)&local_2e8,pbVar13);

+  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_280);

+  uStack_210 = 0;

+  local_208 = 0;

+  uStack_200 = 7;

+  local_218 = (undefined8 ***)0x0;

+  _Var6 = std::

+          basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+          ::find_first_of(param_3,(ushort *)pbVar13,(__uint64)ppTVar17);

+  if (_Var6 == 0xffffffffffffffff) {

+    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_218,

+              (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+               *)param_3);

+  }

+  else {

+    local_280 = (undefined8 ***)0x0;

+    uStack_278 = 0;

+    local_270 = 0;

+    uStack_268 = 0;

+    std::_String_val<std::_Simple_types<unsigned_short>_>::_Check_offset

+              ((_String_val<std::_Simple_types<unsigned_short>_> *)param_3,0);

+    if (*(ulonglong *)(param_3 + 0x10) < _Var6) {

+      _Var6 = *(__uint64 *)(param_3 + 0x10);

+    }

+    pbVar16 = param_3;

+    if (7 < *(ulonglong *)(param_3 + 0x18)) {

+      pbVar16 = *(basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  **)param_3;

+    }

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    _Construct<1,unsigned_short_const*___ptr64>

+              ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                *)&local_280,(ushort *)pbVar16,_Var6);

+    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_218,

+              (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+               *)&local_280);

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    _Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_280);

+  }

+  local_308 = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+               *)&local_2f8;

+  local_300 = (ulonglong *)((ulonglong)local_300 & 0xffffffff00000000);

+  local_358 = (ulonglong)local_358._4_4_ << 0x20;

+  local_238 = 0;

+  uStack_230 = 0;

+  uStack_228 = 0;

+  uVar3 = (**(code **)(*local_2f8 + 0x38))(local_2f8,&local_358);

+  winrt::check_hresult(&local_350,uVar3);

+  while( true ) {

+    if (iVar15 == (int)local_358) goto LAB_2;

+    winrt::impl::

+    fast_iterator<winrt::Windows::Foundation::Collections::IVectorView<winrt::WindowsUdk::UI::Shell::WebSearchProvider>_>

+    ::operator*((fast_iterator<winrt::Windows::Foundation::Collections::IVectorView<winrt::WindowsUdk::UI::Shell::WebSearchProvider>_>

+                 *)&local_308);

+    pcVar7 = (consume_Windows_Networking_Connectivity_IConnectionProfile<winrt::Windows::Networking::Connectivity::IConnectionProfile>

+              *)winrt::impl::

+                consume_WindowsUdk_ApplicationModel_OnScreenInput_IKnownOnScreenInputUriSchemesStatics<winrt::WindowsUdk::ApplicationModel::OnScreenInput::IKnownOnScreenInputUriSchemesStatics>

+                ::Other(local_348);

+    winrt::impl::

+    consume_Windows_Networking_Connectivity_IConnectionProfile<winrt::Windows::Networking::Connectivity::IConnectionProfile>

+    ::GetConnectionCost(pcVar7);

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_318);

+    winrt::impl::

+    consume_Windows_Internal_StateRepository_IApplication<winrt::Windows::Internal::StateRepository::IApplication>

+    ::ApplicationUserModelId

+              ((consume_Windows_Internal_StateRepository_IApplication<winrt::Windows::Internal::StateRepository::IApplication>

+                *)&local_340);

+    puVar8 = winrt::hstring::c_str((hstring *)local_338);

+    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>_>

+                *)local_1f8,puVar8);

+    uStack_278 = 0;

+    local_270 = 0;

+    uStack_268 = 7;

+    local_280 = (undefined8 ***)0x0;

+    pppuVar11 = local_1f8;

+    if (7 < local_1e0) {

+      pppuVar11 = (ushort ***)local_1f8[0];

+    }

+    _Var6 = std::_Traits_find_ch<std::char_traits<unsigned_short>_>

+                      ((ushort *)pppuVar11,local_1e8,0,0x21);

+    if (_Var6 == 0xffffffffffffffff) {

+      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_280,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)local_1f8);

+    }

+    else {

+      uStack_230 = CONCAT44(extraout_XMM0_Dd,extraout_XMM0_Dc);

+      uStack_228 = 0;

+      local_220 = 0;

+      local_238 = extraout_XMM0_Da;

+      uStack_234 = extraout_XMM0_Db;

+      std::_String_val<std::_Simple_types<unsigned_short>_>::_Check_offset

+                ((_String_val<std::_Simple_types<unsigned_short>_> *)local_1f8,0);

+      if (local_1e8 < _Var6) {

+        _Var6 = local_1e8;

+      }

+      pppuVar11 = local_1f8;

+      if (7 < local_1e0) {

+        pppuVar11 = (ushort ***)local_1f8[0];

+      }

+      std::

+      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+      ::_Construct<1,unsigned_short_const*___ptr64>

+                ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  *)&local_238,(ushort *)pppuVar11,_Var6);

+      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_280,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)&local_238);

+      std::

+      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+      ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          *)&local_238);

+    }

+    pppuVar14 = &local_218;

+    if (7 < uStack_200) {

+      pppuVar14 = (undefined8 ***)local_218;

+    }

+    pppuVar12 = &local_280;

+    if (7 < uStack_268) {

+      pppuVar12 = (undefined8 ***)local_280;

+    }

+    iVar4 = _o__wcsicmp(pppuVar12,pppuVar14);

+    if (iVar4 == 0) break;

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    _Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_280);

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    _Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)local_1f8);

+    winrt::hstring::~hstring((hstring *)local_338);

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_340);

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_348);

+    iVar15 = iVar15 + 1;

+    local_300 = (ulonglong *)CONCAT44(local_300._4_4_,iVar15);

+  }

+  winrt::impl::

+  consume_Windows_Internal_StateRepository_IAppExtension<winrt::Windows::Internal::StateRepository::IAppExtension>

+  ::Get_Dictionary((consume_Windows_Internal_StateRepository_IAppExtension<winrt::Windows::Internal::StateRepository::IAppExtension>

+                    *)local_348);

+  local_350 = 0;

+  ppvVar9 = winrt::put_abi((IUnknown *)&local_350);

+  pvVar1 = (LPVOID)CONCAT44(uStack_234,local_238);

+  iVar15 = SRDictionaryToPropertySet(uStack_230 & 0xffffffff,pvVar1,ppvVar9);

+  if (iVar15 < 0) {

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_350);

+  }

+  else {

+    puVar8 = winrt::hstring::c_str((hstring *)local_338);

+    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_1d8,puVar8);

+    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_1b8,

+              (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+               *)&local_280);

+    for (pbVar16 = local_2e8; pbVar16 != local_2e0; pbVar16 = pbVar16 + 0x20) {

+      local_318[0] = &local_358;

+      local_358 = local_350;

+      Microsoft::WRL::ComPtr<ITemporaryAppVisualArray>::InternalAddRef

+                ((ComPtr<ITemporaryAppVisualArray> *)&local_358);

+      uVar10 = 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_2c8,

+                          (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                           *)pbVar16);

+      GetTargetAppExtensionHelper(pCVar18._0_4_,local_260,uVar10,&local_358);

+      bVar2 = std::

+              basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+              ::_Equal(pbVar16,(ushort *)L"PressAndHoldStart");

+      if (bVar2) {

+        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_170,local_260);

+        local_150 = CONCAT71(local_150._1_7_,local_240);

+        local_150 = CONCAT44(local_23c,(undefined4)local_150);

+      }

+      else {

+        bVar2 = std::

+                basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                ::_Equal(pbVar16,(ushort *)L"PressAndHoldStop");

+        if (bVar2) {

+          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_148,local_260);

+          local_128 = CONCAT71(local_128._1_7_,local_240);

+          local_128 = CONCAT44(local_23c,(undefined4)local_128);

+        }

+        else {

+          bVar2 = std::

+                  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  ::_Equal(pbVar16,(ushort *)L"SingleTap");

+          if (bVar2) {

+            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_198,local_260);

+            local_178 = CONCAT71(local_178._1_7_,local_240);

+            local_178 = CONCAT44(local_23c,(undefined4)local_178);

+          }

+          else {

+            bVar2 = std::

+                    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    ::_Equal(pbVar16,(ushort *)L"PenButtonSingleClick");

+            if (bVar2) {

+              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_120,local_260);

+              local_100 = CONCAT71(local_100._1_7_,local_240);

+              local_100 = CONCAT44(local_23c,(undefined4)local_100);

+            }

+            else {

+              bVar2 = std::

+                      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      ::_Equal(pbVar16,(ushort *)L"PenButtonDoubleClick");

+              if (bVar2) {

+                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_f8,local_260);

+                local_d8 = CONCAT71(local_d8._1_7_,local_240);

+                local_d8 = CONCAT44(local_23c,(undefined4)local_d8);

+              }

+              else {

+                bVar2 = std::

+                        basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                        ::_Equal(pbVar16,(ushort *)L"PenButtonPressAndHold");

+                if (bVar2) {

+                  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_d0,local_260);

+                  local_b0 = CONCAT71(local_b0._1_7_,local_240);

+                  local_b0 = CONCAT44(local_23c,(undefined4)local_b0);

+                }

+              }

+            }

+          }

+        }

+      }

+      std::

+      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+      ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          *)local_260);

+    }

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_350);

+  }

+  if (pvVar1 != (LPVOID)0x0) {

+    __Platform_CoTaskMemFree(pvVar1);

+  }

+  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_280);

+  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)local_1f8);

+  winrt::hstring::~hstring((hstring *)local_338);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_340);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_348);

+LAB_2:

+  pbVar16 = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+             *)&local_218;

+  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  ::_Tidy_deallocate(pbVar16);

+LAB_1:

+  if (local_1c8 != 0) {

+    bVar2 = AreValidUris((CopilotHotkeyManager *)pbVar16,(TargetAppExtensionDetails *)&local_1d8);

+    if (bVar2) {

+      bVar2 = AreValidFastPathEnabledStates

+                        ((CopilotHotkeyManager *)pbVar16,(TargetAppExtensionDetails *)&local_1d8);

+      if (bVar2) goto LAB_3;

+    }

+    ClearWalkieTalkieProperties(this,(TargetAppExtensionDetails *)&local_1d8);

+    ClearFastpathRegistrationProperties(this);

+  }

+LAB_3:

+  plVar5 = (longlong *)

+           tip2::

+           tip_test<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+           ::operator->(this_00);

+  *(undefined1 *)(*plVar5 + 0x11d) = 0;

+  tip2::

+  test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+            ((test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+              *)&local_2f0);

+  TargetAppExtensionDetails::TargetAppExtensionDetails

+            (param_2,(TargetAppExtensionDetails *)&local_1d8);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_2f8);

+  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>_>_>_>

+  ::_Tidy((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>_>_>_>

+           *)&local_2e8);

+  winrt::hstring::~hstring((hstring *)local_328);

+  TargetAppExtensionDetails::~TargetAppExtensionDetails((TargetAppExtensionDetails *)&local_1d8);

+  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  ::_Tidy_deallocate(param_3);

+  return param_2;

+code_r0x00018062c563:

+  winrt::hstring::~hstring((hstring *)&local_350);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_318);

+  pbVar16 = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+             *)local_348;

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)pbVar16);

+  iVar15 = iVar15 + 1;

+  local_300 = (ulonglong *)CONCAT44(local_300._4_4_,iVar15);

+  goto LAB_0;

+}

+
```

## `CSnapComponentTelemetry::AppSnapped<SnapRegion,Geometry::CRect&___ptr64,Geometry::CRect&___ptr64,unsigned_short_const*___ptr64,HWND__*___ptr64&___ptr64>`  (modified)

```diff
--- CSnapComponentTelemetry::AppSnapped<SnapRegion,Geometry::CRect&___ptr64,Geometry::CRect&___ptr64,unsigned_short_const*___ptr64,HWND__*___ptr64&___ptr64>
+++ CSnapComponentTelemetry::AppSnapped<SnapRegion,Geometry::CRect&___ptr64,Geometry::CRect&___ptr64,unsigned_short_const*___ptr64,HWND__*___ptr64&___ptr64>
@@ -1,2 +1,30 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CSnapComponentTelemetry::AppSnapped<SnapRegion,Geometry::CRect&___ptr64,Geometry::CRect&___ptr64,unsigned_short_const*___ptr64,HWND__*___ptr64&___ptr64> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: static void __cdecl CSnapComponentTelemetry::AppSnapped<enum SnapRegion,struct

+   Geometry::CRect & __ptr64,struct Geometry::CRect & __ptr64,unsigned short const * __ptr64,struct

+   HWND__ * __ptr64 & __ptr64>(enum SnapRegion && __ptr64,struct Geometry::CRect & __ptr64,struct

+   Geometry::CRect & __ptr64,unsigned short const * __ptr64 && __ptr64,struct HWND__ * __ptr64 &

+   __ptr64) */

+

+void __cdecl

+CSnapComponentTelemetry::

+AppSnapped<SnapRegion,Geometry::CRect&___ptr64,Geometry::CRect&___ptr64,unsigned_short_const*___ptr64,HWND__*___ptr64&___ptr64>

+          (SnapRegion *param_1,CRect *param_2,CRect *param_3,ushort **param_4,HWND__ **param_5)

+

+{

+  bool bVar1;

+  uchar uVar2;

+  undefined7 uVar3;

+  

+  uVar2 = (uchar)param_1;

+  uVar3 = (undefined7)((ulonglong)param_1 >> 8);

+  bVar1 = IsEnabled(uVar2,(__uint64)param_2);

+  if (bVar1) {

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

+              ((static_lazy<CSnapComponentTelemetry> *)CONCAT71(uVar3,uVar2),

+               <lambda_3442a9d6c0a6f0a8d43c13feb2a6d4f2>::<lambda_invoker_cdecl>);

+    AppSnapped_((CSnapComponentTelemetry *)CONCAT71(uVar3,uVar2),*param_1,param_2,param_3,*param_4,

+                *param_5);

+  }

+  return;

+}

+
```

## `KeyboardHosting::TabTipAdapter::OnOnScreenKeyboardVisibilityChanged`  (modified)

```diff
--- KeyboardHosting::TabTipAdapter::OnOnScreenKeyboardVisibilityChanged
+++ KeyboardHosting::TabTipAdapter::OnOnScreenKeyboardVisibilityChanged
@@ -1,2 +1,54 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KeyboardHosting::TabTipAdapter::OnOnScreenKeyboardVisibilityChanged : 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: long __cdecl KeyboardHosting::TabTipAdapter::OnOnScreenKeyboardVisibilityChanged(bool)

+   __ptr64 */

+

+long __thiscall

+KeyboardHosting::TabTipAdapter::OnOnScreenKeyboardVisibilityChanged

+          (TabTipAdapter *this,bool param_1)

+

+{

+  bool bVar1;

+  int iVar2;

+  long lVar3;

+  uint uVar4;

+  undefined7 in_register_00000011;

+  void *unaff_retaddr;

+  int local_res8 [2];

+  

+  local_res8[0] = 0;

+  iVar2 = (**(code **)(**(longlong **)(this + 0x80) + 0x88))

+                    (*(longlong **)(this + 0x80),CONCAT71(in_register_00000011,param_1),local_res8);

+  if (iVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xa44,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar2);

+    return iVar2;

+  }

+  if (local_res8[0] == 2) {

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

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_CoreKeyboardMultiClient> *)

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

+                                 ::__l2::impl);

+    if (bVar1) {

+      lVar3 = ProcessChangeRequest(this,2,*(uint *)(this + 0x1f0),0);

+      if (-1 < lVar3) goto LAB_0;

+      uVar4 = 0xa4a;

+    }

+    else {

+      lVar3 = ProcessChangeRequest(this,2,*(uint *)(this + 0x1f0),0);

+      if (-1 < lVar3) goto LAB_0;

+      uVar4 = 0xa4e;

+    }

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar4,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",lVar3);

+  }

+  else {

+LAB_0:

+    lVar3 = 0;

+  }

+  return lVar3;

+}

+
```

## `UndockedSearchAppExperienceManager::ActivationDeferralComplete`  (modified)

```diff
--- UndockedSearchAppExperienceManager::ActivationDeferralComplete
+++ UndockedSearchAppExperienceManager::ActivationDeferralComplete
@@ -1,63 +1,144 @@
 

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

    guard_dispatch_icall */

+/* private: void __cdecl UndockedSearchAppExperienceManager::ActivationDeferralComplete(bool)

+   __ptr64 */

 

 void __thiscall

-Windows::Internal::ShellHelpers::PropertySetHelper::ActivationDeferralComplete

+UndockedSearchAppExperienceManager::ActivationDeferralComplete

           (UndockedSearchAppExperienceManager *this,bool param_1)

 

 {

-  int iVar1;

-  longlong unaff_RBX;

-  undefined8 *unaff_RDI;

-  char *unaff_R14;

-  void *in_stack_00000028;

+  tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+  *this_00;

+  ulonglong *puVar1;

+  bool bVar2;

+  char cVar3;

+  longlong lVar4;

+  longlong *plVar5;

+  FeatureImpl<struct___WilFeatureTraits_Feature_50573867> *pFVar6;

+  longlong local_res18;

+  ulonglong local_res20;

+  undefined8 local_a8;

+  test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  local_a0 [56];

+  longlong local_68;

+  test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  local_60 [72];

   

-  *(undefined8 *)(unaff_RBX + 0x108) = 0;

-  if (*(longlong *)(unaff_RBX + 0x110) != 0) {

-    iVar1 = (**(code **)(*(longlong *)*unaff_RDI + 0x120))();

-    if (iVar1 < 0) {

-      wil::details::in1diag3::_Log_Hr(in_stack_00000028,0x5e5,unaff_R14,iVar1);

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

+            ::__l2::impl;

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_50573867>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_50573867> *)

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

+                      ::__l2::impl);

+  if ((bVar2) && (*(longlong *)(this + 0x328) == 0)) {

+    local_res18 = CONCAT44(local_res18._4_4_,(uint)*(ushort *)(this + 0x358));

+    local_res20 = local_res20 & 0xffffffff00000000;

+    SearchAppExperienceManagerTelemetry::

+    UndockedSearchAppExperienceManager_StaleActivationMessageDiscarded<unsigned_short_const*___ptr64_const&___ptr64,int,unsigned_int>

+              ((ushort **)pFVar6,(int *)&local_res20,(uint *)&local_res18);

+    return;

+  }

+  tip2::

+  test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::

+  test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+            (local_a0);

+  local_res18 = local_68;

+  if (local_68 != 0) {

+    LOCK();

+    *(int *)(local_68 + 0x158) = *(int *)(local_68 + 0x158) + 1;

+    UNLOCK();

+  }

+  tip2::

+  test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::

+  ~test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+            (local_a0);

+  this_00 = (tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+             *)(this + 0x348);

+  bVar2 = tip2::

+          tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+          ::operator_bool(this_00);

+  if (bVar2) {

+    lVar4 = tip2::

+            tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+            ::watch_errors((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                            *)this_00);

+    wil::

+    com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+    ::operator=((com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+                 *)&local_res18,

+                (com_ptr_t<class_tip2::details::merged_data<struct__tip_SearchFullActivationTest,struct__tip_SearchFullActivationTest>,struct_wil::err_returncode_policy>

+                 *)(lVar4 + 0x38));

+    tip2::

+    test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::

+    ~test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+              (local_60);

+  }

+  if (param_1) {

+    bVar2 = tip2::

+            tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+            ::operator_bool(this_00);

+    if (bVar2) {

+      plVar5 = (longlong *)

+               tip2::

+               tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+               ::operator->((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                             *)this_00);

+      *(undefined1 *)(*plVar5 + 0x152) = 1;

+      tip2::

+      test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                  *)&local_res20);

     }

-    *(undefined8 *)(unaff_RBX + 0x110) = 0;

+    cVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_SearchWebView2>::

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_SearchWebView2> *)

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

+                                 ::__l2::impl);

   }

-  if (*(longlong *)(unaff_RBX + 0x118) != 0) {

-    iVar1 = (**(code **)(**(longlong **)(unaff_RBX + 0xb0) + 0x130))();

-    if (iVar1 < 0) {

-      wil::details::in1diag3::_Log_Hr(in_stack_00000028,0x5eb,unaff_R14,iVar1);

-    }

-    *(undefined8 *)(unaff_RBX + 0x118) = 0;

+  else {

+    bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_SearchWebView2>::

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_SearchWebView2> *)

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

+                                 ::__l2::impl);

+    if (bVar2) goto LAB_0;

+    cVar3 = (**(code **)(**(longlong **)(this + 0x60) + 0x20))

+                      (*(longlong **)(this + 0x60),*(undefined8 *)(this + 0x38));

   }

-  if (*(longlong *)(unaff_RBX + 0x120) != 0) {

-    iVar1 = (**(code **)(**(longlong **)(unaff_RBX + 0xb0) + 0xc0))();

-    if (iVar1 < 0) {

-      wil::details::in1diag3::_Log_Hr(in_stack_00000028,0x5f1,unaff_R14,iVar1);

-    }

-    *(undefined8 *)(unaff_RBX + 0x120) = 0;

+  if (cVar3 == '\0') {

+    StartDeferredSuspensionTimer(this);

   }

-  if (*(longlong *)(unaff_RBX + 0x128) != 0) {

-    iVar1 = (**(code **)(**(longlong **)(unaff_RBX + 0xb0) + 0xe0))();

-    if (iVar1 < 0) {

-      wil::details::in1diag3::_Log_Hr(in_stack_00000028,0x5f7,unaff_R14,iVar1);

-    }

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

+LAB_0:

+  UnboostPriority(this);

+  puVar1 = *(ulonglong **)(this + 0x328);

+  if (puVar1 != (ulonglong *)0x0) {

+    local_a8 = 0;

+    local_res20 = *puVar1;

+    *puVar1 = 0;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_res20);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_a8);

+    std::shared_ptr<SnapInteraction::InteractionRecord>::reset

+              ((shared_ptr<SnapInteraction::InteractionRecord> *)(this + 0x328));

   }

-  if (*(longlong *)(unaff_RBX + 0x138) != 0) {

-    iVar1 = (**(code **)(**(longlong **)(unaff_RBX + 0xb0) + 0x1c0))();

-    if (iVar1 < 0) {

-      wil::details::in1diag3::_Log_Hr(in_stack_00000028,0x5fd,unaff_R14,iVar1);

-    }

-    *(undefined8 *)(unaff_RBX + 0x138) = 0;

+  bVar2 = tip2::

+          tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+          ::operator_bool(this_00);

+  if (bVar2) {

+    CompleteFullActivationTest(this);

   }

-  if (*(longlong *)(unaff_RBX + 0x130) != 0) {

-    iVar1 = (**(code **)(**(longlong **)(unaff_RBX + 0xb0) + 0x1b0))();

-    if (iVar1 < 0) {

-      wil::details::in1diag3::_Log_Hr(in_stack_00000028,0x602,unaff_R14,iVar1);

-    }

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

-  }

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

-            ((ComPtr<IImmersiveSystemModeNotification> *)(unaff_RBX + 0xb0));

+  wil::

+  com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+            ((com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+              *)&local_res18);

   return;

 }
```

## `UndockedSearchAppExperienceManager::OnViewRequestNavigate`  (modified)

```diff
--- UndockedSearchAppExperienceManager::OnViewRequestNavigate
+++ UndockedSearchAppExperienceManager::OnViewRequestNavigate
@@ -1,831 +1,415 @@
 

+/* 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: Type propagation algorithm not settling */

+/* private: long __cdecl UndockedSearchAppExperienceManager::OnViewRequestNavigate(struct

+   Windows::Foundation::Collections::IPropertySet * __ptr64) __ptr64 */

 

 long __thiscall

-Windows::Internal::ShellHelpers::PropertySetHelper::OnViewRequestNavigate

+UndockedSearchAppExperienceManager::OnViewRequestNavigate

           (UndockedSearchAppExperienceManager *this,IPropertySet *param_1)

 

 {

-  byte *pbVar1;

-  longlong *plVar2;

-  longlong *plVar3;

-  longlong *plVar4;

-  longlong *plVar5;

-  longlong *plVar6;

-  longlong *plVar7;

-  byte in_AL;

-  int iVar8;

-  unique_any_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(struct_wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),struct_wistd::integral_constant<unsigned___int64,2>,struct_wil::details::wnf_subscription_state_base*___ptr64,struct_wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

-  *puVar9;

-  longlong *unaff_RBX;

-  longlong unaff_RBP;

-  longlong *unaff_RDI;

-  ReportingKind RVar10;

-  __uint64 in_R9;

-  longlong unaff_R12;

-  _func_long_IStartExperienceManager_ptr_IInspectable_ptr *unaff_R13;

-  code *pcStack0000000000000030;

-  longlong in_stack_00000040;

-  longlong *in_stack_00000048;

-  undefined8 *in_stack_00000050;

-  longlong *in_stack_00000058;

-  longlong *in_stack_00000060;

-  longlong *in_stack_00000068;

-  longlong *in_stack_00000070;

-  longlong *in_stack_00000078;

+  tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  *this_00;

+  code *pcVar1;

+  bool bVar2;

+  bool bVar3;

+  char cVar4;

+  long lVar5;

+  uint uVar6;

+  int iVar7;

+  longlong *plVar8;

+  WeakRef *pWVar9;

+  undefined8 uVar10;

+  FeatureImpl<struct___WilFeatureTraits_Feature_54865932> *this_01;

+  uint uVar11;

+  _func_long_uchar_ptr *p_Var12;

+  void *unaff_retaddr;

+  undefined1 auStack_138 [48];

+  uchar local_108;

+  uchar local_107 [7];

+  longlong *local_100;

+  uint local_f8 [2];

+  longlong **local_f0;

+  uint local_e8 [4];

+  consume_WindowsUdk_UI_Shell_ITaskbarLayout<winrt::WindowsUdk::UI::Shell::ITaskbarLayout>

+  local_d8 [8];

+  uint local_d0 [2];

+  UndockedSearchAppExperienceManager *local_c8;

+  longlong *local_c0;

+  test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  local_b8 [64];

+  HStringReference local_78 [24];

+  HSTRING__ *local_60;

+  ulonglong local_38;

   

-  pbVar1 = (byte *)((longlong)this * 5 + 0x7c);

-  *pbVar1 = *pbVar1 ^ in_AL;

-  Microsoft::WRL::

-  Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::StartExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::IStartExperienceManager*___ptr64,IInspectable*___ptr64>

-            ((XamlLauncherState *)(unaff_RBP + -0x50),unaff_R13);

-  plVar2 = *(longlong **)(unaff_RBP + -0x50);

-  iVar8 = (**(code **)(**(longlong **)(unaff_R12 + 0x38) + 0xe0))

-                    (*(longlong **)(unaff_R12 + 0x38),plVar2,unaff_R12 + 0x80);

-  if (iVar8 < 0) {

-    wil::details::in1diag3::Return_Hr

-              (*(void **)(unaff_RBP + 0x98),0x67,

-               "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-    if (plVar2 != (longlong *)0x0) {

-      (**(code **)(*plVar2 + 0x10))(plVar2);

+  local_38 = __security_cookie ^ (ulonglong)auStack_138;

+  bVar2 = false;

+  local_108 = '\0';

+  local_107[0] = '\0';

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

+    Windows::Internal::ShellHelpers::PropertySetHelper::PropertySetHelper

+              ((PropertySetHelper *)&local_100,param_1);

+    local_60 = (HSTRING__ *)0x0;

+    Microsoft::WRL::Wrappers::HStringReference::CreateReference

+              (local_78,(ushort *)L"IsFirstSwitchPreLaunchActivation",0x21,0x20);

+    bVar2 = Windows::Internal::ShellHelpers::PropertySetHelper::HasKey

+                      ((PropertySetHelper *)&local_100,local_60);

+    if (bVar2) {

+      local_60 = (HSTRING__ *)0x0;

+      p_Var12 = (_func_long_uchar_ptr *)&DAT_0;

+      Microsoft::WRL::Wrappers::HStringReference::CreateReference

+                (local_78,(ushort *)L"IsFirstSwitchPreLaunchActivation",0x21,0x20);

+      lVar5 = Windows::Internal::ShellHelpers::PropertySetHelper::GetValue<unsigned_char>

+                        ((PropertySetHelper *)&local_100,local_60,p_Var12,&local_108);

+      if (lVar5 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x8b9,

+                   "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                   ,lVar5);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_100);

+        return lVar5;

+      }

     }

-    if (unaff_RDI != (longlong *)0x0) {

-      (**(code **)(*unaff_RDI + 0x10))();

+    local_60 = (HSTRING__ *)0x0;

+    Microsoft::WRL::Wrappers::HStringReference::CreateReference

+              (local_78,(ushort *)L"IsActivatedFromExperienceManager",0x21,0x20);

+    bVar2 = Windows::Internal::ShellHelpers::PropertySetHelper::HasKey

+                      ((PropertySetHelper *)&local_100,local_60);

+    local_107[0] = bVar2;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_100);

+  }

+  local_d0[0] = 0;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61294227>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61294227> *)

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

+                      ::__l2::impl);

+  if (((bVar3) && (plVar8 = *(longlong **)(this + 0x38), plVar8 != (longlong *)0x0)) &&

+     (iVar7 = (**(code **)(*plVar8 + 0x30))(plVar8,local_d0), iVar7 < 0)) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x8c7,

+               "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp",

+               iVar7);

+  }

+  SearchAppExperienceManagerTelemetry::

+  UndockedSearchAppExperienceManager_OnViewRequestNavigate<unsigned_char&___ptr64,unsigned_char&___ptr64,unsigned_int&___ptr64>

+            (&local_108,local_107,local_d0);

+  if (*(longlong *)(this + 0x38) != 0) {

+    if (local_108 == '\0') {

+      if (bVar2 == false) {

+        bVar2 = tip2::

+                tip_test<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+                ::operator_bool((tip_test<tip2::details::merged_data<KeyboardHostingTipTests::_tip_InputAppActivationTest,KeyboardHostingTipTests::_tip_InputAppActivationTest>_>

+                                 *)(this + 0x388));

+        if (bVar2) {

+          plVar8 = (longlong *)

+                   tip2::

+                   tip_test<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>::

+                   data((tip_test<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>

+                         *)(this + 0x388));

+          *(undefined1 *)(*plVar8 + 0x115) = 1;

+          tip2::

+          test_data_control<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>::

+          ~test_data_control<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>

+                    ((test_data_control<tip2::details::merged_data<_tip_SearchHideTest,_tip_SearchHideTest>_>

+                      *)local_d8);

+          CompleteHideTest(this);

+        }

+        uVar6 = RegisterForPresentationEvents(this);

+        if ((int)uVar6 < 0) {

+          uVar11 = 0x915;

+        }

+        else {

+          *(undefined4 *)(this + 0x2f0) = 3;

+          *(undefined4 *)(this + 0x98) = 0;

+          bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61846764>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_61846764> *)

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

+                                       ::__l2::impl);

+          plVar8 = *(longlong **)(this + 0x38);

+          if (bVar2) {

+            local_f8[0] = 0;

+            iVar7 = (**(code **)(*plVar8 + 0x160))(plVar8,local_f8);

+            if (iVar7 < 0) {

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0x91b,

+                         "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                         ,iVar7);

+            }

+            uVar6 = (**(code **)(**(longlong **)(this + 0x38) + 0x158))

+                              (*(longlong **)(this + 0x38),4);

+            local_e8[1] = 4;

+            local_e8[0] = local_f8[0];

+            local_e8[2] = uVar6;

+            SearchAppExperienceManagerTelemetry::

+            UndockedSearchAppExperienceManager_OnViewRequestNavigate_NavigateResult<unsigned_int,unsigned_int,long_const&___ptr64>

+                      (local_e8,local_e8 + 1,(long *)(local_e8 + 2));

+            if (-1 < (int)uVar6) {

+LAB_1:

+              local_f0 = (longlong **)0x0;

+              plVar8 = *(longlong **)(this + 0x30);

+              pcVar1 = *(code **)(*plVar8 + 0x18);

+              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                        ((ComPtr<IImmersiveSystemModeNotification> *)&local_f0);

+              iVar7 = (*pcVar1)(plVar8,&SID_ImmersiveLauncher,

+                                &_GUID_5ef7890f_319b_4259_8d0f_36e5ff0916ce,&local_f0);

+              if (iVar7 < 0) {

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,0x926,

+                           "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                           ,iVar7);

+              }

+              else {

+                local_100 = (longlong *)0x0;

+                iVar7 = Microsoft::WRL::Wrappers::HString::Set

+                                  ((HString *)&local_100,(ushort *)L"ProtocolLaunch",0xe);

+                if (iVar7 < 0) {

+                  uVar6 = 0x928;

+                }

+                else {

+                  iVar7 = (*(code *)(*local_f0)[4])(local_f0,local_100);

+                  if (-1 < iVar7) {

+                    WindowsDeleteString(local_100);

+                    local_100 = (longlong *)0x0;

+                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                              ((ComPtr<IImmersiveSystemModeNotification> *)&local_f0);

+                    return 0;

+                  }

+                  uVar6 = 0x92b;

+                }

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,uVar6,

+                           "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                           ,iVar7);

+                WindowsDeleteString(local_100);

+                local_100 = (longlong *)0x0;

+              }

+              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                        ((ComPtr<IImmersiveSystemModeNotification> *)&local_f0);

+              return iVar7;

+            }

+            uVar11 = 0x91f;

+          }

+          else {

+            uVar6 = (**(code **)(*plVar8 + 0x158))(plVar8,4);

+            if (-1 < (int)uVar6) goto LAB_1;

+            uVar11 = 0x923;

+          }

+        }

+        goto LAB_2;

+      }

+      this_00 = (tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                 *)(this + 0x348);

+      tip2::

+      tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+      ::watch_errors(this_00);

+      tip2::

+      test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+      ::

+      test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+                ((test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+                  *)local_78);

+      bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61846764>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61846764> *)

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

+                          ::__l2::impl);

+      plVar8 = *(longlong **)(this + 0x38);

+      if (bVar2) {

+        local_f8[0] = 0;

+        iVar7 = (**(code **)(*plVar8 + 0x160))(plVar8,local_f8);

+        if (iVar7 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x93f,

+                     "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                     ,iVar7);

+        }

+        uVar6 = (**(code **)(**(longlong **)(this + 0x38) + 0x158))(*(longlong **)(this + 0x38),4);

+        local_e8[1] = 4;

+        local_e8[0] = local_f8[0];

+        local_e8[2] = uVar6;

+        SearchAppExperienceManagerTelemetry::

+        UndockedSearchAppExperienceManager_OnViewRequestNavigate_NavigateResult<unsigned_int,unsigned_int,long_const&___ptr64>

+                  (local_e8,local_e8 + 1,(long *)(local_e8 + 2));

+        if ((int)uVar6 < 0) {

+          uVar11 = 0x943;

+LAB_3:

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,uVar11,

+                     "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                     ,uVar6);

+          tip2::

+          test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+          ::

+          ~test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+                    ((test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+                      *)local_78);

+          tip2::

+          test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+          ::

+          ~test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                    (local_b8);

+          return uVar6;

+        }

+      }

+      else {

+        uVar6 = (**(code **)(*plVar8 + 0x158))(plVar8,4);

+        if ((int)uVar6 < 0) {

+          uVar11 = 0x947;

+          goto LAB_3;

+        }

+      }

+      bVar2 = tip2::

+              tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+              ::operator_bool((tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+                               *)this_00);

+      if (bVar2) {

+        plVar8 = (longlong *)

+                 tip2::

+                 tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                 ::operator->(this_00);

+        *(undefined1 *)(*plVar8 + 0x11d) = 1;

+        tip2::

+        test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                  ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                    *)local_d8);

+      }

+      tip2::

+      test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+      ::

+      ~test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+                ((test_watcher<tip2::details::merged_data<tip2::_tip_tip_test_dynamic_attributes,tip2::test_data_dynamic>_>

+                  *)local_78);

+      tip2::

+      test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+      ::

+      ~test_watcher<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                (local_b8);

     }

-    if (unaff_RBX != (longlong *)0x0) {

-      (**(code **)(*unaff_RBX + 0x10))();

+    else {

+      SetExistingEvent((ushort *)L"ShellSearchReadyEvent");

+      bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61846764>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61846764> *)

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

+                          ::__l2::impl);

+      plVar8 = *(longlong **)(this + 0x38);

+      if (bVar2) {

+        local_f8[0] = 0;

+        iVar7 = (**(code **)(*plVar8 + 0x160))(plVar8,local_f8);

+        if (iVar7 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x8d8,

+                     "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                     ,iVar7);

+        }

+        uVar6 = (**(code **)(**(longlong **)(this + 0x38) + 0x158))(*(longlong **)(this + 0x38),3);

+        local_e8[1] = 3;

+        local_e8[2] = local_f8[0];

+        local_e8[0] = uVar6;

+        SearchAppExperienceManagerTelemetry::

+        UndockedSearchAppExperienceManager_OnViewRequestNavigate_NavigateResult<unsigned_int,unsigned_int,long_const&___ptr64>

+                  (local_e8 + 2,local_e8 + 1,(long *)local_e8);

+        if ((int)uVar6 < 0) {

+          uVar11 = 0x8dc;

+LAB_2:

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,uVar11,

+                     "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                     ,uVar6);

+          return uVar6;

+        }

+      }

+      else {

+        uVar6 = (**(code **)(*plVar8 + 0x158))(plVar8,3);

+        if ((int)uVar6 < 0) {

+          uVar11 = 0x8e0;

+          goto LAB_2;

+        }

+      }

+      *(undefined4 *)(this + 0x2f0) = 7;

+      bVar2 = tip2::

+              tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+              ::operator_bool((tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+                               *)(this + 0x348));

+      if (bVar2) {

+        plVar8 = (longlong *)

+                 tip2::

+                 tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                 ::operator->((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                               *)(this + 0x348));

+        *(undefined1 *)(*plVar8 + 0x151) = 1;

+        tip2::

+        test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                  ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                    *)&local_f0);

+      }

+      StartPrelaunchDeferralTimer(this);

+      (**(code **)(**(longlong **)(this + 0x60) + 0x50))(*(longlong **)(this + 0x60),local_d8);

+      local_100 = (longlong *)0x0;

+      local_f0 = &local_100;

+      pWVar9 = Microsoft::WRL::Details::ComPtrRef<Microsoft::WRL::WeakRef>::

+               operator_class_Microsoft__WRL__WeakRef____ptr64

+                         ((ComPtrRef<Microsoft::WRL::WeakRef> *)&local_f0);

+      lVar5 = Microsoft::WRL::AsWeak<UndockedSearchAppExperienceManager>(this,pWVar9);

+      if (lVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x8f5,

+                   "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp"

+                   ,lVar5);

+      }

+      local_c0 = local_100;

+      local_c8 = this;

+      if (local_100 != (longlong *)0x0) {

+        (**(code **)(*local_100 + 8))();

+      }

+      winrt::Windows::Foundation::

+      TypedEventHandler<winrt::WindowsUdk::UI::Shell::TaskbarLayout,winrt::Windows::Foundation::IInspectable>

+      ::

+      TypedEventHandler<winrt::WindowsUdk::UI::Shell::TaskbarLayout,winrt::Windows::Foundation::IInspectable><<lambda_765be0edd4f010ad67a449942932ffab>_>

+                (&local_f0,&local_c8);

+      uVar10 = winrt::impl::

+               consume_WindowsUdk_UI_Shell_ITaskbarLayout<winrt::WindowsUdk::UI::Shell::ITaskbarLayout>

+               ::ShellViewButtonBoundsChanged(local_d8,local_78);

+      __4__event_revoker_UITaskbarLayout_Shell_UI_WindowsUdk_winrt___MP8type___abi_UITaskbarLayout_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BGI_AA_impl_winrt__QEAAAEAU012___QEAU012__Z

+                (this + 0x3a8,uVar10);

+      __1__event_revoker_UITaskbarLayout_Shell_UI_WindowsUdk_winrt___MP8type___abi_UITaskbarLayout_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BGI_AA_impl_winrt__QEAA_XZ

+                (local_78);

+      if (local_f0 != (longlong **)0x0) {

+        winrt::

+        com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+        ::unconditional_release_ref

+                  ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                    *)&local_f0);

+      }

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

+                 ::__l2::impl;

+      bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_54865932>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_54865932> *)

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

+                          ::__l2::impl);

+      if (bVar2) {

+        cVar4 = winrt::impl::

+                call_factory_cast<bool_(__cdecl*)(winrt::WindowsUdk::System::Profile::IIntegratedServicesGeographicRegionPoliciesStatics_const&___ptr64),winrt::WindowsUdk::System::Profile::IntegratedServicesGeographicRegionPolicies,winrt::WindowsUdk::System::Profile::IIntegratedServicesGeographicRegionPoliciesStatics,<lambda_eb21f5065b31fe54e3e22ffca6c3b9a9>_>

+                          ((<lambda_eb21f5065b31fe54e3e22ffca6c3b9a9> *)this_01);

+        if (cVar4 != '\0') {

+          TrySetWebSearchEnabledStateOnUpdate((UndockedSearchAppExperienceManager *)this_01);

+        }

+        TryInstallDefaultWebSearchProvider(this,1);

+      }

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_100);

+      winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs

+      ::~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_d8);

     }

   }

-  else {

-    pcStack0000000000000030 = XamlLauncherState::OnStartExitTransitionToCortanaCompleted;

-    Microsoft::WRL::

-    Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::StartExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::IStartExperienceManager*___ptr64,IInspectable*___ptr64>

-              ((XamlLauncherState *)(unaff_RBP + -0x48),unaff_R13);

-    plVar3 = *(longlong **)(unaff_RBP + -0x48);

-    iVar8 = (**(code **)(**(longlong **)(unaff_R12 + 0x38) + 0x110))

-                      (*(longlong **)(unaff_R12 + 0x38),plVar3,unaff_R12 + 0x88);

-    if (iVar8 < 0) {

-      wil::details::in1diag3::Return_Hr

-                (*(void **)(unaff_RBP + 0x98),0x6a,

-                 "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-      if (plVar3 != (longlong *)0x0) {

-        (**(code **)(*plVar3 + 0x10))(plVar3);

-      }

-      if (plVar2 != (longlong *)0x0) {

-        (**(code **)(*plVar2 + 0x10))(plVar2);

-      }

-      if (unaff_RDI != (longlong *)0x0) {

-        (**(code **)(*unaff_RDI + 0x10))();

-      }

-      if (unaff_RBX != (longlong *)0x0) {

-        (**(code **)(*unaff_RBX + 0x10))();

-      }

-    }

-    else {

-      pcStack0000000000000030 = XamlLauncherState::OnStartFailedToGetForeground;

-      Microsoft::WRL::

-      Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::StartExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::IStartExperienceManager*___ptr64,IInspectable*___ptr64>

-                ((XamlLauncherState *)(unaff_RBP + -0x40),unaff_R13);

-      plVar4 = *(longlong **)(unaff_RBP + -0x40);

-      iVar8 = (**(code **)(**(longlong **)(unaff_R12 + 0x38) + 0x120))

-                        (*(longlong **)(unaff_R12 + 0x38),plVar4,unaff_R12 + 0x90);

-      if (iVar8 < 0) {

-        wil::details::in1diag3::Return_Hr

-                  (*(void **)(unaff_RBP + 0x98),0x6d,

-                   "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-        if (plVar4 != (longlong *)0x0) {

-          (**(code **)(*plVar4 + 0x10))(plVar4);

-        }

-        if (plVar3 != (longlong *)0x0) {

-          (**(code **)(*plVar3 + 0x10))(plVar3);

-        }

-        if (plVar2 != (longlong *)0x0) {

-          (**(code **)(*plVar2 + 0x10))(plVar2);

-        }

-        if (unaff_RDI != (longlong *)0x0) {

-          (**(code **)(*unaff_RDI + 0x10))();

-        }

-        if (unaff_RBX != (longlong *)0x0) {

-          (**(code **)(*unaff_RBX + 0x10))();

-        }

-      }

-      else {

-        pcStack0000000000000030 = XamlLauncherState::OnStartLaunchResult;

-        Microsoft::WRL::

-        Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::StartExperienceManager*___ptr64,int>,XamlLauncherState,Windows::Internal::Shell::Experience::IStartExperienceManager*___ptr64,int>

-                  ((XamlLauncherState *)(unaff_RBP + -0x38),

-                   (_func_long_IStartExperienceManager_ptr_int *)unaff_R13);

-        plVar5 = *(longlong **)(unaff_RBP + -0x38);

-        iVar8 = (**(code **)(**(longlong **)(unaff_R12 + 0x38) + 0x130))

-                          (*(longlong **)(unaff_R12 + 0x38),plVar5,unaff_R12 + 0x98);

-        if (iVar8 < 0) {

-          wil::details::in1diag3::Return_Hr

-                    (*(void **)(unaff_RBP + 0x98),0x70,

-                     "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-          if (plVar5 != (longlong *)0x0) {

-            (**(code **)(*plVar5 + 0x10))(plVar5);

-          }

-          if (plVar4 != (longlong *)0x0) {

-            (**(code **)(*plVar4 + 0x10))(plVar4);

-          }

-          if (plVar3 != (longlong *)0x0) {

-            (**(code **)(*plVar3 + 0x10))(plVar3);

-          }

-          if (plVar2 != (longlong *)0x0) {

-            (**(code **)(*plVar2 + 0x10))(plVar2);

-          }

-          if (unaff_RDI != (longlong *)0x0) {

-            (**(code **)(*unaff_RDI + 0x10))();

-          }

-          if (unaff_RBX != (longlong *)0x0) {

-            (**(code **)(*unaff_RBX + 0x10))();

-          }

-        }

-        else {

-          pcStack0000000000000030 = XamlLauncherState::OnCortanaShown;

-          Microsoft::WRL::

-          Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,Windows::Internal::Shell::Experience::ICortanaShownEventArgs*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,Windows::Internal::Shell::Experience::ICortanaShownEventArgs*___ptr64>

-                    ((XamlLauncherState *)(unaff_RBP + -0x30),

-                     (_func_long_ICortanaExperienceManager_ptr_ICortanaShownEventArgs_ptr *)

-                     unaff_R13);

-          plVar6 = *(longlong **)(unaff_RBP + -0x30);

-          iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0xb8))

-                            ((longlong *)*in_stack_00000050,plVar6,in_stack_00000040 + 0xa0);

-          if (iVar8 < 0) {

-            wil::details::in1diag3::Return_Hr

-                      (*(void **)(unaff_RBP + 0x98),0x73,

-                       "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-            if (plVar6 != (longlong *)0x0) {

-              (**(code **)(*plVar6 + 0x10))(plVar6);

-            }

-            if (plVar5 != (longlong *)0x0) {

-              (**(code **)(*plVar5 + 0x10))(plVar5);

-            }

-            if (plVar4 != (longlong *)0x0) {

-              (**(code **)(*plVar4 + 0x10))(plVar4);

-            }

-            if (plVar3 != (longlong *)0x0) {

-              (**(code **)(*plVar3 + 0x10))(plVar3);

-            }

-            if (plVar2 != (longlong *)0x0) {

-              (**(code **)(*plVar2 + 0x10))(plVar2);

-            }

-            if (unaff_RDI != (longlong *)0x0) {

-              (**(code **)(*unaff_RDI + 0x10))();

-            }

-            if (unaff_RBX != (longlong *)0x0) {

-              (**(code **)(*unaff_RBX + 0x10))();

-            }

-          }

-          else {

-            pcStack0000000000000030 = XamlLauncherState::OnCortanaHidden;

-            Microsoft::WRL::

-            Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,IInspectable*___ptr64>

-                      ((XamlLauncherState *)&stack0x00000048,

-                       (_func_long_ICortanaExperienceManager_ptr_IInspectable_ptr *)

-                       (in_stack_00000040 + -0x18));

-            iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 200))

-                              ((longlong *)*in_stack_00000050,in_stack_00000048,

-                               in_stack_00000040 + 0xa8);

-            if (iVar8 < 0) {

-              wil::details::in1diag3::Return_Hr

-                        (*(void **)(unaff_RBP + 0x98),0x76,

-                         "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-              if (in_stack_00000048 != (longlong *)0x0) {

-                (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-              }

-              if (plVar6 != (longlong *)0x0) {

-                (**(code **)(*plVar6 + 0x10))(plVar6);

-              }

-              if (plVar5 != (longlong *)0x0) {

-                (**(code **)(*plVar5 + 0x10))(plVar5);

-              }

-              if (plVar4 != (longlong *)0x0) {

-                (**(code **)(*plVar4 + 0x10))(plVar4);

-              }

-              if (plVar3 != (longlong *)0x0) {

-                (**(code **)(*plVar3 + 0x10))(plVar3);

-              }

-              if (plVar2 != (longlong *)0x0) {

-                (**(code **)(*plVar2 + 0x10))(plVar2);

-              }

-              if (unaff_RDI != (longlong *)0x0) {

-                (**(code **)(*unaff_RDI + 0x10))();

-              }

-              if (unaff_RBX != (longlong *)0x0) {

-                (**(code **)(*unaff_RBX + 0x10))();

-              }

-            }

-            else {

-              pcStack0000000000000030 = XamlLauncherState::OnCortanaDestroyed;

-              Microsoft::WRL::

-              Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,IInspectable*___ptr64>

-                        ((XamlLauncherState *)&stack0x00000058,

-                         (_func_long_ICortanaExperienceManager_ptr_IInspectable_ptr *)

-                         (in_stack_00000040 + -0x18));

-              iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0xd8))

-                                ((longlong *)*in_stack_00000050,in_stack_00000058,

-                                 in_stack_00000040 + 0xb0);

-              if (iVar8 < 0) {

-                wil::details::in1diag3::Return_Hr

-                          (*(void **)(unaff_RBP + 0x98),0x79,

-                           "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-                if (in_stack_00000058 != (longlong *)0x0) {

-                  (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                }

-                if (in_stack_00000048 != (longlong *)0x0) {

-                  (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                }

-                if (plVar6 != (longlong *)0x0) {

-                  (**(code **)(*plVar6 + 0x10))(plVar6);

-                }

-                if (plVar5 != (longlong *)0x0) {

-                  (**(code **)(*plVar5 + 0x10))(plVar5);

-                }

-                if (plVar4 != (longlong *)0x0) {

-                  (**(code **)(*plVar4 + 0x10))(plVar4);

-                }

-                if (plVar3 != (longlong *)0x0) {

-                  (**(code **)(*plVar3 + 0x10))(plVar3);

-                }

-                if (plVar2 != (longlong *)0x0) {

-                  (**(code **)(*plVar2 + 0x10))(plVar2);

-                }

-                if (unaff_RDI != (longlong *)0x0) {

-                  (**(code **)(*unaff_RDI + 0x10))();

-                }

-                if (unaff_RBX != (longlong *)0x0) {

-                  (**(code **)(*unaff_RBX + 0x10))();

-                }

-              }

-              else {

-                pcStack0000000000000030 = XamlLauncherState::OnCortanaDismissRequested;

-                Microsoft::WRL::

-                Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,IInspectable*___ptr64>

-                          ((XamlLauncherState *)&stack0x00000060,

-                           (_func_long_ICortanaExperienceManager_ptr_IInspectable_ptr *)

-                           (in_stack_00000040 + -0x18));

-                iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0x138))

-                                  ((longlong *)*in_stack_00000050,in_stack_00000060,

-                                   in_stack_00000040 + 0xb8);

-                if (iVar8 < 0) {

-                  wil::details::in1diag3::Return_Hr

-                            (*(void **)(unaff_RBP + 0x98),0x7c,

-                             "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-                  if (in_stack_00000060 != (longlong *)0x0) {

-                    (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                  }

-                  if (in_stack_00000058 != (longlong *)0x0) {

-                    (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                  }

-                  if (in_stack_00000048 != (longlong *)0x0) {

-                    (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                  }

-                  if (plVar6 != (longlong *)0x0) {

-                    (**(code **)(*plVar6 + 0x10))(plVar6);

-                  }

-                  if (plVar5 != (longlong *)0x0) {

-                    (**(code **)(*plVar5 + 0x10))(plVar5);

-                  }

-                  if (plVar4 != (longlong *)0x0) {

-                    (**(code **)(*plVar4 + 0x10))(plVar4);

-                  }

-                  if (plVar3 != (longlong *)0x0) {

-                    (**(code **)(*plVar3 + 0x10))(plVar3);

-                  }

-                  if (plVar2 != (longlong *)0x0) {

-                    (**(code **)(*plVar2 + 0x10))(plVar2);

-                  }

-                  if (unaff_RDI != (longlong *)0x0) {

-                    (**(code **)(*unaff_RDI + 0x10))();

-                  }

-                  if (unaff_RBX != (longlong *)0x0) {

-                    (**(code **)(*unaff_RBX + 0x10))();

-                  }

-                }

-                else {

-                  pcStack0000000000000030 = XamlLauncherState::OnCortanaFailedToGetForeground;

-                  Microsoft::WRL::

-                  Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,IInspectable*___ptr64>

-                            ((XamlLauncherState *)&stack0x00000068,

-                             (_func_long_ICortanaExperienceManager_ptr_IInspectable_ptr *)

-                             (in_stack_00000040 + -0x18));

-                  iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0x108))

-                                    ((longlong *)*in_stack_00000050,in_stack_00000068,

-                                     in_stack_00000040 + 0xc0);

-                  if (iVar8 < 0) {

-                    wil::details::in1diag3::Return_Hr

-                              (*(void **)(unaff_RBP + 0x98),0x7f,

-                               "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-                    if (in_stack_00000068 != (longlong *)0x0) {

-                      (**(code **)(*in_stack_00000068 + 0x10))(in_stack_00000068);

-                    }

-                    if (in_stack_00000060 != (longlong *)0x0) {

-                      (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                    }

-                    if (in_stack_00000058 != (longlong *)0x0) {

-                      (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                    }

-                    if (in_stack_00000048 != (longlong *)0x0) {

-                      (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                    }

-                    if (plVar6 != (longlong *)0x0) {

-                      (**(code **)(*plVar6 + 0x10))(plVar6);

-                    }

-                    if (plVar5 != (longlong *)0x0) {

-                      (**(code **)(*plVar5 + 0x10))(plVar5);

-                    }

-                    if (plVar4 != (longlong *)0x0) {

-                      (**(code **)(*plVar4 + 0x10))(plVar4);

-                    }

-                    if (plVar3 != (longlong *)0x0) {

-                      (**(code **)(*plVar3 + 0x10))(plVar3);

-                    }

-                    if (plVar2 != (longlong *)0x0) {

-                      (**(code **)(*plVar2 + 0x10))(plVar2);

-                    }

-                    if (unaff_RDI != (longlong *)0x0) {

-                      (**(code **)(*unaff_RDI + 0x10))();

-                    }

-                    if (unaff_RBX != (longlong *)0x0) {

-                      (**(code **)(*unaff_RBX + 0x10))();

-                    }

-                  }

-                  else {

-                    pcStack0000000000000030 = XamlLauncherState::OnCortanaTransitionRequested;

-                    Microsoft::WRL::

-                    Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,IInspectable*___ptr64>

-                              ((XamlLauncherState *)&stack0x00000070,

-                               (_func_long_ICortanaExperienceManager_ptr_IInspectable_ptr *)

-                               (in_stack_00000040 + -0x18));

-                    iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0x148))

-                                      ((longlong *)*in_stack_00000050,in_stack_00000070,

-                                       in_stack_00000040 + 200);

-                    if (iVar8 < 0) {

-                      wil::details::in1diag3::Return_Hr

-                                (*(void **)(unaff_RBP + 0x98),0x82,

-                                 "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8);

-                      if (in_stack_00000070 != (longlong *)0x0) {

-                        (**(code **)(*in_stack_00000070 + 0x10))(in_stack_00000070);

-                      }

-                      if (in_stack_00000068 != (longlong *)0x0) {

-                        (**(code **)(*in_stack_00000068 + 0x10))(in_stack_00000068);

-                      }

-                      if (in_stack_00000060 != (longlong *)0x0) {

-                        (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                      }

-                      if (in_stack_00000058 != (longlong *)0x0) {

-                        (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                      }

-                      if (in_stack_00000048 != (longlong *)0x0) {

-                        (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                      }

-                      if (plVar6 != (longlong *)0x0) {

-                        (**(code **)(*plVar6 + 0x10))(plVar6);

-                      }

-                      if (plVar5 != (longlong *)0x0) {

-                        (**(code **)(*plVar5 + 0x10))(plVar5);

-                      }

-                      if (plVar4 != (longlong *)0x0) {

-                        (**(code **)(*plVar4 + 0x10))(plVar4);

-                      }

-                      if (plVar3 != (longlong *)0x0) {

-                        (**(code **)(*plVar3 + 0x10))(plVar3);

-                      }

-                      if (plVar2 != (longlong *)0x0) {

-                        (**(code **)(*plVar2 + 0x10))(plVar2);

-                      }

-                      if (unaff_RDI != (longlong *)0x0) {

-                        (**(code **)(*unaff_RDI + 0x10))();

-                      }

-                      if (unaff_RBX != (longlong *)0x0) {

-                        (**(code **)(*unaff_RBX + 0x10))();

-                      }

-                    }

-                    else {

-                      pcStack0000000000000030 = XamlLauncherState::OnCortanaAppTransitionCompleted;

-                      Microsoft::WRL::

-                      Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,IInspectable*___ptr64>

-                                ((XamlLauncherState *)&stack0x00000078,

-                                 (_func_long_ICortanaExperienceManager_ptr_IInspectable_ptr *)

-                                 (in_stack_00000040 + -0x18));

-                      iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0x158))

-                                        ((longlong *)*in_stack_00000050,in_stack_00000078,

-                                         in_stack_00000040 + 0xd0);

-                      if (iVar8 < 0) {

-                        wil::details::in1diag3::Return_Hr

-                                  (*(void **)(unaff_RBP + 0x98),0x85,

-                                   "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar8

-                                  );

-                        if (in_stack_00000078 != (longlong *)0x0) {

-                          (**(code **)(*in_stack_00000078 + 0x10))(in_stack_00000078);

-                        }

-                        if (in_stack_00000070 != (longlong *)0x0) {

-                          (**(code **)(*in_stack_00000070 + 0x10))(in_stack_00000070);

-                        }

-                        if (in_stack_00000068 != (longlong *)0x0) {

-                          (**(code **)(*in_stack_00000068 + 0x10))(in_stack_00000068);

-                        }

-                        if (in_stack_00000060 != (longlong *)0x0) {

-                          (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                        }

-                        if (in_stack_00000058 != (longlong *)0x0) {

-                          (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                        }

-                        if (in_stack_00000048 != (longlong *)0x0) {

-                          (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                        }

-                        if (plVar6 != (longlong *)0x0) {

-                          (**(code **)(*plVar6 + 0x10))(plVar6);

-                        }

-                        if (plVar5 != (longlong *)0x0) {

-                          (**(code **)(*plVar5 + 0x10))(plVar5);

-                        }

-                        if (plVar4 != (longlong *)0x0) {

-                          (**(code **)(*plVar4 + 0x10))(plVar4);

-                        }

-                        if (plVar3 != (longlong *)0x0) {

-                          (**(code **)(*plVar3 + 0x10))(plVar3);

-                        }

-                        if (plVar2 != (longlong *)0x0) {

-                          (**(code **)(*plVar2 + 0x10))(plVar2);

-                        }

-                        if (unaff_RDI != (longlong *)0x0) {

-                          (**(code **)(*unaff_RDI + 0x10))();

-                        }

-                        if (unaff_RBX != (longlong *)0x0) {

-                          (**(code **)(*unaff_RBX + 0x10))();

-                        }

-                      }

-                      else {

-                        pcStack0000000000000030 = XamlLauncherState::OnCortanaLaunchResult;

-                        Microsoft::WRL::

-                        Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,int>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,int>

-                                  ((XamlLauncherState *)(unaff_RBP + -0x80),

-                                   (_func_long_ICortanaExperienceManager_ptr_int *)

-                                   (in_stack_00000040 + -0x18));

-                        iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0x168))

-                                          ((longlong *)*in_stack_00000050,

-                                           *(undefined8 *)(unaff_RBP + -0x80),

-                                           in_stack_00000040 + 0xd8);

-                        if (iVar8 < 0) {

-                          wil::details::in1diag3::Return_Hr

-                                    (*(void **)(unaff_RBP + 0x98),0x88,

-                                     "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",

-                                     iVar8);

-                          plVar7 = *(longlong **)(unaff_RBP + -0x80);

-                          if (plVar7 != (longlong *)0x0) {

-                            (**(code **)(*plVar7 + 0x10))(plVar7);

-                          }

-                          if (in_stack_00000078 != (longlong *)0x0) {

-                            (**(code **)(*in_stack_00000078 + 0x10))(in_stack_00000078);

-                          }

-                          if (in_stack_00000070 != (longlong *)0x0) {

-                            (**(code **)(*in_stack_00000070 + 0x10))(in_stack_00000070);

-                          }

-                          if (in_stack_00000068 != (longlong *)0x0) {

-                            (**(code **)(*in_stack_00000068 + 0x10))(in_stack_00000068);

-                          }

-                          if (in_stack_00000060 != (longlong *)0x0) {

-                            (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                          }

-                          if (in_stack_00000058 != (longlong *)0x0) {

-                            (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                          }

-                          if (in_stack_00000048 != (longlong *)0x0) {

-                            (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                          }

-                          if (plVar6 != (longlong *)0x0) {

-                            (**(code **)(*plVar6 + 0x10))(plVar6);

-                          }

-                          if (plVar5 != (longlong *)0x0) {

-                            (**(code **)(*plVar5 + 0x10))(plVar5);

-                          }

-                          if (plVar4 != (longlong *)0x0) {

-                            (**(code **)(*plVar4 + 0x10))(plVar4);

-                          }

-                          if (plVar3 != (longlong *)0x0) {

-                            (**(code **)(*plVar3 + 0x10))(plVar3);

-                          }

-                          if (plVar2 != (longlong *)0x0) {

-                            (**(code **)(*plVar2 + 0x10))(plVar2);

-                          }

-                          if (unaff_RDI != (longlong *)0x0) {

-                            (**(code **)(*unaff_RDI + 0x10))();

-                          }

-                          if (unaff_RBX != (longlong *)0x0) {

-                            (**(code **)(*unaff_RBX + 0x10))();

-                          }

-                        }

-                        else {

-                          pcStack0000000000000030 = XamlLauncherState::OnCortanaDeviceLocked;

-                          Microsoft::WRL::

-                          Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,IInspectable*___ptr64>

-                                    ((XamlLauncherState *)(unaff_RBP + -0x78),

-                                     (_func_long_ICortanaExperienceManager_ptr_IInspectable_ptr *)

-                                     (in_stack_00000040 + -0x18));

-                          iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0x178))

-                                            ((longlong *)*in_stack_00000050,

-                                             *(undefined8 *)(unaff_RBP + -0x78),

-                                             in_stack_00000040 + 0xe0);

-                          if (iVar8 < 0) {

-                            wil::details::in1diag3::Return_Hr

-                                      (*(void **)(unaff_RBP + 0x98),0x8b,

-                                       "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",

-                                       iVar8);

-                            plVar7 = *(longlong **)(unaff_RBP + -0x78);

-                            if (plVar7 != (longlong *)0x0) {

-                              (**(code **)(*plVar7 + 0x10))(plVar7);

-                            }

-                            plVar7 = *(longlong **)(unaff_RBP + -0x80);

-                            if (plVar7 != (longlong *)0x0) {

-                              (**(code **)(*plVar7 + 0x10))(plVar7);

-                            }

-                            if (in_stack_00000078 != (longlong *)0x0) {

-                              (**(code **)(*in_stack_00000078 + 0x10))(in_stack_00000078);

-                            }

-                            if (in_stack_00000070 != (longlong *)0x0) {

-                              (**(code **)(*in_stack_00000070 + 0x10))(in_stack_00000070);

-                            }

-                            if (in_stack_00000068 != (longlong *)0x0) {

-                              (**(code **)(*in_stack_00000068 + 0x10))(in_stack_00000068);

-                            }

-                            if (in_stack_00000060 != (longlong *)0x0) {

-                              (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                            }

-                            if (in_stack_00000058 != (longlong *)0x0) {

-                              (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                            }

-                            if (in_stack_00000048 != (longlong *)0x0) {

-                              (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                            }

-                            if (plVar6 != (longlong *)0x0) {

-                              (**(code **)(*plVar6 + 0x10))(plVar6);

-                            }

-                            if (plVar5 != (longlong *)0x0) {

-                              (**(code **)(*plVar5 + 0x10))(plVar5);

-                            }

-                            if (plVar4 != (longlong *)0x0) {

-                              (**(code **)(*plVar4 + 0x10))(plVar4);

-                            }

-                            if (plVar3 != (longlong *)0x0) {

-                              (**(code **)(*plVar3 + 0x10))(plVar3);

-                            }

-                            if (plVar2 != (longlong *)0x0) {

-                              (**(code **)(*plVar2 + 0x10))(plVar2);

-                            }

-                            if (unaff_RDI != (longlong *)0x0) {

-                              (**(code **)(*unaff_RDI + 0x10))();

-                            }

-                            if (unaff_RBX != (longlong *)0x0) {

-                              (**(code **)(*unaff_RBX + 0x10))();

-                            }

-                          }

-                          else {

-                            pcStack0000000000000030 = XamlLauncherState::OnCortanaDeviceUnlocked;

-                            Microsoft::WRL::

-                            Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,IInspectable*___ptr64>

-                                      ((XamlLauncherState *)(unaff_RBP + -0x68),

-                                       (_func_long_ICortanaExperienceManager_ptr_IInspectable_ptr *)

-                                       (in_stack_00000040 + -0x18));

-                            iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0x188))

-                                              ((longlong *)*in_stack_00000050,

-                                               *(undefined8 *)(unaff_RBP + -0x68),

-                                               in_stack_00000040 + 0xe8);

-                            if (iVar8 < 0) {

-                              wil::details::in1diag3::Return_Hr

-                                        (*(void **)(unaff_RBP + 0x98),0x8e,

-                                         "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp"

-                                         ,iVar8);

-                              plVar7 = *(longlong **)(unaff_RBP + -0x68);

-                              if (plVar7 != (longlong *)0x0) {

-                                (**(code **)(*plVar7 + 0x10))(plVar7);

-                              }

-                              plVar7 = *(longlong **)(unaff_RBP + -0x78);

-                              if (plVar7 != (longlong *)0x0) {

-                                (**(code **)(*plVar7 + 0x10))(plVar7);

-                              }

-                              plVar7 = *(longlong **)(unaff_RBP + -0x80);

-                              if (plVar7 != (longlong *)0x0) {

-                                (**(code **)(*plVar7 + 0x10))(plVar7);

-                              }

-                              if (in_stack_00000078 != (longlong *)0x0) {

-                                (**(code **)(*in_stack_00000078 + 0x10))(in_stack_00000078);

-                              }

-                              if (in_stack_00000070 != (longlong *)0x0) {

-                                (**(code **)(*in_stack_00000070 + 0x10))(in_stack_00000070);

-                              }

-                              if (in_stack_00000068 != (longlong *)0x0) {

-                                (**(code **)(*in_stack_00000068 + 0x10))(in_stack_00000068);

-                              }

-                              if (in_stack_00000060 != (longlong *)0x0) {

-                                (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                              }

-                              if (in_stack_00000058 != (longlong *)0x0) {

-                                (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                              }

-                              if (in_stack_00000048 != (longlong *)0x0) {

-                                (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                              }

-                              if (plVar6 != (longlong *)0x0) {

-                                (**(code **)(*plVar6 + 0x10))(plVar6);

-                              }

-                              if (plVar5 != (longlong *)0x0) {

-                                (**(code **)(*plVar5 + 0x10))(plVar5);

-                              }

-                              if (plVar4 != (longlong *)0x0) {

-                                (**(code **)(*plVar4 + 0x10))(plVar4);

-                              }

-                              if (plVar3 != (longlong *)0x0) {

-                                (**(code **)(*plVar3 + 0x10))(plVar3);

-                              }

-                              if (plVar2 != (longlong *)0x0) {

-                                (**(code **)(*plVar2 + 0x10))(plVar2);

-                              }

-                              if (unaff_RDI != (longlong *)0x0) {

-                                (**(code **)(*unaff_RDI + 0x10))();

-                              }

-                              if (unaff_RBX != (longlong *)0x0) {

-                                (**(code **)(*unaff_RBX + 0x10))();

-                              }

-                            }

-                            else {

-                              pcStack0000000000000030 = XamlLauncherState::OnCortanaNotifyRelaunch;

-                              Microsoft::WRL::

-                              Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,Windows::Foundation::Rect>,XamlLauncherState,Windows::Internal::Shell::Experience::ICortanaExperienceManager*___ptr64,Windows::Foundation::Rect>

-                                        ((XamlLauncherState *)(unaff_RBP + -0x70),

-                                         (_func_long_ICortanaExperienceManager_ptr_Rect *)

-                                         (in_stack_00000040 + -0x18));

-                              RVar10 = (int)in_stack_00000040 + 0xf0;

-                              iVar8 = (**(code **)(*(longlong *)*in_stack_00000050 + 0x198))

-                                                ((longlong *)*in_stack_00000050,

-                                                 *(undefined8 *)(unaff_RBP + -0x70));

-                              if (iVar8 < 0) {

-                                wil::details::in1diag3::Return_Hr

-                                          (*(void **)(unaff_RBP + 0x98),0x91,

-                                           "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp"

-                                           ,iVar8);

-                                plVar7 = *(longlong **)(unaff_RBP + -0x70);

-                                if (plVar7 != (longlong *)0x0) {

-                                  (**(code **)(*plVar7 + 0x10))(plVar7);

-                                }

-                                plVar7 = *(longlong **)(unaff_RBP + -0x68);

-                                if (plVar7 != (longlong *)0x0) {

-                                  (**(code **)(*plVar7 + 0x10))(plVar7);

-                                }

-                                plVar7 = *(longlong **)(unaff_RBP + -0x78);

-                                if (plVar7 != (longlong *)0x0) {

-                                  (**(code **)(*plVar7 + 0x10))(plVar7);

-                                }

-                                plVar7 = *(longlong **)(unaff_RBP + -0x80);

-                                if (plVar7 != (longlong *)0x0) {

-                                  (**(code **)(*plVar7 + 0x10))(plVar7);

-                                }

-                                if (in_stack_00000078 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000078 + 0x10))(in_stack_00000078);

-                                }

-                                if (in_stack_00000070 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000070 + 0x10))(in_stack_00000070);

-                                }

-                                if (in_stack_00000068 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000068 + 0x10))(in_stack_00000068);

-                                }

-                                if (in_stack_00000060 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                                }

-                                if (in_stack_00000058 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                                }

-                                if (in_stack_00000048 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                                }

-                                if (plVar6 != (longlong *)0x0) {

-                                  (**(code **)(*plVar6 + 0x10))(plVar6);

-                                }

-                                if (plVar5 != (longlong *)0x0) {

-                                  (**(code **)(*plVar5 + 0x10))(plVar5);

-                                }

-                                if (plVar4 != (longlong *)0x0) {

-                                  (**(code **)(*plVar4 + 0x10))(plVar4);

-                                }

-                                if (plVar3 != (longlong *)0x0) {

-                                  (**(code **)(*plVar3 + 0x10))(plVar3);

-                                }

-                                if (plVar2 != (longlong *)0x0) {

-                                  (**(code **)(*plVar2 + 0x10))(plVar2);

-                                }

-                                if (unaff_RDI != (longlong *)0x0) {

-                                  (**(code **)(*unaff_RDI + 0x10))();

-                                }

-                                if (unaff_RBX != (longlong *)0x0) {

-                                  (**(code **)(*unaff_RBX + 0x10))();

-                                }

-                              }

-                              else {

-                                wil::details::

-                                FeatureImpl<__WilFeatureTraits_Feature_DisableSearchViaPolicy>::

-                                ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_DisableSearchViaPolicy>

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

-                                                ::__l2::impl,true,RVar10,in_R9);

-                                *(undefined ***)(unaff_RBP + -0x18) =

-                                     &PTR__scalar_deleting_destructor__18074c220;

-                                *(longlong *)(unaff_RBP + -0x10) = in_stack_00000040 + -0x18;

-                                *(longlong *)(unaff_RBP + 0x50) = unaff_RBP + -0x18;

-                                puVar9 = (unique_any_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(struct_wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),struct_wistd::integral_constant<unsigned___int64,2>,struct_wil::details::wnf_subscription_state_base*___ptr64,struct_wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

-                                          *)wil::

-                                            make_wnf_subscription_nothrow<wil::details::empty_wnf_state>

-                                                      ((_WNF_STATE_NAME *)(unaff_RBP + -0x28),

-                                                       (function<void___cdecl(void)> *)

-                                                       &WNF_SHEL_DISABLE_SEARCH_POLICY_VALUE_CHANGED

-                                                       ,(int)unaff_RBP - 0x20);

-                                wil::

-                                unique_any_t<wil::details::unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

-                                ::operator=((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

-                                             *)(in_stack_00000040 + 0xf8),puVar9);

-                                if (*(wnf_subscription_state_base **)(unaff_RBP + -0x28) !=

-                                    (wnf_subscription_state_base *)0x0) {

-                                  wil::details::delete_wnf_subscription_state

-                                            (*(wnf_subscription_state_base **)(unaff_RBP + -0x28));

-                                }

-                                wistd::function<void___cdecl(PenButtonActionData_const&___ptr64)>::

-                                ~function<void___cdecl(PenButtonActionData_const&___ptr64)>

-                                          ((function<void___cdecl(PenButtonActionData_const&___ptr64)>

-                                            *)(unaff_RBP + -0x20));

-                                XamlLauncherState::PrepareStartReadinessListener

-                                          ((XamlLauncherState *)(in_stack_00000040 + -0x18));

-                                plVar7 = *(longlong **)(unaff_RBP + -0x70);

-                                if (plVar7 != (longlong *)0x0) {

-                                  (**(code **)(*plVar7 + 0x10))(plVar7);

-                                }

-                                plVar7 = *(longlong **)(unaff_RBP + -0x68);

-                                if (plVar7 != (longlong *)0x0) {

-                                  (**(code **)(*plVar7 + 0x10))(plVar7);

-                                }

-                                plVar7 = *(longlong **)(unaff_RBP + -0x78);

-                                if (plVar7 != (longlong *)0x0) {

-                                  (**(code **)(*plVar7 + 0x10))(plVar7);

-                                }

-                                plVar7 = *(longlong **)(unaff_RBP + -0x80);

-                                if (plVar7 != (longlong *)0x0) {

-                                  (**(code **)(*plVar7 + 0x10))(plVar7);

-                                }

-                                if (in_stack_00000078 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000078 + 0x10))(in_stack_00000078);

-                                }

-                                if (in_stack_00000070 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000070 + 0x10))(in_stack_00000070);

-                                }

-                                if (in_stack_00000068 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000068 + 0x10))(in_stack_00000068);

-                                }

-                                if (in_stack_00000060 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000060 + 0x10))(in_stack_00000060);

-                                }

-                                if (in_stack_00000058 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000058 + 0x10))(in_stack_00000058);

-                                }

-                                if (in_stack_00000048 != (longlong *)0x0) {

-                                  (**(code **)(*in_stack_00000048 + 0x10))(in_stack_00000048);

-                                }

-                                if (plVar6 != (longlong *)0x0) {

-                                  (**(code **)(*plVar6 + 0x10))(plVar6);

-                                }

-                                if (plVar5 != (longlong *)0x0) {

-                                  (**(code **)(*plVar5 + 0x10))(plVar5);

-                                }

-                                if (plVar4 != (longlong *)0x0) {

-                                  (**(code **)(*plVar4 + 0x10))(plVar4);

-                                }

-                                if (plVar3 != (longlong *)0x0) {

-                                  (**(code **)(*plVar3 + 0x10))(plVar3);

-                                }

-                                if (plVar2 != (longlong *)0x0) {

-                                  (**(code **)(*plVar2 + 0x10))(plVar2);

-                                }

-                                if (unaff_RDI != (longlong *)0x0) {

-                                  (**(code **)(*unaff_RDI + 0x10))();

-                                }

-                                if (unaff_RBX != (longlong *)0x0) {

-                                  (**(code **)(*unaff_RBX + 0x10))();

-                                }

-                                iVar8 = 0;

-                              }

-                            }

-                          }

-                        }

-                      }

-                    }

-                  }

-                }

-              }

-            }

-          }

-        }

-      }

-    }

-  }

-  return iVar8;

+  return 0;

 }
```

## `UndockedSearchAppExperienceManager::ActivateSearch`  (modified)

```diff
--- UndockedSearchAppExperienceManager::ActivateSearch
+++ UndockedSearchAppExperienceManager::ActivateSearch
@@ -1,41 +1,120 @@
+

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

+   guard_dispatch_icall */

+/* private: void __cdecl UndockedSearchAppExperienceManager::ActivateSearch(struct

+   winrt::WindowsUdk::UI::Shell::SearchAppActivatedEventArgs const & __ptr64,bool) __ptr64 */

 

 void __thiscall

-Windows::Internal::ShellHelpers::PropertySetHelper::ActivateSearch

+UndockedSearchAppExperienceManager::ActivateSearch

           (UndockedSearchAppExperienceManager *this,SearchAppActivatedEventArgs *param_1,

           bool param_2)

 

 {

-  char *in_RAX;

-  longlong unaff_RBX;

-  undefined8 uStack0000000000000030;

+  undefined8 *puVar1;

+  byte bVar2;

+  bool bVar3;

+  long lVar4;

+  undefined4 uVar5;

+  int iVar6;

+  WeakRef *pWVar7;

+  ushort uVar8;

+  void *unaff_retaddr;

+  longlong *local_res10;

+  longlong *local_res20;

+  longlong **local_58;

+  undefined4 local_50;

+  undefined8 local_48;

+  longlong *plStack_40;

+  UndockedSearchAppExperienceManager *local_38;

   

-  *in_RAX = *in_RAX + (char)in_RAX;

-  _revoke___event_revoker_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt___MP8type___abi_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BDI_AA_impl_winrt__QEAAXXZ

-            (unaff_RBX + 0x150);

-  _revoke___event_revoker_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt___MP8type___abi_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BEI_AA_impl_winrt__QEAAXXZ

-            (unaff_RBX + 0x160);

-  uStack0000000000000030 = 0;

-  winrt::com_ptr<GamingFallbackWindow>::operator=

-            ((com_ptr<GamingFallbackWindow> *)(unaff_RBX + 0x148),

-             (com_ptr<class_GamingFallbackWindow> *)&stack0x00000030);

+  lVar4 = DetectAndMitigateSpartanSubdomainIssue(this);

+  if (lVar4 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0xd28,

+               "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp",

+               lVar4);

+  }

+  puVar1 = *(undefined8 **)param_1;

+  if (puVar1 == (undefined8 *)0x0) {

+    local_res10 = (longlong *)0x0;

+  }

+  else {

+    local_res20 = (longlong *)0x0;

+    local_50 = 0;

+    local_48 = 0;

+    plStack_40 = (longlong *)0x0;

+    uVar5 = (**(code **)*puVar1)

+                      (puVar1,&winrt::impl::

+                               guid_v<winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs>

+                       ,&local_res20);

+    winrt::check_hresult(&local_res10,uVar5,&local_50);

+    local_res10 = local_res20;

+  }

+  bVar2 = winrt::impl::

+          consume_Windows_Devices_Enumeration_IDeviceInformationPairing<winrt::Windows::Devices::Enumeration::IDeviceInformationPairing>

+          ::IsPaired((consume_Windows_Devices_Enumeration_IDeviceInformationPairing<winrt::Windows::Devices::Enumeration::IDeviceInformationPairing>

+                      *)&local_res10);

   winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

-  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&stack0x00000030);

-  _revoke___event_revoker_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt___MP8type___abi_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BDI_AA_impl_winrt__QEAAXXZ

-            (unaff_RBX + 0x178);

-  _revoke___event_revoker_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt___MP8type___abi_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BEI_AA_impl_winrt__QEAAXXZ

-            (unaff_RBX + 0x188);

-  uStack0000000000000030 = 0;

-  winrt::com_ptr<GamingFallbackWindow>::operator=

-            ((com_ptr<GamingFallbackWindow> *)(unaff_RBX + 0x170),

-             (com_ptr<class_GamingFallbackWindow> *)&stack0x00000030);

-  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

-  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&stack0x00000030);

-  uStack0000000000000030 = 0;

-  winrt::com_ptr<GamingFallbackWindow>::operator=

-            ((com_ptr<GamingFallbackWindow> *)(unaff_RBX + 0x198),

-             (com_ptr<class_GamingFallbackWindow> *)&stack0x00000030);

-  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

-  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&stack0x00000030);

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_res10);

+  if ((bVar2 != 0) || (uVar5 = 1, !param_2)) {

+    uVar5 = 0;

+  }

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61846764>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61846764> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    local_res10 = (longlong *)CONCAT44(local_res10._4_4_,uVar5);

+    local_res20 = (longlong *)CONCAT44(local_res20._4_4_,(uint)param_2);

+    local_58 = (longlong **)CONCAT44(local_58._4_4_,(uint)bVar2);

+    SearchAppExperienceManagerTelemetry::

+    UndockedSearchAppExperienceManager_ActivateSearch_ReactivationCheck<int,int,int>

+              ((int *)&local_58,(int *)&local_res20,(int *)&local_res10);

+  }

+  uVar8 = 0;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_50573867>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_50573867> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    uVar8 = *(ushort *)(this + 0x358);

+  }

+  if ((char)uVar5 == '\0') {

+    Activate(this,param_1,param_2,uVar8);

+  }

+  else {

+    local_res20 = (longlong *)0x0;

+    local_50 = 0;

+    local_48 = 0;

+    plStack_40 = (longlong *)0x0;

+    local_58 = &local_res20;

+    pWVar7 = Microsoft::WRL::Details::ComPtrRef<Microsoft::WRL::WeakRef>::

+             operator_class_Microsoft__WRL__WeakRef____ptr64

+                       ((ComPtrRef<Microsoft::WRL::WeakRef> *)&local_58);

+    lVar4 = Microsoft::WRL::AsWeak<UndockedSearchAppExperienceManager>(this,pWVar7);

+    winrt::check_hresult(&local_res10,lVar4,&local_50);

+    local_50._0_3_ = CONCAT12(param_2,uVar8);

+    local_48 = *(undefined8 *)param_1;

+    Microsoft::WRL::ComPtr<ITemporaryAppVisualArray>::InternalAddRef

+              ((ComPtr<ITemporaryAppVisualArray> *)&local_48);

+    plStack_40 = local_res20;

+    if (local_res20 != (longlong *)0x0) {

+      (**(code **)(*local_res20 + 8))();

+    }

+    local_38 = this;

+    iVar6 = Windows::Internal::ComTaskPool::QueueTask<<lambda_07b3883f35427505be94fa9fc272401f>_>();

+    <lambda_07b3883f35427505be94fa9fc272401f>::~<lambda_07b3883f35427505be94fa9fc272401f>(&local_50)

+    ;

+    if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xd67,

+                 "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp",

+                 iVar6);

+    }

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_res20);

+  }

   return;

 }
```

## `TabletModeCoverWindow::TabletModeCoverWindow`  (modified)

```diff
--- TabletModeCoverWindow::TabletModeCoverWindow
+++ TabletModeCoverWindow::TabletModeCoverWindow
@@ -1,2 +1,85 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TabletModeCoverWindow::TabletModeCoverWindow : 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 TabletModeCoverWindow::TabletModeCoverWindow(void) __ptr64 */

+

+TabletModeCoverWindow * __thiscall

+TabletModeCoverWindow::TabletModeCoverWindow(TabletModeCoverWindow *this)

+

+{

+  FtmBase *this_00;

+  bool bVar1;

+  void *unaff_retaddr;

+  

+  *(undefined ***)this = &CWRLObjectWithGITSite::_vftable_;

+  *(undefined8 *)(this + 0x10) = 0;

+  *(undefined4 *)(this + 0x18) = 0;

+  *(undefined8 *)(this + 0x20) = 0;

+  this_00 = (FtmBase *)(this + 0x28);

+  Microsoft::WRL::FtmBase::FtmBase(this_00);

+  *(undefined4 *)(this + 0x5c) = 1;

+  *(undefined ***)this =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CWRLObjectWithGITSite,Microsoft::WRL::FtmBase,ITabletModeCoverWindow,ITabletModeChrome>

+        ::

+        _vftable__for__Microsoft__WRL__Details__Selector<CWRLObjectWithGITSite,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithGITSite>,Microsoft::WRL::FtmBase,ITabletModeCoverWindow,ITabletModeChrome>_>__

+  ;

+  *(undefined ***)this_00 =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,Microsoft::WRL::Details::ImplementsMarker<Microsoft::WRL::FtmBase>,ITabletModeCoverWindow,ITabletModeChrome>,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithGITSite>,Microsoft::WRL::FtmBase,ITabletModeCoverWindow,ITabletModeChrome>_>__

+  ;

+  *(undefined ***)(this + 0x48) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CWRLObjectWithGITSite,Microsoft::WRL::FtmBase,ITabletModeCoverWindow,ITabletModeChrome>

+        ::_vftable__for__ITabletModeCoverWindow__;

+  *(undefined ***)(this + 0x50) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CWRLObjectWithGITSite,Microsoft::WRL::FtmBase,ITabletModeCoverWindow,ITabletModeChrome>

+        ::

+        _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,ITabletModeChrome>__

+  ;

+  if (Microsoft::WRL::Details::ModuleBase::module_ != (ModuleBase *)0x0) {

+    (**(code **)(*(longlong *)Microsoft::WRL::Details::ModuleBase::module_ + 8))();

+  }

+  *(undefined8 *)(this + 0x68) = 0;

+  *(undefined ***)this =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<CWRLObjectWithGITSite,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithGITSite>,Microsoft::WRL::FtmBase,ITabletModeCoverWindow,ITabletModeChrome>_>__

+  ;

+  *(undefined ***)this_00 =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,Microsoft::WRL::Details::ImplementsMarker<Microsoft::WRL::FtmBase>,ITabletModeCoverWindow,ITabletModeChrome>,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithGITSite>,Microsoft::WRL::FtmBase,ITabletModeCoverWindow,ITabletModeChrome>_>__

+  ;

+  *(undefined ***)(this + 0x48) = &_vftable__for__ITabletModeCoverWindow__;

+  *(undefined ***)(this + 0x50) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,ITabletModeChrome>__

+  ;

+  *(undefined ***)(this + 0x60) = &_vftable_;

+  InitializeSRWLock((PSRWLOCK)(this + 0x70));

+  *(undefined8 *)(this + 0x78) = 0;

+  *(undefined8 *)(this + 0x80) = 0;

+  *(undefined8 *)(this + 0x88) = 0;

+  *(undefined8 *)(this + 0x90) = 0;

+  *(undefined8 *)(this + 0x98) = 0;

+  *(undefined8 *)(this + 0xa0) = 0;

+  *(undefined8 *)(this + 0xa8) = 0;

+  *(undefined8 *)(this + 0xb0) = 0;

+  *(undefined8 *)(this + 0xb8) = 0;

+  *(undefined8 *)(this + 0xc0) = 0;

+  this[200] = (TabletModeCoverWindow)0x0;

+  *(undefined8 *)(this + 0xcc) = 0;

+  *(undefined8 *)(this + 0xd4) = 0;

+  this[0xdc] = (TabletModeCoverWindow)0x0;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (!bVar1) {

+    return this;

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_FailFast_Unexpected

+            (unaff_retaddr,0x1b,"pcshell\\twinui\\tabletmode\\lib\\tabletmodecoverwindow.cpp");

+}

+
```

## `GamingPosturePositioner::ControlLost`  (modified)

```diff
--- GamingPosturePositioner::ControlLost
+++ GamingPosturePositioner::ControlLost
@@ -1,2 +1,191 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB GamingPosturePositioner::ControlLost : 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 void __cdecl GamingPosturePositioner::ControlLost(struct IObjectArray *

+   __ptr64,enum SHELL_POSITIONER_TYPE,struct IUnknown * __ptr64 * __ptr64) __ptr64 */

+

+void __thiscall

+GamingPosturePositioner::ControlLost

+          (GamingPosturePositioner *this,IObjectArray *param_1,SHELL_POSITIONER_TYPE param_2,

+          IUnknown **param_3)

+

+{

+  code *pcVar1;

+  bool bVar2;

+  int iVar3;

+  ActivityThreadWatcher *pAVar4;

+  _tlgProvider_t *p_Var5;

+  basic_ostringstream<char,struct_std::char_traits<char>,class_std::allocator<char>_> *pbVar6;

+  basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_> *pbVar7;

+  basic_string<char,struct_std::char_traits<char>,class_std::allocator<char>_> *pbVar8;

+  basic_string<char,std::char_traits<char>,std::allocator<char>_> *pbVar9;

+  uint uVar10;

+  int iVar11;

+  _GUID *p_Var12;

+  undefined1 auStack_328 [48];

+  IApplicationView *local_2f8;

+  uint local_2f0 [2];

+  HWND__ *local_2e8;

+  HWND__ *local_2e0;

+  ActivityThreadWatcher local_2d8 [80];

+  optional<wil::ActivityThreadWatcher> local_288 [80];

+  undefined1 local_238;

+  optional<wil::ActivityThreadWatcher> local_228 [80];

+  undefined1 local_1d8;

+  basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_> local_1c8 [232];

+  undefined8 local_e0;

+  undefined8 uStack_d8;

+  undefined8 local_d0;

+  undefined8 local_c8;

+  undefined **local_b8;

+  HWND__ **local_b0;

+  undefined ***local_80;

+  basic_string<char,std::char_traits<char>,std::allocator<char>_> local_78 [32];

+  basic_string<char,std::char_traits<char>,std::allocator<char>_> local_58 [32];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_328;

+  local_1d8 = 0;

+  p_Var12 = (_GUID *)param_3;

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    pAVar4 = (ActivityThreadWatcher *)

+             GamingPosturePositionerTelemetryProvider::WatchCurrentThread((char *)local_2d8);

+    std::optional<wil::ActivityThreadWatcher>::emplace<wil::ActivityThreadWatcher>(local_228,pAVar4)

+    ;

+    wil::ActivityThreadWatcher::~ActivityThreadWatcher(local_2d8);

+  }

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                      ::__l2::impl);

+  if ((!bVar2) &&

+     (p_Var5 = GamingPosturePositionerTelemetryProvider::Provider(), 4 < *(uint *)p_Var5)) {

+    _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+    ::Write<>(p_Var5,&DAT_0,(_GUID *)0x0,p_Var12);

+  }

+  *param_3 = (IUnknown *)0x0;

+  local_2f0[0] = 0;

+  (**(code **)(*(longlong *)param_1 + 0x18))(param_1,local_2f0);

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    GamingPosturePositionerTelemetryProvider::BeginLosingControl<unsigned_int&___ptr64>(local_2f0);

+  }

+  for (uVar10 = 0; uVar10 < local_2f0[0]; uVar10 = uVar10 + 1) {

+    local_2f8 = (IApplicationView *)0x0;

+    pcVar1 = *(code **)(*(longlong *)param_1 + 0x20);

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset

+              ((com_ptr_t<IInputHostLayout,wil::err_exception_policy> *)&local_2f8);

+    iVar11 = -0x7f87e480;

+    iVar3 = (*pcVar1)(param_1,uVar10,&_GUID_372e1d3b_38d3_42e4_a15b_8ab2b178f513,&local_2f8);

+    if (-1 < iVar3) {

+      local_2e8 = (HWND__ *)0x0;

+      uStack_d8 = 0;

+      local_d0 = 0;

+      local_c8 = 0xf;

+      local_e0 = 0;

+      local_238 = 0;

+      bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                          ::__l2::impl);

+      if (bVar2) {

+        local_b8 = &PTR__Copy_180757b18;

+        local_b0 = &local_2e8;

+        local_80 = &local_b8;

+        LogViewDiagnosticInfo

+                  (local_2f8,

+                   (function<void___cdecl(HWND__*___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_long,tagRECT)>

+                    *)&local_b8);

+        if (local_80 != (undefined ***)0x0) {

+          (*(code *)(*local_80)[4])

+                    (local_80,CONCAT71((int7)((ulonglong)&local_b8 >> 8),local_80 != &local_b8));

+        }

+        std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::

+        basic_string<char,std::char_traits<char>,std::allocator<char>_>(local_78,"HWND=0x");

+        pbVar9 = local_78;

+        pbVar6 = (basic_ostringstream<char,struct_std::char_traits<char>,class_std::allocator<char>_>

+                  *)std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>::

+                    basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>

+                              (local_1c8,pbVar9,iVar11);

+        pbVar7 = std::

+                 operator<<<std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>,class_std::ios_base&___ptr64___cdecl(std::ios_base&___ptr64),0>

+                           (pbVar6,(_func_ios_base_ptr_ios_base_ptr *)pbVar9);

+        local_2e0 = local_2e8;

+        pbVar7 = std::

+                 operator<<<std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>,unsigned___int64,0>

+                           ((basic_ostringstream<char,struct_std::char_traits<char>,class_std::allocator<char>_>

+                             *)pbVar7,(__uint64 *)&local_2e0);

+        pbVar8 = (basic_string<char,struct_std::char_traits<char>,class_std::allocator<char>_> *)

+                 std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>::str

+                           (pbVar7);

+        std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::operator=

+                  ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0,

+                   pbVar8);

+        std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                  (local_58);

+        std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>::

+        _vbase_destructor_(local_1c8);

+        std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                  (local_78);

+        pAVar4 = (ActivityThreadWatcher *)

+                 GamingPosturePositionerTelemetryProvider::WatchCurrentThread((char *)local_2d8);

+        std::optional<wil::ActivityThreadWatcher>::emplace<wil::ActivityThreadWatcher>

+                  (local_288,pAVar4);

+        wil::ActivityThreadWatcher::~ActivityThreadWatcher(local_2d8);

+      }

+      ApplicationViewCollection::RemoveView((ApplicationViewCollection *)(this + 0x340),local_2f8);

+      ApplicationViewCollection::RemoveView((ApplicationViewCollection *)(this + 800),local_2f8);

+      bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60222888>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_60222888> *)

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

+                          ::__l2::impl);

+      if (bVar2) {

+        SetViewCloaking(local_2f8,local_2e8,false);

+      }

+      if ((*(IUnknown **)(this + 0xf0) != (IUnknown *)0x0) &&

+         (iVar3 = SHIsSameObject((IUnknown *)local_2f8,*(IUnknown **)(this + 0xf0)), iVar3 != 0)) {

+        ReleasePrimaryView(this + -0x10,false,false);

+        iVar3 = IsGamingFullScreenExperienceActive();

+        if (iVar3 != 0) {

+          HandleViewFallback(this + -0x10,true);

+        }

+        bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                            ::__l2::impl);

+        if (bVar2) {

+          GamingPosturePositionerTelemetryProvider::

+          LostControlOfCurrentlyShownView<HWND__*___ptr64&___ptr64>(&local_2e8);

+        }

+      }

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_288);

+      std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+    }

+    wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+    ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+              ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_2f8);

+  }

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    GamingPosturePositionerTelemetryProvider::FinishedLosingControl();

+  }

+  std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+  ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+            ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_228);

+  return;

+}

+
```

## `wistd::__function::__func<<lambda_44da36a20c978ad964a01f88d96b4a84>,void___cdecl(unsigned_char_const_(&)[32])>::operator()`  (modified)

```diff
--- wistd::__function::__func<<lambda_44da36a20c978ad964a01f88d96b4a84>,void___cdecl(unsigned_char_const_(&)[32])>::operator()
+++ wistd::__function::__func<<lambda_44da36a20c978ad964a01f88d96b4a84>,void___cdecl(unsigned_char_const_(&)[32])>::operator()
@@ -1,20 +1,11 @@
 

-void wil::details::ScopeExitFn<<lambda_706cdde76f517ec13645304910a15a0a>_>::operator()

-               (longlong param_1,undefined8 param_2,

-               allocator<Microsoft::WRL::ComPtr<ITaskWindow>_> *param_3)

+void wistd::__function::

+     __func<<lambda_44da36a20c978ad964a01f88d96b4a84>,void___cdecl(unsigned_char_const_(&)[32])>::

+     operator()(longlong param_1,uchar *param_2)

 

 {

-  code *pcVar1;

-  ComPtr<ITaskWindow> *unaff_RBX;

-  char in_ZF;

-  

-  if (param_1 == 1 || in_ZF != '\0') {

-    std::_Destroy_range<std::allocator<Microsoft::WRL::ComPtr<ITaskWindow>_>_>

-              (unaff_RBX,(ComPtr<struct_ITaskWindow> *)((ulonglong)unaff_RBX & 0xffffffff),param_3);

-    return;

-  }

-  pcVar1 = (code *)swi(1);

-  (*pcVar1)();

+  TouchKeyboardExperienceManager::HandleTouchEvent

+            (*(TouchKeyboardExperienceManager **)(param_1 + 8),param_2);

   return;

 }
```

## `GamingOverlayExperienceManager::OnViewEvent`  (modified)

```diff
--- GamingOverlayExperienceManager::OnViewEvent
+++ GamingOverlayExperienceManager::OnViewEvent
@@ -1,96 +1,87 @@
 

-/* WARNING: Instruction at (ram,0x00018022c642) overlaps instruction at (ram,0x00018022c641)

-    */

+/* 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 GamingOverlayExperienceManager::OnViewEvent(struct

+   Windows::Internal::Shell::ViewManagerInterop::IViewWrapper * __ptr64,struct

+   Windows::Internal::Shell::ViewManagerInterop::IViewEventArgs * __ptr64) __ptr64 */

 

 long __thiscall

-Microsoft::WRL::

-RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CServiceHostComponentWithGITSite,Microsoft::WRL::FtmBase>

-::OnViewEvent(GamingOverlayExperienceManager *this,IViewWrapper *param_1,IViewEventArgs *param_2)

+GamingOverlayExperienceManager::OnViewEvent

+          (GamingOverlayExperienceManager *this,IViewWrapper *param_1,IViewEventArgs *param_2)

 

 {

-  undefined4 uVar1;

-  undefined8 uVar2;

-  longlong lVar3;

-  undefined8 uVar4;

-  undefined4 in_EAX;

-  DWORD DVar5;

-  long extraout_EAX;

-  _tlgProvider_t *p_Var6;

-  ActivityBase<ViewManagerInteropLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType> *unaff_RBX;

-  longlong unaff_RBP;

-  undefined4 *unaff_RDI;

-  _tlgProvider_t *in_R9;

-  bool in_SF;

+  int iVar1;

+  IViewEventArgs *pIVar2;

+  void *unaff_retaddr;

+  undefined1 auStack_58 [32];

+  int aiStack_38 [2];

+  PRTL_CRITICAL_SECTION_DEBUG p_Stack_30;

+  ulonglong uStack_28;

   

-  if (in_SF) {

-    *(undefined4 *)(unaff_RBP + -0x50) = in_EAX;

+  uStack_28 = __security_cookie ^ (ulonglong)auStack_58;

+  p_Stack_30 = (PRTL_CRITICAL_SECTION_DEBUG)0x0;

+  pIVar2 = param_2;

+  wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)&p_Stack_30);

+  if (*(longlong *)(this + 0x198) == 0) {

+    iVar1 = -0x7fffbffd;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xc1e,

+               "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+               ,-0x7fffbffd);

+    wil::details::

+    unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                *)&p_Stack_30);

   }

   else {

-    if (unaff_RDI == (undefined4 *)0x0) {

-      wil::ActivityBase<ViewManagerInteropLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

-      zInternalStop(unaff_RBX);

-      p_Var6 = ViewManagerInteropLogging::Provider();

-      if (5 < *(uint *)p_Var6) {

-        DVar5 = GetCurrentThreadId();

-        lVar3 = *(longlong *)(unaff_RBX + 0x110);

-        *(DWORD *)(unaff_RBP + 0x10) = DVar5;

-        uVar1 = *(undefined4 *)(lVar3 + 0x48);

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

-        *(undefined4 *)(unaff_RBP + 0x18) = uVar1;

-        _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

-        ::Write<_tlgWrapperByVal<8>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>_>

-                  (p_Var6,&DAT_0,(_GUID *)(lVar3 + 8),(_GUID *)0x0,

-                   (_tlgWrapperByVal<8> *)(unaff_RBP + 0x20),

-                   (_tlgWrapperByVal<4> *)(unaff_RBP + 0x18),

-                   (_tlgWrapperByVal<4> *)(unaff_RBP + 0x10));

+    aiStack_38[0] = 0;

+    iVar1 = (**(code **)(*(longlong *)param_2 + 0x30))(param_2,aiStack_38);

+    if (iVar1 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xc21,

+                 "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+                 ,iVar1);

+      wil::details::

+      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                  *)&p_Stack_30);

+    }

+    else {

+      if (aiStack_38[0] == 0) {

+        OnViewCreatedViewEvent(this,param_1,pIVar2);

       }

-      goto LAB_1;

+      else if (aiStack_38[0] == 4) {

+        OnViewDestroyedViewEvent(this,param_1,pIVar2);

+      }

+      else if (aiStack_38[0] == 6) {

+        OnWindowChangedViewEvent(this,param_1,pIVar2);

+      }

+      else if (aiStack_38[0] == 7) {

+        OnVisibilityRevokedChanged(this,param_1,pIVar2);

+      }

+      else if (aiStack_38[0] == 0xc) {

+        OnApplicationViewSwitcherTryShowAsStandaloneViewEvent(this,param_1,param_2);

+      }

+      else if (aiStack_38[0] == 0xe) {

+        OnApplicationViewSwitcherTryShowAsViewModeViewEvent(this,param_1,param_2);

+      }

+      else if (aiStack_38[0] == 0x23) {

+        OnConsolidationRequestedViewEvent(this,param_1,param_2);

+      }

+      wil::details::

+      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                  *)&p_Stack_30);

+      iVar1 = 0;

     }

-    wil::ActivityBase<ViewManagerInteropLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

-    zInternalStop(unaff_RBX);

-    in_R9 = ViewManagerInteropLogging::Provider();

-    if (*(uint *)in_R9 < 6) goto LAB_1;

   }

-  uVar2 = *(undefined8 *)(unaff_RDI + 0xc);

-  lVar3 = *(longlong *)(unaff_RBX + 0x110);

-  *(undefined4 *)(unaff_RBP + 0x20) = unaff_RDI[0x1a];

-  uVar4 = *(undefined8 *)(unaff_RDI + 0x18);

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

-  *(undefined8 *)(unaff_RBP + -0x58) = uVar4;

-  *(undefined8 *)(unaff_RBP + -0x50) = *(undefined8 *)(unaff_RDI + 0x16);

-  *(undefined4 *)(unaff_RBP + 0x28) = unaff_RDI[0x14];

-  *(undefined8 *)(unaff_RBP + -0x48) = *(undefined8 *)(unaff_RDI + 0x12);

-  *(undefined4 *)(unaff_RBP + -0x80) = unaff_RDI[8];

-  *(undefined8 *)(unaff_RBP + -0x40) = *(undefined8 *)(unaff_RDI + 6);

-  *(undefined4 *)(unaff_RBP + -0x7c) = *unaff_RDI;

-  *(undefined8 *)(unaff_RBP + -0x38) = *(undefined8 *)(unaff_RDI + 0x20);

-  *(undefined4 *)(unaff_RBP + -0x78) = unaff_RDI[0x10];

-  *(undefined8 *)(unaff_RBP + -0x30) = *(undefined8 *)(unaff_RDI + 0xe);

-  *(undefined4 *)(unaff_RBP + -0x74) = unaff_RDI[2];

-  *(undefined8 *)(unaff_RBP + -0x70) = uVar2;

-  *(undefined4 *)(unaff_RBP + 0x10) = unaff_RDI[0x11];

-  *(undefined4 *)(unaff_RBP + 0x18) = unaff_RDI[4];

-  *(undefined8 *)(unaff_RBP + -0x68) = *(undefined8 *)(unaff_RDI + 0x1e);

-  *(undefined8 *)(unaff_RBP + -0x60) = *(undefined8 *)(unaff_RDI + 0x1c);

-  *(undefined8 *)(unaff_RBP + -0x28) = 0x1000000;

-  _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

-  ::

-  Write<_tlgWrapperByVal<8>,_tlgWrapperByVal<8>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapperByVal<4>,_tlgWrapSz<wchar_t>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapSz<wchar_t>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapSz<wchar_t>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapSz<char>_>

-            (in_R9,&DAT_2,(_GUID *)(lVar3 + 8),(_GUID *)in_R9,

-             (_tlgWrapperByVal<8> *)(unaff_RBP + -0x20),(_tlgWrapperByVal<8> *)(unaff_RBP + -0x28),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + -0x74),(_tlgWrapSz<char> *)(unaff_RBP + -0x30),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + -0x78),(_tlgWrapSz<char> *)(unaff_RBP + -0x38),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + -0x7c),(_tlgWrapSz<wchar_t> *)(unaff_RBP + -0x40),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + -0x80),(_tlgWrapSz<char> *)(unaff_RBP + -0x48),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + 0x28),(_tlgWrapSz<char> *)(unaff_RBP + -0x50),

-             (_tlgWrapSz<wchar_t> *)(unaff_RBP + -0x58),(_tlgWrapperByVal<4> *)(unaff_RBP + 0x20),

-             (_tlgWrapSz<char> *)(unaff_RBP + -0x60),(_tlgWrapSz<wchar_t> *)(unaff_RBP + -0x68),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + 0x18),(_tlgWrapperByVal<4> *)(unaff_RBP + 0x10),

-             (_tlgWrapSz<char> *)(unaff_RBP + -0x70));

-LAB_1:

-  wil::ActivityBase<ControlCenterLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

-  IgnoreCurrentThread((ActivityBase<ControlCenterLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>

-                       *)unaff_RBX);

-  return extraout_EAX;

+  return iVar1;

 }
```

## `winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_Kind`  (modified)

```diff
--- winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_Kind
+++ winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_Kind
@@ -1,2 +1,26 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_Kind : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual int __cdecl winrt::impl::produce<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_Kind(int * __ptr64)

+   __ptr64 */

+

+int __thiscall

+winrt::impl::

+produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+::get_Kind(produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+           *this,int *param_1)

+

+{

+  abi_guard local_res8 [32];

+  

+  root_implements<winrt::Windows::Internal::Shell::XamlExplorerHost::implementation::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK2,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK3,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK4,winrt::Windows::Foundation::IClosable,winrt::non_agile>

+  ::abi_guard::abi_guard

+            (local_res8,

+             (XamlExplorerHostChildWindow_WASDK *)

+             (-(ulonglong)

+               (this != (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+                         *)0x0) & (ulonglong)(this + -0x20)));

+  *param_1 = 0;

+  return 0;

+}

+
```

## `CopilotButtonHelpers::GetRegistryKeyStringValue`  (modified)

```diff
--- CopilotButtonHelpers::GetRegistryKeyStringValue
+++ CopilotButtonHelpers::GetRegistryKeyStringValue
@@ -1,2 +1,46 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CopilotButtonHelpers::GetRegistryKeyStringValue : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

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

+/* class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> > __cdecl CopilotButtonHelpers::GetRegistryKeyStringValue(unsigned

+   short const * __ptr64,unsigned short const * __ptr64,unsigned short const * __ptr64) */

+

+ushort * __cdecl

+CopilotButtonHelpers::GetRegistryKeyStringValue(ushort *param_1,ushort *param_2,ushort *param_3)

+

+{

+  long lVar1;

+  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+  *pbVar2;

+  int in_R9D;

+  undefined1 auStackY_288 [32];

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_248 [32];

+  ushort local_228 [264];

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStackY_288;

+  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"");

+  lVar1 = SHRegGetStringEx((HKEY__ *)0xffffffff80000001,

+                           (ushort *)L"Software\\Microsoft\\Windows\\Shell\\BrandedKey",param_3,

+                           in_R9D,local_228,0x104);

+  if (lVar1 == 0) {

+    pbVar2 = (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+              *)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_248,local_228);

+    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>_>

+               *)param_1,pbVar2);

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    _Tidy_deallocate(local_248);

+  }

+  return param_1;

+}

+
```

## `winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::Release`  (modified)

```diff
--- winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::Release
+++ winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::Release
@@ -1,2 +1,23 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::Release : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual unsigned int __cdecl winrt::impl::produce_base<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::Release(void)

+   __ptr64 */

+

+uint __thiscall

+winrt::impl::

+produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>

+::Release(produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>

+          *this)

+

+{

+  ulong uVar1;

+  

+  uVar1 = implements<winrt::WindowsUdk::UI::Shell::implementation::SearchAppHost,winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::WindowsUdk::UI::Shell::ISearchAppHost2,winrt::WindowsUdk::UI::Shell::ISearchAppHost3,winrt::WindowsUdk::UI::Shell::ISearchAppHost4,winrt::WindowsUdk::UI::Shell::ISearchAppHost5>

+          ::Release((implements<winrt::WindowsUdk::UI::Shell::implementation::SearchAppHost,winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::WindowsUdk::UI::Shell::ISearchAppHost2,winrt::WindowsUdk::UI::Shell::ISearchAppHost3,winrt::WindowsUdk::UI::Shell::ISearchAppHost4,winrt::WindowsUdk::UI::Shell::ISearchAppHost5>

+                     *)(-(ulonglong)

+                         (this != (produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>

+                                   *)0x0) & (ulonglong)(this + -0x38)));

+  return uVar1;

+}

+
```

## `_tip_CallDashboardExtensionTIP::evaluate`  (modified)

```diff
--- _tip_CallDashboardExtensionTIP::evaluate
+++ _tip_CallDashboardExtensionTIP::evaluate
@@ -1,2 +1,86 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB _tip_CallDashboardExtensionTIP::evaluate : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl _tip_CallDashboardExtensionTIP::evaluate(void) __ptr64 */

+

+void __thiscall _tip_CallDashboardExtensionTIP::evaluate(_tip_CallDashboardExtensionTIP *this)

+

+{

+  bool bVar1;

+  char cVar2;

+  char *pcVar3;

+  longlong lVar4;

+  

+  if ((this[0x11] != (_tip_CallDashboardExtensionTIP)0x0) &&

+     (this[0x10] != (_tip_CallDashboardExtensionTIP)0x0)) {

+    pcVar3 = tip2::details::reason_string("reason::extension_creation_failed");

+    lVar4 = *(longlong *)(this + 8);

+    if (*(char *)(lVar4 + 0x98) != '\0') {

+      return;

+    }

+    *(undefined1 *)(lVar4 + 0x98) = 3;

+    *(undefined2 *)(lVar4 + 0x9a) = 1;

+    goto LAB_0;

+  }

+  lVar4 = *(longlong *)(this + 8);

+  if ((*(uint *)(lVar4 + 0x38) & 0x200) == 0) {

+    if (*(char *)(lVar4 + 0x98) != '\0') {

+      return;

+    }

+    *(undefined1 *)(lVar4 + 0x98) = 3;

+    *(undefined2 *)(lVar4 + 0x9a) = 0x4001;

+    goto LAB_1;

+  }

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_600963485> *)

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

+                      ::__l2::impl);

+  if (bVar1) {

+    if ((this[0x12] != (_tip_CallDashboardExtensionTIP)0x0) ||

+       (cVar2 = IsTransientErrors(*(undefined4 *)(this + 0x14)), cVar2 != '\0')) {

+      cVar2 = IsTransientErrors(*(undefined4 *)(this + 0x14));

+      if (cVar2 != '\0') {

+        pcVar3 = tip2::details::reason_string("reason::transient_call_failure");

+        lVar4 = *(longlong *)(this + 8);

+        if (*(char *)(lVar4 + 0x98) != '\0') {

+          return;

+        }

+        *(undefined1 *)(lVar4 + 0x98) = 2;

+        *(undefined2 *)(lVar4 + 0x9a) = 3;

+        goto LAB_0;

+      }

+LAB_2:

+      lVar4 = *(longlong *)(this + 8);

+      if (*(char *)(lVar4 + 0x98) != '\0') {

+        return;

+      }

+      *(undefined1 *)(lVar4 + 0x98) = 1;

+      *(undefined2 *)(lVar4 + 0x9a) = 0x8000;

+LAB_1:

+      *(undefined8 *)(lVar4 + 0xa0) = 0;

+      return;

+    }

+  }

+  else if (this[0x12] != (_tip_CallDashboardExtensionTIP)0x0) {

+    if (*(int *)(this + 0x14) == -0x7ffefffe) {

+      pcVar3 = tip2::details::reason_string("reason::call_failed");

+      lVar4 = *(longlong *)(this + 8);

+      if (*(char *)(lVar4 + 0x98) != '\0') {

+        return;

+      }

+      *(undefined1 *)(lVar4 + 0x98) = 2;

+      *(undefined2 *)(lVar4 + 0x9a) = 2;

+      goto LAB_0;

+    }

+    goto LAB_2;

+  }

+  pcVar3 = tip2::details::reason_string("reason::call_failed");

+  lVar4 = *(longlong *)(this + 8);

+  if (*(char *)(lVar4 + 0x98) != '\0') {

+    return;

+  }

+  *(undefined1 *)(lVar4 + 0x98) = 3;

+  *(undefined2 *)(lVar4 + 0x9a) = 2;

+LAB_0:

+  *(char **)(lVar4 + 0xa0) = pcVar3;

+  return;

+}

+
```

## `CopilotHotkeyManager::OnPenButtonCopilotAction`  (modified)

```diff
--- CopilotHotkeyManager::OnPenButtonCopilotAction
+++ CopilotHotkeyManager::OnPenButtonCopilotAction
@@ -1,2 +1,308 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CopilotHotkeyManager::OnPenButtonCopilotAction : 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: void __cdecl CopilotHotkeyManager::OnPenButtonCopilotAction(struct PenButtonActionData

+   const & __ptr64) __ptr64 */

+

+void __thiscall

+CopilotHotkeyManager::OnPenButtonCopilotAction

+          (CopilotHotkeyManager *this,PenButtonActionData *param_1)

+

+{

+  PenButtonActionData *pPVar1;

+  longlong *plVar2;

+  code *pcVar3;

+  bool bVar4;

+  DWORD DVar5;

+  int iVar6;

+  undefined8 *puVar7;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *_Str1;

+  longlong lVar8;

+  __uint64 _Var9;

+  undefined8 uVar10;

+  TargetAppExtensionDetails *pTVar11;

+  CopilotHotkeyManager *pCVar12;

+  PenButtonActionData *pPVar13;

+  ushort ****ppppuVar14;

+  undefined8 ****ppppuVar15;

+  CopilotInvocationType CVar16;

+  char *in_R8;

+  GUID *pGVar17;

+  void *unaff_retaddr;

+  undefined1 auStack_238 [48];

+  longlong *local_208;

+  longlong local_200;

+  undefined8 local_1f8;

+  undefined8 uStack_1f0;

+  longlong local_1e8;

+  undefined8 local_1e0;

+  undefined8 local_1d8;

+  ushort ***local_1d0 [2];

+  ulonglong local_1c0;

+  ulonglong local_1b8;

+  undefined8 local_1b0;

+  undefined8 uStack_1a8;

+  undefined8 local_1a0;

+  undefined8 uStack_198;

+  char local_190;

+  undefined8 ***local_188;

+  undefined8 uStack_180;

+  undefined8 local_178;

+  ulonglong uStack_170;

+  TargetAppExtensionDetails local_168 [304];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_238;

+  DVar5 = GetTickCount();

+  *(ulonglong *)(this + 0x278) = (ulonglong)DVar5;

+  bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_PenButtonLaunchForeground>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_PenButtonLaunchForeground> *)

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

+                               ::__l2::impl);

+  if (bVar4) {

+    local_208 = (longlong *)0x0;

+    puVar7 = (undefined8 *)

+             winrt::immersive_shell_component::get_site<IServiceProvider>

+                       ((immersive_shell_component *)(this + 0x10));

+    plVar2 = (longlong *)*puVar7;

+    pcVar3 = *(code **)(*plVar2 + 0x18);

+    wil::com_ptr_t<IImmersiveAppCrusher,wil::err_exception_policy>::reset

+              ((com_ptr_t<IImmersiveAppCrusher,wil::err_exception_policy> *)&local_208);

+    pGVar17 = &_GUID_c3bafd5f_1336_4556_b89f_7f96bba71aa6;

+    iVar6 = (*pcVar3)(plVar2,&_GUID_c3bafd5f_1336_4556_b89f_7f96bba71aa6,

+                      &_GUID_c3bafd5f_1336_4556_b89f_7f96bba71aa6,&local_208);

+    in_R8 = (char *)pGVar17;

+    if (local_200 != 0) {

+      winrt::com_ptr<IDesktopVirtualDesktopDataSource>::unconditional_release_ref

+                ((com_ptr<IDesktopVirtualDesktopDataSource> *)&local_200);

+      in_R8 = (char *)pGVar17;

+    }

+    if ((-1 < iVar6) && (iVar6 = (**(code **)(*local_208 + 0x18))(), iVar6 < 0)) {

+      in_R8 = "pcshell\\twinui\\copilothotkeymanager\\lib\\copilothotkeymanager.cpp";

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x4b7,

+                 "pcshell\\twinui\\copilothotkeymanager\\lib\\copilothotkeymanager.cpp",iVar6);

+    }

+    wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+    ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+              ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_208);

+  }

+  iVar6 = *(int *)param_1;

+  if (iVar6 == 1) {

+    CVar16 = 5;

+  }

+  else if (iVar6 == 2) {

+    CVar16 = 6;

+  }

+  else {

+    if (iVar6 != 3) {

+      return;

+    }

+    CVar16 = 7;

+  }

+  uStack_1f0 = 0;

+  local_1e8 = 0;

+  local_1e0 = 7;

+  local_1f8 = 0;

+  local_1d8 = 0;

+  if (*(int *)(param_1 + 4) == 0) {

+    wil::reg::

+    try_get_value<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+              ((HKEY__ *)&local_1b0,(ushort *)0xffffffff80000001,

+               (ushort *)L"Software\\Microsoft\\Windows\\Shell\\BrandedKey");

+    if (local_190 != '\0') {

+      _Str1 = std::

+              optional<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+              ::value((optional<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+                       *)&local_1b0);

+      if (7 < *(ulonglong *)(_Str1 + 0x18)) {

+        _Str1 = *(basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  **)_Str1;

+      }

+      iVar6 = wcscmp((wchar_t *)_Str1,L"Search");

+      if (iVar6 == 0) {

+        bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID57832725>::

+                __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ID57832725> *)

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

+                                     ::__l2::impl);

+        if (bVar4) {

+          CoCreateGuid((GUID *)(this + 0xb4));

+          *(CopilotInvocationType *)(this + 0x274) = CVar16;

+        }

+        InvokeSearch(this);

+        std::

+        _Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+        ::

+        ~_Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+                  ((_Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+                    *)&local_1b0);

+        goto LAB_0;

+      }

+    }

+    UpdateTargetAppDetailsCacheIfNecessary(this);

+    std::

+    _Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+    ::

+    ~_Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+              ((_Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+                *)&local_1b0);

+  }

+  else {

+    if ((*(int *)(param_1 + 4) != 1) || (pPVar1 = param_1 + 8, pPVar1 == (PenButtonActionData *)0x0)

+       ) goto LAB_0;

+    lVar8 = -1;

+    do {

+      lVar8 = lVar8 + 1;

+    } while (*(short *)(pPVar1 + lVar8 * 2) != 0);

+    if (lVar8 == 0) goto LAB_0;

+    pPVar13 = pPVar1;

+    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>_>

+                *)local_1d0,(ushort *)pPVar1);

+    uStack_180 = 0;

+    local_178 = 0;

+    uStack_170 = 7;

+    local_188 = (undefined8 ****)0x0;

+    _Var9 = std::

+            basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+            ::find_first_of((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                             *)local_1d0,(ushort *)pPVar13,(__uint64)in_R8);

+    if (_Var9 == 0xffffffffffffffff) {

+      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_188,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)local_1d0);

+    }

+    else {

+      local_1b0 = 0;

+      uStack_1a8 = 0;

+      local_1a0 = 0;

+      uStack_198 = 0;

+      std::_String_val<std::_Simple_types<unsigned_short>_>::_Check_offset

+                ((_String_val<std::_Simple_types<unsigned_short>_> *)local_1d0,0);

+      if (local_1c0 < _Var9) {

+        _Var9 = local_1c0;

+      }

+      ppppuVar14 = local_1d0;

+      if (7 < local_1b8) {

+        ppppuVar14 = (ushort ****)local_1d0[0];

+      }

+      std::

+      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+      ::_Construct<1,unsigned_short_const*___ptr64>

+                ((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  *)&local_1b0,(ushort *)ppppuVar14,_Var9);

+      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_188,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)&local_1b0);

+      std::

+      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+      ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          *)&local_1b0);

+    }

+    if ((*(longlong *)(this + 0xe0) == 0) || (*(longlong *)(this + 0x100) == 0)) {

+LAB_1:

+      ClearFastpathRegistrationProperties(this);

+      uVar10 = 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>_>

+                           *)&local_1b0,(ushort *)pPVar1);

+      pTVar11 = (TargetAppExtensionDetails *)GetTargetAppExtensionDetails(this,local_168,uVar10);

+      TargetAppExtensionDetails::operator=((TargetAppExtensionDetails *)(this + 0xd0),pTVar11);

+      TargetAppExtensionDetails::~TargetAppExtensionDetails(local_168);

+    }

+    else {

+      ppppuVar15 = &local_188;

+      if (7 < uStack_170) {

+        ppppuVar15 = (undefined8 ****)local_188;

+      }

+      pCVar12 = this + 0xf0;

+      if (7 < *(ulonglong *)(this + 0x108)) {

+        pCVar12 = *(CopilotHotkeyManager **)pCVar12;

+      }

+      iVar6 = _o__wcsicmp(pCVar12,ppppuVar15);

+      if (iVar6 != 0) goto LAB_1;

+    }

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    _Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_188);

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    _Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)local_1d0);

+  }

+  iVar6 = *(int *)param_1;

+  if (iVar6 == 1) {

+    pCVar12 = this + 0x188;

+LAB_2:

+    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_1f8,

+              (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+               *)pCVar12);

+    local_1d8 = CONCAT44(*(undefined4 *)(pCVar12 + 0x24),(undefined4)local_1d8);

+    local_1d8 = CONCAT71(local_1d8._1_7_,

+                         *(basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                           *)(pCVar12 + 0x20));

+    if ((local_1e8 == 0) &&

+       (*(basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+          *)(pCVar12 + 0x20) ==

+        (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+         )0x0)) {

+      pCVar12 = this + 0x110;

+LAB_3:

+      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_1f8,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)pCVar12);

+      local_1d8 = CONCAT71(local_1d8._1_7_,

+                           *(basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                             *)(pCVar12 + 0x20));

+      local_1d8 = CONCAT44(*(undefined4 *)(pCVar12 + 0x24),(undefined4)local_1d8);

+    }

+  }

+  else {

+    if (iVar6 == 2) {

+      pCVar12 = this + 0x1b0;

+      goto LAB_2;

+    }

+    if (iVar6 == 3) {

+      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_1f8,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)(this + 0x1d8));

+      local_1d8 = CONCAT71(local_1d8._1_7_,this[0x1f8]);

+      local_1d8 = CONCAT44(*(undefined4 *)(this + 0x1fc),(undefined4)local_1d8);

+      if ((local_1e8 != 0) || (this[0x1f8] != (CopilotHotkeyManager)0x0)) goto LAB_4;

+      pCVar12 = this + 0x138;

+      goto LAB_3;

+    }

+  }

+LAB_4:

+  if (*(longlong *)(this + 0xe0) != 0) {

+    HandlePenButtonAction(this,CVar16,(PropertyDetails *)&local_1f8);

+  }

+LAB_0:

+  std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  ::_Tidy_deallocate((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)&local_1f8);

+  return;

+}

+
```

## `KeyboardHosting::TabTipAdapter::TabTipAdapter`  (modified)

```diff
--- KeyboardHosting::TabTipAdapter::TabTipAdapter
+++ KeyboardHosting::TabTipAdapter::TabTipAdapter
@@ -1,2 +1,268 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KeyboardHosting::TabTipAdapter::TabTipAdapter : 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: Globals starting with '_' overlap smaller symbols at the same address */

+/* public: __cdecl KeyboardHosting::TabTipAdapter::TabTipAdapter(struct

+   Windows::Internal::Shell::Text::IInputExperienceHost * __ptr64,struct

+   Windows::Internal::Shell::Text::IShellKeyboardHostingPolicy * __ptr64,struct

+   Windows::Internal::Shell::KeyboardHosting::IDesktopKeyboardHostingPolicy * __ptr64,struct

+   Windows::Internal::Shell::KeyboardHosting::IInputInjectionValidityHelper * __ptr64) __ptr64 */

+

+TabTipAdapter * __thiscall

+KeyboardHosting::TabTipAdapter::TabTipAdapter

+          (TabTipAdapter *this,IInputExperienceHost *param_1,IShellKeyboardHostingPolicy *param_2,

+          IDesktopKeyboardHostingPolicy *param_3,IInputInjectionValidityHelper *param_4)

+

+{

+  ComPtr<IImmersiveSystemModeNotification> *this_00;

+  ComPtr<IImmersiveSystemModeNotification> *this_01;

+  ComPtr<IImmersiveSystemModeNotification> *this_02;

+  ComPtr<IImmersiveSystemModeNotification> *this_03;

+  undefined8 uVar1;

+  code *pcVar2;

+  longlong *plVar3;

+  int iVar4;

+  long lVar5;

+  undefined4 uVar6;

+  undefined8 *puVar7;

+  InputCapability IVar8;

+  void *unaff_retaddr;

+  undefined1 auStack_98 [32];

+  longlong *local_78;

+  longlong *local_70;

+  IInputExperienceHost *local_68;

+  TabTipAdapter *local_60;

+  _Container_base12 *local_58;

+  undefined8 local_50;

+  undefined1 local_48 [24];

+  ulonglong local_30;

+  

+  local_30 = __security_cookie ^ (ulonglong)auStack_98;

+  *(undefined ***)this =

+       &winrt::impl::

+        producers_base<winrt::Windows::Internal::Shell::implementation::WindowTabHost,std::tuple<winrt::Windows::Internal::Shell::WindowTabHost,winrt::Windows::Internal::Shell::IWindowTabHost,IApplicationViewChangeListener,IImmersiveSettingsCacheNotification,VirtualDesktopNotificationBase<IVirtualDesktopNotification>,Windows::Internal::Shell::IWindowTabHostInternal>_>

+        ::

+        _vftable__for__winrt__impl__producer_convert<winrt::Windows::Internal::Shell::implementation::WindowTabHost,Windows::Internal::Shell::IWindowTabHostInternal,void>__

+  ;

+  *(undefined ***)(this + 8) = &IAppLayoutItemInternal::_vftable_;

+  LOCK();

+  _s_lock = _s_lock + 1;

+  UNLOCK();

+  *(undefined8 *)(this + 0x18) = 1;

+  *(undefined ***)this =

+       &

+       _vftable__for__winrt__impl__producer_convert<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,void>__

+  ;

+  *(undefined ***)(this + 8) =

+       &winrt::impl::heap_implements<KeyboardHosting::TabTipAdapter>::

+        _vftable__for__winrt__impl__producer_convert<KeyboardHosting::TabTipAdapter,IRemoteTabTipAdapter,void>__

+  ;

+  *(undefined ***)(this + 0x10) =

+       &winrt::impl::heap_implements<KeyboardHosting::TabTipAdapter>::_vftable_;

+  this_00 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x20);

+  *(undefined8 *)this_00 = 0;

+  this_01 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x28);

+  *(undefined8 *)this_01 = 0;

+  *(undefined8 *)(this + 0x30) = 0;

+  *(undefined8 *)(this + 0x38) = 0;

+  *(undefined8 *)(this + 0x40) = 0;

+  *(IInputExperienceHost **)(this + 0x48) = param_1;

+  this_02 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x50);

+  *(undefined8 *)this_02 = 0;

+  *(undefined8 *)(this + 0x58) = 0;

+  this_03 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x60);

+  *(undefined8 *)this_03 = 0;

+  *(undefined8 *)(this + 0x68) = 0;

+  *(undefined8 *)(this + 0x70) = 0;

+  *(IShellKeyboardHostingPolicy **)(this + 0x78) = param_2;

+  local_68 = param_1;

+  local_60 = this;

+  if (param_2 != (IShellKeyboardHostingPolicy *)0x0) {

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

+  }

+  *(IDesktopKeyboardHostingPolicy **)(this + 0x80) = param_3;

+  if (param_3 != (IDesktopKeyboardHostingPolicy *)0x0) {

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

+  }

+  *(undefined8 *)(this + 0x88) = 0;

+  *(undefined8 *)(this + 0x90) = 0;

+  *(undefined8 *)(this + 0x98) = 0;

+  *(undefined8 *)(this + 0xa8) = 0x3ff0000000000000;

+  *(undefined4 *)(this + 0xb0) = 0;

+  *(undefined8 *)(this + 0xb8) = 0;

+  *(undefined8 *)(this + 0xc0) = 0;

+  *(undefined8 *)(this + 200) = 0;

+  *(undefined8 *)(this + 0xd0) = 0;

+  *(undefined8 *)(this + 0xd8) = 0;

+  *(undefined8 *)(this + 0xe0) = 0;

+  *(undefined8 *)(this + 0xe8) = 0;

+  *(undefined8 *)(this + 0xf0) = 0;

+  *(undefined8 *)(this + 0xf8) = 0;

+  *(undefined8 *)(this + 0x100) = 0;

+  *(undefined8 *)(this + 0x108) = 0;

+  *(undefined8 *)(this + 0x110) = 0;

+  *(undefined8 *)(this + 0x118) = 0;

+  *(undefined8 *)(this + 0x120) = 0;

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

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

+  *(undefined8 *)(this + 0x138) = 0;

+  *(undefined8 *)(this + 0x140) = 0;

+  *(undefined8 *)(this + 0x148) = 0;

+  *(undefined8 *)(this + 0x150) = 0;

+  *(undefined8 *)(this + 0x158) = 0;

+  *(undefined8 *)(this + 0x160) = 0;

+  *(undefined8 *)(this + 0x168) = 0;

+  *(undefined8 *)(this + 0x170) = 0;

+  *(undefined8 *)(this + 0x178) = 0;

+  *(undefined8 *)(this + 0x180) = 0;

+  *(undefined8 *)(this + 0x188) = 0;

+  *(undefined4 *)(this + 400) = 0xb;

+  *(undefined8 *)(this + 0x194) = 0;

+  *(undefined4 *)(this + 0x19c) = 0xb;

+  *(undefined8 *)(this + 0x1a0) = 0;

+  *(undefined8 *)(this + 0x1a8) = 0;

+  *(undefined8 *)(this + 0x1b0) = 0;

+  *(undefined8 *)(this + 0x1b8) = 0;

+  *(undefined4 *)(this + 0x1c0) = 0;

+  *(undefined2 *)(this + 0x1c4) = 0;

+  *(undefined8 *)(this + 0x1c8) = 0;

+  *(undefined8 *)(this + 0x1d0) = 0;

+  *(undefined8 *)(this + 0x1d8) = 0;

+  *(undefined8 *)(this + 0x1e0) = 0;

+  this[0x1ec] = (TabTipAdapter)0x0;

+  *(undefined4 *)(this + 0x1f0) = 0;

+  *(undefined2 *)(this + 500) = 0;

+  *(undefined4 *)(this + 0x1f8) = 0;

+  local_58 = (_Container_base12 *)(this + 0x200);

+  *(undefined8 *)local_58 = 0;

+  *(undefined8 *)(this + 0x208) = 0;

+  *(undefined8 *)(this + 0x210) = 0;

+  *(undefined8 *)(this + 0x218) = 0;

+  *(undefined8 *)(this + 0x220) = 0;

+  std::_Container_base12::_Alloc_proxy<std::allocator<std::_Container_proxy>_>

+            (local_58,(allocator<std::_Container_proxy> *)param_1);

+  IVar8 = 0;

+  *(undefined8 *)(this + 0x228) = 0;

+  *(undefined8 *)(this + 0x230) = 0;

+  *(undefined8 *)(this + 0x238) = 0;

+  *(undefined4 *)(this + 0x240) = 0;

+  *(undefined8 *)(this + 0x248) = 0;

+  *(undefined8 *)(this + 0x250) = 0;

+  *(undefined8 *)(this + 600) = 0;

+  *(undefined8 *)(this + 0x260) = 0;

+  *(undefined8 *)(this + 0x268) = 0;

+  *(undefined4 *)(this + 0x270) = 0;

+  if (local_68 == (IInputExperienceHost *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_FailFast_Unexpected

+              (unaff_retaddr,0x17c,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp");

+  }

+  if (param_2 == (IShellKeyboardHostingPolicy *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_FailFast_Unexpected

+              (unaff_retaddr,0x17d,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp");

+  }

+  if (param_3 == (IDesktopKeyboardHostingPolicy *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_FailFast_Unexpected

+              (unaff_retaddr,0x17e,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp");

+  }

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(this_03);

+  iVar4 = CoreUICreate(this_03);

+  if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x180,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+  }

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(this_02);

+  iVar4 = CoreUIFactoryCreate(this_02);

+  if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x181,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+  }

+  lVar5 = SharedMessagePortRefPtr::Initialize((SharedMessagePortRefPtr *)(this + 0x90),IVar8);

+  if (lVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x182,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",lVar5);

+  }

+  local_70 = (longlong *)0x0;

+  puVar7 = (undefined8 *)

+           Windows::Internal::StringReference::StringReference<50>

+                     ((StringReference *)&local_50,

+                      (ushort *)L"Windows.UI.Internal.Text.Core.CoreKeyboardManager");

+  uVar1 = *puVar7;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_70);

+  iVar4 = RoGetActivationFactory(uVar1,&_GUID_4781e102_173f_40ee_b985_685f98a866aa,&local_70);

+  plVar3 = local_70;

+  if (-1 < iVar4) {

+    pcVar2 = *(code **)(*local_70 + 0x30);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(this_00);

+    iVar4 = (*pcVar2)(plVar3,this_00);

+    if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x189,

+                 "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+    }

+    plVar3 = *(longlong **)this_00;

+    pcVar2 = *(code **)(*plVar3 + 0x2b8);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(this_01);

+    iVar4 = (*pcVar2)(plVar3,this_01);

+    if (-1 < iVar4) {

+      local_78 = (longlong *)0x0;

+      iVar4 = WindowsCreateStringReference

+                        (L"Windows.UI.Internal.Text.Core.CoreInputViewManager",0x32,local_48,

+                         &local_50);

+      if (iVar4 < 0) {

+        RaiseException(0xc000000d,1,0,(ULONG_PTR *)0x0);

+      }

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_78);

+      iVar4 = RoGetActivationFactory(local_50,&_GUID_6fa49ca9_046b_4d5c_b942_7dbc066f6579,&local_78)

+      ;

+      plVar3 = local_78;

+      if (-1 < iVar4) {

+        pcVar2 = *(code **)(*local_78 + 0x30);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x30));

+        iVar4 = (*pcVar2)(plVar3,this + 0x30);

+        if (-1 < iVar4) {

+          uVar6 = SHTaskPoolGetUniqueContext();

+          *(undefined4 *)(this + 0x240) = uVar6;

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_78);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_70);

+          return this;

+        }

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x191,

+                   "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+      }

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,400,

+                 "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+    }

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x18a,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_Throw_Hr

+            (unaff_retaddr,0x188,

+             "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+}

+
```

## `CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock`  (modified)

```diff
--- CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock
+++ CGITRegistrationList::~CGITRegistrationList
@@ -1,12 +1,30 @@
 

-/* public: __cdecl CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock(void) __ptr64 */

+/* public: __cdecl CGITRegistrationList::~CGITRegistrationList(void) __ptr64 */

 

-void __thiscall CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock(CAutoSRWExclusiveLock *this)

+void __thiscall CGITRegistrationList::~CGITRegistrationList(CGITRegistrationList *this)

 

 {

-  if (*(PSRWLOCK *)this != (PSRWLOCK)0x0) {

-    ReleaseSRWLockExclusive(*(PSRWLOCK *)this);

+  CGITRegistrationList *pCVar1;

+  ulonglong uVar2;

+  

+  pCVar1 = this + 0x18;

+  if (*(longlong *)(this + 0x10) != 0) {

+    uVar2 = 0;

+    if (*(ulonglong *)pCVar1 != 0) {

+      do {

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)

+                   (*(longlong *)(this + 0x10) + uVar2 * 8));

+        uVar2 = uVar2 + 1;

+      } while (uVar2 < *(ulonglong *)pCVar1);

+    }

+    CoTaskMemFree(*(LPVOID *)(this + 0x10));

+    *(undefined8 *)(this + 0x10) = 0;

   }

+  *(ulonglong *)pCVar1 = 0;

+  *(undefined8 *)(this + 0x28) = 0;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)this);

   return;

 }
```

## `winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::EnterGamingPostureAsync$_ResumeCoro$1`  (modified)

```diff
--- winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::EnterGamingPostureAsync$_ResumeCoro$1
+++ winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::EnterGamingPostureAsync$_ResumeCoro$1
@@ -1,2 +1,201 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::EnterGamingPostureAsync$_ResumeCoro$1 : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::

+     EnterGamingPostureAsync__ResumeCoro_1(longlong param_1)

+

+{

+  undefined2 *puVar1;

+  ActivityBase<ControlCenterLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType> *this;

+  ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+  *pAVar2;

+  undefined4 uVar3;

+  GamingPostureController *pGVar4;

+  code *pcVar5;

+  bool bVar6;

+  undefined8 uVar7;

+  IAsyncAction *pIVar8;

+  IArrangedWindowResizeStartedEventArgs *this_00;

+  long lVar9;

+  longlong lVar10;

+  void *unaff_retaddr;

+  

+  puVar1 = (undefined2 *)(param_1 + 8);

+  lVar9 = -0x80000000;

+  switch(*puVar1) {

+  default:

+    pcVar5 = (code *)swi(3);

+    (*pcVar5)();

+    return;

+  case 1:

+    break;

+  case 2:

+    *(undefined1 *)(param_1 + 0xc) = 1;

+    this = (ActivityBase<ControlCenterLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType> *)

+           (param_1 + 0x10);

+    GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::Start<bool>((bool *)this);

+    pGVar4 = *(GamingPostureController **)(param_1 + 0x471);

+    if (pGVar4[0x70] == (GamingPostureController)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xc2,

+                 "pcshell\\twinui\\gamingposture\\lib\\gamingposturecontroller.cpp",-0x7ff8ffeb);

+    }

+    bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_52580392>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_52580392> *)

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

+                        ::__l2::impl);

+    if (bVar6) {

+      wil::ActivityBase<ControlCenterLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

+      IgnoreCurrentThread(this);

+    }

+    bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_57721926>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_57721926> *)

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

+                        ::__l2::impl);

+    if (!bVar6) {

+      uVar7 = hstring::hstring((hstring *)(param_1 + 0x2e0),(hstring *)(param_1 + 0x481));

+      uVar3 = *(undefined4 *)(param_1 + 0x479);

+      pAVar2 = (ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+                *)(param_1 + 0x2e8);

+      wil::

+      ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+      ::

+      ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+                (pAVar2,(ActivityBase<class_GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,struct__TlgReflectorTag_Param0IsProviderType>

+                         *)this);

+      *(undefined ***)pAVar2 =

+           &GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::_vftable_;

+      pIVar8 = (IAsyncAction *)

+               SetGamingPostureStateAsync(pGVar4,param_1 + 0x438,1,pAVar2,uVar3,uVar7,0);

+      pIVar8 = winrt::impl::

+               promise_base<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::ValueSet>,GamingOverlayExperienceManager*___ptr64,winrt::hstring,winrt::Windows::Foundation::Collections::IMap<winrt::hstring,winrt::hstring>_>::promise_type,winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::ValueSet>,void>

+               ::await_transform<winrt::Windows::Foundation::IAsyncAction>

+                         ((promise_base<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::ValueSet>,GamingOverlayExperienceManager*___ptr64,winrt::hstring,winrt::Windows::Foundation::Collections::IMap<winrt::hstring,winrt::hstring>_>::promise_type,winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::ValueSet>,void>

+                           *)(param_1 + -0x70),pIVar8);

+      *(undefined8 *)(param_1 + 0x440) = 0;

+      *(IAsyncAction **)(param_1 + 0x448) = pIVar8;

+      *(undefined8 *)(param_1 + 0x450) = 0;

+      *(undefined1 *)(param_1 + 0x458) = 1;

+      *puVar1 = 6;

+      lVar10 = param_1;

+      bVar6 = winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncAction,1>::

+              await_suspend<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncAction,winrt::Windows::Internal::Shell::implementation::DashboardManager*___ptr64>::promise_type>

+                        ();

+      lVar9 = (long)lVar10;

+      if (bVar6) {

+        return;

+      }

+      goto LAB_0;

+    }

+    uVar7 = hstring::hstring((hstring *)(param_1 + 0x160),(hstring *)(param_1 + 0x481));

+    uVar3 = *(undefined4 *)(param_1 + 0x479);

+    pAVar2 = (ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+              *)(param_1 + 0x168);

+    wil::

+    ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+    ::

+    ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+              (pAVar2,(ActivityBase<class_GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,struct__TlgReflectorTag_Param0IsProviderType>

+                       *)this);

+    *(undefined ***)pAVar2 =

+         &GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::_vftable_;

+    pIVar8 = (IAsyncAction *)

+             SetGamingPostureStateAsync(pGVar4,param_1 + 0x2b8,1,pAVar2,uVar3,uVar7,1);

+    pIVar8 = winrt::impl::

+             promise_base<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::ValueSet>,GamingOverlayExperienceManager*___ptr64,winrt::hstring,winrt::Windows::Foundation::Collections::IMap<winrt::hstring,winrt::hstring>_>::promise_type,winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::ValueSet>,void>

+             ::await_transform<winrt::Windows::Foundation::IAsyncAction>

+                       ((promise_base<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::ValueSet>,GamingOverlayExperienceManager*___ptr64,winrt::hstring,winrt::Windows::Foundation::Collections::IMap<winrt::hstring,winrt::hstring>_>::promise_type,winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::ValueSet>,void>

+                         *)(param_1 + -0x70),pIVar8);

+    *(undefined8 *)(param_1 + 0x2c0) = 0;

+    *(IAsyncAction **)(param_1 + 0x2c8) = pIVar8;

+    *(undefined8 *)(param_1 + 0x2d0) = 0;

+    *(undefined1 *)(param_1 + 0x2d8) = 1;

+    *puVar1 = 4;

+    lVar10 = param_1;

+    bVar6 = winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncAction,1>::

+            await_suspend<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncAction,winrt::Windows::Internal::Shell::implementation::DashboardManager*___ptr64>::promise_type>

+                      ();

+    lVar9 = (long)lVar10;

+    if (bVar6) {

+      return;

+    }

+    goto LAB_1;

+  case 3:

+    break;

+  case 4:

+LAB_1:

+    winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncAction,1>::await_resume

+              ((await_adapter<winrt::Windows::Foundation::IAsyncAction,1> *)(param_1 + 0x2c0));

+    cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+    ::

+    ~cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+              ((cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+                *)(param_1 + 0x2c0));

+    this_00 = (IArrangedWindowResizeStartedEventArgs *)(param_1 + 0x2b8);

+LAB_2:

+    Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs(this_00);

+    wil::

+    ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+    ::Stop((ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+            *)(param_1 + 0x10),lVar9);

+    GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::

+    ~SetGamingPostureStateActivity((SetGamingPostureStateActivity *)(param_1 + 0x10));

+    *(longlong *)(param_1 + 0x460) = param_1 + -0x70;

+    *puVar1 = 0;

+    bVar6 = winrt::impl::

+            promise_base<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Internal::Shell::MeetAndChatFallbackProp>_>,winrt::Windows::Internal::Shell::implementation::MeetAndChatIris*___ptr64,winrt::Windows::Internal::Shell::MeetAndChatFallbackContent&___ptr64>::promise_type,winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Internal::Shell::MeetAndChatFallbackProp>_>,void>

+            ::final_suspend_awaiter::await_suspend();

+    if (bVar6) {

+      return;

+    }

+    break;

+  case 5:

+    cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+    ::

+    ~cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+              ((cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+                *)(param_1 + 0x2c0));

+    Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs

+              ((IArrangedWindowResizeStartedEventArgs *)(param_1 + 0x2b8));

+    GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::

+    ~SetGamingPostureStateActivity((SetGamingPostureStateActivity *)(param_1 + 0x10));

+    break;

+  case 6:

+LAB_0:

+    winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncAction,1>::await_resume

+              ((await_adapter<winrt::Windows::Foundation::IAsyncAction,1> *)(param_1 + 0x440));

+    cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+    ::

+    ~cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+              ((cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+                *)(param_1 + 0x440));

+    this_00 = (IArrangedWindowResizeStartedEventArgs *)(param_1 + 0x438);

+    goto LAB_2;

+  case 7:

+    cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+    ::

+    ~cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+              ((cancellable_awaiter<winrt::impl::await_adapter<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::IReference<bool>_>,1>_>

+                *)(param_1 + 0x440));

+    Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs

+              ((IArrangedWindowResizeStartedEventArgs *)(param_1 + 0x438));

+    GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::

+    ~SetGamingPostureStateActivity((SetGamingPostureStateActivity *)(param_1 + 0x10));

+    break;

+  case 0xffff:

+  }

+  winrt::impl::

+  promise_base<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncAction,winrt::Windows::Internal::Shell::implementation::WindowsTracker*___ptr64>::promise_type,winrt::Windows::Foundation::IAsyncAction,void>

+  ::

+  ~promise_base<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncAction,winrt::Windows::Internal::Shell::implementation::WindowsTracker*___ptr64>::promise_type,winrt::Windows::Foundation::IAsyncAction,void>

+            ((promise_base<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncAction,winrt::Windows::Internal::Shell::implementation::WindowsTracker*___ptr64>::promise_type,winrt::Windows::Foundation::IAsyncAction,void>

+              *)(param_1 + -0x70));

+  hstring::~hstring((hstring *)(param_1 + 0x481));

+  if (*(short *)(param_1 + 10) != 0) {

+    operator_delete__((void *)(param_1 + -0x70));

+  }

+  return;

+}

+
```

## `_tip_CallDashboardExtensionTIP::serialize<tson::input_archive>`  (modified)

```diff
--- _tip_CallDashboardExtensionTIP::serialize<tson::input_archive>
+++ _tip_CallDashboardExtensionTIP::serialize<tson::input_archive>
@@ -1,2 +1,93 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB _tip_CallDashboardExtensionTIP::serialize<tson::input_archive> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl _tip_CallDashboardExtensionTIP::serialize<class tson::input_archive>(class

+   tson::input_archive & __ptr64) __ptr64 */

+

+void __thiscall

+_tip_CallDashboardExtensionTIP::serialize<tson::input_archive>

+          (_tip_CallDashboardExtensionTIP *this,input_archive *param_1)

+

+{

+  bool bVar1;

+  char *local_d8;

+  undefined1 local_d0;

+  _tip_CallDashboardExtensionTIP *local_c8;

+  char *local_c0;

+  undefined1 local_b8;

+  _tip_CallDashboardExtensionTIP *local_b0;

+  char *local_a8;

+  undefined1 local_a0;

+  _tip_CallDashboardExtensionTIP *local_98;

+  char *local_90;

+  undefined1 local_88;

+  _tip_CallDashboardExtensionTIP *local_80;

+  char *local_78;

+  undefined1 local_70;

+  _tip_CallDashboardExtensionTIP *local_68;

+  char *local_60;

+  undefined1 local_58;

+  _tip_CallDashboardExtensionTIP *local_50;

+  char *local_48;

+  undefined1 local_40;

+  _tip_CallDashboardExtensionTIP *local_38;

+  

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60880818> *)

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

+                      ::__l2::impl);

+  local_a0 = 0x10;

+  local_98 = this + 0x12;

+  if (bVar1) {

+    local_58 = 0xb;

+    local_60 = "extensionId";

+    local_50 = this + 0x58;

+    local_40 = 0xc;

+    local_d0 = 2;

+    local_48 = "scenarioName";

+    local_38 = this + 0x38;

+    local_b8 = 0xf;

+    local_d8 = "hr";

+    local_c0 = "packageFullName";

+    local_a8 = "isCallSuccessful";

+    local_90 = "isDashboardExtensionPresent";

+    local_78 = "isDashboardExtensionNull";

+    local_88 = 0x1b;

+    local_70 = 0x18;

+    local_c8 = this + 0x14;

+    local_b0 = this + 0x18;

+    local_80 = this + 0x11;

+    local_68 = this + 0x10;

+    tson::input_archive::

+    process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>,tson::nvp<long&___ptr64>,tson::nvp<class_std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>&___ptr64>,tson::nvp<class_std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>&___ptr64>_>

+              (param_1,(nvp<bool&___ptr64> *)&local_78,(nvp<bool&___ptr64> *)&local_90,

+               (nvp<bool&___ptr64> *)&local_a8,

+               (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+                *)&local_c0,(nvp<long&___ptr64> *)&local_d8,

+               (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+                *)&local_48,

+               (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+                *)&local_60);

+  }

+  else {

+    local_70 = 2;

+    local_78 = "hr";

+    local_90 = "packageFullName";

+    local_88 = 0xf;

+    local_a8 = "isCallSuccessful";

+    local_c0 = "isDashboardExtensionPresent";

+    local_b8 = 0x1b;

+    local_d8 = "isDashboardExtensionNull";

+    local_d0 = 0x18;

+    local_c8 = this + 0x10;

+    local_b0 = this + 0x11;

+    local_80 = this + 0x18;

+    local_68 = this + 0x14;

+    tson::input_archive::

+    process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>,tson::nvp<long&___ptr64>_>

+              (param_1,(nvp<bool&___ptr64> *)&local_d8,(nvp<bool&___ptr64> *)&local_c0,

+               (nvp<bool&___ptr64> *)&local_a8,

+               (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+                *)&local_90,(nvp<long&___ptr64> *)&local_78);

+  }

+  return;

+}

+
```

## `TouchKeyboardExperienceManager::ApplyRequestedRect`  (modified)

```diff
--- TouchKeyboardExperienceManager::ApplyRequestedRect
+++ TouchKeyboardExperienceManager::ApplyRequestedRect
@@ -1,2 +1,243 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TouchKeyboardExperienceManager::ApplyRequestedRect : 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 TouchKeyboardExperienceManager::ApplyRequestedRect(struct KBViewInfo *

+   __ptr64,struct tagRECT const * __ptr64) __ptr64 */

+

+long __thiscall

+TouchKeyboardExperienceManager::ApplyRequestedRect

+          (TouchKeyboardExperienceManager *this,KBViewInfo *param_1,tagRECT *param_2)

+

+{

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

+  *this_00;

+  code *pcVar1;

+  undefined1 (*pauVar2) [16];

+  undefined8 uVar3;

+  TouchKeyboardExperienceTelemetryLogger *hrgnDst;

+  bool bVar4;

+  int iVar5;

+  long lVar6;

+  HRGN pHVar7;

+  tagRECT *ptVar8;

+  TouchKeyboardExperienceManager *this_01;

+  TouchKeyboardExperienceTelemetryLogger *this_02;

+  uint uVar9;

+  TouchKeyboardExperienceTelemetryLogger *pTVar10;

+  undefined1 (*pauVar11) [16];

+  void *unaff_retaddr;

+  undefined1 auStack_b8 [32];

+  TouchKeyboardExperienceTelemetryLogger *local_98;

+  IApplicationFrame *local_90;

+  HRGN local_88;

+  LONG LStack_80;

+  LONG LStack_7c;

+  HWND local_78;

+  undefined1 local_70 [24];

+  Rect local_58 [16];

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStack_b8;

+  local_90 = (IApplicationFrame *)0x0;

+  this_01 = *(TouchKeyboardExperienceManager **)(param_1 + 8);

+  pcVar1 = *(code **)(*(longlong *)this_01 + 0x20);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_90);

+  iVar5 = (*pcVar1)(this_01,&local_90);

+  if (iVar5 < 0) {

+    uVar9 = 0x105e;

+  }

+  else {

+    iVar5 = SetHostedPos(this_01,*(IApplicationFrameWrapper **)(param_1 + 8),local_90,param_2);

+    if (iVar5 < 0) {

+      uVar9 = 0x1066;

+    }

+    else {

+      iVar5 = (**(code **)(**(longlong **)(param_1 + 0x10) + 0x20))

+                        (*(longlong **)(param_1 + 0x10),0);

+      if (iVar5 < 0) {

+        uVar9 = 0x1069;

+      }

+      else {

+        iVar5 = (**(code **)(**(longlong **)(param_1 + 0x10) + 0x50))();

+        if (iVar5 < 0) {

+          uVar9 = 0x106a;

+        }

+        else {

+          local_78 = (HWND)0x0;

+          iVar5 = (**(code **)(*(longlong *)local_90 + 0x18))(local_90,&local_78);

+          if (-1 < iVar5) {

+            local_98 = (TouchKeyboardExperienceTelemetryLogger *)0x0;

+            if (*(longlong *)(param_1 + 0xc0) - *(longlong *)(param_1 + 0xb8) >> 4 == 0) {

+              iVar5 = SetWindowRgn(local_78,(HRGN)0x0,1);

+              if (iVar5 == 0) {

+                wil::details::in1diag3::_Log_Hr

+                          (unaff_retaddr,0x1090,

+                           "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\touchkeyboardexperiencemanager.cpp"

+                           ,-0x7fff0001);

+              }

+            }

+            else {

+              pHVar7 = CreateRectRgn(0,0,0,0);

+              wil::details::

+              unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+              ::reset((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                       *)&local_98,pHVar7);

+              hrgnDst = local_98;

+              pauVar2 = *(undefined1 (**) [16])(param_1 + 0xc0);

+              for (pauVar11 = *(undefined1 (**) [16])(param_1 + 0xb8); pauVar11 != pauVar2;

+                  pauVar11 = pauVar11 + 1) {

+                local_58 = *(Rect (*) [16])pauVar11;

+                local_88 = (HRGN)0x0;

+                pHVar7 = CreateRectRgn((int)local_58._0_4_,(int)local_58._4_4_,

+                                       (int)(local_58._8_4_ + local_58._0_4_),

+                                       (int)(local_58._12_4_ + local_58._4_4_));

+                wil::details::

+                unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                ::reset((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                         *)&local_88,pHVar7);

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

+                  iVar5 = -0x7ff8fffa;

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,0x107e,

+                             "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\touchkeyboardexperiencemanager.cpp"

+                             ,-0x7ff8fffa);

+                  wil::details::

+                  unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                  ::

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

+                            ((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                              *)&local_88);

+                  goto LAB_0;

+                }

+                this_02 = hrgnDst;

+                pTVar10 = hrgnDst;

+                iVar5 = CombineRgn((HRGN)hrgnDst,(HRGN)hrgnDst,local_88,2);

+                if (iVar5 == 0) {

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,0x107f,

+                             "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\touchkeyboardexperiencemanager.cpp"

+                             ,-0x7fff0001);

+                  wil::details::

+                  unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                  ::

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

+                            ((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                              *)&local_88);

+                  wil::details::

+                  unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                  ::

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

+                            ((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                              *)&local_98);

+                  iVar5 = -0x7fff0001;

+                  goto LAB_1;

+                }

+                bVar4 = TouchKeyboardExperienceTelemetryLogger::IsEnabled

+                                  ((uchar)this_02,(__uint64)pTVar10);

+                if (bVar4) {

+                  TouchKeyboardExperienceTelemetryLogger::Instance();

+                  TouchKeyboardExperienceTelemetryLogger::SetVisibleViewRect_(this_02,local_58);

+                }

+                wil::details::

+                unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                ::

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

+                          ((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                            *)&local_88);

+              }

+              iVar5 = SetWindowRgn(local_78,(HRGN)hrgnDst,1);

+              if (iVar5 == 0) {

+                wil::details::in1diag3::_Log_Hr

+                          (unaff_retaddr,0x1083,

+                           "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\touchkeyboardexperiencemanager.cpp"

+                           ,-0x7fff0001);

+              }

+              this_00 = (unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>_>

+                         *)(this + 0x278);

+              local_88 = *(HRGN *)this_00;

+              *(undefined8 *)this_00 = 0;

+              wil::

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

+              ::operator=(this_00,(unique_any_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),struct_wistd::integral_constant<unsigned___int64,0>,struct_HRGN__*___ptr64,struct_HRGN__*___ptr64,0,std::nullptr_t>_>_>

+                                   *)&local_98);

+              wil::

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

+              ::operator=((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>_>

+                           *)&local_98,

+                          (unique_any_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),struct_wistd::integral_constant<unsigned___int64,0>,struct_HRGN__*___ptr64,struct_HRGN__*___ptr64,0,std::nullptr_t>_>_>

+                           *)&local_88);

+              wil::details::

+              unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+              ::

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

+                        ((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                          *)&local_88);

+            }

+            lVar6 = UpdateBorderStyle(this,local_78,param_1);

+            if (lVar6 < 0) {

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0x1093,

+                         "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\touchkeyboardexperiencemanager.cpp"

+                         ,lVar6);

+            }

+            uVar3 = *(undefined8 *)&param_2->right;

+            *(undefined8 *)(param_1 + 0x78) = *(undefined8 *)param_2;

+            *(undefined8 *)(param_1 + 0x80) = uVar3;

+            local_58 = *(Rect (*) [16])(param_1 + 0xa8);

+            local_88 = *(HRGN *)param_2;

+            LStack_80 = param_2->right;

+            LStack_7c = param_2->bottom;

+            ptVar8 = KeyboardHosting::ViewRectHelper::GetOccludingRectInGlobalCoordinates

+                               (local_70,&local_88,local_58);

+            uVar3 = *(undefined8 *)&ptVar8->right;

+            *(undefined8 *)(param_1 + 0x88) = *(undefined8 *)ptVar8;

+            *(undefined8 *)(param_1 + 0x90) = uVar3;

+            iVar5 = (**(code **)(**(longlong **)param_1 + 0x158))(*(longlong **)param_1,4);

+            if (iVar5 < 0) {

+              uVar9 = 0x1099;

+            }

+            else {

+              KBViewInfo::BoostPriority(param_1);

+              iVar5 = (**(code **)(**(longlong **)(param_1 + 8) + 0x70))();

+              if (-1 < iVar5) {

+                wil::details::

+                unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                ::

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

+                          ((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                            *)&local_98);

+                iVar5 = 0;

+                goto LAB_1;

+              }

+              uVar9 = 0x10a0;

+            }

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,uVar9,

+                       "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\touchkeyboardexperiencemanager.cpp"

+                       ,iVar5);

+LAB_0:

+            wil::details::

+            unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+            ::

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

+                      ((unique_storage<wil::details::resource_policy<HRGN__*___ptr64,int_(__cdecl*)(void*___ptr64),&int___cdecl_DeleteObject(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,HRGN__*___ptr64,HRGN__*___ptr64,0,std::nullptr_t>_>

+                        *)&local_98);

+            goto LAB_1;

+          }

+          uVar9 = 0x106c;

+        }

+      }

+    }

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar9,

+             "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\touchkeyboardexperiencemanager.cpp"

+             ,iVar5);

+LAB_1:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_90);

+  return iVar5;

+}

+
```

## `GamingOverlayExperienceManager::SetAllowPointerActivation`  (modified)

```diff
--- GamingOverlayExperienceManager::SetAllowPointerActivation
+++ GamingOverlayExperienceManager::SetAllowPointerActivation
@@ -1,50 +1,46 @@
 

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

+/* public: virtual long __cdecl GamingOverlayExperienceManager::SetAllowPointerActivation(unsigned

+   char) __ptr64 */

 

 long __thiscall

-Microsoft::WRL::

-RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CServiceHostComponentWithGITSite,Microsoft::WRL::FtmBase>

-::SetAllowPointerActivation(GamingOverlayExperienceManager *this,uchar param_1)

+GamingOverlayExperienceManager::SetAllowPointerActivation

+          (GamingOverlayExperienceManager *this,uchar param_1)

 

 {

   long lVar1;

-  longlong unaff_RBX;

-  int unaff_ESI;

-  int unaff_EDI;

-  int unaff_R14D;

-  float fStackX_20;

-  float fStackX_24;

-  float fStack0000000000000028;

-  void *in_stack_00000048;

+  void *unaff_retaddr;

+  undefined1 auStack_38 [32];

+  PRTL_CRITICAL_SECTION_DEBUG local_18;

+  ulonglong local_10;

   

-  fStack0000000000000028 = (float)(unaff_EDI - unaff_ESI);

-  fStackX_24 = (float)unaff_ESI;

-  fStackX_20 = (float)unaff_R14D;

-  winrt::Windows::Internal::GamingOverlay::implementation::GameBarWindowControlImpl::Bounds

-            ((GameBarWindowControlImpl *)this,(Rect *)&fStackX_20);

-  lVar1 = GamingOverlayExperienceManager::UpdateOverlayDisplayModeFullscreen

-                    ((GamingOverlayExperienceManager *)(unaff_RBX + -0x88),false);

-  if (lVar1 < 0) {

+  local_10 = __security_cookie ^ (ulonglong)auStack_38;

+  local_18 = (PRTL_CRITICAL_SECTION_DEBUG)0x0;

+  wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)&stack0xffffffffffffffe8);

+  if (*(GameBarWindowControlImpl **)(this + 0x150) == (GameBarWindowControlImpl *)0x0) {

+    lVar1 = -0x7fffbffd;

     wil::details::in1diag3::Return_Hr

-              (in_stack_00000048,0x17c,

+              (unaff_retaddr,0x20f,

                "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-               ,lVar1);

+               ,-0x7fffbffd);

     wil::details::

     unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

     ::

     ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

               ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                *)&stack0x00000030);

+                *)&stack0xffffffffffffffe8);

   }

   else {

+    winrt::Windows::Internal::GamingOverlay::implementation::GameBarWindowControlImpl::

+    AllowPointerActivation(*(GameBarWindowControlImpl **)(this + 0x150),param_1 != '\0');

     wil::details::

     unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

     ::

     ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

               ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                *)&stack0x00000030);

+                *)&stack0xffffffffffffffe8);

     lVar1 = 0;

   }

   return lVar1;

 }
```

## `winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_SplashScreen`  (modified)

```diff
--- winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_SplashScreen
+++ winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_SplashScreen
@@ -1,2 +1,42 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_SplashScreen : 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 int __cdecl winrt::impl::produce<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>::get_SplashScreen(void *

+   __ptr64 * __ptr64) __ptr64 */

+

+int __thiscall

+winrt::impl::

+produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+::get_SplashScreen(produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+                   *this,void **param_1)

+

+{

+  longlong *plVar1;

+  produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+  *ppVar2;

+  abi_guard local_res8 [8];

+  

+  *param_1 = (void *)0x0;

+  root_implements<winrt::Windows::Internal::Shell::XamlExplorerHost::implementation::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK2,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK3,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK4,winrt::Windows::Foundation::IClosable,winrt::non_agile>

+  ::abi_guard::abi_guard

+            (local_res8,

+             (XamlExplorerHostChildWindow_WASDK *)

+             (-(ulonglong)

+               (this != (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+                         *)0x0) & (ulonglong)(this + -0x20)));

+  ppVar2 = this + 0x60;

+  if (this == (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+               *)0x0) {

+    ppVar2 = (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs>

+              *)&DAT_0;

+  }

+  plVar1 = *(longlong **)ppVar2;

+  if (plVar1 != (longlong *)0x0) {

+    (**(code **)(*plVar1 + 8))(plVar1);

+  }

+  *param_1 = plVar1;

+  return 0;

+}

+
```

## `TwinUI::Cortana::CCortanaWNFService::UpdateFromCurrentWNFState`  (modified)

```diff
--- TwinUI::Cortana::CCortanaWNFService::UpdateFromCurrentWNFState
+++ TwinUI::Cortana::CCortanaWNFService::UpdateFromCurrentWNFState
@@ -1,2 +1,59 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TwinUI::Cortana::CCortanaWNFService::UpdateFromCurrentWNFState : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: long __cdecl TwinUI::Cortana::CCortanaWNFService::UpdateFromCurrentWNFState(bool)

+   __ptr64 */

+

+long __thiscall

+TwinUI::Cortana::CCortanaWNFService::UpdateFromCurrentWNFState

+          (CCortanaWNFService *this,bool param_1)

+

+{

+  bool bVar1;

+  long lVar2;

+  uint uVar3;

+  void *unaff_retaddr;

+  undefined4 local_res18 [4];

+  

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (!bVar1) {

+    local_res18[0] = 0;

+    lVar2 = RtlQueryWnfStateData(local_res18,0xf850339a3bc0835,ShellModeWNFCallback,this,0);

+    if (lVar2 < 0) {

+      uVar3 = 0xaa;

+      goto LAB_0;

+    }

+  }

+  if (param_1) {

+    return 0;

+  }

+  local_res18[0] = 0;

+  lVar2 = RtlQueryWnfStateData(local_res18,0xd83063ea3bc5835,LockScreenActiveWNFCallback,this,0);

+  if (lVar2 < 0) {

+    uVar3 = 0xb5;

+  }

+  else {

+    local_res18[0] = 0;

+    lVar2 = RtlQueryWnfStateData(local_res18,0xd83063ea3bd9835,AboveLockAppActiveWNFCallback,this,0)

+    ;

+    if (lVar2 < 0) {

+      uVar3 = 0xbd;

+    }

+    else {

+      local_res18[0] = 0;

+      lVar2 = RtlQueryWnfStateData

+                        (local_res18,0xd83063ea3bda835,WindowsHelloActiveWNFCallback,this,0);

+      if (-1 < lVar2) {

+        return 0;

+      }

+      uVar3 = 0xc5;

+    }

+  }

+LAB_0:

+  lVar2 = wil::details::in1diag3::Return_NtStatus

+                    (unaff_retaddr,uVar3,

+                     "pcshell\\twinui\\experiencemanagers\\lib\\cortanawnfservice.cpp",lVar2);

+  return lVar2;

+}

+
```

## `XamlLauncherState::OnStartFailedToGetForegroundImpl`  (modified)

```diff
--- XamlLauncherState::OnStartFailedToGetForegroundImpl
+++ XamlLauncherState::OnStartFailedToGetForegroundImpl
@@ -1,2 +1,120 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB XamlLauncherState::OnStartFailedToGetForegroundImpl : 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 XamlLauncherState::OnStartFailedToGetForegroundImpl(void) __ptr64 */

+

+long __thiscall XamlLauncherState::OnStartFailedToGetForegroundImpl(XamlLauncherState *this)

+

+{

+  XamlLauncherState *pXVar1;

+  tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+  *this_00;

+  bool bVar2;

+  int iVar3;

+  longlong *plVar4;

+  HWND pHVar5;

+  void *unaff_retaddr;

+  undefined1 auStack_1b8 [32];

+  longlong local_198;

+  InternalState local_190;

+  undefined4 local_18c;

+  XamlLauncherState *local_188;

+  undefined1 local_180;

+  undefined4 local_174;

+  LauncherInvokeActivity local_168 [336];

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_1b8;

+  StartWindowTelemetry::StartBlockedBySetForegroundFailure();

+  pXVar1 = this + 0x40;

+  local_190 = *(InternalState *)pXVar1;

+  local_18c = local_174;

+  local_180 = 1;

+  local_188 = this;

+  if (local_190 == 0xf) {

+    bVar2 = wil::details::

+            FeatureImpl<__WilFeatureTraits_Feature_IgnoreFastForegroundLostInvokeAbort>::

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_IgnoreFastForegroundLostInvokeAbort>

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

+                                    ::__l2::impl);

+    if (bVar2) {

+      tip2::tip_test<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

+      ::operator->((tip_test<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

+                    *)(this + 0x3e0));

+      *(undefined1 *)(local_198 + 0x112) = 1;

+      plVar4 = (longlong *)std::chrono::steady_clock::now();

+      *(longlong *)(local_198 + 0x118) = (*plVar4 - *(longlong *)(this + 0x3d8)) / 1000000;

+      pHVar5 = GetForegroundWindow();

+      *(HWND *)(local_198 + 0x120) = pHVar5;

+    }

+    else {

+      plVar4 = (longlong *)

+               tip2::

+               tip_test<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

+               ::operator->((tip_test<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

+                             *)(this + 0x3e0));

+      *(undefined1 *)(*plVar4 + 0x112) = 1;

+    }

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

+              ((test_data_control<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

+                *)&local_198);

+    this_00 = (tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+               *)(this + 1000);

+    bVar2 = tip2::

+            tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+            ::operator_bool(this_00);

+    if (bVar2) {

+      plVar4 = (longlong *)

+               tip2::

+               tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+               ::operator->(this_00);

+      *(undefined1 *)(*plVar4 + 0x122) = 1;

+      tip2::

+      test_data_control<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+                ((test_data_control<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+                  *)&local_198);

+      tip2::

+      tip_test<tip2::details::merged_data<_tip_InboxedAppInstallerTest,_tip_InboxedAppInstallerTest>_>

+      ::complete((tip_test<tip2::details::merged_data<_tip_InboxedAppInstallerTest,_tip_InboxedAppInstallerTest>_>

+                  *)this_00);

+    }

+    CommonStartTelemetry::LauncherInvokeActivity::TransferToCurrentThread

+              ((LauncherInvokeActivity *)(this + 0x138));

+    CommonStartTelemetry::LauncherInvokeActivity::LauncherCancelledDueToForeground(local_168);

+    CompleteStartShowTelemetry(this,0,local_168);

+    *(InternalState *)pXVar1 = 0;

+    iVar3 = (**(code **)(**(longlong **)(this + 0x50) + 0x40))(*(longlong **)(this + 0x50),7);

+    if (iVar3 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x87c,"pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",

+                 iVar3);

+      CommonStartTelemetry::LauncherInvokeActivity::~LauncherInvokeActivity(local_168);

+      goto LAB_0;

+    }

+    CommonStartTelemetry::LauncherInvokeActivity::~LauncherInvokeActivity(local_168);

+  }

+  else if (local_190 == 0x10) {

+    *(InternalState *)pXVar1 = 0x11;

+    iVar3 = (**(code **)(**(longlong **)(this + 0x50) + 0x40))(*(longlong **)(this + 0x50),7);

+    if (iVar3 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x883,"pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",

+                 iVar3);

+      goto LAB_0;

+    }

+  }

+  iVar3 = 0;

+LAB_0:

+  local_180 = 0;

+  StartWindowTelemetry::

+  OnStartFailedToGetForeground<XamlLauncherState::InternalState_const&___ptr64,XamlLauncherState::InternalState&___ptr64>

+            (&local_190,(InternalState *)pXVar1);

+  return iVar3;

+}

+
```

## `TwinUI::Cortana::CCortanaWNFService::ShellModeWNFCallback`  (modified)

```diff
--- TwinUI::Cortana::CCortanaWNFService::ShellModeWNFCallback
+++ TwinUI::Cortana::CCortanaWNFService::ShellModeWNFCallback
@@ -1,2 +1,45 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TwinUI::Cortana::CCortanaWNFService::ShellModeWNFCallback : 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: static long __cdecl TwinUI::Cortana::CCortanaWNFService::ShellModeWNFCallback(struct

+   _WNF_STATE_NAME,unsigned long,struct _WNF_TYPE_ID * __ptr64,void * __ptr64,void const *

+   __ptr64,unsigned long) */

+

+long __cdecl TwinUI::Cortana::CCortanaWNFService::ShellModeWNFCallback(void)

+

+{

+  int iVar1;

+  bool bVar2;

+  long lVar3;

+  CCortanaWNFService *in_R9;

+  void *unaff_retaddr;

+  int *in_stack_00000028;

+  int in_stack_00000030;

+  ICortanaWNFNotification *local_18 [2];

+  

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (!bVar2) {

+    if ((in_stack_00000028 != (int *)0x0) && (in_stack_00000030 == 4)) {

+      iVar1 = *in_stack_00000028;

+      local_18[0] = (ICortanaWNFNotification *)0x0;

+      if (in_R9 != (CCortanaWNFService *)0x0) {

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)local_18);

+        lVar3 = GetNotification(in_R9,local_18);

+        if (-1 < lVar3) {

+          (**(code **)(*(longlong *)local_18[0] + 0x30))(local_18[0],iVar1 != 0);

+        }

+      }

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)local_18);

+    }

+    return 0;

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_FailFast_Unexpected

+            (unaff_retaddr,0xda,"pcshell\\twinui\\experiencemanagers\\lib\\cortanawnfservice.cpp");

+}

+
```

## `CDesktopPositioner::ControlGainedForActivation`  (modified)

```diff
--- CDesktopPositioner::ControlGainedForActivation
+++ KeyboardHosting::TabTipAdapter::OnDpiChanged
@@ -1,369 +1,145 @@
 

-/* 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 CDesktopPositioner::ControlGainedForActivation(struct

-   IApplicationView * __ptr64,enum SHELL_POSITIONER_TYPE,struct IUnknown * __ptr64) __ptr64 */

+/* public: long __cdecl KeyboardHosting::TabTipAdapter::OnDpiChanged(void) __ptr64 */

 

-long __thiscall

-CDesktopPositioner::ControlGainedForActivation

-          (CDesktopPositioner *this,IApplicationView *param_1,SHELL_POSITIONER_TYPE param_2,

-          IUnknown *param_3)

+long __thiscall KeyboardHosting::TabTipAdapter::OnDpiChanged(TabTipAdapter *this)

 

 {

-  CDesktopPositioner *this_00;

-  code *pcVar1;

-  char cVar2;

+  com_ptr_t<IInputHostLayout,wil::err_exception_policy> *this_00;

+  undefined4 uVar1;

+  longlong *plVar2;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+  *this_01;

   bool bVar3;

-  long lVar4;

-  int iVar5;

-  HRESULT HVar6;

-  uint uVar7;

-  int iVar8;

-  undefined8 *puVar9;

-  HWND__ *pHVar10;

-  NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *this_01;

-  tagRECT *ptVar11;

-  tagRECT *ptVar12;

-  HSTRING__ *pHVar13;

-  tagRECT *ptVar14;

+  int iVar4;

+  ULONGLONG UVar5;

+  longlong *plVar6;

+  ulonglong uVar7;

   void *unaff_retaddr;

-  undefined1 auStackY_118 [32];

-  IImmersiveMonitor *in_stack_ffffffffffffff08;

-  int in_stack_ffffffffffffff10;

-  IUnknown *pIVar15;

-  BoundsPreference in_stack_ffffffffffffff18;

-  int in_stack_ffffffffffffff20;

-  undefined1 local_d8 [8];

-  longlong local_d0;

-  IApplicationViewOperation *local_c8;

-  ActivationPropertyFlags local_c0;

-  int local_bc;

-  SHELL_POSITIONER_TYPE local_b8;

-  uint local_b4;

-  uint local_b0;

-  uint local_ac;

-  uint local_a8 [2];

-  IPropertySet *local_a0;

-  wchar_t *local_98;

-  undefined8 local_90;

-  undefined8 local_88;

-  tagRECT local_80;

-  tagRECT local_68 [2];

-  ulonglong local_48;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+  *local_res10;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+  *local_res18;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+  *local_res20;

+  _RTL_SRWLOCK local_38 [2];

   

-  local_48 = __security_cookie ^ (ulonglong)auStackY_118;

-  local_c0 = 0;

-  local_b8 = param_2;

-  lVar4 = PositionerPropertySetHelpers::GetDetailsForActivation

-                    ((IApplicationView *)this,param_3,&local_c0,(ViewSizePreferences *)0x0);

-  if (lVar4 < 0) {

-    uVar7 = 0x1d7;

-LAB_0:

-    wil::details::in1diag3::Return_Hr

-              (unaff_retaddr,uVar7,"pcshell\\twinui\\shellpositioners\\lib\\desktoppositioner.cpp",

-               lVar4);

-    return lVar4;

-  }

-  if ((local_c0 & 5) != 0) {

-    return 0;

-  }

-  cVar2 = IsPeoplePane(param_1);

-  if (cVar2 != '\0') {

-    return 0;

-  }

-  local_bc = 0;

-  lVar4 = (**(code **)(*(longlong *)param_1 + 0xd8))(param_1,&local_bc);

-  if (lVar4 < 0) {

-    uVar7 = 0x1e0;

-    goto LAB_0;

-  }

-  iVar5 = (**(code **)(*(longlong *)param_1 + 0xe0))(param_1,1);

-  if (iVar5 < 0) {

-    wil::details::in1diag3::_Log_Hr

-              (unaff_retaddr,0x1e3,"pcshell\\twinui\\shellpositioners\\lib\\desktoppositioner.cpp",

-               iVar5);

-  }

-  local_c8 = (IApplicationViewOperation *)0x0;

-  this_00 = this + -0x90;

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

-            ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

-  iVar5 = CreateAppViewOperationWithTitleBarAndChromeConfigured(this_00,param_1,&local_c8);

-  if (iVar5 < 0) {

-    wil::details::in1diag3::Return_Hr

-              (unaff_retaddr,0x1e7,"pcshell\\twinui\\shellpositioners\\lib\\desktoppositioner.cpp",

-               iVar5);

-    goto LAB_1;

-  }

-  local_a0 = (IPropertySet *)0x0;

-  if ((param_3 != (IUnknown *)0x0) &&

-     (HVar6 = (*param_3->lpVtbl->QueryInterface)

-                        (param_3,(IID *)&_GUID_8a43ed9f_f4e6_4421_acf9_1dab2986820c,&local_a0),

-     HVar6 < 0)) {

-                    /* WARNING: Subroutine does not return */

-    wil::details::in1diag3::_Throw_Hr

-              (unaff_retaddr,0x1c60,

-               "onecore\\internal\\sdk\\inc\\wil\\opensource/wil/result_macros.h",HVar6);

-  }

-  Windows::Internal::ShellHelpers::PropertySetHelper::PropertySetHelper

-            ((PropertySetHelper *)&local_d0,local_a0);

-  this_01 = (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_a0;

-  wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

-  ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

-            ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)this_01);

-  if (local_b8 == 0) {

-LAB_2:

-    if ((local_bc == 0) &&

-       (this_01 = (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)this_00,

-       bVar3 = ShouldMaximizeWindow(this_00,param_1), bVar3)) {

-      this_01 = (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)local_c8;

-      (**(code **)(*(longlong *)local_c8 + 0x30))(local_c8,3);

-LAB_3:

-      if (((local_c0 & 2) != 0) ||

-         (this_01 = (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)param_1,

-         iVar5 = (**(code **)(*(longlong *)param_1 + 0x38))(), iVar5 < 0)) {

-        if (local_bc == 0) {

-          pcVar1 = *(code **)(*(longlong *)param_1 + 0x78);

-          pHVar10 = GetInsertAfterWindowFromForegroundWindow((CDesktopPositioner *)this_01);

-          (*pcVar1)(param_1,pHVar10);

-          (**(code **)(*(longlong *)local_c8 + 0x60))(local_c8,1);

-        }

-        (**(code **)(*(longlong *)param_1 + 0x160))(param_1);

+  bVar3 = wil::details::

+          FeatureImpl<__WilFeatureTraits_Feature_ThrottleTouchKeyboardDisplayChangedEvents>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ThrottleTouchKeyboardDisplayChangedEvents>

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

+                                  ::__l2::impl);

+  if (bVar3) {

+    Microsoft::WRL::Wrappers::SRWLock::LockExclusive(local_38);

+    this_00 = (com_ptr_t<IInputHostLayout,wil::err_exception_policy> *)(this + 0x268);

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset(this_00);

+    UVar5 = GetTickCount64();

+    uVar7 = UVar5 - *(ulonglong *)(this + 0x260);

+    if (UVar5 < *(ulonglong *)(this + 0x260)) {

+      uVar7 = 0;

+    }

+    winrt::

+    implements<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,IRemoteTabTipAdapter>

+    ::get_weak((implements<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,IRemoteTabTipAdapter>

+                *)this);

+    local_res20 = local_res10;

+    if (local_res10 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

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

+    }

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset(this_00);

+    uVar1 = *(undefined4 *)(this + 0x240);

+    plVar6 = (longlong *)

+             Microsoft::WRL::Details::

+             Make<Windows::Internal::ComTaskPool::CTaskWrapper<<lambda_721c07156de44740c7562c1c83d2da06>_>,<lambda_721c07156de44740c7562c1c83d2da06>_>

+                       (&local_res18,&local_res20);

+    this_01 = local_res18;

+    plVar2 = (longlong *)*plVar6;

+    *plVar6 = 0;

+    if (local_res18 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

+      local_res18 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+                     *)0x0;

+      Microsoft::WRL::Details::

+      RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+      ::Release(this_01);

+    }

+    iVar4 = SHTaskPoolQueueTask(0,2,uVar1,-(uint)(uVar7 < 10000) & 500,plVar2,this_00);

+    if (plVar2 != (longlong *)0x0) {

+      (**(code **)(*plVar2 + 0x10))(plVar2);

+    }

+    <lambda_491c17a8e98ab789a5142a7b10687737>::~<lambda_491c17a8e98ab789a5142a7b10687737>

+              (&local_res20);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xc16,

+                 "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+      if (local_res10 !=

+          (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+           *)0x0) {

+        winrt::

+        com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+        ::unconditional_release_ref

+                  ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                    *)&local_res10);

       }

-      iVar5 = (**(code **)(*(longlong *)param_1 + 0x140))(param_1,local_c8);

-      if (-1 < iVar5) {

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

-                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_d0);

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

-                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

-        return 0;

-      }

-      uVar7 = 0x26b;

-      goto LAB_4;

+      CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_38);

+      return iVar4;

     }

-    if (local_d0 == 0) goto LAB_3;

-    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_SnapLauncherAPI>::

-            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_SnapLauncherAPI> *)

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

-                                 ::__l2::impl);

-    ptVar11 = (tagRECT *)param_1;

-    if (bVar3) {

-      local_80.left = 0;

-      local_80.top = 0;

-      local_80.right = 0;

-      local_80.bottom = 0;

-      ptVar14 = &local_80;

-      bVar3 = TryGetSnapRectForAppView(this_00,param_1,param_3,(Rect *)ptVar14);

-      if (!bVar3) goto LAB_5;

-LAB_6:

-      param_3 = *(IUnknown **)(*(longlong *)local_c8 + 0x38);

-      local_68[0].left = (LONG)(float)local_80.left;

-      local_68[0].top = (LONG)(float)local_80.top;

-      local_68[0].right = (LONG)((float)local_80.right + (float)local_80.left);

-      local_68[0].bottom = (LONG)((float)local_80.bottom + (float)local_80.top);

-      (*(code *)param_3)(local_c8,local_68);

-      (**(code **)(*(longlong *)local_c8 + 0x30))(local_c8,4);

-      (**(code **)(*(longlong *)local_c8 + 0x40))(local_c8,2);

+    if (local_res10 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_res10);

     }

-    else {

-      uVar7 = TryGetSnapId(this_00,param_1,param_3);

-      ptVar12 = (tagRECT *)(ulonglong)uVar7;

-      if (uVar7 != 0xffffffff) {

-        local_80.left = 0;

-        local_80.top = 0;

-        local_80.right = 0;

-        local_80.bottom = 0;

-        param_3 = (IUnknown *)&local_80;

-        ptVar14 = ptVar12;

-        iVar5 = (**(code **)(**(longlong **)(this + 0xd0) + 0x50))();

-        ptVar11 = ptVar12;

-        if (-1 < iVar5) goto LAB_6;

-      }

-LAB_5:

-      local_d8[0] = '\0';

-      puVar9 = (undefined8 *)

-               Windows::Internal::StringReference::StringReference<16>

-                         ((StringReference *)local_68,(ushort *)ptVar11);

-      ptVar14 = (tagRECT *)local_d8;

-      pHVar13 = (HSTRING__ *)*puVar9;

-      lVar4 = Windows::Internal::ShellHelpers::PropertySetHelper::GetValue<unsigned_char>

-                        ((PropertySetHelper *)&local_d0,pHVar13,(_func_long_uchar_ptr *)param_3,

-                         (uchar *)ptVar14);

-      if ((-1 < lVar4) && (local_d8[0] != '\0')) {

-        local_b0 = 0;

-        local_a8[0] = 0;

-        local_ac = 0;

-        local_b4 = 0;

-        local_b8 = 0;

-        puVar9 = (undefined8 *)

-                 Windows::Internal::StringReference::StringReference<21>

-                           ((StringReference *)local_68,(ushort *)pHVar13);

-        iVar5 = Windows::Internal::ShellHelpers::PropertySetHelper::GetValue<unsigned_int>

-                          ((PropertySetHelper *)&local_d0,(HSTRING__ *)*puVar9,

-                           (_func_long_uint_ptr *)param_3,&local_b0);

-        if (iVar5 < 0) {

-          uVar7 = 0x221;

-        }

-        else {

-          puVar9 = (undefined8 *)

-                   Windows::Internal::StringReference::StringReference<22>

-                             ((StringReference *)local_68,(ushort *)L"TryPositionView.Right");

-          pHVar13 = (HSTRING__ *)*puVar9;

-          iVar5 = Windows::Internal::ShellHelpers::PropertySetHelper::GetValue<unsigned_int>

-                            ((PropertySetHelper *)&local_d0,pHVar13,(_func_long_uint_ptr *)param_3,

-                             local_a8);

-          if (iVar5 < 0) {

-            uVar7 = 0x222;

-          }

-          else {

-            puVar9 = (undefined8 *)

-                     Windows::Internal::StringReference::StringReference<20>

-                               ((StringReference *)local_68,(ushort *)pHVar13);

-            iVar5 = Windows::Internal::ShellHelpers::PropertySetHelper::GetValue<unsigned_int>

-                              ((PropertySetHelper *)&local_d0,(HSTRING__ *)*puVar9,

-                               (_func_long_uint_ptr *)param_3,&local_ac);

-            if (iVar5 < 0) {

-              uVar7 = 0x223;

-            }

-            else {

-              puVar9 = (undefined8 *)

-                       Windows::Internal::StringReference::StringReference<23>

-                                 ((StringReference *)local_68,(ushort *)L"TryPositionView.Bottom");

-              iVar5 = Windows::Internal::ShellHelpers::PropertySetHelper::GetValue<unsigned_int>

-                                ((PropertySetHelper *)&local_d0,(HSTRING__ *)*puVar9,

-                                 (_func_long_uint_ptr *)param_3,&local_b4);

-              if (iVar5 < 0) {

-                uVar7 = 0x224;

-              }

-              else {

-                puVar9 = (undefined8 *)

-                         Windows::Internal::StringReference::StringReference<22>

-                                   ((StringReference *)local_68,(ushort *)L"TryPositionView.Flags");

-                iVar5 = Windows::Internal::ShellHelpers::PropertySetHelper::GetValue<unsigned_int>

-                                  ((PropertySetHelper *)&local_d0,(HSTRING__ *)*puVar9,

-                                   (_func_long_uint_ptr *)param_3,&local_b8);

-                if (iVar5 < 0) {

-                  uVar7 = 0x225;

-                }

-                else {

-                  local_68[0].left = local_b0;

-                  local_68[0].top = local_ac;

-                  local_68[0].right = local_a8[0];

-                  local_68[0].bottom = local_b4;

-                  ptVar14 = (tagRECT *)(ulonglong)local_b8;

-                  param_3 = (IUnknown *)local_68;

-                  iVar5 = PositionViewWithOptions

-                                    (this_00,param_1,(tagRECT *)param_3,local_b8,

-                                     in_stack_ffffffffffffff08,in_stack_ffffffffffffff10,

-                                     in_stack_ffffffffffffff18,in_stack_ffffffffffffff20);

-                  if (-1 < iVar5) goto LAB_7;

-                  uVar7 = 0x229;

-                }

-              }

-            }

-          }

-        }

-        goto LAB_4;

-      }

-    }

-LAB_7:

-    local_98 = (wchar_t *)0x0;

-    local_90 = 0;

-    local_88 = 0;

-    if (*(longlong *)(this + 200) != 0) {

-      wil::details::FeatureImpl<__WilFeatureTraits_Feature_VwUpdates>::ReportUsage

-                ((FeatureImpl<__WilFeatureTraits_Feature_VwUpdates> *)

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

-                  ::__l2::impl,true,(ReportingKind)param_3,(__uint64)ptVar14);

-      pcVar1 = *(code **)(*(longlong *)param_1 + 0x88);

-      Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

-                ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_98);

-      local_90 = 0xffffffffffffffff;

-      local_88 = 0xffffffffffffffff;

-      iVar5 = (*pcVar1)(param_1,&local_98);

-      if ((-1 < iVar5) &&

-         (iVar5 = wcscmp(local_98,

-                         L"windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel"

-                        ), iVar5 == 0)) {

-        local_80.left = 0;

-        local_80.top = 0;

-        iVar5 = (**(code **)(**(longlong **)(this + 200) + 0x30))

-                          (*(longlong **)(this + 200),&local_80);

-        if (iVar5 < 0) {

-          wil::details::in1diag3::_Log_Hr

-                    (unaff_retaddr,0x235,

-                     "pcshell\\twinui\\shellpositioners\\lib\\desktoppositioner.cpp",iVar5);

-        }

-        if ((local_80._0_8_ != 0) &&

-           (iVar5 = (**(code **)(**(longlong **)(this + 200) + 0x20))

-                              (*(longlong **)(this + 200),param_1), iVar5 < 0)) {

-          wil::details::in1diag3::_Log_Hr

-                    (unaff_retaddr,0x239,

-                     "pcshell\\twinui\\shellpositioners\\lib\\desktoppositioner.cpp",iVar5);

-        }

-        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

-        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

-                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_80

-                  );

-      }

-    }

-    if ((local_c0 & 0x10) == 0) {

-      this_01 = (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_98;

-      Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

-                (this_01);

-      goto LAB_3;

-    }

-    iVar5 = 0;

-    if (local_bc != 0) {

-LAB_8:

-      Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

-                ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_98);

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

-                ((ComPtr<IImmersiveSystemModeNotification> *)&local_d0);

-      goto LAB_1;

-    }

-    iVar8 = (**(code **)(*(longlong *)param_1 + 0x60))(param_1,1);

-    if (iVar8 < 0) {

-      wil::details::in1diag3::_Log_Hr

-                (unaff_retaddr,0x244,"pcshell\\twinui\\shellpositioners\\lib\\desktoppositioner.cpp"

-                 ,iVar8);

-    }

-    iVar8 = (**(code **)(*(longlong *)local_c8 + 0x30))(local_c8,1);

-    if (iVar8 < 0) {

-      uVar7 = 0x246;

-      iVar5 = iVar8;

-    }

-    else {

-      iVar8 = (**(code **)(*(longlong *)param_1 + 0x140))(param_1,local_c8);

-      if (-1 < iVar8) goto LAB_8;

-      uVar7 = 0x247;

-      iVar5 = iVar8;

-    }

-    wil::details::in1diag3::Return_Hr

-              (unaff_retaddr,uVar7,"pcshell\\twinui\\shellpositioners\\lib\\desktoppositioner.cpp",

-               iVar5);

-    Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

-              ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_98);

+    CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_38);

   }

   else {

-    in_stack_ffffffffffffff08 = (IImmersiveMonitor *)0x0;

-    this_01 = (NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)this_00;

-    pIVar15 = param_3;

-    iVar5 = PositionViewForPositionerHandoff

-                      (this_00,param_1,local_c8,local_b8,(IAppLayout *)0x0,param_3);

-    in_stack_ffffffffffffff10 = (int)pIVar15;

-    if (-1 < iVar5) goto LAB_2;

-    uVar7 = 0x1ee;

-LAB_4:

-    wil::details::in1diag3::Return_Hr

-              (unaff_retaddr,uVar7,"pcshell\\twinui\\shellpositioners\\lib\\desktoppositioner.cpp",

-               iVar5);

+    winrt::

+    implements<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,IRemoteTabTipAdapter>

+    ::get_weak((implements<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,IRemoteTabTipAdapter>

+                *)this);

+    local_res18 = local_res10;

+    if (local_res10 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

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

+    }

+    iVar4 = Windows::Internal::ComTaskPool::QueueTask<<lambda_491c17a8e98ab789a5142a7b10687737>_>();

+    <lambda_491c17a8e98ab789a5142a7b10687737>::~<lambda_491c17a8e98ab789a5142a7b10687737>

+              (&local_res18);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xc2c,

+                 "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+      if (local_res10 ==

+          (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+           *)0x0) {

+        return iVar4;

+      }

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_res10);

+      return iVar4;

+    }

+    if (local_res10 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_res10);

+    }

   }

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

-            ((ComPtr<IImmersiveSystemModeNotification> *)&local_d0);

-LAB_1:

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

-            ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

-  return iVar5;

+  return 0;

 }
```

## `GamingOverlayExperienceManager::SetWindowRect`  (modified)

```diff
--- GamingOverlayExperienceManager::SetWindowRect
+++ GamingOverlayExperienceManager::SetWindowRect
@@ -1,15 +1,69 @@
 

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

+/* public: virtual long __cdecl GamingOverlayExperienceManager::SetWindowRect(int,int,int,int)

+   __ptr64 */

 

 long __thiscall

-Microsoft::WRL::

-RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CServiceHostComponentWithGITSite,Microsoft::WRL::FtmBase>

-::SetWindowRect(GamingOverlayExperienceManager *this,int param_1,int param_2,int param_3,int param_4

-               )

+GamingOverlayExperienceManager::SetWindowRect

+          (GamingOverlayExperienceManager *this,int param_1,int param_2,int param_3,int param_4)

 

 {

-  long in_EAX;

+  long lVar1;

+  void *unaff_retaddr;

+  undefined1 auStack_48 [32];

+  float local_28;

+  float local_24;

+  float local_20;

+  float local_1c;

+  PRTL_CRITICAL_SECTION_DEBUG local_18;

+  ulonglong local_10;

   

-  return in_EAX;

+  local_10 = __security_cookie ^ (ulonglong)auStack_48;

+  local_18 = (PRTL_CRITICAL_SECTION_DEBUG)0x0;

+  wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)&stack0xffffffffffffffe8);

+  if (*(GameBarWindowControlImpl **)(this + 0x150) == (GameBarWindowControlImpl *)0x0) {

+    lVar1 = -0x7fff0001;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x179,

+               "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+               ,-0x7fff0001);

+    wil::details::

+    unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                *)&stack0xffffffffffffffe8);

+  }

+  else {

+    local_1c = (float)(param_4 - param_2);

+    local_20 = (float)(param_3 - param_1);

+    local_24 = (float)param_2;

+    local_28 = (float)param_1;

+    winrt::Windows::Internal::GamingOverlay::implementation::GameBarWindowControlImpl::Bounds

+              (*(GameBarWindowControlImpl **)(this + 0x150),(Rect *)&local_28);

+    lVar1 = UpdateOverlayDisplayModeFullscreen(this + -0x88,false);

+    if (lVar1 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x17c,

+                 "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+                 ,lVar1);

+      wil::details::

+      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                  *)&stack0xffffffffffffffe8);

+    }

+    else {

+      wil::details::

+      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                  *)&stack0xffffffffffffffe8);

+      lVar1 = 0;

+    }

+  }

+  return lVar1;

 }
```

## `TouchKeyboardExperienceManager::UnsubscribeTouchKeyboardWnfNotifications`  (modified)

```diff
--- TouchKeyboardExperienceManager::UnsubscribeTouchKeyboardWnfNotifications
+++ TouchKeyboardExperienceManager::UnsubscribeTouchKeyboardWnfNotifications
@@ -1,2 +1,92 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TouchKeyboardExperienceManager::UnsubscribeTouchKeyboardWnfNotifications : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: void __cdecl

+   TouchKeyboardExperienceManager::UnsubscribeTouchKeyboardWnfNotifications(void) __ptr64 */

+

+void __thiscall

+TouchKeyboardExperienceManager::UnsubscribeTouchKeyboardWnfNotifications

+          (TouchKeyboardExperienceManager *this)

+

+{

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8a0),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8a8),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8b0),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8b8),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8c0),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8c8),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8d0),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8d8),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8e0),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8e8),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x900),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x908),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x910),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x918),(wnf_subscription_state_base *)0x0);

+  if (*(longlong *)(this + 0x3b8) != 0) {

+    UnregisterWaitUntilOOBECompleted();

+    *(undefined8 *)(this + 0x3b8) = 0;

+  }

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x8f8),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x928),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x920),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x930),(wnf_subscription_state_base *)0x0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+  ::reset((unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>

+           *)(this + 0x938),(wnf_subscription_state_base *)0x0);

+  return;

+}

+
```

## `std::_Hash_vec<std::allocator<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<winrt::hstring_const_,std::unordered_set<unsigned_int,std::hash<unsigned_int>,std::equal_to<unsigned_int>,std::allocator<unsigned_int>_>_>_>_>_>_>_>::_Assign_grow`  (modified)

```diff
--- std::_Hash_vec<std::allocator<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<winrt::hstring_const_,std::unordered_set<unsigned_int,std::hash<unsigned_int>,std::equal_to<unsigned_int>,std::allocator<unsigned_int>_>_>_>_>_>_>_>::_Assign_grow
+++ std::_Hash_vec<std::allocator<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<winrt::hstring_const_,std::unordered_set<unsigned_int,std::hash<unsigned_int>,std::equal_to<unsigned_int>,std::allocator<unsigned_int>_>_>_>_>_>_>_>::_Assign_grow
@@ -1,2 +1,54 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB std::_Hash_vec<std::allocator<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<winrt::hstring_const_,std::unordered_set<unsigned_int,std::hash<unsigned_int>,std::equal_to<unsigned_int>,std::allocator<unsigned_int>_>_>_>_>_>_>_>::_Assign_grow : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl std::_Hash_vec<class std::allocator<class

+   std::_List_unchecked_iterator<class std::_List_val<struct std::_List_simple_types<struct

+   std::pair<struct winrt::hstring const ,class std::unordered_set<unsigned int,struct

+   std::hash<unsigned int>,struct std::equal_to<unsigned int>,class std::allocator<unsigned int> > >

+   > > > > >::_Assign_grow(unsigned __int64,class std::_List_unchecked_iterator<class

+   std::_List_val<struct std::_List_simple_types<struct std::pair<struct winrt::hstring const ,class

+   std::unordered_set<unsigned int,struct std::hash<unsigned int>,struct std::equal_to<unsigned

+   int>,class std::allocator<unsigned int> > > > > >) __ptr64 */

+

+void __thiscall

+std::

+_Hash_vec<std::allocator<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<winrt::hstring_const_,std::unordered_set<unsigned_int,std::hash<unsigned_int>,std::equal_to<unsigned_int>,std::allocator<unsigned_int>_>_>_>_>_>_>_>

+::_Assign_grow(_Hash_vec<std::allocator<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<winrt::hstring_const_,std::unordered_set<unsigned_int,std::hash<unsigned_int>,std::equal_to<unsigned_int>,std::allocator<unsigned_int>_>_>_>_>_>_>_>

+               *this,ulonglong param_1,undefined8 param_3)

+

+{

+  undefined8 *puVar1;

+  __uint64 _Var2;

+  undefined8 *puVar3;

+  longlong lVar4;

+  undefined8 local_res18;

+  

+  local_res18 = param_3;

+  if ((ulonglong)

+      ((longlong)

+       *(_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,__int64>_>_>_>

+         **)(this + 8) - *(longlong *)this >> 3) < param_1) {

+    _Var2 = _Get_size_of_n<8>(param_1);

+    puVar3 = _Allocate<16,std::_Default_allocate_traits,0>(_Var2);

+    lVar4 = *(longlong *)(this + 0x10) - *(longlong *)this >> 3;

+    if (lVar4 != 0) {

+      _Deallocate<16,0>(*(void **)this,lVar4 << 3);

+    }

+    puVar1 = puVar3 + param_1;

+    *(undefined8 **)this = puVar3;

+    *(undefined8 **)(this + 8) = puVar1;

+    *(undefined8 **)(this + 0x10) = puVar1;

+    for (; puVar3 != puVar1; puVar3 = puVar3 + 1) {

+      *puVar3 = param_3;

+    }

+  }

+  else {

+    fill<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,__int64>_>_>_>*___ptr64,std::_List_unchecked_iterator<class_std::_List_val<struct_std::_List_simple_types<struct_std::pair<class_std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_const_,__int64>_>_>_>_>

+              (*(_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,__int64>_>_>_>

+                 **)this,

+               *(_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,__int64>_>_>_>

+                 **)(this + 8),

+               (_List_unchecked_iterator<class_std::_List_val<struct_std::_List_simple_types<struct_std::pair<class_std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_const_,__int64>_>_>_>

+                *)&local_res18);

+  }

+  return;

+}

+
```

## `winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::ExitGamingPostureAsync`  (modified)

```diff
--- winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::ExitGamingPostureAsync
+++ winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::ExitGamingPostureAsync
@@ -1,2 +1,27 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::ExitGamingPostureAsync : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: struct winrt::Windows::Foundation::IAsyncAction __cdecl

+   winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::ExitGamingPostureAsync(enum

+   winrt::Windows::Internal::GamingExperiences::Posture::GamingPostureEntryPoint,struct

+   winrt::hstring) __ptr64 */

+

+undefined8 __thiscall

+winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::

+ExitGamingPostureAsync

+          (GamingPostureController *this,undefined8 param_2,undefined4 param_3,hstring *param_4)

+

+{

+  void *pvVar1;

+  undefined4 local_res10 [2];

+  undefined4 local_res18 [2];

+  hstring *local_res20;

+  

+  local_res18[0] = param_3;

+  local_res20 = param_4;

+  pvVar1 = operator_new(0x500);

+  local_res10[0] = 0;

+  ExitGamingPostureAsync__InitCoro_2

+            (local_res10,(longlong)pvVar1 + 0x70,param_2,local_res18,param_4,this);

+  hstring::~hstring(param_4);

+  return param_2;

+}

+
```

## `KeyboardHosting::TabTipAdapter::RefreshHardwareKeyboardUIState`  (modified)

```diff
--- KeyboardHosting::TabTipAdapter::RefreshHardwareKeyboardUIState
+++ KeyboardHosting::TabTipAdapter::RefreshHardwareKeyboardUIState
@@ -1,2 +1,65 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KeyboardHosting::TabTipAdapter::RefreshHardwareKeyboardUIState : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: long __cdecl KeyboardHosting::TabTipAdapter::RefreshHardwareKeyboardUIState(void)

+   __ptr64 */

+

+long __thiscall KeyboardHosting::TabTipAdapter::RefreshHardwareKeyboardUIState(TabTipAdapter *this)

+

+{

+  bool bVar1;

+  long lVar2;

+  uint uVar3;

+  void *unaff_retaddr;

+  

+  if (this[0x1c3] == (TabTipAdapter)0x0) {

+    lVar2 = SetTrackSelectionPosition(this,false);

+    if (-1 < lVar2) {

+      return 0;

+    }

+    uVar3 = 0x498;

+LAB_0:

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar3,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",lVar2);

+    return lVar2;

+  }

+  lVar2 = EnsureInputAppIsReady(this);

+  if (lVar2 < 0) {

+    uVar3 = 0x482;

+  }

+  else {

+    lVar2 = InvokeEnsureInputAppIsActivated(this);

+    if (lVar2 < 0) {

+      uVar3 = 0x483;

+    }

+    else {

+      lVar2 = SetTrackSelectionPosition(this,true);

+      if (-1 < lVar2) {

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

+                __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_CoreKeyboardMultiClient>

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

+                                        ::__l2::impl);

+        if (bVar1) {

+          lVar2 = RequestPositionAndSizeUpdateForView(this,1);

+          if (-1 < lVar2) {

+            return 0;

+          }

+          uVar3 = 0x48e;

+        }

+        else {

+          lVar2 = RequestPositionAndSizeUpdate(this);

+          if (-1 < lVar2) {

+            return 0;

+          }

+          uVar3 = 0x492;

+        }

+        goto LAB_0;

+      }

+      uVar3 = 0x485;

+    }

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar3,

+             "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",lVar2);

+  return lVar2;

+}

+
```

## `TouchKeyboardExperienceManager::FindViewInfo`  (modified)

```diff
--- TouchKeyboardExperienceManager::FindViewInfo
+++ _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>::Write<_tlgWrapSz<unsigned_short>,_tlgWrapperByVal<8>_>
@@ -1,53 +1,65 @@
 

-/* private: long __cdecl TouchKeyboardExperienceManager::FindViewInfo(unsigned int,class

-   std::shared_ptr<struct KBViewInfo> & __ptr64) __ptr64 */

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

+/* public: static long __cdecl _tlgWriteTemplate<long __cdecl(struct _tlgProvider_t const *

+   __ptr64,void const * __ptr64,struct _GUID const * __ptr64,struct _GUID const * __ptr64,unsigned

+   int,struct _EVENT_DATA_DESCRIPTOR * __ptr64),&long __cdecl

+   _tlgWriteTransfer_EventWriteTransfer(struct _tlgProvider_t const * __ptr64,void const *

+   __ptr64,struct _GUID const * __ptr64,struct _GUID const * __ptr64,unsigned int,struct

+   _EVENT_DATA_DESCRIPTOR * __ptr64),struct _GUID const * __ptr64,struct _GUID const *

+   __ptr64>::Write<struct _tlgWrapSz<unsigned short>,struct _tlgWrapperByVal<8> >(struct

+   _tlgProvider_t const * __ptr64,void const * __ptr64,struct _GUID const * __ptr64,struct _GUID

+   const * __ptr64,struct _tlgWrapSz<unsigned short> const & __ptr64,struct _tlgWrapperByVal<8>

+   const & __ptr64) */

 

-long __thiscall

-TouchKeyboardExperienceManager::FindViewInfo

-          (TouchKeyboardExperienceManager *this,uint param_1,shared_ptr<KBViewInfo> *param_2)

+long __cdecl

+_tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+::Write<_tlgWrapSz<unsigned_short>,_tlgWrapperByVal<8>_>

+          (_tlgProvider_t *param_1,void *param_2,_GUID *param_3,_GUID *param_4,

+          _tlgWrapSz<unsigned_short> *param_5,_tlgWrapperByVal<8> *param_6)

 

 {

-  int *piVar1;

-  TouchKeyboardExperienceManager *SRWLock;

+  ULONG UVar1;

   longlong lVar2;

-  _Ref_count_base *this_00;

-  bool bVar3;

-  long lVar4;

-  longlong *plVar5;

-  longlong *plVar6;

+  undefined1 auStackY_a8 [32];

+  EVENT_DESCRIPTOR local_70;

+  _EVENT_DATA_DESCRIPTOR local_58;

+  ushort *local_48;

+  uint local_40;

+  undefined4 local_3c;

+  wchar_t *local_38;

+  int local_30;

+  undefined4 local_2c;

+  _tlgWrapperByVal<8> *local_28;

+  undefined8 local_20;

+  ulonglong local_18;

   

-  SRWLock = this + 0x1a0;

-  AcquireSRWLockShared((PSRWLOCK)SRWLock);

-  plVar6 = *(longlong **)(this + 0x1b0);

-  for (plVar5 = *(longlong **)(this + 0x1a8); plVar5 != plVar6; plVar5 = plVar5 + 2) {

-    bVar3 = KBViewInfo::IsValid((KBViewInfo *)*plVar5);

-    if ((bVar3) && (*(uint *)(*plVar5 + 0x68) == param_1)) break;

-  }

-  if (plVar5 == *(longlong **)(this + 0x1b0)) {

-    if (SRWLock != (TouchKeyboardExperienceManager *)0x0) {

-      ReleaseSRWLockShared((PSRWLOCK)SRWLock);

-    }

-    lVar4 = -0x7ff8fb70;

+  local_18 = __security_cookie ^ (ulonglong)auStackY_a8;

+  local_28 = param_6;

+  local_20 = 8;

+  local_38 = *(wchar_t **)param_5;

+  if (local_38 == (wchar_t *)0x0) {

+    local_38 = L"";

+    local_30 = 2;

   }

   else {

-    if (plVar5[1] != 0) {

-      LOCK();

-      piVar1 = (int *)(plVar5[1] + 8);

-      *piVar1 = *piVar1 + 1;

-      UNLOCK();

-    }

-    lVar2 = plVar5[1];

-    *(longlong *)param_2 = *plVar5;

-    this_00 = *(_Ref_count_base **)(param_2 + 8);

-    *(longlong *)(param_2 + 8) = lVar2;

-    if (this_00 != (_Ref_count_base *)0x0) {

-      std::_Ref_count_base::_Decref(this_00);

-    }

-    if (SRWLock != (TouchKeyboardExperienceManager *)0x0) {

-      ReleaseSRWLockShared((PSRWLOCK)SRWLock);

-    }

-    lVar4 = 0;

+    lVar2 = -1;

+    do {

+      lVar2 = lVar2 + 1;

+    } while (local_38[lVar2] != L'\0');

+    local_30 = (int)lVar2 * 2 + 2;

   }

-  return lVar4;

+  local_70._0_4_ = (uint)*(byte *)param_2 << 0x18;

+  local_70._4_4_ = ZEXT24(*(ushort *)((longlong)param_2 + 1));

+  local_70.Keyword = *(ULONGLONG *)((longlong)param_2 + 3);

+  local_48 = (ushort *)((longlong)param_2 + 0xb);

+  local_58.Ptr = *(ULONGLONG *)(param_1 + 8);

+  local_2c = 0;

+  local_58.Size = (ULONG)*(ushort *)local_58.Ptr;

+  local_40 = (uint)*local_48;

+  local_58.Reserved = 2;

+  local_3c = 1;

+  UVar1 = EventWriteTransfer(*(REGHANDLE *)(param_1 + 0x20),&local_70,param_3,(LPCGUID)0x0,4,

+                             &local_58);

+  return UVar1;

 }
```

## `KeyboardHosting::TabTipAdapter::OnAllowInputPanelMdmPolicyUpdated`  (modified)

```diff
--- KeyboardHosting::TabTipAdapter::OnAllowInputPanelMdmPolicyUpdated
+++ KeyboardHosting::TabTipAdapter::OnAllowInputPanelMdmPolicyUpdated
@@ -1,2 +1,53 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KeyboardHosting::TabTipAdapter::OnAllowInputPanelMdmPolicyUpdated : 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: long __cdecl KeyboardHosting::TabTipAdapter::OnAllowInputPanelMdmPolicyUpdated(bool)

+   __ptr64 */

+

+long __thiscall

+KeyboardHosting::TabTipAdapter::OnAllowInputPanelMdmPolicyUpdated(TabTipAdapter *this,bool param_1)

+

+{

+  bool bVar1;

+  int iVar2;

+  long lVar3;

+  uint uVar4;

+  undefined7 in_register_00000011;

+  void *unaff_retaddr;

+  int local_res8 [2];

+  

+  local_res8[0] = 0;

+  iVar2 = (**(code **)(**(longlong **)(this + 0x80) + 0x98))

+                    (*(longlong **)(this + 0x80),CONCAT71(in_register_00000011,param_1),local_res8);

+  if (iVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xd8c,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar2);

+    return iVar2;

+  }

+  if (local_res8[0] == 2) {

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

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_CoreKeyboardMultiClient> *)

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

+                                 ::__l2::impl);

+    if (bVar1) {

+      lVar3 = ProcessChangeRequest(this,2,*(uint *)(this + 0x1f0),0);

+      if (-1 < lVar3) goto LAB_0;

+      uVar4 = 0xd92;

+    }

+    else {

+      lVar3 = ProcessChangeRequest(this,2,*(uint *)(this + 0x1f0),0);

+      if (-1 < lVar3) goto LAB_0;

+      uVar4 = 0xd96;

+    }

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar4,

+               "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",lVar3);

+  }

+  else {

+LAB_0:

+    lVar3 = 0;

+  }

+  return lVar3;

+}

+
```

## `CApplicationManager::_IWMFromWindow`  (modified)

```diff
--- CApplicationManager::_IWMFromWindow
+++ winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs>::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs>
@@ -1,2 +1,2 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CApplicationManager::_IWMFromWindow : Error: Decompile error: 
+Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs>::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs> : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `tip2::tip_test<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>::operator->`  (modified)

```diff
--- tip2::tip_test<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>::operator->
+++ tip2::tip_test<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>::operator->
@@ -1,2 +1,24 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB tip2::tip_test<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>::operator-> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: class tip2::test_data_control<class tip2::details::merged_data<struct

+   _tip_SnapFlyoutShowTest,struct _tip_SnapFlyoutShowTest> > __cdecl tip2::tip_test<class

+   tip2::details::merged_data<struct _tip_SnapFlyoutShowTest,struct _tip_SnapFlyoutShowTest>

+   >::operator->(void) __ptr64 */

+

+void __thiscall

+tip2::tip_test<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>::

+operator->(tip_test<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>

+           *this)

+

+{

+  com_ptr_t<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>,wil::err_returncode_policy>

+  *pcVar1;

+  test_data_control<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>

+  *in_RDX;

+  

+  pcVar1 = ensure_data(this);

+  test_data_control<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>::

+  test_data_control<tip2::details::merged_data<_tip_SnapFlyoutShowTest,_tip_SnapFlyoutShowTest>_>

+            (in_RDX,pcVar1);

+  return;

+}

+
```

## `_tip_StartMenuInvokeTest::serialize<tson::output_archive>`  (modified)

```diff
--- _tip_StartMenuInvokeTest::serialize<tson::output_archive>
+++ _tip_StartMenuInvokeTest::serialize<tson::output_archive>
@@ -1,2 +1,198 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB _tip_StartMenuInvokeTest::serialize<tson::output_archive> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl _tip_StartMenuInvokeTest::serialize<class tson::output_archive>(class

+   tson::output_archive & __ptr64) __ptr64 */

+

+void __thiscall

+_tip_StartMenuInvokeTest::serialize<tson::output_archive>

+          (_tip_StartMenuInvokeTest *this,output_archive *param_1)

+

+{

+  char *local_2a8;

+  undefined1 local_2a0;

+  _tip_StartMenuInvokeTest *local_298;

+  char *local_290;

+  undefined1 local_288;

+  _tip_StartMenuInvokeTest *local_280;

+  char *local_278;

+  undefined1 local_270;

+  _tip_StartMenuInvokeTest *local_268;

+  char *local_260;

+  undefined1 local_258;

+  _tip_StartMenuInvokeTest *local_250;

+  char *local_248;

+  undefined1 local_240;

+  _tip_StartMenuInvokeTest *local_238;

+  char *local_230;

+  undefined1 local_228;

+  _tip_StartMenuInvokeTest *local_220;

+  char *local_218;

+  undefined1 local_210;

+  _tip_StartMenuInvokeTest *local_208;

+  char *local_200;

+  undefined1 local_1f8;

+  _tip_StartMenuInvokeTest *local_1f0;

+  char *local_1e8;

+  undefined1 local_1e0;

+  _tip_StartMenuInvokeTest *local_1d8;

+  char *local_1d0;

+  undefined1 local_1c8;

+  _tip_StartMenuInvokeTest *local_1c0;

+  char *local_1b8;

+  undefined1 local_1b0;

+  _tip_StartMenuInvokeTest *local_1a8;

+  char *local_1a0;

+  undefined1 local_198;

+  _tip_StartMenuInvokeTest *local_190;

+  char *local_188;

+  undefined1 local_180;

+  _tip_StartMenuInvokeTest *local_178;

+  char *local_170;

+  undefined1 local_168;

+  _tip_StartMenuInvokeTest *local_160;

+  char *local_158;

+  undefined1 local_150;

+  _tip_StartMenuInvokeTest *local_148;

+  char *local_140;

+  undefined1 local_138;

+  _tip_StartMenuInvokeTest *local_130;

+  char *local_128;

+  undefined1 local_120;

+  _tip_StartMenuInvokeTest *local_118;

+  char *local_110;

+  undefined1 local_108;

+  _tip_StartMenuInvokeTest *local_100;

+  char *local_f8;

+  undefined1 local_f0;

+  _tip_StartMenuInvokeTest *local_e8;

+  char *local_e0;

+  undefined1 local_d8;

+  _tip_StartMenuInvokeTest *local_d0;

+  char *local_c8;

+  undefined1 local_c0;

+  _tip_StartMenuInvokeTest *local_b8;

+  char *local_b0;

+  undefined1 local_a8;

+  _tip_StartMenuInvokeTest *local_a0;

+  char *local_98;

+  undefined1 local_90;

+  _tip_StartMenuInvokeTest *local_88;

+  char *local_80;

+  undefined1 local_78;

+  _tip_StartMenuInvokeTest *local_70;

+  char *local_68;

+  undefined1 local_60;

+  _tip_StartMenuInvokeTest *local_58;

+  char *local_50;

+  undefined1 local_48;

+  _tip_StartMenuInvokeTest *local_40;

+  char *local_38;

+  undefined1 local_30;

+  _tip_StartMenuInvokeTest *local_28;

+  char *local_20;

+  undefined1 local_18;

+  _tip_StartMenuInvokeTest *local_10;

+  

+  local_2a0 = 0x14;

+  local_2a8 = "isUsingUndockedFrame";

+  local_298 = this + 0x77;

+  local_288 = 0x17;

+  local_290 = "isCompanionInitializing";

+  local_280 = this + 0x76;

+  local_278 = "isCompanionPresent";

+  local_268 = this + 0x75;

+  local_260 = "isFulltrustApp";

+  local_250 = this + 0x74;

+  local_248 = "undockedContentError";

+  local_238 = this + 0x70;

+  local_230 = "cannotGetUndockedExtension";

+  local_220 = this + 0x6d;

+  local_218 = "isAutomaticInvoke";

+  local_208 = this + 0x6c;

+  local_200 = "invalidInternalState";

+  local_1f0 = this + 0x68;

+  local_1e8 = "searchSetForegroundResult";

+  local_1d8 = this + 100;

+  local_1d0 = "desktopSwitchTimeoutDuringInvoke";

+  local_1c0 = this + 0x51;

+  local_1b8 = "searchLaunchedDuringInvoke";

+  local_1a8 = this + 0x50;

+  local_1a0 = "startLaunchedDuringInvoke";

+  local_190 = this + 0x4f;

+  local_188 = "rootFrameInitialization";

+  local_178 = this + 0x60;

+  local_170 = "utmInitialization";

+  local_160 = this + 0x5c;

+  local_158 = "searchActivationResult";

+  local_148 = this + 0x58;

+  local_140 = "startActivationResult";

+  local_130 = this + 0x54;

+  local_270 = 0x12;

+  local_258 = 0xe;

+  local_240 = 0x14;

+  local_228 = 0x1a;

+  local_210 = 0x11;

+  local_1f8 = 0x14;

+  local_1e0 = 0x19;

+  local_1c8 = 0x20;

+  local_1b0 = 0x1a;

+  local_198 = 0x19;

+  local_180 = 0x17;

+  local_168 = 0x11;

+  local_150 = 0x16;

+  local_138 = 0x15;

+  local_120 = 0x20;

+  local_128 = "invalidStateTransitionDuringShow";

+  local_118 = this + 0x4e;

+  local_110 = "startShownWithoutSearchAfterCutoffTimer";

+  local_100 = this + 0x4d;

+  local_f8 = "searchActivationFailed";

+  local_e8 = this + 0x4c;

+  local_e0 = "searchCrashedDuringInvoke";

+  local_d0 = this + 0x4b;

+  local_c8 = "startCrashedDuringInvoke";

+  local_b8 = this + 0x4a;

+  local_b0 = "timedOutAfterFiveSeconds";

+  local_a0 = this + 0x49;

+  local_98 = "canceledDeviceLocked";

+  local_88 = this + 0x48;

+  local_80 = "foregroundLostToProcess";

+  local_70 = this + 0x28;

+  local_68 = "foregroundLostDurationMs";

+  local_58 = this + 0x18;

+  local_50 = "foregroundLostInvokeAbort";

+  local_40 = this + 0x12;

+  local_38 = "foregroundCouldNotBeClaimed";

+  local_28 = this + 0x11;

+  local_20 = "canceledForegroundLost";

+  local_10 = this + 0x10;

+  local_108 = 0x27;

+  local_f0 = 0x16;

+  local_d8 = 0x19;

+  local_c0 = 0x18;

+  local_a8 = 0x18;

+  local_90 = 0x14;

+  local_78 = 0x17;

+  local_60 = 0x18;

+  local_48 = 0x19;

+  local_30 = 0x1b;

+  local_18 = 0x16;

+  tson::output_archive::

+  process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<__int64&___ptr64>,tson::nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<long&___ptr64>,tson::nvp<long&___ptr64>,tson::nvp<long&___ptr64>,tson::nvp<long&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<long&___ptr64>,tson::nvp<unsigned_int&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<unsigned_int&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>_>

+            (param_1,(nvp<bool&___ptr64> *)&local_20,(nvp<bool&___ptr64> *)&local_38,

+             (nvp<bool&___ptr64> *)&local_50,(nvp<__int64&___ptr64> *)&local_68,

+             (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+              *)&local_80,(nvp<bool&___ptr64> *)&local_98,(nvp<bool&___ptr64> *)&local_b0,

+             (nvp<bool&___ptr64> *)&local_c8,(nvp<bool&___ptr64> *)&local_e0,

+             (nvp<bool&___ptr64> *)&local_f8,(nvp<bool&___ptr64> *)&local_110,

+             (nvp<bool&___ptr64> *)&local_128,(nvp<long&___ptr64> *)&local_140,

+             (nvp<long&___ptr64> *)&local_158,(nvp<long&___ptr64> *)&local_170,

+             (nvp<long&___ptr64> *)&local_188,(nvp<bool&___ptr64> *)&local_1a0,

+             (nvp<bool&___ptr64> *)&local_1b8,(nvp<bool&___ptr64> *)&local_1d0,

+             (nvp<long&___ptr64> *)&local_1e8,(nvp<unsigned_int&___ptr64> *)&local_200,

+             (nvp<bool&___ptr64> *)&local_218,(nvp<bool&___ptr64> *)&local_230,

+             (nvp<unsigned_int&___ptr64> *)&local_248,(nvp<bool&___ptr64> *)&local_260,

+             (nvp<bool&___ptr64> *)&local_278,(nvp<bool&___ptr64> *)&local_290,

+             (nvp<bool&___ptr64> *)&local_2a8);

+  return;

+}

+
```

## `AIAssistanceTelemetry::PolicyCheckError<unsigned_short_const_(&___ptr64)[28],unsigned_short_const_(&___ptr64)[50],long&___ptr64>`  (modified)

```diff
--- AIAssistanceTelemetry::PolicyCheckError<unsigned_short_const_(&___ptr64)[28],unsigned_short_const_(&___ptr64)[50],long&___ptr64>
+++ AIAssistanceTelemetry::PolicyCheckError<unsigned_short_const_(&___ptr64)[28],unsigned_short_const_(&___ptr64)[50],long&___ptr64>
@@ -1,2 +1,35 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB AIAssistanceTelemetry::PolicyCheckError<unsigned_short_const_(&___ptr64)[28],unsigned_short_const_(&___ptr64)[50],long&___ptr64> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: static void __cdecl AIAssistanceTelemetry::PolicyCheckError<unsigned short const (&

+   __ptr64)[28],unsigned short const (& __ptr64)[50],long & __ptr64>(unsigned short const (&

+   __ptr64)[28],unsigned short const (& __ptr64)[50],long & __ptr64) */

+

+void __cdecl

+AIAssistanceTelemetry::

+PolicyCheckError<unsigned_short_const_(&___ptr64)[28],unsigned_short_const_(&___ptr64)[50],long&___ptr64>

+          (ushort *param_1,ushort *param_2,long *param_3)

+

+{

+  AIAssistanceTelemetry *pAVar1;

+  _GUID *in_R9;

+  wchar_t *local_res8;

+  ushort *local_res10 [2];

+  wchar_t *local_res20;

+  

+  local_res8 = (wchar_t *)param_1;

+  local_res10[0] = param_2;

+  pAVar1 = wil::details::static_lazy<AIAssistanceTelemetry>::get

+                     ((static_lazy<AIAssistanceTelemetry> *)param_1,

+                      <lambda_112a6f497407e40ee53cd3a0c551aaad>::<lambda_invoker_cdecl>);

+  if (5 < *(uint *)*(_tlgProvider_t **)(pAVar1 + 8)) {

+    local_res10[0] = (ushort *)CONCAT44(local_res10[0]._4_4_,*param_3);

+    local_res8 = L"Failed reading SLPolicy_WindowsCopilot_Available.";

+    local_res20 = L"IsCopilotSupportedOSEdition";

+    _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+    ::Write<_tlgWrapSz<unsigned_short>,_tlgWrapSz<unsigned_short>,_tlgWrapperByVal<4>_>

+              (*(_tlgProvider_t **)(pAVar1 + 8),&DAT_0,(_GUID *)0x0,in_R9,

+               (_tlgWrapSz<unsigned_short> *)&local_res20,(_tlgWrapSz<unsigned_short> *)&local_res8,

+               (_tlgWrapperByVal<4> *)local_res10);

+  }

+  return;

+}

+
```

## `TabletModeCoverWindow::InitializeInstance`  (modified)

```diff
--- TabletModeCoverWindow::InitializeInstance
+++ TabletModeCoverWindow::InitializeInstance
@@ -1,2 +1,60 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TabletModeCoverWindow::InitializeInstance : 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: long __cdecl TabletModeCoverWindow::InitializeInstance(void) __ptr64 */

+

+long __thiscall TabletModeCoverWindow::InitializeInstance(TabletModeCoverWindow *this)

+

+{

+  ComPtr<IImmersiveSystemModeNotification> *this_00;

+  long lVar1;

+  undefined8 *puVar2;

+  uint uVar3;

+  void *unaff_retaddr;

+  _RTL_SRWLOCK local_res8;

+  ComPtr<Windows::Internal::IComPoolTask> local_res10 [8];

+  

+  Microsoft::WRL::Wrappers::SRWLock::LockExclusive(&local_res8);

+  this_00 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x88);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(this_00);

+  puVar2 = (undefined8 *)CWRLObjectWithGITSite::SiteUnk((CWRLObjectWithGITSite *)this);

+  lVar1 = IUnknown_QueryService

+                    ((IUnknown *)*puVar2,(GUID *)&_GUID_880b26f8_9197_43d0_8045_8702d0d72000,

+                     (IID *)&_GUID_880b26f8_9197_43d0_8045_8702d0d72000,(void **)this_00);

+  Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease(local_res10);

+  if (lVar1 < 0) {

+    uVar3 = 400;

+  }

+  else {

+    lVar1 = (**(code **)(**(longlong **)this_00 + 0x58))();

+    if (-1 < lVar1) {

+      SetWindowPos(*(HWND *)(this + 0x68),(HWND)0x0,*(int *)(this + 0xcc),*(int *)(this + 0xd0),

+                   *(int *)(this + 0xd4) - *(int *)(this + 0xcc),

+                   *(int *)(this + 0xd8) - *(int *)(this + 0xd0),0x14);

+      Microsoft::WRL::Wrappers::Details::SyncLockExclusive::~SyncLockExclusive

+                ((SyncLockExclusive *)&local_res8);

+      lVar1 = TabletModeChanged(this + 0x50,false);

+      if (-1 < lVar1) {

+        return 0;

+      }

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x196,"pcshell\\twinui\\tabletmode\\lib\\tabletmodecoverwindow.cpp",

+                 lVar1);

+      goto LAB_0;

+    }

+    uVar3 = 0x191;

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar3,"pcshell\\twinui\\tabletmode\\lib\\tabletmodecoverwindow.cpp",lVar1

+            );

+  Microsoft::WRL::Wrappers::Details::SyncLockExclusive::~SyncLockExclusive

+            ((SyncLockExclusive *)&local_res8);

+LAB_0:

+  Microsoft::WRL::Wrappers::SRWLock::LockExclusive(&local_res8);

+  this[200] = (TabletModeCoverWindow)0x0;

+  ShowWindow(*(HWND *)(this + 0x68),0);

+  Microsoft::WRL::Wrappers::Details::SyncLockExclusive::~SyncLockExclusive

+            ((SyncLockExclusive *)&local_res8);

+  return lVar1;

+}

+
```

## `CVirtualDesktopComponent::RuntimeClassInitialize`  (modified)

```diff
--- CVirtualDesktopComponent::RuntimeClassInitialize
+++ CVirtualDesktopComponent::RuntimeClassInitialize
@@ -1,2 +1,857 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CVirtualDesktopComponent::RuntimeClassInitialize : 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: Type propagation algorithm not settling */

+/* public: long __cdecl CVirtualDesktopComponent::RuntimeClassInitialize(void) __ptr64 */

+

+long __thiscall CVirtualDesktopComponent::RuntimeClassInitialize(CVirtualDesktopComponent *this)

+

+{

+  _GUID *this_00;

+  _GUID *p_Var1;

+  CVirtualDesktopComponent *pCVar2;

+  ComPtr<IImmersiveSystemModeNotification> *pCVar3;

+  longlong *plVar4;

+  code *pcVar5;

+  undefined4 uVar6;

+  bool bVar7;

+  uint uVar8;

+  int iVar9;

+  void **ppvVar10;

+  uchar this_01 [8];

+  _GUID *p_Var11;

+  ComPtr<IImmersiveSystemModeNotification> *pCVar12;

+  IVirtualDesktopCollection *pIVar13;

+  FeatureImpl<struct___WilFeatureTraits_Feature_RLTM> *this_02;

+  CCriticalFailureHandler *pCVar14;

+  IVirtualDesktopPersistence *pIVar15;

+  IVirtualDesktopManagerPrivate *pIVar16;

+  IVirtualDesktopManagerInternal *this_03;

+  IVirtualDesktopManagerPrivate *this_04;

+  CImmersiveShellComponent *this_05;

+  ulong uVar17;

+  wchar_t *in_R8;

+  wchar_t *pwVar18;

+  _GUID *p_Var19;

+  IVirtualDesktopForegroundPolicy *pIVar20;

+  void *unaff_retaddr;

+  undefined1 auStackY_218 [32];

+  __uint64 *in_stack_fffffffffffffe08;

+  IVirtualDesktopCollection **ppIVar21;

+  ComPtr<IImmersiveSystemModeNotification> *pCVar22;

+  IVirtualDesktopLock *pIVar23;

+  __uint64 *p_Var24;

+  _GUID *in_stack_fffffffffffffe10;

+  _GUID *in_stack_fffffffffffffe20;

+  undefined1 local_1c8 [16];

+  IVirtualDesktopCollection *local_1b8;

+  IVirtualDesktopPersistence *local_1b0;

+  _GUID local_1a8;

+  _GUID local_198;

+  CCriticalFailureHandler *local_188;

+  CVirtualDesktopComponent *local_180;

+  _GUID *local_178;

+  ComPtr<IImmersiveSystemModeNotification> *local_170;

+  ComPtr<IImmersiveSystemModeNotification> *local_168;

+  undefined8 local_158;

+  undefined8 uStack_150;

+  undefined8 local_148;

+  undefined8 local_140;

+  undefined8 local_138;

+  undefined8 uStack_130;

+  void *local_128;

+  undefined8 local_120;

+  undefined8 local_118;

+  undefined8 uStack_110;

+  CCriticalFailureHandler *local_108;

+  undefined8 local_100;

+  undefined8 local_f8;

+  undefined8 uStack_f0;

+  undefined8 local_e8;

+  undefined8 local_e0;

+  undefined8 local_d8;

+  undefined8 uStack_d0;

+  void *local_c8;

+  undefined8 local_c0;

+  undefined8 local_b8;

+  undefined8 uStack_b0;

+  undefined8 local_a8;

+  undefined8 local_a0;

+  undefined8 local_98;

+  undefined8 uStack_90;

+  undefined8 local_88;

+  undefined8 local_80;

+  undefined8 local_78;

+  undefined8 uStack_70;

+  undefined8 local_68;

+  undefined8 local_60;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  undefined8 local_48;

+  undefined8 local_40;

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_218;

+  this_00 = (_GUID *)(this + 0x90);

+  p_Var19 = this_00;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)this_00);

+  local_1c8._0_4_ = CVirtualDesktopLock_CreateInstance(p_Var19,(void **)this_00);

+  if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+    CCriticalFailureHandler::GetFakeFailure((CCriticalFailureHandler *)p_Var19,(long *)local_1c8);

+    CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+  }

+  if ((int)local_1c8._0_4_ < 0) {

+    if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+      in_R8 = L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+      CCriticalFailureHandler::HandleFailure

+                ((CCriticalFailureHandler *)p_Var19,(long *)local_1c8,

+                 (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                 0x42,in_stack_fffffffffffffe08,(__uint64 *)in_stack_fffffffffffffe10);

+    }

+    uVar6 = local_1c8._0_4_;

+    if ((int)local_1c8._0_4_ < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x42,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                 local_1c8._0_4_);

+      return uVar6;

+    }

+  }

+  uVar8 = SHTaskPoolGetUniqueContext();

+  pCVar14 = (CCriticalFailureHandler *)(ulonglong)uVar8;

+  local_188 = (CCriticalFailureHandler *)0x0;

+  ppvVar10 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IApplicationViewArrangePosition>_>

+                       (&local_188);

+  p_Var19 = *(_GUID **)this_00;

+  local_1c8._0_4_ =

+       CVirtualDesktopNotifications_CreateInstance

+                 (uVar8,(IVirtualDesktopLock *)p_Var19,(_GUID *)in_R8,ppvVar10);

+  if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+    p_Var19 = (_GUID *)local_1c8;

+    CCriticalFailureHandler::GetFakeFailure(pCVar14,(long *)p_Var19);

+    CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+  }

+  if ((int)local_1c8._0_4_ < 0) {

+    if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+      p_Var19 = (_GUID *)local_1c8;

+      CCriticalFailureHandler::HandleFailure

+                (pCVar14,(long *)p_Var19,

+                 (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                 0x48,in_stack_fffffffffffffe08,(__uint64 *)in_stack_fffffffffffffe10);

+    }

+    uVar17 = local_1c8._0_4_;

+    if ((int)local_1c8._0_4_ < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x48,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                 local_1c8._0_4_);

+      goto LAB_0;

+    }

+  }

+  local_1c8[8] = '\0';

+  local_1c8[9] = '\0';

+  local_1c8[10] = '\0';

+  local_1c8[0xb] = '\0';

+  local_1c8[0xc] = '\0';

+  local_1c8[0xd] = '\0';

+  local_1c8[0xe] = '\0';

+  local_1c8[0xf] = '\0';

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)(local_1c8 + 8));

+  pwVar18 = (wchar_t *)(local_1c8 + 8);

+  pCVar14 = local_188;

+  local_1c8._0_4_ =

+       CVirtualDesktopVisibilityPolicy_CreateInstance

+                 ((IVirtualDesktopNotification *)local_188,p_Var19,(void **)pwVar18);

+  if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+    CCriticalFailureHandler::GetFakeFailure(pCVar14,(long *)local_1c8);

+    CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+  }

+  if ((int)local_1c8._0_4_ < 0) {

+    if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+      pwVar18 = L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+      CCriticalFailureHandler::HandleFailure

+                (pCVar14,(long *)local_1c8,

+                 (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                 0x4c,in_stack_fffffffffffffe08,(__uint64 *)in_stack_fffffffffffffe10);

+    }

+    uVar17 = local_1c8._0_4_;

+    if (-1 < (int)local_1c8._0_4_) goto LAB_1;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x4c,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",local_1c8._0_4_)

+    ;

+  }

+  else {

+LAB_1:

+    local_1a8._0_8_ = (IVirtualDesktopFactory *)0x0;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_1a8);

+    p_Var19 = &local_1a8;

+    this_01 = (uchar  [8])local_1c8._8_8_;

+    local_1c8._0_4_ =

+         CVirtualDesktopFactory_CreateInstance

+                   ((IVirtualDesktopVisibilityPolicy *)local_1c8._8_8_,

+                    *(IVirtualDesktopLock **)this_00,(_GUID *)pwVar18,(void **)p_Var19);

+    if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+      CCriticalFailureHandler::GetFakeFailure((CCriticalFailureHandler *)this_01,(long *)local_1c8);

+      CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+    }

+    if ((int)local_1c8._0_4_ < 0) {

+      if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+        p_Var19 = (_GUID *)&DAT_2;

+        CCriticalFailureHandler::HandleFailure

+                  ((CCriticalFailureHandler *)this_01,(long *)local_1c8,

+                   (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                   0x50,in_stack_fffffffffffffe08,(__uint64 *)in_stack_fffffffffffffe10);

+      }

+      if (-1 < (int)local_1c8._0_4_) goto LAB_3;

+      uVar8 = 0x50;

+LAB_4:

+      uVar17 = local_1c8._0_4_;

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,uVar8,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                 local_1c8._0_4_);

+    }

+    else {

+LAB_3:

+      p_Var1 = (_GUID *)(this + 0xf0);

+      p_Var11 = p_Var1;

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)p_Var1);

+      local_1c8._0_4_ = VirtualDesktopRegistryHelpers_CreateInstance(p_Var11,(void **)p_Var1);

+      if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+        CCriticalFailureHandler::GetFakeFailure

+                  ((CCriticalFailureHandler *)p_Var11,(long *)local_1c8);

+        CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+      }

+      if ((int)local_1c8._0_4_ < 0) {

+        if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+          p_Var19 = (_GUID *)0x53;

+          CCriticalFailureHandler::HandleFailure

+                    ((CCriticalFailureHandler *)p_Var11,(long *)local_1c8,

+                     (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                     ,0x53,in_stack_fffffffffffffe08,(__uint64 *)in_stack_fffffffffffffe10);

+        }

+        if ((int)local_1c8._0_4_ < 0) {

+          uVar8 = 0x53;

+          goto LAB_4;

+        }

+      }

+      local_1b0 = (IVirtualDesktopPersistence *)0x0;

+      pCVar12 = (ComPtr<IImmersiveSystemModeNotification> *)&local_1b0;

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar12);

+      local_1c8._0_4_ =

+           CreatePersistence((CVirtualDesktopComponent *)pCVar12,

+                             *(IVirtualDesktopRegistryHelpers **)p_Var1,&local_1b0);

+      if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+        CCriticalFailureHandler::GetFakeFailure

+                  ((CCriticalFailureHandler *)pCVar12,(long *)local_1c8);

+        CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+      }

+      if ((int)local_1c8._0_4_ < 0) {

+        if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+          p_Var19 = (_GUID *)0x57;

+          CCriticalFailureHandler::HandleFailure

+                    ((CCriticalFailureHandler *)pCVar12,(long *)local_1c8,

+                     (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                     ,0x57,in_stack_fffffffffffffe08,(__uint64 *)in_stack_fffffffffffffe10);

+        }

+        uVar17 = local_1c8._0_4_;

+        if (-1 < (int)local_1c8._0_4_) goto LAB_5;

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x57,

+                   "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                   local_1c8._0_4_);

+      }

+      else {

+LAB_5:

+        local_1b8 = (IVirtualDesktopCollection *)0x0;

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b8);

+        iVar9 = Mirror_IsThreadRTL();

+        ppIVar21 = &local_1b8;

+        pCVar14 = (CCriticalFailureHandler *)local_1a8._0_8_;

+        local_1c8._0_4_ =

+             CVirtualDesktopCollection_CreateInstance

+                       ((IVirtualDesktopFactory *)local_1a8._0_8_,local_1b0,iVar9 != 0,p_Var19,

+                        ppIVar21);

+        if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+          CCriticalFailureHandler::GetFakeFailure(pCVar14,(long *)local_1c8);

+          CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+        }

+        if ((int)local_1c8._0_4_ < 0) {

+          if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+            p_Var19 = (_GUID *)0x5b;

+            CCriticalFailureHandler::HandleFailure

+                      (pCVar14,(long *)local_1c8,

+                       (ushort *)

+                       L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",0x5b,

+                       (__uint64 *)ppIVar21,(__uint64 *)in_stack_fffffffffffffe10);

+          }

+          uVar17 = local_1c8._0_4_;

+          if (-1 < (int)local_1c8._0_4_) goto LAB_6;

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x5b,

+                     "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                     local_1c8._0_4_);

+        }

+        else {

+LAB_6:

+          local_198._0_8_ = (IVirtualDesktopDefaultForegroundHandler *)0x0;

+          p_Var11 = &local_198;

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)p_Var11);

+          local_1c8._0_4_ =

+               CVirtualDesktopDefaultForegroundHandler_CreateInstance(p_Var11,(void **)&local_198);

+          if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+            CCriticalFailureHandler::GetFakeFailure

+                      ((CCriticalFailureHandler *)p_Var11,(long *)local_1c8);

+            CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+          }

+          if (-1 < (int)local_1c8._0_4_) {

+LAB_7:

+            pCVar12 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x98);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar12);

+            pIVar13 = local_1b8;

+            pCVar22 = pCVar12;

+            local_1c8._0_4_ =

+                 CVirtualDesktopForegroundPolicy_CreateInstance

+                           (local_1b8,(IVirtualDesktopVisibilityPolicy *)local_1c8._8_8_,

+                            (IVirtualDesktopDefaultForegroundHandler *)local_198._0_8_,p_Var19,

+                            (void **)pCVar12);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure

+                        ((CCriticalFailureHandler *)pIVar13,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                CCriticalFailureHandler::HandleFailure

+                          ((CCriticalFailureHandler *)pIVar13,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0x65,(__uint64 *)pCVar22,(__uint64 *)in_stack_fffffffffffffe10);

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                uVar8 = 0x65;

+                goto LAB_8;

+              }

+            }

+            pCVar22 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0xa0);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar22);

+            pIVar20 = *(IVirtualDesktopForegroundPolicy **)pCVar12;

+            pIVar13 = local_1b8;

+            pIVar15 = local_1b0;

+            local_1c8._0_4_ =

+                 CVirtualDesktopManager_CreateInstance

+                           (local_1b8,(IVirtualDesktopVisibilityPolicy *)local_1c8._8_8_,

+                            (IVirtualDesktopNotification *)local_188,pIVar20,local_1b0,

+                            (IUnknown *)in_stack_fffffffffffffe10,*(IVirtualDesktopLock **)this_00,

+                            in_stack_fffffffffffffe20,(void **)pCVar22);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure

+                        ((CCriticalFailureHandler *)pIVar13,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                pIVar20 = (IVirtualDesktopForegroundPolicy *)0x6f;

+                CCriticalFailureHandler::HandleFailure

+                          ((CCriticalFailureHandler *)pIVar13,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0x6f,(__uint64 *)pIVar15,(__uint64 *)in_stack_fffffffffffffe10);

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                uVar8 = 0x6f;

+                goto LAB_8;

+              }

+            }

+            local_1a8.Data4[0] = '\0';

+            local_198.Data4[0] = '\0';

+            local_198.Data4[1] = '\0';

+            local_198.Data4[2] = '\0';

+            local_198.Data4[3] = '\0';

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

+                       ::__l2::impl;

+            bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::__private_IsEnabled

+                              ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                                ::__l2::impl);

+            if (bVar7) {

+              local_198.Data4[0] = '\0';

+              local_198.Data4[1] = '\0';

+              local_198.Data4[2] = '\0';

+              local_198.Data4[3] = '\0';

+              p_Var24 = (__uint64 *)0x0;

+              p_Var19 = (_GUID *)0x0;

+              pIVar15 = local_1b0;

+              local_1c8._0_4_ =

+                   (**(code **)(*(longlong *)local_1b0 + 0x28))

+                             (local_1b0,0,*(undefined8 *)pCVar22,local_1b8);

+              if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                p_Var19 = (_GUID *)local_1c8;

+                CCriticalFailureHandler::GetFakeFailure

+                          ((CCriticalFailureHandler *)pIVar15,(long *)p_Var19);

+                CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                  p_Var19 = (_GUID *)local_1c8;

+                  CCriticalFailureHandler::HandleFailure

+                            ((CCriticalFailureHandler *)pIVar15,(long *)p_Var19,

+                             (ushort *)

+                             L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                             0x8d,p_Var24,(__uint64 *)in_stack_fffffffffffffe10);

+                }

+                if ((int)local_1c8._0_4_ < 0) {

+                  uVar8 = 0x8d;

+                  goto LAB_8;

+                }

+              }

+            }

+            else {

+              local_1c8._0_4_ =

+                   wil::wnf_query_nothrow<_TABLETMODESTATE>

+                             ((_WNF_STATE_NAME *)this_02,(bool *)local_1a8.Data4,

+                              (_TABLETMODESTATE *)local_198.Data4,(WNF_CHANGE_STAMP_STRUCT *)pIVar20

+                             );

+              if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                CCriticalFailureHandler::GetFakeFailure

+                          ((CCriticalFailureHandler *)this_02,(long *)local_1c8);

+                CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                  CCriticalFailureHandler::HandleFailure

+                            ((CCriticalFailureHandler *)this_02,(long *)local_1c8,

+                             (ushort *)

+                             L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                             0x75,(__uint64 *)pIVar15,(__uint64 *)in_stack_fffffffffffffe10);

+                }

+                if ((int)local_1c8._0_4_ < 0) {

+                  uVar8 = 0x75;

+                  goto LAB_8;

+                }

+              }

+              if (local_1a8.Data4[0] == '\0') {

+                local_198.Data4[0] = '\0';

+                local_198.Data4[1] = '\0';

+                local_198.Data4[2] = '\0';

+                local_198.Data4[3] = '\0';

+              }

+              pCVar12 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0xd0);

+              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar12);

+              pIVar23 = *(IVirtualDesktopLock **)this_00;

+              pCVar14 = (CCriticalFailureHandler *)(ulonglong)(uint)local_198.Data4._0_4_;

+              local_1c8._0_4_ =

+                   VirtualDesktopTabletModePolicy_CreateInstance

+                             (local_198.Data4._0_4_,local_1b8,

+                              *(IVirtualDesktopManagerPrivate **)pCVar22,

+                              (IVirtualDesktopVisibilityPolicy *)local_1c8._8_8_,pIVar23,

+                              in_stack_fffffffffffffe10,(void **)pCVar12);

+              if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                CCriticalFailureHandler::GetFakeFailure(pCVar14,(long *)local_1c8);

+                CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                  CCriticalFailureHandler::HandleFailure

+                            (pCVar14,(long *)local_1c8,

+                             (ushort *)

+                             L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                             0x82,(__uint64 *)pIVar23,(__uint64 *)in_stack_fffffffffffffe10);

+                }

+                if ((int)local_1c8._0_4_ < 0) {

+                  uVar8 = 0x82;

+                  goto LAB_8;

+                }

+              }

+              p_Var24 = *(__uint64 **)pCVar12;

+              p_Var19 = (_GUID *)(ulonglong)(uint)local_198.Data4._0_4_;

+              pIVar15 = local_1b0;

+              local_1c8._0_4_ =

+                   (**(code **)(*(longlong *)local_1b0 + 0x28))

+                             (local_1b0,p_Var19,*(undefined8 *)pCVar22,local_1b8);

+              if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                p_Var19 = (_GUID *)local_1c8;

+                CCriticalFailureHandler::GetFakeFailure

+                          ((CCriticalFailureHandler *)pIVar15,(long *)p_Var19);

+                CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                  p_Var19 = (_GUID *)local_1c8;

+                  CCriticalFailureHandler::HandleFailure

+                            ((CCriticalFailureHandler *)pIVar15,(long *)p_Var19,

+                             (ushort *)

+                             L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                             0x86,p_Var24,(__uint64 *)in_stack_fffffffffffffe10);

+                }

+                if ((int)local_1c8._0_4_ < 0) {

+                  uVar8 = 0x86;

+                  goto LAB_8;

+                }

+              }

+            }

+            pwVar18 = (wchar_t *)(this + 0xa8);

+            plVar4 = *(longlong **)pwVar18;

+            *(void **)pwVar18 = (void *)0x0;

+            local_178 = (_GUID *)pwVar18;

+            if (plVar4 != (longlong *)0x0) {

+              (**(code **)(*plVar4 + 0x10))();

+            }

+            pCVar14 = (CCriticalFailureHandler *)(ulonglong)uVar8;

+            local_1c8._0_4_ =

+                 VirtualDesktopAnimationSyncNotifications_CreateInstance

+                           (uVar8,p_Var19,(void **)pwVar18);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure(pCVar14,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              uVar8 = 0x92;

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                pwVar18 = L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+                CCriticalFailureHandler::HandleFailure

+                          (pCVar14,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0x92,p_Var24,(__uint64 *)in_stack_fffffffffffffe10);

+              }

+              if ((int)local_1c8._0_4_ < 0) goto LAB_8;

+            }

+            pCVar2 = this + 0xb8;

+            plVar4 = *(longlong **)pCVar2;

+            *(void **)pCVar2 = (void *)0x0;

+            local_180 = pCVar2;

+            if (plVar4 != (longlong *)0x0) {

+              (**(code **)(*plVar4 + 0x10))();

+            }

+            pIVar16 = *(IVirtualDesktopManagerPrivate **)pCVar22;

+            local_1c8._0_4_ =

+                 CVirtualDesktopHotkeyHandler_CreateInstance

+                           (pIVar16,*(IVirtualDesktopLock **)this_00,(_GUID *)pwVar18,

+                            (void **)pCVar2);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure

+                        ((CCriticalFailureHandler *)pIVar16,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              uVar8 = 0x97;

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                CCriticalFailureHandler::HandleFailure

+                          ((CCriticalFailureHandler *)pIVar16,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0x97,p_Var24,(__uint64 *)in_stack_fffffffffffffe10);

+              }

+              if ((int)local_1c8._0_4_ < 0) goto LAB_8;

+            }

+            pCVar14 = local_188;

+            pCVar12 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0xf8);

+            pcVar5 = (code *)**(undefined8 **)local_188;

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar12);

+            local_1c8._0_4_ = (*pcVar5)(pCVar14,&_GUID_81ae09de_340b_4b9f_9cba_61bb8e6a8a68,pCVar12)

+            ;

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure(pCVar14,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                CCriticalFailureHandler::HandleFailure

+                          (pCVar14,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0x99,p_Var24,(__uint64 *)in_stack_fffffffffffffe10);

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                uVar8 = 0x99;

+                goto LAB_8;

+              }

+            }

+            pCVar3 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0xe8);

+            local_170 = pCVar3;

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar3);

+            pIVar23 = *(IVirtualDesktopLock **)this_00;

+            pIVar16 = *(IVirtualDesktopManagerPrivate **)pCVar22;

+            p_Var19 = *(_GUID **)pCVar12;

+            pCVar14 = (CCriticalFailureHandler *)(ulonglong)(uint)local_198.Data4._0_4_;

+            local_1c8._0_4_ =

+                 VirtualDesktopAcessibility_CreateInstance

+                           (local_198.Data4._0_4_,

+                            (IVirtualDesktopNotificationServicePrivate *)p_Var19,local_1b8,pIVar16,

+                            pIVar23,in_stack_fffffffffffffe10,(void **)pCVar3);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              p_Var19 = (_GUID *)local_1c8;

+              CCriticalFailureHandler::GetFakeFailure(pCVar14,(long *)p_Var19);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              uVar8 = 0xa2;

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                pIVar16 = (IVirtualDesktopManagerPrivate *)0xa2;

+                p_Var19 = (_GUID *)local_1c8;

+                CCriticalFailureHandler::HandleFailure

+                          (pCVar14,(long *)p_Var19,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0xa2,(__uint64 *)pIVar23,(__uint64 *)in_stack_fffffffffffffe10);

+              }

+              if ((int)local_1c8._0_4_ < 0) goto LAB_8;

+            }

+            pCVar12 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0xe0);

+            local_168 = pCVar12;

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar12);

+            this_03 = *(IVirtualDesktopManagerInternal **)pCVar22;

+            local_1c8._0_4_ =

+                 VirtualDesktopGestureHandler_CreateInstance(this_03,p_Var19,(void **)pCVar12);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure

+                        ((CCriticalFailureHandler *)this_03,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              uVar8 = 0xa4;

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                pIVar16 = (IVirtualDesktopManagerPrivate *)0xa4;

+                CCriticalFailureHandler::HandleFailure

+                          ((CCriticalFailureHandler *)this_03,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0xa4,(__uint64 *)pIVar23,(__uint64 *)in_stack_fffffffffffffe10);

+              }

+              if ((int)local_1c8._0_4_ < 0) goto LAB_8;

+            }

+            pCVar12 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0xd8);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar12);

+            p_Var19 = *(_GUID **)this_00;

+            this_04 = *(IVirtualDesktopManagerPrivate **)pCVar22;

+            local_1c8._0_4_ =

+                 VirtualDesktopPinnedAppsHandler_CreateInstance

+                           (this_04,*(IVirtualDesktopRegistryHelpers **)p_Var1,

+                            (IVirtualDesktopVisibilityPolicy *)local_1c8._8_8_,(IUnknown *)pIVar16,

+                            (IVirtualDesktopLock *)p_Var19,in_stack_fffffffffffffe10,

+                            (void **)pCVar12);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure

+                        ((CCriticalFailureHandler *)this_04,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              uVar8 = 0xac;

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                CCriticalFailureHandler::HandleFailure

+                          ((CCriticalFailureHandler *)this_04,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0xac,(__uint64 *)p_Var19,(__uint64 *)in_stack_fffffffffffffe10);

+              }

+              if ((int)local_1c8._0_4_ < 0) goto LAB_8;

+            }

+            p_Var1 = (_GUID *)(this + 0xc0);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)p_Var1);

+            pIVar16 = *(IVirtualDesktopManagerPrivate **)pCVar22;

+            p_Var11 = p_Var1;

+            local_1c8._0_4_ =

+                 VirtualDesktopWindowMoveManager_CreateInstance

+                           (pIVar16,local_1b8,(IVirtualDesktopVisibilityPolicy *)local_1c8._8_8_,

+                            *(IVirtualDesktopPinnedAppsPrivate **)pCVar12,p_Var19,(void **)p_Var1);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure

+                        ((CCriticalFailureHandler *)pIVar16,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              uVar8 = 0xb3;

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                CCriticalFailureHandler::HandleFailure

+                          ((CCriticalFailureHandler *)pIVar16,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0xb3,(__uint64 *)p_Var19,(__uint64 *)p_Var11);

+              }

+              if ((int)local_1c8._0_4_ < 0) goto LAB_8;

+            }

+            pCVar3 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 200);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar3);

+            pIVar23 = *(IVirtualDesktopLock **)this_00;

+            pIVar16 = *(IVirtualDesktopManagerPrivate **)pCVar22;

+            local_1c8._0_4_ =

+                 VirtualDesktopsApi_CreateInstance

+                           (pIVar16,local_1b8,(IVirtualDesktopVisibilityPolicy *)local_1c8._8_8_,

+                            *(IVirtualDesktopWindowMoveManager **)p_Var1,pIVar23,p_Var11,

+                            (void **)pCVar3);

+            if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+              CCriticalFailureHandler::GetFakeFailure

+                        ((CCriticalFailureHandler *)pIVar16,(long *)local_1c8);

+              CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+            }

+            if ((int)local_1c8._0_4_ < 0) {

+              if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                CCriticalFailureHandler::HandleFailure

+                          ((CCriticalFailureHandler *)pIVar16,(long *)local_1c8,

+                           (ushort *)

+                           L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           0xbb,(__uint64 *)pIVar23,(__uint64 *)p_Var11);

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                uVar8 = 0xbb;

+                goto LAB_8;

+              }

+            }

+            bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::__private_IsEnabled

+                              ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                                ::__l2::impl);

+            local_158 = 0x41b27b6ec5e0cdca;

+            uStack_150 = 0x7b46cc7539d9c49f;

+            local_138 = 0x475915b6a822a81e;

+            uStack_130 = 0x7f5591f3887ba996;

+            local_118 = 0x464c4a09a501fdec;

+            uStack_110 = 0x1849b8219c1b4eae;

+            local_f8 = 0x454c29bea5cd92ff;

+            uStack_f0 = 0x1b3ffb7928d8048d;

+            local_d8 = 0x452445fe023b1604;

+            uStack_d0 = 0x6455be39fcaf08a7;

+            local_148 = *(undefined8 *)pCVar22;

+            if (bVar7) {

+              local_140 = 0;

+              local_128 = *(void **)local_180;

+              local_120 = 0;

+              local_108 = local_188;

+              local_100 = 0;

+              local_e8 = *(undefined8 *)pCVar3;

+              local_e0 = 0;

+              local_c8 = *(void **)local_178;

+              local_c0 = 0;

+              local_b8 = 0x49090a849975b71d;

+              uStack_b0 = 0xc655fabb55b4debd;

+              local_a8 = *(undefined8 *)local_170;

+              local_a0 = 0;

+              local_98 = 0x46b81c87b5a399e7;

+              uStack_90 = 0xbd71b14757fce988;

+              local_88 = *(undefined8 *)pCVar12;

+              local_80 = 0;

+              local_78 = 0x4672f644e487360e;

+              uStack_70 = 0xc61bdcf2a6973780;

+              local_68 = *(undefined8 *)local_168;

+              local_60 = 0;

+              this_05 = (CImmersiveShellComponent *)(this + 0x28);

+              local_1c8._0_4_ =

+                   CImmersiveShellComponent::RegisterServiceInformation

+                             (this_05,(ISC_SERVICE *)&local_158,8);

+              if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                CCriticalFailureHandler::GetFakeFailure

+                          ((CCriticalFailureHandler *)this_05,(long *)local_1c8);

+                CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                uVar8 = 0xcc;

+LAB_9:

+                if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+                  CCriticalFailureHandler::HandleFailure

+                            ((CCriticalFailureHandler *)this_05,(long *)local_1c8,

+                             (ushort *)

+                             L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                             uVar8,(__uint64 *)pIVar23,(__uint64 *)p_Var11);

+                }

+                if ((int)local_1c8._0_4_ < 0) goto LAB_8;

+              }

+            }

+            else {

+              local_140 = 0;

+              local_128 = *(void **)(this + 0xb8);

+              local_120 = 0;

+              local_108 = local_188;

+              local_100 = 0;

+              local_e8 = *(undefined8 *)pCVar3;

+              local_e0 = 0;

+              local_c8 = *(void **)(this + 0xa8);

+              local_c0 = 0;

+              local_b8 = 0x405838fc615ec5e3;

+              uStack_b0 = 0xc32af4fc04a2acab;

+              local_a8 = *(undefined8 *)(this + 0xd0);

+              local_a0 = 0;

+              local_98 = 0x49090a849975b71d;

+              uStack_90 = 0xc655fabb55b4debd;

+              local_88 = *(undefined8 *)(this + 0xe8);

+              local_80 = 0;

+              local_78 = 0x46b81c87b5a399e7;

+              uStack_70 = 0xbd71b14757fce988;

+              local_68 = *(undefined8 *)pCVar12;

+              local_60 = 0;

+              local_58 = 0x4672f644e487360e;

+              uStack_50 = 0xc61bdcf2a6973780;

+              local_48 = *(undefined8 *)(this + 0xe0);

+              local_40 = 0;

+              this_05 = (CImmersiveShellComponent *)(this + 0x28);

+              local_1c8._0_4_ =

+                   CImmersiveShellComponent::RegisterServiceInformation

+                             (this_05,(ISC_SERVICE *)&local_158,9);

+              if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                CCriticalFailureHandler::GetFakeFailure

+                          ((CCriticalFailureHandler *)this_05,(long *)local_1c8);

+                CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+              }

+              if ((int)local_1c8._0_4_ < 0) {

+                uVar8 = 0xdc;

+                goto LAB_9;

+              }

+            }

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_198);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b8);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b0);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_1a8);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)(local_1c8 + 8));

+            uVar17 = 0;

+            goto LAB_0;

+          }

+          if ((local_1c8._0_4_ != 0x8007000e) && (local_1c8._0_4_ != 0x8027ffff)) {

+            p_Var19 = (_GUID *)0x5f;

+            CCriticalFailureHandler::HandleFailure

+                      ((CCriticalFailureHandler *)p_Var11,(long *)local_1c8,

+                       (ushort *)

+                       L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",0x5f,

+                       (__uint64 *)ppIVar21,(__uint64 *)in_stack_fffffffffffffe10);

+          }

+          if (-1 < (int)local_1c8._0_4_) goto LAB_7;

+          uVar8 = 0x5f;

+LAB_8:

+          uVar17 = local_1c8._0_4_;

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,uVar8,

+                     "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                     local_1c8._0_4_);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_198);

+        }

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b8);

+      }

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b0);

+    }

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_1a8);

+  }

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)(local_1c8 + 8));

+LAB_0:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_188);

+  return uVar17;

+}

+
```

## `GamingPosturePositionerTelemetryProvider::SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[31]>`  (modified)

```diff
--- GamingPosturePositionerTelemetryProvider::SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[31]>
+++ GamingPosturePositionerTelemetryProvider::SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[31]>
@@ -1,2 +1,29 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB GamingPosturePositionerTelemetryProvider::SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[31]> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: static void __cdecl GamingPosturePositionerTelemetryProvider::SkippedArrangingView<struct

+   HWND__ * __ptr64 & __ptr64,unsigned short const (& __ptr64)[31]>(struct HWND__ * __ptr64 &

+   __ptr64,unsigned short const (& __ptr64)[31]) */

+

+void __cdecl

+GamingPosturePositionerTelemetryProvider::

+SkippedArrangingView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[31]>

+          (HWND__ **param_1,ushort *param_2)

+

+{

+  _tlgProvider_t *p_Var1;

+  _GUID *in_R8;

+  _GUID *in_R9;

+  ushort *local_res18;

+  HWND__ *local_res20;

+  

+  p_Var1 = Provider();

+  if (5 < *(uint *)p_Var1) {

+    local_res20 = *param_1;

+    local_res18 = param_2;

+    _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+    ::Write<_tlgWrapperByVal<8>,_tlgWrapSz<unsigned_short>_>

+              (p_Var1,&DAT_0,in_R8,in_R9,(_tlgWrapperByVal<8> *)&local_res20,

+               (_tlgWrapSz<unsigned_short> *)&local_res18);

+  }

+  return;

+}

+
```

## `ImmersiveIcons::GetIconData`  (modified)

```diff
--- ImmersiveIcons::GetIconData
+++ ImmersiveIcons::GetIconData
@@ -1,2 +1,1047 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB ImmersiveIcons::GetIconData : 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 */

+/* long __cdecl ImmersiveIcons::GetIconData(unsigned short const * __ptr64,struct

+   ImmersiveIcons::LoadIconParams const & __ptr64,struct ImmersiveIcons::IconData2 * __ptr64,class

+   ImmersiveIconsLoggingTelemetry::LoadIconW * __ptr64) */

+

+long __cdecl

+ImmersiveIcons::GetIconData

+          (ushort *param_1,LoadIconParams *param_2,IconData2 *param_3,LoadIconW *param_4)

+

+{

+  code *pcVar1;

+  longlong *plVar2;

+  bool bVar3;

+  int iVar4;

+  RESOURCE_CONTRAST RVar5;

+  uint uVar6;

+  BOOL BVar7;

+  long lVar8;

+  int iVar9;

+  LPCWSTR pWVar10;

+  longlong lVar11;

+  LPCWSTR pWVar12;

+  ushort *puVar13;

+  GUID *this;

+  HStringReference *this_00;

+  ushort uVar14;

+  ushort **ppuVar15;

+  NativeString<class_Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *pNVar16;

+  wchar_t **ppwVar17;

+  ushort uVar18;

+  ReportingKind RVar19;

+  __uint64 _Var20;

+  undefined8 *puVar21;

+  GUID *pGVar22;

+  wchar_t *pwVar23;

+  int iVar24;

+  void *unaff_retaddr;

+  undefined1 auStackY_248 [32];

+  undefined8 local_218;

+  longlong *local_210;

+  IconData2 local_208;

+  LPCWSTR local_200;

+  undefined1 local_1f8 [8];

+  longlong *local_1f0;

+  undefined8 *local_1e8;

+  IResourceContext *local_1e0;

+  undefined1 local_1d8 [8];

+  ushort *local_1d0;

+  undefined8 local_1c8;

+  undefined8 local_1c0;

+  ushort *local_1b8;

+  undefined8 local_1b0;

+  undefined8 local_1a8;

+  LPCWSTR local_1a0;

+  ulonglong local_198;

+  undefined8 local_190;

+  undefined1 local_188 [32];

+  undefined1 local_168 [8];

+  longlong *local_160;

+  LPCWSTR local_158;

+  undefined1 local_150 [16];

+  IUnknown *local_140;

+  ushort *local_138;

+  undefined8 local_130;

+  undefined8 local_128;

+  undefined8 local_120;

+  undefined8 local_118;

+  undefined8 local_110;

+  undefined8 local_108;

+  undefined8 local_100;

+  undefined8 local_f8;

+  undefined8 local_f0;

+  undefined8 local_e8;

+  undefined8 local_e0;

+  undefined8 local_d8;

+  wchar_t *local_d0;

+  ushort *local_c8;

+  HStringReference local_c0 [24];

+  HSTRING__ *local_a8;

+  undefined8 local_a0;

+  undefined8 local_98;

+  undefined8 local_90;

+  wchar_t *local_80 [5];

+  wchar_t *local_58 [3];

+  

+  this = (GUID *)(local_150 + 8);

+  local_58[0] = (wchar_t *)(__security_cookie ^ (ulonglong)auStackY_248);

+  local_140 = (IUnknown *)0x0;

+  Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+            ((ComPtr<IApplicationResolver> *)&local_140);

+  iVar4 = SHCreateItemInKnownFolder

+                    (&FOLDERID_AppsFolder,0x4000,param_1,&_GUID_43826d1e_e718_42ee_bc55_a1e261c37bfe

+                    );

+  if (iVar4 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x10a,"shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",

+               iVar4);

+    goto LAB_0;

+  }

+  local_218 = 0;

+  Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>::InternalAddRef

+            ((ComPtr<IImmersiveApplicationInternal> *)&local_218);

+  pGVar22 = (GUID *)&DAT_1;

+  iVar4 = wil::PropertyStoreHelperBase<IPropertyStore>::InitFromItem

+                    ((PropertyStoreHelperBase<IPropertyStore> *)&local_218,local_140,1,

+                     (_tagpropertykey *)&DAT_1,4);

+  if (iVar4 < 0) {

+    uVar6 = 0x119;

+LAB_2:

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar6,"shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",

+               iVar4);

+  }

+  else {

+    local_188._16_4_ = 4;

+    local_188._0_8_ = (ushort *)0x443c906986d40b4d;

+    local_188[8] = 0x81;

+    local_188[9] = 0x9a;

+    local_188[10] = '*';

+    local_188[0xb] = 'T';

+    local_188[0xc] = '\t';

+    local_188[0xd] = '\r';

+    local_188[0xe] = 0xcc;

+    local_188[0xf] = 0xec;

+    iVar4 = wil::PropertyStoreHelperBase<IPropertyStore>::GetAsUInt32<_tagpropertykey>

+                      ((PropertyStoreHelperBase<IPropertyStore> *)&local_218,

+                       (_tagpropertykey *)local_188,(ulong *)(param_3 + 0xc));

+    if (iVar4 < 0) {

+      uVar6 = 0x11b;

+      goto LAB_2;

+    }

+    local_1a0 = (LPCWSTR)0x0;

+    local_198 = 0;

+    local_190 = 0;

+    Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+              ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1a0);

+    local_198 = 0xffffffffffffffff;

+    local_190 = 0xffffffffffffffff;

+    local_188._0_8_ = (ushort *)0x443c906986d40b4d;

+    local_188[8] = 0x81;

+    local_188[9] = 0x9a;

+    local_188[10] = '*';

+    local_188[0xb] = 'T';

+    local_188[0xc] = '\t';

+    local_188[0xd] = '\r';

+    local_188[0xe] = 0xcc;

+    local_188[0xf] = 0xec;

+    local_188._16_4_ = 2;

+    iVar4 = wil::PropertyStoreHelperBase<IPropertyStore>::GetString<_tagpropertykey>

+                      ((PropertyStoreHelperBase<IPropertyStore> *)&local_218,

+                       (_tagpropertykey *)local_188,(ushort **)&local_1a0);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x11e,"shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",

+                 iVar4);

+    }

+    else {

+      Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+      _EnsureCount((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1a0);

+      pWVar12 = local_1a0;

+      puVar13 = (ushort *)(local_198 & 0xffffffff);

+      pWVar10 = local_1a0;

+      Microsoft::WRL::Wrappers::HStringReference::HStringReference

+                (local_c0,(ushort *)local_1a0,(uint)local_198);

+      uVar18 = (ushort)pWVar10;

+      local_1b8 = (ushort *)0x0;

+      local_1b0 = 0;

+      local_1a8 = 0;

+      bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60999485>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_60999485> *)

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

+                          ::__l2::impl);

+      if ((bVar3) && (param_4 != (LoadIconW *)0x0)) {

+        ppuVar15 = (ushort **)local_1d8;

+        local_1d8 = (undefined1  [8])pWVar12;

+        ImmersiveIconsLoggingTelemetry::LoadIconW::

+        ImmersiveIcons_ResourceInit<unsigned_short_const*___ptr64>(param_4,ppuVar15);

+        uVar18 = (ushort)ppuVar15;

+      }

+      bVar3 = ShellMRTHelper::Common::HasFileUriScheme(local_a8);

+      if (bVar3) {

+        Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1b8);

+        local_1b0 = 0xffffffffffffffff;

+        ppuVar15 = &local_1b8;

+        local_1a8 = 0xffffffffffffffff;

+        iVar4 = TileUtils::ConvertFileUriToFilePath((ushort *)pWVar12,ppuVar15);

+        uVar18 = (ushort)ppuVar15;

+        if (iVar4 < 0) {

+          uVar6 = 0x139;

+LAB_3:

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,uVar6,

+                     "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4);

+        }

+        else {

+          bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60999485>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60999485> *)

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

+                                       ::__l2::impl);

+          if ((bVar3) && (param_4 != (LoadIconW *)0x0)) {

+            local_1f8 = (undefined1  [8])((ulonglong)local_1f8 & 0xffffffff00000000);

+            local_1d8 = (undefined1  [8])LoggingUtil::CensorFilePath(local_1b8);

+            pGVar22 = (GUID *)local_1f8;

+            ppuVar15 = (ushort **)local_1d8;

+            ImmersiveIconsLoggingTelemetry::LoadIconW::

+            ImmersiveIcons_FileAccess<unsigned_short_const*___ptr64,unsigned_short_const_(&___ptr64)[6],long>

+                      (param_4,ppuVar15,puVar13,(long *)pGVar22);

+            uVar18 = (ushort)ppuVar15;

+          }

+LAB_4:

+          iVar9 = 0;

+          if ((local_1b8 != (ushort *)0x0) && (*local_1b8 != 0)) {

+            Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+            ReplaceChars((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                         &local_1b8,uVar18,(ushort)puVar13);

+            puVar13 = local_1b8;

+            iVar4 = StringCchCopyW((ushort *)(param_3 + 0x10),0x104,local_1b8);

+            if (iVar4 < 0) {

+              uVar6 = 0x227;

+              goto LAB_3;

+            }

+            bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60999485>::

+                    __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60999485> *)

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

+                                         ::__l2::impl);

+            if ((bVar3) && (param_4 != (LoadIconW *)0x0)) {

+              local_1f8 = (undefined1  [8])((ulonglong)local_1f8 & 0xffffffff00000000);

+              local_1d8 = (undefined1  [8])LoggingUtil::CensorFilePath((ushort *)(param_3 + 0x10));

+              pGVar22 = (GUID *)local_1f8;

+              ImmersiveIconsLoggingTelemetry::LoadIconW::

+              ImmersiveIcons_FileAccess<unsigned_short_const*___ptr64,unsigned_short_const_(&___ptr64)[7],long>

+                        (param_4,(ushort **)local_1d8,puVar13,(long *)pGVar22);

+            }

+            *(undefined8 *)param_3 = 0;

+            param_3[8] = (IconData2)0x0;

+LAB_5:

+            iVar4 = 0;

+            if (*(int *)param_3 == 0) {

+              local_1d0 = (ushort *)0x0;

+              local_1c8 = 0;

+              local_1c0 = 0;

+              Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+              _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1d0)

+              ;

+              ppuVar15 = &local_1d0;

+              local_1c8 = 0xffffffffffffffff;

+              local_1c0 = 0xffffffffffffffff;

+              local_188._0_8_ = &DAT_6;

+              local_188[8] = 0xa8;

+              local_188[9] = 0xd0;

+              local_188[10] = 0xe1;

+              local_188[0xb] = 0xd4;

+              local_188[0xc] = '-';

+              local_188[0xd] = 0xe1;

+              local_188[0xe] = 0xd5;

+              local_188[0xf] = 0xf3;

+              local_188._16_4_ = 0x13;

+              lVar8 = wil::PropertyStoreHelperBase<IPropertyStore>::GetString<_tagpropertykey>

+                                ((PropertyStoreHelperBase<IPropertyStore> *)&local_218,

+                                 (_tagpropertykey *)local_188,ppuVar15);

+              if (-1 < lVar8) {

+                iVar9 = Windows::Internal::

+                        NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                        CompareOrdinalIgnoreCase

+                                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                    *)&local_1d0,

+                                   (ushort *)L"Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge",

+                                   (__uint64)ppuVar15);

+                if (iVar9 == 2) {

+LAB_7:

+                  *(undefined4 *)param_3 = 3;

+                }

+                else {

+                  wil::details::

+                  FeatureImpl<__WilFeatureTraits_Feature_Servicing_UnplateMicrosoftEdgeTiles_25482738>

+                  ::ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_Servicing_UnplateMicrosoftEdgeTiles_25482738>

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

+                                    ::__l2::impl,true,(ReportingKind)ppuVar15,(__uint64)pGVar22);

+                  local_80[0] = L"Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe!App";

+                  ppwVar17 = local_80;

+                  local_80[1] = L"Microsoft.MicrosoftEdge.Beta_8wekyb3d8bbwe!App";

+                  local_80[2] = L"Microsoft.MicrosoftEdge.Dev_8wekyb3d8bbwe!App";

+                  local_80[3] = L"Microsoft.MicrosoftEdge.Canary_8wekyb3d8bbwe!App";

+                  local_80[4] = L"Microsoft.MicrosoftEdge.Internal_8wekyb3d8bbwe!App";

+                  do {

+                    iVar9 = Windows::Internal::

+                            NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                            CompareOrdinalIgnoreCase

+                                      ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        *)&local_1d0,(ushort *)*ppwVar17,(__uint64)ppuVar15);

+                    if (iVar9 == 2) goto LAB_7;

+                    ppwVar17 = ppwVar17 + 1;

+                  } while (ppwVar17 != local_58);

+                }

+                iVar9 = Windows::Internal::

+                        NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                        CompareOrdinalIgnoreCase

+                                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                    *)&local_1d0,(ushort *)L"Microsoft.YourPhone_8wekyb3d8bbwe!App",

+                                   (__uint64)ppuVar15);

+                if (iVar9 == 2) {

+                  *(undefined4 *)param_3 = 3;

+                }

+              }

+              Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+              _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1d0)

+              ;

+            }

+            Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+            _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1b8);

+            local_a8 = (HSTRING__ *)0x0;

+            Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+            _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1a0);

+            Microsoft::WRL::ComPtr<IDXGIFactory>::~ComPtr<IDXGIFactory>

+                      ((ComPtr<IDXGIFactory> *)&local_218);

+            goto LAB_0;

+          }

+          local_210 = (longlong *)0x0;

+          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_210);

+          pGVar22 = &_GUID_130a2f65_2be7_4309_9a58_a9052ff2b61c;

+          iVar4 = CoCreateInstance((IID *)&_GUID_dbce7e40_7345_439d_b12c_114a11819a09,(LPUNKNOWN)0x0

+                                   ,1,(IID *)&_GUID_130a2f65_2be7_4309_9a58_a9052ff2b61c,&local_210)

+          ;

+          if (iVar4 < 0) {

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,0x16a,

+                       "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4);

+          }

+          else {

+            local_1d0 = (ushort *)0x0;

+            local_1c8 = 0;

+            local_1c0 = 0;

+            Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+            _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1d0);

+            local_1c8 = 0xffffffffffffffff;

+            local_1c0 = 0xffffffffffffffff;

+            iVar4 = GetPackageFullNameForAppsFolderItem(param_1,&local_218,&local_1d0);

+            if (iVar4 < 0) {

+              uVar6 = 0x16d;

+LAB_8:

+              wil::details::in1diag3::Return_Hr

+                        (unaff_retaddr,uVar6,

+                         "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4);

+            }

+            else {

+              iVar4 = (**(code **)(*local_210 + 0x28))(local_210,local_1d0);

+              plVar2 = local_210;

+              if (iVar4 < 0) {

+                uVar6 = 0x16f;

+                goto LAB_8;

+              }

+              local_1e8 = (undefined8 *)0x0;

+              pcVar1 = *(code **)(*local_210 + 0x38);

+              Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e8);

+              iVar4 = (*pcVar1)(plVar2,&_GUID_6e21e72b_b9b0_42ae_a686_983cf784edcd,&local_1e8);

+              puVar21 = local_1e8;

+              if (iVar4 < 0) {

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,0x172,

+                           "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4);

+              }

+              else {

+                local_1f0 = (longlong *)0x0;

+                pcVar1 = *(code **)*local_1e8;

+                Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1f0);

+                iVar4 = (*pcVar1)(puVar21,&_GUID_2fe6ec6e_da7e_4b2a_a8f9_90b289061f20,&local_1f0);

+                if (iVar4 < 0) {

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,0x175,

+                             "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4);

+                }

+                else {

+                  local_188._0_8_ = (ushort *)0x0;

+                  local_188[8] = '\0';

+                  local_188[9] = '\0';

+                  local_188[10] = '\0';

+                  local_188[0xb] = '\0';

+                  local_188[0xc] = '\0';

+                  local_188[0xd] = '\0';

+                  local_188[0xe] = '\0';

+                  local_188[0xf] = '\0';

+                  local_188._16_8_ = 0;

+                  bVar3 = ShellMRTHelper::Common::HasMsAppXUriScheme(local_a8);

+                  if (bVar3) {

+                    Windows::Internal::

+                    NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                              ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                               local_188);

+                    local_188[8] = 0xff;

+                    local_188[9] = 0xff;

+                    local_188[10] = 0xff;

+                    local_188[0xb] = 0xff;

+                    local_188[0xc] = 0xff;

+                    local_188[0xd] = 0xff;

+                    local_188[0xe] = 0xff;

+                    local_188[0xf] = 0xff;

+                    local_188._16_8_ = 0xffffffffffffffff;

+                    iVar4 = ShellMRTHelper::Common::ConvertMsAppXUriToMsResourceUri

+                                      (local_a8,(ushort **)local_188);

+                    if (iVar4 < 0) {

+                      uVar6 = 0x17c;

+                      goto LAB_9;

+                    }

+LAB_10:

+                    plVar2 = local_210;

+                    local_1e0 = (IResourceContext *)0x0;

+                    pcVar1 = *(code **)(*local_210 + 0x48);

+                    Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e0);

+                    RVar19 = (ReportingKind)&local_1e0;

+                    iVar4 = (*pcVar1)(plVar2,&_GUID_e3c22b30_8502_4b2f_9133_559674587e51);

+                    if (-1 < iVar4) {

+                      local_200 = (LPCWSTR)0x0;

+                      wil::details::FeatureImpl<__WilFeatureTraits_Feature_SystemLightTheme>::

+                      ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_SystemLightTheme> *)

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

+                                   ::__l2::impl,true,RVar19,(__uint64)pGVar22);

+                      iVar24 = iVar9;

+                      if (((*(int *)(param_2 + 0x2c) == 1) && (*(int *)(param_2 + 0x28) != 1)) &&

+                         (iVar24 = 0, *(int *)(param_2 + 0x24) != 2)) {

+                        iVar4 = InitResourceContextForLightTheme(param_2,local_1e0,param_4);

+                        plVar2 = local_1f0;

+                        if (-1 < iVar4) {

+                          local_150._0_8_ = 0;

+                          pcVar1 = *(code **)(*local_1f0 + 0x30);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)local_150);

+                          pGVar22 = (GUID *)local_150;

+                          puVar13 = (ushort *)local_188._0_8_;

+                          iVar4 = (*pcVar1)(plVar2,local_1e0);

+                          RVar19 = (ReportingKind)puVar13;

+                          iVar24 = iVar9;

+                          if (iVar4 < 0) {

+LAB_11:

+                            Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)local_150)

+                            ;

+                            goto LAB_12;

+                          }

+                          local_158 = (LPCWSTR)0x0;

+                          iVar4 = Microsoft::WRL::ComPtr<IResourceCandidate2>::

+                                  As<IResourceCandidate>

+                                            ((ComPtr<IResourceCandidate2> *)local_150,&local_158);

+                          pWVar12 = local_158;

+                          if (-1 < iVar4) {

+                            local_100 = 0;

+                            local_f8 = 0;

+                            local_f0 = 0;

+                            pcVar1 = *(code **)(*(longlong *)local_158 + 0x40);

+                            Windows::Internal::

+                            NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                      ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        *)&local_100);

+                            puVar21 = &local_100;

+                            local_f8 = 0xffffffffffffffff;

+                            local_f0 = 0xffffffffffffffff;

+                            iVar4 = (*pcVar1)(pWVar12,L"AlternateForm");

+                            if ((-1 < iVar4) &&

+                               (iVar4 = Windows::Internal::

+                                        NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        ::CompareOrdinalIgnoreCase

+                                                  ((

+                                                  NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                                  *)&local_100,(ushort *)L"lightunplated",

+                                                  (__uint64)puVar21), pWVar12 = local_158,

+                               iVar4 == 2)) {

+                              iVar9 = 1;

+                              iVar24 = 2;

+                              if (local_200 != local_158) {

+                                pWVar10 = local_200;

+                                if (local_158 != (LPCWSTR)0x0) {

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

+                                  pWVar10 = local_200;

+                                }

+                                local_200 = pWVar12;

+                                local_1d8 = (undefined1  [8])pWVar10;

+                                Microsoft::WRL::ComPtr<IUri>::InternalRelease

+                                          ((ComPtr<IUri> *)local_1d8);

+                              }

+                            }

+                            RVar19 = (ReportingKind)puVar21;

+                            Windows::Internal::

+                            NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                      ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        *)&local_100);

+                            Microsoft::WRL::ComPtr<IUri>::InternalRelease

+                                      ((ComPtr<IUri> *)&local_158);

+                            goto LAB_11;

+                          }

+                          wil::details::in1diag3::Return_Hr

+                                    (unaff_retaddr,0x1ac,

+                                     "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",

+                                     iVar4);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_158);

+                          this = (GUID *)local_150;

+LAB_13:

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)this);

+                          goto LAB_14;

+                        }

+                        wil::details::in1diag3::Return_Hr

+                                  (unaff_retaddr,0x1a6,

+                                   "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",

+                                   iVar4);

+                      }

+                      else {

+LAB_12:

+                        bVar3 = false;

+                        if (local_200 == (LPCWSTR)0x0) {

+                          iVar4 = InitResourceContextForAllThemes(param_2,local_1e0,param_4);

+                          plVar2 = local_1f0;

+                          if (-1 < iVar4) {

+                            local_150._8_8_ = 0;

+                            pcVar1 = *(code **)(*local_1f0 + 0x30);

+                            Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)this);

+                            puVar13 = (ushort *)local_188._0_8_;

+                            pGVar22 = this;

+                            iVar4 = (*pcVar1)(plVar2,local_1e0);

+                            RVar19 = (ReportingKind)puVar13;

+                            if (-1 < iVar4) {

+                              iVar4 = Microsoft::WRL::ComPtr<IResourceCandidate2>::

+                                      As<IResourceCandidate>

+                                                ((ComPtr<IResourceCandidate2> *)this,&local_200);

+                              pWVar12 = local_200;

+                              if (iVar4 < 0) {

+                                wil::details::in1diag3::Return_Hr

+                                          (unaff_retaddr,0x1c3,

+                                           "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp"

+                                           ,iVar4);

+                                goto LAB_13;

+                              }

+                              local_e8 = 0;

+                              local_e0 = 0;

+                              local_d8 = 0;

+                              pcVar1 = *(code **)(*(longlong *)local_200 + 0x40);

+                              Windows::Internal::

+                              NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                              _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                     *)&local_e8);

+                              RVar19 = (ReportingKind)&local_e8;

+                              local_e0 = 0xffffffffffffffff;

+                              local_d8 = 0xffffffffffffffff;

+                              iVar4 = (*pcVar1)(pWVar12,L"AlternateForm");

+                              Windows::Internal::

+                              NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                              _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                     *)&local_e8);

+                              iVar24 = (iVar4 >> 0x1f) + 2;

+                            }

+                            Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)this);

+                            bVar3 = local_200 == (LPCWSTR)0x0;

+                            goto LAB_15;

+                          }

+                          wil::details::in1diag3::Return_Hr

+                                    (unaff_retaddr,0x1be,

+                                     "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",

+                                     iVar4);

+LAB_14:

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_200);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e0);

+                          Windows::Internal::

+                          NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                    ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                      *)local_188);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1f0);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e8);

+                          Windows::Internal::

+                          NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                    ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                      *)&local_1d0);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_210);

+                          goto LAB_16;

+                        }

+LAB_15:

+                        if (bVar3) {

+                          WindowsDeleteString(0);

+                          local_1f8 = (undefined1  [8])0x0;

+                          Windows::Internal::

+                          NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                          _EnsureCount((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        *)&local_1d0);

+                          this_00 = (HStringReference *)&local_a0;

+                          lVar11 = Microsoft::WRL::Wrappers::HStringReference::HStringReference

+                                             (this_00,local_1d0,(uint)local_1c8);

+                          pGVar22 = (GUID *)local_1f8;

+                          iVar4 = ShellMRTHelper::Common::TryFallbackToFilePath

+                                            ((HSTRING__ *)this_00,*(HSTRING__ **)(lVar11 + 0x18),

+                                             local_a8,(HSTRING__ **)pGVar22);

+                          if (iVar4 < 0) {

+                            uVar6 = 0x20e;

+LAB_17:

+                            wil::details::in1diag3::Return_Hr

+                                      (unaff_retaddr,uVar6,

+                                       "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp"

+                                       ,iVar4);

+                            WindowsDeleteString(local_1f8);

+                            local_1f8 = (undefined1  [8])0x0;

+                            Microsoft::WRL::ComPtr<IUri>::InternalRelease

+                                      ((ComPtr<IUri> *)&local_200);

+                            goto LAB_18;

+                          }

+                          pWVar12 = (LPCWSTR)WindowsGetStringRawBuffer(local_1f8,0);

+                          BVar7 = PathFileExistsW(pWVar12);

+                          if (BVar7 == 0) {

+                            uVar6 = 0x20f;

+                            iVar4 = -0x7ff8fffd;

+                            goto LAB_17;

+                          }

+                          puVar13 = (ushort *)WindowsGetStringRawBuffer(local_1f8,0);

+                          iVar4 = StringCchCopyW((ushort *)(param_3 + 0x10),0x104,puVar13);

+                          if (iVar4 < 0) {

+                            uVar6 = 0x210;

+                            goto LAB_17;

+                          }

+                          bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60999485>::

+                                  __private_IsEnabled((

+                                                  FeatureImpl<__WilFeatureTraits_Feature_60999485> *

+                                                  )&

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

+                                                  ::__l2::impl);

+                          if ((bVar3) && (param_4 != (LoadIconW *)0x0)) {

+                            local_168._0_4_ = 0;

+                            local_138 = LoggingUtil::CensorFilePath((ushort *)(param_3 + 0x10));

+                            pGVar22 = (GUID *)local_168;

+                            ImmersiveIconsLoggingTelemetry::LoadIconW::

+                            ImmersiveIcons_FileAccess<unsigned_short_const*___ptr64,unsigned_short_const_(&___ptr64)[13],long>

+                                      (param_4,&local_138,puVar13,(long *)pGVar22);

+                          }

+                          *(undefined8 *)param_3 = 0;

+                          param_3[8] = (IconData2)0x0;

+                          WindowsDeleteString(local_1f8);

+LAB_19:

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_200);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e0);

+                          Windows::Internal::

+                          NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                    ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                      *)local_188);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1f0);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e8);

+                          Windows::Internal::

+                          NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                    ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                      *)&local_1d0);

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_210);

+                          goto LAB_5;

+                        }

+                        RVar5 = GetContrastForParams(param_2);

+                        local_1f8._0_4_ = RVar5;

+                        if ((iVar24 == 1) && (RVar5 == 0)) {

+                          local_1d8 = (undefined1  [8])0x0;

+                          uVar6 = (**(code **)(*(longlong *)local_1e0 + 0x70))

+                                            (local_1e0,*(undefined2 *)(param_2 + 0x10));

+                          plVar2 = local_1f0;

+                          if ((int)uVar6 < 0) {

+                            RVar19 = 0x80784610;

+                            pGVar22 = (GUID *)(ulonglong)uVar6;

+                            wil::details::in1diag3::_Log_Hr

+                                      (unaff_retaddr,0x1d2,

+                                       "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp"

+                                       ,uVar6);

+                          }

+                          else {

+                            pcVar1 = *(code **)(*local_1f0 + 0x30);

+                            Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)local_1d8)

+                            ;

+                            pGVar22 = (GUID *)local_1d8;

+                            uVar6 = (*pcVar1)(plVar2,local_1e0,local_188._0_8_);

+                            if ((int)uVar6 < 0) {

+                              RVar19 = 0x80784610;

+                              pGVar22 = (GUID *)(ulonglong)uVar6;

+                              wil::details::in1diag3::_Log_Hr

+                                        (unaff_retaddr,0x1d3,

+                                         "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp"

+                                         ,uVar6);

+                            }

+                            else {

+                              iVar4 = Microsoft::WRL::ComPtr<IResourceCandidate2>::

+                                      As<IResourceCandidate>

+                                                ((ComPtr<IResourceCandidate2> *)local_1d8,&local_200

+                                                );

+                              pWVar12 = local_200;

+                              if (iVar4 < 0) {

+                                wil::details::in1diag3::Return_Hr

+                                          (unaff_retaddr,0x1d5,

+                                           "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp"

+                                           ,iVar4);

+                                this = (GUID *)local_1d8;

+                                goto LAB_13;

+                              }

+                              local_a0 = 0;

+                              local_98 = 0;

+                              local_90 = 0;

+                              pcVar1 = *(code **)(*(longlong *)local_200 + 0x40);

+                              Windows::Internal::

+                              NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                              _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                     *)&local_a0);

+                              RVar19 = (ReportingKind)&local_a0;

+                              local_98 = 0xffffffffffffffff;

+                              local_90 = 0xffffffffffffffff;

+                              iVar4 = (*pcVar1)(pWVar12,L"AlternateForm");

+                              Windows::Internal::

+                              NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                              _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                     *)&local_a0);

+                              iVar24 = (iVar4 >> 0x1f) + 2;

+                            }

+                          }

+                          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)local_1d8);

+                        }

+                        wil::details::FeatureImpl<__WilFeatureTraits_Feature_SystemLightTheme>::

+                        ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_SystemLightTheme> *)

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

+                                     ::__l2::impl,true,RVar19,(__uint64)pGVar22);

+                        pWVar12 = local_200;

+                        local_130 = 0;

+                        local_128 = 0;

+                        local_120 = 0;

+                        pcVar1 = *(code **)(*(longlong *)local_200 + 0x40);

+                        Windows::Internal::

+                        NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                    *)&local_130);

+                        puVar21 = &local_130;

+                        local_128 = 0xffffffffffffffff;

+                        local_120 = 0xffffffffffffffff;

+                        iVar4 = (*pcVar1)(pWVar12,L"Theme");

+                        pwVar23 = L"dark";

+                        if (-1 < iVar4) {

+                          iVar4 = Windows::Internal::

+                                  NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                  ::CompareOrdinalIgnoreCase

+                                            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                              *)&local_130,(ushort *)L"dark",(__uint64)puVar21);

+                          if (iVar4 == 2) {

+                            iVar9 = 2;

+                          }

+                          else {

+                            iVar4 = Windows::Internal::

+                                    NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                    ::CompareOrdinalIgnoreCase

+                                              ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                                *)&local_130,(ushort *)L"light",(__uint64)puVar21);

+                            if (iVar4 == 2) {

+                              iVar9 = 1;

+                            }

+                          }

+                        }

+                        uVar18 = (ushort)puVar21;

+                        Windows::Internal::

+                        NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                    *)&local_130);

+                        pWVar12 = local_200;

+                        local_118 = 0;

+                        local_110 = 0;

+                        local_108 = 0;

+                        if (local_1f8._0_4_ == 0) {

+LAB_20:

+                          local_208 = (IconData2)0x0;

+                        }

+                        else {

+                          pcVar1 = *(code **)(*(longlong *)local_200 + 0x40);

+                          Windows::Internal::

+                          NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                    ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                      *)&local_118);

+                          uVar18 = (ushort)&local_118;

+                          local_110 = 0xffffffffffffffff;

+                          local_108 = 0xffffffffffffffff;

+                          iVar4 = (*pcVar1)(pWVar12,L"Contrast");

+                          local_208 = (IconData2)0x1;

+                          if (iVar4 < 0) goto LAB_20;

+                        }

+                        pWVar12 = local_200;

+                        pcVar1 = *(code **)(*(longlong *)local_200 + 0x20);

+                        Windows::Internal::

+                        NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                    *)&local_1b8);

+                        uVar14 = (ushort)&local_1b8;

+                        local_1b0 = 0xffffffffffffffff;

+                        local_1a8 = 0xffffffffffffffff;

+                        iVar4 = (*pcVar1)(pWVar12);

+                        if (iVar4 < 0) {

+                          uVar6 = 0x1ef;

+                        }

+                        else {

+                          Windows::Internal::

+                          NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                          ReplaceChars((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        *)&local_1b8,uVar14,uVar18);

+                          iVar4 = StringCchCopyW((ushort *)(param_3 + 0x10),0x104,local_1b8);

+                          if (-1 < iVar4) {

+                            param_3[8] = local_208;

+                            *(int *)param_3 = iVar24;

+                            *(int *)(param_3 + 4) = iVar9;

+                            bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60999485>::

+                                    __private_IsEnabled((

+                                                  FeatureImpl<__WilFeatureTraits_Feature_60999485> *

+                                                  )&

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

+                                                  ::__l2::impl);

+                            if ((bVar3) && (param_4 != (LoadIconW *)0x0)) {

+                              if ((iVar9 != 2) && (pwVar23 = L"light", iVar9 != 1)) {

+                                pwVar23 = L"unknown";

+                              }

+                              local_1f8 = (undefined1  [8])

+                                          ((ulonglong)local_1f8 & 0xffffffff00000000);

+                              local_168._0_4_ = iVar24;

+                              local_d0 = pwVar23;

+                              local_c8 = LoggingUtil::CensorFilePath(local_1b8);

+                              pGVar22 = (GUID *)&local_d0;

+                              local_138 = (ushort *)local_188._0_8_;

+                              ImmersiveIconsLoggingTelemetry::LoadIconW::

+                              ImmersiveIcons_MrtResolution<unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64&___ptr64,int,long>

+                                        (param_4,&local_138,&local_c8,(ushort **)pGVar22,

+                                         (int *)local_168,(long *)local_1f8);

+                            }

+                            Windows::Internal::

+                            NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                      ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        *)&local_118);

+                            goto LAB_19;

+                          }

+                          uVar6 = 499;

+                        }

+                        wil::details::in1diag3::Return_Hr

+                                  (unaff_retaddr,uVar6,

+                                   "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",

+                                   iVar4);

+                        Windows::Internal::

+                        NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                    *)&local_118);

+                      }

+                      Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_200);

+                      Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e0);

+                      Windows::Internal::

+                      NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                  *)local_188);

+                      Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1f0);

+                      Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e8);

+                      Windows::Internal::

+                      NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                  *)&local_1d0);

+                      Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_210);

+                      Windows::Internal::

+                      NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                                ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                  *)&local_1b8);

+                      local_a8 = (HSTRING__ *)0x0;

+                      goto LAB_21;

+                    }

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,0x192,

+                               "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4)

+                    ;

+LAB_18:

+                    Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e0);

+                  }

+                  else {

+                    bVar3 = ShellMRTHelper::Common::HasMsResourceUriScheme(local_a8);

+                    if (bVar3) {

+                      iVar4 = Windows::Internal::

+                              NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                              Initialize((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                          *)local_188,

+                                         (NativeString<class_Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                          *)&local_1a0);

+                      if (-1 < iVar4) goto LAB_10;

+                      uVar6 = 0x183;

+                    }

+                    else {

+                      Windows::Internal::

+                      NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                      _EnsureCount((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                    *)&local_1a0);

+                      _Var20 = local_198 + 7;

+                      iVar4 = Windows::Internal::

+                              NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                              _Initialize((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                           *)local_188,(ushort *)L"Files\\",_Var20);

+                      uVar18 = (ushort)_Var20;

+                      if (iVar4 < 0) {

+                        uVar6 = 0x18a;

+                      }

+                      else {

+                        pNVar16 = (NativeString<class_Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                   *)&local_1a0;

+                        iVar4 = Windows::Internal::

+                                NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                                Concat((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        *)local_188,pNVar16);

+                        if (-1 < iVar4) {

+                          Windows::Internal::

+                          NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+                          ReplaceChars((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                                        *)local_188,(ushort)pNVar16,uVar18);

+                          goto LAB_10;

+                        }

+                        uVar6 = 0x18b;

+                      }

+                    }

+LAB_9:

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar6,

+                               "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4)

+                    ;

+                  }

+                  Windows::Internal::

+                  NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                             local_188);

+                }

+                Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1f0);

+              }

+              Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_1e8);

+            }

+            Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+            _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1d0);

+          }

+          Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_210);

+        }

+LAB_22:

+        Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1b8);

+        local_a8 = (HSTRING__ *)0x0;

+      }

+      else {

+        bVar3 = ShellMRTHelper::Common::HasMsAppDataUriScheme(local_a8);

+        if (!bVar3) {

+          BVar7 = PathIsRelativeW(pWVar12);

+          if (BVar7 == 0) {

+            pNVar16 = (NativeString<class_Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                      &local_1a0;

+            iVar4 = Windows::Internal::

+                    NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::Initialize

+                              ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                               &local_1b8,pNVar16);

+            uVar18 = (ushort)pNVar16;

+            if (iVar4 < 0) {

+              uVar6 = 0x159;

+              goto LAB_3;

+            }

+            bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60999485>::

+                    __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60999485> *)

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

+                                         ::__l2::impl);

+            if ((bVar3) && (param_4 != (LoadIconW *)0x0)) {

+              local_1f8 = (undefined1  [8])((ulonglong)local_1f8 & 0xffffffff00000000);

+              local_1d8 = (undefined1  [8])LoggingUtil::CensorFilePath(local_1b8);

+              pGVar22 = (GUID *)local_1f8;

+              ppuVar15 = (ushort **)local_1d8;

+              ImmersiveIconsLoggingTelemetry::LoadIconW::

+              ImmersiveIcons_FileAccess<unsigned_short_const*___ptr64,unsigned_short_const_(&___ptr64)[9],long>

+                        (param_4,ppuVar15,puVar13,(long *)pGVar22);

+              uVar18 = (ushort)ppuVar15;

+            }

+          }

+          goto LAB_4;

+        }

+        local_160 = (longlong *)0x0;

+        Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_160);

+        iVar4 = CoCreateInstance((IID *)&_GUID_a8ca4495_65ab_4333_9ff9_4feb6fbf5169,(LPUNKNOWN)0x0,1

+                                 ,(IID *)&_GUID_428bb582_2a87_4ea0_b529_30067cc4a4d7,&local_160);

+        if (iVar4 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x146,

+                     "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4);

+        }

+        else {

+          local_1d0 = (ushort *)0x0;

+          local_1c8 = 0;

+          local_1c0 = 0;

+          Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+          _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1d0);

+          local_1c8 = 0xffffffffffffffff;

+          local_1c0 = 0xffffffffffffffff;

+          iVar4 = GetPackageFullNameForAppsFolderItem(param_1,&local_218,&local_1d0);

+          plVar2 = local_160;

+          if (-1 < iVar4) {

+            pcVar1 = *(code **)(*local_160 + 0x30);

+            Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+            _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1b8);

+            local_1b0 = 0xffffffffffffffff;

+            pGVar22 = (GUID *)0x0;

+            local_1a8 = 0xffffffffffffffff;

+            puVar13 = local_1d0;

+            iVar4 = (*pcVar1)(plVar2);

+            uVar18 = (ushort)pWVar12;

+            if (-1 < iVar4) {

+              bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60999485>::

+                      __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60999485> *)

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

+                                           ::__l2::impl);

+              if ((bVar3) && (param_4 != (LoadIconW *)0x0)) {

+                local_1f8 = (undefined1  [8])((ulonglong)local_1f8 & 0xffffffff00000000);

+                local_1d8 = (undefined1  [8])LoggingUtil::CensorFilePath(local_1b8);

+                pGVar22 = (GUID *)local_1f8;

+                ppuVar15 = (ushort **)local_1d8;

+                ImmersiveIconsLoggingTelemetry::LoadIconW::

+                ImmersiveIcons_FileAccess<unsigned_short_const*___ptr64,unsigned_short_const_(&___ptr64)[12],long>

+                          (param_4,ppuVar15,puVar13,(long *)pGVar22);

+                uVar18 = (ushort)ppuVar15;

+              }

+              Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+              _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1d0)

+              ;

+              Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_160);

+              goto LAB_4;

+            }

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,0x14b,

+                       "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4);

+            Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+            _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1d0);

+            Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_160);

+            goto LAB_22;

+          }

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x149,

+                     "shell\\lib\\immersiveapphelpers\\immersiveappiconhelpers.cpp",iVar4);

+          Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+          _Free((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1d0);

+        }

+        Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)&local_160);

+LAB_16:

+        Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1b8);

+        local_a8 = (HSTRING__ *)0x0;

+      }

+    }

+LAB_21:

+    Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+              ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_1a0);

+  }

+  Microsoft::WRL::ComPtr<IDXGIFactory>::~ComPtr<IDXGIFactory>((ComPtr<IDXGIFactory> *)&local_218);

+LAB_0:

+  Microsoft::WRL::ComPtr<IApplicationResolver>::InternalRelease

+            ((ComPtr<IApplicationResolver> *)&local_140);

+  return iVar4;

+}

+
```

## `winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>::InitializeViewDependent`  (modified)

```diff
--- winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>::InitializeViewDependent
+++ winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>::InitializeViewDependent
@@ -1,2 +1,44 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>::InitializeViewDependent : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual int __cdecl winrt::impl::produce<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>::InitializeViewDependent(int,int,void

+   * __ptr64,bool) __ptr64 */

+

+int __thiscall

+winrt::impl::

+produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>

+::InitializeViewDependent

+          (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>

+           *this,int param_1,int param_2,void *param_3,bool param_4)

+

+{

+  produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>

+  *ppVar1;

+  abi_guard local_res8 [24];

+  void *local_res20;

+  

+  local_res20 = param_3;

+  root_implements<winrt::Windows::Internal::Shell::XamlExplorerHost::implementation::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK2,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK3,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK4,winrt::Windows::Foundation::IClosable,winrt::non_agile>

+  ::abi_guard::abi_guard

+            (local_res8,

+             (XamlExplorerHostChildWindow_WASDK *)

+             (-(ulonglong)

+               (this != (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>

+                         *)0x0) & (ulonglong)(this + -0x28)));

+  ppVar1 = this + 0x54;

+  if (this == (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>

+               *)0x0) {

+    ppVar1 = (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>

+              *)&DAT_0;

+  }

+  *(int *)ppVar1 = param_1;

+  ppVar1 = this + 0x58;

+  if (this == (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>

+               *)0x0) {

+    ppVar1 = (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs>

+              *)&DAT_1;

+  }

+  Windows::Foundation::IUnknown::operator=((IUnknown *)ppVar1,(IUnknown *)&local_res20);

+  return 0;

+}

+
```

## `winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,void>::QueryInterface`  (modified)

```diff
--- winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,void>::QueryInterface
+++ winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,void>::QueryInterface
@@ -1,2 +1,23 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,void>::QueryInterface : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual int __cdecl winrt::impl::produce_base<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,void>::QueryInterface(struct

+   winrt::guid const & __ptr64,void * __ptr64 * __ptr64) __ptr64 */

+

+int __thiscall

+winrt::impl::

+produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,void>

+::QueryInterface(produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,void>

+                 *this,guid *param_1,void **param_2)

+

+{

+  long lVar1;

+  

+  lVar1 = WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs::QueryInterface

+                    ((SearchAppActivatedEventArgs *)

+                     (-(ulonglong)

+                       (this != (produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,void>

+                                 *)0x0) & (ulonglong)(this + -0x28)),(_GUID *)param_1,param_2);

+  return lVar1;

+}

+
```

## `CAppViewManager::WindowProvided`  (modified)

```diff
--- CAppViewManager::WindowProvided
+++ CAppViewManager::WindowProvided
@@ -1,2 +1,70 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CAppViewManager::WindowProvided : 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 CAppViewManager::WindowProvided(struct _GUID const & __ptr64,struct

+   HWND__ * __ptr64,int) __ptr64 */

+

+long __thiscall

+CAppViewManager::WindowProvided(CAppViewManager *this,_GUID *param_1,HWND__ *param_2,int param_3)

+

+{

+  long lVar1;

+  CAppViewManager *this_00;

+  void *unaff_retaddr;

+  undefined1 auStack_1d8 [32];

+  IAsyncCallback *local_1b8;

+  CAppViewManager *local_1b0;

+  ComPtr<ITabletModeControllerPriv> local_1a8 [32];

+  undefined **local_188 [42];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_1d8;

+  local_1b8 = (IAsyncCallback *)param_2;

+  wil::ActivityBase<CAppManagerLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

+  ActivityBase<CAppManagerLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>

+            ((ActivityBase<CAppManagerLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType> *)

+             local_188,"WindowProvided",SUB81(param_2,0));

+  local_188[0] = &CAppViewManagerTelemetry::WindowProvided::_vftable_;

+  CAppViewManagerTelemetry::WindowProvided::StartActivity

+            ((WindowProvided *)local_188,param_1,param_2);

+  this_00 = this + -0x38;

+  if (param_3 == 0) {

+    local_1b0 = this_00;

+    Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>::InternalAddRef

+              ((ComPtr<IImmersiveApplicationInternal> *)&local_1b0);

+    <lambda_3a0ad3ac1ad46fbb66295e1a5911398a>::<lambda_3a0ad3ac1ad46fbb66295e1a5911398a>

+              (local_1a8,&local_1b0,param_1,&local_1b8);

+    Microsoft::WRL::Callback<IAsyncCallback,<lambda_3a0ad3ac1ad46fbb66295e1a5911398a>_>

+              (&local_1b8,local_1a8);

+    lVar1 = _AddDelayedOperation(this_00,local_1b8);

+    if (lVar1 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x4e4,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",lVar1);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b8);

+      Microsoft::WRL::ComPtr<ITabletModeControllerPriv>::~ComPtr<ITabletModeControllerPriv>

+                (local_1a8);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b0);

+      _ObliterateOperation(this_00,param_1);

+    }

+    else {

+      wil::ActivityBase<CAppManagerLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::Stop

+                ((ActivityBase<CAppManagerLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType> *)

+                 local_188,0);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b8);

+      Microsoft::WRL::ComPtr<ITabletModeControllerPriv>::~ComPtr<ITabletModeControllerPriv>

+                (local_1a8);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_1b0);

+      lVar1 = 0;

+    }

+  }

+  else {

+    _ObliterateOperation(this_00,param_1);

+    lVar1 = -0x7fffbffc;

+  }

+  CAppViewManagerTelemetry::WindowProvided::~WindowProvided((WindowProvided *)local_188);

+  return lVar1;

+}

+
```

## `Utils::ProtocolLauncher::CreateInstance`  (modified)

```diff
--- Utils::ProtocolLauncher::CreateInstance
+++ Utils::ProtocolLauncher::CreateInstance
@@ -1,2 +1,167 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB Utils::ProtocolLauncher::CreateInstance : 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: Removing unreachable block (ram,0x0001800d66fd) */

+/* WARNING: Removing unreachable block (ram,0x0001800d6713) */

+/* private: static class std::unique_ptr<class Utils::ProtocolLauncher,struct

+   std::default_delete<class Utils::ProtocolLauncher> > __cdecl

+   Utils::ProtocolLauncher::CreateInstance(class wil::com_ptr_t<struct

+   Windows::Internal::StateRepository::IApplicationStatics,struct wil::err_exception_policy> const &

+   __ptr64,class wil::unique_any_t<class wil::details::unique_storage<struct

+   wil::details::resource_policy<unsigned short * __ptr64,void (__cdecl*)(void * __ptr64),&void

+   __cdecl CoTaskMemFree(void * __ptr64),struct wistd::integral_constant<unsigned

+   __int64,0>,unsigned short * __ptr64,unsigned short * __ptr64,0,std::nullptr_t> > > &&

+   __ptr64,class wil::com_ptr_t<struct IAssocHandler,struct wil::err_exception_policy> const &

+   __ptr64) */

+

+com_ptr_t<Windows::Internal::StateRepository::IApplicationStatics,wil::err_exception_policy> *

+__cdecl Utils::ProtocolLauncher::CreateInstance

+                  (com_ptr_t<Windows::Internal::StateRepository::IApplicationStatics,wil::err_exception_policy>

+                   *param_1,

+                  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>_>_>

+                  *param_2,com_ptr_t<IAssocHandler,wil::err_exception_policy> *param_3)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  ushort *puVar3;

+  int iVar4;

+  uint uVar5;

+  HSTRING__ **ppHVar6;

+  ulong uVar7;

+  ulonglong uVar8;

+  com_ptr_t<IAssocHandler,wil::err_exception_policy> *pcVar9;

+  com_ptr_t<IAssocHandler,wil::err_exception_policy> *in_R9;

+  void *unaff_retaddr;

+  undefined1 auStack_e8 [48];

+  ushort *local_b8;

+  longlong *local_b0;

+  undefined8 local_a8;

+  undefined8 local_a0;

+  longlong *local_98;

+  longlong *local_90;

+  com_ptr_t<Windows::Internal::StateRepository::IApplicationStatics,wil::err_exception_policy>

+  *local_88 [2];

+  undefined8 *local_78;

+  HStringReference local_70 [24];

+  undefined8 local_58;

+  ulonglong local_50;

+  

+  local_50 = __security_cookie ^ (ulonglong)auStack_e8;

+  pcVar9 = param_3;

+  local_88[0] = param_1;

+  wil::com_ptr_t<IAssocHandler,wil::err_exception_policy>::query<IObjectWithAppUserModelID>(in_R9);

+  local_b8 = (ushort *)0x0;

+  uVar7 = (ulong)&local_b8;

+  iVar4 = (**(code **)(*(longlong *)local_88[0] + 0x20))();

+  puVar3 = local_b8;

+  if (iVar4 < 0) {

+    std::

+    make_unique<Utils::ProtocolLauncher,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>_>_>,std::nullptr_t,std::nullptr_t,std::nullptr_t,0>

+              ((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>_>_>

+                *)param_1,param_3,pcVar9,in_R9);

+    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);

+    wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+    ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+              ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)local_88);

+  }

+  else {

+    plVar1 = *(longlong **)param_2;

+    pcVar2 = *(code **)(*plVar1 + 0xf0);

+    local_90 = (longlong *)0x0;

+    local_58 = 0;

+    uVar8 = 0xffffffffffffffff;

+    do {

+      uVar8 = uVar8 + 1;

+    } while (local_b8[uVar8] != 0);

+    if (0xffffffff < uVar8) {

+                    /* WARNING: Subroutine does not return */

+      Microsoft::WRL::Details::RaiseException(-0x7ff8fdea,uVar7);

+    }

+    uVar5 = Microsoft::WRL::Wrappers::HStringReference::AddOne((uint)uVar8);

+    Microsoft::WRL::Wrappers::HStringReference::CreateReference(local_70,puVar3,uVar5,(uint)uVar8);

+    iVar4 = (*pcVar2)(plVar1,0,local_58,&local_90);

+    if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x68,"pcshell\\twinui\\meetandchatmanager\\lib\\utils.cpp",iVar4);

+    }

+    local_b0 = (longlong *)0x0;

+    iVar4 = (**(code **)(*local_90 + 0x48))(local_90,&local_b0);

+    if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x6b,"pcshell\\twinui\\meetandchatmanager\\lib\\utils.cpp",iVar4);

+    }

+    local_98 = (longlong *)0x0;

+    iVar4 = (**(code **)(*local_b0 + 0x48))(local_b0,&local_98);

+    plVar1 = local_98;

+    if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x6e,"pcshell\\twinui\\meetandchatmanager\\lib\\utils.cpp",iVar4);

+    }

+    local_a0 = 0;

+    pcVar2 = *(code **)(*local_98 + 0x50);

+    ppHVar6 = wil::

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

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_a0);

+    iVar4 = (*pcVar2)(plVar1,ppHVar6);

+    plVar1 = local_b0;

+    if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x71,"pcshell\\twinui\\meetandchatmanager\\lib\\utils.cpp",iVar4);

+    }

+    local_a8 = 0;

+    pcVar2 = *(code **)(*local_b0 + 0x70);

+    ppHVar6 = wil::

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

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_a8);

+    iVar4 = (*pcVar2)(plVar1,ppHVar6);

+    if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x74,"pcshell\\twinui\\meetandchatmanager\\lib\\utils.cpp",iVar4);

+    }

+    local_78 = operator_new(0x30);

+    *local_78 = *(undefined8 *)param_3;

+    *(undefined8 *)param_3 = 0;

+    local_78[1] = local_b8;

+    local_78[2] = local_a0;

+    local_78[3] = local_a8;

+    local_78[4] = 0;

+    *(undefined1 *)(local_78 + 5) = 0;

+    *(undefined8 **)param_1 = local_78;

+    local_a0 = 0;

+    local_a8 = 0;

+    local_b8 = (ushort *)0x0;

+    if (local_98 != (longlong *)0x0) {

+      (**(code **)(*local_98 + 0x10))();

+    }

+    if (local_b0 != (longlong *)0x0) {

+      (**(code **)(*local_b0 + 0x10))();

+    }

+    if (local_90 != (longlong *)0x0) {

+      (**(code **)(*local_90 + 0x10))();

+    }

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

+      CoTaskMemFree(local_b8);

+    }

+    if (local_88[0] !=

+        (com_ptr_t<Windows::Internal::StateRepository::IApplicationStatics,wil::err_exception_policy>

+         *)0x0) {

+      (**(code **)(*(longlong *)local_88[0] + 0x10))();

+    }

+  }

+  return param_1;

+}

+
```

## `KeyboardHosting::TabTipAdapter::OnDisplayChanged`  (modified)

```diff
--- KeyboardHosting::TabTipAdapter::OnDisplayChanged
+++ KeyboardHosting::TabTipAdapter::OnDisplayChanged
@@ -1,2 +1,145 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB KeyboardHosting::TabTipAdapter::OnDisplayChanged : 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: long __cdecl KeyboardHosting::TabTipAdapter::OnDisplayChanged(void) __ptr64 */

+

+long __thiscall KeyboardHosting::TabTipAdapter::OnDisplayChanged(TabTipAdapter *this)

+

+{

+  com_ptr_t<IInputHostLayout,wil::err_exception_policy> *this_00;

+  undefined4 uVar1;

+  longlong *plVar2;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+  *this_01;

+  bool bVar3;

+  int iVar4;

+  ULONGLONG UVar5;

+  longlong *plVar6;

+  ulonglong uVar7;

+  void *unaff_retaddr;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+  *local_res10;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+  *local_res18;

+  RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+  *local_res20;

+  _RTL_SRWLOCK local_38 [2];

+  

+  bVar3 = wil::details::

+          FeatureImpl<__WilFeatureTraits_Feature_ThrottleTouchKeyboardDisplayChangedEvents>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_ThrottleTouchKeyboardDisplayChangedEvents>

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

+                                  ::__l2::impl);

+  if (bVar3) {

+    Microsoft::WRL::Wrappers::SRWLock::LockExclusive(local_38);

+    this_00 = (com_ptr_t<IInputHostLayout,wil::err_exception_policy> *)(this + 600);

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset(this_00);

+    UVar5 = GetTickCount64();

+    uVar7 = UVar5 - *(ulonglong *)(this + 0x250);

+    if (UVar5 < *(ulonglong *)(this + 0x250)) {

+      uVar7 = 0;

+    }

+    winrt::

+    implements<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,IRemoteTabTipAdapter>

+    ::get_weak((implements<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,IRemoteTabTipAdapter>

+                *)this);

+    local_res20 = local_res10;

+    if (local_res10 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

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

+    }

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset(this_00);

+    uVar1 = *(undefined4 *)(this + 0x240);

+    plVar6 = (longlong *)

+             Microsoft::WRL::Details::

+             Make<Windows::Internal::ComTaskPool::CTaskWrapper<<lambda_fa1d244235ef035778d537571249af38>_>,<lambda_fa1d244235ef035778d537571249af38>_>

+                       (&local_res18,&local_res20);

+    this_01 = local_res18;

+    plVar2 = (longlong *)*plVar6;

+    *plVar6 = 0;

+    if (local_res18 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

+      local_res18 = (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+                     *)0x0;

+      Microsoft::WRL::Details::

+      RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+      ::Release(this_01);

+    }

+    iVar4 = SHTaskPoolQueueTask(0,2,uVar1,-(uint)(uVar7 < 10000) & 500,plVar2,this_00);

+    if (plVar2 != (longlong *)0x0) {

+      (**(code **)(*plVar2 + 0x10))(plVar2);

+    }

+    <lambda_491c17a8e98ab789a5142a7b10687737>::~<lambda_491c17a8e98ab789a5142a7b10687737>

+              (&local_res20);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xc5c,

+                 "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+      if (local_res10 !=

+          (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+           *)0x0) {

+        winrt::

+        com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+        ::unconditional_release_ref

+                  ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                    *)&local_res10);

+      }

+      CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_38);

+      return iVar4;

+    }

+    if (local_res10 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_res10);

+    }

+    CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)local_38);

+  }

+  else {

+    winrt::

+    implements<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,IRemoteTabTipAdapter>

+    ::get_weak((implements<KeyboardHosting::TabTipAdapter,IMessageProxyReconnectAdapterOwner,IRemoteTabTipAdapter>

+                *)this);

+    local_res18 = local_res10;

+    if (local_res10 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

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

+    }

+    iVar4 = Windows::Internal::ComTaskPool::QueueTask<<lambda_6b0e540d1db710cc1684ddb44e08afe9>_>();

+    <lambda_491c17a8e98ab789a5142a7b10687737>::~<lambda_491c17a8e98ab789a5142a7b10687737>

+              (&local_res18);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xc72,

+                 "pcshell\\twinui\\touchkeyboardexperiencemanager\\lib\\tabtipadapter.cpp",iVar4);

+      if (local_res10 ==

+          (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+           *)0x0) {

+        return iVar4;

+      }

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_res10);

+      return iVar4;

+    }

+    if (local_res10 !=

+        (RuntimeClassImpl<Microsoft::WRL::RuntimeClassFlags<2>,1,0,0,Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::Experience::CortanaExperienceManager*___ptr64,IInspectable*___ptr64>_>

+         *)0x0) {

+      winrt::

+      com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::Windows::Internal::Shell::DragDropSimulator::implementation::DragDropSimulatorComponent>

+                  *)&local_res10);

+    }

+  }

+  return 0;

+}

+
```

## `GamingOverlayExperienceManager::Hide`  (modified)

```diff
--- GamingOverlayExperienceManager::Hide
+++ GamingOverlayExperienceManager::Hide
@@ -1,21 +1,58 @@
 

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

+/* public: virtual long __cdecl GamingOverlayExperienceManager::Hide(void) __ptr64 */

 

-long __thiscall

-Microsoft::WRL::

-RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CServiceHostComponentWithGITSite,Microsoft::WRL::FtmBase>

-::Hide(GamingOverlayExperienceManager *this)

+long __thiscall GamingOverlayExperienceManager::Hide(GamingOverlayExperienceManager *this)

 

 {

-  longlong unaff_RBP;

-  MonitorInfo *unaff_RDI;

-  bool unaff_R12B;

+  long lVar1;

+  void *unaff_retaddr;

+  undefined1 auStack_38 [32];

+  PRTL_CRITICAL_SECTION_DEBUG local_18;

+  ulonglong local_10;

   

-  SearchBoxOnTaskbarSearchAppPositioner::GetSearchBoxOnTaskbarAppRectAndClippingRegion

-            ((SearchBoxOnTaskbarSearchAppPositioner *)this,unaff_RDI,(tagRECT *)(unaff_RBP + -0x30),

-             unaff_R12B);

-  std::vector<tagRECT,std::allocator<tagRECT>_>::_Tidy

-            ((vector<tagRECT,std::allocator<tagRECT>_> *)(unaff_RBP + 0x78));

-  return (long)unaff_RDI;

+  local_10 = __security_cookie ^ (ulonglong)auStack_38;

+  local_18 = (PRTL_CRITICAL_SECTION_DEBUG)0x0;

+  wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)&stack0xffffffffffffffe8);

+  if (*(GameBarWindowControlImpl **)(this + 0x150) == (GameBarWindowControlImpl *)0x0) {

+    lVar1 = -0x7fffbffd;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x15c,

+               "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+               ,-0x7fffbffd);

+    wil::details::

+    unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                *)&stack0xffffffffffffffe8);

+  }

+  else {

+    winrt::Windows::Internal::GamingOverlay::implementation::GameBarWindowControlImpl::Hide

+              (*(GameBarWindowControlImpl **)(this + 0x150));

+    lVar1 = UpdateOverlayDisplayModeVisibility(this + -0x88,false);

+    if (lVar1 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x160,

+                 "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+                 ,lVar1);

+      wil::details::

+      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                  *)&stack0xffffffffffffffe8);

+    }

+    else {

+      wil::details::

+      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+      ::

+      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+                  *)&stack0xffffffffffffffe8);

+      lVar1 = 0;

+    }

+  }

+  return lVar1;

 }
```

## `VirtualDesktopAcessibility::RecalculateDesktopName`  (modified)

```diff
--- VirtualDesktopAcessibility::RecalculateDesktopName
+++ VirtualDesktopAcessibility::RecalculateDesktopName
@@ -1,2 +1,169 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB VirtualDesktopAcessibility::RecalculateDesktopName : 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: long __cdecl VirtualDesktopAcessibility::RecalculateDesktopName(bool) __ptr64 */

+

+long __thiscall

+VirtualDesktopAcessibility::RecalculateDesktopName(VirtualDesktopAcessibility *this,bool param_1)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  _func_5156 *p_Var3;

+  IUnknown *This;

+  HRESULT HVar4;

+  long lVar5;

+  int iVar6;

+  HSTRING__ **ppHVar7;

+  ushort *puVar8;

+  HWND hwnd;

+  uint uVar9;

+  wchar_t *pwVar10;

+  __uint64 _Var11;

+  int iVar12;

+  void *unaff_retaddr;

+  longlong *local_res8;

+  longlong local_res18;

+  IUnknown *local_res20;

+  longlong local_58;

+  SyncLockExclusive local_50 [8];

+  wchar_t *local_48;

+  __uint64 local_40;

+  undefined8 local_38;

+  

+  (**(code **)(**(longlong **)(this + 0xd8) + 0x20))(*(longlong **)(this + 0xd8),local_50);

+  iVar12 = 0;

+  local_res20 = (IUnknown *)0x0;

+  plVar1 = *(longlong **)(this + 200);

+  pcVar2 = *(code **)(*plVar1 + 0x170);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_res20);

+  iVar6 = (*pcVar2)(plVar1,&local_res20);

+  This = local_res20;

+  if (iVar6 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x4d,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopaccessibility.cpp",iVar6);

+    iVar12 = iVar6;

+    goto LAB_0;

+  }

+  local_48 = (wchar_t *)0x0;

+  local_40 = 0;

+  local_38 = 0;

+  local_res8 = (longlong *)0x0;

+  p_Var3 = local_res20->lpVtbl->QueryInterface;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_res8);

+  HVar4 = (*p_Var3)(This,(IID *)&_GUID_c9be252c_e386_425e_b33c_ca422112f51f,&local_res8);

+  plVar1 = local_res8;

+  if (HVar4 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x51,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopaccessibility.cpp",HVar4);

+    iVar12 = HVar4;

+  }

+  else {

+    local_res18 = 0;

+    pcVar2 = *(code **)(*local_res8 + 0x20);

+    ppHVar7 = wil::

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

+              ::put((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>_>

+                     *)&local_res18);

+    lVar5 = (*pcVar2)(plVar1,ppHVar7);

+    if (lVar5 < 0) {

+      uVar9 = 0x54;

+LAB_1:

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,uVar9,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopaccessibility.cpp",lVar5);

+    }

+    else {

+      if (local_res18 != 0) {

+        puVar8 = (ushort *)WindowsGetStringRawBuffer(local_res18,0);

+        lVar5 = Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                ::_Initialize((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                              &local_48,puVar8,0xffffffffffffffff);

+        if (lVar5 < 0) {

+          uVar9 = 0x58;

+          goto LAB_1;

+        }

+LAB_2:

+        iVar6 = SHIsSameObject(local_res20,*(IUnknown **)(this + 0xd0));

+        if (iVar6 == 0) {

+LAB_3:

+          Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+          operator=((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                    (this + 0xe0),

+                    (NativeString<class_Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                    &local_48);

+          Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>::operator=

+                    ((ComPtr<IImmersiveApplicationInternal> *)(this + 0xd0),

+                     (ComPtr<struct_IImmersiveApplicationInternal> *)&local_res20);

+          if (param_1) {

+            hwnd = GetDesktopWindow();

+            NotifyWinEvent(0x800c,hwnd,0,0);

+          }

+        }

+        else {

+          _Var11 = local_40;

+          if ((local_40 == 0xffffffffffffffff) && (_Var11 = 0, local_48 != (wchar_t *)0x0)) {

+            _Var11 = 0xffffffffffffffff;

+            do {

+              _Var11 = _Var11 + 1;

+            } while (local_48[_Var11] != L'\0');

+          }

+          pwVar10 = L"";

+          if (local_48 != (wchar_t *)0x0) {

+            pwVar10 = local_48;

+          }

+          iVar6 = Windows::Internal::

+                  NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::CompareOrdinal

+                            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                             (this + 0xe0),(ushort *)pwVar10,_Var11);

+          if (iVar6 != 2) goto LAB_3;

+        }

+        wil::details::

+        unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                    *)&local_res18);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_res8);

+        Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+                  ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_48);

+        goto LAB_0;

+      }

+      local_58 = 0;

+      lVar5 = (**(code **)(**(longlong **)(this + 0xc0) + 0x68))

+                        (*(longlong **)(this + 0xc0),local_res20,&local_58);

+      if (-1 < lVar5) {

+        lVar5 = Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>

+                ::InitializeResFormat

+                          ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                           &local_48,(HINSTANCE__ *)&IMAGE_DOS_HEADER_180000000,0x34bd,local_58 + 1)

+        ;

+        if (-1 < lVar5) goto LAB_2;

+        uVar9 = 0x5f;

+        goto LAB_1;

+      }

+    }

+    iVar12 = lVar5;

+    wil::details::

+    unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

+                *)&local_res18);

+  }

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_res8);

+  Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_48);

+LAB_0:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_res20);

+  Microsoft::WRL::Wrappers::Details::SyncLockExclusive::~SyncLockExclusive(local_50);

+  return iVar12;

+}

+
```

## `winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::perform_delayed_initialization`  (modified)

```diff
--- winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::perform_delayed_initialization
+++ winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::perform_delayed_initialization
@@ -1,2 +1,199 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::perform_delayed_initialization : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

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

+/* public: virtual void __cdecl

+   winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::perform_delayed_initialization(void)

+   __ptr64 */

+

+void __thiscall

+winrt::Windows::Internal::GamingExperiences::Posture::implementation::GamingPostureController::

+perform_delayed_initialization(GamingPostureController *this)

+

+{

+  SnapLayoutBase *pSVar1;

+  bool bVar2;

+  GamingPostureWeeklyTelemetry *this_00;

+  undefined8 uVar3;

+  longlong *plVar4;

+  ushort *puVar5;

+  TraceLoggingCorrelationVector *pTVar6;

+  undefined8 *puVar7;

+  hstring *phVar8;

+  bool *pbVar9;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61097376> *this_01;

+  undefined1 uVar10;

+  long lVar11;

+  ushort **ppuVar12;

+  hstring_header *phVar13;

+  unique_ptr<TraceLoggingCorrelationVector,std::default_delete<TraceLoggingCorrelationVector>_>

+  *this_02;

+  WNF_CHANGE_STAMP_STRUCT *in_R8;

+  undefined1 auStack_328 [32];

+  undefined4 local_308;

+  ushort **local_300;

+  undefined1 local_2f8;

+  undefined2 local_2e8;

+  undefined1 local_2e4;

+  ushort *local_2e0;

+  TraceLoggingCorrelationVectorV2_t local_2d8 [8];

+  longlong local_2d0;

+  GamingPostureWeeklyTelemetry *local_2c8;

+  GamingPostureController *local_2c0;

+  undefined **local_2b8 [42];

+  ActivityBase<class_GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,struct__TlgReflectorTag_Param0IsProviderType>

+  local_168 [336];

+  ulonglong local_18;

+  TraceLoggingCorrelationVectorV2_t *pTVar14;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_328;

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

+             ::__l2::impl;

+  local_2c0 = this;

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61097376>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61097376> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    this_00 = operator_new(0x18);

+    local_2c8 = this_00;

+    uVar3 = GamingPostureWeeklyTelemetry::GamingPostureWeeklyTelemetry(this_00);

+    local_2e0 = (ushort *)0x0;

+    pSVar1 = *(SnapLayoutBase **)(this + 0xc0);

+    *(undefined8 *)(this + 0xc0) = uVar3;

+    if (pSVar1 != (SnapLayoutBase *)0x0) {

+      std::default_delete<SnapLayoutBase>::operator()

+                ((default_delete<SnapLayoutBase> *)this_00,pSVar1);

+    }

+    this_01 = (FeatureImpl<struct___WilFeatureTraits_Feature_61097376> *)&local_2e0;

+    KioskPositioner::KioskPositionerConfiguration::~KioskPositionerConfiguration

+              ((KioskPositionerConfiguration *)this_01);

+  }

+  local_2d0 = 0;

+  local_2e8 = (ushort)(byte)local_2e8._0_1_;

+  local_2e0 = (ushort *)((ulonglong)local_2e0 & 0xffffffff00000000);

+  ppuVar12 = &local_2e0;

+  bVar2 = wil::wnf_query<unsigned_long>((_WNF_STATE_NAME *)this_01,(ulong *)ppuVar12,in_R8);

+  uVar10 = SUB81(ppuVar12,0);

+  if (bVar2) {

+    local_2e8 = CONCAT11(1,(int)local_2e0 != 0);

+    bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                        ::__l2::impl);

+    if (bVar2) {

+      this[0x71] = (GamingPostureController)0x1;

+      plVar4 = (longlong *)GamingPostureConfiguration::CurrentSessionId();

+      if (&local_2d0 != plVar4) {

+        phVar13 = (hstring_header *)*plVar4;

+        *plVar4 = 0;

+        handle_type<winrt::impl::hstring_traits>::attach

+                  ((handle_type<winrt::impl::hstring_traits> *)&local_2d0,phVar13);

+        uVar10 = SUB81(phVar13,0);

+      }

+      hstring::~hstring((hstring *)&local_2c8);

+    }

+  }

+  if (local_2e8._1_1_ == '\0') {

+    bVar2 = GamingPostureConfiguration::EnabledAtStartup();

+    local_2e8 = CONCAT11(1,bVar2);

+  }

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    if (local_2d0 != 0) {

+      puVar5 = hstring::c_str((hstring *)&local_2d0);

+      pTVar6 = TraceLoggingCorrelationVector::SetW(puVar5,(bool)uVar10);

+      std::

+      unique_ptr<TraceLoggingCorrelationVector,std::default_delete<TraceLoggingCorrelationVector>_>

+      ::reset((unique_ptr<TraceLoggingCorrelationVector,std::default_delete<TraceLoggingCorrelationVector>_>

+               *)(this + 0xa0),pTVar6);

+    }

+    this_02 = (unique_ptr<TraceLoggingCorrelationVector,std::default_delete<TraceLoggingCorrelationVector>_>

+               *)(this + 0xa0);

+    if (*(longlong *)this_02 == 0) {

+      puVar7 = (undefined8 *)

+               std::

+               make_unique<TraceLoggingCorrelationVector,TraceLoggingCorrelationVectorV2_t_const&___ptr64,0>

+                         (local_2d8);

+      pTVar6 = (TraceLoggingCorrelationVector *)*puVar7;

+      *puVar7 = 0;

+      std::

+      unique_ptr<TraceLoggingCorrelationVector,std::default_delete<TraceLoggingCorrelationVector>_>

+      ::reset(this_02,pTVar6);

+      std::

+      unique_ptr<TraceLoggingCorrelationVector,std::default_delete<TraceLoggingCorrelationVector>_>

+      ::

+      ~unique_ptr<TraceLoggingCorrelationVector,std::default_delete<TraceLoggingCorrelationVector>_>

+                ((unique_ptr<TraceLoggingCorrelationVector,std::default_delete<TraceLoggingCorrelationVector>_>

+                  *)local_2d8);

+      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_2e0,0);

+      TraceLoggingCorrelationVector::ToStringW(*(TraceLoggingCorrelationVector **)this_02,local_2e0)

+      ;

+      phVar8 = (hstring *)hstring::hstring((hstring *)local_2d8,local_2e0);

+      GamingPostureConfiguration::CurrentSessionId(phVar8);

+      hstring::~hstring((hstring *)local_2d8);

+      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_2e0);

+    }

+  }

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_52580392>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_52580392> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    std::optional<bool>::value((optional<bool> *)&local_2e8);

+    InitializeGamingPostureStateAsync(this,SUB81(local_2d8,0));

+    Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_2d8);

+  }

+  else {

+    local_2e4 = 1;

+    pbVar9 = std::optional<bool>::value((optional<bool> *)&local_2e8);

+    GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::Start<bool&___ptr64,bool>

+              ((bool *)local_168,pbVar9);

+    local_2c0 = (GamingPostureController *)&local_2e0;

+    local_2e0 = (ushort *)0x0;

+    local_2c8 = (GamingPostureWeeklyTelemetry *)local_2b8;

+    wil::

+    ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+    ::

+    ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+              ((ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+                *)local_2b8,local_168);

+    local_2b8[0] = &GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::_vftable_;

+    pbVar9 = std::optional<bool>::value((optional<bool> *)&local_2e8);

+    local_2f8 = 0;

+    local_300 = &local_2e0;

+    local_308 = 4;

+    pTVar14 = local_2d8;

+    SetGamingPostureStateAsync(this,pTVar14,*pbVar9,local_2b8);

+    lVar11 = (long)pTVar14;

+    Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_2d8);

+    wil::

+    ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+    ::Stop((ActivityBase<GamingPostureCoreTelemetryProvider,1,140737488355328,5,50331648,_TlgReflectorTag_Param0IsProviderType>

+            *)local_168,lVar11);

+    GamingPostureCoreTelemetryProvider::SetGamingPostureStateActivity::

+    ~SetGamingPostureStateActivity((SetGamingPostureStateActivity *)local_168);

+  }

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_59011247>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_59011247> *)

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

+                      ::__l2::impl);

+  if (!bVar2) {

+    this[0x70] = (GamingPostureController)0x1;

+    pbVar9 = std::optional<bool>::value((optional<bool> *)&local_2e8);

+    GamingPostureCoreTelemetryProvider::InitializedGamingPostureController<bool&___ptr64>(pbVar9);

+  }

+  hstring::~hstring((hstring *)&local_2d0);

+  return;

+}

+
```

## `winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,void>::GetIids`  (modified)

```diff
--- winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,void>::GetIids
+++ winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,void>::GetIids
@@ -1,2 +1,23 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,void>::GetIids : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual int __cdecl winrt::impl::produce_base<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,void>::GetIids(unsigned

+   int * __ptr64,struct winrt::guid * __ptr64 * __ptr64) __ptr64 */

+

+int __thiscall

+winrt::impl::

+produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,void>

+::GetIids(produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,void>

+          *this,uint *param_1,guid **param_2)

+

+{

+  long lVar1;

+  

+  lVar1 = implements<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs2,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,winrt::cloaked<winrt::Windows::Foundation::Marshaling::Internal::IValueMarshalByPropertySet>_>

+          ::GetIids((implements<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs2,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IInitializeActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,winrt::cloaked<winrt::Windows::Foundation::Marshaling::Internal::IValueMarshalByPropertySet>_>

+                     *)(-(ulonglong)

+                         (this != (produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IPrelaunchActivatedEventArgs,void>

+                                   *)0x0) & (ulonglong)(this + -0x48)),param_1,(_GUID **)param_2);

+  return lVar1;

+}

+
```

## `winrt::Windows::Internal::Shell::implementation::DiscoverabilityManager::unsubscribe_from_services`  (modified)

```diff
--- winrt::Windows::Internal::Shell::implementation::DiscoverabilityManager::unsubscribe_from_services
+++ winrt::Windows::Internal::Shell::implementation::DiscoverabilityManager::unsubscribe_from_services
@@ -1,2 +1,62 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::Windows::Internal::Shell::implementation::DiscoverabilityManager::unsubscribe_from_services : 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 void __cdecl

+   winrt::Windows::Internal::Shell::implementation::DiscoverabilityManager::unsubscribe_from_services(struct

+   IServiceProvider * __ptr64) __ptr64 */

+

+void __thiscall

+winrt::Windows::Internal::Shell::implementation::DiscoverabilityManager::unsubscribe_from_services

+          (DiscoverabilityManager *this,IServiceProvider *param_1)

+

+{

+  undefined4 uVar1;

+  long lVar2;

+  void *unaff_retaddr;

+  undefined8 local_res8 [4];

+  undefined4 local_28 [2];

+  undefined8 local_20;

+  undefined8 uStack_18;

+  

+  if (*(longlong *)(this + 0x1a0) != 0) {

+    local_res8[0] = 0;

+    com_ptr<GamingFallbackWindow>::operator=

+              ((com_ptr<GamingFallbackWindow> *)(this + 0x1a0),

+               (com_ptr<class_GamingFallbackWindow> *)local_res8);

+    WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_res8);

+  }

+  *(undefined4 *)(this + 0x168) = 0;

+  local_28[0] = 0;

+  local_20 = 0;

+  uStack_18 = 0;

+  uVar1 = (**(code **)(**(longlong **)(this + 0x170) + 0x78))();

+  check_hresult(local_res8,uVar1,local_28);

+  lVar2 = SmartCookie::Unregister((SmartCookie *)(this + 0x68));

+  if (lVar2 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x71,

+               "pcshell\\twinui\\discoverabilitymanager\\lib\\discoverabilitymanager.cpp",lVar2);

+  }

+  lVar2 = SmartCookie::Unregister((SmartCookie *)(this + 0xe8));

+  if (lVar2 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x72,

+               "pcshell\\twinui\\discoverabilitymanager\\lib\\discoverabilitymanager.cpp",lVar2);

+  }

+  if (*(longlong **)(this + 0x178) != (longlong *)0x0) {

+    local_28[0] = 0;

+    local_20 = 0;

+    uStack_18 = 0;

+    uVar1 = (**(code **)(**(longlong **)(this + 0x178) + 0x90))();

+    check_hresult(local_res8,uVar1,local_28);

+    local_res8[0] = 0;

+    com_ptr<GamingFallbackWindow>::operator=

+              ((com_ptr<GamingFallbackWindow> *)(this + 0x178),

+               (com_ptr<class_GamingFallbackWindow> *)local_res8);

+    WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_res8);

+  }

+  return;

+}

+
```

## `TaskbarLayoutPolicyManager::EnsureOEMLayoutFilePath`  (modified)

```diff
--- TaskbarLayoutPolicyManager::EnsureOEMLayoutFilePath
+++ TaskbarLayoutPolicyManager::EnsureOEMLayoutFilePath
@@ -1,2 +1,43 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TaskbarLayoutPolicyManager::EnsureOEMLayoutFilePath : 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 TaskbarLayoutPolicyManager::EnsureOEMLayoutFilePath(void) __ptr64 */

+

+long __thiscall

+TaskbarLayoutPolicyManager::EnsureOEMLayoutFilePath(TaskbarLayoutPolicyManager *this)

+

+{

+  long lVar1;

+  long lVar2;

+  uint uVar3;

+  int in_R9D;

+  void *unaff_retaddr;

+  undefined1 auStackY_258 [32];

+  ushort local_228 [264];

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStackY_258;

+  lVar1 = SHRegGetStringEx((HKEY__ *)0xffffffff80000002,

+                           (ushort *)L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer",

+                           (ushort *)L"LayoutXMLPath",in_R9D,local_228,0x104);

+  lVar2 = -0x7ff8fffe;

+  if (lVar1 != -0x7ff8fffe) {

+    if (lVar1 < 0) {

+      uVar3 = 0x246;

+    }

+    else {

+      lVar1 = Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::

+              _Initialize((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)

+                          (this + 0x38),local_228,0xffffffffffffffff);

+      if (-1 < lVar1) {

+        return 0;

+      }

+      uVar3 = 0x248;

+    }

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar3,

+               "pcshell\\twinui\\flexibletaskbarlayout\\lib\\taskbarlayoutpolicymanager.cpp",lVar1);

+    lVar2 = lVar1;

+  }

+  return lVar2;

+}

+
```

## `CStartExperienceManager::OnViewUncloaking`  (modified)

```diff
--- CStartExperienceManager::OnViewUncloaking
+++ CStartExperienceManager::OnViewUncloaking
@@ -1,22 +1,44 @@
+

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

+/* protected: virtual long __cdecl CStartExperienceManager::OnViewUncloaking(class

+   CSingleViewShellExperience * __ptr64) __ptr64 */

 

 long __thiscall

-CActivationBasedCollection<Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>_>::OnViewUncloaking

+CStartExperienceManager::OnViewUncloaking

           (CStartExperienceManager *this,CSingleViewShellExperience *param_1)

 

 {

-  CStartExperienceManager *pCVar1;

-  code *pcVar2;

-  long in_EAX;

-  long lVar3;

-  char in_CF;

+  bool bVar1;

+  EDGEUI_TRAYSTUCKPLACE EVar2;

+  undefined1 auStackY_68 [32];

+  bool local_38 [4];

+  EDGEUI_TRAYSTUCKPLACE local_34;

+  tagRECT local_30;

+  undefined8 local_20;

+  undefined8 local_18;

+  ulonglong local_10;

   

-  pCVar1 = this + -0x75;

-  *pCVar1 = (CStartExperienceManager)((char)*pCVar1 + (char)this + in_CF);

-  if ((POPCOUNT(*pCVar1) & 1U) == 0) {

-    return in_EAX;

+  local_10 = __security_cookie ^ (ulonglong)auStackY_68;

+  local_34 = 3;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_59213768> *)

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

+                      ::__l2::impl);

+  EVar2 = 3;

+  if (bVar1) {

+    local_30.left = 0;

+    local_30.top = 0;

+    local_30.right = 0;

+    local_30.bottom = 0;

+    local_38[0] = false;

+    GetMonitorInformation(this + -0x60,param_1,&local_30,&local_34,local_38,(HMONITOR__ **)0x0);

+    EVar2 = local_34;

   }

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

-  lVar3 = (*pcVar2)();

-  return lVar3;

+  local_30._0_8_ = (ulonglong)CONCAT22((short)EVar2,*(undefined2 *)(this + 600)) << 0x10;

+  local_30._8_8_ = *(undefined8 *)(this + 0x260);

+  local_20 = *(undefined8 *)(this + 0x268);

+  local_18 = *(undefined8 *)(this + 0x270);

+  RtlPublishWnfStateData(0xd83063ea3bcb035,0,&local_30,0x20);

+  return 0;

 }
```

## `SnapLayoutHelpers::AreQuadrantsEnabled`  (modified)

```diff
--- SnapLayoutHelpers::AreQuadrantsEnabled
+++ SnapLayoutHelpers::AreQuadrantsEnabled
@@ -1,10 +1,34 @@
 

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

+/* bool __cdecl SnapLayoutHelpers::AreQuadrantsEnabled(void) */

 

-bool __cdecl `TouchEdgeGripperHost::CreateGripperWindowAsync$_InitCoro$2'::AreQuadrantsEnabled(void)

+bool __cdecl SnapLayoutHelpers::AreQuadrantsEnabled(void)

 

 {

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

-  halt_baddata();

+  bool bVar1;

+  long lVar2;

+  void *unaff_retaddr;

+  _TABLETMODESTATE local_res8 [8];

+  

+  if (DAT_0 == '\0') {

+    local_res8[0] = 0;

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

+                      ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                        ::__l2::impl);

+    if (!bVar1) {

+      lVar2 = TabletModeHelpers::QueryTabletMode(local_res8);

+      if (-1 < lVar2) {

+        return local_res8[0] != 1;

+      }

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x89,"pcshell\\twinui\\snapcomponent\\lib\\snaplayouthelpers.cpp",

+                 lVar2);

+    }

+    bVar1 = true;

+  }

+  else {

+    bVar1 = false;

+  }

+  return bVar1;

 }
```

## `TabletModePositionerManager::TabletModePositionerManager`  (modified)

```diff
--- TabletModePositionerManager::TabletModePositionerManager
+++ TabletModePositionerManager::TabletModePositionerManager
@@ -1,2 +1,83 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TabletModePositionerManager::TabletModePositionerManager : 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 TabletModePositionerManager::TabletModePositionerManager(void) __ptr64 */

+

+TabletModePositionerManager * __thiscall

+TabletModePositionerManager::TabletModePositionerManager(TabletModePositionerManager *this)

+

+{

+  bool bVar1;

+  TabletModePositionerManager *pTVar2;

+  void *unaff_retaddr;

+  

+  pTVar2 = this;

+  CImmersiveShellComponentWithSite::CImmersiveShellComponentWithSite

+            ((CImmersiveShellComponentWithSite *)this);

+  *(undefined ***)(pTVar2 + 0x58) =

+       &Microsoft::WRL::

+        ChainInterfaces<IDesktopOperation,IAppLayoutOperationBuilder,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>

+        ::_vftable_;

+  *(undefined4 *)(pTVar2 + 0x6c) = 1;

+  *(undefined ***)pTVar2 =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositionerManagerPriv,ITabletModePositionerManager,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,IWindowManagementShowMoveSizeEvents>

+        ::_vftable_;

+  *(undefined ***)(pTVar2 + 0x18) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositionerManagerPriv,ITabletModePositionerManager,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,IWindowManagementShowMoveSizeEvents>

+        ::_vftable__for__IImmersiveShellComponent__;

+  *(undefined ***)(pTVar2 + 0x20) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IServiceProvider>__

+  ;

+  *(undefined ***)(pTVar2 + 0x58) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositionerManagerPriv,ITabletModePositionerManager,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,IWindowManagementShowMoveSizeEvents>

+        ::

+        _vftable__for__Microsoft__WRL__ChainInterfaces<ITabletModePositionerManagerPriv,ITabletModePositionerManager,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>__

+  ;

+  *(undefined ***)(pTVar2 + 0x60) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositionerManagerPriv,ITabletModePositionerManager,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,IWindowManagementShowMoveSizeEvents>

+        ::

+        _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IWindowManagementShowMoveSizeEvents>__

+  ;

+  if (Microsoft::WRL::Details::ModuleBase::module_ != (ModuleBase *)0x0) {

+    (**(code **)(*(longlong *)Microsoft::WRL::Details::ModuleBase::module_ + 8))();

+  }

+  *(undefined ***)this =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CImmersiveShellComponentWithSite,Microsoft::WRL::ChainInterfaces<ITabletModePositionerManagerPriv,ITabletModePositionerManager,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>,IWindowManagementShowMoveSizeEvents>

+        ::_vftable_;

+  *(undefined ***)(this + 0x18) = &_vftable__for__IImmersiveShellComponent__;

+  *(undefined ***)(this + 0x20) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IServiceProvider>__

+  ;

+  *(undefined ***)(this + 0x58) =

+       &

+       _vftable__for__Microsoft__WRL__ChainInterfaces<ITabletModePositionerManagerPriv,ITabletModePositionerManager,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil>__

+  ;

+  *(undefined ***)(this + 0x60) =

+       &

+       _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,IWindowManagementShowMoveSizeEvents>__

+  ;

+  CGITRegistrationList::CGITRegistrationList((CGITRegistrationList *)(this + 0x70));

+  *(undefined8 *)(this + 0xa0) = 0;

+  *(undefined8 *)(this + 0xa8) = 0;

+  *(undefined8 *)(this + 0x120) = 0;

+  *(undefined4 *)(this + 0x128) = 0;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (!bVar1) {

+    return this;

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_FailFast_Unexpected

+            (unaff_retaddr,0x15,"pcshell\\twinui\\tabletmode\\lib\\tabletmodepositionermanager.cpp")

+  ;

+}

+
```

## `GamingOverlayExperienceManager::SubscribeToServices`  (modified)

```diff
--- GamingOverlayExperienceManager::SubscribeToServices
+++ GamingOverlayExperienceManager::SubscribeToServices
@@ -1,16 +1,275 @@
 

-/* 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 */

+/* public: virtual long __cdecl GamingOverlayExperienceManager::SubscribeToServices(struct

+   IServiceProvider * __ptr64) __ptr64 */

 

 long __thiscall

-Microsoft::WRL::

-RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CServiceHostComponentWithGITSite,Microsoft::WRL::FtmBase>

-::SubscribeToServices(GamingOverlayExperienceManager *this,IServiceProvider *param_1)

+GamingOverlayExperienceManager::SubscribeToServices

+          (GamingOverlayExperienceManager *this,IServiceProvider *param_1)

 

 {

-  longlong in_RAX;

+  GamingOverlayExperienceManager *pGVar1;

+  ComPtr<IImmersiveSystemModeNotification> *pCVar2;

+  ComPtr<IImmersiveSystemModeNotification> *pCVar3;

+  code *pcVar4;

+  longlong *plVar5;

+  undefined8 *puVar6;

+  bool bVar7;

+  int iVar8;

+  longlong lVar9;

+  unique_any_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(struct_wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),struct_wistd::integral_constant<unsigned___int64,2>,struct_wil::details::wnf_subscription_state_base*___ptr64,struct_wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

+  *puVar10;

+  uint uVar11;

+  void *unaff_retaddr;

+  undefined1 auStack_138 [32];

+  ComPtr<IImmersiveSystemModeNotification> *local_118;

+  GamingOverlayExperienceManager *local_110;

+  wnf_subscription_state_base *local_f8;

+  ulonglong uStack_f0;

+  function<void___cdecl(PenButtonActionData_const&___ptr64)> local_d8 [8];

+  undefined **local_d0;

+  GamingOverlayExperienceManager *local_c8;

+  undefined ***local_68;

+  longlong *local_60;

+  longlong *local_58;

+  undefined8 local_50;

+  PRTL_CRITICAL_SECTION_DEBUG local_48;

+  ulonglong local_40;

   

-  *(int *)(in_RAX + -0x73) = *(int *)(in_RAX + -0x73) + -1;

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

-  halt_baddata();

+  local_40 = __security_cookie ^ (ulonglong)auStack_138;

+  local_48 = (PRTL_CRITICAL_SECTION_DEBUG)0x0;

+  wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)&local_48);

+  Microsoft::WRL::ComPtr<WeakReference::IWeakReference>::operator=

+            ((ComPtr<WeakReference::IWeakReference> *)(this + 400),(IWeakReference *)param_1);

+  pcVar4 = *(code **)(*(longlong *)param_1 + 0x18);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x180));

+  iVar8 = (*pcVar4)(param_1,&_GUID_c3bafd5f_1336_4556_b89f_7f96bba71aa6,

+                    &_GUID_c3bafd5f_1336_4556_b89f_7f96bba71aa6,

+                    (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x180));

+  if (iVar8 < 0) {

+    uVar11 = 0xdd0;

+  }

+  else {

+    pcVar4 = *(code **)(*(longlong *)param_1 + 0x18);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x188));

+    iVar8 = (*pcVar4)(param_1,&_GUID_a993a76e_0909_48bb_b0e9_4d8236263896,

+                      &_GUID_a993a76e_0909_48bb_b0e9_4d8236263896,

+                      (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x188));

+    if (iVar8 < 0) {

+      uVar11 = 0xdd3;

+    }

+    else {

+      pcVar4 = *(code **)(*(longlong *)param_1 + 0x18);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x1d8));

+      iVar8 = (*pcVar4)(param_1,&CLSID_ImmersivePlaybackManager,

+                        &_GUID_1fc98738_e0bf_4cb2_9de2_20ab31b23ce4,

+                        (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x1d8));

+      if (iVar8 < 0) {

+        uVar11 = 0xdd6;

+      }

+      else {

+        pcVar4 = *(code **)(*(longlong *)param_1 + 0x18);

+        pCVar2 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x168);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar2);

+        iVar8 = (*pcVar4)(param_1,&_GUID_d8c26227_b75e_4d8b_ac8c_c463a34ed11e,

+                          &_GUID_d8c26227_b75e_4d8b_ac8c_c463a34ed11e,pCVar2);

+        if (-1 < iVar8) {

+          local_60 = (longlong *)0x0;

+          pcVar4 = *(code **)(*(longlong *)param_1 + 0x18);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_60);

+          iVar8 = (*pcVar4)(param_1,&SID_IImmersiveMonitorService,

+                            &_GUID_4d4c1e64_e410_4faa_bafa_59ca069bfec2,&local_60);

+          plVar5 = local_60;

+          if (iVar8 < 0) {

+            uVar11 = 0xddd;

+LAB_0:

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,uVar11,

+                       "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+                       ,iVar8);

+          }

+          else {

+            pcVar4 = *(code **)(*local_60 + 0x48);

+            pCVar3 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x178);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar3);

+            local_118 = pCVar3;

+            iVar8 = (*pcVar4)(plVar5,0,&SID_ImmersiveLayout,

+                              &_GUID_d770b2ad_8f5e_4b8e_b3df_f05a2ab5287c);

+            if (iVar8 < 0) {

+              uVar11 = 0xdde;

+              goto LAB_0;

+            }

+            pGVar1 = this + -0x30;

+            iVar8 = (**(code **)(**(longlong **)pCVar3 + 0x28))

+                              (*(longlong **)pCVar3,10,

+                               -(ulonglong)(pGVar1 != (GamingOverlayExperienceManager *)0x0) &

+                               (ulonglong)(this + 0x48),this + 0x1e0);

+            if (iVar8 < 0) {

+              uVar11 = 0xde5;

+              goto LAB_0;

+            }

+            plVar5 = *(longlong **)(this + 400);

+            pcVar4 = *(code **)(*plVar5 + 0x18);

+            pCVar3 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x198);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar3);

+            iVar8 = (*pcVar4)(plVar5,&SID_ViewEventDispatcher,

+                              &_GUID_f5ef6433_2dc3_4aeb_b387_7c6cba1c012e,pCVar3);

+            if (iVar8 < 0) {

+              uVar11 = 0xdeb;

+              goto LAB_0;

+            }

+            local_50 = 0;

+            uStack_f0 = uStack_f0 & 0xffffffff00000000;

+            local_f8 = (wnf_subscription_state_base *)OnViewEvent;

+            Microsoft::WRL::

+            Callback<Windows::Foundation::ITypedEventHandler<Windows::Internal::Shell::ViewManagerInterop::IViewWrapper*___ptr64,Windows::Internal::Shell::ViewManagerInterop::IViewEventArgs*___ptr64>,GamingOverlayExperienceManager,Windows::Internal::Shell::ViewManagerInterop::IViewWrapper*___ptr64,Windows::Internal::Shell::ViewManagerInterop::IViewEventArgs*___ptr64>

+                      ((GamingOverlayExperienceManager *)&local_50,

+                       (_func_long_IViewWrapper_ptr_IViewEventArgs_ptr *)pGVar1);

+            local_58 = (longlong *)0x0;

+            puVar6 = *(undefined8 **)pCVar3;

+            pcVar4 = *(code **)*puVar6;

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_58);

+            iVar8 = (*pcVar4)(puVar6,&_GUID_22347704_c4ce_4e82_afeb_c6a00e06cc3a,&local_58);

+            plVar5 = local_58;

+            if (iVar8 < 0) {

+              uVar11 = 0xdf4;

+            }

+            else {

+              pcVar4 = *(code **)(*local_58 + 0x30);

+              lVar9 = Microsoft::WRL::Wrappers::HStringReference::

+                      HStringReference<unsigned_short_const*___ptr64>

+                                ((HStringReference *)&local_f8,&c_GamingOverlayAppId);

+              local_110 = this + 0x1f0;

+              local_118 = (ComPtr<IImmersiveSystemModeNotification> *)CONCAT44(local_118._4_4_,1);

+              iVar8 = (*pcVar4)(plVar5,local_50,*(undefined8 *)(lVar9 + 0x18),0);

+              if (iVar8 < 0) {

+                uVar11 = 0xdff;

+              }

+              else {

+                iVar8 = (**(code **)(**(longlong **)pCVar2 + 0x28))

+                                  (*(longlong **)pCVar2,

+                                   -(ulonglong)(pGVar1 != (GamingOverlayExperienceManager *)0x0) &

+                                   (ulonglong)(this + 0x50),this + 0x1e4);

+                if (iVar8 < 0) {

+                  uVar11 = 0xe02;

+                }

+                else {

+                  Microsoft::WRL::ComPtr<CreationThreadDispatcher>::InternalRelease

+                            ((ComPtr<CreationThreadDispatcher> *)(this + 0x3b8));

+                  iVar8 = Microsoft::WRL::Details::

+                          MakeAndInitialize<CreationThreadDispatcher,CreationThreadDispatcher>

+                                    ((CreationThreadDispatcher **)(this + 0x3b8));

+                  if (iVar8 < 0) {

+                    uVar11 = 0xe05;

+                  }

+                  else {

+                    local_d0 = &PTR__scalar_deleting_destructor__18073a6c8;

+                    local_68 = &local_d0;

+                    local_c8 = pGVar1;

+                    puVar10 = (unique_any_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(struct_wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),struct_wistd::integral_constant<unsigned___int64,2>,struct_wil::details::wnf_subscription_state_base*___ptr64,struct_wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

+                               *)wil::make_wnf_subscription_nothrow<wil::details::empty_wnf_state>

+                                           ((_WNF_STATE_NAME *)&local_f8,

+                                            (function<void___cdecl(void)> *)&WNF_SHEL_LOGON_COMPLETE

+                                            ,(ulong)local_d8);

+                    wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

+                    ::operator=((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

+                                 *)(this + 0x398),puVar10);

+                    if (local_f8 != (wnf_subscription_state_base *)0x0) {

+                      wil::details::delete_wnf_subscription_state(local_f8);

+                    }

+                    wistd::function<void___cdecl(PenButtonActionData_const&___ptr64)>::

+                    ~function<void___cdecl(PenButtonActionData_const&___ptr64)>(local_d8);

+                    bVar7 = wil::details::

+                            FeatureImpl<__WilFeatureTraits_Feature_Gamepad_NexusImprovements>::

+                            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_Gamepad_NexusImprovements>

+                                                 *)&

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

+                                                  ::__l2::impl);

+                    if (!bVar7) {

+LAB_1:

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_58);

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_50);

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_60);

+                      iVar8 = 0;

+                      goto LAB_2;

+                    }

+                    local_d0 = &PTR__scalar_deleting_destructor__18073a6f0;

+                    local_68 = &local_d0;

+                    local_c8 = pGVar1;

+                    puVar10 = (unique_any_t<class_wil::details::unique_storage<struct_wil::details::resource_policy<struct_wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(struct_wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),struct_wistd::integral_constant<unsigned___int64,2>,struct_wil::details::wnf_subscription_state_base*___ptr64,struct_wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

+                               *)wil::make_wnf_subscription_nothrow<wil::details::empty_wnf_state>

+                                           ((_WNF_STATE_NAME *)&local_f8,

+                                            (function<void___cdecl(void)> *)

+                                            &WNF_SHEL_DEVICE_UNLOCKED,(ulong)local_d8);

+                    wil::

+                    unique_any_t<wil::details::unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

+                    ::operator=((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<wil::details::wnf_subscription_state_base*___ptr64,void_(__cdecl*)(wil::details::wnf_subscription_state_base*___ptr64),&void___cdecl_wil::details::delete_wnf_subscription_state(struct_wil::details::wnf_subscription_state_base*___ptr64),wistd::integral_constant<unsigned___int64,2>,wil::details::wnf_subscription_state_base*___ptr64,wil::details::wnf_subscription_state_base*___ptr64,0,std::nullptr_t>_>_>

+                                 *)(this + 0x3a0),puVar10);

+                    if (local_f8 != (wnf_subscription_state_base *)0x0) {

+                      wil::details::delete_wnf_subscription_state(local_f8);

+                    }

+                    wistd::function<void___cdecl(PenButtonActionData_const&___ptr64)>::

+                    ~function<void___cdecl(PenButtonActionData_const&___ptr64)>(local_d8);

+                    pcVar4 = *(code **)(*(longlong *)param_1 + 0x18);

+                    pCVar2 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x608);

+                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                              (pCVar2);

+                    iVar8 = (*pcVar4)(param_1,&SID_MultitaskingViewServiceProvider,

+                                      &_GUID_90adbab9_cdb8_43dd_8daa_ba1180be5215,pCVar2);

+                    if (iVar8 < 0) {

+                      uVar11 = 0xe17;

+                    }

+                    else {

+                      iVar8 = Microsoft::WRL::ComPtr<IMultitaskingViewServiceProvider>::

+                              As<IMultitaskingViewTaskScheduler>

+                                        ((ComPtr<IMultitaskingViewServiceProvider> *)pCVar2,

+                                         this + 0x610);

+                      if (-1 < iVar8) goto LAB_1;

+                      uVar11 = 0xe18;

+                    }

+                  }

+                }

+              }

+            }

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,uVar11,

+                       "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+                       ,iVar8);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_58);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)&local_50);

+          }

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_60);

+          goto LAB_2;

+        }

+        uVar11 = 0xdd9;

+      }

+    }

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar11,

+             "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+             ,iVar8);

+LAB_2:

+  wil::details::

+  unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+              *)&local_48);

+  return iVar8;

 }
```

## `CopilotHotkeyManager::UpdateTargetAppDetailsCacheIfNecessary`  (modified)

```diff
--- CopilotHotkeyManager::UpdateTargetAppDetailsCacheIfNecessary
+++ CopilotHotkeyManager::UpdateTargetAppDetailsCacheIfNecessary
@@ -1,2 +1,181 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CopilotHotkeyManager::UpdateTargetAppDetailsCacheIfNecessary : 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 CopilotHotkeyManager::UpdateTargetAppDetailsCacheIfNecessary(void) __ptr64

+    */

+

+void __thiscall

+CopilotHotkeyManager::UpdateTargetAppDetailsCacheIfNecessary(CopilotHotkeyManager *this)

+

+{

+  bool bVar1;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  *pbVar2;

+  undefined8 uVar3;

+  TargetAppExtensionDetails *pTVar4;

+  longlong *plVar5;

+  undefined1 auStack_1e8 [32];

+  test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+  local_1c8 [8];

+  HKEY__ local_1c0 [8];

+  char local_1a0;

+  HKEY__ local_198 [8];

+  char local_178;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_170 [40];

+  undefined8 local_148;

+  undefined8 uStack_140;

+  undefined8 local_138;

+  undefined8 uStack_130;

+  undefined8 local_128;

+  undefined8 uStack_120;

+  undefined8 local_118;

+  undefined8 uStack_110;

+  undefined8 local_108;

+  undefined8 uStack_100;

+  undefined8 local_f8;

+  undefined8 uStack_f0;

+  undefined8 local_e8;

+  undefined8 local_e0;

+  undefined8 uStack_d8;

+  undefined8 local_d0;

+  undefined8 local_c8;

+  undefined8 local_c0;

+  undefined8 local_b8;

+  undefined8 uStack_b0;

+  undefined8 local_a8;

+  undefined8 uStack_a0;

+  undefined8 local_98;

+  undefined8 local_90;

+  undefined8 uStack_88;

+  undefined8 local_80;

+  undefined8 local_78;

+  undefined8 local_70;

+  undefined8 local_68;

+  undefined8 uStack_60;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  undefined8 local_48;

+  undefined8 local_40;

+  undefined8 uStack_38;

+  undefined8 local_30;

+  undefined8 local_28;

+  undefined8 local_20;

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_1e8;

+  wil::reg::

+  try_get_value<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+            (local_198,(ushort *)0xffffffff80000001,

+             (ushort *)L"Software\\Microsoft\\Windows\\Shell\\BrandedKey");

+  wil::reg::

+  try_get_value<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+            (local_1c0,(ushort *)0xffffffff80000001,

+             (ushort *)L"Software\\Microsoft\\Windows\\Shell\\BrandedKey");

+  if ((local_1a0 == '\0') || (local_178 == '\0')) {

+LAB_0:

+    plVar5 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+             ::operator->((tip_test<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+                           *)(this + 0x238));

+    *(undefined1 *)(*plVar5 + 0x11b) = 1;

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<_tip_CopilotHardwareKeyExtendedSignalsInvokedTest,_tip_CopilotHardwareKeyExtendedSignalsInvokedTest>_>

+              (local_1c8);

+    uStack_140 = 0;

+    local_138 = 0;

+    uStack_130 = 7;

+    local_148 = 0;

+    uStack_120 = 0;

+    local_118 = 0;

+    uStack_110 = 7;

+    local_128 = 0;

+    uStack_100 = 0;

+    local_f8 = 0;

+    uStack_f0 = 7;

+    local_108 = 0;

+    local_e8 = 0;

+    uStack_d8 = 0;

+    local_d0 = 0;

+    local_c8 = 7;

+    local_e0 = 0;

+    local_c0 = 0;

+    uStack_b0 = 0;

+    local_a8 = 0;

+    uStack_a0 = 7;

+    local_b8 = 0;

+    local_98 = 0;

+    uStack_88 = 0;

+    local_80 = 0;

+    local_78 = 7;

+    local_90 = 0;

+    local_70 = 0;

+    uStack_60 = 0;

+    local_58 = 0;

+    uStack_50 = 7;

+    local_68 = 0;

+    local_48 = 0;

+    uStack_38 = 0;

+    local_30 = 0;

+    local_28 = 7;

+    local_40 = 0;

+    local_20 = 0;

+    TargetAppExtensionDetails::operator=

+              ((TargetAppExtensionDetails *)(this + 0xd0),(TargetAppExtensionDetails *)&local_148);

+    TargetAppExtensionDetails::~TargetAppExtensionDetails((TargetAppExtensionDetails *)&local_148);

+  }

+  else {

+    bVar1 = std::

+            basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+            ::_Equal((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      *)local_198,(ushort *)L"App");

+    if (!bVar1) {

+      bVar1 = std::

+              basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+              ::_Equal((basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                        *)local_198,(ushort *)L"AppEnforcedByPolicy");

+      if (!bVar1) goto LAB_0;

+    }

+    if (*(longlong *)(this + 0xe0) != 0) {

+      bVar1 = std::

+              operator!=<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_1c0,

+                         (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          *)(this + 0xd0));

+      if (!bVar1) goto LAB_1;

+    }

+    pbVar2 = std::

+             optional<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+             ::value((optional<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>

+                      *)local_1c0);

+    uVar3 = 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_170,

+                       (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                        *)pbVar2);

+    pTVar4 = (TargetAppExtensionDetails *)GetTargetAppExtensionDetails(this,&local_148,uVar3);

+    TargetAppExtensionDetails::operator=((TargetAppExtensionDetails *)(this + 0xd0),pTVar4);

+    TargetAppExtensionDetails::~TargetAppExtensionDetails((TargetAppExtensionDetails *)&local_148);

+    ClearFastpathRegistrationProperties(this);

+  }

+LAB_1:

+  std::

+  _Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+  ::

+  ~_Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+            ((_Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+              *)local_1c0);

+  std::

+  _Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+  ::

+  ~_Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+            ((_Optional_destruct_base<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,0>

+              *)local_198);

+  return;

+}

+
```

## `BroadcastDVRComponent::LaunchGameOverlayWithStartupTipsFlag`  (modified)

```diff
--- BroadcastDVRComponent::LaunchGameOverlayWithStartupTipsFlag
+++ BroadcastDVRComponent::LaunchGameOverlayWithStartupTipsFlag
@@ -1,2 +1,137 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB BroadcastDVRComponent::LaunchGameOverlayWithStartupTipsFlag : 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 BroadcastDVRComponent::LaunchGameOverlayWithStartupTipsFlag(struct HWND__ *

+   __ptr64,struct BroadcastDVRActiveAppInfo * __ptr64) __ptr64 */

+

+long __thiscall

+BroadcastDVRComponent::LaunchGameOverlayWithStartupTipsFlag

+          (BroadcastDVRComponent *this,HWND__ *param_1,BroadcastDVRActiveAppInfo *param_2)

+

+{

+  code *pcVar1;

+  longlong *plVar2;

+  int iVar3;

+  int iVar4;

+  undefined8 *puVar5;

+  undefined8 uVar6;

+  uint uVar7;

+  wchar_t *pwVar8;

+  void *unaff_retaddr;

+  undefined1 auStack_4d8 [32];

+  uint local_4b8;

+  HWND__ *local_4b0;

+  undefined4 local_4a8;

+  DWORD local_4a4;

+  undefined8 local_4a0;

+  longlong *local_498;

+  int local_490 [2];

+  longlong *local_488;

+  longlong *local_480;

+  undefined8 local_478;

+  undefined1 local_470 [24];

+  undefined8 local_458;

+  undefined1 local_450 [24];

+  ushort local_438 [512];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStack_4d8;

+  local_488 = (longlong *)0x0;

+  memset(local_438,0,0x400);

+  Windows::Internal::StringReference::_ConstructorHelper

+            ((StringReference *)&local_458,(ushort *)c_wzGameBarStartupTipsUri);

+  puVar5 = (undefined8 *)

+           Windows::Internal::StringReference::StringReference<23>

+                     ((StringReference *)&local_478,(ushort *)L"Windows.Foundation.Uri");

+  iVar3 = Windows::Foundation::

+          GetActivationFactory<Microsoft::WRL::ComPtr<Windows::Foundation::IUriRuntimeClassFactory>_>

+                    (*puVar5,&local_488);

+  if (iVar3 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xd61,

+               "pcshell\\twinui\\broadcastdvrcomponent\\lib\\broadcastdvrprovider.cpp",iVar3);

+    goto LAB_0;

+  }

+  iVar3 = 0;

+  if (param_2 == (BroadcastDVRActiveAppInfo *)0x0) {

+LAB_1:

+    local_480 = local_488;

+    if (local_488 != (longlong *)0x0) {

+      (**(code **)(*local_488 + 8))();

+    }

+    local_478 = 0;

+    local_4a8 = 0;

+    uVar6 = WindowsGetStringRawBuffer(local_458,&local_4a8);

+    WindowsCreateStringReference(uVar6,local_4a8,local_470,&local_478);

+    LaunchGameOverlayWithUri();

+  }

+  else {

+    local_498 = (longlong *)0x0;

+    local_4a4 = 0;

+    GetWindowThreadProcessId(param_1,&local_4a4);

+    plVar2 = local_488;

+    local_4a0 = 0;

+    pcVar1 = *(code **)*local_488;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_498);

+    iVar4 = (*pcVar1)(plVar2,&_GUID_c1d432ba_c824_4452_a7fd_512bc3bbe9a1,&local_498);

+    plVar2 = local_498;

+    if (iVar4 < 0) {

+      uVar7 = 0xd6b;

+      iVar3 = iVar4;

+    }

+    else {

+      pcVar1 = *(code **)(*local_498 + 0x38);

+      WindowsDeleteString(local_4a0);

+      local_4a0 = 0;

+      iVar4 = (*pcVar1)(plVar2,*(undefined8 *)(param_2 + 0x30),&local_4a0);

+      if (-1 < iVar4) {

+        local_490[0] = 0;

+        uVar6 = WindowsGetStringRawBuffer(local_4a0,local_490);

+        if (local_490[0] == 0) {

+          iVar4 = swprintf_s<512>(local_438,

+                                  (ushort *)L"ms-gamingoverlay://startuptips?pid=%lu&WindowId=%llu",

+                                  (ulonglong)local_4a4,param_1);

+        }

+        else {

+          pwVar8 = L"AumId";

+          if (param_2[0x13] == (BroadcastDVRActiveAppInfo)0x0) {

+            pwVar8 = L"TitleId";

+          }

+          local_4b8 = local_4a4;

+          local_4b0 = param_1;

+          iVar4 = swprintf_s<512>(local_438,

+                                  (ushort *)

+                                  L"ms-gamingoverlay://startuptips?%ls=%ls&ProcessId=%lu&WindowId=%llu"

+                                  ,pwVar8,uVar6);

+        }

+        if (0 < iVar4) {

+          Windows::Internal::StringReference::_ConstructorHelper

+                    ((StringReference *)&local_478,local_438);

+          local_4a8 = 0;

+          uVar6 = WindowsGetStringRawBuffer(local_478,&local_4a8);

+          local_458 = 0;

+          WindowsCreateStringReference(uVar6,local_4a8,local_450,&local_458);

+        }

+        Windows::Internal::String::~String((String *)&local_4a0);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_498);

+        goto LAB_1;

+      }

+      uVar7 = 0xd6c;

+      iVar3 = iVar4;

+    }

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar7,

+               "pcshell\\twinui\\broadcastdvrcomponent\\lib\\broadcastdvrprovider.cpp",iVar3);

+    Windows::Internal::String::~String((String *)&local_4a0);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_498);

+  }

+LAB_0:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_488);

+  return iVar3;

+}

+
```

## `winrt::Windows::Internal::Shell::implementation::DashboardManager::CallDashboardExtension`  (modified)

```diff
--- winrt::Windows::Internal::Shell::implementation::DashboardManager::CallDashboardExtension
+++ winrt::Windows::Internal::Shell::implementation::DashboardManager::CallDashboardExtension
@@ -1,17 +1,325 @@
+

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

+/* private: long __cdecl

+   winrt::Windows::Internal::Shell::implementation::DashboardManager::CallDashboardExtension(class

+   std::function<void __cdecl(struct winrt::WindowsUdk::UI::Shell::Dashboard::DashboardExtension)>

+   && __ptr64,class std::basic_string_view<unsigned short,struct std::char_traits<unsigned short>

+   >,class std::chrono::duration<__int64,struct std::ratio<1,1000> >) __ptr64 */

 

 long __thiscall

-Microsoft::WRL::ComPtr<IUri>::CallDashboardExtension

-          (DashboardManager *this,nvp<bool&___ptr64> *param_1,nvp<bool&___ptr64> *param_3,

-          nvp<bool&___ptr64> *param_4)

+winrt::Windows::Internal::Shell::implementation::DashboardManager::CallDashboardExtension

+          (DashboardManager *this,undefined8 param_1,undefined8 *param_3,ulong param_4)

 

 {

-  long extraout_EAX;

+  long lVar1;

+  longlong lVar2;

+  bool bVar3;

+  hstring *phVar4;

+  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+  *pbVar5;

+  undefined8 uVar6;

+  FeatureImpl<struct___WilFeatureTraits_Feature_55383831> *this_00;

+  test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  *this_01;

+  allocator<unsigned_short> *paVar7;

+  void *unaff_retaddr;

+  undefined1 auStack_2f8 [32];

+  long local_2d8 [2];

+  longlong local_2d0;

+  longlong local_2c8;

+  longlong local_2c0;

+  longlong local_2b8;

+  hstring local_2b0 [8];

+  longlong local_2a8;

+  hstring local_2a0 [16];

+  longlong local_290;

+  longlong local_288;

+  longlong local_280;

+  DashboardManager *local_278;

+  test_watcher<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  *ptStack_270;

+  undefined8 local_268;

+  long *plStack_260;

+  test_watcher<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  *local_258;

+  DashboardManager *pDStack_250;

+  undefined8 local_248;

+  long *plStack_240;

+  test_watcher<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  local_238 [56];

+  longlong local_200;

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_1f8 [32];

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_1d8 [32];

+  basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+  local_1b8 [32];

+  function<long___cdecl(void)> local_198 [8];

+  undefined **local_190;

+  test_watcher<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  *local_188;

+  DashboardManager *pDStack_180;

+  undefined8 local_178;

+  long *plStack_170;

+  undefined ***local_128;

+  function<long___cdecl(void)> local_120 [8];

+  undefined **local_118;

+  DashboardManager *local_110;

+  test_watcher<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  *ptStack_108;

+  undefined8 local_100;

+  long *plStack_f8;

+  undefined ***local_b0;

+  function<bool___cdecl(long)> local_a8 [8];

+  undefined **local_a0;

+  code *local_98;

+  undefined ***local_38;

+  ulonglong local_30;

   

-  tson::output_archive::

-  process<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>_>

-            ((output_archive *)this,param_1,param_3,param_4,

-             *(nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

-               **)((ulonglong)((int)&stack0x00000000 + 0x30) + 0x30));

-  return extraout_EAX;

+  local_30 = __security_cookie ^ (ulonglong)auStack_2f8;

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

+             ::__l2::impl;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_55383831>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_55383831> *)

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

+                      ::__l2::impl);

+  if ((bVar3) && (bVar3 = IsWidgetDisabledByPolicy((DashboardManager *)this_00), bVar3)) {

+    DashboardManagerTelemetry::WidgetDisabledByPolicy();

+    return 0;

+  }

+  <lambda_240eec98032e84500ab379a9acf4bb76>::operator()();

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60880818>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60880818> *)

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

+                      ::__l2::impl);

+  lVar2 = local_200;

+  if (bVar3) {

+    local_2c0 = local_200;

+    if (local_200 != 0) {

+      LOCK();

+      *(int *)(local_200 + 0x178) = *(int *)(local_200 + 0x178) + 1;

+      UNLOCK();

+    }

+    tip2::details::shared_data<1,0,0>::begin_update((shared_data<1,0,0> *)(local_200 + 8));

+    paVar7 = (allocator<unsigned_short> *)param_3[1];

+    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>_>

+            *)(lVar2 + 0x138),(ushort *)*param_3,(__uint64)paVar7);

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+              ((test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+                *)&local_2c0);

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_49686193>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_49686193> *)

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

+                        ::__l2::impl);

+    if (bVar3) {

+      GetDashboardAppExtension(this);

+      if (local_2d0 != 0) {

+        phVar4 = (hstring *)

+                 winrt::impl::

+                 consume_Windows_Internal_Shell_IRemoteDesktopProviderInfo<winrt::Windows::Internal::Shell::IRemoteDesktopProviderInfo>

+                 ::SystemId((consume_Windows_Internal_Shell_IRemoteDesktopProviderInfo<winrt::Windows::Internal::Shell::IRemoteDesktopProviderInfo>

+                             *)&local_2d0);

+        pbVar5 = (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                  *)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>_><winrt::hstring,0>

+                              (local_1f8,phVar4,paVar7);

+        lVar2 = local_200;

+        local_2b8 = local_200;

+        if (local_200 != 0) {

+          LOCK();

+          *(int *)(local_200 + 0x178) = *(int *)(local_200 + 0x178) + 1;

+          UNLOCK();

+        }

+        tip2::details::shared_data<1,0,0>::begin_update((shared_data<1,0,0> *)(local_200 + 8));

+        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>_>

+                     *)(lVar2 + 0x158),pbVar5);

+        tip2::

+        test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+        ::

+        ~test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+                  ((test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+                    *)&local_2b8);

+        std::

+        basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+        ::_Tidy_deallocate(local_1f8);

+        hstring::~hstring(local_2b0);

+      }

+      WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+      ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_2d0);

+    }

+    else {

+      phVar4 = (hstring *)`anonymous_namespace'::GetDashboardExtensionName(local_2a0);

+      pbVar5 = (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                *)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>_><winrt::hstring,0>

+                            (local_1d8,phVar4,paVar7);

+      lVar2 = local_200;

+      local_2a8 = local_200;

+      if (local_200 != 0) {

+        LOCK();

+        *(int *)(local_200 + 0x178) = *(int *)(local_200 + 0x178) + 1;

+        UNLOCK();

+      }

+      tip2::details::shared_data<1,0,0>::begin_update((shared_data<1,0,0> *)(local_200 + 8));

+      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>_>

+                   *)(lVar2 + 0x158),pbVar5);

+      tip2::

+      test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+                ((test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+                  *)&local_2a8);

+      std::

+      basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+      ::_Tidy_deallocate(local_1d8);

+      hstring::~hstring(local_2a0);

+    }

+  }

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_49686193>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_49686193> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    uVar6 = GetDashboardAppExtension(this);

+    pbVar5 = (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+              *)`anonymous_namespace'::TryGetDashboardPackageName(local_1b8,uVar6);

+    lVar2 = local_200;

+    local_2c8 = local_200;

+    if (local_200 != 0) {

+      LOCK();

+      *(int *)(local_200 + 0x178) = *(int *)(local_200 + 0x178) + 1;

+      UNLOCK();

+    }

+    tip2::details::shared_data<1,0,0>::begin_update((shared_data<1,0,0> *)(local_200 + 8));

+    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>_>

+               *)(lVar2 + 0x118),pbVar5);

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+              ((test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+                *)&local_2c8);

+    std::

+    basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>::

+    _Tidy_deallocate(local_1b8);

+  }

+  local_a0 = &wistd::__function::__func<bool_(__cdecl*)(long),bool___cdecl(long)>::_vftable_;

+  local_98 = `anonymous_namespace'::IsRetriableRpcError;

+  local_38 = &local_a0;

+  ptStack_270 = local_238;

+  plStack_260 = local_2d8;

+  local_118 = &PTR__scalar_deleting_destructor__180760ed0;

+  local_b0 = &local_118;

+  local_258 = local_238;

+  plStack_240 = local_2d8;

+  local_190 = &PTR__scalar_deleting_destructor__180760ef8;

+  local_128 = &local_190;

+  local_278 = this;

+  local_268 = param_1;

+  pDStack_250 = this;

+  local_248 = param_1;

+  local_188 = local_258;

+  pDStack_180 = this;

+  local_178 = param_1;

+  plStack_170 = plStack_240;

+  local_110 = this;

+  ptStack_108 = ptStack_270;

+  local_100 = param_1;

+  plStack_f8 = plStack_260;

+  local_2d8[0] = ::Windows::Internal::Shell::TryWithRpcDisconnectFallbackAndTimeout

+                           (param_4,local_198,local_120,local_a8);

+  wistd::function<void___cdecl(PenButtonActionData_const&___ptr64)>::

+  ~function<void___cdecl(PenButtonActionData_const&___ptr64)>

+            ((function<void___cdecl(PenButtonActionData_const&___ptr64)> *)local_198);

+  wistd::function<void___cdecl(PenButtonActionData_const&___ptr64)>::

+  ~function<void___cdecl(PenButtonActionData_const&___ptr64)>

+            ((function<void___cdecl(PenButtonActionData_const&___ptr64)> *)local_120);

+  wistd::function<void___cdecl(PenButtonActionData_const&___ptr64)>::

+  ~function<void___cdecl(PenButtonActionData_const&___ptr64)>

+            ((function<void___cdecl(PenButtonActionData_const&___ptr64)> *)local_a8);

+  if (local_2d8[0] < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0xb43,"pcshell\\twinui\\dashboardmanager\\lib\\dashboardmanager.cpp",

+               local_2d8[0]);

+  }

+  lVar2 = local_200;

+  lVar1 = local_2d8[0];

+  local_290 = local_200;

+  if (local_200 != 0) {

+    LOCK();

+    *(int *)(local_200 + 0x178) = *(int *)(local_200 + 0x178) + 1;

+    UNLOCK();

+  }

+  tip2::details::shared_data<1,0,0>::begin_update((shared_data<1,0,0> *)(local_200 + 8));

+  *(long *)(lVar2 + 0x114) = lVar1;

+  tip2::

+  test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+            ((test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+              *)&local_290);

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_600963485>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_600963485> *)

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

+                      ::__l2::impl);

+  lVar2 = local_200;

+  if (bVar3) {

+    bVar3 = -1 < local_2d8[0];

+    local_288 = local_200;

+    if (local_200 != 0) {

+      LOCK();

+      *(int *)(local_200 + 0x178) = *(int *)(local_200 + 0x178) + 1;

+      UNLOCK();

+    }

+    tip2::details::shared_data<1,0,0>::begin_update((shared_data<1,0,0> *)(local_200 + 8));

+    this_01 = (test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+               *)&local_288;

+  }

+  else {

+    if (((local_2d8[0] + 0x80000000U & 0x80000000) == 0) && (local_2d8[0] != -0x7ffefffe)) {

+      bVar3 = false;

+    }

+    else {

+      bVar3 = true;

+    }

+    local_280 = local_200;

+    if (local_200 != 0) {

+      LOCK();

+      *(int *)(local_200 + 0x178) = *(int *)(local_200 + 0x178) + 1;

+      UNLOCK();

+    }

+    tip2::details::shared_data<1,0,0>::begin_update((shared_data<1,0,0> *)(local_200 + 8));

+    this_01 = (test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+               *)&local_280;

+  }

+  *(bool *)(lVar2 + 0x112) = bVar3;

+  tip2::

+  test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+            (this_01);

+  tip2::details::shared_data<1,0,0>::complete_without_lock((shared_data<1,0,0> *)(local_200 + 8));

+  lVar1 = local_2d8[0];

+  tip2::

+  test_watcher<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+  ::

+  ~test_watcher<tip2::details::merged_data<_tip_CallDashboardExtensionTIP,_tip_CallDashboardExtensionTIP>_>

+            (local_238);

+  return lVar1;

 }
```

## `ChromeManager::ChromeManager`  (modified)

```diff
--- ChromeManager::ChromeManager
+++ ChromeManager::ChromeManager
@@ -1,2 +1,54 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB ChromeManager::ChromeManager : 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 ChromeManager::ChromeManager(void) __ptr64 */

+

+ChromeManager * __thiscall ChromeManager::ChromeManager(ChromeManager *this)

+

+{

+  bool bVar1;

+  void *unaff_retaddr;

+  

+  *(undefined ***)this =

+       &CPinnedList::

+        _vftable__for__Microsoft__WRL__Details__ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithSite>_>__

+  ;

+  *(undefined8 *)(this + 0x10) = 0;

+  *(undefined4 *)(this + 0x24) = 1;

+  *(undefined ***)this =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CWRLObjectWithSite,ITabletModeChromeManager>

+        ::

+        _vftable__for__Microsoft__WRL__Details__Selector<CWRLObjectWithSite,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithSite>,ITabletModeChromeManager>_>__

+  ;

+  *(undefined ***)(this + 0x18) =

+       &Microsoft::WRL::

+        RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CWRLObjectWithSite,ITabletModeChromeManager>

+        ::

+        _vftable__for__Microsoft__WRL__Details__Selector<Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,ITabletModeChromeManager>,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithSite>,ITabletModeChromeManager>_>__

+  ;

+  if (Microsoft::WRL::Details::ModuleBase::module_ != (ModuleBase *)0x0) {

+    (**(code **)(*(longlong *)Microsoft::WRL::Details::ModuleBase::module_ + 8))();

+  }

+  *(undefined ***)this =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<CWRLObjectWithSite,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithSite>,ITabletModeChromeManager>_>__

+  ;

+  *(undefined ***)(this + 0x18) =

+       &

+       _vftable__for__Microsoft__WRL__Details__Selector<Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,1,ITabletModeChromeManager>,Microsoft::WRL::Details::ImplementsHelper<Microsoft::WRL::RuntimeClassFlags<2>,0,Microsoft::WRL::Details::ImplementsMarker<CWRLObjectWithSite>,ITabletModeChromeManager>_>__

+  ;

+  *(undefined8 *)(this + 0x28) = 0;

+  *(undefined8 *)(this + 0x30) = 0;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (!bVar1) {

+    return this;

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_FailFast_Unexpected

+            (unaff_retaddr,0x14,"pcshell\\twinui\\tabletmode\\lib\\chromemanager.cpp");

+}

+
```

## `_tip_CallDashboardExtensionTIP::serialize<tson::output_archive>`  (modified)

```diff
--- _tip_CallDashboardExtensionTIP::serialize<tson::output_archive>
+++ _tip_CallDashboardExtensionTIP::serialize<tson::output_archive>
@@ -1,2 +1,93 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB _tip_CallDashboardExtensionTIP::serialize<tson::output_archive> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl _tip_CallDashboardExtensionTIP::serialize<class tson::output_archive>(class

+   tson::output_archive & __ptr64) __ptr64 */

+

+void __thiscall

+_tip_CallDashboardExtensionTIP::serialize<tson::output_archive>

+          (_tip_CallDashboardExtensionTIP *this,output_archive *param_1)

+

+{

+  bool bVar1;

+  char *local_d8;

+  undefined1 local_d0;

+  _tip_CallDashboardExtensionTIP *local_c8;

+  char *local_c0;

+  undefined1 local_b8;

+  _tip_CallDashboardExtensionTIP *local_b0;

+  char *local_a8;

+  undefined1 local_a0;

+  _tip_CallDashboardExtensionTIP *local_98;

+  char *local_90;

+  undefined1 local_88;

+  _tip_CallDashboardExtensionTIP *local_80;

+  char *local_78;

+  undefined1 local_70;

+  _tip_CallDashboardExtensionTIP *local_68;

+  char *local_60;

+  undefined1 local_58;

+  _tip_CallDashboardExtensionTIP *local_50;

+  char *local_48;

+  undefined1 local_40;

+  _tip_CallDashboardExtensionTIP *local_38;

+  

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60880818> *)

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

+                      ::__l2::impl);

+  local_a0 = 0x10;

+  local_98 = this + 0x12;

+  if (bVar1) {

+    local_58 = 0xb;

+    local_60 = "extensionId";

+    local_50 = this + 0x58;

+    local_40 = 0xc;

+    local_d0 = 2;

+    local_48 = "scenarioName";

+    local_38 = this + 0x38;

+    local_b8 = 0xf;

+    local_d8 = "hr";

+    local_c0 = "packageFullName";

+    local_a8 = "isCallSuccessful";

+    local_90 = "isDashboardExtensionPresent";

+    local_78 = "isDashboardExtensionNull";

+    local_88 = 0x1b;

+    local_70 = 0x18;

+    local_c8 = this + 0x14;

+    local_b0 = this + 0x18;

+    local_80 = this + 0x11;

+    local_68 = this + 0x10;

+    tson::output_archive::

+    operator()<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>,tson::nvp<long&___ptr64>,tson::nvp<class_std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>&___ptr64>,tson::nvp<class_std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>&___ptr64>_>

+              (param_1,(nvp<bool&___ptr64> *)&local_78,(nvp<bool&___ptr64> *)&local_90,

+               (nvp<bool&___ptr64> *)&local_a8,

+               (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+                *)&local_c0,(nvp<long&___ptr64> *)&local_d8,

+               (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+                *)&local_48,

+               (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+                *)&local_60);

+  }

+  else {

+    local_70 = 2;

+    local_78 = "hr";

+    local_90 = "packageFullName";

+    local_88 = 0xf;

+    local_a8 = "isCallSuccessful";

+    local_c0 = "isDashboardExtensionPresent";

+    local_b8 = 0x1b;

+    local_d8 = "isDashboardExtensionNull";

+    local_d0 = 0x18;

+    local_c8 = this + 0x10;

+    local_b0 = this + 0x11;

+    local_80 = this + 0x18;

+    local_68 = this + 0x14;

+    tson::output_archive::

+    operator()<tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<bool&___ptr64>,tson::nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>,tson::nvp<long&___ptr64>_>

+              (param_1,(nvp<bool&___ptr64> *)&local_d8,(nvp<bool&___ptr64> *)&local_c0,

+               (nvp<bool&___ptr64> *)&local_a8,

+               (nvp<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>&___ptr64>

+                *)&local_90,(nvp<long&___ptr64> *)&local_78);

+  }

+  return;

+}

+
```

## `CImmersiveShellCreationBehavior::OnImmersiveShellThreadStart`  (modified)

```diff
--- CImmersiveShellCreationBehavior::OnImmersiveShellThreadStart
+++ UndockedSearchAppExperienceManager::ActivateSearch
@@ -1,2 +1,41 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CImmersiveShellCreationBehavior::OnImmersiveShellThreadStart : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void __thiscall

+Windows::Internal::ShellHelpers::PropertySetHelper::ActivateSearch

+          (UndockedSearchAppExperienceManager *this,SearchAppActivatedEventArgs *param_1,

+          bool param_2)

+

+{

+  char *in_RAX;

+  longlong unaff_RBX;

+  undefined8 uStack0000000000000030;

+  

+  *in_RAX = *in_RAX + (char)in_RAX;

+  _revoke___event_revoker_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt___MP8type___abi_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BDI_AA_impl_winrt__QEAAXXZ

+            (unaff_RBX + 0x150);

+  _revoke___event_revoker_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt___MP8type___abi_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BEI_AA_impl_winrt__QEAAXXZ

+            (unaff_RBX + 0x160);

+  uStack0000000000000030 = 0;

+  winrt::com_ptr<GamingFallbackWindow>::operator=

+            ((com_ptr<GamingFallbackWindow> *)(unaff_RBX + 0x148),

+             (com_ptr<class_GamingFallbackWindow> *)&stack0x00000030);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&stack0x00000030);

+  _revoke___event_revoker_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt___MP8type___abi_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BDI_AA_impl_winrt__QEAAXXZ

+            (unaff_RBX + 0x178);

+  _revoke___event_revoker_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt___MP8type___abi_UIShellViewCoordinator_Shell_UI_WindowsUdk_winrt__X_impl_5_EAAHUevent_token_5___E1___96785__BEI_AA_impl_winrt__QEAAXXZ

+            (unaff_RBX + 0x188);

+  uStack0000000000000030 = 0;

+  winrt::com_ptr<GamingFallbackWindow>::operator=

+            ((com_ptr<GamingFallbackWindow> *)(unaff_RBX + 0x170),

+             (com_ptr<class_GamingFallbackWindow> *)&stack0x00000030);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&stack0x00000030);

+  uStack0000000000000030 = 0;

+  winrt::com_ptr<GamingFallbackWindow>::operator=

+            ((com_ptr<GamingFallbackWindow> *)(unaff_RBX + 0x198),

+             (com_ptr<class_GamingFallbackWindow> *)&stack0x00000030);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&stack0x00000030);

+  return;

+}

+
```

## `GamingOverlayExperienceManager::OnWindowChangedViewEvent`  (modified)

```diff
--- GamingOverlayExperienceManager::OnWindowChangedViewEvent
+++ GamingOverlayExperienceManager::OnWindowChangedViewEvent
@@ -1,506 +1,141 @@
 

-/* 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 */

+/* private: long __cdecl GamingOverlayExperienceManager::OnWindowChangedViewEvent(struct

+   Windows::Internal::Shell::ViewManagerInterop::IViewWrapper * __ptr64,struct

+   Windows::Internal::Shell::ViewManagerInterop::IViewEventArgs * __ptr64) __ptr64 */

 

 long __thiscall

-Microsoft::WRL::

-RuntimeClass<Microsoft::WRL::RuntimeClassFlags<2>,CServiceHostComponentWithGITSite,Microsoft::WRL::FtmBase>

-::OnWindowChangedViewEvent

+GamingOverlayExperienceManager::OnWindowChangedViewEvent

           (GamingOverlayExperienceManager *this,IViewWrapper *param_1,IViewEventArgs *param_2)

 

 {

-  DWORD dwProcessId;

-  longlong *plVar1;

-  code *pcVar2;

-  longlong lVar3;

-  int *piVar4;

-  double *pdVar5;

-  void *pvVar6;

-  bool bVar7;

-  long lVar8;

-  BOOL BVar9;

-  clock_t cVar10;

-  __uint64 _Var11;

-  tagPRESENTFRAME *ptVar12;

-  Cpu *pCVar13;

-  GamingOverlayExperienceManager *pGVar14;

-  Cpu *pCVar15;

-  ulonglong uVar16;

-  uint uVar17;

-  ulonglong uVar18;

-  ulonglong *unaff_RBP;

-  GamingOverlayExperienceManager *unaff_RSI;

-  int unaff_EDI;

-  int iVar19;

-  Cpu *pCVar20;

-  uint uVar21;

-  Cpu *unaff_R15;

-  int in_XMM0_Da;

-  int in_XMM0_Db;

-  int in_XMM0_Dc;

-  int in_XMM0_Dd;

-  clock_t cStack0000000000000030;

-  DWORD DStack0000000000000034;

-  HANDLE in_stack_00000038;

-  double in_stack_00000040;

-  double in_stack_00000048;

-  double in_stack_00000050;

-  Cpu *in_stack_00000058;

-  double in_stack_00000060;

-  double in_stack_00000068;

-  ulonglong in_stack_00000070;

-  Cpu *in_stack_00000078;

+  root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+  *this_00;

+  code *pcVar1;

+  int iVar2;

+  root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+  *prVar3;

+  uint uVar4;

+  root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+  *prVar5;

+  void *unaff_retaddr;

+  undefined1 auStack_88 [32];

+  root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+  *local_68;

+  GamingOverlayExperienceManager *local_60;

+  undefined8 local_58;

+  longlong local_50;

+  _RTL_SRWLOCK local_48;

+  undefined4 local_40 [2];

+  undefined8 *local_38;

+  PRTL_CRITICAL_SECTION_DEBUG local_30;

+  ulonglong local_28;

   

-  *(int *)(unaff_RBP + 2) = unaff_EDI;

-  *(DWORD *)(unaff_RBP + -9) = (DWORD)unaff_R15;

-  *(int *)(unaff_RBP + -2) = in_XMM0_Da;

-  *(int *)((longlong)unaff_RBP + -0xc) = in_XMM0_Db;

-  *(int *)(unaff_RBP + -1) = in_XMM0_Dc;

-  *(int *)((longlong)unaff_RBP + -4) = in_XMM0_Dd;

-  *(int *)(unaff_RBP + -4) = in_XMM0_Da;

-  *(int *)((longlong)unaff_RBP + -0x1c) = in_XMM0_Db;

-  *(int *)(unaff_RBP + -3) = in_XMM0_Dc;

-  *(int *)((longlong)unaff_RBP + -0x14) = in_XMM0_Dd;

-  unaff_RBP[-2] = (ulonglong)unaff_R15;

-  unaff_RBP[-1] = (ulonglong)unaff_R15;

-  *unaff_RBP = (ulonglong)unaff_R15;

-  std::_Container_base12::_Alloc_proxy<std::allocator<std::_Container_proxy>_>

-            ((_Container_base12 *)(unaff_RBP + -4),(allocator<std::_Container_proxy> *)param_1);

-  uVar16 = (ulonglong)unaff_R15 & 0xffffffff;

-  pCVar20 = (Cpu *)((ulonglong)unaff_R15 & 0xffffffff);

-  DStack0000000000000034 = (DWORD)unaff_R15;

-  cStack0000000000000030 = clock();

-  unaff_RBP[8] = 0;

-  unaff_RBP[9] = 0;

-  unaff_RBP[8] = (ulonglong)&Cpu::_vftable_;

-  unaff_RBP[10] = 0;

-  unaff_RBP[0xb] = 0;

-  unaff_RBP[-5] = (ulonglong)unaff_R15;

-  unaff_RBP[-7] = (ulonglong)unaff_R15;

-  pGVar14 = (GamingOverlayExperienceManager *)0x0;

-  lVar8 = PdhOpenQueryW(0,0,unaff_RBP + -7);

-  bVar7 = GamingOverlayExperienceManager::Pdh_Failed(pGVar14,lVar8);

-  if ((bVar7) && (lVar8 < 0)) {

-    wil::details::in1diag3::_Log_Hr

-              ((void *)unaff_RBP[0x15],0x41b,

+  local_28 = __security_cookie ^ (ulonglong)auStack_88;

+  local_30 = (PRTL_CRITICAL_SECTION_DEBUG)0x0;

+  wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)&local_30);

+  local_40[0] = 0;

+  iVar2 = (**(code **)(*(longlong *)param_1 + 0x30))(param_1,local_40);

+  if (iVar2 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x7b4,

                "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-               ,lVar8);

+               ,iVar2);

+    goto LAB_0;

   }

-  pGVar14 = (GamingOverlayExperienceManager *)unaff_RBP[-7];

-  lVar8 = PdhAddCounterW(pGVar14,L"\\GPU Adapter Memory(*)\\Dedicated Usage",0,unaff_RSI + 0x490);

-  bVar7 = GamingOverlayExperienceManager::Pdh_Failed(pGVar14,lVar8);

-  if ((bVar7) && (pGVar14 = (GamingOverlayExperienceManager *)unaff_RBP[0x15], lVar8 < 0)) {

-    wil::details::in1diag3::_Log_Hr

-              (pGVar14,0x421,

+  local_68 = (root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+              *)0x0;

+  local_48.Ptr = (longlong *)0x0;

+  Microsoft::WRL::Wrappers::SRWLock::LockExclusive(&local_48);

+  local_38 = (undefined8 *)0x0;

+  FindWindowW(this,&local_38);

+  if (local_38 == *(undefined8 **)(this + 0x670)) {

+    iVar2 = -0x7ff8fb70;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x7bb,

                "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-               ,lVar8);

+               ,-0x7ff8fb70);

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

+    goto LAB_0;

   }

-  _Var11 = GamingOverlayExperienceManager::GetDedicatedVideoMemoryCap(pGVar14);

-  LOCK();

-  *(__uint64 *)(unaff_RSI + 0x4a0) = _Var11;

-  UNLOCK();

-  lVar8 = Cpu::InitializeCpuQuery((Cpu *)(unaff_RBP + 8));

-  if (lVar8 < 0) {

-    uVar21 = 0x426;

-LAB_0:

-    wil::details::in1diag3::Return_Hr

-              ((void *)unaff_RBP[0x15],uVar21,

-               "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-               ,lVar8);

-LAB_1:

-    wil::details::

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

-    ::

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

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

-                *)(unaff_RBP + -7));

-    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)>_>

-                *)(unaff_RBP + -5));

-    Cpu::~Cpu((Cpu *)(unaff_RBP + 8));

-    std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::

-    ~deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>

-              ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)(unaff_RBP + -4));

-    wil::

-    unique_any_array_ptr<tagPRESENTFRAME,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>,wil::empty_deleter,unsigned___int64>

-    ::reset((unique_any_array_ptr<tagPRESENTFRAME,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>,wil::empty_deleter,unsigned___int64>

-             *)(unaff_RBP + 1));

-    return lVar8;

+  this_00 = (root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+             *)*local_38;

+  prVar3 = (root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+            *)0x0;

+  prVar5 = (root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+            *)0x0;

+  if (this_00 !=

+      (root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+       *)0x0) {

+    prVar3 = this_00;

+    local_68 = this_00;

+    winrt::impl::

+    root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+    ::AddRef(this_00);

+    prVar5 = this_00;

   }

-  do {

-    dwProcessId = *(DWORD *)(unaff_RSI + 0x420);

-    uVar21 = (uint)unaff_R15;

-    if ((((dwProcessId == 0) || (*(Cpu **)(unaff_RSI + 0x3c0) != unaff_R15)) &&

-        ((DWORD)uVar16 == dwProcessId)) && (unaff_RSI[0x424] != SUB81(unaff_R15,0))) {

-LAB_2:

-      if (*(uint *)(unaff_RSI + 0x420) != uVar21) {

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

-        BVar9 = GetExitCodeProcess((HANDLE)unaff_RBP[-5],(LPDWORD)(unaff_RBP + -6));

-        if (((int)unaff_RBP[-6] != 0x103) || (BVar9 == 0)) {

-LAB_3:

-          GamingOverlayExperienceManager::StopPerfThread(unaff_RSI);

-          wil::details::

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

-          ::

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

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

-                      *)(unaff_RBP + -7));

-          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)>_>

-                      *)(unaff_RBP + -5));

-          Cpu::~Cpu((Cpu *)(unaff_RBP + 8));

-          std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::

-          ~deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>

-                    ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)(unaff_RBP + -4));

-          wil::

-          unique_any_array_ptr<tagPRESENTFRAME,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>,wil::empty_deleter,unsigned___int64>

-          ::reset((unique_any_array_ptr<tagPRESENTFRAME,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>,wil::empty_deleter,unsigned___int64>

-                   *)(unaff_RBP + 1));

-          return 0;

-        }

-        plVar1 = *(longlong **)(unaff_RSI + 0x3c0);

-        pcVar2 = *(code **)(*plVar1 + 0x28);

-        wil::

-        unique_any_array_ptr<tagPRESENTFRAME,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>,wil::empty_deleter,unsigned___int64>

-        ::reset((unique_any_array_ptr<tagPRESENTFRAME,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>,wil::empty_deleter,unsigned___int64>

-                 *)(unaff_RBP + 1));

-        iVar19 = (*pcVar2)(plVar1,unaff_RBP + 1,unaff_RBP + -9);

-        if (iVar19 < 0) {

-          wil::details::in1diag3::_Log_Hr

-                    ((void *)unaff_RBP[0x15],0x454,

-                     "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-                     ,iVar19);

-        }

-        uVar16 = *unaff_RBP;

-        if (((int)unaff_RBP[-9] != 0) || (uVar16 != 0)) {

-          uVar18 = (ulonglong)unaff_R15 & 0xffffffff;

-          if ((int)unaff_RBP[-9] != 0) {

-            do {

-              std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::

-              _Emplace_front_internal<tagPRESENTFRAME_const&___ptr64>

-                        ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)(unaff_RBP + -4)

-                         ,(tagPRESENTFRAME *)(uVar18 * 0x20 + unaff_RBP[1]));

-              uVar17 = (int)uVar18 + 1;

-              uVar18 = (ulonglong)uVar17;

-            } while (uVar17 < (uint)unaff_RBP[-9]);

-            uVar16 = *unaff_RBP;

-          }

-          if (1000 < uVar16) {

-            in_stack_00000070 = unaff_RBP[-4];

-            unaff_RBP[-0x10] = uVar16 + unaff_RBP[-1];

-            unaff_RBP[-0xe] = (ulonglong)unaff_R15;

-            unaff_RBP[-0xf] = in_stack_00000070;

-            unaff_RBP[-0xd] = unaff_RBP[-1] + 1000;

-            in_stack_00000078 = unaff_R15;

-            std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::erase

-                      ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)(unaff_RBP + -4),

-                       unaff_RBP + -0xc,unaff_RBP + -0xf,&stack0x00000070);

-          }

-          ptVar12 = std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::at

-                              ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)

-                               (unaff_RBP + -4),0);

-          lVar3 = *(longlong *)ptVar12;

-          uVar16 = (ulonglong)unaff_R15 & 0xffffffff;

-          if (pCVar20 == (Cpu *)0x0) {

-            ptVar12 = std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::at

-                                ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)

-                                 (unaff_RBP + -4),*unaff_RBP - 1);

-            pCVar20 = *(Cpu **)ptVar12;

-          }

-          uVar18 = (ulonglong)unaff_R15 & 0xffffffff;

-          *(uint *)((longlong)unaff_RBP + -0x44) = uVar21;

-          iVar19 = (int)*unaff_RBP + -1;

-          if (-1 < iVar19) {

-            _Var11 = (__uint64)iVar19;

-            do {

-              ptVar12 = std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::at

-                                  ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)

-                                   (unaff_RBP + -4),_Var11);

-              uVar21 = (uint)uVar16 + 1;

-              if (*(ulonglong *)ptVar12 < lVar3 - 100000U) {

-                uVar21 = (uint)uVar16;

-              }

-              uVar16 = (ulonglong)uVar21;

-              ptVar12 = std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::at

-                                  ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)

-                                   (unaff_RBP + -4),_Var11);

-              if (pCVar20 <= *(Cpu **)ptVar12) {

-                ptVar12 = std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::at

-                                    ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)

-                                     (unaff_RBP + -4),_Var11);

-                if (*(Cpu **)ptVar12 < pCVar20 + 100000) {

-                  uVar17 = (int)uVar18 + 1;

-                  uVar18 = (ulonglong)uVar17;

-                  *(uint *)((longlong)unaff_RBP + -0x44) = uVar17;

-                }

-                else {

-                  unaff_RBP[4] = 0;

-                  in_stack_00000058 = pCVar20 + 100000;

-                  wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)(unaff_RBP + 4));

-                  piVar4 = *(int **)(unaff_RSI + 0x460);

-                  if (piVar4 == *(int **)(unaff_RSI + 0x468)) {

-                    std::vector<int,std::allocator<int>_>::_Emplace_reallocate<int_const&___ptr64>

-                              ((vector<int,std::allocator<int>_> *)(unaff_RSI + 0x458),piVar4,

-                               (int *)((longlong)unaff_RBP + -0x44));

-                  }

-                  else {

-                    *piVar4 = (int)uVar18;

-                    *(longlong *)(unaff_RSI + 0x460) = *(longlong *)(unaff_RSI + 0x460) + 4;

-                  }

-                  uVar18 = 0;

-                  *(int *)((longlong)unaff_RBP + -0x44) = 0;

-                  pvVar6 = *(void **)(unaff_RSI + 0x458);

-                  if (0x3c < (ulonglong)(*(longlong *)(unaff_RSI + 0x460) - (longlong)pvVar6 >> 2))

-                  {

-                    memmove(pvVar6,(void *)((longlong)pvVar6 + 4),

-                            *(longlong *)(unaff_RSI + 0x460) - ((longlong)pvVar6 + 4));

-                    *(longlong *)(unaff_RSI + 0x460) = *(longlong *)(unaff_RSI + 0x460) + -4;

-                  }

-                  wil::details::

-                  unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                  ::

-                  ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                            ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                              *)(unaff_RBP + 4));

-                  pCVar20 = in_stack_00000058;

-                }

-              }

-              _Var11 = _Var11 - 1;

-              iVar19 = iVar19 + -1;

-            } while (-1 < iVar19);

-            unaff_R15 = (Cpu *)0x0;

-          }

-          LOCK();

-          *(uint *)(unaff_RSI + 0x428) = uVar21;

-          UNLOCK();

-        }

-      }

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

+  if (prVar3 == *(root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+                  **)(this + 0x1d8)) {

+    local_38 = (undefined8 *)((ulonglong)local_38 & 0xffffffff00000000);

+    local_48.Ptr = (longlong *)0x0;

+    pcVar1 = (code *)**(undefined8 **)param_1;

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_48);

+    iVar2 = (*pcVar1)(param_1,&_GUID_7357c375_0d63_4d6c_a22a_d2d4fc1c012e,&local_48);

+    if (iVar2 < 0) {

+      uVar4 = 0x7c3;

     }

     else {

-      unaff_RSI[0x424] = (GamingOverlayExperienceManager)0x1;

-      DStack0000000000000034 = dwProcessId;

-      std::deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_>::_Tidy

-                ((deque<tagPRESENTFRAME,std::allocator<tagPRESENTFRAME>_> *)(unaff_RBP + -4));

-      unaff_RBP[3] = (ulonglong)unaff_R15;

-      wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)(unaff_RBP + 3));

-      if (*(longlong *)(unaff_RSI + 0x458) != *(longlong *)(unaff_RSI + 0x460)) {

-        *(longlong *)(unaff_RSI + 0x460) = *(longlong *)(unaff_RSI + 0x458);

-      }

-      wil::details::

-      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-      ::

-      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                  *)(unaff_RBP + 3));

-      LOCK();

-      *(uint *)(unaff_RSI + 0x428) = uVar21;

-      UNLOCK();

-      cStack0000000000000030 = clock();

-      in_stack_00000038 = OpenProcess(0x1000,0,dwProcessId);

-      wil::

-      unique_any_t<wil::details::unique_storage<wil::details::handle_null_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>_>

-      ::operator=((unique_any_t<wil::details::unique_storage<wil::details::handle_null_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>_>

-                   *)(unaff_RBP + -5),

-                  (unique_any_t<class_wil::details::unique_storage<struct_wil::details::handle_null_resource_policy<int_(__cdecl*)(void*___ptr64),&int___cdecl_CloseHandle(void*___ptr64)>_>_>

-                   *)&stack0x00000038);

-      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)>_>

-                  *)&stack0x00000038);

-      pCVar20 = unaff_R15;

-      if (*(uint *)(unaff_RSI + 0x420) != uVar21) {

-        unaff_RBP[-8] = (ulonglong)unaff_R15;

-        ComPtr<IImmersiveSystemModeNotification>::InternalRelease

-                  ((ComPtr<IImmersiveSystemModeNotification> *)(unaff_RBP + -8));

-        lVar8 = CoCreateInstance((IID *)&_GUID_805a61d6_44c1_48c0_8af1_721a248effed,(LPUNKNOWN)0x0,4

-                                 ,(IID *)&_GUID_2b43fa87_6398_400f_8ed8_0b5d2ed75db7,

-                                 (LPVOID *)(unaff_RBP + -8));

-        if (lVar8 < 0) {

-          uVar21 = 0x440;

-        }

-        else {

-          lVar8 = (**(code **)(*(longlong *)unaff_RBP[-8] + 0x18))

-                            ((longlong *)unaff_RBP[-8],*(undefined4 *)(unaff_RSI + 0x420),

-                             unaff_RSI + 0x3c0);

-          if (-1 < lVar8) {

-            ComPtr<IImmersiveSystemModeNotification>::InternalRelease

-                      ((ComPtr<IImmersiveSystemModeNotification> *)(unaff_RBP + -8));

-            goto LAB_2;

-          }

-          uVar21 = 0x441;

-        }

-        wil::details::in1diag3::Return_Hr

-                  ((void *)unaff_RBP[0x15],uVar21,

-                   "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-                   ,lVar8);

-        ComPtr<IImmersiveSystemModeNotification>::InternalRelease

-                  ((ComPtr<IImmersiveSystemModeNotification> *)(unaff_RBP + -8));

+      iVar2 = (**(code **)(*(longlong *)local_48.Ptr + 0x30))(local_48.Ptr,&local_38);

+      if (-1 < iVar2) {

+        local_50 = (longlong)(int)local_38;

+        *(longlong *)(this + 0x1f8) = local_50;

+        local_58 = *(undefined8 *)(this + 0x200);

+        local_60 = this;

+        Windows::Internal::ComTaskPool::QueueTask<<lambda_6d4cc4e83ed7837f1c25ae6de9fd64fd>_>();

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_48);

         goto LAB_1;

       }

+      uVar4 = 0x7c4;

     }

-    pCVar15 = (Cpu *)unaff_RBP[-7];

-    lVar8 = PdhCollectQueryData();

-    bVar7 = GamingOverlayExperienceManager::Pdh_Failed

-                      ((GamingOverlayExperienceManager *)pCVar15,lVar8);

-    if ((bVar7) && (pCVar15 = (Cpu *)unaff_RBP[0x15], lVar8 < 0)) {

-      wil::details::in1diag3::_Log_Hr

-                (pCVar15,0x49e,

-                 "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-                 ,lVar8);

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,uVar4,

+               "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

+               ,iVar2);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_48);

+    if (prVar5 != (root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+                   *)0x0) {

+      winrt::

+      com_ptr<winrt::impl::vector_impl<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner,std::vector<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner,std::allocator<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner>_>,winrt::impl::single_threaded_collection_base>_>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::impl::vector_impl<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner,std::vector<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner,std::allocator<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner>_>,winrt::impl::single_threaded_collection_base>_>

+                  *)&local_68);

     }

-    pGVar14 = unaff_RSI + 0x470;

-    lVar8 = GamingOverlayExperienceManager::GetRawData

-                      ((GamingOverlayExperienceManager *)pCVar15,*(void **)(unaff_RSI + 0x490),

-                       (ulong *)pGVar14,

-                       (vector<_PDH_RAW_COUNTER_ITEM_W,std::allocator<_PDH_RAW_COUNTER_ITEM_W>_> *)

-                       (unaff_RSI + 0x478));

-    bVar7 = GamingOverlayExperienceManager::Pdh_Failed

-                      ((GamingOverlayExperienceManager *)pCVar15,lVar8);

-    if ((bVar7) && (pCVar15 = (Cpu *)unaff_RBP[0x15], lVar8 < 0)) {

-      wil::details::in1diag3::_Log_Hr

-                (pCVar15,0x4a4,

-                 "pcshell\\twinui\\gamingoverlayexperiencemanager\\lib\\GamingOverlayExperienceManager.cpp"

-                 ,lVar8);

+  }

+  else {

+LAB_1:

+    if (prVar5 != (root_implements<winrt::Windows::Internal::Shell::implementation::TabProxyWindow,Windows::Internal::Shell::ITabProxyWindowInternal>

+                   *)0x0) {

+      winrt::

+      com_ptr<winrt::impl::vector_impl<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner,std::vector<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner,std::allocator<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner>_>,winrt::impl::single_threaded_collection_base>_>

+      ::unconditional_release_ref

+                ((com_ptr<winrt::impl::vector_impl<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner,std::vector<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner,std::allocator<winrt::Windows::UI::Composition::Internal::CompositionAnimationTriggerValuePartner>_>,winrt::impl::single_threaded_collection_base>_>

+                  *)&local_68);

     }

-    pCVar13 = unaff_R15;

-    if ((uint)unaff_R15 < *(uint *)pGVar14) {

-      uVar16 = (ulonglong)*(uint *)pGVar14;

-      pCVar15 = unaff_R15;

-      do {

-        pCVar13 = pCVar13 + *(longlong *)(pCVar15 + *(longlong *)(unaff_RSI + 0x478) + 0x18);

-        pCVar15 = pCVar15 + 0x30;

-        uVar16 = uVar16 - 1;

-      } while (uVar16 != 0);

-    }

-    LOCK();

-    *(Cpu **)(unaff_RSI + 0x498) = pCVar13;

-    UNLOCK();

-    lVar8 = Cpu::TmQueryPcwCounter

-                      (pCVar15,(_COUNTER_BUFFER **)(unaff_RBP + 10),

-                       (_COUNTER_BUFFER **)(unaff_RBP + 0xb),(void *)unaff_RBP[9]);

-    if (lVar8 < 0) {

-      uVar21 = 0x4ae;

-      goto LAB_0;

-    }

-    pCVar15 = (Cpu *)(unaff_RBP + 8);

-    lVar8 = Cpu::UpdateCpuQuery(pCVar15,(double *)(unaff_RSI + 0x4e8));

-    if (lVar8 < 0) {

-      uVar21 = 0x4af;

-      goto LAB_0;

-    }

-    in_stack_00000040 = 0.0;

-    lVar8 = GamingOverlayExperienceManager::GetCpuSpeed

-                      ((GamingOverlayExperienceManager *)pCVar15,&stack0x00000040);

-    if (lVar8 < 0) {

-      uVar21 = 0x4b2;

-      goto LAB_0;

-    }

-    LOCK();

-    *(double *)(unaff_RSI + 0x4f0) = in_stack_00000040;

-    UNLOCK();

-    in_stack_00000048 = 0.0;

-    in_stack_00000050 = 0.0;

-    lVar8 = Cpu::GetMemoryUsage(pCVar15,&stack0x00000048,&stack0x00000050);

-    if (lVar8 < 0) {

-      uVar21 = 0x4b7;

-      goto LAB_0;

-    }

-    LOCK();

-    *(double *)(unaff_RSI + 0x538) = in_stack_00000048;

-    UNLOCK();

-    LOCK();

-    *(double *)(unaff_RSI + 0x540) = in_stack_00000050;

-    UNLOCK();

-    cVar10 = clock();

-    if (1000 < cVar10 - cStack0000000000000030) {

-      cStack0000000000000030 = cStack0000000000000030 + 1000;

-      unaff_RBP[5] = (ulonglong)unaff_R15;

-      wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)(unaff_RBP + 5));

-      in_stack_00000060 = (double)*(ulonglong *)(unaff_RSI + 0x498) / 1048576000.0;

-      pdVar5 = *(double **)(unaff_RSI + 0x4d8);

-      if (pdVar5 == *(double **)(unaff_RSI + 0x4e0)) {

-        std::vector<double,std::allocator<double>_>::_Emplace_reallocate<double>

-                  ((vector<double,std::allocator<double>_> *)(unaff_RSI + 0x4d0),pdVar5,

-                   &stack0x00000060);

-      }

-      else {

-        *pdVar5 = in_stack_00000060;

-        *(double **)(unaff_RSI + 0x4d8) = pdVar5 + 1;

-      }

-      pvVar6 = *(void **)(unaff_RSI + 0x4d0);

-      if (0x3c < (ulonglong)(*(longlong *)(unaff_RSI + 0x4d8) - (longlong)pvVar6 >> 3)) {

-        memmove(pvVar6,(void *)((longlong)pvVar6 + 8),

-                *(longlong *)(unaff_RSI + 0x4d8) - ((longlong)pvVar6 + 8));

-        *(longlong *)(unaff_RSI + 0x4d8) = *(longlong *)(unaff_RSI + 0x4d8) + -8;

-      }

-      wil::details::

-      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-      ::

-      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                  *)(unaff_RBP + 5));

-      unaff_RBP[6] = (ulonglong)unaff_R15;

-      wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)(unaff_RBP + 6));

-      pdVar5 = *(double **)(unaff_RSI + 0x528);

-      if (pdVar5 == *(double **)(unaff_RSI + 0x530)) {

-        std::vector<double,std::allocator<double>_>::_Emplace_reallocate<double_const&___ptr64>

-                  ((vector<double,std::allocator<double>_> *)(unaff_RSI + 0x520),pdVar5,

-                   (double *)(unaff_RSI + 0x4e8));

-      }

-      else {

-        *pdVar5 = *(double *)(unaff_RSI + 0x4e8);

-        *(double **)(unaff_RSI + 0x528) = pdVar5 + 1;

-      }

-      pvVar6 = *(void **)(unaff_RSI + 0x520);

-      if (0x3c < (ulonglong)(*(longlong *)(unaff_RSI + 0x528) - (longlong)pvVar6 >> 3)) {

-        memmove(pvVar6,(void *)((longlong)pvVar6 + 8),

-                *(longlong *)(unaff_RSI + 0x528) - ((longlong)pvVar6 + 8));

-        *(longlong *)(unaff_RSI + 0x528) = *(longlong *)(unaff_RSI + 0x528) + -8;

-      }

-      wil::details::

-      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-      ::

-      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                  *)(unaff_RBP + 6));

-      unaff_RBP[7] = (ulonglong)unaff_R15;

-      wil::EnterCriticalSection((_RTL_CRITICAL_SECTION *)(unaff_RBP + 7));

-      in_stack_00000068 = *(double *)(unaff_RSI + 0x538);

-      pdVar5 = *(double **)(unaff_RSI + 0x580);

-      if (pdVar5 == *(double **)(unaff_RSI + 0x588)) {

-        std::vector<double,std::allocator<double>_>::_Emplace_reallocate<double>

-                  ((vector<double,std::allocator<double>_> *)(unaff_RSI + 0x578),pdVar5,

-                   &stack0x00000068);

-      }

-      else {

-        *pdVar5 = in_stack_00000068;

-        *(double **)(unaff_RSI + 0x580) = pdVar5 + 1;

-      }

-      pvVar6 = *(void **)(unaff_RSI + 0x578);

-      if (0x3c < (ulonglong)(*(longlong *)(unaff_RSI + 0x580) - (longlong)pvVar6 >> 3)) {

-        memmove(pvVar6,(void *)((longlong)pvVar6 + 8),

-                *(longlong *)(unaff_RSI + 0x580) - ((longlong)pvVar6 + 8));

-        *(longlong *)(unaff_RSI + 0x580) = *(longlong *)(unaff_RSI + 0x580) + -8;

-      }

-      wil::details::

-      unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-      ::

-      ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

-                  *)(unaff_RBP + 7));

-    }

-    Sleep(200);

-    if (unaff_RSI[0x548] != (GamingOverlayExperienceManager)0x0) goto LAB_3;

-    uVar16 = (ulonglong)DStack0000000000000034;

-  } while( true );

+    iVar2 = 0;

+  }

+LAB_0:

+  wil::details::

+  unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+  ::

+  ~unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+            ((unique_storage<wil::details::resource_policy<_RTL_CRITICAL_SECTION*___ptr64,void_(__cdecl*)(_RTL_CRITICAL_SECTION*___ptr64),&void___cdecl_LeaveCriticalSection(struct__RTL_CRITICAL_SECTION*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_CRITICAL_SECTION*___ptr64,_RTL_CRITICAL_SECTION*___ptr64,0,std::nullptr_t>_>

+              *)&local_30);

+  return iVar2;

 }
```

## `TaskViewHost::Show`  (modified)

```diff
--- TaskViewHost::Show
+++ TaskViewHost::Show
@@ -1,2 +1,294 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB TaskViewHost::Show : 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 TaskViewHost::Show(struct IImmersiveMonitorManager * __ptr64,struct

+   IImmersiveMonitor * __ptr64,enum ALL_UP_VIEW_FLAGS) __ptr64 */

+

+long __thiscall

+TaskViewHost::Show(TaskViewHost *this,IImmersiveMonitorManager *param_1,IImmersiveMonitor *param_2,

+                  ALL_UP_VIEW_FLAGS param_3)

+

+{

+  tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+  *this_00;

+  com_ptr_t<IInputHostLayout,wil::err_exception_policy> *this_01;

+  longlong lVar1;

+  longlong lVar2;

+  bool bVar3;

+  undefined4 uVar4;

+  long lVar5;

+  HRESULT HVar6;

+  consume_Windows_Internal_Shell_IRemoteSystem<winrt::Windows::Internal::Shell::IRemoteSystem>

+  *this_02;

+  longlong *plVar7;

+  TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+  *pTVar8;

+  XamlAllUpViewController *this_03;

+  IVirtualDesktopController *pIVar9;

+  IVirtualDesktopDataSource *pIVar10;

+  char *pcVar11;

+  CObjectWithThreadUseDetection *this_04;

+  void *unaff_retaddr;

+  undefined1 auStackY_4c8 [32];

+  com_ptr_t<IInputHostLayout,wil::err_exception_policy> *local_478;

+  IAppLayoutCache *local_470;

+  TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+  *local_468;

+  CObjectWithThreadUseDetection *local_460;

+  long local_458;

+  TaskViewHost *local_450;

+  TaskViewHost *local_448;

+  undefined1 local_440;

+  IVirtualDesktopDataSource *local_438;

+  undefined **local_428 [42];

+  undefined **local_2d8 [42];

+  undefined **local_188 [42];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_4c8;

+  this_04 = (CObjectWithThreadUseDetection *)

+            (-(ulonglong)(this != (TaskViewHost *)0x0) & (ulonglong)(this + 0x18));

+  pcVar11 = &DAT_0;

+  local_468 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+               *)param_2;

+  local_460 = this_04;

+  local_450 = this;

+  local_458 = CObjectWithThreadUseDetection::TryEnterOnCurrentThread(this_04,1);

+  wil::ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+  ::ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+            ((ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+              *)local_428,pcVar11,SUB81(this_04,0));

+  local_428[0] = &XamlSwitcherTelemetry::ShowXamlTaskView::_vftable_;

+  XamlSwitcherTelemetry::ShowXamlTaskView::StartActivity((ShowXamlTaskView *)local_428);

+  this_02 = (consume_Windows_Internal_Shell_IRemoteSystem<winrt::Windows::Internal::Shell::IRemoteSystem>

+             *)winrt::impl::

+               consume_Windows_Internal_Shell_IRemoteDesktopProviderInfo<winrt::Windows::Internal::Shell::IRemoteDesktopProviderInfo>

+               ::SystemId((consume_Windows_Internal_Shell_IRemoteDesktopProviderInfo<winrt::Windows::Internal::Shell::IRemoteDesktopProviderInfo>

+                           *)(this + 0xa0));

+  uVar4 = winrt::impl::

+          consume_Windows_Internal_Shell_IRemoteSystem<winrt::Windows::Internal::Shell::IRemoteSystem>

+          ::State(this_02);

+  this_00 = (tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+             *)(this + 0x2f8);

+  plVar7 = (longlong *)

+           tip2::

+           tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+           ::operator->(this_00);

+  *(undefined4 *)(*plVar7 + 0x114) = uVar4;

+  tip2::

+  test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+            ((test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+              *)&local_470);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_478);

+  if (param_3 == 0) {

+    plVar7 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+             ::operator->(this_00);

+    *(undefined4 *)(*plVar7 + 0x11c) = 0;

+  }

+  else if (param_3 == 1) {

+    plVar7 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+             ::operator->(this_00);

+    *(undefined4 *)(*plVar7 + 0x11c) = 1;

+  }

+  else if (param_3 == 2) {

+    plVar7 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+             ::operator->(this_00);

+    *(undefined4 *)(*plVar7 + 0x11c) = 2;

+  }

+  else if (param_3 == 4) {

+    plVar7 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+             ::operator->(this_00);

+    *(undefined4 *)(*plVar7 + 0x11c) = 3;

+  }

+  else {

+    if (param_3 != 8) goto LAB_1;

+    plVar7 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+             ::operator->(this_00);

+    *(undefined4 *)(*plVar7 + 0x11c) = 4;

+  }

+  tip2::

+  test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+            ((test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+              *)&local_478);

+LAB_1:

+  local_440 = 1;

+  local_448 = this;

+  lVar5 = CMultitaskingViewHostBase<IAllUpViewHost>::_RegisterForMonitorEvents

+                    ((CMultitaskingViewHostBase<IAllUpViewHost> *)this,(IUnknown *)param_1);

+  this_01 = (com_ptr_t<IInputHostLayout,wil::err_exception_policy> *)(this + 0xe8);

+  local_478 = this_01;

+  if (lVar5 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x127,"pcshell\\twinui\\xamlmultitaskingview\\lib\\taskviewhost.cpp",

+               lVar5);

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset(this_01);

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

+  }

+  else {

+    *(ALL_UP_VIEW_FLAGS *)(this + 0x118) = param_3;

+    wil::com_ptr_t<IApplicationViewSwitcher,wil::err_returncode_policy>::operator=

+              ((com_ptr_t<IApplicationViewSwitcher,wil::err_returncode_policy> *)this_01,

+               (IApplicationViewSwitcher *)param_1);

+    wil::com_ptr_t<IApplicationViewSwitcher,wil::err_returncode_policy>::operator=

+              ((com_ptr_t<IApplicationViewSwitcher,wil::err_returncode_policy> *)(this + 0xf0),

+               (IApplicationViewSwitcher *)local_468);

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                        ::__l2::impl);

+    if ((bVar3) || (bVar3 = TabletModeHelpers::IsTabletMode(), !bVar3)) {

+      this_03 = Platform::Details::Heap::Allocate(0x80,0xe8);

+      local_468 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                   *)this_03;

+      pIVar9 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopController>

+                         ((IUnknown *)(this + 0xc0));

+      local_470 = (IAppLayoutCache *)pIVar9;

+      pIVar10 = to_cx<Windows::Internal::ComposableShell::Multitasking::IVirtualDesktopDataSource>

+                          ((IUnknown *)(this + 0xb0));

+      local_438 = pIVar10;

+      pTVar8 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                *)XamlAllUpViewController::XamlAllUpViewController

+                            (this_03,(IAllUpViewHost *)this,

+                             *(IApplicationViewSwitcher **)(this + 0xd8),

+                             *(IImmersiveAppCrusher **)(this + 0xe0),

+                             *(IAppViewDataSourceAdapter **)(this + 0x100),

+                             *(ISnapServiceProvider **)(this + 0xf8),

+                             *(IMultitaskingViewManager **)(this + 0x50),(IAppLayoutCache *)0x0,

+                             (IVirtualDesktopDataSource *)pIVar10,

+                             (IVirtualDesktopController *)pIVar9);

+      local_468 = pTVar8;

+      __abi_winrt_ptr_assign

+                ((void **)(this + 0xd0),

+                 (Object *)

+                 (-(ulonglong)

+                   (pTVar8 !=

+                   (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)0x0) & (ulonglong)(pTVar8 + 0x10)));

+      __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                (pTVar8);

+      __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                  *)pIVar10);

+      __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                ((TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                  *)pIVar9);

+    }

+    else {

+      local_470 = (IAppLayoutCache *)0x0;

+      HVar6 = IUnknown_QueryService

+                        (*(IUnknown **)(this + 0xf0),

+                         (GUID *)&_GUID_e511e73c_cad4_40aa_bf1a_b9938ac75ff0,

+                         (IID *)&_GUID_e511e73c_cad4_40aa_bf1a_b9938ac75ff0,&local_470);

+      if (HVar6 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x133,

+                   "pcshell\\twinui\\xamlmultitaskingview\\lib\\taskviewhost.cpp",HVar6);

+        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                   &local_470);

+        local_440 = 0;

+        wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset(this_01);

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

+        XamlSwitcherTelemetry::ShowXamlTaskView::~ShowXamlTaskView((ShowXamlTaskView *)local_428);

+        CThreadUseDetector::~CThreadUseDetector((CThreadUseDetector *)&local_460);

+        return HVar6;

+      }

+      local_468 = Platform::Details::Heap::Allocate(0x80,0xe8);

+      pTVar8 = (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                *)XamlAllUpViewController::XamlAllUpViewController

+                            ((XamlAllUpViewController *)local_468,(IAllUpViewHost *)this,

+                             *(IApplicationViewSwitcher **)(this + 0xd8),

+                             *(IImmersiveAppCrusher **)(this + 0xe0),

+                             *(IAppViewDataSourceAdapter **)(this + 0x100),

+                             *(ISnapServiceProvider **)(this + 0xf8),

+                             *(IMultitaskingViewManager **)(this + 0x50),local_470,

+                             (IVirtualDesktopDataSource *)0x0,(IVirtualDesktopController *)0x0);

+      local_468 = pTVar8;

+      __abi_winrt_ptr_assign

+                ((void **)(this + 0xd0),

+                 (Object *)

+                 (-(ulonglong)

+                   (pTVar8 !=

+                   (TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>

+                    *)0x0) & (ulonglong)(pTVar8 + 0x10)));

+      __abi_winrt_ptrto_delegate_dtor<Windows::Foundation::TypedEventHandler<Platform::Object_____ptr64,WindowsInternal::ComposableShell::Experiences::Switcher::SnapAssistRegionViewModel_____ptr64>_>

+                (pTVar8);

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_470)

+      ;

+    }

+    lVar5 = CreateFrames(this);

+    if (-1 < lVar5) {

+      lVar1 = *(longlong *)(this + 0x148);

+      lVar2 = *(longlong *)(this + 0x140);

+      plVar7 = (longlong *)

+               tip2::

+               tip_test<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+               ::operator->(this_00);

+      *(int *)(*plVar7 + 0x118) = (int)(lVar1 - lVar2 >> 3);

+      tip2::

+      test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+      ::

+      ~test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+                ((test_data_control<tip2::details::merged_data<SwitcherTip::_tip_TaskViewShowTest,SwitcherTip::_tip_TaskViewShowTest>_>

+                  *)&local_468);

+      (**(code **)(**(longlong **)(this + 0x58) + 0x18))

+                (*(longlong **)(this + 0x58),*(undefined4 *)(this + 0x48));

+      this[0x70] = (TaskViewHost)0x1;

+      wil::

+      ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>::

+      ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                ((ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                  *)local_2d8,

+                 (ActivityBase<class_XamlSwitcherLogging,1,70368744177664,5,0,struct__TlgReflectorTag_Param0IsProviderType>

+                  *)local_428,false);

+      local_2d8[0] = &XamlSwitcherTelemetry::ShowXamlTaskView::_vftable_;

+      wil::

+      ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>::

+      ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                ((ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                  *)local_188,

+                 (ActivityBase<class_XamlSwitcherLogging,1,70368744177664,5,0,struct__TlgReflectorTag_Param0IsProviderType>

+                  *)(this + 0x168),*(int *)(this + 0x2a0) != 0);

+      local_188[0] = &XamlSwitcherTelemetry::ShowXamlTaskView::_vftable_;

+      wil::

+      ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>::

+      operator=((ActivityBase<XamlSwitcherLogging,1,70368744177664,5,0,_TlgReflectorTag_Param0IsProviderType>

+                 *)(this + 0x168),

+                (ActivityBase<class_XamlSwitcherLogging,1,70368744177664,5,0,struct__TlgReflectorTag_Param0IsProviderType>

+                 *)local_2d8);

+      XamlSwitcherTelemetry::ShowXamlTaskView::~ShowXamlTaskView((ShowXamlTaskView *)local_188);

+      XamlSwitcherTelemetry::ShowXamlTaskView::~ShowXamlTaskView((ShowXamlTaskView *)local_2d8);

+      XamlSwitcherTelemetry::ShowXamlTaskView::~ShowXamlTaskView((ShowXamlTaskView *)local_428);

+      CThreadUseDetector::~CThreadUseDetector((CThreadUseDetector *)&local_460);

+      return 0;

+    }

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x14d,"pcshell\\twinui\\xamlmultitaskingview\\lib\\taskviewhost.cpp",

+               lVar5);

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset(this_01);

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

+  }

+  XamlSwitcherTelemetry::ShowXamlTaskView::~ShowXamlTaskView((ShowXamlTaskView *)local_428);

+  CThreadUseDetector::~CThreadUseDetector((CThreadUseDetector *)&local_460);

+  return lVar5;

+}

+
```

## `CApplicationManager::GetApplicationByFrameProxyInternal`  (modified)

```diff
--- CApplicationManager::GetApplicationByFrameProxyInternal
+++ CApplicationManager::GetApplicationByFrameProxyInternal
@@ -1,2 +1,50 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CApplicationManager::GetApplicationByFrameProxyInternal : 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 CApplicationManager::GetApplicationByFrameProxyInternal(struct

+   IApplicationFrameProxy * __ptr64,struct _GUID const & __ptr64,void * __ptr64 * __ptr64) __ptr64

+    */

+

+long __thiscall

+CApplicationManager::GetApplicationByFrameProxyInternal

+          (CApplicationManager *this,IApplicationFrameProxy *param_1,_GUID *param_2,void **param_3)

+

+{

+  undefined8 *puVar1;

+  longlong *plVar2;

+  long lVar3;

+  _GUID *p_Var4;

+  longlong *local_res8;

+  IApplicationFrameProxy *local_res10 [2];

+  __uint64 local_res20;

+  

+  *param_3 = (void *)0x0;

+  local_res8 = (longlong *)0x0;

+  p_Var4 = param_2;

+  local_res10[0] = param_1;

+  Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>::InternalAddRef

+            ((ComPtr<IImmersiveApplicationInternal> *)local_res10);

+  local_res8 = (longlong *)0x0;

+  local_res20 = 0;

+  lVar3 = CActivationBasedCollection<Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>_>::

+          GetAppPosition<CImmersiveAppFinderByFrameProxy>

+                    ((CActivationBasedCollection<Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>_>

+                      *)(this + 0x180),(CImmersiveAppFinderByFrameProxy *)local_res10,

+                     (__uint64)p_Var4,&local_res20);

+  if (-1 < lVar3) {

+    puVar1 = *(undefined8 **)(*(longlong *)(this + 0x188) + local_res20 * 8);

+    lVar3 = (**(code **)*puVar1)(puVar1,&_GUID_c9301630_27da_428e_a432_0a5e49c0ffee,&local_res8);

+  }

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)local_res10);

+  if (-1 < lVar3) {

+    lVar3 = (**(code **)*local_res8)(local_res8,param_2,param_3);

+  }

+  plVar2 = local_res8;

+  if (local_res8 != (longlong *)0x0) {

+    local_res8 = (longlong *)0x0;

+    (**(code **)(*plVar2 + 0x10))();

+  }

+  return lVar3;

+}

+
```

## `UndockedSearchExperienceManagerTIPTelemetry::SearchActivationTestResult`  (modified)

```diff
--- UndockedSearchExperienceManagerTIPTelemetry::SearchActivationTestResult
+++ UndockedSearchExperienceManagerTIPTelemetry::SearchActivationTestResult
@@ -1,2 +1,60 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB UndockedSearchExperienceManagerTIPTelemetry::SearchActivationTestResult : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: static void __cdecl

+   UndockedSearchExperienceManagerTIPTelemetry::SearchActivationTestResult(unsigned char,unsigned

+   short,unsigned int,unsigned short const * __ptr64,unsigned char,int,bool,bool,bool,bool,bool) */

+

+void __cdecl

+UndockedSearchExperienceManagerTIPTelemetry::SearchActivationTestResult

+          (uchar param_1,ushort param_2,uint param_3,ushort *param_4,uchar param_5,int param_6,

+          bool param_7,bool param_8,bool param_9,bool param_10,bool param_11)

+

+{

+  char cVar1;

+  _tlgProvider_t *p_Var2;

+  uint uVar3;

+  undefined4 in_register_00000084;

+  _GUID *p_Var4;

+  _tlgWrapperByVal<1> local_38;

+  _tlgWrapperByVal<1> local_37;

+  _tlgWrapperByVal<1> local_36;

+  _tlgWrapperByVal<1> local_35;

+  _tlgWrapperByVal<1> local_34;

+  _tlgWrapperByVal<1> local_33;

+  _tlgWrapperByVal<1> local_32 [2];

+  ushort local_30 [2];

+  int local_2c;

+  uint local_28 [2];

+  undefined8 local_20;

+  ushort *local_18 [2];

+  

+  uVar3 = param_3;

+  p_Var4 = (_GUID *)param_4;

+  p_Var2 = SearchAppLauncherLogging::Provider();

+  if (5 < *(uint *)p_Var2) {

+    cVar1 = _tlgKeywordOn(p_Var2,0x800000000000);

+    if (cVar1 != '\0') {

+      local_37 = (_tlgWrapperByVal<1>)param_10;

+      local_36 = (_tlgWrapperByVal<1>)param_9;

+      local_35 = (_tlgWrapperByVal<1>)param_8;

+      local_34 = (_tlgWrapperByVal<1>)param_7;

+      local_2c = param_6;

+      local_33 = (_tlgWrapperByVal<1>)param_5;

+      local_38 = (_tlgWrapperByVal<1>)param_11;

+      local_20 = 0x1000000;

+      local_32[0] = (_tlgWrapperByVal<1>)param_1;

+      local_30[0] = param_2;

+      local_28[0] = param_3;

+      local_18[0] = param_4;

+      _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+      ::

+      Write<_tlgWrapperByVal<1>,_tlgWrapperByVal<2>,_tlgWrapperByVal<4>,_tlgWrapSz<unsigned_short>,_tlgWrapperByVal<1>,_tlgWrapperByVal<4>,_tlgWrapperByVal<1>,_tlgWrapperByVal<1>,_tlgWrapperByVal<1>,_tlgWrapperByVal<1>,_tlgWrapperByVal<1>,_tlgWrapperByVal<8>_>

+                (p_Var2,&DAT_0,(_GUID *)CONCAT44(in_register_00000084,uVar3),p_Var4,local_32

+                 ,(_tlgWrapperByVal<2> *)local_30,(_tlgWrapperByVal<4> *)local_28,

+                 (_tlgWrapSz<unsigned_short> *)local_18,&local_33,(_tlgWrapperByVal<4> *)&local_2c,

+                 &local_34,&local_35,&local_36,&local_37,&local_38,(_tlgWrapperByVal<8> *)&local_20)

+      ;

+    }

+  }

+  return;

+}

+
```

## `GamingPosturePositioner::OnShowWindowPolicy`  (modified)

```diff
--- GamingPosturePositioner::OnShowWindowPolicy
+++ GamingPosturePositioner::OnShowWindowPolicy
@@ -1,2 +1,449 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB GamingPosturePositioner::OnShowWindowPolicy : 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 GamingPosturePositioner::OnShowWindowPolicy(struct HWND__ *

+   __ptr64,unsigned int,unsigned long * __ptr64,struct tagRECT * __ptr64,unsigned long) __ptr64 */

+

+long __thiscall

+GamingPosturePositioner::OnShowWindowPolicy

+          (GamingPosturePositioner *this,HWND__ *param_1,uint param_2,ulong *param_3,

+          tagRECT *param_4,ulong param_5)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  bool bVar3;

+  int iVar4;

+  uint uVar5;

+  basic_ostringstream<char,struct_std::char_traits<char>,class_std::allocator<char>_> *pbVar6;

+  basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_> *pbVar7;

+  basic_string<char,struct_std::char_traits<char>,class_std::allocator<char>_> *pbVar8;

+  ActivityThreadWatcher *pAVar9;

+  _tlgProvider_t *p_Var10;

+  GamingPosturePositioner *this_00;

+  FeatureImpl<struct___WilFeatureTraits_Feature_60170937> *this_01;

+  basic_string<char,std::char_traits<char>,std::allocator<char>_> *pbVar11;

+  _GUID *p_Var12;

+  _GUID *p_Var13;

+  _GUID *unaff_retaddr;

+  undefined1 auStackY_318 [32];

+  bool local_2c8 [8];

+  _GUID *local_2c0;

+  _GUID *local_2b8;

+  HWND__ *local_2b0;

+  _GUID *local_2a8;

+  HWND__ *local_2a0;

+  HWND__ *local_298;

+  undefined8 local_290;

+  _GUID *local_288 [2];

+  optional<wil::ActivityThreadWatcher> local_278 [80];

+  undefined1 local_228;

+  ActivityThreadWatcher local_218 [80];

+  basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_> local_1c8 [232];

+  undefined8 local_e0;

+  undefined8 uStack_d8;

+  undefined8 local_d0;

+  undefined8 uStack_c8;

+  undefined **local_b8;

+  uint local_b0;

+  undefined ***local_80;

+  basic_string<char,std::char_traits<char>,std::allocator<char>_> local_78 [32];

+  basic_string<char,std::char_traits<char>,std::allocator<char>_> local_58 [32];

+  ulonglong local_38;

+  

+  local_38 = __security_cookie ^ (ulonglong)auStackY_318;

+  *param_3 = 0;

+  p_Var13 = (_GUID *)param_3;

+  local_2b0 = param_1;

+  uVar5 = param_2;

+  SetRectEmpty(param_4);

+  uStack_d8 = 0;

+  local_d0 = 0;

+  uStack_c8 = 0xf;

+  local_e0 = 0;

+  local_228 = 0;

+  local_2c0 = (_GUID *)0x0;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::

+    basic_string<char,std::char_traits<char>,std::allocator<char>_>

+              (local_78,"OnShowWindowPolicy\\HWND=0x");

+    pbVar11 = local_78;

+    pbVar6 = (basic_ostringstream<char,struct_std::char_traits<char>,class_std::allocator<char>_> *)

+             std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>::

+             basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>

+                       (local_1c8,pbVar11,uVar5);

+    pbVar7 = std::

+             operator<<<std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>,class_std::ios_base&___ptr64___cdecl(std::ios_base&___ptr64),0>

+                       (pbVar6,(_func_ios_base_ptr_ios_base_ptr *)pbVar11);

+    local_2a0 = param_1;

+    pbVar7 = std::

+             operator<<<std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>,unsigned___int64,0>

+                       ((basic_ostringstream<char,struct_std::char_traits<char>,class_std::allocator<char>_>

+                         *)pbVar7,(__uint64 *)&local_2a0);

+    pbVar8 = (basic_string<char,struct_std::char_traits<char>,class_std::allocator<char>_> *)

+             std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>::str

+                       (pbVar7);

+    std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::operator=

+              ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0,pbVar8);

+    std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate(local_58)

+    ;

+    std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>_>::_vbase_destructor_

+              (local_1c8);

+    std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate(local_78)

+    ;

+    pAVar9 = (ActivityThreadWatcher *)

+             GamingPosturePositionerTelemetryProvider::WatchCurrentThread((char *)local_218);

+    std::optional<wil::ActivityThreadWatcher>::emplace<wil::ActivityThreadWatcher>(local_278,pAVar9)

+    ;

+    wil::ActivityThreadWatcher::~ActivityThreadWatcher(local_218);

+    plVar1 = *(longlong **)(this + 0x88);

+    pcVar2 = *(code **)(*plVar1 + 0x30);

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset

+              ((com_ptr_t<IInputHostLayout,wil::err_exception_policy> *)&local_2c0);

+    iVar4 = (*pcVar2)(plVar1,param_1,&local_2c0);

+    if ((iVar4 < 0) || (local_2c0 == (_GUID *)0x0)) {

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_2c0)

+      ;

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_278);

+      std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+      return 0;

+    }

+    local_b8 = &PTR__Copy_180757b78;

+    local_80 = &local_b8;

+    local_b0 = param_2;

+    LogViewDiagnosticInfo

+              ((IApplicationView *)local_2c0,

+               (function<void___cdecl(HWND__*___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_long)>

+                *)&local_b8);

+    if (local_80 != (undefined ***)0x0) {

+      (*(code *)(*local_80)[4])

+                (local_80,CONCAT71((int7)((ulonglong)&local_b8 >> 8),local_80 != &local_b8));

+    }

+    this_00 = this + -0x38;

+    p_Var12 = local_2c0;

+    bVar3 = IsViewManaged(this_00,(IApplicationView *)local_2c0);

+    if (!bVar3) {

+      GamingPosturePositionerTelemetryProvider::

+      AllowedShowWindowForView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[15]>

+                (&local_2b0,(ushort *)p_Var12);

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_2c0)

+      ;

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_278);

+      std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+      return 0;

+    }

+LAB_0:

+    p_Var12 = local_2c0;

+    GetRootSwitchableView(this_00,(IApplicationView *)&local_2a8);

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                        ::__l2::impl);

+    if ((!bVar3) &&

+       (p_Var10 = GamingPosturePositionerTelemetryProvider::Provider(), 4 < *(uint *)p_Var10)) {

+      local_2a0 = (HWND__ *)CONCAT44(local_2a0._4_4_,param_2);

+      local_290 = *(undefined8 *)(this + 200);

+      local_288[0] = local_2a8;

+      local_2b8 = local_2c0;

+      local_298 = param_1;

+      _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+      ::

+      Write<_tlgWrapperByVal<8>,_tlgWrapperByVal<8>,_tlgWrapperByVal<8>,_tlgWrapperByVal<8>,_tlgWrapperByVal<4>_>

+                (p_Var10,&DAT_1,p_Var12,p_Var13,(_tlgWrapperByVal<8> *)&local_2b8,

+                 (_tlgWrapperByVal<8> *)local_288,(_tlgWrapperByVal<8> *)&local_290,

+                 (_tlgWrapperByVal<8> *)&local_298,(_tlgWrapperByVal<4> *)&local_2a0);

+    }

+    if ((*(IUnknown **)(this + 200) == (IUnknown *)0x0) ||

+       (iVar4 = SHIsSameObject((IUnknown *)local_2a8,*(IUnknown **)(this + 200)), iVar4 == 0)) {

+      local_2c8[0] = true;

+      bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                          ::__l2::impl);

+      if (bVar3) {

+        unaff_retaddr = local_2c0;

+        SetViewCloaking((IApplicationView *)local_2c0,param_1,true);

+      }

+      else {

+        bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                            ::__l2::impl);

+        if ((!bVar3) &&

+           (p_Var10 = GamingPosturePositionerTelemetryProvider::Provider(), 4 < *(uint *)p_Var10)) {

+          local_2b8 = local_2c0;

+          _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+          ::Write<_tlgWrapperByVal<8>_>

+                    (p_Var10,&DAT_2,(_GUID *)0x0,p_Var13,(_tlgWrapperByVal<8> *)&local_2b8);

+        }

+        uVar5 = (**(code **)(*(longlong *)local_2c0 + 0x60))(local_2c0,1);

+        if ((int)uVar5 < 0) {

+          p_Var13 = (_GUID *)(ulonglong)uVar5;

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x909,

+                     "pcshell\\twinui\\shellpositioners\\lib\\gamingposturepositioner.cpp",uVar5);

+        }

+      }

+    }

+    else {

+      local_2c8[0] = false;

+      unaff_retaddr = local_2a8;

+    }

+    p_Var12 = local_2c0;

+    bVar3 = KioskPositioner::IsWin32ApplicationView

+                      ((KioskPositioner *)unaff_retaddr,(IApplicationView *)local_2c0);

+    if (bVar3) {

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

+                 ::__l2::impl;

+      bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60170937>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_60170937> *)

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

+                          ::__l2::impl);

+      if (bVar3) {

+        bVar3 = ApplicationViewHelpers::HasRootSwitchableOwner((IApplicationView *)local_2c0);

+        if (bVar3) {

+          GamingPosturePositionerTelemetryProvider::

+          AllowedShowWindowForView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[11]>

+                    (&local_2b0,(ushort *)L"Owned view");

+          wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+          ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                    ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                     &local_2a8);

+          wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+          ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                    ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                     &local_2c0);

+          std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+          ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                    ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_278);

+          std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                    ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+          return 0;

+        }

+      }

+      else {

+        p_Var12 = (_GUID *)param_1;

+        bVar3 = IsOwnedAppWindow((GamingPosturePositioner *)this_01,param_1);

+        if (bVar3) {

+          bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                                       ::__l2::impl);

+          if (bVar3) {

+            GamingPosturePositionerTelemetryProvider::

+            AllowedShowWindowForView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[13]>

+                      (&local_2b0,(ushort *)p_Var12);

+          }

+          wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+          ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                    ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                     &local_2a8);

+          wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+          ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                    ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                     &local_2c0);

+          std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+          ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                    ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_278);

+          std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                    ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+          return 0;

+        }

+      }

+      if ((*(HWND__ **)(this + 0x380) == param_1) && (*(uint *)(this + 0x388) == param_2)) {

+        bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                            ::__l2::impl);

+        if (bVar3) {

+          GamingPosturePositionerTelemetryProvider::

+          AllowedShowWindowForView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[24]>

+                    (&local_2b0,(ushort *)p_Var12);

+        }

+        else {

+          bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                                       ::__l2::impl);

+          if ((!bVar3) &&

+             (p_Var10 = GamingPosturePositionerTelemetryProvider::Provider(), 4 < *(uint *)p_Var10))

+          {

+            local_2b8 = local_2c0;

+            _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+            ::Write<_tlgWrapperByVal<8>_>

+                      (p_Var10,&DAT_3,(_GUID *)0x0,p_Var13,(_tlgWrapperByVal<8> *)&local_2b8

+                      );

+          }

+        }

+        *(HWND__ **)(this + 0x390) = param_1;

+        *(uint *)(this + 0x398) = param_2;

+        *(undefined8 *)(this + 0x380) = 0;

+        *(undefined4 *)(this + 0x388) = 0;

+        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                   &local_2a8);

+        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                   &local_2c0);

+        std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+        ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                  ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_278);

+        std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                  ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+      }

+      else {

+        bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_59980251>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_59980251> *)

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

+                            ::__l2::impl);

+        if (bVar3) {

+          if ((param_2 == 9) && (bVar3 = ApplicationViewHelpers::IsMaximizedWindow(param_1), bVar3))

+          {

+            bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::

+                    __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                                         ::__l2::impl);

+            if (bVar3) {

+              GamingPosturePositionerTelemetryProvider::

+              AppliedShowWindowPolicyForView<HWND__*___ptr64&___ptr64,bool_const&___ptr64,unsigned_long&___ptr64,unsigned_short_const_(&___ptr64)[19]>

+                        (&local_2b0,local_2c8,param_3,(ushort *)p_Var13);

+            }

+            else {

+              bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::

+                      __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                                           ::__l2::impl);

+              if ((!bVar3) &&

+                 (p_Var10 = GamingPosturePositionerTelemetryProvider::Provider(),

+                 4 < *(uint *)p_Var10)) {

+                local_2b8 = local_2c0;

+                _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+                ::Write<_tlgWrapperByVal<8>_>

+                          (p_Var10,&DAT_4,(_GUID *)0x0,p_Var13,

+                           (_tlgWrapperByVal<8> *)&local_2b8);

+              }

+            }

+            *param_3 = 1;

+          }

+        }

+        else {

+          bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                                       ::__l2::impl);

+          if ((!bVar3) &&

+             (p_Var10 = GamingPosturePositionerTelemetryProvider::Provider(), 4 < *(uint *)p_Var10))

+          {

+            local_2b8 = local_2c0;

+            _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+            ::Write<_tlgWrapperByVal<8>_>

+                      (p_Var10,&DAT_5,(_GUID *)0x0,p_Var13,(_tlgWrapperByVal<8> *)&local_2b8

+                      );

+          }

+          *param_3 = 2;

+        }

+        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                   &local_2a8);

+        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                   &local_2c0);

+        std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+        ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                  ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_278);

+        std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                  ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+      }

+    }

+    else {

+      if (param_2 == 3) {

+        bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                            ::__l2::impl);

+        if ((!bVar3) &&

+           (p_Var10 = GamingPosturePositionerTelemetryProvider::Provider(), 4 < *(uint *)p_Var10)) {

+          local_2b8 = local_2c0;

+          _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+          ::Write<_tlgWrapperByVal<8>_>

+                    (p_Var10,&DAT_6,(_GUID *)0x0,p_Var13,(_tlgWrapperByVal<8> *)&local_2b8);

+        }

+        *param_3 = 1;

+        bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                            ::__l2::impl);

+        if (bVar3) {

+          GamingPosturePositionerTelemetryProvider::

+          AppliedShowWindowPolicyForView<HWND__*___ptr64&___ptr64,bool_const&___ptr64,unsigned_long&___ptr64,unsigned_short_const_(&___ptr64)[24]>

+                    (&local_2b0,local_2c8,param_3,(ushort *)p_Var13);

+        }

+      }

+      else {

+        bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_60149300>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_60149300> *)

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

+                            ::__l2::impl);

+        if (bVar3) {

+          GamingPosturePositionerTelemetryProvider::

+          AllowedShowWindowForView<HWND__*___ptr64&___ptr64,unsigned_short_const_(&___ptr64)[11]>

+                    (&local_2b0,(ushort *)L"WinRT view");

+        }

+      }

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_2a8)

+      ;

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_2c0)

+      ;

+      std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+      ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+                ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_278);

+      std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+                ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+    }

+  }

+  else {

+    plVar1 = *(longlong **)(this + 0x88);

+    pcVar2 = *(code **)(*plVar1 + 0x30);

+    wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset

+              ((com_ptr_t<IInputHostLayout,wil::err_exception_policy> *)&local_2c0);

+    iVar4 = (*pcVar2)(plVar1,param_1,&local_2c0);

+    if (-1 < iVar4) {

+      this_00 = this + -0x38;

+      bVar3 = IsViewManaged(this_00,(IApplicationView *)local_2c0);

+      if (bVar3) goto LAB_0;

+    }

+    wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+    ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+              ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_2c0);

+    std::_Optional_destruct_base<wil::ActivityThreadWatcher,0>::

+    ~_Optional_destruct_base<wil::ActivityThreadWatcher,0>

+              ((_Optional_destruct_base<wil::ActivityThreadWatcher,0> *)local_278);

+    std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+              ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_e0);

+  }

+  return 0;

+}

+
```

## `winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>::get_SearchBoxPlacement`  (modified)

```diff
--- winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>::get_SearchBoxPlacement
+++ winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>::get_SearchBoxPlacement
@@ -1,95 +1,43 @@
 

-/* WARNING: Instruction at (ram,0x0001801e1622) overlaps instruction at (ram,0x0001801e1621)

-    */

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

+   guard_dispatch_icall */

+/* public: virtual int __cdecl winrt::impl::produce<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>::get_SearchBoxPlacement(void *

+   __ptr64 * __ptr64) __ptr64 */

 

 int __thiscall

-Microsoft::WRL::ComPtr<ApplicationViewTitlebarConfiguration>::get_SearchBoxPlacement

+winrt::impl::

+produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>

+::get_SearchBoxPlacement

           (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>

            *this,void **param_1)

 

 {

-  undefined4 uVar1;

-  undefined8 uVar2;

-  longlong lVar3;

-  undefined8 uVar4;

-  undefined4 in_EAX;

-  DWORD DVar5;

-  int extraout_EAX;

-  _tlgProvider_t *p_Var6;

-  ActivityBase<WindowManagementLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType> *unaff_RBX;

-  longlong unaff_RBP;

-  undefined4 *unaff_RDI;

-  _tlgProvider_t *in_R9;

-  bool in_SF;

+  longlong *plVar1;

+  produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>

+  *ppVar2;

+  abi_guard local_res8 [8];

   

-  if (in_SF) {

-    *(undefined4 *)(unaff_RBP + -0x50) = in_EAX;

+  *param_1 = (void *)0x0;

+  root_implements<winrt::Windows::Internal::Shell::XamlExplorerHost::implementation::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK2,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK3,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK4,winrt::Windows::Foundation::IClosable,winrt::non_agile>

+  ::abi_guard::abi_guard

+            (local_res8,

+             (XamlExplorerHostChildWindow_WASDK *)

+             (-(ulonglong)

+               (this != (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>

+                         *)0x0) & (ulonglong)(this + -0x10)));

+  ppVar2 = this + 0x58;

+  if (this == (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>

+               *)0x0) {

+    ppVar2 = (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::WindowsUdk::UI::Shell::ISearchAppActivatedEventArgs>

+              *)&DAT_0;

   }

-  else {

-    if (unaff_RDI == (undefined4 *)0x0) {

-      wil::ActivityBase<WindowManagementLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

-      zInternalStop(unaff_RBX);

-      p_Var6 = WindowManagementLogging::Provider();

-      if (5 < *(uint *)p_Var6) {

-        DVar5 = GetCurrentThreadId();

-        lVar3 = *(longlong *)(unaff_RBX + 0x110);

-        *(DWORD *)(unaff_RBP + 0x10) = DVar5;

-        uVar1 = *(undefined4 *)(lVar3 + 0x48);

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

-        *(undefined4 *)(unaff_RBP + 0x18) = uVar1;

-        _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

-        ::Write<_tlgWrapperByVal<8>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>_>

-                  (p_Var6,&DAT_0,(_GUID *)(lVar3 + 8),(_GUID *)0x0,

-                   (_tlgWrapperByVal<8> *)(unaff_RBP + 0x20),

-                   (_tlgWrapperByVal<4> *)(unaff_RBP + 0x18),

-                   (_tlgWrapperByVal<4> *)(unaff_RBP + 0x10));

-      }

-      goto LAB_1;

-    }

-    wil::ActivityBase<WindowManagementLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

-    zInternalStop(unaff_RBX);

-    in_R9 = WindowManagementLogging::Provider();

-    if (*(uint *)in_R9 < 6) goto LAB_1;

+  plVar1 = *(longlong **)ppVar2;

+  if (plVar1 != (longlong *)0x0) {

+    (**(code **)(*plVar1 + 8))(plVar1);

   }

-  uVar2 = *(undefined8 *)(unaff_RDI + 0xc);

-  lVar3 = *(longlong *)(unaff_RBX + 0x110);

-  *(undefined4 *)(unaff_RBP + 0x20) = unaff_RDI[0x1a];

-  uVar4 = *(undefined8 *)(unaff_RDI + 0x18);

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

-  *(undefined8 *)(unaff_RBP + -0x58) = uVar4;

-  *(undefined8 *)(unaff_RBP + -0x50) = *(undefined8 *)(unaff_RDI + 0x16);

-  *(undefined4 *)(unaff_RBP + 0x28) = unaff_RDI[0x14];

-  *(undefined8 *)(unaff_RBP + -0x48) = *(undefined8 *)(unaff_RDI + 0x12);

-  *(undefined4 *)(unaff_RBP + -0x80) = unaff_RDI[8];

-  *(undefined8 *)(unaff_RBP + -0x40) = *(undefined8 *)(unaff_RDI + 6);

-  *(undefined4 *)(unaff_RBP + -0x7c) = *unaff_RDI;

-  *(undefined8 *)(unaff_RBP + -0x38) = *(undefined8 *)(unaff_RDI + 0x20);

-  *(undefined4 *)(unaff_RBP + -0x78) = unaff_RDI[0x10];

-  *(undefined8 *)(unaff_RBP + -0x30) = *(undefined8 *)(unaff_RDI + 0xe);

-  *(undefined4 *)(unaff_RBP + -0x74) = unaff_RDI[2];

-  *(undefined8 *)(unaff_RBP + -0x70) = uVar2;

-  *(undefined4 *)(unaff_RBP + 0x10) = unaff_RDI[0x11];

-  *(undefined4 *)(unaff_RBP + 0x18) = unaff_RDI[4];

-  *(undefined8 *)(unaff_RBP + -0x68) = *(undefined8 *)(unaff_RDI + 0x1e);

-  *(undefined8 *)(unaff_RBP + -0x60) = *(undefined8 *)(unaff_RDI + 0x1c);

-  *(undefined8 *)(unaff_RBP + -0x28) = 0x1000000;

-  _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

-  ::

-  Write<_tlgWrapperByVal<8>,_tlgWrapperByVal<8>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapperByVal<4>,_tlgWrapSz<wchar_t>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapSz<wchar_t>,_tlgWrapperByVal<4>,_tlgWrapSz<char>,_tlgWrapSz<wchar_t>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapSz<char>_>

-            (in_R9,&DAT_2,(_GUID *)(lVar3 + 8),(_GUID *)in_R9,

-             (_tlgWrapperByVal<8> *)(unaff_RBP + -0x20),(_tlgWrapperByVal<8> *)(unaff_RBP + -0x28),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + -0x74),(_tlgWrapSz<char> *)(unaff_RBP + -0x30),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + -0x78),(_tlgWrapSz<char> *)(unaff_RBP + -0x38),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + -0x7c),(_tlgWrapSz<wchar_t> *)(unaff_RBP + -0x40),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + -0x80),(_tlgWrapSz<char> *)(unaff_RBP + -0x48),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + 0x28),(_tlgWrapSz<char> *)(unaff_RBP + -0x50),

-             (_tlgWrapSz<wchar_t> *)(unaff_RBP + -0x58),(_tlgWrapperByVal<4> *)(unaff_RBP + 0x20),

-             (_tlgWrapSz<char> *)(unaff_RBP + -0x60),(_tlgWrapSz<wchar_t> *)(unaff_RBP + -0x68),

-             (_tlgWrapperByVal<4> *)(unaff_RBP + 0x18),(_tlgWrapperByVal<4> *)(unaff_RBP + 0x10),

-             (_tlgWrapSz<char> *)(unaff_RBP + -0x70));

-LAB_1:

-  wil::ActivityBase<WindowManagementLogging,0,0,5,0,_TlgReflectorTag_Param0IsProviderType>::

-  IgnoreCurrentThread(unaff_RBX);

-  return extraout_EAX;

+  *param_1 = plVar1;

+  return 0;

 }
```

## `TabletModePositioner::SubscribeToServices`  (modified)

```diff
--- TabletModePositioner::SubscribeToServices
+++ TabletModePositioner::SubscribeToServices
@@ -1,19 +1,428 @@
 

 /* 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 TabletModePositioner::SubscribeToServices(struct IServiceProvider *

+   __ptr64) __ptr64 */

 

 long __thiscall

-VirtualDesktopController::SubscribeToServices(TabletModePositioner *this,IServiceProvider *param_1)

+TabletModePositioner::SubscribeToServices(TabletModePositioner *this,IServiceProvider *param_1)

 

 {

-  uint uVar1;

-  longlong in_RAX;

+  ComPtr<IImmersiveSystemModeNotification> *pCVar1;

+  ComPtr<IImmersiveSystemModeNotification> *this_00;

+  ComPtr<IImmersiveSystemModeNotification> *this_01;

+  code *pcVar2;

+  longlong *plVar3;

+  bool bVar4;

+  int iVar5;

+  int iVar6;

+  void **ppvVar7;

+  uint uVar8;

+  undefined8 uVar9;

+  void *unaff_retaddr;

+  undefined1 auStack_e8 [32];

+  TabletModePositioner *local_c8;

+  longlong *local_b8;

+  longlong *local_b0;

+  int local_a8 [2];

+  longlong *local_a0;

+  longlong *local_98;

+  undefined8 local_90;

+  undefined8 local_88;

+  undefined8 local_80;

+  TabletModePositioner *local_78;

+  undefined4 local_68;

+  undefined4 uStack_64;

+  undefined4 uStack_60;

+  undefined4 uStack_5c;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  ulonglong local_48;

   

-  *(char *)(in_RAX + -0x75) = *(char *)(in_RAX + -0x75) + (char)this;

-  uVar1 = (uint)in_RAX | 0x8644e8;

-  if (this != (TabletModePositioner *)0x0) {

-    uVar1 = (**(code **)(*(longlong *)this + 0x10))();

+  local_48 = __security_cookie ^ (ulonglong)auStack_e8;

+  local_98 = (longlong *)0x0;

+  local_a0 = (longlong *)0x0;

+  pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+  ppvVar7 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IApplicationViewArrangePosition>_>

+                      (this + 0x138);

+  iVar5 = (*pcVar2)(param_1,&_GUID_1841c6d7_4f9d_42c0_af41_8747538f10e5,

+                    &_GUID_1841c6d7_4f9d_42c0_af41_8747538f10e5,ppvVar7);

+  if (iVar5 < 0) {

+    uVar8 = 0x161;

   }

-  return uVar1;

+  else {

+    pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+    pCVar1 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x140);

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(pCVar1);

+    iVar5 = (*pcVar2)(param_1,&_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,

+                      &_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,pCVar1);

+    if (iVar5 < 0) {

+      uVar8 = 0x162;

+    }

+    else {

+      bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::__private_IsEnabled

+                        ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                          ::__l2::impl);

+      if (!bVar4) {

+        pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x148));

+        iVar5 = (*pcVar2)(param_1,&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,

+                          &_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,

+                          (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x148));

+        if (iVar5 < 0) {

+          uVar8 = 0x165;

+          goto LAB_0;

+        }

+      }

+      pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x150));

+      iVar5 = (*pcVar2)(param_1,&_GUID_ff62716a_0bd0_4105_a6ec_83b09d864267,

+                        &_GUID_ff62716a_0bd0_4105_a6ec_83b09d864267,

+                        (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x150));

+      if (iVar5 < 0) {

+        uVar8 = 0x167;

+      }

+      else {

+        pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x158));

+        iVar5 = (*pcVar2)(param_1,&_GUID_05ac56a6_baf7_414f_b92c_7156052701de,

+                          &_GUID_2010122c_468a_480f_8cd1_b85e76f5882e,

+                          (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x158));

+        if (iVar5 < 0) {

+          uVar8 = 0x168;

+        }

+        else {

+          pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x160));

+          (*pcVar2)(param_1,&SID_VirtualDesktopManager,&_GUID_4970ba3d_fd4e_4647_bea3_d89076ef4b9c,

+                    (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x160));

+          pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x168));

+          iVar5 = (*pcVar2)(param_1,&_GUID_6fdc29fe_42bd_4dc0_b783_b7854dcba425,

+                            &_GUID_6fdc29fe_42bd_4dc0_b783_b7854dcba425,

+                            (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x168));

+          if (iVar5 < 0) {

+            uVar8 = 0x16c;

+          }

+          else {

+            pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                      ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x170));

+            iVar5 = (*pcVar2)(param_1,&DAT_1,&_GUID_bed1afcc_2de8_451c_9d0f_b5e62404b714,

+                              (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x170));

+            if (iVar5 < 0) {

+              uVar8 = 0x16d;

+            }

+            else {

+              pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+              Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                        ((ComPtr<IImmersiveSystemModeNotification> *)&local_98);

+              iVar5 = (*pcVar2)(param_1,&SID_IImmersiveMonitorService,

+                                &_GUID_7c7a3e75_4362_4d12_860d_68ee72909f83,&local_98);

+              if (iVar5 < 0) {

+                uVar8 = 0x16e;

+              }

+              else {

+                pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+                this_00 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x178);

+                Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(this_00);

+                iVar5 = (*pcVar2)(param_1,&SID_ImmersiveShellHookService,

+                                  &_GUID_914d9b3a_5e53_4e14_bbba_46062acb35a4,this_00);

+                if (iVar5 < 0) {

+                  uVar8 = 0x16f;

+                }

+                else {

+                  pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+                  this_01 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x180);

+                  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(this_01)

+                  ;

+                  iVar5 = (*pcVar2)(param_1,&SID_MultitaskingViewVisibilityService,

+                                    &_GUID_ac11cda3_1601_4ad7_a40e_fe2ced187307,this_01);

+                  if (iVar5 < 0) {

+                    uVar8 = 0x170;

+                  }

+                  else {

+                    pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                              ((ComPtr<IImmersiveSystemModeNotification> *)&local_a0);

+                    iVar5 = (*pcVar2)(param_1,&SID_ShellTargetingTracker,

+                                      &_GUID_e535b915_429c_4e9f_b0e9_94819002d685,&local_a0);

+                    if (iVar5 < 0) {

+                      uVar8 = 0x171;

+                    }

+                    else {

+                      pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+                      Microsoft::WRL::ComPtr<IUri>::InternalRelease((ComPtr<IUri> *)(this + 0x188));

+                      iVar5 = (*pcVar2)(param_1,&_GUID_88ed940d_d632_4b84_9529_a3110b5af527,

+                                        &_GUID_88ed940d_d632_4b84_9529_a3110b5af527,

+                                        (ComPtr<IUri> *)(this + 0x188));

+                      if (iVar5 < 0) {

+                        uVar8 = 0x172;

+                      }

+                      else {

+                        pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)(this + 0x1a0));

+                        iVar5 = (*pcVar2)(param_1,&_GUID_c16d3efd_5c6f_462b_86f1_858082a48bb1,

+                                          &_GUID_c16d3efd_5c6f_462b_86f1_858082a48bb1,

+                                          (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x1a0)

+                                         );

+                        if (iVar5 < 0) {

+                          uVar8 = 0x173;

+                        }

+                        else {

+                          iVar5 = (**(code **)(**(longlong **)pCVar1 + 0x18))

+                                            (*(longlong **)pCVar1,

+                                             -(ulonglong)

+                                              (this != (TabletModePositioner *)&DAT_2) &

+                                             (ulonglong)(this + 0x70),this + 0x1d4);

+                          if (iVar5 < 0) {

+                            uVar8 = 0x175;

+                          }

+                          else {

+                            bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::

+                                    __private_IsEnabled((

+                                                  FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

+                                                  &

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

+                                                  ::__l2::impl);

+                            if (!bVar4) {

+                              iVar5 = (**(code **)(**(longlong **)(this + 0x148) + 0x48))

+                                                (*(longlong **)(this + 0x148),

+                                                 -(ulonglong)

+                                                  (this != (TabletModePositioner *)&DAT_2) &

+                                                 (ulonglong)(this + 0x78),this + 0x1d8);

+                              if (iVar5 < 0) {

+                                uVar8 = 0x179;

+                                goto LAB_0;

+                              }

+                              (**(code **)(**(longlong **)(this + 0x148) + 0x18))

+                                        (*(longlong **)(this + 0x148),this + 0xd4);

+                            }

+                            pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+                            pCVar1 = (ComPtr<IImmersiveSystemModeNotification> *)(this + 0x198);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease(pCVar1);

+                            iVar5 = (*pcVar2)(param_1,&SID_TransitionCoordinator,

+                                              &_GUID_b1bed1ae_63da_4687_8063_c89ec276d28a,pCVar1);

+                            if (iVar5 < 0) {

+                              uVar8 = 0x17d;

+                            }

+                            else {

+                              iVar5 = (**(code **)(**(longlong **)pCVar1 + 0x18))

+                                                (*(longlong **)pCVar1,

+                                                 -(ulonglong)

+                                                  (this != (TabletModePositioner *)&DAT_2) &

+                                                 (ulonglong)(this + 0xb0),this + 0x1ec);

+                              if (iVar5 < 0) {

+                                uVar8 = 0x17e;

+                              }

+                              else {

+                                local_c8 = this + 0x1e0;

+                                iVar6 = (**(code **)(**(longlong **)this_00 + 0x18))

+                                                  (*(longlong **)this_00,&DAT_3,1,

+                                                   -(ulonglong)

+                                                    (this != (TabletModePositioner *)&DAT_2)

+                                                   & (ulonglong)(this + 0x90));

+                                iVar5 = 0;

+                                if (iVar6 < 0) {

+                                  uVar8 = 0x184;

+                                  iVar5 = iVar6;

+                                }

+                                else {

+                                  iVar6 = (**(code **)(**(longlong **)this_01 + 0x20))

+                                                    (*(longlong **)this_01,

+                                                     -(ulonglong)

+                                                      (this != (TabletModePositioner *)&DAT_2

+                                                      ) & (ulonglong)(this + 0x98),this + 0x1e4);

+                                  if (iVar6 < 0) {

+                                    uVar8 = 0x185;

+                                    iVar5 = iVar6;

+                                  }

+                                  else {

+                                    iVar6 = (**(code **)(*local_a0 + 0x18))

+                                                      (local_a0,-(ulonglong)

+                                                                 (this != (TabletModePositioner *)

+                                                                          &DAT_2) &

+                                                                (ulonglong)(this + 0xa0),

+                                                       this + 0x1e8);

+                                    if (iVar6 < 0) {

+                                      uVar8 = 0x186;

+                                      iVar5 = iVar6;

+                                    }

+                                    else {

+                                      local_90 = *(undefined8 *)(this + 0x138);

+                                      local_88 = *(undefined8 *)(this + 0x148);

+                                      local_80 = *(undefined8 *)(this + 0x158);

+                                      if (this == (TabletModePositioner *)&DAT_2) {

+                                        local_78 = (TabletModePositioner *)0x0;

+                                      }

+                                      else {

+                                        local_78 = this + 0x40;

+                                      }

+                                      iVar6 = (**(code **)(**(longlong **)(this + 0x118) + 0x18))

+                                                        (*(longlong **)(this + 0x118),&local_90);

+                                      if (iVar6 < 0) {

+                                        uVar8 = 399;

+                                        iVar5 = iVar6;

+                                      }

+                                      else {

+                                        pcVar2 = *(code **)(*(longlong *)param_1 + 0x18);

+                                        pCVar1 = (ComPtr<IImmersiveSystemModeNotification> *)

+                                                 (this + 0x1a8);

+                                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                        InternalRelease(pCVar1);

+                                        iVar6 = (*pcVar2)(param_1,&

+                                                  _GUID_9c4a7f24_303d_47a7_994e_503f26217d06,

+                                                  &_GUID_9c4a7f24_303d_47a7_994e_503f26217d06,pCVar1

+                                                  );

+                                        if (-1 < iVar6) {

+                                          local_b0 = (longlong *)0x0;

+                                          plVar3 = *(longlong **)pCVar1;

+                                          pcVar2 = *(code **)(*plVar3 + 0x18);

+                                          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                          InternalRelease((ComPtr<IImmersiveSystemModeNotification>

+                                                           *)&local_b0);

+                                          iVar6 = (*pcVar2)(plVar3,2,&local_b0);

+                                          if (iVar6 < 0) {

+                                            wil::details::in1diag3::Return_Hr

+                                                      (unaff_retaddr,0x195,

+                                                                                                              

+                                                  "pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp"

+                                                  ,iVar6);

+                                            iVar5 = iVar6;

+                                          }

+                                          else {

+                                            local_b8 = (longlong *)0x0;

+                                            pcVar2 = (code *)**(undefined8 **)param_1;

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_b8);

+                                            iVar6 = (*pcVar2)(param_1,&

+                                                  _GUID_880b26f8_9197_43d0_8045_8702d0d72000,

+                                                  &local_b8);

+                                            if (-1 < iVar6) {

+                                              local_a8[0] = 0;

+                                              iVar6 = (**(code **)(*local_b8 + 0x30))

+                                                                (local_b8,local_a8);

+                                              if (iVar6 < 0) {

+                                                wil::details::in1diag3::_Log_Hr

+                                                          (unaff_retaddr,0x19d,

+                                                                                                                      

+                                                  "pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp"

+                                                  ,iVar6);

+                                              }

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

+                                                local_58 = 0;

+                                                uStack_50 = 0;

+                                                iVar6 = (**(code **)(*local_b8 + 0x58))

+                                                                  (local_b8,&local_58);

+                                                if (iVar6 < 0) {

+                                                  wil::details::in1diag3::_Log_Hr

+                                                            (unaff_retaddr,0x1a2,

+                                                                                                                          

+                                                  "pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp"

+                                                  ,iVar6);

+                                                }

+                                                local_68 = (undefined4)local_58;

+                                                uStack_64 = local_58._4_4_;

+                                                uStack_60 = (undefined4)uStack_50;

+                                                uStack_5c = uStack_50._4_4_;

+                                                iVar6 = (**(code **)(*local_b0 + 0x38))

+                                                                  (local_b0,local_b8,&local_68,1);

+                                                if (iVar6 < 0) {

+                                                  wil::details::in1diag3::_Log_Hr

+                                                            (unaff_retaddr,0x1a3,

+                                                                                                                          

+                                                  "pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp"

+                                                  ,iVar6);

+                                                }

+                                              }

+                                            }

+                                            uVar9 = 3;

+                                            if (*(int *)(this + 0xd4) != 1) {

+                                              uVar9 = 0;

+                                            }

+                                            iVar6 = (**(code **)(*local_b0 + 0x28))(local_b0,uVar9);

+                                            if (iVar6 < 0) {

+                                              uVar8 = 0x1ac;

+                                              iVar5 = iVar6;

+                                            }

+                                            else {

+                                              iVar6 = (**(code **)(*local_98 + 0x18))

+                                                                (local_98,-(ulonglong)

+                                                                           (this != (

+                                                  TabletModePositioner *)&DAT_2) &

+                                                  (ulonglong)(this + 0x80),this + 0x1dc);

+                                              if (-1 < iVar6) {

+                                                Microsoft::WRL::

+                                                ComPtr<IImmersiveSystemModeNotification>::

+                                                InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_b8);

+                                                Microsoft::WRL::

+                                                ComPtr<IImmersiveSystemModeNotification>::

+                                                InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_b0);

+                                                goto LAB_4;

+                                              }

+                                              uVar8 = 0x1af;

+                                              iVar5 = iVar6;

+                                            }

+                                            wil::details::in1diag3::Return_Hr

+                                                      (unaff_retaddr,uVar8,

+                                                                                                              

+                                                  "pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp"

+                                                  ,iVar5);

+                                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>

+                                            ::InternalRelease((

+                                                  ComPtr<IImmersiveSystemModeNotification> *)

+                                                  &local_b8);

+                                          }

+                                          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                                          InternalRelease((ComPtr<IImmersiveSystemModeNotification>

+                                                           *)&local_b0);

+                                          goto LAB_4;

+                                        }

+                                        uVar8 = 0x192;

+                                        iVar5 = iVar6;

+                                      }

+                                    }

+                                  }

+                                }

+                              }

+                            }

+                          }

+                        }

+                      }

+                    }

+                  }

+                }

+              }

+            }

+          }

+        }

+      }

+    }

+  }

+LAB_0:

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar8,"pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp",iVar5)

+  ;

+LAB_4:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_a0);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_98);

+  return iVar5;

 }
```

## `winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::QueryInterface`  (modified)

```diff
--- winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::QueryInterface
+++ winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::QueryInterface
@@ -1,2 +1,23 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::QueryInterface : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual int __cdecl winrt::impl::produce_base<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>::QueryInterface(struct

+   winrt::guid const & __ptr64,void * __ptr64 * __ptr64) __ptr64 */

+

+int __thiscall

+winrt::impl::

+produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>

+::QueryInterface(produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>

+                 *this,guid *param_1,void **param_2)

+

+{

+  long lVar1;

+  

+  lVar1 = WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs::QueryInterface

+                    ((SearchAppActivatedEventArgs *)

+                     (-(ulonglong)

+                       (this != (produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs2,void>

+                                 *)0x0) & (ulonglong)(this + -0x38)),(_GUID *)param_1,param_2);

+  return lVar1;

+}

+
```

## `SearchAppPositionerHelpers::ExtractMonitorInfo`  (modified)

```diff
--- SearchAppPositionerHelpers::ExtractMonitorInfo
+++ SearchAppPositionerHelpers::ExtractMonitorInfo
@@ -1,2 +1,261 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB SearchAppPositionerHelpers::ExtractMonitorInfo : 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 */

+/* struct MonitorInfo __cdecl SearchAppPositionerHelpers::ExtractMonitorInfo(struct tagRECT const &

+   __ptr64,class Microsoft::WRL::ComPtr<struct IServiceProvider>) */

+

+undefined8 * __cdecl

+SearchAppPositionerHelpers::ExtractMonitorInfo

+          (undefined8 *param_1,LPCRECT param_2,ComPtr<IImmersiveSystemModeNotification> *param_3)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  bool bVar3;

+  BOOL BVar4;

+  undefined4 uVar5;

+  int iVar6;

+  HMONITOR hMonitor;

+  HWND hWnd;

+  HANDLE pvVar7;

+  float *pfVar8;

+  void *unaff_retaddr;

+  undefined1 auStack_158 [32];

+  longlong **local_138;

+  int local_128 [2];

+  longlong *local_120;

+  longlong local_118;

+  longlong *local_110;

+  longlong *local_108;

+  undefined4 local_100 [2];

+  undefined8 local_f8;

+  undefined8 uStack_f0;

+  IUnknown local_e8 [8];

+  undefined8 local_e0;

+  IUnknown local_d8 [8];

+  ComPtr<IImmersiveSystemModeNotification> *local_d0;

+  undefined8 local_c8;

+  undefined8 uStack_c0;

+  RECT local_b8;

+  RECT local_a8;

+  undefined8 local_98;

+  undefined8 uStack_90;

+  byte local_88;

+  undefined1 uStack_87;

+  undefined2 uStack_86;

+  undefined4 uStack_84;

+  int iStack_80;

+  int iStack_7c;

+  int iStack_78;

+  int iStack_74;

+  int iStack_70;

+  undefined4 uStack_6c;

+  undefined4 local_68;

+  undefined4 uStack_64;

+  tagMONITORINFO local_58;

+  ulonglong local_30;

+  

+  local_30 = __security_cookie ^ (ulonglong)auStack_158;

+  local_100[0] = 0;

+  local_f8 = 0;

+  uStack_f0 = 0;

+  local_120 = *(longlong **)param_3;

+  local_d0 = param_3;

+  Microsoft::WRL::ComPtr<IImmersiveApplicationInternal>::InternalAddRef

+            ((ComPtr<IImmersiveApplicationInternal> *)&local_120);

+  winrt::check_bool<Microsoft::WRL::ComPtr<IServiceProvider>_>(&local_c8,&local_120,local_100);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

+  memset(&local_b8,0,0x58);

+  hMonitor = MonitorFromRect(param_2,1);

+  local_58.cbSize = 0x28;

+  local_58.rcMonitor.left = 0;

+  local_58.rcMonitor.top = 0;

+  local_58.rcMonitor.right = 0;

+  local_58.rcMonitor.bottom = 0;

+  local_58.rcWork.left = 0;

+  local_58.rcWork.top = 0;

+  local_58.rcWork.right = 0;

+  local_58.rcWork.bottom = 0;

+  local_58.dwFlags = 0;

+  local_100[0] = 0;

+  local_f8 = 0;

+  uStack_f0 = 0;

+  BVar4 = GetMonitorInfoW(hMonitor,&local_58);

+  winrt::check_bool<int>(BVar4,(slim_source_location *)local_100);

+  local_b8.left = local_58.rcMonitor.left;

+  local_b8.top = local_58.rcMonitor.top;

+  local_b8.right = local_58.rcMonitor.right;

+  local_b8.bottom = local_58.rcMonitor.bottom;

+  local_108 = (longlong *)0x0;

+  local_100[0] = 0;

+  local_f8 = 0;

+  uStack_f0 = 0;

+  plVar1 = *(longlong **)param_3;

+  pcVar2 = *(code **)(*plVar1 + 0x18);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_108);

+  uVar5 = (*pcVar2)(plVar1,&SID_IImmersiveMonitorService,&_GUID_4d4c1e64_e410_4faa_bafa_59ca069bfec2

+                    ,&local_108);

+  winrt::check_hresult(local_128,uVar5,local_100);

+  plVar1 = local_108;

+  local_110 = (longlong *)0x0;

+  pcVar2 = *(code **)(*local_108 + 0x48);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_110);

+  local_138 = &local_110;

+  iVar6 = (*pcVar2)(plVar1,hMonitor,&SID_EdgeUi,&_GUID_6e6c3c52_5a5e_4b4b_a0f8_7fe12621a93e);

+  if (iVar6 < 0) {

+    local_a8.left = local_58.rcWork.left;

+    local_a8.top = local_58.rcWork.top;

+    local_a8.right = local_58.rcWork.right;

+    local_a8.bottom = local_58.rcWork.bottom;

+    uStack_84 = 3;

+    local_98 = 0;

+    uStack_90 = 0;

+    goto LAB_0;

+  }

+  hWnd = FindWindowW(L"Shell_TrayWnd",(LPCWSTR)0x0);

+  if (hWnd == (HWND)0x0) {

+LAB_1:

+    local_a8.left = local_58.rcWork.left;

+    local_a8.top = local_58.rcWork.top;

+    local_a8.right = local_58.rcWork.right;

+    local_a8.bottom = local_58.rcWork.bottom;

+  }

+  else {

+    pvVar7 = GetPropW(hWnd,L"IsAutoHideEnabled");

+    if (pvVar7 == (HANDLE)0x0) goto LAB_1;

+    local_c8 = 0;

+    uStack_c0 = 0;

+    (**(code **)(*local_110 + 0x98))(local_110,&local_c8);

+    local_a8.left = (LONG)local_c8;

+    local_a8.top = local_c8._4_4_;

+    local_a8.right = (LONG)uStack_c0;

+    local_a8.bottom = uStack_c0._4_4_;

+  }

+  uStack_84 = 3;

+  iVar6 = (**(code **)(*local_110 + 0x50))(local_110,&uStack_84);

+  if (iVar6 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x26,

+               "pcshell\\twinui\\experiencemanagers\\lib\\SearchAppPositionerHelpers.h",iVar6);

+  }

+  local_98 = 0;

+  uStack_90 = 0;

+  iVar6 = (**(code **)(*local_110 + 0x70))(local_110,&local_98);

+  if (iVar6 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x28,

+               "pcshell\\twinui\\experiencemanagers\\lib\\SearchAppPositionerHelpers.h",iVar6);

+  }

+  local_128[0] = 0;

+  local_100[0] = 0;

+  local_f8 = 0;

+  uStack_f0 = 0;

+  uVar5 = (**(code **)(*local_110 + 0x60))(local_110,local_128);

+  winrt::check_hresult(&local_118,uVar5,local_100);

+  uStack_87 = local_128[0] != 0;

+LAB_0:

+  local_88 = local_58.dwFlags == 1;

+  iStack_80 = ExperienceManagerUtils::GetPerMonitorDpi(hMonitor);

+  uStack_6c = 1;

+  local_68 = 1;

+  iStack_7c = 0;

+  iStack_78 = 0;

+  iStack_74 = 0;

+  iStack_70 = 0;

+  winrt::WindowsUdk::UI::Shell::TaskbarLayout::Current();

+  winrt::impl::

+  consume_WindowsUdk_UI_Shell_IDisplayMonitorInfoCollection<winrt::WindowsUdk::UI::Shell::IDisplayMonitorInfoCollection>

+  ::GetDisplayMonitorInfoForMonitor

+            ((consume_WindowsUdk_UI_Shell_IDisplayMonitorInfoCollection<winrt::WindowsUdk::UI::Shell::IDisplayMonitorInfoCollection>

+              *)&local_120,(__uint64)local_d8);

+  local_c8 = 0;

+  bVar3 = winrt::Windows::Foundation::operator!=(local_d8,(IUnknown *)&local_c8);

+  if (bVar3) {

+    uStack_6c = winrt::impl::

+                consume_WindowsUdk_UI_Themes_IAppVisualThemeStatics<winrt::WindowsUdk::UI::Themes::IAppVisualThemeStatics>

+                ::Current((consume_WindowsUdk_UI_Themes_IAppVisualThemeStatics<winrt::WindowsUdk::UI::Themes::IAppVisualThemeStatics>

+                           *)local_d8);

+  }

+  local_c8 = 0;

+  local_100[0] = 0;

+  local_f8 = 0;

+  uStack_f0 = 0;

+  uVar5 = (**(code **)(*local_120 + 0x40))(local_120,hMonitor,&local_c8);

+  winrt::check_hresult(&local_118,uVar5,local_100);

+  local_e0 = local_c8;

+  local_118 = 0;

+  bVar3 = winrt::Windows::Foundation::operator!=((IUnknown *)&local_e0,(IUnknown *)&local_118);

+  if (bVar3) {

+    local_68 = winrt::impl::

+               consume_WindowsUdk_UI_Themes_IAppVisualThemeStatics<winrt::WindowsUdk::UI::Themes::IAppVisualThemeStatics>

+               ::Current((consume_WindowsUdk_UI_Themes_IAppVisualThemeStatics<winrt::WindowsUdk::UI::Themes::IAppVisualThemeStatics>

+                          *)&local_e0);

+  }

+  local_128[0] = 1;

+  winrt::impl::

+  consume_WindowsUdk_UI_Shell_ITaskbarLayout<winrt::WindowsUdk::UI::Shell::ITaskbarLayout>::

+  GetShellViewButtonBoundsInRawPixels

+            ((consume_WindowsUdk_UI_Shell_ITaskbarLayout<winrt::WindowsUdk::UI::Shell::ITaskbarLayout>

+              *)&local_120,(__uint64)local_e8,(ShellView *)hMonitor);

+  local_c8 = 0;

+  bVar3 = winrt::Windows::Foundation::operator!=(local_e8,(IUnknown *)&local_c8);

+  if (bVar3) {

+    pfVar8 = (float *)winrt::impl::

+                      consume_Windows_Foundation_IReference<winrt::Windows::Foundation::IReference<winrt::Windows::Foundation::Rect>,winrt::Windows::Foundation::Rect>

+                      ::Value((consume_Windows_Foundation_IReference<winrt::Windows::Foundation::IReference<winrt::Windows::Foundation::Rect>,winrt::Windows::Foundation::Rect>

+                               *)local_e8);

+    iStack_7c = (int)*pfVar8;

+    iStack_78 = (int)pfVar8[1];

+    iStack_74 = (int)(*pfVar8 + pfVar8[2]);

+    iStack_70 = (int)(pfVar8[1] + pfVar8[3]);

+  }

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61090762>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61090762> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    winrt::impl::

+    consume_WindowsUdk_UI_Shell_ITaskbarLayout3<winrt::WindowsUdk::UI::Shell::TaskbarLayout>::

+    GetTaskbarFrameSize((consume_WindowsUdk_UI_Shell_ITaskbarLayout3<winrt::WindowsUdk::UI::Shell::TaskbarLayout>

+                         *)&local_120,(__uint64)&local_118);

+    if (local_118 != 0) {

+      uStack_64 = winrt::impl::

+                  consume_WindowsUdk_UI_Themes_IAppVisualThemeStatics<winrt::WindowsUdk::UI::Themes::IAppVisualThemeStatics>

+                  ::Current((consume_WindowsUdk_UI_Themes_IAppVisualThemeStatics<winrt::WindowsUdk::UI::Themes::IAppVisualThemeStatics>

+                             *)&local_118);

+    }

+    winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+    ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_118);

+  }

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_e8);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_e0);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_d8);

+  winrt::Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)&local_120);

+  uStack_87 = 0;

+  *param_1 = local_b8._0_8_;

+  param_1[1] = local_b8._8_8_;

+  param_1[2] = local_a8._0_8_;

+  param_1[3] = local_a8._8_8_;

+  param_1[4] = local_98;

+  param_1[5] = uStack_90;

+  param_1[6] = CONCAT44(uStack_84,CONCAT22(uStack_86,(ushort)local_88));

+  param_1[7] = CONCAT44(iStack_7c,iStack_80);

+  param_1[8] = CONCAT44(iStack_74,iStack_78);

+  param_1[9] = CONCAT44(uStack_6c,iStack_70);

+  param_1[10] = CONCAT44(uStack_64,local_68);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_110);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_108);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease(param_3);

+  return param_1;

+}

+
```

## `std::_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_>::_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_><std::allocator<std::_List_node<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>,void*___ptr64>_>_>`  (modified)

```diff
--- std::_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_>::_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_><std::allocator<std::_List_node<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>,void*___ptr64>_>_>
+++ std::_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_>::_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_><std::allocator<std::_List_node<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>,void*___ptr64>_>_>
@@ -1,2 +1,94 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB std::_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_>::_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_><std::allocator<std::_List_node<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>,void*___ptr64>_>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* protected: __cdecl std::_Hash<class std::_Umap_traits<struct winrt::hstring,struct

+   winrt::com_ptr<struct IVirtualDesktop>,class std::_Uhash_compare<struct winrt::hstring,struct

+   std::hash<struct winrt::hstring>,struct std::equal_to<struct winrt::hstring> >,class

+   std::allocator<struct std::pair<struct winrt::hstring const ,struct winrt::com_ptr<struct

+   IVirtualDesktop> > >,0> >::_Hash<class std::_Umap_traits<struct winrt::hstring,struct

+   winrt::com_ptr<struct IVirtualDesktop>,class std::_Uhash_compare<struct winrt::hstring,struct

+   std::hash<struct winrt::hstring>,struct std::equal_to<struct winrt::hstring> >,class

+   std::allocator<struct std::pair<struct winrt::hstring const ,struct winrt::com_ptr<struct

+   IVirtualDesktop> > >,0> ><class std::allocator<struct std::_List_node<struct std::pair<struct

+   winrt::hstring const ,struct winrt::com_ptr<struct IVirtualDesktop> >,void * __ptr64> > >(class

+   std::_Hash<class std::_Umap_traits<struct winrt::hstring,struct winrt::com_ptr<struct

+   IVirtualDesktop>,class std::_Uhash_compare<struct winrt::hstring,struct std::hash<struct

+   winrt::hstring>,struct std::equal_to<struct winrt::hstring> >,class std::allocator<struct

+   std::pair<struct winrt::hstring const ,struct winrt::com_ptr<struct IVirtualDesktop> > >,0> >

+   const & __ptr64,class std::allocator<struct std::_List_node<struct std::pair<struct

+   winrt::hstring const ,struct winrt::com_ptr<struct IVirtualDesktop> >,void * __ptr64> > const &

+   __ptr64) __ptr64 */

+

+_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_>

+* __thiscall

+std::

+_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_>

+::

+_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_><std::allocator<std::_List_node<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>,void*___ptr64>_>_>

+          (_Hash<std::_Umap_traits<winrt::hstring,winrt::com_ptr<IVirtualDesktop>,std::_Uhash_compare<winrt::hstring,std::hash<winrt::hstring>,std::equal_to<winrt::hstring>_>,std::allocator<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_>,0>_>

+           *this,_Hash<class_std::_Umap_traits<struct_winrt::hstring,struct_winrt::com_ptr<struct_IVirtualDesktop>,class_std::_Uhash_compare<struct_winrt::hstring,struct_std::hash<struct_winrt::hstring>,struct_std::equal_to<struct_winrt::hstring>_>,class_std::allocator<struct_std::pair<struct_winrt::hstring_const_,struct_winrt::com_ptr<struct_IVirtualDesktop>_>_>,0>_>

+                 *param_1,

+          allocator<std::_List_node<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>,void*___ptr64>_>

+          *param_2)

+

+{

+  undefined8 uVar1;

+  void *pvVar2;

+  __uint64 _Var3;

+  undefined8 *puVar4;

+  longlong lVar5;

+  undefined8 *puVar6;

+  ulonglong uVar7;

+  allocator<std::_List_node<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>,void*___ptr64>_>

+  *local_res18;

+  pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_> local_28 [16];

+  

+  *(undefined4 *)this = *(undefined4 *)param_1;

+  *(undefined8 *)(this + 8) = 0;

+  *(undefined8 *)(this + 0x10) = 0;

+  local_res18 = param_2;

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

+  *(void **)pvVar2 = pvVar2;

+  *(void **)((longlong)pvVar2 + 8) = pvVar2;

+  *(void **)(this + 8) = pvVar2;

+  *(undefined8 *)(this + 0x18) = 0;

+  *(undefined8 *)(this + 0x20) = 0;

+  *(undefined8 *)(this + 0x28) = 0;

+  *(undefined8 *)(this + 0x30) = *(undefined8 *)(param_1 + 0x30);

+  *(undefined8 *)(this + 0x38) = *(undefined8 *)(param_1 + 0x38);

+  uVar1 = *(undefined8 *)(this + 8);

+  uVar7 = *(longlong *)(param_1 + 0x20) - *(longlong *)(param_1 + 0x18) >> 3;

+  local_res18 = (allocator<std::_List_node<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>,void*___ptr64>_>

+                 *)uVar1;

+  if ((ulonglong)

+      ((longlong)

+       *(_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,__int64>_>_>_>

+         **)(this + 0x20) >> 3) < uVar7) {

+    _Var3 = _Get_size_of_n<8>(uVar7);

+    puVar4 = _Allocate<16,std::_Default_allocate_traits,0>(_Var3);

+    lVar5 = *(longlong *)(this + 0x28) - (longlong)*(void **)(this + 0x18) >> 3;

+    if (lVar5 != 0) {

+      _Deallocate<16,0>(*(void **)(this + 0x18),lVar5 << 3);

+    }

+    *(undefined8 **)(this + 0x18) = puVar4;

+    puVar6 = puVar4 + uVar7;

+    *(undefined8 **)(this + 0x20) = puVar6;

+    *(undefined8 **)(this + 0x28) = puVar6;

+    for (; puVar4 != puVar6; puVar4 = puVar4 + 1) {

+      *puVar4 = uVar1;

+    }

+  }

+  else {

+    fill<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,__int64>_>_>_>*___ptr64,std::_List_unchecked_iterator<class_std::_List_val<struct_std::_List_simple_types<struct_std::pair<class_std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_const_,__int64>_>_>_>_>

+              ((_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,__int64>_>_>_>

+                *)0x0,*(_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,__int64>_>_>_>

+                        **)(this + 0x20),

+               (_List_unchecked_iterator<class_std::_List_val<struct_std::_List_simple_types<struct_std::pair<class_std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_const_,__int64>_>_>_>

+                *)&local_res18);

+  }

+  puVar4 = *(undefined8 **)(param_1 + 8);

+  for (puVar6 = (undefined8 *)*puVar4; puVar6 != puVar4; puVar6 = (undefined8 *)*puVar6) {

+    emplace<std::pair<winrt::hstring_const_,winrt::com_ptr<IVirtualDesktop>_>_const&___ptr64>

+              (this,local_28);

+  }

+  return this;

+}

+
```

## `CSnapAssistControllerBase::_IsTabletMode`  (modified)

```diff
--- CSnapAssistControllerBase::_IsTabletMode
+++ CSnapAssistControllerBase::_IsTabletMode
@@ -1,2 +1,31 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CSnapAssistControllerBase::_IsTabletMode : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

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

+   guard_dispatch_icall */

+/* protected: bool __cdecl CSnapAssistControllerBase::_IsTabletMode(void) __ptr64 */

+

+bool __thiscall CSnapAssistControllerBase::_IsTabletMode(CSnapAssistControllerBase *this)

+

+{

+  longlong *plVar1;

+  int iVar2;

+  bool bVar3;

+  void *unaff_retaddr;

+  int local_res8 [8];

+  

+  plVar1 = *(longlong **)(this + 0x80);

+  bVar3 = false;

+  if (plVar1 != (longlong *)0x0) {

+    local_res8[0] = 0;

+    iVar2 = (**(code **)(*plVar1 + 0x18))(plVar1,local_res8);

+    if (iVar2 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x4af,"pcshell\\twinui\\snapcomponent\\lib\\snapassistcontroller.cpp"

+                 ,iVar2);

+    }

+    else {

+      bVar3 = local_res8[0] == 1;

+    }

+  }

+  return bVar3;

+}

+
```

## `winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,void>::Release`  (modified)

```diff
--- winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,void>::Release
+++ winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,void>::Release
@@ -1,2 +1,23 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,void>::Release : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual unsigned int __cdecl winrt::impl::produce_base<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,void>::Release(void)

+   __ptr64 */

+

+uint __thiscall

+winrt::impl::

+produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,void>

+::Release(produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,void>

+          *this)

+

+{

+  ulong uVar1;

+  

+  uVar1 = implements<winrt::WindowsUdk::UI::Shell::implementation::SearchAppHost,winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::WindowsUdk::UI::Shell::ISearchAppHost2,winrt::WindowsUdk::UI::Shell::ISearchAppHost3,winrt::WindowsUdk::UI::Shell::ISearchAppHost4,winrt::WindowsUdk::UI::Shell::ISearchAppHost5>

+          ::Release((implements<winrt::WindowsUdk::UI::Shell::implementation::SearchAppHost,winrt::WindowsUdk::UI::Shell::SearchAppHost,winrt::WindowsUdk::UI::Shell::ISearchAppHost2,winrt::WindowsUdk::UI::Shell::ISearchAppHost3,winrt::WindowsUdk::UI::Shell::ISearchAppHost4,winrt::WindowsUdk::UI::Shell::ISearchAppHost5>

+                     *)(-(ulonglong)

+                         (this != (produce_base<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::ILaunchActivatedEventArgs,void>

+                                   *)0x0) & (ulonglong)(this + -0x30)));

+  return uVar1;

+}

+
```

## `winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser>::get_User`  (modified)

```diff
--- winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser>::get_User
+++ winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser>::get_User
@@ -1,2 +1,35 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB winrt::impl::produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser>::get_User : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual int __cdecl winrt::impl::produce<struct

+   winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,struct

+   winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser>::get_User(void *

+   __ptr64 * __ptr64) __ptr64 */

+

+int __thiscall

+winrt::impl::

+produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser>

+::get_User(produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser>

+           *this,void **param_1)

+

+{

+  void *unaff_retaddr;

+  undefined8 local_res8 [4];

+  

+  *param_1 = (void *)0x0;

+  root_implements<winrt::Windows::Internal::Shell::XamlExplorerHost::implementation::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::XamlExplorerHostChildWindow_WASDK,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK2,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK3,winrt::Windows::Internal::Shell::XamlExplorerHost::IXamlExplorerHostChildWindow_WASDK4,winrt::Windows::Foundation::IClosable,winrt::non_agile>

+  ::abi_guard::abi_guard

+            ((abi_guard *)local_res8,

+             (XamlExplorerHostChildWindow_WASDK *)

+             (-(ulonglong)

+               (this != (produce<winrt::WindowsUdk::UI::Shell::implementation::SearchAppActivatedEventArgs,winrt::Windows::ApplicationModel::Activation::IActivatedEventArgsWithUser>

+                         *)0x0) & (ulonglong)(this + -0x40)));

+  wil::details::in1diag3::Log_Hr

+            (unaff_retaddr,0xa0,

+             "pcshell\\twinui\\experiencemanagers\\lib\\searchappactivatedeventargs.cpp",-0x7fffbfff

+            );

+  local_res8[0] = 0;

+  *param_1 = (void *)0x0;

+  Windows::Internal::Shell::WindowManagementEvents::IArrangedWindowResizeStartedEventArgs::

+  ~IArrangedWindowResizeStartedEventArgs((IArrangedWindowResizeStartedEventArgs *)local_res8);

+  return 0;

+}

+
```

## `UndockedSearchAppExperienceManager::StartFullActivationTest`  (modified)

```diff
--- UndockedSearchAppExperienceManager::StartFullActivationTest
+++ UndockedSearchAppExperienceManager::StartFullActivationTest
@@ -1,150 +1,276 @@
 

-/* 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 UndockedSearchAppExperienceManager::StartFullActivationTest(enum

+   FullActivationTestSource,enum

+   Windows::Internal::Shell::Experience::CortanaAppTransitionType,bool) __ptr64 */

 

 void __thiscall

-Windows::Internal::ShellHelpers::PropertySetHelper::StartFullActivationTest

+UndockedSearchAppExperienceManager::StartFullActivationTest

           (UndockedSearchAppExperienceManager *this,FullActivationTestSource param_1,

           CortanaAppTransitionType param_2,bool param_3)

 

 {

-  char *pcVar1;

   tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-  *ptVar2;

-  undefined1 uVar3;

-  bool bVar4;

-  int iVar5;

-  long lVar6;

-  undefined8 in_RAX;

-  longlong *plVar8;

-  longlong unaff_RBP;

-  test_data_control<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

-  local_res20 [8];

-  undefined4 uStack0000000000000028;

-  undefined4 in_stack_0000002c;

-  UndockedSearchAppExperienceManager *pUStack0000000000000030;

-  CortanaAppTransitionType CStack0000000000000038;

-  undefined4 in_stack_0000003c;

-  undefined8 uStack0000000000000040;

-  UndockedSearchAppExperienceManager *pUStack0000000000000048;

-  undefined8 uStack0000000000000050;

-  undefined1 uStack0000000000000058;

-  longlong lVar7;

+  *this_00;

+  UndockedSearchAppExperienceManager UVar1;

+  hstring_header *phVar2;

+  bool bVar3;

+  longlong *plVar4;

+  com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+  *pcVar5;

+  handle_type<winrt::impl::hstring_traits> *phVar6;

+  PTP_TIMER p_Var7;

+  uint uVar8;

+  char *pcVar9;

+  void *unaff_retaddr;

+  FullActivationTestSource local_90 [2];

+  _FILETIME local_88;

+  uint local_80 [2];

+  test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  local_78 [8];

+  test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  local_70 [8];

+  _RTL_SRWLOCK local_68;

+  test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  local_60 [8];

+  _GUID local_58;

+  _GUID local_48;

   

-  uVar3 = in((short)param_1);

-  lVar7 = CONCAT71((int7)((ulonglong)in_RAX >> 8),uVar3);

-  *this = *this;

-  pcVar1 = (char *)(lVar7 + -0x75);

-  *pcVar1 = *pcVar1 + (char)this;

-  *(ulonglong *)(unaff_RBP + 0xb0) =

-       (ulonglong)((int)lVar7 + 0x68ef9c) ^ (ulonglong)&stack0x00000000;

-  uStack0000000000000028 = *(undefined4 *)(this + 0x40);

-  uStack0000000000000040 = CONCAT44(in_stack_0000002c,uStack0000000000000028);

-  uStack0000000000000050 = CONCAT44(in_stack_0000003c,param_2);

-  uStack0000000000000058 = 1;

-  ptVar2 = (tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-            *)(this + 0x3e0);

-  pUStack0000000000000030 = this;

-  CStack0000000000000038 = param_2;

-  pUStack0000000000000048 = this;

-  bVar4 = tip2::

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_50573867>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_50573867> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    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>_>

+    ::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>_>

+             *)(this + 0x340),(_TP_TIMER *)0x0);

+  }

+  this_00 = (tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

+             *)(this + 0x348);

+  bVar3 = tip2::

           tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-          ::operator_bool(ptVar2);

-  if (bVar4) {

-    plVar8 = (longlong *)

+          ::operator_bool(this_00);

+  if (bVar3) {

+    plVar4 = (longlong *)

              tip2::

-             tip_test<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

-             ::operator->((tip_test<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

-                           *)ptVar2);

-    *(undefined1 *)(*plVar8 + 0x14f) = 1;

-    tip2::

-    test_data_control<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

+             tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+             ::operator->((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                           *)this_00);

+    *(FullActivationTestSource *)(*plVar4 + 0x114) = param_1;

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

     ::

-    ~test_data_control<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

-              (local_res20);

-  }

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

-    if (this[0x43e] != (UndockedSearchAppExperienceManager)0x0) {

-      lVar6 = XamlLauncherState::ShowStartView((XamlLauncherState *)(this + 0x18),1,4);

-      if (lVar6 < 0) {

-        wil::details::in1diag3::_Log_Hr

-                  (*(void **)(unaff_RBP + 0xd8),0x8fd,

-                   "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",lVar6);

-      }

-      this[0x43e] = (UndockedSearchAppExperienceManager)0x0;

-    }

-    goto LAB_0;

-  }

-  bVar4 = tip2::

-          tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-          ::operator_bool(ptVar2);

-  if (bVar4) {

-    plVar8 = (longlong *)

-             tip2::

-             tip_test<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

-             ::operator->((tip_test<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

-                           *)ptVar2);

-    *(CortanaAppTransitionType *)(*plVar8 + 0x154) = param_2;

-    tip2::

-    test_data_control<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

-    ::

-    ~test_data_control<tip2::details::merged_data<_tip_StartMenuInvokeTest,_tip_StartMenuInvokeTest>_>

-              (local_res20);

-  }

-  ptVar2 = (tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-            *)(this + 1000);

-  bVar4 = tip2::

-          tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-          ::operator_bool(ptVar2);

-  if (bVar4) {

-    plVar8 = (longlong *)

-             tip2::

-             tip_test<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-             ::operator->(ptVar2);

-    *(CortanaAppTransitionType *)(*plVar8 + 0x128) = param_2;

-    tip2::

-    test_data_control<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-    ::

-    ~test_data_control<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-              ((test_data_control<tip2::details::merged_data<_tip_StartMenuAutomaticInvokeDuringLogonTest,_tip_StartMenuAutomaticInvokeDuringLogonTest>_>

-                *)local_res20);

+    ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+              ((test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                *)local_80);

     tip2::

     tip_test<tip2::details::merged_data<_tip_InboxedAppInstallerTest,_tip_InboxedAppInstallerTest>_>

     ::complete((tip_test<tip2::details::merged_data<_tip_InboxedAppInstallerTest,_tip_InboxedAppInstallerTest>_>

-                *)ptVar2);

-  }

-  SetExistingEvent((ushort *)L"ShellStartReadyEvent");

-  iVar5 = *(int *)(this + 0x40);

-  if (((iVar5 == 1) || (iVar5 == 3)) || (iVar5 == 4)) {

+                *)this_00);

+  }

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_53852258>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_53852258> *)

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

+                      ::__l2::impl);

+  if (!bVar3) {

+    Microsoft::WRL::Wrappers::SRWLock::LockExclusive((_RTL_SRWLOCK *)&local_88);

+    wil::

+    com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+    ::reset((com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+             *)this_00);

+    if (param_1 == 2) {

+      pcVar9 = "SearchFullActivationTestShowWithStart";

+      uVar8 = 0x214efd2;

+LAB_0:

+      tip2::

+      tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+      ::config_set_identity

+                ((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                  *)this_00,uVar8,pcVar9);

+    }

+    else if (param_1 == 4) {

+      pcVar9 = "SearchFullActivationTestPrelaunch";

+      uVar8 = 0x2809b4e;

+      goto LAB_0;

+    }

+    tip2::

+    tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::start((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+             *)this_00,&local_48);

+    CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_88);

+    tip2::

+    tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::test_id((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+               *)this_00,&local_58);

+    phVar6 = (handle_type<winrt::impl::hstring_traits> *)winrt::to_hstring((guid *)&local_68);

+    if ((handle_type<winrt::impl::hstring_traits> *)(this + 0x360) != phVar6) {

+      phVar2 = *(hstring_header **)phVar6;

+      *(undefined8 *)phVar6 = 0;

+      winrt::handle_type<winrt::impl::hstring_traits>::attach

+                ((handle_type<winrt::impl::hstring_traits> *)(this + 0x360),phVar2);

+    }

+    winrt::hstring::~hstring((hstring *)&local_68);

+    plVar4 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+             ::operator->((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                           *)this_00);

+    *(FullActivationTestSource *)(*plVar4 + 0x110) = param_1;

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+              (local_70);

+    plVar4 = (longlong *)

+             tip2::

+             tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+             ::operator->((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                           *)this_00);

+    *(CortanaAppTransitionType *)(*plVar4 + 0x148) = param_2;

+    tip2::

+    test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::

+    ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+              (local_78);

+    goto LAB_1;

+  }

+  local_90[0] = 0;

+  local_90[1] = 0;

+  if (param_1 == 2) {

+    pcVar9 = "SearchFullActivationTestShowWithStart";

+    uVar8 = 0x214efd2;

+LAB_2:

+    tip2::

+    tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+    ::config_set_identity

+              ((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                *)local_90,uVar8,pcVar9);

+  }

+  else if (param_1 == 4) {

+    pcVar9 = "SearchFullActivationTestPrelaunch";

+    uVar8 = 0x2809b4e;

+    goto LAB_2;

+  }

+  plVar4 = (longlong *)

+           tip2::

+           tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+           ::operator->((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                         *)local_90);

+  *(FullActivationTestSource *)(*plVar4 + 0x110) = param_1;

+  tip2::

+  test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+            (local_60);

+  plVar4 = (longlong *)

+           tip2::

+           tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+           ::operator->((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                         *)local_90);

+  *(CortanaAppTransitionType *)(*plVar4 + 0x148) = param_2;

+  tip2::

+  test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+            (local_78);

+  UVar1 = this[0x3a3];

+  plVar4 = (longlong *)

+           tip2::

+           tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+           ::operator->((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                         *)local_90);

+  *(UndockedSearchAppExperienceManager *)(*plVar4 + 0x154) = UVar1;

+  tip2::

+  test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::

+  ~test_data_control<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+            (local_70);

+  Microsoft::WRL::Wrappers::SRWLock::LockExclusive(&local_68);

+  wil::

+  com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+  ::reset((com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+           *)this_00);

+  pcVar5 = tip2::

+           tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+           ::ensure_data((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+                          *)local_90);

+  wil::

+  com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+  ::operator=((com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+               *)this_00,

+              (com_ptr_t<class_tip2::details::merged_data<struct__tip_SearchFullActivationTest,struct__tip_SearchFullActivationTest>,struct_wil::err_returncode_policy>

+               *)pcVar5);

+  tip2::

+  tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::start((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+           *)this_00,&local_58);

+  CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_68);

+  tip2::

+  tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+  ::test_id((tip_test<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>_>

+             *)this_00,&local_48);

+  phVar6 = (handle_type<winrt::impl::hstring_traits> *)winrt::to_hstring((guid *)&local_88);

+  if ((handle_type<winrt::impl::hstring_traits> *)(this + 0x360) != phVar6) {

+    phVar2 = *(hstring_header **)phVar6;

+    *(undefined8 *)phVar6 = 0;

+    winrt::handle_type<winrt::impl::hstring_traits>::attach

+              ((handle_type<winrt::impl::hstring_traits> *)(this + 0x360),phVar2);

+  }

+  winrt::hstring::~hstring((hstring *)&local_88);

+  wil::

+  com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+            ((com_ptr_t<tip2::details::merged_data<_tip_SearchFullActivationTest,_tip_SearchFullActivationTest>,wil::err_returncode_policy>

+              *)local_90);

 LAB_1:

-    *(undefined4 *)(this + 0x40) = 0;

-    iVar5 = (**(code **)(**(longlong **)(this + 0x58) + 0x60))();

-    if (iVar5 < 0) {

-      wil::details::in1diag3::_Log_Hr

-                (*(void **)(unaff_RBP + 0xd8),0x8d5,

-                 "pcshell\\twinui\\xamllauncher\\lib\\xamllauncherstate.cpp",iVar5);

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_50573867>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_50573867> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    LOCK();

+    *(short *)(this + 0x358) = *(short *)(this + 0x358) + 1;

+    UNLOCK();

+    local_88 = (_FILETIME)winrt::hstring::c_str((hstring *)(this + 0x360));

+    local_80[0] = (uint)*(ushort *)(this + 0x358);

+    local_90[0] = param_1;

+    SearchAppExperienceManagerTelemetry::

+    UndockedSearchAppExperienceManager_FullActivationGenerationAssigned<unsigned_int,unsigned_int,unsigned_short_const*___ptr64>

+              (local_90,local_80,(ushort **)&local_88);

+  }

+  if (param_3) {

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_50573867>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_50573867> *)

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

+                        ::__l2::impl);

+    if (!bVar3) {

+      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>_>

+      ::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>_>

+               *)(this + 0x340),(_TP_TIMER *)0x0);

     }

   }

   else {

-    if (iVar5 != 0xf) {

-      if (((iVar5 != 0x12) && (iVar5 != 0x14)) && (iVar5 != 0x15)) goto LAB_0;

-      goto LAB_1;

-    }

-    *(undefined4 *)(this + 0x40) = 0;

-  }

-  CommonStartTelemetry::LauncherInvokeActivity::TransferToCurrentThread

-            ((LauncherInvokeActivity *)(this + 0x138));

-  XamlLauncherState::CompleteStartShowTelemetry

-            ((XamlLauncherState *)this,param_2,(LauncherInvokeActivity *)&stack0x00000060);

-  CommonStartTelemetry::LauncherInvokeActivity::~LauncherInvokeActivity

-            ((LauncherInvokeActivity *)&stack0x00000060);

-LAB_0:

-  uStack0000000000000058 = 0;

-  StartWindowTelemetry::

-  OnStartLaunchResult<XamlLauncherState::InternalState_const&___ptr64,XamlLauncherState::InternalState&___ptr64,long_const&___ptr64>

-            ((InternalState *)&stack0x00000040,(InternalState *)(this + 0x40),

-             (long *)&stack0x00000050);

+    local_88.dwLowDateTime = 0xfd050f80;

+    local_88.dwHighDateTime = 0xffffffff;

+    p_Var7 = CreateThreadpoolTimer

+                       (<lambda_3db9a396a532bee214538e6d30e83eb7>::<lambda_invoker_cdecl>,this,

+                        (PTP_CALLBACK_ENVIRON)0x0);

+    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>_>

+    ::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>_>

+             *)(this + 0x340),p_Var7);

+    p_Var7 = *(PTP_TIMER *)(this + 0x340);

+    if (p_Var7 == (PTP_TIMER)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_GetLastError

+                (unaff_retaddr,0x13eb,

+                 "pcshell\\twinui\\experiencemanagers\\lib\\undockedsearchappexperiencemanager.cpp")

+      ;

+    }

+    SetThreadpoolTimer(p_Var7,&local_88,0,0);

+  }

   return;

 }
```

## `CAppViewManager::DragCompleteWorker`  (modified)

```diff
--- CAppViewManager::DragCompleteWorker
+++ CAppViewManager::DragCompleteWorker
@@ -1,2 +1,183 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CAppViewManager::DragCompleteWorker : 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: long __cdecl CAppViewManager::DragCompleteWorker(struct _GUID const & __ptr64,struct

+   tagPOINT) __ptr64 */

+

+long __thiscall

+CAppViewManager::DragCompleteWorker(CAppViewManager *this,_GUID *param_1,tagPOINT param_2)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  long lVar3;

+  int iVar4;

+  undefined8 uVar5;

+  CIAMGlobals *this_00;

+  CAppViewManager *pCVar6;

+  void *unaff_retaddr;

+  int local_res8 [2];

+  IImmersiveApplicationInternal *local_res10;

+  tagPOINT local_res18;

+  longlong local_res20;

+  IApplicationView *local_58;

+  IImmersiveApplication *local_50;

+  CAutoSRWExclusiveLock local_48 [16];

+  

+  local_res10 = (IImmersiveApplicationInternal *)0x0;

+  local_res18 = param_2;

+  CIAMGlobals::AcquireExclusive((CIAMGlobals *)this);

+  local_res8[0] = 0;

+  iVar4 = (**(code **)(**(longlong **)(this + 0xb8) + 0x18))

+                    (*(longlong **)(this + 0xb8),param_1,local_res8);

+  if (iVar4 < 0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x48a,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",iVar4);

+    CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_50);

+    pCVar6 = this;

+    lVar3 = _ObliterateOperation(this,param_1);

+    if ((lVar3 < 0) && (local_res10 != (IImmersiveApplicationInternal *)0x0)) {

+      CIAMGlobals::AcquireExclusive((CIAMGlobals *)pCVar6);

+      _TransferAllWindowsToNextGlomWorker(this,local_res10,(IImmersiveApplication *)0x0,0xfffffffd);

+      (**(code **)(**(longlong **)(this + 0x78) + 0xb0))(*(longlong **)(this + 0x78),local_res10);

+      CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_res20);

+    }

+    goto LAB_0;

+  }

+  if (local_res8[0] != 0) {

+    local_res20 = 0;

+    plVar1 = *(longlong **)(this + 0xb8);

+    pcVar2 = *(code **)(*plVar1 + 0x38);

+    Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+              ((ComPtr<Windows::Internal::IComPoolTask> *)&local_res20);

+    iVar4 = (*pcVar2)(plVar1,param_1,&local_res20);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x48f,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",iVar4);

+      Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+                ((ComPtr<Windows::Internal::IComPoolTask> *)&local_res20);

+      CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_50);

+      pCVar6 = this;

+      lVar3 = _ObliterateOperation(this,param_1);

+      if ((lVar3 < 0) && (local_res10 != (IImmersiveApplicationInternal *)0x0)) {

+        CIAMGlobals::AcquireExclusive((CIAMGlobals *)pCVar6);

+        _TransferAllWindowsToNextGlomWorker

+                  (this,local_res10,(IImmersiveApplication *)0x0,0xfffffffd);

+        (**(code **)(**(longlong **)(this + 0x78) + 0xb0))(*(longlong **)(this + 0x78),local_res10);

+        CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_50);

+      }

+      goto LAB_0;

+    }

+    if ((local_res20 != 0) &&

+       (iVar4 = Microsoft::WRL::ComPtr<IImmersiveApplication>::As<IImmersiveApplicationInternal>

+                          ((ComPtr<IImmersiveApplication> *)&local_res20,&local_res10), iVar4 < 0))

+    {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x492,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",iVar4);

+      Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+                ((ComPtr<Windows::Internal::IComPoolTask> *)&local_res20);

+      CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_50);

+      pCVar6 = this;

+      lVar3 = _ObliterateOperation(this,param_1);

+      if ((lVar3 < 0) && (local_res10 != (IImmersiveApplicationInternal *)0x0)) {

+        CIAMGlobals::AcquireExclusive((CIAMGlobals *)pCVar6);

+        _TransferAllWindowsToNextGlomWorker

+                  (this,local_res10,(IImmersiveApplication *)0x0,0xfffffffd);

+        (**(code **)(**(longlong **)(this + 0x78) + 0xb0))(*(longlong **)(this + 0x78),local_res10);

+        CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_50);

+      }

+      goto LAB_0;

+    }

+    iVar4 = (**(code **)(**(longlong **)(this + 0xb8) + 0x28))

+                      (*(longlong **)(this + 0xb8),param_1,1,1);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x496,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",iVar4);

+    }

+    Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+              ((ComPtr<Windows::Internal::IComPoolTask> *)&local_res20);

+  }

+  CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock((CAutoSRWExclusiveLock *)&local_50);

+  if (local_res10 != (IImmersiveApplicationInternal *)0x0) {

+    local_50 = (IImmersiveApplication *)0x0;

+    iVar4 = Microsoft::WRL::ComPtr<IUnknown>::As<IImmersiveApplication>

+                      ((ComPtr<IUnknown> *)&local_res10,&local_50);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x49e,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",iVar4);

+      Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+                ((ComPtr<Windows::Internal::IComPoolTask> *)&local_50);

+      pCVar6 = this;

+      lVar3 = _ObliterateOperation(this,param_1);

+      if ((lVar3 < 0) && (local_res10 != (IImmersiveApplicationInternal *)0x0)) {

+        CIAMGlobals::AcquireExclusive((CIAMGlobals *)pCVar6);

+        _TransferAllWindowsToNextGlomWorker

+                  (this,local_res10,(IImmersiveApplication *)0x0,0xfffffffd);

+        (**(code **)(**(longlong **)(this + 0x78) + 0xb0))(*(longlong **)(this + 0x78),local_res10);

+        CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock(local_48);

+      }

+      goto LAB_0;

+    }

+    local_58 = (IApplicationView *)0x0;

+    Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+              ((ComPtr<Windows::Internal::IComPoolTask> *)&local_58);

+    iVar4 = ApplicationViewHelpers::GetViewForApplication

+                      (*(IUnknown **)(this + 0x78),local_50,&local_58);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x4a2,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",iVar4);

+      Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+                ((ComPtr<Windows::Internal::IComPoolTask> *)&local_58);

+      Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+                ((ComPtr<Windows::Internal::IComPoolTask> *)&local_50);

+      pCVar6 = this;

+      lVar3 = _ObliterateOperation(this,param_1);

+      if ((lVar3 < 0) && (local_res10 != (IImmersiveApplicationInternal *)0x0)) {

+        CIAMGlobals::AcquireExclusive((CIAMGlobals *)pCVar6);

+        _TransferAllWindowsToNextGlomWorker

+                  (this,local_res10,(IImmersiveApplication *)0x0,0xfffffffd);

+        (**(code **)(**(longlong **)(this + 0x78) + 0xb0))(*(longlong **)(this + 0x78),local_res10);

+        CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock(local_48);

+      }

+      goto LAB_0;

+    }

+    uVar5 = <lambda_107ada97ff1c8014cd1cbc74ca9b56fe>::<lambda_107ada97ff1c8014cd1cbc74ca9b56fe>

+                      (local_48,&local_58,&local_res18);

+    iVar4 = ShellPositionerHelpers::

+            PerformCallbackOnView<<lambda_107ada97ff1c8014cd1cbc74ca9b56fe>_>

+                      (*(undefined8 *)(this + 0x78),local_58,uVar5);

+    this_00 = (CIAMGlobals *)local_48;

+    <lambda_107ada97ff1c8014cd1cbc74ca9b56fe>::~<lambda_107ada97ff1c8014cd1cbc74ca9b56fe>(this_00);

+    if (iVar4 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x4b0,"pcshell\\twinui\\appmanager\\lib\\appviewmanager.cpp",iVar4);

+      Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+                ((ComPtr<Windows::Internal::IComPoolTask> *)&local_58);

+      Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+                ((ComPtr<Windows::Internal::IComPoolTask> *)&local_50);

+      pCVar6 = this;

+      lVar3 = _ObliterateOperation(this,param_1);

+      if ((lVar3 < 0) && (local_res10 != (IImmersiveApplicationInternal *)0x0)) {

+        CIAMGlobals::AcquireExclusive((CIAMGlobals *)pCVar6);

+        _TransferAllWindowsToNextGlomWorker

+                  (this,local_res10,(IImmersiveApplication *)0x0,0xfffffffd);

+        (**(code **)(**(longlong **)(this + 0x78) + 0xb0))(*(longlong **)(this + 0x78),local_res10);

+        CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock(local_48);

+      }

+      goto LAB_0;

+    }

+    CIAMGlobals::AcquireExclusive(this_00);

+    (**(code **)(*(longlong *)local_res10 + 0x228))(local_res10,0);

+    CAutoSRWExclusiveLock::~CAutoSRWExclusiveLock(local_48);

+    Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+              ((ComPtr<Windows::Internal::IComPoolTask> *)&local_58);

+    Microsoft::WRL::ComPtr<Windows::Internal::IComPoolTask>::InternalRelease

+              ((ComPtr<Windows::Internal::IComPoolTask> *)&local_50);

+  }

+  iVar4 = 0;

+LAB_0:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_res10);

+  return iVar4;

+}

+
```

## `_tip_SearchFullActivationTest::on_result`  (modified)

```diff
--- _tip_SearchFullActivationTest::on_result
+++ _tip_SearchFullActivationTest::on_result
@@ -1,2 +1,59 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB _tip_SearchFullActivationTest::on_result : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl _tip_SearchFullActivationTest::on_result(struct TipReportingInfo const &

+   __ptr64) __ptr64 */

+

+void __thiscall

+_tip_SearchFullActivationTest::on_result

+          (_tip_SearchFullActivationTest *this,TipReportingInfo *param_1)

+

+{

+  TipReportingInfo TVar1;

+  bool bVar2;

+  ushort *puVar3;

+  bool local_48 [8];

+  ushort *local_40;

+  TipReportingInfo local_38;

+  TipReportingInfo local_37;

+  TipReportingInfo local_36;

+  TipReportingInfo local_35;

+  TipReportingInfo local_34;

+  TipReportingInfo local_33;

+  TipReportingInfo local_32;

+  TipReportingInfo local_31;

+  guid local_30 [8];

+  

+  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61159592>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61159592> *)

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

+                      ::__l2::impl);

+  local_38 = param_1[0x1c];

+  local_37 = param_1[0x1d];

+  local_36 = param_1[0x1e];

+  local_35 = param_1[0x1f];

+  local_34 = param_1[0x20];

+  local_33 = param_1[0x21];

+  local_32 = param_1[0x22];

+  local_31 = param_1[0x23];

+  local_40 = *(ushort **)(param_1 + 0x14);

+  if (bVar2) {

+    winrt::to_hstring(local_30);

+    puVar3 = winrt::hstring::c_str((hstring *)local_30);

+    UndockedSearchExperienceManagerTIPTelemetry::SearchActivationTestResult

+              ((uchar)param_1[0x28],*(ushort *)(param_1 + 0x2a),*(uint *)(param_1 + 100),puVar3,

+               (uchar)this[0x10],*(int *)(this + 0x4c),(bool)this[0x54],(bool)this[0x25],

+               (bool)this[0x55],(bool)this[0x56],(bool)this[0x57]);

+  }

+  else {

+    TVar1 = param_1[0x28];

+    winrt::to_hstring(local_30);

+    local_48[0] = (byte)((char)TVar1 - 1U) < 2;

+    local_40 = winrt::hstring::c_str((hstring *)local_30);

+    UndockedSearchExperienceManagerTIPTelemetry::

+    UndockedSearchExperienceManager_ShowResult<bool&___ptr64,unsigned_short_const*___ptr64,FullActivationTestSource&___ptr64,unsigned_int_const&___ptr64,unsigned_short_const&___ptr64>

+              (local_48,&local_40,(FullActivationTestSource *)(this + 0x10),(uint *)(param_1 + 100),

+               (ushort *)(param_1 + 0x2a));

+  }

+  winrt::hstring::~hstring((hstring *)local_30);

+  return;

+}

+
```

## `TabletModePositioner::RuntimeClassInitialize`  (modified)

```diff
--- TabletModePositioner::RuntimeClassInitialize
+++ TabletModePositioner::RuntimeClassInitialize
@@ -1,82 +1,88 @@
 

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

+/* public: long __cdecl TabletModePositioner::RuntimeClassInitialize(void) __ptr64 */

 

-long __thiscall VirtualDesktopController::RuntimeClassInitialize(TabletModePositioner *this)

+long __thiscall TabletModePositioner::RuntimeClassInitialize(TabletModePositioner *this)

 

 {

-  undefined1 uVar1;

-  GUID GVar2;

-  GUID GVar3;

-  PrivilegedOperationsService *pPVar4;

-  int iVar5;

-  PrivilegedOperationsServiceBase<CPrivilegedDesktopOperations,CPrivilegedPresentationOperations,CPrivilegedNotificationOperations,CPrivilegedArrangementOperations,CPrivilegedForegroundOperations,CPrivilegedTabletModeOperations,CPrivilegedSizeConstraintsOperations,PrivilegedWindowOwnershipOperations,PrivilegedHotkeyOperations,PrivilegedWindowingOperations>

-  *this_00;

-  IPrivilegedOperationsConsumer *in_RDX;

-  longlong unaff_RBP;

-  undefined1 *unaff_RDI;

-  _GUID *p_Var6;

-  bool bVar7;

-  undefined1 auStackY_c0 [32];

-  __uint64 *in_stack_ffffffffffffff60;

-  __uint64 *in_stack_ffffffffffffff68;

+  _GUID *this_00;

+  bool bVar1;

+  long lVar2;

+  _GUID *p_Var3;

+  _GUID *p_Var4;

+  uint uVar5;

+  void *unaff_retaddr;

+  undefined1 auStack_98 [32];

+  GUID local_78;

+  undefined8 local_68;

+  undefined8 uStack_60;

+  GUID local_58;

+  undefined8 local_48;

+  undefined8 uStack_40;

+  GUID local_38;

+  undefined8 local_28;

+  undefined8 local_20;

+  ulonglong local_18;

   

-  uVar1 = in((short)in_RDX);

-  *unaff_RDI = uVar1;

-  *(ulonglong *)(unaff_RBP + 0x37) = __security_cookie ^ (ulonglong)auStackY_c0;

-  pPVar4 = PrivilegedOperationsService::s_this;

-  GVar3 = _GUID_ea149c36_d9b1_42c3_8f3e_be55df1a26d9;

-  p_Var6 = (_GUID *)(unaff_RBP + -0x39);

-  *(GUID *)(unaff_RBP + -0x39) = _GUID_02d40f3e_548a_4be9_adfe_5c0ffeae1bc8;

-  GVar2 = _GUID_3dc37409_1289_4110_adb6_a03083c66a7d;

-  *(GUID *)(unaff_RBP + -0x29) = GVar3;

-  GVar3 = _GUID_4aa32b90_a324_4d8b_aa7e_c8a4b13e5b90;

-  *(GUID *)(unaff_RBP + -0x19) = GVar2;

-  GVar2 = _GUID_c3bafd5f_1336_4556_b89f_7f96bba71aa6;

-  *(GUID *)(unaff_RBP + -9) = GVar3;

-  GVar3 = _GUID_b19132e0_037d_4a7e_ade3_b7ebde5310dd;

-  *(GUID *)(unaff_RBP + 7) = GVar2;

-  GVar2 = _GUID_cd3d4fae_01e6_473b_ad74_73f37cd2b64b;

-  *(GUID *)(unaff_RBP + 0x17) = GVar3;

-  *(GUID *)(unaff_RBP + 0x27) = GVar2;

-  do {

-    if (p_Var6 == (_GUID *)(unaff_RBP + 0x37)) {

-                    /* WARNING: Read-only address (ram,0x0001807849c0) is written */

-                    /* WARNING: Read-only address (ram,0x0001807849d0) is written */

-                    /* WARNING: Read-only address (ram,0x0001807849e0) is written */

-                    /* WARNING: Read-only address (ram,0x00018078b800) is written */

-                    /* WARNING: Read-only address (ram,0x00018078fcd8) is written */

-                    /* WARNING: Read-only address (ram,0x000180791be8) is written */

-                    /* WARNING: Read-only address (ram,0x000180792418) is written */

-      return 0;

+  local_18 = __security_cookie ^ (ulonglong)auStack_98;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                      ::__l2::impl);

+  if (bVar1) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_FailFast_Unexpected

+              (unaff_retaddr,0x14c,"pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp");

+  }

+  this_00 = (_GUID *)(this + 0x100);

+  p_Var3 = this_00;

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)this_00);

+  lVar2 = AppLayoutCache_CreateInstance(p_Var3,(void **)this_00);

+  if (lVar2 < 0) {

+    uVar5 = 0x14e;

+  }

+  else {

+    lVar2 = IUnknown_SetSite(*(IUnknown **)this_00,(IUnknown *)this);

+    if (lVar2 < 0) {

+      uVar5 = 0x14f;

     }

-    this_00 = (PrivilegedOperationsServiceBase<CPrivilegedDesktopOperations,CPrivilegedPresentationOperations,CPrivilegedNotificationOperations,CPrivilegedArrangementOperations,CPrivilegedForegroundOperations,CPrivilegedTabletModeOperations,CPrivilegedSizeConstraintsOperations,PrivilegedWindowOwnershipOperations,PrivilegedHotkeyOperations,PrivilegedWindowingOperations>

-               *)(pPVar4 + 0xa8);

-    iVar5 = PrivilegedOperationsServiceBase<CPrivilegedDesktopOperations,CPrivilegedPresentationOperations,CPrivilegedNotificationOperations,CPrivilegedArrangementOperations,CPrivilegedForegroundOperations,CPrivilegedTabletModeOperations,CPrivilegedSizeConstraintsOperations,PrivilegedWindowOwnershipOperations,PrivilegedHotkeyOperations,PrivilegedWindowingOperations>

-            ::PublishPrivilegedOperations(this_00,in_RDX,p_Var6);

-    bVar7 = CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0;

-    *(int *)(unaff_RBP + -0x49) = iVar5;

-    if (bVar7) {

-      CCriticalFailureHandler::GetFakeFailure

-                ((CCriticalFailureHandler *)this_00,(long *)(unaff_RBP + -0x49));

-      iVar5 = *(int *)(unaff_RBP + -0x49);

-      CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

-    }

-    if (iVar5 < 0) {

-      if ((iVar5 != -0x7ff8fff2) && (iVar5 != -0x7fd80001)) {

-        CCriticalFailureHandler::HandleFailure

-                  ((CCriticalFailureHandler *)this_00,(long *)(unaff_RBP + -0x49),

-                   (ushort *)L"pcshell\\twinui\\privilegedoperations\\lib\\privilegedoperations.cpp"

-                   ,0x349,in_stack_ffffffffffffff60,in_stack_ffffffffffffff68);

-        iVar5 = *(int *)(unaff_RBP + -0x49);

+    else {

+      p_Var3 = (_GUID *)(this + 0x130);

+      p_Var4 = p_Var3;

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)p_Var3);

+      lVar2 = ScreenManager_CreateInstance(p_Var4,(void **)p_Var3);

+      if (lVar2 < 0) {

+        uVar5 = 0x150;

       }

-      if (iVar5 < 0) {

-        wil::details::in1diag3::Return_Hr

-                  (*(void **)(unaff_RBP + 0x5f),0x349,

-                   "pcshell\\twinui\\privilegedoperations\\lib\\privilegedoperations.cpp",iVar5);

-        return iVar5;

+      else {

+        local_28._0_4_ = this_00->Data1;

+        local_28._4_2_ = this_00->Data2;

+        local_28._6_2_ = this_00->Data3;

+        local_58 = _GUID_3f48d9d3_200d_4446_bb9d_dae2a43781a2;

+        local_20 = 0;

+        local_78 = _GUID_975d55f5_ce62_42c0_868a_eda817f3871e;

+        local_38 = _GUID_e511e73c_cad4_40aa_bf1a_b9938ac75ff0;

+        local_68 = 0;

+        uStack_60 = 0;

+        local_48 = 0;

+        uStack_40 = 0;

+        lVar2 = CImmersiveShellComponent::RegisterServiceInformation

+                          ((CImmersiveShellComponent *)(this + 0x18),(ISC_SERVICE *)&local_78,3);

+        if (-1 < lVar2) {

+          return lVar2;

+        }

+        uVar5 = 0x158;

       }

     }

-    p_Var6 = p_Var6 + 1;

-  } while( true );

+  }

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,uVar5,"pcshell\\twinui\\tabletmode\\lib\\tabletmodepositioner.cpp",lVar2)

+  ;

+                    /* WARNING: Read-only address (ram,0x00018078aff0) is written */

+                    /* WARNING: Read-only address (ram,0x00018078b9c8) is written */

+                    /* WARNING: Read-only address (ram,0x000180794a68) is written */

+  return lVar2;

 }
```

## `CVirtualDesktopComponent::SubscribeToServices`  (modified)

```diff
--- CVirtualDesktopComponent::SubscribeToServices
+++ CVirtualDesktopComponent::SubscribeToServices
@@ -1,2 +1,966 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB CVirtualDesktopComponent::SubscribeToServices : 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 CVirtualDesktopComponent::SubscribeToServices(struct

+   IServiceProvider * __ptr64) __ptr64 */

+

+long __thiscall

+CVirtualDesktopComponent::SubscribeToServices

+          (CVirtualDesktopComponent *this,IServiceProvider *param_1)

+

+{

+  _GUID *p_Var1;

+  CVirtualDesktopComponent *pCVar2;

+  code *pcVar3;

+  longlong *plVar4;

+  bool bVar5;

+  int iVar6;

+  uint uVar7;

+  long lVar8;

+  void **ppvVar9;

+  IServiceProvider *pIVar10;

+  IVirtualDesktopManagerPrivate *pIVar11;

+  CCriticalFailureHandler *pCVar12;

+  IVirtualDesktopTabletModePolicy *this_00;

+  uint uVar13;

+  ReportingKind RVar14;

+  wchar_t *pwVar15;

+  GUID *pGVar16;

+  char *pcVar17;

+  _GUID *p_Var18;

+  IVirtualDesktopWindowMoveManager *pIVar19;

+  longlong **pplVar20;

+  wchar_t *pwVar21;

+  long lVar22;

+  void *unaff_retaddr;

+  longlong *local_res10;

+  undefined4 local_res18 [2];

+  CCriticalFailureHandler *local_res20;

+  __uint64 *in_stack_ffffffffffffff18;

+  IVirtualDesktopPinnedAppsPrivate *pIVar23;

+  undefined4 uVar25;

+  CVirtualDesktopComponent *pCVar24;

+  CVirtualDesktopComponent *in_stack_ffffffffffffff20;

+  IVirtualDesktopLock *pIVar26;

+  __uint64 *p_Var27;

+  _GUID *in_stack_ffffffffffffff28;

+  CCriticalFailureHandler *local_c8;

+  CVirtualDesktopComponent *local_c0;

+  CVirtualDesktopComponent *local_b8;

+  undefined8 local_b0;

+  longlong *local_a8;

+  _GUID local_a0;

+  SyncLockExclusive local_90 [8];

+  _GUID *local_88;

+  undefined8 local_80;

+  undefined8 local_78;

+  undefined8 local_70;

+  longlong *local_68;

+  __uint64 *local_60;

+  undefined8 local_58;

+  __uint64 local_50 [3];

+  

+  lVar22 = 0;

+  local_88 = (_GUID *)0x0;

+  pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+  ppvVar9 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IApplicationViewArrangePosition>_>(&local_88)

+  ;

+  pIVar10 = param_1;

+  iVar6 = (*pcVar3)(param_1,&_GUID_1841c6d7_4f9d_42c0_af41_8747538f10e5,

+                    &_GUID_1841c6d7_4f9d_42c0_af41_8747538f10e5,ppvVar9);

+  local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+  if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+    CCriticalFailureHandler::GetFakeFailure((CCriticalFailureHandler *)pIVar10,(long *)&local_res10)

+    ;

+    CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+    iVar6 = (int)local_res10;

+  }

+  if (iVar6 < 0) {

+    if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+      CCriticalFailureHandler::HandleFailure

+                ((CCriticalFailureHandler *)pIVar10,(long *)&local_res10,

+                 (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                 0xe7,in_stack_ffffffffffffff18,(__uint64 *)in_stack_ffffffffffffff20);

+      iVar6 = (int)local_res10;

+    }

+    if (iVar6 < 0) {

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0xe7,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",iVar6);

+      lVar22 = iVar6;

+      goto LAB_0;

+    }

+  }

+  local_c8 = (CCriticalFailureHandler *)0x0;

+  pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

+  pIVar10 = param_1;

+  iVar6 = (*pcVar3)(param_1,&_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,

+                    &_GUID_af6eec2f_c097_4f4a_b536_3cb918550cb3,&local_c8);

+  local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+  if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+    CCriticalFailureHandler::GetFakeFailure((CCriticalFailureHandler *)pIVar10,(long *)&local_res10)

+    ;

+    CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+    iVar6 = (int)local_res10;

+  }

+  if (iVar6 < 0) {

+    if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+      CCriticalFailureHandler::HandleFailure

+                ((CCriticalFailureHandler *)pIVar10,(long *)&local_res10,

+                 (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                 0xeb,in_stack_ffffffffffffff18,(__uint64 *)in_stack_ffffffffffffff20);

+      iVar6 = (int)local_res10;

+    }

+    if (-1 < iVar6) goto LAB_1;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xeb,

+               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",iVar6);

+    lVar22 = iVar6;

+  }

+  else {

+LAB_1:

+    local_res20 = (CCriticalFailureHandler *)0x0;

+    bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

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

+                        ::__l2::impl);

+    if (bVar5) {

+LAB_2:

+      pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+      p_Var1 = (_GUID *)(this + 0xe0);

+      p_Var1->Data1 = 0;

+      p_Var1->Data2 = 0;

+      p_Var1->Data3 = 0;

+      if (*(longlong **)p_Var1 != (longlong *)0x0) {

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

+      }

+      pIVar10 = param_1;

+      p_Var18 = p_Var1;

+      iVar6 = (*pcVar3)(param_1,&SID_MultitaskingViewVisibilityService,

+                        &_GUID_ac11cda3_1601_4ad7_a40e_fe2ced187307);

+      local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+      if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+        CCriticalFailureHandler::GetFakeFailure

+                  ((CCriticalFailureHandler *)pIVar10,(long *)&local_res10);

+        CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+        iVar6 = (int)local_res10;

+      }

+      if (iVar6 < 0) {

+        if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+          p_Var18 = (_GUID *)0xf5;

+          CCriticalFailureHandler::HandleFailure

+                    ((CCriticalFailureHandler *)pIVar10,(long *)&local_res10,

+                     (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                     ,0xf5,in_stack_ffffffffffffff18,(__uint64 *)in_stack_ffffffffffffff20);

+          iVar6 = (int)local_res10;

+        }

+        if (iVar6 < 0) {

+          uVar7 = 0xf5;

+          lVar22 = iVar6;

+          goto LAB_3;

+        }

+      }

+      pCVar2 = this + 0x88;

+      plVar4 = *(longlong **)pCVar2;

+      *(void **)pCVar2 = (void *)0x0;

+      if (plVar4 != (longlong *)0x0) {

+        (**(code **)(*plVar4 + 0x10))();

+      }

+      pIVar11 = *(IVirtualDesktopManagerPrivate **)(this + 0x78);

+      pCVar24 = pCVar2;

+      iVar6 = VirtualDesktopSwitchAnimator_CreateInstance

+                        (pIVar11,*(IVirtualDesktopAnimationSyncNotificationServicePrivate **)

+                                  (this + 0x80),*(IMultitaskingViewVisibilityService **)p_Var1,

+                         p_Var18,(void **)pCVar2);

+      local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+      if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+        CCriticalFailureHandler::GetFakeFailure

+                  ((CCriticalFailureHandler *)pIVar11,(long *)&local_res10);

+        CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+        iVar6 = (int)local_res10;

+      }

+      if (iVar6 < 0) {

+        if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+          CCriticalFailureHandler::HandleFailure

+                    ((CCriticalFailureHandler *)pIVar11,(long *)&local_res10,

+                     (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                     ,0xfb,(__uint64 *)pCVar24,(__uint64 *)in_stack_ffffffffffffff20);

+          iVar6 = (int)local_res10;

+        }

+        if (iVar6 < 0) {

+          uVar7 = 0xfb;

+          lVar22 = iVar6;

+          goto LAB_3;

+        }

+      }

+      local_c0 = (CVirtualDesktopComponent *)0x0;

+      pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+      wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset

+                ((com_ptr_t<IInputHostLayout,wil::err_exception_policy> *)&local_c0);

+      iVar6 = (*pcVar3)(param_1,&SID_IImmersiveMonitorService,

+                        &_GUID_4d4c1e64_e410_4faa_bafa_59ca069bfec2,&local_c0);

+      if (iVar6 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0xfe,

+                   "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",iVar6);

+        lVar22 = iVar6;

+      }

+      else {

+        local_b8 = (CVirtualDesktopComponent *)0x0;

+        pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_b8);

+        iVar6 = (*pcVar3)(param_1,&DAT_4,&_GUID_4214f6fa_eb36_4e2f_9ca2_23fdc1832df7,

+                          &local_b8);

+        if (iVar6 < 0) {

+          wil::details::in1diag3::Return_Hr

+                    (unaff_retaddr,0x100,

+                     "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",iVar6);

+          lVar22 = iVar6;

+        }

+        else {

+          local_b0 = 0;

+          pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_b0);

+          iVar6 = (*pcVar3)(param_1,&DAT_5,&_GUID_c08ee93c_e5a6_46f2_bdac_416ef1731a41,

+                            &local_b0);

+          if (iVar6 < 0) {

+            wil::details::in1diag3::Return_Hr

+                      (unaff_retaddr,0x102,

+                       "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",iVar6);

+            lVar22 = iVar6;

+          }

+          else {

+            local_a8 = (longlong *)0x0;

+            iVar6 = (**(code **)**(undefined8 **)(this + 0x90))

+                              (*(undefined8 **)(this + 0x90),

+                               &_GUID_d9644dc1_ee57_4f37_8bf2_58f489243230,&local_a8);

+            if (iVar6 < 0) {

+              wil::details::in1diag3::Return_Hr

+                        (unaff_retaddr,0x104,

+                         "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",iVar6)

+              ;

+              lVar22 = iVar6;

+            }

+            else {

+              local_a0.Data4[0] = '\0';

+              local_a0.Data4[1] = '\0';

+              local_a0.Data4[2] = '\0';

+              local_a0.Data4[3] = '\0';

+              local_a0.Data4[4] = '\0';

+              local_a0.Data4[5] = '\0';

+              local_a0.Data4[6] = '\0';

+              local_a0.Data4[7] = '\0';

+              iVar6 = (**(code **)**(undefined8 **)pCVar2)

+                                (*(undefined8 **)pCVar2,&_GUID_bb1b0fb0_58f6_4f1a_99f2_86599b33ede8,

+                                 local_a0.Data4);

+              if (iVar6 < 0) {

+                wil::details::in1diag3::Return_Hr

+                          (unaff_retaddr,0x106,

+                           "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                           iVar6);

+                lVar22 = iVar6;

+              }

+              else {

+                local_a0.Data1 = 0;

+                local_a0.Data2 = 0;

+                local_a0.Data3 = 0;

+                if (local_a8 == (longlong *)0x0) {

+LAB_6:

+                  (**(code **)(**(longlong **)(this + 0x68) + 0x20))

+                            (*(longlong **)(this + 0x68),local_90);

+                  pCVar12 = *(CCriticalFailureHandler **)(this + 0x78);

+                  iVar6 = (**(code **)(*(longlong *)pCVar12 + 0xf0))(pCVar12,local_88);

+                  local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                  if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                    CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                    CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                    iVar6 = (int)local_res10;

+                  }

+                  if (iVar6 < 0) {

+                    if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                      CCriticalFailureHandler::HandleFailure

+                                (pCVar12,(long *)&local_res10,

+                                 (ushort *)

+                                 L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                 ,0x112,(__uint64 *)pCVar24,(__uint64 *)in_stack_ffffffffffffff20);

+                      iVar6 = (int)local_res10;

+                    }

+                    if (-1 < iVar6) goto LAB_7;

+                    uVar7 = 0x112;

+                    lVar22 = iVar6;

+LAB_8:

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar7,

+                               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                               lVar22);

+                  }

+                  else {

+LAB_7:

+                    pCVar12 = *(CCriticalFailureHandler **)(this + 0x70);

+                    iVar6 = (**(code **)(*(longlong *)pCVar12 + 0x30))(pCVar12,local_88);

+                    local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                    if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                      CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                      CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                      iVar6 = (int)local_res10;

+                    }

+                    if (iVar6 < 0) {

+                      if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                        CCriticalFailureHandler::HandleFailure

+                                  (pCVar12,(long *)&local_res10,

+                                   (ushort *)

+                                   L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                   ,0x113,(__uint64 *)pCVar24,(__uint64 *)in_stack_ffffffffffffff20)

+                        ;

+                        iVar6 = (int)local_res10;

+                      }

+                      if (iVar6 < 0) {

+                        uVar7 = 0x113;

+                        lVar22 = iVar6;

+                        goto LAB_8;

+                      }

+                    }

+                    pCVar12 = *(CCriticalFailureHandler **)(this + 0xa0);

+                    iVar6 = (**(code **)(*(longlong *)pCVar12 + 0x18))(pCVar12,local_88);

+                    local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                    if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                      CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                      CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                      iVar6 = (int)local_res10;

+                    }

+                    if (iVar6 < 0) {

+                      if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                        CCriticalFailureHandler::HandleFailure

+                                  (pCVar12,(long *)&local_res10,

+                                   (ushort *)

+                                   L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                   ,0x114,(__uint64 *)pCVar24,(__uint64 *)in_stack_ffffffffffffff20)

+                        ;

+                        iVar6 = (int)local_res10;

+                      }

+                      if (iVar6 < 0) {

+                        uVar7 = 0x114;

+                        lVar22 = iVar6;

+                        goto LAB_8;

+                      }

+                    }

+                    pCVar12 = *(CCriticalFailureHandler **)(this + 0x98);

+                    iVar6 = (**(code **)(*(longlong *)pCVar12 + 0x18))(pCVar12,local_88);

+                    local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                    if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                      CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                      CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                      iVar6 = (int)local_res10;

+                    }

+                    if (iVar6 < 0) {

+                      if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                        CCriticalFailureHandler::HandleFailure

+                                  (pCVar12,(long *)&local_res10,

+                                   (ushort *)

+                                   L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                   ,0x115,(__uint64 *)pCVar24,(__uint64 *)in_stack_ffffffffffffff20)

+                        ;

+                        iVar6 = (int)local_res10;

+                      }

+                      if (iVar6 < 0) {

+                        uVar7 = 0x115;

+                        lVar22 = iVar6;

+                        goto LAB_8;

+                      }

+                    }

+                    pCVar12 = *(CCriticalFailureHandler **)(this + 0xb0);

+                    if (pCVar12 != (CCriticalFailureHandler *)0x0) {

+                      iVar6 = (**(code **)(*(longlong *)pCVar12 + 0x48))(pCVar12,local_88);

+                      local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                      if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                        CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                        CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                        iVar6 = (int)local_res10;

+                      }

+                      if (iVar6 < 0) {

+                        if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                          CCriticalFailureHandler::HandleFailure

+                                    (pCVar12,(long *)&local_res10,

+                                     (ushort *)

+                                     L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                     ,0x119,(__uint64 *)pCVar24,

+                                     (__uint64 *)in_stack_ffffffffffffff20);

+                          iVar6 = (int)local_res10;

+                        }

+                        if (iVar6 < 0) {

+                          uVar7 = 0x119;

+                          lVar22 = iVar6;

+                          goto LAB_8;

+                        }

+                      }

+                    }

+                    local_80 = 0;

+                    ppvVar9 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IApplicationViewArrangePosition>_>

+                                        (&local_80);

+                    pIVar26 = *(IVirtualDesktopLock **)(this + 0x68);

+                    pIVar23 = *(IVirtualDesktopPinnedAppsPrivate **)(this + 0xb0);

+                    pIVar19 = *(IVirtualDesktopWindowMoveManager **)(this + 0x98);

+                    pIVar11 = *(IVirtualDesktopManagerPrivate **)(this + 0x78);

+                    iVar6 = CVirtualDesktopApplicationViewEventListener_CreateInstance

+                                      (pIVar11,*(IVirtualDesktopSwitchAnimator **)pCVar2,

+                                       *(IVirtualDesktopForegroundPolicy **)(this + 0x70),pIVar19,

+                                       pIVar23,pIVar26,in_stack_ffffffffffffff28,ppvVar9);

+                    local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                    if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                      CCriticalFailureHandler::GetFakeFailure

+                                ((CCriticalFailureHandler *)pIVar11,(long *)&local_res10);

+                      CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                      iVar6 = (int)local_res10;

+                    }

+                    if (-1 < iVar6) {

+LAB_9:

+                      pwVar15 = (wchar_t *)(this + 0xf4);

+                      pCVar12 = local_c8;

+                      iVar6 = (**(code **)(*(longlong *)local_c8 + 0x18))(local_c8,local_80);

+                      local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                      if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                        CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                        CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                        iVar6 = (int)local_res10;

+                      }

+                      if (iVar6 < 0) {

+                        if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                          pIVar19 = (IVirtualDesktopWindowMoveManager *)0x127;

+                          pwVar15 = 

+                          L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+                          CCriticalFailureHandler::HandleFailure

+                                    (pCVar12,(long *)&local_res10,

+                                     (ushort *)

+                                     L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                     ,0x127,(__uint64 *)pIVar23,(__uint64 *)pIVar26);

+                          iVar6 = (int)local_res10;

+                        }

+                        if (iVar6 < 0) {

+                          uVar7 = 0x127;

+                          goto LAB_10;

+                        }

+                      }

+                      bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::

+                              __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

+                                                  &

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

+                                                  ::__l2::impl);

+                      if (!bVar5) {

+                        local_70 = 0;

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_70);

+                        pIVar19 = (IVirtualDesktopWindowMoveManager *)&local_70;

+                        this_00 = *(IVirtualDesktopTabletModePolicy **)(this + 0xa8);

+                        iVar6 = VirtualDesktopTabletModeNotificationListener_CreateInstance

+                                          (this_00,param_1,(_GUID *)pwVar15,(void **)pIVar19);

+                        local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                        if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                          CCriticalFailureHandler::GetFakeFailure

+                                    ((CCriticalFailureHandler *)this_00,(long *)&local_res10);

+                          CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                          iVar6 = (int)local_res10;

+                        }

+                        if (iVar6 < 0) {

+                          if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                            pIVar19 = (IVirtualDesktopWindowMoveManager *)0x12f;

+                            CCriticalFailureHandler::HandleFailure

+                                      ((CCriticalFailureHandler *)this_00,(long *)&local_res10,

+                                       (ushort *)

+                                       L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                       ,0x12f,(__uint64 *)pIVar23,(__uint64 *)pIVar26);

+                            iVar6 = (int)local_res10;

+                          }

+                          if (-1 < iVar6) goto LAB_11;

+                          uVar7 = 0x12f;

+LAB_12:

+                          wil::details::in1diag3::Return_Hr

+                                    (unaff_retaddr,uVar7,

+                                     "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                     ,iVar6);

+                          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_70);

+                          lVar22 = iVar6;

+                          goto LAB_13;

+                        }

+LAB_11:

+                        pwVar15 = (wchar_t *)(this + 0xf8);

+                        pCVar12 = local_res20;

+                        iVar6 = (**(code **)(*(longlong *)local_res20 + 0x48))(local_res20,local_70)

+                        ;

+                        local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                        if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                          CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                          CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                          iVar6 = (int)local_res10;

+                        }

+                        if (iVar6 < 0) {

+                          if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                            pIVar19 = (IVirtualDesktopWindowMoveManager *)0x131;

+                            pwVar15 = 

+                            L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+                            CCriticalFailureHandler::HandleFailure

+                                      (pCVar12,(long *)&local_res10,

+                                       (ushort *)

+                                       L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                       ,0x131,(__uint64 *)pIVar23,(__uint64 *)pIVar26);

+                            iVar6 = (int)local_res10;

+                          }

+                          if (iVar6 < 0) {

+                            uVar7 = 0x131;

+                            goto LAB_12;

+                          }

+                        }

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_70);

+                      }

+                      uVar25 = (undefined4)((ulonglong)pIVar23 >> 0x20);

+                      RVar14 = (ReportingKind)pwVar15;

+                      wil::details::FeatureImpl<__WilFeatureTraits_Feature_VwUpdates>::ReportUsage

+                                ((FeatureImpl<__WilFeatureTraits_Feature_VwUpdates> *)

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

+                                  ::__l2::impl,true,RVar14,(__uint64)pIVar19);

+                      local_res10 = (longlong *)0x0;

+                      wil::details::

+                      FeatureImpl<__WilFeatureTraits_Feature_W365Switch_Engineering_Improvements_VDBugFixes>

+                      ::ReportUsage((FeatureImpl<__WilFeatureTraits_Feature_W365Switch_Engineering_Improvements_VDBugFixes>

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

+                                        ::__l2::impl,true,RVar14,(__uint64)pIVar19);

+                      plVar4 = local_res10;

+                      pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+                      local_res10 = (longlong *)0x0;

+                      if (plVar4 != (longlong *)0x0) {

+                        (**(code **)(*plVar4 + 0x10))();

+                      }

+                      pplVar20 = &local_res10;

+                      pGVar16 = &_GUID_fc62ce95_8396_401a_b74f_88df0d75e112;

+                      uVar7 = (*pcVar3)(param_1,&IID_IImmersiveWindowMessageService,

+                                        &_GUID_fc62ce95_8396_401a_b74f_88df0d75e112);

+                      if ((int)uVar7 < 0) {

+                        uVar13 = 0x13d;

+LAB_14:

+                        pplVar20 = (longlong **)(ulonglong)uVar7;

+                        pcVar17 = 

+                        "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+                        wil::details::in1diag3::_Log_Hr

+                                  (unaff_retaddr,uVar13,

+                                   "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                   ,uVar7);

+                      }

+                      else {

+                        pcVar17 = (char *)pGVar16;

+                        if (local_res10 != (longlong *)0x0) {

+                          uVar7 = (**(code **)(**(longlong **)(this + 0x78) + 0x120))();

+                          pcVar17 = (char *)pGVar16;

+                          if ((int)uVar7 < 0) {

+                            uVar13 = 0x13f;

+                            goto LAB_14;

+                          }

+                        }

+                      }

+                      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                  *)&local_res10);

+                      wil::details::FeatureImpl<__WilFeatureTraits_Feature_VDSLTest>::ReportUsage

+                                ((FeatureImpl<__WilFeatureTraits_Feature_VDSLTest> *)

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

+                                  ::__l2::impl,true,

+                                 (ReportingKind)CONCAT71((int7)((ulonglong)pcVar17 >> 8),3),

+                                 (__uint64)pplVar20);

+                      local_50[0] = 0;

+                      local_50[1] = 0;

+                      p_Var27 = local_50;

+                      pCVar24 = (CVirtualDesktopComponent *)CONCAT44(uVar25,4);

+                      pwVar21 = L"VDSoftLandingCampaignDone";

+                      pwVar15 = (wchar_t *)0x0;

+                      iVar6 = (**(code **)(**(longlong **)(this + 200) + 0x18))

+                                        (*(longlong **)(this + 200),

+                                         CONCAT71((int7)((ulonglong)p_Var27 >> 8),1));

+                      if (iVar6 == -0x7ff8fffe) {

+                        pCVar24 = this + 0xd8;

+                        plVar4 = *(longlong **)pCVar24;

+                        *(void **)pCVar24 = (void *)0x0;

+                        if (plVar4 != (longlong *)0x0) {

+                          (**(code **)(*plVar4 + 0x10))();

+                        }

+                        pwVar15 = *(wchar_t **)(this + 200);

+                        lVar8 = CVirtualDesktopSoftLandingHandler_CreateInstance

+                                          ((IApplicationViewCollection *)local_88,

+                                           *(IVirtualDesktopNotificationServicePrivate **)

+                                            (this + 0xd0),(IVirtualDesktopRegistryHelpers *)pwVar15,

+                                           (_GUID *)pwVar21,(void **)pCVar24);

+                        if (lVar8 < 0) {

+                          wil::details::in1diag3::Return_Hr

+                                    (unaff_retaddr,0x152,

+                                     "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                     ,lVar8);

+                          CCoTaskMemPtr<_ITEMIDLIST>::~CCoTaskMemPtr<_ITEMIDLIST>

+                                    ((CCoTaskMemPtr<_ITEMIDLIST> *)local_50);

+                          lVar22 = lVar8;

+                          goto LAB_13;

+                        }

+                        this[0xf0] = (CVirtualDesktopComponent)0x1;

+                      }

+                      CCoTaskMemPtr<_ITEMIDLIST>::~CCoTaskMemPtr<_ITEMIDLIST>

+                                ((CCoTaskMemPtr<_ITEMIDLIST> *)local_50);

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_80);

+                      Microsoft::WRL::Wrappers::Details::SyncLockExclusive::~SyncLockExclusive

+                                (local_90);

+                      bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_RLTM>::

+                              __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_RLTM> *)

+                                                  &

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

+                                                  ::__l2::impl);

+                      if (!bVar5) {

+                        local_res18[0] = 0;

+                        pCVar12 = local_res20;

+                        iVar6 = (**(code **)(*(longlong *)local_res20 + 0x18))

+                                          (local_res20,local_res18);

+                        local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                        if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                          CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                          CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                          iVar6 = (int)local_res10;

+                        }

+                        if (iVar6 < 0) {

+                          if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                            CCriticalFailureHandler::HandleFailure

+                                      (pCVar12,(long *)&local_res10,

+                                       (ushort *)

+                                       L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                       ,0x15c,(__uint64 *)pCVar24,p_Var27);

+                            iVar6 = (int)local_res10;

+                          }

+                          if (iVar6 < 0) {

+                            uVar7 = 0x15c;

+                            lVar22 = iVar6;

+                            goto LAB_15;

+                          }

+                        }

+                        pCVar12 = *(CCriticalFailureHandler **)(this + 0xa8);

+                        pwVar15 = (wchar_t *)0x0;

+                        iVar6 = (**(code **)(*(longlong *)pCVar12 + 0x20))(pCVar12,local_res18[0]);

+                        local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                        if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                          CCriticalFailureHandler::GetFakeFailure(pCVar12,(long *)&local_res10);

+                          CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                          iVar6 = (int)local_res10;

+                        }

+                        if (iVar6 < 0) {

+                          if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                            pwVar15 = 

+                            L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp";

+                            CCriticalFailureHandler::HandleFailure

+                                      (pCVar12,(long *)&local_res10,

+                                       (ushort *)

+                                       L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                       ,0x15d,(__uint64 *)pCVar24,p_Var27);

+                            iVar6 = (int)local_res10;

+                          }

+                          if (iVar6 < 0) {

+                            uVar7 = 0x15d;

+                            lVar22 = iVar6;

+                            goto LAB_15;

+                          }

+                        }

+                      }

+                      if (*(longlong *)(this + 0xb8) != 0) {

+                        local_60 = (__uint64 *)0x0;

+                        iVar6 = (**(code **)(*(longlong *)param_1 + 0x18))

+                                          (param_1,&SID_VirtualDesktopSwitcher,

+                                           &_GUID_7a25165a_86f1_4b4a_b1d2_e89650cd9589,&local_60);

+                        if (iVar6 < 0) {

+                          uVar7 = 0x163;

+                          lVar22 = iVar6;

+                        }

+                        else {

+                          pwVar15 = (wchar_t *)local_88;

+                          pCVar24 = local_c0;

+                          p_Var27 = local_60;

+                          iVar6 = (**(code **)(**(longlong **)(this + 0xb8) + 0x18))

+                                            (*(longlong **)(this + 0xb8),local_b0,local_88,local_b8)

+                          ;

+                          if (-1 < iVar6) {

+                            wil::

+                            com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                      ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        *)&local_60);

+                            goto LAB_16;

+                          }

+                          uVar7 = 0x164;

+                          lVar22 = iVar6;

+                        }

+                        wil::details::in1diag3::Return_Hr

+                                  (unaff_retaddr,uVar7,

+                                   "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                   ,lVar22);

+                        wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                        ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                  ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                    *)&local_60);

+                        goto LAB_17;

+                      }

+LAB_16:

+                      local_78 = 0;

+                      ppvVar9 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IApplicationViewArrangePosition>_>

+                                          (&local_78);

+                      pIVar11 = *(IVirtualDesktopManagerPrivate **)(this + 0x78);

+                      iVar6 = CVirtualDesktopHolographicViewTransitionNotification_CreateInstance

+                                        (pIVar11,*(IVirtualDesktopLock **)(this + 0x68),

+                                         (_GUID *)pwVar15,ppvVar9);

+                      local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                      if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                        CCriticalFailureHandler::GetFakeFailure

+                                  ((CCriticalFailureHandler *)pIVar11,(long *)&local_res10);

+                        CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                        iVar6 = (int)local_res10;

+                      }

+                      if (iVar6 < 0) {

+                        if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                          CCriticalFailureHandler::HandleFailure

+                                    ((CCriticalFailureHandler *)pIVar11,(long *)&local_res10,

+                                     (ushort *)

+                                     L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                     ,0x16b,(__uint64 *)pCVar24,p_Var27);

+                          iVar6 = (int)local_res10;

+                        }

+                        if (-1 < iVar6) goto LAB_18;

+                        wil::details::in1diag3::Return_Hr

+                                  (unaff_retaddr,0x16b,

+                                   "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                   ,iVar6);

+                        lVar22 = iVar6;

+                      }

+                      else {

+LAB_18:

+                        local_68 = (longlong *)0x0;

+                        pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+                        ppvVar9 = IID_PPV_ARGS_Helper<Microsoft::WRL::ComPtr<IApplicationViewArrangePosition>_>

+                                            (&local_68);

+                        pIVar10 = param_1;

+                        iVar6 = (*pcVar3)(param_1,&_GUID_5090de35_ed23_43be_9714_586c5041026a,

+                                          &_GUID_5090de35_ed23_43be_9714_586c5041026a,ppvVar9);

+                        local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+                        if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+                          CCriticalFailureHandler::GetFakeFailure

+                                    ((CCriticalFailureHandler *)pIVar10,(long *)&local_res10);

+                          CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+                          iVar6 = (int)local_res10;

+                        }

+                        if (iVar6 < 0) {

+                          if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                            CCriticalFailureHandler::HandleFailure

+                                      ((CCriticalFailureHandler *)pIVar10,(long *)&local_res10,

+                                       (ushort *)

+                                       L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                       ,0x16e,(__uint64 *)pCVar24,p_Var27);

+                            iVar6 = (int)local_res10;

+                          }

+                          if (-1 < iVar6) goto LAB_19;

+                          uVar7 = 0x16e;

+LAB_20:

+                          wil::details::in1diag3::Return_Hr

+                                    (unaff_retaddr,uVar7,

+                                     "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                     ,iVar6);

+                          lVar22 = iVar6;

+                        }

+                        else {

+LAB_19:

+                          iVar6 = (**(code **)(*local_68 + 0x18))(local_68,local_78,this + 0xfc);

+                          if (iVar6 < 0) {

+                            uVar7 = 0x16f;

+                            goto LAB_20;

+                          }

+                          (**(code **)(**(longlong **)(this + 0x78) + 0x1e0))

+                                    (*(longlong **)(this + 0x78),local_c0);

+                          local_58 = 0;

+                          iVar6 = (**(code **)(*(longlong *)param_1 + 0x18))

+                                            (param_1,&SID_MultitaskingViewServiceProvider,

+                                             &_GUID_90adbab9_cdb8_43dd_8daa_ba1180be5215,&local_58);

+                          if (-1 < iVar6) {

+                            (**(code **)(**(longlong **)(this + 0x78) + 0x140))

+                                      (*(longlong **)(this + 0x78),local_b0,*(void **)pCVar2,

+                                       local_b8,local_58);

+                            wil::

+                            com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                      ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        *)&local_58);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_68);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_78);

+                            wil::

+                            com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                      ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        *)&local_a0);

+                            wil::

+                            com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                      ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        *)local_a0.Data4);

+                            wil::

+                            com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                      ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        *)&local_a8);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_b0);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_b8);

+                            wil::

+                            com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                      ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                        *)&local_c0);

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_res20

+                                           );

+                            Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::

+                            InternalRelease((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

+                            goto LAB_0;

+                          }

+                          wil::details::in1diag3::Return_Hr

+                                    (unaff_retaddr,0x174,

+                                     "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                     ,iVar6);

+                          wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                          ::~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                    ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                                      *)&local_58);

+                          lVar22 = iVar6;

+                        }

+                        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_68);

+                      }

+                      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                                ((ComPtr<IImmersiveSystemModeNotification> *)&local_78);

+                      goto LAB_17;

+                    }

+                    if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+                      pIVar19 = (IVirtualDesktopWindowMoveManager *)0x124;

+                      CCriticalFailureHandler::HandleFailure

+                                ((CCriticalFailureHandler *)pIVar11,(long *)&local_res10,

+                                 (ushort *)

+                                 L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp"

+                                 ,0x124,(__uint64 *)pIVar23,(__uint64 *)pIVar26);

+                      iVar6 = (int)local_res10;

+                    }

+                    if (-1 < iVar6) goto LAB_9;

+                    uVar7 = 0x124;

+LAB_10:

+                    wil::details::in1diag3::Return_Hr

+                              (unaff_retaddr,uVar7,

+                               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                               iVar6);

+                    lVar22 = iVar6;

+LAB_13:

+                    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                              ((ComPtr<IImmersiveSystemModeNotification> *)&local_80);

+                  }

+                  Microsoft::WRL::Wrappers::Details::SyncLockExclusive::~SyncLockExclusive(local_90)

+                  ;

+                }

+                else {

+                  pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+                  wil::com_ptr_t<IInputHostLayout,wil::err_exception_policy>::reset

+                            ((com_ptr_t<IInputHostLayout,wil::err_exception_policy> *)&local_a0);

+                  iVar6 = (*pcVar3)(param_1,&_GUID_cb6e4ee4_9424_5bb0_b290_0e37b7c5c386,

+                                    &_GUID_cb6e4ee4_9424_5bb0_b290_0e37b7c5c386,&local_a0);

+                  if (iVar6 < 0) {

+                    wil::details::in1diag3::_Log_Hr

+                              (unaff_retaddr,0x10b,

+                               "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                               iVar6);

+                  }

+                  (**(code **)(**(longlong **)(this + 0x78) + 0x138))

+                            (*(longlong **)(this + 0x78),&local_a0);

+                  in_stack_ffffffffffffff28 = &local_a0;

+                  pCVar24 = local_b8;

+                  in_stack_ffffffffffffff20 = local_c0;

+                  iVar6 = (**(code **)(*local_a8 + 0x30))

+                                    (local_a8,local_b0,local_88,*(void **)pCVar2);

+                  if (-1 < iVar6) goto LAB_6;

+                  uVar7 = 0x10d;

+                  lVar22 = iVar6;

+LAB_15:

+                  wil::details::in1diag3::Return_Hr

+                            (unaff_retaddr,uVar7,

+                             "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                             lVar22);

+                }

+LAB_17:

+                wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+                ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                          ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                           &local_a0);

+              }

+              wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+              ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                        ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                         local_a0.Data4);

+            }

+            wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+            ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                      ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)

+                       &local_a8);

+          }

+          Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                    ((ComPtr<IImmersiveSystemModeNotification> *)&local_b0);

+        }

+        Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                  ((ComPtr<IImmersiveSystemModeNotification> *)&local_b8);

+      }

+      wil::com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>::

+      ~com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy>

+                ((com_ptr_t<IPrivilegedForegroundOperations,wil::err_exception_policy> *)&local_c0);

+    }

+    else {

+      pcVar3 = *(code **)(*(longlong *)param_1 + 0x18);

+      Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_res20);

+      pIVar10 = param_1;

+      iVar6 = (*pcVar3)(param_1,&_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,

+                        &_GUID_4fda780a_acd2_41f7_b4f2_ebe674c9bf2a,&local_res20);

+      local_res10 = (longlong *)CONCAT44(local_res10._4_4_,iVar6);

+      if (CRVPrivate::cfhImmersiveShellStartup == (CCriticalFailureHandler)0x0) {

+        CCriticalFailureHandler::GetFakeFailure

+                  ((CCriticalFailureHandler *)pIVar10,(long *)&local_res10);

+        CRVPrivate::cfhImmersiveShellStartup = (CCriticalFailureHandler)0x1;

+        iVar6 = (int)local_res10;

+      }

+      if (-1 < iVar6) goto LAB_2;

+      if ((iVar6 != -0x7ff8fff2) && (iVar6 != -0x7fd80001)) {

+        CCriticalFailureHandler::HandleFailure

+                  ((CCriticalFailureHandler *)pIVar10,(long *)&local_res10,

+                   (ushort *)L"pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",

+                   0xf1,in_stack_ffffffffffffff18,(__uint64 *)in_stack_ffffffffffffff20);

+        iVar6 = (int)local_res10;

+      }

+      if (-1 < iVar6) goto LAB_2;

+      uVar7 = 0xf1;

+      lVar22 = iVar6;

+LAB_3:

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,uVar7,

+                 "pcshell\\twinui\\virtualdesktops\\lib\\virtualdesktopcomponent.cpp",lVar22);

+    }

+    Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+              ((ComPtr<IImmersiveSystemModeNotification> *)&local_res20);

+  }

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_c8);

+LAB_0:

+  Microsoft::WRL::ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+            ((ComPtr<IImmersiveSystemModeNotification> *)&local_88);

+  return lVar22;

+}

+
```

## `Microsoft::WRL::Details::MakeAndInitialize<VirtualDesktopTabletModeNotificationListener,VirtualDesktopTabletModeNotificationListener,IVirtualDesktopTabletModePolicy*___ptr64&___ptr64,IServiceProvider*___ptr64&___ptr64>`  (modified)

```diff
--- Microsoft::WRL::Details::MakeAndInitialize<VirtualDesktopTabletModeNotificationListener,VirtualDesktopTabletModeNotificationListener,IVirtualDesktopTabletModePolicy*___ptr64&___ptr64,IServiceProvider*___ptr64&___ptr64>
+++ Microsoft::WRL::Details::MakeAndInitialize<VirtualDesktopTabletModeNotificationListener,VirtualDesktopTabletModeNotificationListener,IVirtualDesktopTabletModePolicy*___ptr64&___ptr64,IServiceProvider*___ptr64&___ptr64>
@@ -1,2 +1,58 @@
-Failed to decompile twinui.pcshell.dll - .ProgramDB Microsoft::WRL::Details::MakeAndInitialize<VirtualDesktopTabletModeNotificationListener,VirtualDesktopTabletModeNotificationListener,IVirtualDesktopTabletModePolicy*___ptr64&___ptr64,IServiceProvider*___ptr64&___ptr64> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

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

+   guard_dispatch_icall */

+/* long __cdecl Microsoft::WRL::Details::MakeAndInitialize<class

+   VirtualDesktopTabletModeNotificationListener,class

+   VirtualDesktopTabletModeNotificationListener,struct IVirtualDesktopTabletModePolicy * __ptr64 &

+   __ptr64,struct IServiceProvider * __ptr64 & __ptr64>(class

+   VirtualDesktopTabletModeNotificationListener * __ptr64 * __ptr64,struct

+   IVirtualDesktopTabletModePolicy * __ptr64 & __ptr64,struct IServiceProvider * __ptr64 & __ptr64)

+    */

+

+long __cdecl

+Microsoft::WRL::Details::

+MakeAndInitialize<VirtualDesktopTabletModeNotificationListener,VirtualDesktopTabletModeNotificationListener,IVirtualDesktopTabletModePolicy*___ptr64&___ptr64,IServiceProvider*___ptr64&___ptr64>

+          (VirtualDesktopTabletModeNotificationListener **param_1,

+          IVirtualDesktopTabletModePolicy **param_2,IServiceProvider **param_3)

+

+{

+  long lVar1;

+  VirtualDesktopTabletModeNotificationListener *this;

+  VirtualDesktopTabletModeNotificationListener *local_res8;

+  VirtualDesktopTabletModeNotificationListener *local_res20;

+  

+  *param_1 = (VirtualDesktopTabletModeNotificationListener *)0x0;

+  local_res8 = operator_new(0x20,&std::nothrow);

+  if (local_res8 == (VirtualDesktopTabletModeNotificationListener *)0x0) {

+    lVar1 = -0x7ff8fff2;

+  }

+  else {

+    local_res20 = local_res8;

+    this = (VirtualDesktopTabletModeNotificationListener *)

+           VirtualDesktopTabletModeNotificationListener::

+           VirtualDesktopTabletModeNotificationListener(local_res8);

+    local_res8 = (VirtualDesktopTabletModeNotificationListener *)0x0;

+    local_res20 = this;

+    lVar1 = VirtualDesktopTabletModeNotificationListener::RuntimeClassInitialize

+                      (this,*param_2,*param_3);

+    if (lVar1 < 0) {

+      ComPtr<IImmersiveSystemModeNotification>::InternalRelease

+                ((ComPtr<IImmersiveSystemModeNotification> *)&local_res20);

+      MakeAllocator<CAppArrangementSingleTransitionTarget>::

+      ~MakeAllocator<CAppArrangementSingleTransitionTarget>

+                ((MakeAllocator<CAppArrangementSingleTransitionTarget> *)&local_res8);

+    }

+    else {

+      if (this != (VirtualDesktopTabletModeNotificationListener *)0x0) {

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

+      }

+      *param_1 = this;

+      if (this != (VirtualDesktopTabletModeNotificationListener *)0x0) {

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

+      }

+      lVar1 = 0;

+    }

+  }

+  return lVar1;

+}

+
```
