# CVE-2026-62690 — wpncore.dll patch diff

`wpncore.dll` 10.0.26100.8875 -> 10.0.26100.8972 (ghidriff).

## `McTemplateU0zzdq_EventWriteTransfer`  (modified)

```diff
--- McTemplateU0zzdq_EventWriteTransfer
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::__private_IsEnabled
@@ -1,60 +1,20 @@
 

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

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

+   __WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::__private_IsEnabled(void) __ptr64

+    */

 

-void McTemplateU0zzdq_EventWriteTransfer

-               (undefined8 param_1,PCEVENT_DESCRIPTOR param_2,wchar_t *param_3,wchar_t *param_4)

+bool __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::

+__private_IsEnabled(FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation> *this)

 

 {

-  longlong lVar1;

-  longlong lVar2;

-  undefined1 auStackY_98 [32];

-  _EVENT_DATA_DESCRIPTOR local_68;

-  wchar_t *local_58;

-  int local_50;

-  undefined4 local_4c;

-  wchar_t *local_48;

-  int local_40;

-  undefined4 local_3c;

-  undefined1 *local_38;

-  undefined8 local_30;

-  undefined1 *local_28;

-  undefined8 local_20;

-  ulonglong local_18;

+  ReportingKind in_R8D;

+  __uint64 in_R9;

+  undefined1 local_res10;

   

-  local_18 = __security_cookie ^ (ulonglong)auStackY_98;

-  lVar1 = -1;

-  local_40 = 10;

-  if (param_3 == (wchar_t *)0x0) {

-    local_50 = 10;

-  }

-  else {

-    lVar2 = -1;

-    do {

-      lVar2 = lVar2 + 1;

-    } while (param_3[lVar2] != L'\0');

-    local_50 = (int)lVar2 * 2 + 2;

-  }

-  local_4c = 0;

-  if (param_3 == (wchar_t *)0x0) {

-    param_3 = L"NULL";

-  }

-  if (param_4 != (wchar_t *)0x0) {

-    do {

-      lVar1 = lVar1 + 1;

-    } while (param_4[lVar1] != L'\0');

-    local_40 = (int)lVar1 * 2 + 2;

-  }

-  if (param_4 == (wchar_t *)0x0) {

-    param_4 = L"NULL";

-  }

-  local_38 = &stack0x00000028;

-  local_28 = &stack0x00000030;

-  local_3c = 0;

-  local_30 = 4;

-  local_20 = 4;

-  local_58 = param_3;

-  local_48 = param_4;

-  McGenEventWrite_EventWriteTransfer(&WPNCORE_PROVIDER_GUID_Context,param_2,param_3,5,&local_68);

-  return;

+  GetCachedFeatureEnabledState(this);

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

+  Feature_TIPLimitErrorWatcherAccumulation__private_lastUsedTickCount = GetTickCount();

+  return (bool)(local_res10 & 1);

 }
```

## `AppEndpoint::CreateChannelRequestUsingRemoteId`  (modified)

```diff
--- AppEndpoint::CreateChannelRequestUsingRemoteId
+++ AppEndpoint::CreateChannelRequestUsingRemoteId
@@ -1,2 +1,266 @@
-Failed to decompile wpncore.dll - .ProgramDB AppEndpoint::CreateChannelRequestUsingRemoteId : 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 AppEndpoint::CreateChannelRequestUsingRemoteId(unsigned short const

+   * __ptr64,unsigned short const * __ptr64,unsigned short const * __ptr64,struct IWpnChannelRequest

+   * __ptr64) __ptr64 */

+

+long __thiscall

+AppEndpoint::CreateChannelRequestUsingRemoteId

+          (AppEndpoint *this,ushort *param_1,ushort *param_2,ushort *param_3,

+          IWpnChannelRequest *param_4)

+

+{

+  code *pcVar1;

+  longlong *plVar2;

+  bool bVar3;

+  uint uVar4;

+  int iVar5;

+  long lVar6;

+  longlong lVar7;

+  NotificationPlatform *pNVar8;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *pFVar9;

+  void *pvVar10;

+  longlong lVar11;

+  char *pcVar12;

+  ushort *puVar13;

+  void *unaff_retaddr;

+  longlong *local_res18 [2];

+  INotificationHandler *local_48;

+  longlong local_40;

+  srwlock *local_38 [2];

+  

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

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xbc,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fffbffd);

+  }

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

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xbd,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fffbffd);

+  }

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

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xbe,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fffbffd);

+  }

+  lVar7 = -1;

+  lVar11 = -1;

+  do {

+    lVar11 = lVar11 + 1;

+  } while (param_2[lVar11] != 0);

+  if (lVar11 == 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xbf,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7ff8ffa9);

+  }

+  do {

+    lVar7 = lVar7 + 1;

+  } while (param_3[lVar7] != 0);

+  if (lVar7 == 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xc0,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7ff8ffa9);

+  }

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

+            ::__l2::impl;

+  pcVar12 = (char *)param_2;

+  puVar13 = param_3;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    local_res18[0] = (longlong *)((ulonglong)local_res18[0] & 0xffffffff00000000);

+    uVar4 = WnpCloudEndpointResolver::ResolveCloudForPFN(param_3,(_WNS_CLOUD_INSTANCE *)local_res18)

+    ;

+    pvVar10 = unaff_retaddr;

+    if ((int)uVar4 < 0) {

+      puVar13 = (ushort *)(ulonglong)uVar4;

+      pcVar12 = 

+      "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp";

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0xc5,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,uVar4);

+    }

+    if ((DAT_0 & 1) != 0) {

+      puVar13 = param_3;

+      McTemplateU0zzd_EventWriteTransfer

+                (pvVar10,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST_FOR_CLOUD_INSTANCE,

+                 (wchar_t *)param_1,(wchar_t *)param_3);

+      pcVar12 = (char *)param_1;

+    }

+  }

+  else if ((DAT_0 & 1) != 0) {

+    puVar13 = param_3;

+    McTemplateU0zz_EventWriteTransfer

+              (pFVar9,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST,(wchar_t *)param_1,

+               (wchar_t *)param_3);

+    pcVar12 = (char *)param_1;

+  }

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

+            ((FeatureImpl<__WilFeatureTraits_Feature_40444302> *)

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

+              ::__l2::impl,true,(ReportingKind)pcVar12,(__uint64)puVar13);

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_4152879416> *)

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

+                      ::__l2::impl);

+  if (bVar3) {

+    AcquireSRWLockShared((PSRWLOCK)&Wns::s_platformLock);

+    local_38[0] = &Wns::s_platformLock;

+    if (Wns::s_platformShutdown != false) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xd4,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

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

+              ((FeatureImpl<__WilFeatureTraits_Feature_40169358> *)

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

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

+               (__uint64)puVar13);

+    Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+    if (local_40 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xea,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    local_res18[0] = (longlong *)0x0;

+    pNVar8 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_40);

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

+              ((ComPtr<DownloadTaskManager> *)local_res18);

+    iVar5 = (**(code **)**(undefined8 **)(pNVar8 + 0xa8))

+                      (*(undefined8 **)(pNVar8 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

+                       local_res18);

+    if ((-1 < iVar5) && (local_res18[0] == (longlong *)0x0)) {

+      iVar5 = -0x7fc1fefb;

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x402,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                 ,-0x7fc1fefb);

+    }

+    plVar2 = local_res18[0];

+    if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xed,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar5);

+    }

+    local_48 = (INotificationHandler *)0x0;

+    pcVar1 = *(code **)(*local_res18[0] + 0xc0);

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

+    iVar5 = (*pcVar1)(plVar2,param_3,&local_48);

+    if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xf0,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar5);

+    }

+    lVar6 = CreateChannelRequestInternal(this,param_2,local_48,(ushort *)0x0,(ushort *)0x0,param_4);

+    if (lVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xf7,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar6);

+    }

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

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

+              ((ComPtr<DownloadTaskManager> *)local_res18);

+    Wns::

+    Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+    ::StrongRef::Release((StrongRef *)&local_40);

+    wil::details::

+    unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+                *)local_38);

+  }

+  else {

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

+              ((FeatureImpl<__WilFeatureTraits_Feature_40169358> *)

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

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

+               (__uint64)puVar13);

+    Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+    if (local_40 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x110,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    local_res18[0] = (longlong *)0x0;

+    pNVar8 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_40);

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

+              ((ComPtr<DownloadTaskManager> *)local_res18);

+    iVar5 = (**(code **)**(undefined8 **)(pNVar8 + 0xa8))

+                      (*(undefined8 **)(pNVar8 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

+                       local_res18);

+    if ((-1 < iVar5) && (local_res18[0] == (longlong *)0x0)) {

+      iVar5 = -0x7fc1fefb;

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x402,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                 ,-0x7fc1fefb);

+    }

+    plVar2 = local_res18[0];

+    if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x113,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar5);

+    }

+    local_48 = (INotificationHandler *)0x0;

+    pcVar1 = *(code **)(*local_res18[0] + 0xc0);

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

+    iVar5 = (*pcVar1)(plVar2,param_3,&local_48);

+    if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x116,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar5);

+    }

+    lVar6 = CreateChannelRequestInternal(this,param_2,local_48,(ushort *)0x0,(ushort *)0x0,param_4);

+    if (lVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x11d,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar6);

+    }

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

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

+              ((ComPtr<DownloadTaskManager> *)local_res18);

+    Wns::

+    Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+    ::StrongRef::Release((StrongRef *)&local_40);

+  }

+  return 0;

+}

+
```

## `AppEndpoint::PostNotificationHelper`  (modified)

```diff
--- AppEndpoint::PostNotificationHelper
+++ AppEndpoint::PostNotificationHelper
@@ -1,2 +1,363 @@
-Failed to decompile wpncore.dll - .ProgramDB AppEndpoint::PostNotificationHelper : 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 AppEndpoint::PostNotificationHelper(class Notification * __ptr64,class

+   TransientNotificationDetails * __ptr64,enum __MIDL___MIDL_itf_wpnplatform_0000_0007_0004,struct

+   IWpnToastFeedback * __ptr64) __ptr64 */

+

+long __thiscall

+AppEndpoint::PostNotificationHelper

+          (AppEndpoint *this,Notification *param_1,TransientNotificationDetails *param_2,

+          __MIDL___MIDL_itf_wpnplatform_0000_0007_0004 param_3,IWpnToastFeedback *param_4)

+

+{

+  short sVar1;

+  short sVar2;

+  code *pcVar3;

+  bool bVar4;

+  bool bVar5;

+  bool bVar6;

+  INotificationHandler *pIVar7;

+  long lVar8;

+  int iVar9;

+  ulong uVar10;

+  basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+  *pbVar11;

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

+  *this_00;

+  NotificationPlatform *pNVar12;

+  ushort *puVar13;

+  ushort *puVar14;

+  short *psVar15;

+  WorkItem *pWVar16;

+  wchar_t *pwVar17;

+  wchar_t *pwVar18;

+  uint uVar19;

+  int iVar20;

+  void *unaff_retaddr;

+  undefined1 auStackY_158 [32];

+  bool local_118 [8];

+  Notification *local_110;

+  undefined4 local_108;

+  longlong local_100;

+  __MIDL___MIDL_itf_wpnplatform_0000_0007_0004 local_f8;

+  INotificationHandler *local_f0;

+  ThreadPool *local_e8;

+  short *local_e0;

+  longlong local_d8;

+  RunningApps *local_d0;

+  void *local_c8;

+  NotificationAvailableWork *local_c0;

+  NotificationDeliveryTransaction *local_b8;

+  map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+  local_b0 [16];

+  RunningApps **local_a0;

+  Notification **local_98;

+  undefined1 local_90;

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  local_88 [32];

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

+  local_68 [32];

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStackY_158;

+  local_108 = 0;

+  local_110 = param_1;

+  local_f8 = param_3;

+  Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+  if (local_100 == 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x1084,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fc1fefb);

+  }

+  local_c8 = (void *)0x0;

+  std::

+  map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+  ::

+  map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+            (local_b0);

+  pbVar11 = (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+             *)Notification::get_handlerKey(local_110);

+  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"AppUserModelId");

+  this_00 = std::

+            map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+            ::operator[](local_b0,(basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                                   *)local_68);

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

+  ::operator=(this_00,pbVar11);

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+            ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              *)local_68);

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+            (local_88);

+  pNVar12 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_100);

+  wil::details::

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

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

+           *)&local_c8,(void *)0x0);

+  lVar8 = NotificationPlatform::PdcHelper::Activate

+                    ((PdcHelper *)(pNVar12 + 0x198),local_b0,1,1,&local_c8);

+  if (lVar8 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x108d,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,lVar8);

+  }

+  local_118[0] = false;

+  local_d8 = 0;

+  pNVar12 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_100);

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

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

+  iVar9 = (**(code **)**(undefined8 **)(pNVar12 + 0xa8))

+                    (*(undefined8 **)(pNVar12 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

+                     &local_d8);

+  if ((-1 < iVar9) && (local_d8 == 0)) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x402,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+               ,-0x7fc1fefb);

+    iVar9 = -0x7fc1fefb;

+  }

+  iVar20 = -0x7fc1fefb;

+  if (iVar9 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x1092,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar9);

+  }

+  local_f0 = (INotificationHandler *)0x0;

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

+            ((ComPtr<DownloadTaskManager> *)&local_f0);

+  puVar13 = (ushort *)Notification::get_type(local_110);

+  if (7 < *(ulonglong *)(puVar13 + 0xc)) {

+    puVar13 = *(ushort **)puVar13;

+  }

+  puVar14 = (ushort *)Notification::get_handlerKey(local_110);

+  if (7 < *(ulonglong *)(puVar14 + 0xc)) {

+    puVar14 = *(ushort **)puVar14;

+  }

+  lVar8 = RegisterDesktopApplicationIfApplicable(this,puVar14,puVar13,param_3,local_118,&local_f0);

+  if (lVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x109b,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,lVar8);

+  }

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+            (local_88);

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+            ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              *)local_68);

+  pIVar7 = local_f0;

+  local_e0 = (short *)0x0;

+  pcVar3 = *(code **)(*(longlong *)local_f0 + 0x30);

+  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>_>

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

+           *)&local_e0,(ushort *)0x0);

+  iVar9 = (*pcVar3)(pIVar7,&local_e0);

+  pIVar7 = local_f0;

+  if (iVar9 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x109e,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar9);

+  }

+  psVar15 = local_e0;

+  do {

+    sVar1 = *psVar15;

+    sVar2 = *(short *)((longlong)psVar15 + ((longlong)L"app:system" - (longlong)local_e0));

+    if (sVar1 != sVar2) break;

+    psVar15 = psVar15 + 1;

+  } while (sVar2 != 0);

+  uVar19 = local_f8 >> 3;

+  local_b8 = operator_new(0x78);

+  local_b8 = (NotificationDeliveryTransaction *)

+             NotificationDeliveryTransaction::NotificationDeliveryTransaction

+                       (local_b8,pIVar7,local_110,param_2,(bool)((byte)uVar19 & 1),0,(ushort *)0x0);

+  pNVar12 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_100);

+  local_c0 = operator_new(200);

+  pWVar16 = (WorkItem *)

+            NotificationAvailableWork::NotificationAvailableWork

+                      (local_c0,(unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+                                 *)&local_b8,pNVar12);

+  local_d0 = (RunningApps *)0x0;

+  local_c0 = (NotificationAvailableWork *)pWVar16;

+  puVar14 = (ushort *)Notification::get_type(local_110);

+  puVar13 = puVar14 + 8;

+  if (7 < *(ulonglong *)(puVar14 + 0xc)) {

+    puVar14 = *(ushort **)puVar14;

+  }

+  if (((*(longlong *)puVar13 == 5) &&

+      (iVar9 = std::_WChar_traits<unsigned_short>::compare(puVar14,(ushort *)L"toast",5), iVar9 == 0

+      )) && (param_4 != (IWpnToastFeedback *)0x0)) {

+    bVar4 = true;

+  }

+  else {

+    bVar4 = false;

+  }

+  bVar6 = false;

+  bVar5 = false;

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+            (local_88);

+  if (bVar4) {

+    pNVar12 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_100);

+    local_d0 = *(RunningApps **)(pNVar12 + 0xe0);

+    if (local_d0 == (RunningApps *)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x10b0,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    uVar10 = Notification::get_id(local_110);

+    puVar13 = (ushort *)Notification::get_handlerKey(local_110);

+    if (7 < *(ulonglong *)(puVar13 + 0xc)) {

+      puVar13 = *(ushort **)puVar13;

+    }

+    lVar8 = RunningApps::AddCallbackForToast

+                      (local_d0,puVar13,local_118[0],sVar1 == sVar2,uVar10,param_4);

+    if (lVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x10b1,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar8);

+    }

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              (local_88);

+  }

+  local_a0 = &local_d0;

+  local_98 = &local_110;

+  local_90 = 1;

+  local_e8 = (ThreadPool *)0x0;

+  pNVar12 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_100);

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

+            ((ComPtr<DownloadTaskManager> *)&local_e8);

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

+            ((ComPtr<IWpnNotification> *)(pNVar12 + 0x30));

+  local_e8 = *(ThreadPool **)(pNVar12 + 0x30);

+  if (local_e8 == (ThreadPool *)0x0) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x402,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+               ,-0x7fc1fefb);

+  }

+  else {

+    iVar20 = 0;

+  }

+  if (iVar20 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x10bd,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar20);

+  }

+  local_c0 = (NotificationAvailableWork *)0x0;

+  lVar8 = ThreadPool::Submit(local_e8,pWVar16);

+  if (lVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x10be,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,lVar8);

+  }

+  local_90 = 0;

+  if ((DAT_0 & 1) != 0) {

+    Notification::get_id(local_110);

+    pwVar17 = (wchar_t *)Notification::get_type(local_110);

+    local_108 = 0x1a;

+    if (7 < *(ulonglong *)(pwVar17 + 0xc)) {

+      pwVar17 = *(wchar_t **)pwVar17;

+    }

+    pwVar18 = (wchar_t *)Notification::get_handlerKey(local_110);

+    bVar6 = true;

+    bVar5 = true;

+    if (7 < *(ulonglong *)(pwVar18 + 0xc)) {

+      pwVar18 = *(wchar_t **)pwVar18;

+    }

+    McTemplateU0zzqq_EventWriteTransfer

+              ((ulonglong)local_f8,(PCEVENT_DESCRIPTOR)&WPNEND_LOCAL_NOTIFICATION_UPDATED,pwVar18,

+               pwVar17);

+  }

+  if (bVar5) {

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              (local_88);

+  }

+  if (bVar6) {

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)local_68);

+  }

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

+            ((ComPtr<DownloadTaskManager> *)&local_e8);

+  std::unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>::

+  ~unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>

+            ((unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>

+              *)&local_c0);

+  std::

+  unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+  ::

+  ~unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+            ((unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+              *)&local_b8);

+  wil::details::

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

+  ::

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

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

+              *)&local_e0);

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

+            ((ComPtr<DownloadTaskManager> *)&local_f0);

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

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

+  std::

+  _Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+  ::

+  ~_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+            ((_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+              *)local_b0);

+  wil::details::

+  unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(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_Pdcv2ActivationClientDeactivate(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_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+              *)&local_c8);

+  Wns::

+  Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+  ::StrongRef::Release((StrongRef *)&local_100);

+  return 0;

+}

+
```

## ``BackgroundActivation::ActivateRawNotificationWorkItem'::__l1::dtor$25`  (modified)

```diff
--- `BackgroundActivation::ActivateRawNotificationWorkItem'::__l1::dtor$25
+++ `BackgroundActivation::ActivateRawNotificationWorkItem'::__l1::dtor$25
@@ -1,9 +1,17 @@
 

 void `BackgroundActivation::ActivateRawNotificationWorkItem'::__l1::dtor_25

                (undefined8 param_1,longlong param_2)

 

 {

-                    /* WARNING: Subroutine does not return */

-  _CxxThrowException((void *)0x0,(ThrowInfo *)0x0);

+  if ((*(uint *)(param_2 + 0x98) & 2) != 0) {

+    *(uint *)(param_2 + 0x98) = *(uint *)(param_2 + 0x98) & 0xfffffffd;

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)(param_2 + 0x188));

+  }

+  return;

 }
```

## `ConnectionManagerCallback::OnChannelReceived`  (modified)

```diff
--- ConnectionManagerCallback::OnChannelReceived
+++ ConnectionManagerCallback::OnChannelReceived
@@ -1,2 +1,321 @@
-Failed to decompile wpncore.dll - .ProgramDB ConnectionManagerCallback::OnChannelReceived : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

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

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

+   guard_dispatch_icall */

+/* public: virtual long __cdecl ConnectionManagerCallback::OnChannelReceived(long,long,unsigned

+   short * __ptr64,unsigned short * __ptr64,double) __ptr64 */

+

+long __thiscall

+ConnectionManagerCallback::OnChannelReceived

+          (ConnectionManagerCallback *this,long param_1,long param_2,ushort *param_3,ushort *param_4

+          ,double param_5)

+

+{

+  code *pcVar1;

+  bool bVar2;

+  char cVar3;

+  uint uVar4;

+  INT IVar5;

+  ChannelRequestCompleteWork *this_00;

+  uint *puVar6;

+  undefined2 uVar7;

+  char *pcVar8;

+  _GUID *p_Var9;

+  void *unaff_retaddr;

+  undefined1 auStackY_d8 [32];

+  uint local_98 [2];

+  ThreadPool *local_90;

+  undefined4 local_88 [2];

+  ChannelRequestCompleteWork *local_80;

+  _SYSTEMTIME *local_78;

+  _SYSTEMTIME *local_70;

+  _SYSTEMTIME local_68;

+  ulonglong local_58;

+  

+  local_58 = __security_cookie ^ (ulonglong)auStackY_d8;

+  p_Var9 = (_GUID *)param_3;

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

+    p_Var9 = (_GUID *)(ulonglong)(uint)param_1;

+    WPP_SF_dd(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xe,

+              &WPP_269145a32571379f04175f2797d54a50_Traceguids,param_1);

+  }

+  local_90 = (ThreadPool *)0x0;

+  local_68.wYear = 0;

+  local_68.wMonth = 0;

+  local_68.wDayOfWeek = 0;

+  local_68.wDay = 0;

+  local_68.wHour = 0;

+  local_68.wMinute = 0;

+  local_68.wSecond = 0;

+  local_68.wMilliseconds = 0;

+  this_00 = operator_new(0x70,&std::nothrow);

+  if (this_00 == (ChannelRequestCompleteWork *)0x0) {

+    local_80 = (ChannelRequestCompleteWork *)0x0;

+    uVar4 = 0x8007000e;

+    p_Var9 = (_GUID *)0x8007000e;

+    pcVar8 = 

+    "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+    ;

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x7a,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,-0x7ff8fff2);

+    if ((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) goto LAB_0;

+    if ((WPP_GLOBAL_Control[0x1c] & 0x80) == 0) goto LAB_1;

+    uVar7 = 0xf;

+    p_Var9 = (_GUID *)0x8007000e;

+LAB_2:

+    pcVar8 = &WPP_269145a32571379f04175f2797d54a50_Traceguids;

+    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),uVar7,

+             &WPP_269145a32571379f04175f2797d54a50_Traceguids,(int)p_Var9);

+  }

+  else {

+    pcVar8 = (char *)0x70;

+    memset(this_00,0,0x70);

+    *(undefined ***)this_00 = &ChannelRequestCompleteWork::_vftable_;

+    *(undefined8 *)(this_00 + 0x20) = 0;

+    *(undefined8 *)(this_00 + 0x28) = 7;

+    *(undefined2 *)(this_00 + 0x10) = 0;

+    *(undefined8 *)(this_00 + 0x30) = 0;

+    *(undefined8 *)(this_00 + 0x38) = 0;

+    *(undefined8 *)(this_00 + 0x40) = 0;

+    *(undefined8 *)(this_00 + 0x48) = 7;

+    *(undefined2 *)(this_00 + 0x30) = 0;

+    *(undefined8 *)(this_00 + 0x54) = 0;

+    *(undefined8 *)(this_00 + 0x5c) = 0;

+    *(undefined8 *)(this_00 + 0x68) = 0;

+    *(long *)(this_00 + 0x50) = param_1;

+    local_80 = this_00;

+    uVar4 = ChannelRequestCompleteWork::SetCookie(this_00,param_2);

+    if ((int)uVar4 < 0) {

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x12,

+                 &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar4);

+      }

+      p_Var9 = (_GUID *)(ulonglong)uVar4;

+      pcVar8 = 

+      "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+      ;

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x87,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                 ,uVar4);

+      if ((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) goto LAB_0;

+      if ((WPP_GLOBAL_Control[0x1c] & 0x80) == 0) goto LAB_1;

+      uVar7 = 0x13;

+      goto LAB_3;

+    }

+    uVar4 = ChannelRequestCompleteWork::SetPlatform(this_00,*(NotificationPlatform **)(this + 0x10))

+    ;

+    if ((int)uVar4 < 0) {

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x14,

+                 &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar4);

+      }

+      p_Var9 = (_GUID *)(ulonglong)uVar4;

+      pcVar8 = 

+      "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+      ;

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x8b,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                 ,uVar4);

+      if ((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) goto LAB_0;

+      if ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0) {

+        uVar7 = 0x15;

+        goto LAB_3;

+      }

+    }

+    else if ((param_3 == (ushort *)0x0) ||

+            (uVar4 = ChannelRequestCompleteWork::SetChannel(this_00,param_3), -1 < (int)uVar4)) {

+      if ((param_4 == (ushort *)0x0) ||

+         (uVar4 = ChannelRequestCompleteWork::SetServerUri(this_00,param_4), -1 < (int)uVar4)) {

+        if (-1 < param_1) {

+          IVar5 = VariantTimeToSystemTime(param_5,&local_68);

+          if (IVar5 == 0) {

+            if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+                ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+              WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x1a,

+                      &WPP_269145a32571379f04175f2797d54a50_Traceguids);

+            }

+            uVar4 = GetLastError();

+            if (0 < (int)uVar4) {

+              uVar4 = uVar4 & 0xffff | 0x80070000;

+            }

+            if (-1 < (int)uVar4) {

+              uVar4 = 0x80004005;

+            }

+            p_Var9 = (_GUID *)(ulonglong)uVar4;

+            pcVar8 = 

+            "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+            ;

+            wil::details::in1diag3::_Log_Hr

+                      (unaff_retaddr,0x9f,

+                       "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                       ,uVar4);

+            if ((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) goto LAB_0;

+            if ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0) {

+              uVar7 = 0x1b;

+              goto LAB_3;

+            }

+            goto LAB_1;

+          }

+          *(undefined8 *)(this_00 + 0x54) = local_68._0_8_;

+          *(undefined8 *)(this_00 + 0x5c) = local_68._8_8_;

+        }

+        pcVar1 = *(code **)(*(longlong *)this + 0x40);

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

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

+        uVar4 = (*pcVar1)(this,&local_90);

+        if ((int)uVar4 < 0) {

+          if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+              ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+            WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x1e,

+                     &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar4);

+          }

+          p_Var9 = (_GUID *)(ulonglong)uVar4;

+          pcVar8 = 

+          "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+          ;

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0xa8,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                     ,uVar4);

+          if ((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) goto LAB_0;

+          if ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0) {

+            uVar7 = 0x1f;

+LAB_3:

+            p_Var9 = (_GUID *)(ulonglong)uVar4;

+            goto LAB_2;

+          }

+        }

+        else {

+          if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+              ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (4 < (byte)WPP_GLOBAL_Control[0x19])) {

+            pcVar8 = &WPP_269145a32571379f04175f2797d54a50_Traceguids;

+            WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x20,

+                    &WPP_269145a32571379f04175f2797d54a50_Traceguids);

+          }

+          local_80 = (ChannelRequestCompleteWork *)0x0;

+          uVar4 = ThreadPool::Submit(local_90,(WorkItem *)this_00);

+          if ((int)uVar4 < 0) {

+            if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+                ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+              WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x21,

+                       &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar4);

+            }

+            p_Var9 = (_GUID *)(ulonglong)uVar4;

+            pcVar8 = 

+            "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+            ;

+            wil::details::in1diag3::_Log_Hr

+                      (unaff_retaddr,0xad,

+                       "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                       ,uVar4);

+            if ((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) goto LAB_0;

+            if ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0) {

+              uVar7 = 0x22;

+              goto LAB_3;

+            }

+          }

+        }

+      }

+      else {

+        if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+           (((WPP_GLOBAL_Control[0x1c] & 0x40) != 0 && (1 < (byte)WPP_GLOBAL_Control[0x19])))) {

+          WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x18,

+                   &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar4);

+        }

+        p_Var9 = (_GUID *)(ulonglong)uVar4;

+        pcVar8 = 

+        "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+        ;

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x96,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                   ,uVar4);

+        if ((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) goto LAB_0;

+        if ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0) {

+          uVar7 = 0x19;

+          goto LAB_3;

+        }

+      }

+    }

+    else {

+      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+         (((WPP_GLOBAL_Control[0x1c] & 0x40) != 0 && (1 < (byte)WPP_GLOBAL_Control[0x19])))) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x16,

+                 &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar4);

+      }

+      p_Var9 = (_GUID *)(ulonglong)uVar4;

+      pcVar8 = 

+      "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+      ;

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x90,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                 ,uVar4);

+      if ((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) goto LAB_0;

+      if ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0) {

+        uVar7 = 0x17;

+        goto LAB_3;

+      }

+    }

+  }

+LAB_1:

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

+    p_Var9 = (_GUID *)(ulonglong)uVar4;

+    pcVar8 = &WPP_269145a32571379f04175f2797d54a50_Traceguids;

+    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x23,

+             &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar4);

+  }

+LAB_0:

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    if (5 < DAT_4) {

+      puVar6 = &DAT_4;

+      cVar3 = _tlgKeywordOn(0x18017e038,0x400000000000);

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

+        local_88[0] = *(undefined4 *)(this + 0x18);

+        local_78 = &local_68;

+        local_98[0] = uVar4;

+        local_70 = (_SYSTEMTIME *)param_3;

+        _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>,_tlgWrapSz<unsigned_short>,_tlgWrapperByRef<16>,_tlgWrapperByVal<4>_>

+                  ((_tlgProvider_t *)puVar6,&DAT_5,(_GUID *)pcVar8,p_Var9,

+                   (_tlgWrapperByVal<4> *)local_98,(_tlgWrapSz<unsigned_short> *)&local_70,

+                   (_tlgWrapperByRef<16> *)&local_78,(_tlgWrapperByVal<4> *)local_88);

+      }

+    }

+  }

+  else if (5 < DAT_4) {

+    puVar6 = &DAT_4;

+    cVar3 = _tlgKeywordOn(0x18017e038,0x400000000000);

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

+      local_70 = &local_68;

+      local_98[0] = uVar4;

+      local_78 = (_SYSTEMTIME *)param_3;

+      _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>,_tlgWrapSz<unsigned_short>,_tlgWrapperByRef<16>_>

+                ((_tlgProvider_t *)puVar6,&DAT_6,(_GUID *)pcVar8,p_Var9,

+                 (_tlgWrapperByVal<4> *)local_98,(_tlgWrapSz<unsigned_short> *)&local_78,

+                 (_tlgWrapperByRef<16> *)&local_70);

+    }

+  }

+  std::unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>::

+  ~unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>

+            ((unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>

+              *)&local_80);

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

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

+  return uVar4;

+}

+
```

## `ToastSession::Deliver`  (modified)

```diff
--- ToastSession::Deliver
+++ ToastSession::Deliver
@@ -1,2 +1,253 @@
-Failed to decompile wpncore.dll - .ProgramDB ToastSession::Deliver : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

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

+/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

+/* public: virtual long __cdecl ToastSession::Deliver(struct IWpnNotification * __ptr64,struct

+   ITransientNotificationDetails * __ptr64,struct INotificationHandler * __ptr64,struct

+   IWpnNotification * __ptr64,bool,bool,unsigned short const * __ptr64) __ptr64 */

+

+long __thiscall

+ToastSession::Deliver

+          (ToastSession *this,IWpnNotification *param_1,ITransientNotificationDetails *param_2,

+          INotificationHandler *param_3,IWpnNotification *param_4,bool param_5,bool param_6,

+          ushort *param_7)

+

+{

+  undefined8 *puVar1;

+  undefined8 uVar2;

+  longlong lVar3;

+  wchar_t *pwVar4;

+  longlong lVar5;

+  wchar_t *pwVar6;

+  undefined8 *puVar7;

+  IWpnNotification **ppIVar8;

+  wchar_t *pwVar9;

+  undefined1 auStackY_388 [32];

+  LPVOID *ppvVar10;

+  undefined4 uVar11;

+  undefined4 local_308;

+  undefined4 local_304;

+  undefined4 local_300;

+  undefined4 local_2fc;

+  undefined4 local_2f8;

+  undefined4 local_2f4;

+  undefined4 local_2f0;

+  long local_2ec [3];

+  LPVOID local_2e0;

+  LPVOID local_2d8;

+  LPVOID local_2d0;

+  LPVOID local_2c8;

+  IWpnNotification *local_2c0;

+  INotificationHandler *local_2b8;

+  IWpnNotification *local_2b0;

+  ITransientNotificationDetails *local_2a8;

+  undefined8 local_2a0;

+  EVENT_DESCRIPTOR local_298;

+  undefined8 local_288 [16];

+  wchar_t *local_208 [2];

+  undefined4 local_1f8;

+  undefined1 local_1c8 [104];

+  char *local_160;

+  undefined8 local_158;

+  undefined8 uStack_150;

+  _EVENT_DATA_DESCRIPTOR local_148;

+  undefined *local_138;

+  undefined4 local_130;

+  undefined4 local_12c;

+  undefined8 *local_128;

+  undefined8 local_120;

+  long *local_118;

+  undefined8 local_110;

+  undefined4 *local_108;

+  undefined8 local_100;

+  wchar_t *local_f8;

+  int local_f0;

+  undefined4 local_ec;

+  undefined4 *local_e8;

+  undefined8 local_e0;

+  undefined4 *local_d8;

+  undefined8 local_d0;

+  wchar_t *local_c8;

+  int local_c0;

+  undefined4 local_bc;

+  wchar_t *local_b8;

+  int local_b0;

+  undefined4 local_ac;

+  undefined1 *local_a8;

+  undefined8 local_a0;

+  char *local_98;

+  int local_90;

+  undefined4 local_8c;

+  char *local_88;

+  int local_80;

+  undefined4 local_7c;

+  undefined4 *local_78;

+  undefined8 local_70;

+  undefined4 *local_68;

+  undefined8 local_60;

+  ulonglong local_58;

+  

+  pwVar4 = (wchar_t *)param_7;

+  local_58 = __security_cookie ^ (ulonglong)auStackY_388;

+  local_2c0 = param_4;

+  local_304 = 0;

+  local_2b8 = param_3;

+  local_2b0 = param_1;

+  local_2a8 = param_2;

+  memset(local_208,0,0xb0);

+  local_308 = 0;

+  local_158 = 0;

+  uStack_150 = 0;

+  local_2c8 = (LPVOID)0x0;

+  local_2d0 = (LPVOID)0x0;

+  local_2d8 = (LPVOID)0x0;

+  local_2e0 = (LPVOID)0x0;

+  ppvVar10 = &local_2c8;

+  ppIVar8 = &local_2b0;

+  puVar7 = &local_158;

+  puVar1 = <lambda_7c7358bdb8ad2d702609f9ef1e5c76e9>::<lambda_7c7358bdb8ad2d702609f9ef1e5c76e9>

+                     (local_288,&local_2a8,puVar7,ppIVar8,ppvVar10,this + -8,local_208,&local_2b8,

+                      &local_2e0,&local_2c0,&param_5,&param_6,&local_2d0,&local_2d8,&local_308,

+                      &local_304);

+  uVar11 = (undefined4)((ulonglong)ppvVar10 >> 0x20);

+  uVar2 = <lambda_7c7358bdb8ad2d702609f9ef1e5c76e9>::operator()(puVar1);

+  if (((5 < DAT_0) && ((_DAT_18017e048 & 0x400000000000) != 0)) &&

+     (puVar1 = (undefined8 *)((ulonglong)DAT_1 & 0x400000000000), puVar1 == DAT_1))

+  {

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

+              ((FeatureImpl<__WilFeatureTraits_Feature_40007690> *)

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

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

+               (__uint64)ppIVar8);

+    local_300 = 1;

+    if ((pwVar4 == (wchar_t *)0x0) || (local_2fc = 1, *pwVar4 == 0)) {

+      local_2fc = 0;

+    }

+    pwVar6 = *(wchar_t **)(this + 0x38);

+    pwVar9 = *(wchar_t **)(this + 0x20);

+    local_2f8 = local_308;

+    local_2f4 = local_1f8;

+    if ((pwVar4 == (wchar_t *)0x0) || (*pwVar4 == 0)) {

+      pwVar4 = local_208[0];

+    }

+    local_f8 = (wchar_t *)CensorFilePath((ushort *)pwVar4);

+    local_2f0 = local_304;

+    local_2a0 = 0x1000000;

+    local_68 = &local_300;

+    local_60 = 4;

+    local_78 = &local_2fc;

+    local_70 = 4;

+    lVar3 = -1;

+    if (local_160 == (char *)0x0) {

+      local_88 = "";

+      local_80 = 1;

+    }

+    else {

+      lVar5 = -1;

+      do {

+        lVar5 = lVar5 + 1;

+      } while (local_160[lVar5] != '\0');

+      local_80 = (int)lVar5 + 1;

+      local_88 = local_160;

+    }

+    local_7c = 0;

+    if (local_160 == (char *)0x0) {

+      local_160 = "";

+      local_90 = 1;

+    }

+    else {

+      lVar5 = -1;

+      do {

+        lVar5 = lVar5 + 1;

+      } while (local_160[lVar5] != '\0');

+      local_90 = (int)lVar5 + 1;

+    }

+    local_8c = 0;

+    local_a8 = local_1c8;

+    local_a0 = 0x10;

+    local_f0 = 2;

+    if (pwVar6 == (wchar_t *)0x0) {

+      pwVar6 = L"";

+      local_b0 = local_f0;

+    }

+    else {

+      lVar5 = -1;

+      do {

+        lVar5 = lVar5 + 1;

+      } while (pwVar6[lVar5] != L'\0');

+      local_b0 = (int)lVar5 * 2 + 2;

+    }

+    local_ac = 0;

+    if (pwVar9 == (wchar_t *)0x0) {

+      pwVar9 = L"";

+      local_c0 = local_f0;

+    }

+    else {

+      lVar5 = -1;

+      do {

+        lVar5 = lVar5 + 1;

+      } while (pwVar9[lVar5] != L'\0');

+      local_c0 = (int)lVar5 * 2 + 2;

+    }

+    local_bc = 0;

+    local_d8 = &local_2f8;

+    local_d0 = 4;

+    local_e8 = &local_2f4;

+    local_e0 = 4;

+    if (local_f8 == (wchar_t *)0x0) {

+      local_f8 = L"";

+    }

+    else {

+      do {

+        lVar3 = lVar3 + 1;

+      } while (local_f8[lVar3] != L'\0');

+      local_f0 = (int)lVar3 * 2 + 2;

+    }

+    local_ec = 0;

+    local_108 = &local_2f0;

+    local_100 = 4;

+    local_118 = local_2ec;

+    local_110 = 4;

+    local_128 = &local_2a0;

+    local_120 = 8;

+    local_298.Id = 0;

+    local_298.Version = '\0';

+    local_298.Channel = '\v';

+    local_298.Level = '\x05';

+    local_298.Opcode = '\0';

+    local_298.Task = 0;

+    local_298.Keyword = 0x400000000000;

+    local_148.Ptr = (ULONGLONG)PTR_DAT_2;

+    local_148.Size = (ULONG)*(ushort *)PTR_DAT_2;

+    local_148.Reserved = 2;

+    local_138 = &DAT_3;

+    local_130 = 0xef;

+    local_12c = 1;

+    local_2ec[1] = 0x4306;

+    puVar1 = DAT_4;

+    local_2ec[0] = (long)uVar2;

+    local_c8 = pwVar9;

+    local_b8 = pwVar6;

+    local_98 = local_160;

+    EventWriteTransfer((REGHANDLE)DAT_4,&local_298,(LPCGUID)0x0,(LPCGUID)0x0,0xf,&local_148)

+    ;

+  }

+  if ((DAT_5 & 1) != 0) {

+    McTemplateU0dzqj_EventWriteTransfer

+              (puVar1,(PCEVENT_DESCRIPTOR)&WPNUI_NEW_TOAST_NOTIFICATION_DELIVERED_UPDATED,local_1f8,

+               local_208[0],CONCAT44(uVar11,*(undefined4 *)(this + 8)),&local_158);

+  }

+  if (local_2e0 != (LPVOID)0x0) {

+    CoTaskMemFree(local_2e0);

+  }

+  if (local_2d8 != (LPVOID)0x0) {

+    CoTaskMemFree(local_2d8);

+  }

+  if (local_2d0 != (LPVOID)0x0) {

+    CoTaskMemFree(local_2d0);

+  }

+  if (local_2c8 != (LPVOID)0x0) {

+    CoTaskMemFree(local_2c8);

+  }

+  return (long)uVar2;

+}

+
```

## `AppEndpoint::LogChannelRequestedByPlatform`  (modified)

```diff
--- AppEndpoint::LogChannelRequestedByPlatform
+++ AppEndpoint::LogChannelRequestedByPlatform
@@ -1,2 +1,149 @@
-Failed to decompile wpncore.dll - .ProgramDB AppEndpoint::LogChannelRequestedByPlatform : 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 AppEndpoint::LogChannelRequestedByPlatform(bool,bool,long,unsigned short

+   const * __ptr64,unsigned short const * __ptr64) __ptr64 */

+

+void __thiscall

+AppEndpoint::LogChannelRequestedByPlatform

+          (AppEndpoint *this,bool param_1,bool param_2,long param_3,ushort *param_4,ushort *param_5)

+

+{

+  code *pcVar1;

+  longlong *plVar2;

+  bool bVar3;

+  int iVar4;

+  long lVar5;

+  NotificationPlatform *pNVar6;

+  void *unaff_retaddr;

+  ushort *local_res8;

+  bool local_res10 [8];

+  bool local_res18 [8];

+  long local_res20 [2];

+  longlong *local_68;

+  ushort *local_60;

+  longlong *local_58;

+  longlong local_50;

+  ushort *local_48;

+  wchar_t *local_40;

+  wchar_t *local_38 [3];

+  

+  local_res10[0] = param_1;

+  local_res18[0] = param_2;

+  local_res20[0] = param_3;

+  Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+  if (local_50 == 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x118b,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fc1fefb);

+  }

+  local_68 = (longlong *)0x0;

+  pNVar6 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_50);

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

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

+  iVar4 = (**(code **)**(undefined8 **)(pNVar6 + 0xa8))

+                    (*(undefined8 **)(pNVar6 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

+                     &local_68);

+  if ((-1 < iVar4) && (local_68 == (longlong *)0x0)) {

+    iVar4 = -0x7fc1fefb;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x402,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+               ,-0x7fc1fefb);

+  }

+  plVar2 = local_68;

+  if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x118e,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar4);

+  }

+  local_58 = (longlong *)0x0;

+  pcVar1 = *(code **)(*local_68 + 0xc0);

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

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

+  iVar4 = (*pcVar1)(plVar2,param_4,&local_58);

+  plVar2 = local_58;

+  if (iVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x1191,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar4);

+  }

+  local_60 = (ushort *)0x0;

+  pcVar1 = *(code **)(*local_58 + 0x30);

+  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>_>

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_60,(ushort *)0x0);

+  iVar4 = (*pcVar1)(plVar2,&local_60);

+  if (-1 < iVar4) {

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

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                        ::__l2::impl);

+    if (bVar3) {

+      local_res8 = (ushort *)CONCAT44(local_res8._4_4_,1);

+      lVar5 = WnpCloudEndpointResolver::ResolveCloudForPFN

+                        (param_4,(_WNS_CLOUD_INSTANCE *)&local_res8);

+      if (lVar5 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x1199,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                   ,lVar5);

+      }

+      local_48 = local_60;

+      local_38[0] = L"Unknown";

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

+        param_5 = (ushort *)L"Unknown";

+      }

+      local_40 = (wchar_t *)param_5;

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

+        local_38[0] = (wchar_t *)CensorFilePath(param_4);

+      }

+      WpncoreTelemetry::

+      ChannelRequestedByPlatformWithCloud<bool&___ptr64,bool&___ptr64,long&___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_long>

+                (local_res10,local_res18,local_res20,(ushort **)local_38,(ushort **)&local_40,

+                 &local_48,(ulong *)&local_res8);

+    }

+    else {

+      local_res8 = local_60;

+      local_40 = L"Unknown";

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

+        param_5 = (ushort *)L"Unknown";

+      }

+      local_38[0] = (wchar_t *)param_5;

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

+        local_40 = (wchar_t *)CensorFilePath(param_4);

+      }

+      WpncoreTelemetry::

+      ChannelRequestedByPlatform<bool&___ptr64,bool&___ptr64,long&___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_short*___ptr64>

+                (local_res10,local_res18,local_res20,(ushort **)&local_40,(ushort **)local_38,

+                 &local_res8);

+    }

+    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_60);

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

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

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

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

+    Wns::

+    Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+    ::StrongRef::Release((StrongRef *)&local_50);

+    return;

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_Throw_Hr

+            (unaff_retaddr,0x1194,

+             "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+             ,iVar4);

+}

+
```

## `McTemplateU0qd_EventWriteTransfer`  (modified)

```diff
--- McTemplateU0qd_EventWriteTransfer
+++ ScheduledToasts::Add
@@ -1,8 +1,2 @@
-

-void McTemplateU0qd_EventWriteTransfer

-               (undefined8 param_1,PCEVENT_DESCRIPTOR param_2,undefined8 param_3,undefined4 param_4)

-

-{

-  return;

-}

-

+Failed to decompile wpncore.dll - .ProgramDB ScheduledToasts::Add : Error: Decompile error: 
+Marshaling error: Did not see expected closing element
```

## `AppEndpoint::CloseChannelInternal`  (modified)

```diff
--- AppEndpoint::CloseChannelInternal
+++ AppEndpoint::CloseChannelInternal
@@ -1,2 +1,218 @@
-Failed to decompile wpncore.dll - .ProgramDB AppEndpoint::CloseChannelInternal : 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 AppEndpoint::CloseChannelInternal(unsigned short const * __ptr64,unsigned

+   short const * __ptr64,unsigned short const * __ptr64) __ptr64 */

+

+long __thiscall

+AppEndpoint::CloseChannelInternal(AppEndpoint *this,ushort *param_1,ushort *param_2,ushort *param_3)

+

+{

+  short sVar1;

+  short sVar2;

+  longlong *plVar3;

+  bool bVar4;

+  long lVar5;

+  int iVar6;

+  NotificationPlatform *pNVar7;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *pFVar8;

+  void *pvVar9;

+  ushort *puVar10;

+  longlong lVar11;

+  void *unaff_retaddr;

+  undefined1 auStack_8e8 [32];

+  int local_8c8;

+  _WNS_CLOUD_INSTANCE local_8c0;

+  int local_8b8;

+  _WNS_CLOUD_INSTANCE local_8b4;

+  longlong local_8b0;

+  wchar_t *local_8a8;

+  ushort *local_8a0;

+  short *local_898 [2];

+  undefined1 local_888 [2144];

+  ulonglong local_28;

+  

+  local_28 = __security_cookie ^ (ulonglong)auStack_8e8;

+  puVar10 = param_2;

+  local_8a8 = (wchar_t *)param_3;

+  local_8a0 = param_2;

+  Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+  if (local_8b0 == 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x206,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fc1fefb);

+  }

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

+            ((FeatureImpl<__WilFeatureTraits_Feature_37134468> *)

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

+              ::__l2::impl,true,(ReportingKind)puVar10,(__uint64)param_3);

+  bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4152879416>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_4152879416> *)

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

+                      ::__l2::impl);

+  if (bVar4) {

+    lVar5 = SetNotificationSinkInternal(this,param_1,param_2,(IWpnNotificationSink *)0x0);

+    if (lVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x217,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar5);

+    }

+  }

+  else {

+    iVar6 = (**(code **)(*(longlong *)this + 0x38))();

+    if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x21b,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar6);

+    }

+  }

+  pNVar7 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_8b0);

+  if (*(ChannelRequests **)(pNVar7 + 0x18) == (ChannelRequests *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x222,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fc1fefb);

+  }

+  local_8b8 = 0;

+  lVar5 = ChannelRequests::CheckRequestPending

+                    (*(ChannelRequests **)(pNVar7 + 0x18),param_2,&local_8b8);

+  if (lVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x225,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,lVar5);

+  }

+  if (local_8b8 != 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x226,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fc1fefd);

+  }

+  pNVar7 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_8b0);

+  plVar3 = *(longlong **)(pNVar7 + 0xd8);

+  if (plVar3 == (longlong *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x229,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fc1fefb);

+  }

+  memset(local_888,0,0x860);

+  iVar6 = (**(code **)(*plVar3 + 8))(plVar3,param_2,local_888);

+  if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x22f,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar6);

+  }

+  ConvertUtf8ToUtf16((char *)local_898);

+  lVar11 = (longlong)local_8a8 - (longlong)local_898[0];

+  do {

+    sVar1 = *local_898[0];

+    sVar2 = *(short *)((longlong)local_898[0] + lVar11);

+    if (sVar1 != sVar2) break;

+    local_898[0] = local_898[0] + 1;

+  } while (sVar2 != 0);

+  if (sVar1 != sVar2) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x232,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7ff8ffa9);

+  }

+  pNVar7 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_8b0);

+  if (*(CtaManager **)(pNVar7 + 0x188) == (CtaManager *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x236,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,-0x7fc1fefb);

+  }

+  lVar5 = CtaManager::RemoveApp(*(CtaManager **)(pNVar7 + 0x188),param_2);

+  if (lVar5 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x237,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,lVar5);

+  }

+  iVar6 = (**(code **)(*plVar3 + 0x20))(plVar3);

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

+            ::__l2::impl;

+  local_8b8 = iVar6;

+  bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                      ::__l2::impl);

+  if (bVar4) {

+    local_8b4 = 0;

+    lVar5 = WnpCloudEndpointResolver::ResolveCloudForPFN(param_2,&local_8b4);

+    pvVar9 = unaff_retaddr;

+    if (lVar5 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x23e,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar5);

+    }

+    if ((DAT_0 & 2) != 0) {

+      local_8c0 = local_8b4;

+      local_8c8 = iVar6;

+      McTemplateU0zzdq_EventWriteTransfer

+                (pvVar9,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REMOVED_FOR_CLOUD_INSTANCE,local_8a8,

+                 (wchar_t *)param_2);

+    }

+  }

+  else if ((DAT_0 & 2) != 0) {

+    local_8c8 = iVar6;

+    McTemplateU0zzd_EventWriteTransfer

+              (pFVar8,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REMOVED,local_8a8,(wchar_t *)param_2);

+  }

+  if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x245,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar6);

+  }

+  wistd::unique_ptr<_GUID,wil::process_heap_deleter>::reset

+            ((unique_ptr<_GUID,wil::process_heap_deleter> *)local_898,(_GUID *)0x0);

+  Wns::

+  Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+  ::StrongRef::Release((StrongRef *)&local_8b0);

+  bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                      ::__l2::impl);

+  if (bVar4) {

+    local_8b4 = 0;

+    lVar5 = WnpCloudEndpointResolver::ResolveCloudForPFN(param_2,&local_8b4);

+    if (lVar5 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x24f,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar5);

+    }

+    local_8a0 = CensorFilePath(param_2);

+    WpncoreTelemetry::

+    CloseChannelAppRequestForCloud<long&___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64&___ptr64,unsigned_long>

+              (&local_8b8,&local_8a0,(ushort **)&local_8a8,&local_8b4);

+  }

+  else {

+    local_8a0 = CensorFilePath(param_2);

+    WpncoreTelemetry::

+    CloseChannelAppRequest<long&___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64&___ptr64>

+              (&local_8b8,&local_8a0,(ushort **)&local_8a8);

+  }

+  return iVar6;

+}

+
```

## `AppEndpoint::CreateChannelRequestInternal`  (modified)

```diff
--- AppEndpoint::CreateChannelRequestInternal
+++ AppEndpoint::CreateChannelRequestInternal
@@ -1,2 +1,136 @@
-Failed to decompile wpncore.dll - .ProgramDB AppEndpoint::CreateChannelRequestInternal : 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 AppEndpoint::CreateChannelRequestInternal(unsigned short const *

+   __ptr64,struct INotificationHandler * __ptr64,unsigned short const * __ptr64,unsigned short const

+   * __ptr64,struct IWpnChannelRequest * __ptr64) __ptr64 */

+

+long __thiscall

+AppEndpoint::CreateChannelRequestInternal

+          (AppEndpoint *this,ushort *param_1,INotificationHandler *param_2,ushort *param_3,

+          ushort *param_4,IWpnChannelRequest *param_5)

+

+{

+  code *pcVar1;

+  bool bVar2;

+  int iVar3;

+  long lVar4;

+  wchar_t *pwVar5;

+  void *unaff_retaddr;

+  bool local_res18 [8];

+  ushort *local_res20;

+  bool local_88 [4];

+  _WNS_CLOUD_INSTANCE local_84;

+  long local_80 [2];

+  ushort *local_78;

+  wchar_t *local_70;

+  wchar_t *local_68 [2];

+  wchar_t *local_58 [2];

+  wchar_t *local_48 [4];

+  

+  local_80[0] = 0;

+  local_88[0] = false;

+  local_res18[0] = false;

+  local_70 = (wchar_t *)0x0;

+  local_78 = (ushort *)0x0;

+  pcVar1 = *(code **)(*(longlong *)param_2 + 0x18);

+  local_res20 = param_3;

+  local_68[0] = (wchar_t *)param_3;

+  wil::details::

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

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

+           *)&local_78,(ushort *)0x0);

+  iVar3 = (*pcVar1)(param_2);

+  if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x12bd,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar3);

+  }

+  pcVar1 = *(code **)(*(longlong *)param_2 + 0x30);

+  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>_>

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_70,(ushort *)0x0);

+  iVar3 = (*pcVar1)(param_2,&local_70);

+  if (-1 < iVar3) {

+    lVar4 = CreateChannelRequestHelper

+                      (this,param_1,param_2,param_3,param_4,param_5,local_88,local_res18);

+    if (-1 < lVar4) {

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

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                          ::__l2::impl);

+      if (bVar2) {

+        local_84 = 1;

+        lVar4 = WnpCloudEndpointResolver::ResolveCloudForPFN(local_78,&local_84);

+        if (lVar4 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x12e2,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                     ,lVar4);

+        }

+        local_58[0] = L"Unknown";

+        local_68[0] = L"Unknown";

+        if (local_70 != (wchar_t *)0x0) {

+          local_68[0] = local_70;

+        }

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

+          param_3 = (ushort *)L"Unknown";

+        }

+        local_48[0] = (wchar_t *)param_3;

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

+          local_58[0] = (wchar_t *)CensorFilePath(local_78);

+        }

+        WpncoreTelemetry::

+        ChannelRequestedByPlatformWithCloud<bool&___ptr64,bool&___ptr64,long&___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_long>

+                  (local_88,local_res18,local_80,(ushort **)local_58,(ushort **)local_48,

+                   (ushort **)local_68,&local_84);

+      }

+      else {

+        pwVar5 = L"Unknown";

+        local_58[0] = L"Unknown";

+        if (local_70 != (wchar_t *)0x0) {

+          local_58[0] = local_70;

+        }

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

+          param_3 = (ushort *)L"Unknown";

+        }

+        local_48[0] = (wchar_t *)param_3;

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

+          pwVar5 = (wchar_t *)CensorFilePath(local_78);

+        }

+        local_68[0] = pwVar5;

+        WpncoreTelemetry::

+        ChannelRequestedByPlatform<bool&___ptr64,bool&___ptr64,long&___ptr64,unsigned_short_const*___ptr64,unsigned_short_const*___ptr64,unsigned_short*___ptr64>

+                  (local_88,local_res18,local_80,(ushort **)local_68,(ushort **)local_48,

+                   (ushort **)local_58);

+      }

+      wil::details::

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

+      ::

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

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

+                  *)&local_78);

+      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_70);

+      return local_80[0];

+    }

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x12c8,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,lVar4);

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_Throw_Hr

+            (unaff_retaddr,0x12bf,

+             "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+             ,iVar3);

+}

+
```

## `AppEndpoint::CreateSecondaryChannelRequest`  (modified)

```diff
--- AppEndpoint::CreateSecondaryChannelRequest
+++ AppEndpoint::CreateChannelRequest
@@ -1,508 +1,431 @@
 

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

    guard_dispatch_icall */

-/* public: virtual long __cdecl AppEndpoint::CreateSecondaryChannelRequest(unsigned short const *

-   __ptr64,unsigned short const * __ptr64,unsigned short const * __ptr64,unsigned short const *

-   __ptr64,struct IWpnChannelRequest * __ptr64) __ptr64 */

+/* public: virtual long __cdecl AppEndpoint::CreateChannelRequest(unsigned short const *

+   __ptr64,unsigned short const * __ptr64,struct IWpnChannelRequest * __ptr64) __ptr64 */

 

 long __thiscall

-AppEndpoint::CreateSecondaryChannelRequest

-          (AppEndpoint *this,ushort *param_1,ushort *param_2,ushort *param_3,ushort *param_4,

-          IWpnChannelRequest *param_5)

+AppEndpoint::CreateChannelRequest

+          (AppEndpoint *this,ushort *param_1,ushort *param_2,IWpnChannelRequest *param_3)

 

 {

   short sVar1;

   short sVar2;

   code *pcVar3;

   INotificationHandler *pIVar4;

   bool bVar5;

   long lVar6;

   int iVar7;

   longlong lVar8;

   NotificationPlatform *pNVar9;

   short *psVar10;

   FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *pFVar11;

   void *pvVar12;

-  longlong lVar13;

-  ReportingKind RVar14;

-  ushort *puVar15;

-  ushort *puVar16;

+  ReportingKind RVar13;

+  ushort *puVar14;

+  IWpnChannelRequest *pIVar15;

   void *unaff_retaddr;

   _WNS_CLOUD_INSTANCE local_58 [2];

-  longlong *local_50;

+  ushort *local_50;

   INotificationHandler *local_48;

-  INotificationHandler *local_40;

+  ushort *local_40;

   short *local_38;

   longlong local_30;

   srwlock *local_28 [2];

   

-  puVar15 = param_2;

-  puVar16 = param_3;

+  puVar14 = param_2;

+  pIVar15 = param_3;

   bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4152879416>::__private_IsEnabled

                     ((FeatureImpl<__WilFeatureTraits_Feature_4152879416> *)

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

                       ::__l2::impl);

   if (bVar5) {

     AcquireSRWLockShared((PSRWLOCK)&Wns::s_platformLock);

     local_28[0] = &Wns::s_platformLock;

     if (Wns::s_platformShutdown != false) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x12e,

+                (unaff_retaddr,0x1303,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7fc1fefb);

     }

-    RVar14 = (ReportingKind)CONCAT71((int7)((ulonglong)puVar15 >> 8),3);

+    RVar13 = (ReportingKind)CONCAT71((int7)((ulonglong)puVar14 >> 8),3);

     wil::details::FeatureImpl<__WilFeatureTraits_Feature_40169358>::ReportUsage

               ((FeatureImpl<__WilFeatureTraits_Feature_40169358> *)

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

-                ::__l2::impl,true,RVar14,(__uint64)puVar16);

+                ::__l2::impl,true,RVar13,(__uint64)pIVar15);

     if (param_2 == (ushort *)0x0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x136,

+                (unaff_retaddr,0x130b,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7fffbffd);

     }

-    if (param_3 == (ushort *)0x0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x137,

+    if (param_3 == (IWpnChannelRequest *)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x130c,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7fffbffd);

     }

-    if (param_4 == (ushort *)0x0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x138,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,-0x7fffbffd);

-    }

-    if (param_5 == (IWpnChannelRequest *)0x0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x139,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,-0x7fffbffd);

-    }

     lVar8 = -1;

-    lVar13 = -1;

-    do {

-      lVar13 = lVar13 + 1;

-    } while (param_2[lVar13] != 0);

-    if (lVar13 == 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x13a,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,-0x7ff8ffa9);

-    }

-    lVar13 = -1;

-    do {

-      lVar13 = lVar13 + 1;

-    } while (param_3[lVar13] != 0);

-    if (lVar13 == 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x13b,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,-0x7ff8ffa9);

-    }

     do {

       lVar8 = lVar8 + 1;

-    } while (param_4[lVar8] != 0);

+    } while (param_2[lVar8] != 0);

     if (lVar8 == 0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x13c,

+                (unaff_retaddr,0x130d,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7ff8ffa9);

     }

     wil::details::FeatureImpl<__WilFeatureTraits_Feature_40444302>::ReportUsage

               ((FeatureImpl<__WilFeatureTraits_Feature_40444302> *)

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

-                ::__l2::impl,true,RVar14,(__uint64)puVar16);

+                ::__l2::impl,true,RVar13,(__uint64)pIVar15);

     pFVar11 = &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61353903>::GetImpl(void)'

                ::__l2::impl;

     bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

                       ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

                         ::__l2::impl);

     if (bVar5) {

       local_58[0] = 0;

       lVar6 = WnpCloudEndpointResolver::ResolveCloudForPFN(param_2,local_58);

       pvVar12 = unaff_retaddr;

       if (lVar6 < 0) {

         wil::details::in1diag3::_Log_Hr

-                  (unaff_retaddr,0x146,

+                  (unaff_retaddr,0x1317,

                    "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                    ,lVar6);

       }

       if ((DAT_0 & 1) != 0) {

         McTemplateU0zzd_EventWriteTransfer

                   (pvVar12,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST_FOR_CLOUD_INSTANCE,

                    (wchar_t *)param_1,(wchar_t *)param_2);

       }

     }

     else if ((DAT_0 & 1) != 0) {

       McTemplateU0zz_EventWriteTransfer

                 (pFVar11,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST,(wchar_t *)param_1,

                  (wchar_t *)param_2);

     }

     Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

     if (local_30 == 0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x14f,

+                (unaff_retaddr,0x1320,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7fc1fefb);

     }

-    local_50 = (longlong *)0x0;

+    local_40 = (ushort *)0x0;

     pNVar9 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_30);

-    if (local_50 != (longlong *)0x0) {

-      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

-                ((com_ptr<INotificationDatabase4> *)&local_50);

-    }

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

+              ((ComPtr<DownloadTaskManager> *)&local_40);

     iVar7 = (**(code **)**(undefined8 **)(pNVar9 + 0xa8))

                       (*(undefined8 **)(pNVar9 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

-                       &local_50);

-    if ((-1 < iVar7) && (local_50 == (longlong *)0x0)) {

+                       &local_40);

+    if ((-1 < iVar7) && (local_40 == (ushort *)0x0)) {

       iVar7 = -0x7fc1fefb;

       wil::details::in1diag3::Return_Hr

                 (unaff_retaddr,0x402,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

                  ,-0x7fc1fefb);

     }

-    if (iVar7 < 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x152,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,iVar7);

-    }

-    local_40 = (INotificationHandler *)0x0;

-    iVar7 = (**(code **)(*local_50 + 0xc0))(local_50,param_2,&local_40);

-    pIVar4 = local_40;

-    if (iVar7 < 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x155,

+    puVar14 = local_40;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x1323,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_48 = (INotificationHandler *)0x0;

+    pcVar3 = *(code **)(*(longlong *)local_40 + 0xc0);

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

+    iVar7 = (*pcVar3)(puVar14,param_2,&local_48);

+    pIVar4 = local_48;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x1326,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,iVar7);

     }

     local_38 = (short *)0x0;

-    pcVar3 = *(code **)(*(longlong *)local_40 + 0x30);

+    pcVar3 = *(code **)(*(longlong *)local_48 + 0x30);

     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>_>

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

              *)&local_38,(ushort *)0x0);

     iVar7 = (*pcVar3)(pIVar4,&local_38);

-    pIVar4 = local_40;

-    if (iVar7 < 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x158,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,iVar7);

-    }

-    local_48 = (INotificationHandler *)0x0;

+    pIVar4 = local_48;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x1329,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_50 = (ushort *)0x0;

     psVar10 = local_38;

     do {

       sVar1 = *psVar10;

       sVar2 = *(short *)((longlong)psVar10 + ((longlong)L"app:immersive" - (longlong)local_38));

       if (sVar1 != sVar2) break;

       psVar10 = psVar10 + 1;

     } while (sVar2 != 0);

     if (sVar1 == sVar2) {

       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>_>

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

-               *)&local_48,(ushort *)0x0);

-      lVar6 = WpnDatabaseHelpers::GetPackageFamilyNameFromSecondaryId(param_2,(ushort **)&local_48);

+               *)&local_50,(ushort *)0x0);

+      lVar6 = ParseAppUserModelId(param_2,&local_50,(ushort **)0x0);

       if (lVar6 < 0) {

                     /* WARNING: Subroutine does not return */

         wil::details::in1diag3::_Throw_Hr

-                  (unaff_retaddr,0x15d,

+                  (unaff_retaddr,0x132e,

                    "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                    ,lVar6);

       }

     }

     else {

-      pcVar3 = *(code **)(*(longlong *)local_40 + 0x38);

+      pcVar3 = *(code **)(*(longlong *)local_48 + 0x38);

       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>_>

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

-               *)&local_48,(ushort *)0x0);

-      iVar7 = (*pcVar3)(pIVar4,&local_48);

+               *)&local_50,(ushort *)0x0);

+      iVar7 = (*pcVar3)(pIVar4,&local_50);

       if (iVar7 < 0) {

                     /* WARNING: Subroutine does not return */

         wil::details::in1diag3::_Throw_Hr

-                  (unaff_retaddr,0x162,

+                  (unaff_retaddr,0x1337,

                    "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                    ,iVar7);

       }

     }

-    lVar6 = CreateChannelRequestInternal(this,(ushort *)local_48,local_40,param_3,param_4,param_5);

+    lVar6 = CreateChannelRequestInternal(this,local_50,local_48,(ushort *)0x0,(ushort *)0x0,param_3)

+    ;

     if (lVar6 < 0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x16a,

+                (unaff_retaddr,0x133f,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,lVar6);

     }

     wil::details::

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

     ::

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

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

-                *)&local_48);

+                *)&local_50);

     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_38);

-    if (local_40 != (INotificationHandler *)0x0) {

-      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

-                ((com_ptr<INotificationDatabase4> *)&local_40);

-    }

-    if (local_50 != (longlong *)0x0) {

-      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

-                ((com_ptr<INotificationDatabase4> *)&local_50);

-    }

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

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

+              ((ComPtr<DownloadTaskManager> *)&local_40);

     Wns::

     Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

     ::StrongRef::Release((StrongRef *)&local_30);

     wil::details::

     unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

     ::

     ~unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

               ((unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

                 *)local_28);

   }

   else {

-    RVar14 = (ReportingKind)CONCAT71((int7)((ulonglong)puVar15 >> 8),3);

+    RVar13 = (ReportingKind)CONCAT71((int7)((ulonglong)puVar14 >> 8),3);

     wil::details::FeatureImpl<__WilFeatureTraits_Feature_40169358>::ReportUsage

               ((FeatureImpl<__WilFeatureTraits_Feature_40169358> *)

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

-                ::__l2::impl,true,RVar14,(__uint64)puVar16);

+                ::__l2::impl,true,RVar13,(__uint64)pIVar15);

     if (param_2 == (ushort *)0x0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x174,

+                (unaff_retaddr,0x134a,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7fffbffd);

     }

-    if (param_3 == (ushort *)0x0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x175,

+    if (param_3 == (IWpnChannelRequest *)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x134b,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7fffbffd);

     }

-    if (param_4 == (ushort *)0x0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x176,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,-0x7fffbffd);

-    }

-    if (param_5 == (IWpnChannelRequest *)0x0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x177,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,-0x7fffbffd);

-    }

     lVar8 = -1;

-    lVar13 = -1;

-    do {

-      lVar13 = lVar13 + 1;

-    } while (param_2[lVar13] != 0);

-    if (lVar13 == 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x178,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,-0x7ff8ffa9);

-    }

-    lVar13 = -1;

-    do {

-      lVar13 = lVar13 + 1;

-    } while (param_3[lVar13] != 0);

-    if (lVar13 == 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x179,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,-0x7ff8ffa9);

-    }

     do {

       lVar8 = lVar8 + 1;

-    } while (param_4[lVar8] != 0);

+    } while (param_2[lVar8] != 0);

     if (lVar8 == 0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x17a,

+                (unaff_retaddr,0x134c,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7ff8ffa9);

     }

     wil::details::FeatureImpl<__WilFeatureTraits_Feature_40444302>::ReportUsage

               ((FeatureImpl<__WilFeatureTraits_Feature_40444302> *)

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

-                ::__l2::impl,true,RVar14,(__uint64)puVar16);

+                ::__l2::impl,true,RVar13,(__uint64)pIVar15);

     pFVar11 = &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_61353903>::GetImpl(void)'

                ::__l2::impl;

     bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

                       ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

                         ::__l2::impl);

     if (bVar5) {

       local_58[0] = 0;

       lVar6 = WnpCloudEndpointResolver::ResolveCloudForPFN(param_2,local_58);

       pvVar12 = unaff_retaddr;

       if (lVar6 < 0) {

         wil::details::in1diag3::_Log_Hr

-                  (unaff_retaddr,0x184,

+                  (unaff_retaddr,0x1356,

                    "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                    ,lVar6);

       }

       if ((DAT_0 & 1) != 0) {

         McTemplateU0zzd_EventWriteTransfer

                   (pvVar12,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST_FOR_CLOUD_INSTANCE,

                    (wchar_t *)param_1,(wchar_t *)param_2);

       }

     }

     else if ((DAT_0 & 1) != 0) {

       McTemplateU0zz_EventWriteTransfer

                 (pFVar11,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST,(wchar_t *)param_1,

                  (wchar_t *)param_2);

     }

     Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

     if (local_30 == 0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x18d,

+                (unaff_retaddr,0x135f,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,-0x7fc1fefb);

     }

-    local_50 = (longlong *)0x0;

+    local_50 = (ushort *)0x0;

     pNVar9 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_30);

-    if (local_50 != (longlong *)0x0) {

-      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

-                ((com_ptr<INotificationDatabase4> *)&local_50);

-    }

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

+              ((ComPtr<DownloadTaskManager> *)&local_50);

     iVar7 = (**(code **)**(undefined8 **)(pNVar9 + 0xa8))

                       (*(undefined8 **)(pNVar9 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

                        &local_50);

-    if ((-1 < iVar7) && (local_50 == (longlong *)0x0)) {

+    if ((-1 < iVar7) && (local_50 == (ushort *)0x0)) {

       iVar7 = -0x7fc1fefb;

       wil::details::in1diag3::Return_Hr

                 (unaff_retaddr,0x402,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

                  ,-0x7fc1fefb);

     }

-    if (iVar7 < 0) {

-                    /* WARNING: Subroutine does not return */

-      wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,400,

+    puVar14 = local_50;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x1362,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,iVar7);

     }

     local_48 = (INotificationHandler *)0x0;

-    iVar7 = (**(code **)(*local_50 + 0xc0))(local_50,param_2,&local_48);

+    pcVar3 = *(code **)(*(longlong *)local_50 + 0xc0);

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

+    iVar7 = (*pcVar3)(puVar14,param_2,&local_48);

     pIVar4 = local_48;

     if (iVar7 < 0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x193,

+                (unaff_retaddr,0x1365,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,iVar7);

     }

     local_38 = (short *)0x0;

     pcVar3 = *(code **)(*(longlong *)local_48 + 0x30);

     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>_>

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

              *)&local_38,(ushort *)0x0);

     iVar7 = (*pcVar3)(pIVar4,&local_38);

     pIVar4 = local_48;

     if (iVar7 < 0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x196,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

-                 ,iVar7);

-    }

-    local_40 = (INotificationHandler *)0x0;

+                (unaff_retaddr,0x1368,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_40 = (ushort *)0x0;

     psVar10 = local_38;

     do {

       sVar1 = *psVar10;

       sVar2 = *(short *)((longlong)psVar10 + ((longlong)L"app:immersive" - (longlong)local_38));

       if (sVar1 != sVar2) break;

       psVar10 = psVar10 + 1;

     } while (sVar2 != 0);

     if (sVar1 == sVar2) {

       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>_>

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

                *)&local_40,(ushort *)0x0);

-      lVar6 = WpnDatabaseHelpers::GetPackageFamilyNameFromSecondaryId(param_2,(ushort **)&local_40);

+      lVar6 = ParseAppUserModelId(param_2,&local_40,(ushort **)0x0);

       if (lVar6 < 0) {

                     /* WARNING: Subroutine does not return */

         wil::details::in1diag3::_Throw_Hr

-                  (unaff_retaddr,0x19b,

+                  (unaff_retaddr,0x136d,

                    "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                    ,lVar6);

       }

     }

     else {

       pcVar3 = *(code **)(*(longlong *)local_48 + 0x38);

       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>_>

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

                *)&local_40,(ushort *)0x0);

       iVar7 = (*pcVar3)(pIVar4,&local_40);

       if (iVar7 < 0) {

                     /* WARNING: Subroutine does not return */

         wil::details::in1diag3::_Throw_Hr

-                  (unaff_retaddr,0x1a0,

+                  (unaff_retaddr,0x1376,

                    "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                    ,iVar7);

       }

     }

-    lVar6 = CreateChannelRequestInternal(this,(ushort *)local_40,local_48,param_3,param_4,param_5);

+    lVar6 = CreateChannelRequestInternal(this,local_40,local_48,(ushort *)0x0,(ushort *)0x0,param_3)

+    ;

     if (lVar6 < 0) {

                     /* WARNING: Subroutine does not return */

       wil::details::in1diag3::_Throw_Hr

-                (unaff_retaddr,0x1a8,

+                (unaff_retaddr,0x137e,

                  "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

                  ,lVar6);

     }

     wil::details::

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

     ::

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

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

                 *)&local_40);

     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_38);

-    if (local_48 != (INotificationHandler *)0x0) {

-      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

-                ((com_ptr<INotificationDatabase4> *)&local_48);

-    }

-    if (local_50 != (longlong *)0x0) {

-      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

-                ((com_ptr<INotificationDatabase4> *)&local_50);

-    }

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

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

+              ((ComPtr<DownloadTaskManager> *)&local_50);

     Wns::

     Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

     ::StrongRef::Release((StrongRef *)&local_30);

   }

   return 0;

 }
```

## `ConnectionManagerCallback::OnConnectionChanged`  (modified)

```diff
--- ConnectionManagerCallback::OnConnectionChanged
+++ ConnectionManagerCallback::OnConnectionChanged
@@ -1,2 +1,112 @@
-Failed to decompile wpncore.dll - .ProgramDB ConnectionManagerCallback::OnConnectionChanged : 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 ConnectionManagerCallback::OnConnectionChanged(enum

+   __MIDL___MIDL_itf_wpnprivate_0000_0000_0001,short,enum __MIDL___MIDL_itf_wpnconn_0000_0000_0001)

+   __ptr64 */

+

+long __thiscall

+ConnectionManagerCallback::OnConnectionChanged

+          (ConnectionManagerCallback *this,__MIDL___MIDL_itf_wpnprivate_0000_0000_0001 param_1,

+          short param_2,__MIDL___MIDL_itf_wpnconn_0000_0000_0001 param_3)

+

+{

+  longlong *plVar1;

+  bool bVar2;

+  char cVar3;

+  long lVar4;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *pFVar5;

+  undefined4 *puVar6;

+  undefined4 in_register_00000014;

+  undefined6 in_register_00000082;

+  undefined1 auStackY_d8 [32];

+  __MIDL___MIDL_itf_wpnconn_0000_0000_0001 local_a8;

+  __MIDL___MIDL_itf_wpnprivate_0000_0000_0001 local_a4;

+  long local_a0 [2];

+  _EVENT_DATA_DESCRIPTOR local_98 [2];

+  long *local_78;

+  undefined4 local_70;

+  undefined4 local_6c;

+  __MIDL___MIDL_itf_wpnprivate_0000_0000_0001 *local_68;

+  undefined4 local_60;

+  undefined4 local_5c;

+  __MIDL___MIDL_itf_wpnconn_0000_0000_0001 *local_58;

+  undefined4 local_50;

+  undefined4 local_4c;

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStackY_d8;

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

+    WPP_SF_ddd(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),CONCAT44(in_register_00000014,param_1),

+               CONCAT62(in_register_00000082,param_2),param_1);

+  }

+  lVar4 = SubmitConnectionStatusWork(this,param_1,param_2,param_3);

+  if (((lVar4 < 0) && ((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control)) &&

+     (((WPP_GLOBAL_Control[0x1c] & 0x40) != 0 && (1 < (byte)WPP_GLOBAL_Control[0x19])))) {

+    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xb,

+             &WPP_269145a32571379f04175f2797d54a50_Traceguids,lVar4);

+  }

+  if (param_1 == 7) {

+    plVar1 = *(longlong **)(*(longlong *)(this + 0x10) + 0x118);

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

+      lVar4 = -0x7fc1fefb;

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xc,

+                 &WPP_269145a32571379f04175f2797d54a50_Traceguids,0x803e0105);

+      }

+    }

+    else {

+      lVar4 = 0;

+    }

+    (**(code **)(*plVar1 + 0x28))(plVar1);

+  }

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

+            ::__l2::impl;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    if ((DAT_0 & 0x10) != 0) {

+      McTemplateU0qd_EventWriteTransfer

+                (pFVar5,(PCEVENT_DESCRIPTOR)

+                        &WPNCONN_CONNECTION_PROVIDER_ON_CONNECTION_CHANGED_FOR_CLOUD_INSTANCE,

+                 (ulonglong)param_1,*(undefined4 *)(this + 0x18));

+    }

+  }

+  else if ((DAT_0 & 0x10) != 0) {

+    McTemplateU0t_EventWriteTransfer

+              (pFVar5,(PCEVENT_DESCRIPTOR)&WPNCONN_CONNECTION_PROVIDER_ON_CONNECTION_CHANGED,

+               (ulonglong)param_1);

+  }

+  if (5 < DAT_1) {

+    puVar6 = &DAT_1;

+    cVar3 = _tlgKeywordOn(0x18017e038,0x400000000000);

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

+      local_58 = &local_a8;

+      local_50 = 4;

+      local_4c = 0;

+      local_68 = &local_a4;

+      local_60 = 4;

+      local_5c = 0;

+      local_78 = local_a0;

+      local_70 = 4;

+      local_6c = 0;

+      local_a8 = param_3;

+      local_a4 = param_1;

+      local_a0[0] = lVar4;

+      _tlgWriteTransfer_EventWriteTransfer

+                ((longlong)puVar6,&DAT_2,(LPCGUID)0x0,(LPCGUID)0x0,5,local_98);

+    }

+  }

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

+    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xd,

+             &WPP_269145a32571379f04175f2797d54a50_Traceguids,lVar4);

+  }

+  return lVar4;

+}

+
```

## `wil::details::ResultFromCaughtException_CppWinRt`  (modified)

```diff
--- wil::details::ResultFromCaughtException_CppWinRt
+++ wil::details::ResultFromCaughtException_CppWinRt
@@ -1,167 +1,16 @@
 

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

-/* WARNING: Removing unreachable block (ram,0x00018005534c) */

-/* WARNING: Removing unreachable block (ram,0x00018005537a) */

-/* WARNING: Removing unreachable block (ram,0x000180055387) */

-/* WARNING: Removing unreachable block (ram,0x000180055392) */

-/* WARNING: Removing unreachable block (ram,0x00018005539d) */

-/* WARNING: Removing unreachable block (ram,0x000180055396) */

-/* WARNING: Removing unreachable block (ram,0x00018005538b) */

-/* WARNING: Removing unreachable block (ram,0x000180055382) */

-/* WARNING: Removing unreachable block (ram,0x0001800553a3) */

-/* WARNING: Removing unreachable block (ram,0x00018005524c) */

-/* WARNING: Removing unreachable block (ram,0x000180055258) */

-/* WARNING: Removing unreachable block (ram,0x00018005527c) */

-/* WARNING: Removing unreachable block (ram,0x0001800552a0) */

-/* WARNING: Removing unreachable block (ram,0x0001800552e6) */

-/* WARNING: Removing unreachable block (ram,0x0001800552c8) */

-/* WARNING: Removing unreachable block (ram,0x0001800553b7) */

-/* WARNING: Removing unreachable block (ram,0x0001800553c9) */

-/* WARNING: Removing unreachable block (ram,0x0001800553d2) */

-/* WARNING: Removing unreachable block (ram,0x0001800553ec) */

-/* WARNING: Removing unreachable block (ram,0x0001800553ef) */

-/* WARNING: Removing unreachable block (ram,0x00018005540a) */

-/* WARNING: Removing unreachable block (ram,0x000180055410) */

-/* WARNING: Removing unreachable block (ram,0x0001800552df) */

-/* WARNING: Removing unreachable block (ram,0x000180055604) */

-/* WARNING: Removing unreachable block (ram,0x00018005561e) */

-/* WARNING: Removing unreachable block (ram,0x000180055650) */

-/* WARNING: Removing unreachable block (ram,0x00018005565a) */

-/* WARNING: Removing unreachable block (ram,0x000180055664) */

-/* WARNING: Removing unreachable block (ram,0x0001800556c4) */

-/* WARNING: Removing unreachable block (ram,0x000180055724) */

-/* WARNING: Removing unreachable block (ram,0x00018005572e) */

-/* WARNING: Removing unreachable block (ram,0x000180055927) */

-/* WARNING: Removing unreachable block (ram,0x000180055939) */

-/* WARNING: Removing unreachable block (ram,0x000180055942) */

-/* WARNING: Removing unreachable block (ram,0x00018005595c) */

-/* WARNING: Removing unreachable block (ram,0x00018005595f) */

-/* WARNING: Removing unreachable block (ram,0x00018005597e) */

-/* WARNING: Removing unreachable block (ram,0x000180055988) */

-/* WARNING: Removing unreachable block (ram,0x00018005574b) */

-/* WARNING: Removing unreachable block (ram,0x00018005589e) */

-/* WARNING: Removing unreachable block (ram,0x0001800558ef) */

-/* WARNING: Removing unreachable block (ram,0x0001800558a5) */

-/* WARNING: Removing unreachable block (ram,0x0001800558dd) */

-/* WARNING: Removing unreachable block (ram,0x0001800558e7) */

-/* WARNING: Removing unreachable block (ram,0x000180055759) */

-/* WARNING: Removing unreachable block (ram,0x000180055853) */

-/* WARNING: Removing unreachable block (ram,0x00018005588a) */

-/* WARNING: Removing unreachable block (ram,0x000180055894) */

-/* WARNING: Removing unreachable block (ram,0x000180055766) */

-/* WARNING: Removing unreachable block (ram,0x000180055801) */

-/* WARNING: Removing unreachable block (ram,0x000180055839) */

-/* WARNING: Removing unreachable block (ram,0x000180055843) */

-/* WARNING: Removing unreachable block (ram,0x000180055848) */

-/* WARNING: Removing unreachable block (ram,0x000180055771) */

-/* WARNING: Removing unreachable block (ram,0x000180055796) */

-/* WARNING: Removing unreachable block (ram,0x0001800557a8) */

-/* WARNING: Removing unreachable block (ram,0x0001800557b1) */

-/* WARNING: Removing unreachable block (ram,0x0001800557cb) */

-/* WARNING: Removing unreachable block (ram,0x0001800557ce) */

-/* WARNING: Removing unreachable block (ram,0x0001800557ed) */

-/* WARNING: Removing unreachable block (ram,0x0001800557f7) */

-/* WARNING: Removing unreachable block (ram,0x00018005578f) */

-/* WARNING: Removing unreachable block (ram,0x0001800556de) */

-/* WARNING: Removing unreachable block (ram,0x000180055710) */

-/* WARNING: Removing unreachable block (ram,0x00018005571a) */

-/* WARNING: Removing unreachable block (ram,0x00018005567e) */

-/* WARNING: Removing unreachable block (ram,0x0001800556b0) */

-/* WARNING: Removing unreachable block (ram,0x0001800556ba) */

+/* long __cdecl wil::details::ResultFromCaughtException_CppWinRt(unsigned short * __ptr64,unsigned

+   __int64,bool * __ptr64) */

 

 long __cdecl

-`wil::details_abi::RawUsageIndex::ResultFromCaughtException_CppWinRt

-          (ushort *param_1,__uint64 param_2,bool *param_3)

+wil::details::ResultFromCaughtException_CppWinRt(ushort *param_1,__uint64 param_2,bool *param_3)

 

 {

-  int iVar1;

-  DWORD DVar2;

-  int *in_RAX;

-  HANDLE pvVar3;

-  undefined2 uVar4;

-  longlong unaff_RBP;

-  longlong unaff_RDI;

-  undefined4 *unaff_R12;

-  undefined4 unaff_R13D;

-  longlong unaff_R15;

-  byte in_CF;

-  longlong in_stack_00000040;

-  LPVOID in_stack_00000060;

-  LPVOID in_stack_00000068;

-  LPVOID in_stack_00000070;

-  

-  if ((int)in_RAX + *in_RAX + (uint)in_CF == 0) {

-    DVar2 = GetLastError();

-    if (0 < (int)DVar2) {

-      DVar2 = DVar2 & 0xffff | 0x80070000;

-    }

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

-      DVar2 = 0x80004005;

-    }

-    wil::details::in1diag3::_Log_Hr

-              (*(void **)(unaff_RBP + 0x5c8),0x588,

-               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\periodicupdatemanager.cpp"

-               ,DVar2);

-    if (((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

-       ((WPP_GLOBAL_Control[0x1c] & 0x80) == 0)) goto LAB_0;

-    uVar4 = 0x39;

+  if (g_pfnResultFromCaughtException == (_func_long *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    _CxxThrowException((void *)0x0,(ThrowInfo *)0x0);

   }

-  else {

-    iVar1 = WinHttpQueryHeaders();

-    if (iVar1 == 0) {

-      DVar2 = GetLastError();

-      if (0 < (int)DVar2) {

-        DVar2 = DVar2 & 0xffff | 0x80070000;

-      }

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

-        DVar2 = 0x80004005;

-      }

-      wil::details::in1diag3::_Log_Hr

-                (*(void **)(unaff_RBP + 0x5c8),0x594,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\periodicupdatemanager.cpp"

-                 ,DVar2);

-      if (((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

-         ((WPP_GLOBAL_Control[0x1c] & 0x80) == 0)) goto LAB_0;

-      uVar4 = 0x3a;

-    }

-    else {

-      *unaff_R12 = 0;

-      DVar2 = 0x803e012b;

-      wil::details::in1diag3::_Log_Hr

-                (*(void **)(unaff_RBP + 0x5c8),0x5b2,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\periodicupdatemanager.cpp"

-                 ,-0x7fc1fed5);

-      if (((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

-         ((WPP_GLOBAL_Control[0x1c] & 0x80) == 0)) goto LAB_0;

-      uVar4 = 0x3b;

-      DVar2 = 0x803e012b;

-    }

-  }

-  WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),uVar4,

-           &WPP_6b3164ff505c38b9d951495712a9c50a_Traceguids,DVar2);

-LAB_0:

-  **(undefined4 **)(unaff_RBP + -0x58) = unaff_R13D;

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

-    pvVar3 = GetProcessHeap();

-    HeapFree(pvVar3,0,in_stack_00000060);

-  }

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

-    pvVar3 = GetProcessHeap();

-    HeapFree(pvVar3,0,in_stack_00000068);

-  }

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

-    pvVar3 = GetProcessHeap();

-    HeapFree(pvVar3,0,in_stack_00000070);

-  }

-  if (unaff_RDI != 0) {

-    WinHttpCloseHandle();

-  }

-  if (in_stack_00000040 != 0) {

-    WinHttpCloseHandle(in_stack_00000040);

-  }

-  if (unaff_R15 != 0) {

-    WinHttpCloseHandle();

-  }

-  return DVar2;

+                    /* WARNING: Subroutine does not return */

+  _CxxThrowException((void *)0x0,(ThrowInfo *)0x0);

 }
```

## `NotificationAvailableWork::DeliverCloudNotification`  (modified)

```diff
--- NotificationAvailableWork::DeliverCloudNotification
+++ NotificationAvailableWork::DeliverCloudNotification
@@ -1,2 +1,1189 @@
-Failed to decompile wpncore.dll - .ProgramDB NotificationAvailableWork::DeliverCloudNotification : 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 NotificationAvailableWork::DeliverCloudNotification(void) __ptr64 */

+

+long __thiscall NotificationAvailableWork::DeliverCloudNotification(NotificationAvailableWork *this)

+

+{

+  NotificationPlatform *SRWLock;

+  code *pcVar1;

+  RunningApps *this_00;

+  longlong lVar2;

+  BackgroundActivation *this_01;

+  BlockedRawChannels *this_02;

+  undefined8 uVar3;

+  uchar auVar4 [8];

+  PolicyLevel PVar5;

+  bool bVar6;

+  bool bVar7;

+  int iVar8;

+  long lVar9;

+  __MIDL___MIDL_itf_wpntypes_0000_0000_0005 _Var10;

+  undefined8 *puVar11;

+  wchar_t *pwVar12;

+  wchar_t *pwVar13;

+  undefined8 uVar14;

+  ushort *puVar15;

+  ushort *puVar16;

+  WpncoreTelemetry *this_03;

+  longlong *plVar17;

+  wchar_t *pwVar18;

+  wchar_t *pwVar19;

+  _GUID *p_Var20;

+  NotificationDeliveryTransaction *this_04;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *this_05;

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  *ppVar21;

+  undefined2 uVar22;

+  undefined8 in_R8;

+  char *pcVar23;

+  Notification *pNVar24;

+  uint uVar25;

+  uint uVar26;

+  void *unaff_retaddr;

+  undefined1 auStackY_1b8 [32];

+  undefined8 in_stack_fffffffffffffe68;

+  undefined4 uVar29;

+  PolicyLevel *pPVar27;

+  TransientNotificationDetails *pTVar28;

+  NotificationPlatform *local_168;

+  longlong *local_160;

+  bool local_158;

+  ulong local_150 [2];

+  uint local_148 [2];

+  NOTIFICATION_POLICY_REASON local_140;

+  PolicyLevel local_13c;

+  wchar_t *local_138;

+  WPN_SETTING_TYPE local_130 [2];

+  ushort *local_128;

+  ushort *local_120;

+  INotificationHandlerSettings *local_118;

+  undefined4 local_110 [2];

+  _GUID local_108 [2];

+  _GUID local_e8 [2];

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  local_c8 [32];

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  local_a8 [32];

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  local_88 [32];

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  local_68 [32];

+  ulonglong local_48;

+  

+  uVar29 = (undefined4)((ulonglong)in_stack_fffffffffffffe68 >> 0x20);

+  local_48 = __security_cookie ^ (ulonglong)auStackY_1b8;

+  local_148[0] = 0;

+  local_13c = 0;

+  local_138 = (wchar_t *)0x0;

+  local_118 = (INotificationHandlerSettings *)0x0;

+  local_110[0] = 0;

+  local_120 = (ushort *)0x0;

+  local_128 = (ushort *)0x0;

+  local_158 = false;

+  local_140 = 0;

+  local_130[0] = 0;

+  uVar25 = 0;

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      (uVar25 = 0, (WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19]))

+  {

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notification

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    local_148[0] = 1;

+    Notification::get_id((Notification *)*puVar11);

+    pwVar12 = (wchar_t *)

+              NotificationDeliveryTransaction::get_channelId

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    if (7 < *(ulonglong *)(pwVar12 + 0xc)) {

+      pwVar12 = *(wchar_t **)pwVar12;

+    }

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notification

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    local_148[0] = 7;

+    p_Var20 = local_108;

+    pwVar13 = (wchar_t *)Notification::get_type((Notification *)*puVar11);

+    uVar25 = 0xf;

+    if (7 < *(ulonglong *)(pwVar13 + 0xc)) {

+      pwVar13 = *(wchar_t **)pwVar13;

+    }

+    WPP_SF_SSd(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),p_Var20,in_R8,pwVar13,pwVar12);

+    uVar29 = (undefined4)((ulonglong)pwVar12 >> 0x20);

+  }

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

+    uVar25 = uVar25 & 0xfffffff7;

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)local_108);

+  }

+  if ((uVar25 & 4) != 0) {

+    uVar25 = uVar25 & 0xfffffffb;

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

+              ((ComPtr<DownloadTaskManager> *)local_150);

+  }

+  if ((uVar25 & 2) != 0) {

+    uVar25 = uVar25 & 0xfffffffd;

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)local_e8);

+  }

+  if ((uVar25 & 1) != 0) {

+    uVar25 = uVar25 & 0xfffffffe;

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

+              ((ComPtr<DownloadTaskManager> *)&local_160);

+  }

+  iVar8 = ProcessChannel(this);

+  if (iVar8 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x3b4,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+               ,iVar8);

+    if (((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

+       ((WPP_GLOBAL_Control[0x1c] & 0x80) == 0)) goto LAB_0;

+    uVar22 = 0x7d;

+    lVar9 = iVar8;

+    goto LAB_1;

+  }

+  wil::details::

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

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_128,(ushort *)0x0);

+  this_04 = *(NotificationDeliveryTransaction **)(this + 0xb0);

+  puVar11 = (undefined8 *)NotificationDeliveryTransaction::get_notificationHandler(this_04);

+  pcVar23 = (char *)&local_128;

+  lVar9 = GetParentId((NotificationAvailableWork *)this_04,(INotificationHandler *)*puVar11,

+                      (ushort **)pcVar23);

+  if (lVar9 < 0) {

+    pcVar23 = 

+    "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+    ;

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x3ba,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+               ,lVar9);

+  }

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

+            ((ComPtr<DownloadTaskManager> *)&local_160);

+  puVar11 = (undefined8 *)

+            NotificationDeliveryTransaction::get_notificationHandler

+                      (*(NotificationDeliveryTransaction **)(this + 0xb0));

+  plVar17 = (longlong *)*puVar11;

+  pcVar1 = *(code **)(*plVar17 + 0x18);

+  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>_>

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_138,(ushort *)0x0);

+  iVar8 = (*pcVar1)(plVar17,&local_138);

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

+            ((ComPtr<DownloadTaskManager> *)&local_160);

+  if (iVar8 < 0) {

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x3bd,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+               ,iVar8);

+    if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+       ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+      uVar22 = 0x7e;

+      lVar9 = iVar8;

+      goto LAB_1;

+    }

+    goto LAB_0;

+  }

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (4 < (byte)WPP_GLOBAL_Control[0x19])) {

+    WPP_SF_S(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x7f,pcVar23,local_138);

+  }

+  local_160 = *(longlong **)(*(longlong *)(this + 0xb8) + 0x90);

+  if (local_160 == (longlong *)0x0) {

+    if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+        ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+      WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x80,

+               &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

+    }

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x3c4,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+               ,-0x7fc1fefb);

+    iVar8 = -0x7fc1fefb;

+    if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+       (iVar8 = -0x7fc1fefb, (WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+      uVar22 = 0x81;

+      goto LAB_2;

+    }

+    goto LAB_3;

+  }

+  pcVar1 = *(code **)(*local_160 + 0x40);

+  puVar11 = (undefined8 *)

+            NotificationDeliveryTransaction::get_notification

+                      (*(NotificationDeliveryTransaction **)(this + 0xb0));

+  Notification::get_payloadSize((Notification *)*puVar11);

+  puVar11 = (undefined8 *)

+            NotificationDeliveryTransaction::get_notification

+                      (*(NotificationDeliveryTransaction **)(this + 0xb0));

+  Notification::get_id((Notification *)*puVar11);

+  puVar11 = (undefined8 *)

+            NotificationDeliveryTransaction::get_notification

+                      (*(NotificationDeliveryTransaction **)(this + 0xb0));

+  uVar14 = Notification::get_type((Notification *)*puVar11);

+  _Var10 = WpnDatabaseHelpers::NotificationTypeFromName(uVar14);

+  iVar8 = (*pcVar1)(local_160,local_138,0,_Var10);

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

+            ((ComPtr<DownloadTaskManager> *)local_150);

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

+            ((ComPtr<DownloadTaskManager> *)local_148);

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

+            ((ComPtr<DownloadTaskManager> *)&local_168);

+  if (iVar8 < 0) {

+    if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+        ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+      WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x82,

+               &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

+    }

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x3cf,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+               ,iVar8);

+    if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+       ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+      uVar22 = 0x83;

+      lVar9 = iVar8;

+      goto LAB_1;

+    }

+LAB_0:

+    if (-1 < iVar8) goto LAB_4;

+LAB_3:

+    if ((DAT_5 & 4) != 0) {

+      pwVar12 = (wchar_t *)GetNotificationPolicyReasonString((NOTIFICATION_POLICY_REASON)local_88);

+      if (7 < *(ulonglong *)(pwVar12 + 0xc)) {

+        pwVar12 = *(wchar_t **)pwVar12;

+      }

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notification

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      local_148[0] = uVar25 | 0x300;

+      pwVar13 = (wchar_t *)Notification::get_handlerKey((Notification *)*puVar11);

+      if (7 < *(ulonglong *)(pwVar13 + 0xc)) {

+        pwVar13 = *(wchar_t **)pwVar13;

+      }

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notification

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      local_150[0] = Notification::get_id((Notification *)*puVar11);

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notification

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      local_148[0] = uVar25 | 0x1f00;

+      pwVar18 = (wchar_t *)Notification::get_type((Notification *)*puVar11);

+      local_148[0] = uVar25 | 0x3f00;

+      if (7 < *(ulonglong *)(pwVar18 + 0xc)) {

+        pwVar18 = *(wchar_t **)pwVar18;

+      }

+      p_Var20 = local_108;

+      pwVar19 = (wchar_t *)

+                NotificationDeliveryTransaction::get_channelId

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      uVar25 = 0x7f00;

+      if (7 < *(ulonglong *)(pwVar19 + 0xc)) {

+        pwVar19 = *(wchar_t **)pwVar19;

+      }

+      McTemplateU0zzqzzd_EventWriteTransfer

+                ((ulonglong)local_150[0],p_Var20,pwVar19,pwVar18,CONCAT44(uVar29,local_150[0]),

+                 pwVar13,pwVar12);

+    }

+    if (uVar25 >> 0xe != 0) {

+      uVar25 = uVar25 & 0xffffbfff;

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  *)local_108);

+    }

+    if ((uVar25 >> 0xd & 1) != 0) {

+      uVar25 = uVar25 & 0xffffdfff;

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                (local_c8);

+    }

+    if ((uVar25 >> 0xc & 1) != 0) {

+      uVar25 = uVar25 & 0xffffefff;

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

+                ((ComPtr<DownloadTaskManager> *)&local_168);

+    }

+    if ((uVar25 >> 0xb & 1) != 0) {

+      uVar25 = uVar25 & 0xfffff7ff;

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

+                ((ComPtr<DownloadTaskManager> *)&local_160);

+    }

+    if ((uVar25 >> 10 & 1) != 0) {

+      uVar25 = uVar25 & 0xfffffbff;

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                (local_a8);

+    }

+    if ((uVar25 >> 9 & 1) != 0) {

+      uVar25 = uVar25 & 0xfffffdff;

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

+                ((ComPtr<DownloadTaskManager> *)local_e8);

+    }

+    if ((uVar25 >> 8 & 1) == 0) goto LAB_6;

+    ppVar21 = local_88;

+  }

+  else {

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notificationHandler

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    plVar17 = (longlong *)*puVar11;

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

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

+              ((ComPtr<DownloadTaskManager> *)&local_118);

+    iVar8 = (*pcVar1)(plVar17,&local_118);

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

+              ((ComPtr<DownloadTaskManager> *)&local_168);

+    if (iVar8 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x3d3,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                 ,iVar8);

+      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+         ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+        uVar22 = 0x84;

+        lVar9 = iVar8;

+        goto LAB_1;

+      }

+      goto LAB_0;

+    }

+    WpnDatabaseHelpers::GetSettingMaskFromObject(local_118,local_130);

+    local_168 = *(NotificationPlatform **)(this + 0xb8);

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notification

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    puVar15 = (ushort *)Notification::get_type((Notification *)*puVar11);

+    if (7 < *(ulonglong *)(puVar15 + 0xc)) {

+      puVar15 = *(ushort **)puVar15;

+    }

+    puVar16 = NotificationDeliveryTransaction::get_PackageFullName

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notificationHandler

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    bVar6 = true;

+    bVar7 = true;

+    iVar8 = NotificationPlatform::CheckNotificationHandlerSettingsEnabled

+                      (local_168,(INotificationHandler *)*puVar11,puVar16,puVar15,true,&local_140,

+                       &local_13c);

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

+              ((ComPtr<DownloadTaskManager> *)&local_160);

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)local_108);

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

+              ((ComPtr<DownloadTaskManager> *)local_150);

+    if (iVar8 < 0) {

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x86,

+                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

+      }

+      LogSettingsDropped(this,iVar8,(ushort *)local_138,local_13c);

+      if (iVar8 == -0x7fc1feec) {

+        lVar9 = BlockNotificationType(this);

+        if (lVar9 < 0) {

+          if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+              ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+            WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x87,

+                     &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,lVar9);

+          }

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x3ea,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                     ,lVar9);

+          if (((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

+             ((WPP_GLOBAL_Control[0x1c] & 0x80) == 0)) goto LAB_3;

+          uVar22 = 0x88;

+LAB_7:

+          WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),uVar22,

+                   &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,lVar9);

+          goto LAB_3;

+        }

+      }

+      else {

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

+                   ::__l2::impl;

+        bVar6 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

+                          ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                            ::__l2::impl);

+        pwVar12 = local_138;

+        if (bVar6) {

+          if (local_140 == 0xf) {

+            bVar6 = WpncoreTelemetry::IsEnabled((uchar)this_05,0xf);

+            if (bVar6) {

+              this_03 = wil::details::static_lazy<WpncoreTelemetry>::get

+                                  ((static_lazy<WpncoreTelemetry> *)this_05,

+                                   <lambda_c91d295e9756ec26c89460bbd269b90b>::<lambda_invoker_cdecl>

+                                  );

+              WpncoreTelemetry::NotificationDroppedMdmSessionExpired_(this_03,(ushort *)pwVar12);

+            }

+          }

+          else {

+            lVar9 = BlockChannel(this,local_140);

+            if (lVar9 < 0) {

+              if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+                  ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19]))

+              {

+                WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x89,

+                         &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,lVar9);

+              }

+              wil::details::in1diag3::_Log_Hr

+                        (unaff_retaddr,0x3f7,

+                         "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                         ,lVar9);

+              if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+                 ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+                uVar22 = 0x8a;

+                goto LAB_1;

+              }

+              goto LAB_0;

+            }

+          }

+        }

+        else {

+          lVar9 = BlockChannel(this,local_140);

+          if (lVar9 < 0) {

+            if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+                ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+              WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x8b,

+                       &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,lVar9);

+            }

+            wil::details::in1diag3::_Log_Hr

+                      (unaff_retaddr,0x402,

+                       "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                       ,lVar9);

+            if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+               ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+              uVar22 = 0x8c;

+              goto LAB_1;

+            }

+            goto LAB_0;

+          }

+        }

+      }

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x406,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                 ,iVar8);

+      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+         ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+        uVar22 = 0x8d;

+        lVar9 = iVar8;

+        goto LAB_1;

+      }

+      goto LAB_0;

+    }

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notification

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    puVar16 = (ushort *)Notification::get_type((Notification *)*puVar11);

+    puVar15 = puVar16 + 8;

+    if (7 < *(ulonglong *)(puVar16 + 0xc)) {

+      puVar16 = *(ushort **)puVar16;

+    }

+    if ((*(longlong *)puVar15 != 5) ||

+       (iVar8 = std::_WChar_traits<unsigned_short>::compare(puVar16,(ushort *)L"toast",5),

+       iVar8 != 0)) {

+      bVar7 = false;

+    }

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)local_108);

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

+              ((ComPtr<DownloadTaskManager> *)&local_168);

+    if (bVar7) {

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notification

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      puVar15 = (ushort *)Notification::get_type((Notification *)*puVar11);

+      if (7 < *(ulonglong *)(puVar15 + 0xc)) {

+        puVar15 = *(ushort **)puVar15;

+      }

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notificationHandler

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      pPVar27 = &local_13c;

+      iVar8 = CheckNotificationHandlerSettingsEnabledForParent

+                        (this,(INotificationHandler *)*puVar11,puVar15,true,pPVar27,&local_140);

+      uVar29 = (undefined4)((ulonglong)pPVar27 >> 0x20);

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

+                ((ComPtr<DownloadTaskManager> *)&local_160);

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  *)local_e8);

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

+                ((ComPtr<DownloadTaskManager> *)local_150);

+      if (iVar8 < 0) {

+        if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+            ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+          WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x8e,

+                   &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

+        }

+        PVar5 = local_13c;

+        puVar11 = (undefined8 *)

+                  NotificationDeliveryTransaction::get_notification

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        puVar15 = (ushort *)Notification::get_handlerKey((Notification *)*puVar11);

+        if (7 < *(ulonglong *)(puVar15 + 0xc)) {

+          puVar15 = *(ushort **)puVar15;

+        }

+        LogSettingsDropped(this,iVar8,puVar15,PVar5);

+        std::

+        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+        ::

+        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    *)local_108);

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

+                  ((ComPtr<DownloadTaskManager> *)&local_168);

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x417,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                   ,iVar8);

+        if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+           ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+          uVar22 = 0x8f;

+          lVar9 = iVar8;

+          goto LAB_1;

+        }

+        goto LAB_0;

+      }

+    }

+    iVar8 = (**(code **)(*(longlong *)local_118 + 0x20))(local_118,L"c:voip",local_110);

+    if (iVar8 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x41c,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                 ,iVar8);

+      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+         ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+        uVar22 = 0x90;

+        lVar9 = iVar8;

+        goto LAB_1;

+      }

+      goto LAB_0;

+    }

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notificationHandler

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    plVar17 = (longlong *)*puVar11;

+    pcVar1 = *(code **)(*plVar17 + 0x30);

+    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>_>

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

+             *)&local_120,(ushort *)0x0);

+    iVar8 = (*pcVar1)(plVar17,&local_120);

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

+              ((ComPtr<DownloadTaskManager> *)&local_168);

+    if (iVar8 < 0) {

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x41f,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                 ,iVar8);

+      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+         ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+        uVar22 = 0x91;

+        lVar9 = iVar8;

+        goto LAB_1;

+      }

+      goto LAB_0;

+    }

+    if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+        ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (4 < (byte)WPP_GLOBAL_Control[0x19])) {

+      WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x92,

+              &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids);

+    }

+    this_00 = *(RunningApps **)(*(longlong *)(this + 0xb8) + 0xe0);

+    if (this_00 == (RunningApps *)0x0) {

+      iVar8 = -0x7fc1fefb;

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x93,

+                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

+      }

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x425,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                 ,-0x7fc1fefb);

+      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+         ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+        uVar22 = 0x94;

+        goto LAB_2;

+      }

+      goto LAB_3;

+    }

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notificationTransientDetails

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    pTVar28 = (TransientNotificationDetails *)*puVar11;

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notification

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    lVar9 = RunningApps::CallAppSink(this_00,local_120,local_128,(Notification *)*puVar11,pTVar28);

+    uVar29 = (undefined4)((ulonglong)pTVar28 >> 0x20);

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

+              ((ComPtr<DownloadTaskManager> *)&local_168);

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

+              ((ComPtr<DownloadTaskManager> *)&local_160);

+    if (lVar9 < 0) {

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x95,

+                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,lVar9);

+      }

+    }

+    else if (lVar9 == 0) {

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (4 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xaa,

+                &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids);

+      }

+      local_158 = true;

+      iVar8 = 0;

+      goto LAB_0;

+    }

+    bVar7 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID54436891>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_ID54436891> *)

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

+                        ::__l2::impl);

+    if (bVar7) {

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notification

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      local_148[0] = uVar25 | 0x10;

+      puVar16 = (ushort *)Notification::get_type((Notification *)*puVar11);

+      uVar26 = uVar25 | 0x30;

+      puVar15 = puVar16 + 8;

+      if (7 < *(ulonglong *)(puVar16 + 0xc)) {

+        puVar16 = *(ushort **)puVar16;

+      }

+      if ((*(longlong *)puVar15 == 3) &&

+         (iVar8 = std::_WChar_traits<unsigned_short>::compare(puVar16,(ushort *)L"raw",3),

+         iVar8 == 0)) {

+        plVar17 = (longlong *)

+                  NotificationDeliveryTransaction::get_notification

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        uVar26 = uVar25 | 0x70;

+        lVar2 = *plVar17;

+        SRWLock = (NotificationPlatform *)(lVar2 + 0x160);

+        AcquireSRWLockShared((PSRWLOCK)SRWLock);

+        iVar8 = *(int *)(lVar2 + 0x13c);

+        local_168 = SRWLock;

+        wil::details::

+        unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+        ::

+        ~unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+                  ((unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+                    *)&local_168);

+        if (iVar8 != 0) goto LAB_8;

+        bVar7 = true;

+      }

+      else {

+LAB_8:

+        bVar7 = false;

+      }

+      if ((uVar26 & 0x40) != 0) {

+        uVar26 = uVar26 & 0xffffffbf;

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

+                  ((ComPtr<DownloadTaskManager> *)&local_160);

+      }

+      uVar25 = uVar26;

+      if ((uVar26 & 0x20) != 0) {

+        uVar25 = uVar26 & 0xffffffdf;

+        std::

+        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+        ::

+        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    *)local_108);

+      }

+      if ((uVar25 & 0x10) != 0) {

+        uVar25 = uVar25 & 0xffffffef;

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

+                  ((ComPtr<DownloadTaskManager> *)local_150);

+      }

+      if (bVar7) {

+        local_168 = *(NotificationPlatform **)(*(longlong *)(this + 0xb8) + 0xf0);

+        if (local_168 == (NotificationPlatform *)0x0) {

+          iVar8 = -0x7fc1fefb;

+          if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+              ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+            WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x96,

+                     &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

+          }

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x437,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                     ,-0x7fc1fefb);

+          if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+             ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+            uVar22 = 0x97;

+            goto LAB_2;

+          }

+          goto LAB_3;

+        }

+        puVar15 = (ushort *)

+                  NotificationDeliveryTransaction::get_channelId

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        if (7 < *(ulonglong *)(puVar15 + 0xc)) {

+          puVar15 = *(ushort **)puVar15;

+        }

+        puVar16 = NotificationDeliveryTransaction::get_PackageFullName

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        puVar11 = (undefined8 *)

+                  NotificationDeliveryTransaction::get_notificationTransientDetails

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        pTVar28 = (TransientNotificationDetails *)*puVar11;

+        puVar11 = (undefined8 *)

+                  NotificationDeliveryTransaction::get_notification

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        iVar8 = ResumeNotificationHandler::ProcessResumeNotification

+                          ((ResumeNotificationHandler *)local_168,(Notification *)*puVar11,pTVar28,

+                           puVar16,puVar15);

+        uVar29 = (undefined4)((ulonglong)puVar15 >> 0x20);

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

+                  ((ComPtr<DownloadTaskManager> *)&local_160);

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

+                  ((ComPtr<DownloadTaskManager> *)local_150);

+        std::

+        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+        ::

+        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    *)local_108);

+        if (iVar8 < 0) {

+          if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+              ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+            WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x98,

+                     &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

+          }

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x445,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                     ,iVar8);

+          if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+             ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+            uVar22 = 0x9a;

+            lVar9 = iVar8;

+            goto LAB_1;

+          }

+        }

+        else if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+                 ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (4 < (byte)WPP_GLOBAL_Control[0x19]))

+        {

+          WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x99,

+                  &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids);

+        }

+        goto LAB_0;

+      }

+    }

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notification

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    puVar16 = (ushort *)Notification::get_type((Notification *)*puVar11);

+    puVar15 = puVar16 + 8;

+    if (7 < *(ulonglong *)(puVar16 + 0xc)) {

+      puVar16 = *(ushort **)puVar16;

+    }

+    if ((*(longlong *)puVar15 != 3) ||

+       (iVar8 = std::_WChar_traits<unsigned_short>::compare(puVar16,(ushort *)L"raw",3), iVar8 != 0)

+       ) {

+      bVar6 = false;

+    }

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)local_108);

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

+              ((ComPtr<DownloadTaskManager> *)&local_168);

+    if (!bVar6) {

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (4 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xa4,

+                &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids);

+      }

+      local_168 = (NotificationPlatform *)

+                  (-(ulonglong)(*(longlong *)(*(longlong *)(this + 0xb8) + 0x98) != 0) &

+                  *(longlong *)(*(longlong *)(this + 0xb8) + 0x98) + 0x10U);

+      if (local_168 != (NotificationPlatform *)0x0) {

+        pcVar1 = *(code **)*(PVOID *)local_168;

+        puVar11 = (undefined8 *)

+                  NotificationDeliveryTransaction::get_notificationTransientDetails

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        uVar14 = *puVar11;

+        puVar11 = (undefined8 *)

+                  NotificationDeliveryTransaction::get_notificationHandler

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        uVar3 = *puVar11;

+        puVar11 = (undefined8 *)

+                  NotificationDeliveryTransaction::get_notification

+                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

+        iVar8 = (*pcVar1)(local_168,*puVar11,uVar3,uVar14);

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

+                  ((ComPtr<DownloadTaskManager> *)&local_160);

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

+                  ((ComPtr<DownloadTaskManager> *)local_150);

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

+                  ((ComPtr<DownloadTaskManager> *)local_148);

+        if (-1 < iVar8) goto LAB_4;

+        if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+            ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+          WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xa8,

+                   &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

+        }

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x480,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                   ,iVar8);

+        if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+           ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+          uVar22 = 0xa9;

+          lVar9 = iVar8;

+          goto LAB_1;

+        }

+        goto LAB_0;

+      }

+      iVar8 = -0x7fc1fefb;

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xa6,

+                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

+      }

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x477,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                 ,-0x7fc1fefb);

+      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+         ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+        uVar22 = 0xa7;

+        goto LAB_2;

+      }

+      goto LAB_3;

+    }

+    this_01 = *(BackgroundActivation **)(*(longlong *)(this + 0xb8) + 0xe8);

+    if (this_01 == (BackgroundActivation *)0x0) {

+      iVar8 = -0x7fc1fefb;

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x9b,

+                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

+      }

+      wil::details::in1diag3::_Log_Hr

+                (unaff_retaddr,0x44e,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                 ,-0x7fc1fefb);

+      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+         ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+        uVar22 = 0x9c;

+LAB_2:

+        iVar8 = -0x7fc1fefb;

+        lVar9 = -0x7fc1fefb;

+        goto LAB_7;

+      }

+      goto LAB_3;

+    }

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notificationTransientDetails

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    p_Var20 = TransientNotificationDetails::get_messageId

+                        ((TransientNotificationDetails *)*puVar11,local_e8);

+    uVar14._0_4_ = p_Var20->Data1;

+    uVar14._4_2_ = p_Var20->Data2;

+    uVar14._6_2_ = p_Var20->Data3;

+    auVar4 = *&p_Var20->Data4;

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notificationTransientDetails

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    pTVar28 = (TransientNotificationDetails *)*puVar11;

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notification

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    pNVar24 = (Notification *)*puVar11;

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notificationHandler

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    p_Var20 = local_108;

+    local_108[0]._0_8_ = uVar14;

+    local_108[0].Data4 = auVar4;

+    iVar8 = BackgroundActivation::ActivateRawNotificationWorkItem

+                      (this_01,(INotificationHandler *)*puVar11,pNVar24,pTVar28,p_Var20);

+    uVar29 = (undefined4)((ulonglong)p_Var20 >> 0x20);

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

+              ((ComPtr<DownloadTaskManager> *)&local_168);

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

+              ((ComPtr<DownloadTaskManager> *)&local_160);

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

+              ((ComPtr<DownloadTaskManager> *)local_150);

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

+              ((ComPtr<DownloadTaskManager> *)local_148);

+    if (iVar8 < 0) {

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+        pNVar24 = (Notification *)&WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids;

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x9d,

+                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

+      }

+      if ((iVar8 == -0x7ff8fb70) || (iVar8 == -0x7ff8fffe)) {

+        if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+           (((WPP_GLOBAL_Control[0x1c] & 0x40) != 0 && (4 < (byte)WPP_GLOBAL_Control[0x19])))) {

+          pwVar12 = (wchar_t *)

+                    NotificationDeliveryTransaction::get_channelId

+                              (*(NotificationDeliveryTransaction **)(this + 0xb0));

+          uVar25 = uVar25 | 0x80;

+          if (7 < *(ulonglong *)(pwVar12 + 0xc)) {

+            pwVar12 = *(wchar_t **)pwVar12;

+          }

+          WPP_SF_S(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x9e,pNVar24,pwVar12);

+        }

+        if ((char)uVar25 < '\0') {

+          uVar25 = uVar25 & 0xffffff7f;

+          std::

+          pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+          ::

+          ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                      *)local_108);

+        }

+        this_02 = *(BlockedRawChannels **)(*(longlong *)(this + 0xb8) + 0x140);

+        if (this_02 == (BlockedRawChannels *)0x0) {

+          if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+              ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+            WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x9f,

+                     &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

+          }

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x464,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                     ,-0x7fc1fefb);

+          if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+             ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+            uVar22 = 0xa0;

+            lVar9 = -0x7fc1fefb;

+            goto LAB_1;

+          }

+        }

+        else {

+          puVar15 = (ushort *)

+                    NotificationDeliveryTransaction::get_channelId

+                              (*(NotificationDeliveryTransaction **)(this + 0xb0));

+          if (7 < *(ulonglong *)(puVar15 + 0xc)) {

+            puVar15 = *(ushort **)puVar15;

+          }

+          puVar11 = (undefined8 *)

+                    NotificationDeliveryTransaction::get_notification

+                              (*(NotificationDeliveryTransaction **)(this + 0xb0));

+          puVar16 = (ushort *)Notification::get_handlerKey((Notification *)*puVar11);

+          if (7 < *(ulonglong *)(puVar16 + 0xc)) {

+            puVar16 = *(ushort **)puVar16;

+          }

+          lVar9 = BlockedRawChannels::BlockChannel(this_02,puVar16,puVar15);

+          std::

+          pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+          ::

+          ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                      *)local_108);

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

+                    ((ComPtr<DownloadTaskManager> *)&local_168);

+          std::

+          pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+          ::

+          ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                      *)local_e8);

+          if (-1 < lVar9) goto LAB_9;

+          if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+              ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+            WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xa1,

+                     &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,lVar9);

+          }

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x468,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                     ,lVar9);

+          if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+             ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+            uVar22 = 0xa2;

+            goto LAB_1;

+          }

+        }

+      }

+      else {

+LAB_9:

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x46b,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

+                   ,iVar8);

+        if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+           ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

+          uVar22 = 0xa3;

+          lVar9 = iVar8;

+LAB_1:

+          WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),uVar22,

+                   &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,lVar9);

+        }

+      }

+      goto LAB_0;

+    }

+LAB_4:

+    puVar11 = (undefined8 *)

+              NotificationDeliveryTransaction::get_notificationTransientDetails

+                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

+    p_Var20 = TransientNotificationDetails::get_messageId

+                        ((TransientNotificationDetails *)*puVar11,local_108);

+    local_168 = *(NotificationPlatform **)p_Var20->Data4;

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

+              ((ComPtr<DownloadTaskManager> *)local_e8);

+    if ((DAT_10 & 4) != 0) {

+      pwVar12 = (wchar_t *)GetNotificationPolicyReasonString((NOTIFICATION_POLICY_REASON)local_68);

+      if (7 < *(ulonglong *)(pwVar12 + 0xc)) {

+        pwVar12 = *(wchar_t **)pwVar12;

+      }

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notification

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      local_148[0] = uVar25 | 0x18000;

+      pwVar13 = (wchar_t *)Notification::get_handlerKey((Notification *)*puVar11);

+      if (7 < *(ulonglong *)(pwVar13 + 0xc)) {

+        pwVar13 = *(wchar_t **)pwVar13;

+      }

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notification

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      local_150[0] = Notification::get_id((Notification *)*puVar11);

+      puVar11 = (undefined8 *)

+                NotificationDeliveryTransaction::get_notification

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      local_148[0] = uVar25 | 0xf8000;

+      pwVar18 = (wchar_t *)Notification::get_type((Notification *)*puVar11);

+      local_148[0] = uVar25 | 0x1f8000;

+      if (7 < *(ulonglong *)(pwVar18 + 0xc)) {

+        pwVar18 = *(wchar_t **)pwVar18;

+      }

+      ppVar21 = local_88;

+      pwVar19 = (wchar_t *)

+                NotificationDeliveryTransaction::get_channelId

+                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

+      uVar25 = 0x3f8000;

+      if (7 < *(ulonglong *)(pwVar19 + 0xc)) {

+        pwVar19 = *(wchar_t **)pwVar19;

+      }

+      McTemplateU0zzqzxzd_EventWriteTransfer

+                ((ulonglong)local_150[0],ppVar21,pwVar19,pwVar18,CONCAT44(uVar29,local_150[0]),

+                 pwVar13,local_168,pwVar12);

+    }

+    if (uVar25 >> 0x15 != 0) {

+      uVar25 = uVar25 & 0xffdfffff;

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                (local_88);

+    }

+    if ((uVar25 >> 0x14 & 1) != 0) {

+      uVar25 = uVar25 & 0xffefffff;

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                (local_a8);

+    }

+    if ((uVar25 >> 0x13 & 1) != 0) {

+      uVar25 = uVar25 & 0xfff7ffff;

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

+                ((ComPtr<DownloadTaskManager> *)local_e8);

+    }

+    if ((uVar25 >> 0x12 & 1) != 0) {

+      uVar25 = uVar25 & 0xfffbffff;

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

+                ((ComPtr<DownloadTaskManager> *)&local_160);

+    }

+    if ((uVar25 >> 0x11 & 1) != 0) {

+      uVar25 = uVar25 & 0xfffdffff;

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                (local_c8);

+    }

+    if ((uVar25 >> 0x10 & 1) != 0) {

+      uVar25 = uVar25 & 0xfffeffff;

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

+                ((ComPtr<DownloadTaskManager> *)local_108);

+    }

+    if ((uVar25 >> 0xf & 1) == 0) goto LAB_6;

+    ppVar21 = local_68;

+  }

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+            (ppVar21);

+LAB_6:

+  LogPushNotificationDelivered

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

+                   *)&local_138,

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

+              *)&local_128,local_130,

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

+              *)&local_120,local_158,local_140,iVar8);

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

+    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xab,

+             &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

+  }

+  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_128);

+  wil::details::

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

+  ::

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

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

+              *)&local_120);

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

+            ((ComPtr<DownloadTaskManager> *)&local_118);

+  wil::details::

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

+  ::

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

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

+              *)&local_138);

+  return iVar8;

+}

+
```

## `ChannelRequestCompleteWork::AddChannelToTable`  (modified)

```diff
--- ChannelRequestCompleteWork::AddChannelToTable
+++ ChannelRequestCompleteWork::AddChannelToTable
@@ -1,2 +1,244 @@
-Failed to decompile wpncore.dll - .ProgramDB ChannelRequestCompleteWork::AddChannelToTable : 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 ChannelRequestCompleteWork::AddChannelToTable(unsigned short const *

+   __ptr64,struct _WPN_FILE_TIME & __ptr64) __ptr64 */

+

+long __thiscall

+ChannelRequestCompleteWork::AddChannelToTable

+          (ChannelRequestCompleteWork *this,ushort *param_1,_WPN_FILE_TIME *param_2)

+

+{

+  longlong lVar1;

+  bool bVar2;

+  BOOL BVar3;

+  long lVar4;

+  int iVar5;

+  long lVar6;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *pFVar7;

+  void *pvVar8;

+  ChannelRequestCompleteWork *pCVar9;

+  void *unaff_retaddr;

+  char *local_res8;

+  ushort *local_res10;

+  INotificationDatabase *local_res20;

+  IWNSChannelDetails *local_58;

+  _FILETIME local_50;

+  ushort *local_48;

+  char *local_40;

+  _FILETIME local_38;

+  char *local_30;

+  char *local_28;

+  char *local_20;

+  

+  local_50.dwLowDateTime = 0;

+  local_50.dwHighDateTime = 0;

+  local_res10 = param_1;

+  BVar3 = SystemTimeToFileTime((SYSTEMTIME *)(this + 0x54),&local_50);

+  if (BVar3 == 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_GetLastError

+              (unaff_retaddr,199,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+              );

+  }

+  *(undefined4 *)param_2 = 1;

+  *(DWORD *)(param_2 + 4) = local_50.dwLowDateTime;

+  *(DWORD *)(param_2 + 8) = local_50.dwHighDateTime;

+  local_38.dwLowDateTime = 0;

+  local_38.dwHighDateTime = 0;

+  GetSystemTimeAsFileTime(&local_38);

+  local_48 = (ushort *)0x0;

+  WpnGetDeviceVersionFromRegistry((__uint64 *)&local_48);

+  pCVar9 = this + 0x10;

+  ConvertUtf16ToUtf8((ushort *)&local_40);

+  ConvertUtf16ToUtf8((ushort *)&local_30);

+  local_58 = (IWNSChannelDetails *)0x0;

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    local_res8._0_4_ = 0;

+    lVar4 = WnpCloudEndpointResolver::ResolveCloudForPFN(param_1,(_WNS_CLOUD_INSTANCE *)&local_res8)

+    ;

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xda,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                 ,lVar4);

+    }

+    local_28 = local_30;

+    local_20 = local_40;

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

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

+    lVar4 = Microsoft::WRL::Details::

+            MakeAndInitialize<WNSChannelDetails,IWNSChannelDetails,unsigned_short_const*___ptr64&___ptr64,char*___ptr64,char*___ptr64,_FILETIME&___ptr64,_FILETIME&___ptr64,unsigned___int64&___ptr64,unsigned_long>

+                      (&local_58,&local_res10,&local_20,&local_28,&local_38,&local_50,

+                       (__uint64 *)&local_48,(ulong *)&local_res8);

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xe4,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                 ,lVar4);

+    }

+  }

+  else {

+    local_res8 = local_30;

+    local_20 = local_40;

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

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

+    lVar4 = Microsoft::WRL::Details::

+            MakeAndInitialize<WNSChannelDetails,IWNSChannelDetails,unsigned_short_const*___ptr64&___ptr64,char*___ptr64,char*___ptr64,_FILETIME&___ptr64,_FILETIME&___ptr64,unsigned___int64&___ptr64>

+                      (&local_58,&local_res10,&local_20,&local_res8,&local_38,&local_50,

+                       (__uint64 *)&local_48);

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xef,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                 ,lVar4);

+    }

+  }

+  local_res20 = (INotificationDatabase *)0x0;

+  lVar1 = *(longlong *)(this + 0x68);

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

+            ((ComPtr<DownloadTaskManager> *)&local_res20);

+  iVar5 = (**(code **)**(undefined8 **)(lVar1 + 0xa8))

+                    (*(undefined8 **)(lVar1 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

+                     &local_res20);

+  if ((-1 < iVar5) && (local_res20 == (INotificationDatabase *)0x0)) {

+    iVar5 = -0x7fc1fefb;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x402,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+               ,-0x7fc1fefb);

+  }

+  if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xf3,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+               ,iVar5);

+  }

+  local_48 = (ushort *)0x0;

+  wil::details::

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

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

+           *)&local_48,(ushort *)0x0);

+  lVar4 = WpnDatabaseHelpers::GetAppForChannelId(local_res20,local_40,&local_48);

+  if (lVar4 == -0x7ff8fb70) {

+    iVar5 = (**(code **)(*(longlong *)local_res20 + 0x118))(local_res20,param_1,local_58);

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

+              ::__l2::impl;

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

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                        ::__l2::impl);

+    if (bVar2) {

+      local_res8 = (char *)((ulonglong)local_res8 & 0xffffffff00000000);

+      lVar4 = WnpCloudEndpointResolver::ResolveCloudForPFN

+                        (param_1,(_WNS_CLOUD_INSTANCE *)&local_res8);

+      pvVar8 = unaff_retaddr;

+      if (lVar4 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0xff,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                   ,lVar4);

+      }

+      if ((DAT_0 & 2) != 0) {

+        if (7 < *(ulonglong *)(this + 0x28)) {

+          pCVar9 = *(ChannelRequestCompleteWork **)pCVar9;

+        }

+        McTemplateU0zzdq_EventWriteTransfer

+                  (pvVar8,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_ADDED_FOR_CLOUD_INSTANCE,

+                   (wchar_t *)pCVar9,(wchar_t *)param_1);

+      }

+    }

+    else if ((DAT_0 & 2) != 0) {

+      if (7 < *(ulonglong *)(this + 0x28)) {

+        pCVar9 = *(ChannelRequestCompleteWork **)pCVar9;

+      }

+      McTemplateU0zzd_EventWriteTransfer

+                (pFVar7,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_ADDED,(wchar_t *)pCVar9,

+                 (wchar_t *)param_1);

+    }

+    if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x106,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                 ,iVar5);

+    }

+  }

+  else {

+    iVar5 = _o__wcsicmp(param_1,local_48);

+    if (iVar5 != 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x10b,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                 ,-0x7ff8ffa9);

+    }

+    lVar4 = WpnDatabaseHelpers::UpdateChannelForApp(local_res20,param_1,local_58);

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

+              ::__l2::impl;

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

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                        ::__l2::impl);

+    if (bVar2) {

+      local_res8 = (char *)((ulonglong)local_res8 & 0xffffffff00000000);

+      lVar6 = WnpCloudEndpointResolver::ResolveCloudForPFN

+                        (param_1,(_WNS_CLOUD_INSTANCE *)&local_res8);

+      pvVar8 = unaff_retaddr;

+      if (lVar6 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x111,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                   ,lVar6);

+      }

+      if ((DAT_0 & 2) != 0) {

+        if (7 < *(ulonglong *)(this + 0x28)) {

+          pCVar9 = *(ChannelRequestCompleteWork **)pCVar9;

+        }

+        McTemplateU0zzdq_EventWriteTransfer

+                  (pvVar8,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_UPDATED_FOR_CLOUD_INSTANCE,

+                   (wchar_t *)pCVar9,(wchar_t *)param_1);

+      }

+    }

+    else if ((DAT_0 & 2) != 0) {

+      if (7 < *(ulonglong *)(this + 0x28)) {

+        pCVar9 = *(ChannelRequestCompleteWork **)pCVar9;

+      }

+      McTemplateU0zzd_EventWriteTransfer

+                (pFVar7,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_UPDATED,(wchar_t *)pCVar9,

+                 (wchar_t *)param_1);

+    }

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x118,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                 ,lVar4);

+    }

+  }

+  wil::details::

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

+  ::

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

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

+              *)&local_48);

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

+            ((ComPtr<DownloadTaskManager> *)&local_res20);

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

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

+  wistd::unique_ptr<_GUID,wil::process_heap_deleter>::reset

+            ((unique_ptr<_GUID,wil::process_heap_deleter> *)&local_30,(_GUID *)0x0);

+  wistd::unique_ptr<_GUID,wil::process_heap_deleter>::reset

+            ((unique_ptr<_GUID,wil::process_heap_deleter> *)&local_40,(_GUID *)0x0);

+  return 0;

+}

+
```

## `tip2::details::shared_data<1,0,0>::log_failure`  (modified)

```diff
--- tip2::details::shared_data<1,0,0>::log_failure
+++ tip2::details::shared_data<1,0,0>::log_failure
@@ -1,22 +1,37 @@
 

-void __thiscall winrt::param::log_failure(shared_data<1,0,0> *this,FailureInfo *param_1)

+/* private: void __cdecl tip2::details::shared_data<1,0,0>::log_failure(struct wil::FailureInfo

+   const & __ptr64) __ptr64 */

+

+void __thiscall

+tip2::details::shared_data<1,0,0>::log_failure(shared_data<1,0,0> *this,FailureInfo *param_1)

 

 {

-  undefined2 unaff_BX;

-  longlong unaff_RBP;

-  longlong unaff_RSI;

-  input_archive *unaff_RDI;

+  bool bVar1;

+  StoredFailureInfo local_b8 [152];

+  shared_buffer local_20 [24];

   

-  *(char *)(unaff_RBP + 0x10) = (char)unaff_BX;

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

-  *(undefined1 *)(unaff_RBP + -0x10) = 5;

-  *(longlong *)(unaff_RBP + -8) = unaff_RBP + 0x10;

-  tson::input_archive::process<tson::nvp<bool&___ptr64>_>

-            (unaff_RDI,(nvp<bool&___ptr64> *)(unaff_RBP + -0x18));

-  if (*(char *)(unaff_RBP + 0x10) != (char)unaff_BX) {

-    unaff_BX = 0xffff;

+  bVar1 = begin_update(this);

+  if (bVar1) {

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

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>

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

+                                    ::__l2::impl);

+    if (bVar1) {

+      while (9 < *(ulonglong *)(this + 0x58)) {

+        vector_nothrow<wil::StoredFailureInfo>::erase

+                  ((vector_nothrow<wil::StoredFailureInfo> *)(this + 0x48),

+                   *(StoredFailureInfo **)(this + 0x48));

+      }

+    }

+    wil::StoredFailureInfo::StoredFailureInfo(local_b8,param_1);

+    bVar1 = vector_nothrow<wil::StoredFailureInfo>::push_back

+                      ((vector_nothrow<wil::StoredFailureInfo> *)(this + 0x48),local_b8);

+    wil::details::shared_buffer::reset(local_20);

+    if (!bVar1) {

+      *(uint *)(this + 0x40) = *(uint *)(this + 0x40) | 0x100000;

+    }

   }

-  *(undefined2 *)(unaff_RSI + 0x18) = unaff_BX;

+  end_update(this);

   return;

 }
```

## `WpncoreTelemetry::UpdateLogEventCount`  (modified)

```diff
--- WpncoreTelemetry::UpdateLogEventCount
+++ NotificationAvailableWork::DeliverLocalNotification
@@ -1,2 +1,2 @@
-Failed to decompile wpncore.dll - .ProgramDB WpncoreTelemetry::UpdateLogEventCount : Error: Decompile error: 
+Failed to decompile wpncore.dll - .ProgramDB NotificationAvailableWork::DeliverLocalNotification : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `ChannelRequestCompleteWork::Invoke`  (modified)

```diff
--- ChannelRequestCompleteWork::Invoke
+++ ChannelRequestCompleteWork::Invoke
@@ -1,2 +1,127 @@
-Failed to decompile wpncore.dll - .ProgramDB ChannelRequestCompleteWork::Invoke : 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 ChannelRequestCompleteWork::Invoke(void) __ptr64 */

+

+long __thiscall ChannelRequestCompleteWork::Invoke(ChannelRequestCompleteWork *this)

+

+{

+  ChannelRequests *this_00;

+  bool bVar1;

+  long lVar2;

+  int iVar3;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *pFVar4;

+  void *pvVar5;

+  _WNS_CLOUD_INSTANCE *p_Var6;

+  ChannelRequestCompleteWork *pCVar7;

+  ChannelRequestCompleteWork *pCVar8;

+  void *unaff_retaddr;

+  _WNS_CLOUD_INSTANCE local_res8 [2];

+  wchar_t *local_res10;

+  IWpnChannelRequest *local_res18;

+  undefined8 local_48;

+  undefined4 local_40;

+  undefined8 local_38;

+  undefined4 local_30;

+  CRPCTimeout local_28 [32];

+  

+  this_00 = *(ChannelRequests **)(*(longlong *)(this + 0x68) + 0x18);

+  if (this_00 == (ChannelRequests *)0x0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x31,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+               ,-0x7fc1fefb);

+  }

+  local_res18 = (IWpnChannelRequest *)0x0;

+  local_res10 = (wchar_t *)0x0;

+  local_res8[0] = 0;

+  wil::details::

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

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(unsigned_short*___ptr64),&void___cdecl_SysFreeString(unsigned_short*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+           *)&local_res10,(ushort *)0x0);

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

+            ((ComPtr<DownloadTaskManager> *)&local_res18);

+  lVar2 = ChannelRequests::GetAndRemoveRequest

+                    (this_00,*(ulong *)(this + 8),&local_res18,(ushort **)&local_res10,

+                     (int *)local_res8);

+  if (-1 < lVar2) {

+    local_48 = 0;

+    local_40 = 0;

+    if (*(int *)(this + 0x50) == 0) {

+      lVar2 = AddChannelToTable(this,(ushort *)local_res10,(_WPN_FILE_TIME *)&local_48);

+      if (lVar2 < 0) {

+        *(long *)(this + 0x50) = lVar2;

+      }

+      else {

+        AddToExemptionList(this,(ushort *)local_res10);

+      }

+    }

+    else {

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

+                ::__l2::impl;

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

+                        ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                          ::__l2::impl);

+      if (bVar1) {

+        local_res8[0] = 0;

+        p_Var6 = local_res8;

+        lVar2 = WnpCloudEndpointResolver::ResolveCloudForPFN((ushort *)local_res10,p_Var6);

+        pvVar5 = unaff_retaddr;

+        if (lVar2 < 0) {

+          p_Var6 = (_WNS_CLOUD_INSTANCE *)0x4f;

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0x4f,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+                     ,lVar2);

+        }

+        if ((DAT_0 & 4) != 0) {

+          McTemplateU0zdq_EventWriteTransfer(pvVar5,p_Var6,local_res10,*(undefined4 *)(this + 0x50))

+          ;

+        }

+      }

+      else if ((DAT_0 & 4) != 0) {

+        McTemplateU0zq_EventWriteTransfer

+                  (pFVar4,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST_FAILED,local_res10,

+                   *(undefined4 *)(this + 0x50));

+      }

+    }

+    CRPCTimeout::CRPCTimeout(local_28,15000);

+    pCVar8 = this + 0x30;

+    if (7 < *(ulonglong *)(this + 0x48)) {

+      pCVar8 = *(ChannelRequestCompleteWork **)pCVar8;

+    }

+    pCVar7 = this + 0x10;

+    if (7 < *(ulonglong *)(this + 0x28)) {

+      pCVar7 = *(ChannelRequestCompleteWork **)pCVar7;

+    }

+    local_38 = local_48;

+    local_30 = local_40;

+    iVar3 = (**(code **)(*(longlong *)local_res18 + 0x18))

+                      (local_res18,*(undefined4 *)(this + 0x50),pCVar7,pCVar8,&local_38);

+    if (-1 < iVar3) {

+      CBaseRPCTimeout::Disarm((CBaseRPCTimeout *)local_28);

+      wil::details::

+      unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(unsigned_short*___ptr64),&void___cdecl_SysFreeString(unsigned_short*___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*)(unsigned_short*___ptr64),&void___cdecl_SysFreeString(unsigned_short*___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*)(unsigned_short*___ptr64),&void___cdecl_SysFreeString(unsigned_short*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  *)&local_res10);

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

+                ((ComPtr<DownloadTaskManager> *)&local_res18);

+      return 0;

+    }

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x62,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+               ,iVar3);

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_Throw_Hr

+            (unaff_retaddr,0x3a,

+             "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\requestcompletework.cpp"

+             ,lVar2);

+}

+
```

## `wil::details::WilApiImpl_RecordFeatureUsage`  (modified)

```diff
--- wil::details::WilApiImpl_RecordFeatureUsage
+++ wil::details::WilApiImpl_RecordFeatureUsage
@@ -1,44 +1,46 @@
+

+/* void __cdecl wil::details::WilApiImpl_RecordFeatureUsage(unsigned int,unsigned int,unsigned

+   int,char const * __ptr64) */

 

 void __cdecl

-`wil::details_abi::RawUsageIndex::WilApiImpl_RecordFeatureUsage

-          (uint param_1,uint param_2,uint param_3,char *param_4)

+wil::details::WilApiImpl_RecordFeatureUsage(uint param_1,uint param_2,uint param_3,char *param_4)

 

 {

-  _Ref_count_base *unaff_RBX;

-  longlong unaff_RBP;

+  bool bVar1;

+  wil_details_ServiceReportingKind wVar2;

   

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

-            ((ComPtr<DownloadTaskManager> *)(unaff_RBP + 0x108));

-  std::unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>::

-  ~unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>

-            ((unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_> *)

-             (unaff_RBP + -0x50));

-  if (unaff_RBX != (_Ref_count_base *)0x0) {

-    std::_Ref_count_base::_Decref(unaff_RBX);

+  wVar2 = param_2 & 0x7fffffff;

+  if (((param_1 == 0) && (param_3 == 0)) && (wVar2 == 0)) {

+    FeatureStateManager::FlushUsage((FeatureStateManager *)&g_featureStateManager);

   }

-  std::unique_ptr<ChannelRequests,std::default_delete<ChannelRequests>_>::

-  ~unique_ptr<ChannelRequests,std::default_delete<ChannelRequests>_>

-            ((unique_ptr<ChannelRequests,std::default_delete<ChannelRequests>_> *)

-             (unaff_RBP + -0x48));

-  std::unique_ptr<BlockedRawChannels,std::default_delete<BlockedRawChannels>_>::

-  ~unique_ptr<BlockedRawChannels,std::default_delete<BlockedRawChannels>_>

-            ((unique_ptr<BlockedRawChannels,std::default_delete<BlockedRawChannels>_> *)

-             (unaff_RBP + -0x40));

-  std::unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>::

-  ~unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>

-            ((unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_> *)

-             (unaff_RBP + -0x38));

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

-            ((ComPtr<DownloadTaskManager> *)&stack0x00000030);

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

-            ((ComPtr<DownloadTaskManager> *)&stack0x00000058);

-  std::unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>::

-  ~unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>

-            ((unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_> *)&stack0x00000060);

-  std::unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>::

-  ~unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>

-            ((unique_ptr<NotificationUpdateDataWork,std::default_delete<NotificationUpdateDataWork>_>

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

+  else if (wVar2 >> 0x1e == 0) {

+    if ((param_3 == 0) && (wVar2 != 0xfe)) {

+      wil_RtlStagingConfig_RecordFeatureUsage(param_1,(ushort)wVar2,param_2 >> 0x1f);

+    }

+    else if (g_featureStateManager != (shutdown_aware_object<wil::details::FeatureStateManager>)0x0)

+    {

+      bVar1 = FeatureStateManager::EnsureStateData((FeatureStateManager *)&g_featureStateManager);

+      if (bVar1) {

+        bVar1 = details_abi::FeatureStateData::RecordFeatureUsage

+                          (DAT_0,param_1,wVar2,(ulonglong)param_3);

+        if (bVar1) {

+          bVar1 = ProcessShutdownInProgress();

+          if (!bVar1) {

+            AcquireSRWLockExclusive((PSRWLOCK)&DAT_1);

+            EnsureCoalescedTimer<wil::details::FeatureStateManager>

+                      ((unique_any_t<wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>_>

+                        *)&DAT_2,(bool *)&DAT_18017e389,

+                       (FeatureStateManager *)&g_featureStateManager);

+            ReleaseSRWLockExclusive((PSRWLOCK)&DAT_1);

+          }

+        }

+      }

+    }

+  }

+  else {

+    FeatureStateManager::QueueBackgroundSRUMUsageReporting

+              ((FeatureStateManager *)&g_featureStateManager,param_1,(ushort)wVar2,param_3);

+  }

   return;

 }
```

## ``wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$0`  (modified)

```diff
--- `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$0
+++ `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$0
@@ -1,15 +1,19 @@
 

-undefined8 `PlatformFactory::CreateInstance'::__l1::catch_0(void *param_1,longlong param_2)

+bool `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch_0

+               (undefined8 param_1,longlong param_2)

 

 {

-  char *in_RAX;

+  ResultException *pRVar1;

+  bool bVar2;

   

-  *in_RAX = (char)in_RAX;

-  *in_RAX = *in_RAX + (char)in_RAX;

-  wil::details::in1diag3::Log_CaughtException

-            (param_1,0xcbf,

-             "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\database\\sqlitedatabase.cpp"

-            );

-  return 0;

+  pRVar1 = *(ResultException **)(param_2 + 0x30);

+  bVar2 = ((byte)pRVar1[0x1c] & 8) == 0;

+  if (bVar2) {

+    **(undefined1 **)(param_2 + 0xa0) = 1;

+    wil::details::MaybeGetExceptionString

+              (pRVar1,*(ushort **)(param_2 + 0x90),*(__uint64 *)(param_2 + 0x98));

+    *(undefined4 *)(param_2 + 0xa8) = *(undefined4 *)(pRVar1 + 0x20);

+  }

+  return bVar2;

 }
```

## ``wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$6`  (modified)

```diff
--- `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$6
+++ `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch$6
@@ -1,7 +1,19 @@
 

-undefined8 `PlatformFactory::CreateInstance'::__l1::catch_6(undefined8 param_1,longlong param_2)

+bool `wil::details::ResultFromCaughtException_CppWinRt'::__l1::catch_6

+               (undefined8 param_1,longlong param_2)

 

 {

-  return 0;

+  ResultException *pRVar1;

+  bool bVar2;

+  

+  pRVar1 = *(ResultException **)(param_2 + 0x50);

+  bVar2 = ((byte)pRVar1[0x1c] & 8) == 0;

+  if (bVar2) {

+    **(undefined1 **)(param_2 + 0xa0) = 1;

+    wil::details::MaybeGetExceptionString

+              (pRVar1,*(ushort **)(param_2 + 0x90),*(__uint64 *)(param_2 + 0x98));

+    *(undefined4 *)(param_2 + 0xa8) = *(undefined4 *)(pRVar1 + 0x20);

+  }

+  return bVar2;

 }
```

## ``ConnectionManagerCallback::OnNotificationReceived'::__l1::catch$68`  (modified)

```diff
--- `ConnectionManagerCallback::OnNotificationReceived'::__l1::catch$68
+++ `ConnectionManagerCallback::OnNotificationReceived'::__l1::catch$68
@@ -1,13 +1,20 @@
 

 undefined8

 `ConnectionManagerCallback::OnNotificationReceived'::__l1::catch_68

           (undefined8 param_1,longlong param_2)

 

 {

-  wil::details::in1diag3::Log_CaughtException

-            (*(void **)(param_2 + 0xa8),0x68,

-             "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\database\\WpndatabaseTelemetry.h"

-            );

+  long lVar1;

+  longlong lVar2;

+  

+  lVar2 = param_2;

+  lVar1 = wil::ResultFromCaughtException();

+  *(long *)(param_2 + 0xe0) = lVar1;

+  if ((DAT_0 & 0x40) != 0) {

+    McTemplateU0qzzxq_EventWriteTransfer

+              (param_1,lVar2,*(undefined4 *)(param_2 + 0xc0),*(wchar_t **)(param_2 + 200),

+               *(wchar_t **)(param_2 + 0x108));

+  }

   return 0;

 }
```

## `ConnectionManagerCallback::OnConnectionChanged`  (modified)

```diff
--- ConnectionManagerCallback::OnConnectionChanged
+++ ConnectionManagerCallback::OnNotificationReceived
@@ -1,112 +1,1143 @@
 

 /* 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 ConnectionManagerCallback::OnConnectionChanged(enum

-   __MIDL___MIDL_itf_wpnprivate_0000_0000_0001,short,enum __MIDL___MIDL_itf_wpnconn_0000_0000_0001)

-   __ptr64 */

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

+/* public: virtual long __cdecl ConnectionManagerCallback::OnNotificationReceived(struct

+   INotificationDataPackage * __ptr64,struct INotificationAckResponse * __ptr64 * __ptr64) __ptr64

+    */

 

 long __thiscall

-ConnectionManagerCallback::OnConnectionChanged

-          (ConnectionManagerCallback *this,__MIDL___MIDL_itf_wpnprivate_0000_0000_0001 param_1,

-          short param_2,__MIDL___MIDL_itf_wpnconn_0000_0000_0001 param_3)

+ConnectionManagerCallback::OnNotificationReceived

+          (ConnectionManagerCallback *this,INotificationDataPackage *param_1,

+          INotificationAckResponse **param_2)

 

 {

-  longlong *plVar1;

-  bool bVar2;

-  char cVar3;

-  long lVar4;

-  FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *pFVar5;

-  undefined4 *puVar6;

-  undefined4 in_register_00000014;

-  undefined6 in_register_00000082;

-  undefined1 auStackY_d8 [32];

-  __MIDL___MIDL_itf_wpnconn_0000_0000_0001 local_a8;

-  __MIDL___MIDL_itf_wpnprivate_0000_0000_0001 local_a4;

-  long local_a0 [2];

-  _EVENT_DATA_DESCRIPTOR local_98 [2];

-  long *local_78;

-  undefined4 local_70;

-  undefined4 local_6c;

-  __MIDL___MIDL_itf_wpnprivate_0000_0000_0001 *local_68;

-  undefined4 local_60;

-  undefined4 local_5c;

-  __MIDL___MIDL_itf_wpnconn_0000_0000_0001 *local_58;

-  undefined4 local_50;

-  undefined4 local_4c;

+  code *pcVar1;

+  longlong lVar2;

+  INotificationHandler *pIVar3;

+  undefined8 uVar4;

+  bool bVar5;

+  char cVar6;

+  int iVar7;

+  ulong uVar8;

+  ulong uVar9;

+  uint uVar10;

+  long lVar11;

+  ushort *puVar12;

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

+  *pbVar13;

+  WpncoreTelemetry *this_00;

+  INotificationAckResponse *pIVar14;

+  static_lazy<WpncoreTelemetry> *this_01;

+  _tlgProvider_t *p_Var15;

+  ulonglong uVar16;

+  uchar auVar17 [8];

+  ushort **ppuVar18;

+  __MIDL___MIDL_itf_wpntypes_0000_0000_0005 _Var19;

+  ConnectionManagerCallback *this_02;

+  uchar *puVar20;

+  _GUID *p_Var21;

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

+  auVar22 [8];

+  static_lazy<WpncoreTelemetry> *unaff_retaddr;

+  undefined1 auStackY_2b8 [32];

+  __MIDL___MIDL_itf_wpntypes_0000_0000_0005 local_1f8;

+  ulong local_1f4;

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_1f0 [8];

+  __MIDL___MIDL_itf_wpntypes_0000_0000_0006 local_1e8;

+  __MIDL___MIDL_itf_wpntypes_0000_0000_0007 local_1e4;

+  uint local_1e0;

+  ulong local_1dc;

+  __MIDL___MIDL_itf_wpntypes_0000_0000_0007 local_1d8 [2];

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

+  local_1d0 [8];

+  __MIDL___MIDL_itf_wpntypes_0000_0000_0005 local_1c8;

+  __MIDL___MIDL_itf_wpnplatform_0000_0007_0005 local_1c4;

+  ulong local_1c0 [2];

+  ConnectionManagerCallback *local_1b8;

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

+  local_1b0 [8];

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_1a8 [8];

+  __MIDL___MIDL_itf_wpnplatform_0000_0007_0005 local_1a0 [2];

+  INotificationHandler *local_198;

+  ushort *local_190;

+  ushort *local_188;

+  ushort *local_180;

+  _GUID local_178;

+  ulong local_168 [2];

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

+  local_160 [8];

+  unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_158 [8];

+  uchar local_150 [8];

+  ushort *local_148;

+  ushort *local_140;

+  double local_138;

+  double local_130;

+  undefined8 local_128;

+  uchar *local_120;

+  ConnectionManagerCallback *local_118;

+  INotificationAckResponse *local_110;

+  INotificationAckResponse *local_108;

+  map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+  local_100 [24];

+  unordered_map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+  local_e8 [8];

+  uchar local_e0 [8];

+  _GUID local_a8;

+  undefined1 local_98;

+  INotificationAckResponse *local_88;

+  undefined8 uStack_80;

+  undefined8 local_78;

+  ulonglong uStack_70;

+  INotificationAckResponse *local_68;

+  undefined8 uStack_60;

+  undefined8 local_58;

+  ulonglong uStack_50;

   ulonglong local_48;

   

-  local_48 = __security_cookie ^ (ulonglong)auStackY_d8;

+  local_48 = __security_cookie ^ (ulonglong)auStackY_2b8;

+  local_118 = this;

+  local_110 = (INotificationAckResponse *)param_2;

+  local_108 = (INotificationAckResponse *)param_2;

   if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

       ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

-    WPP_SF_ddd(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),CONCAT44(in_register_00000014,param_1),

-               CONCAT62(in_register_00000082,param_2),param_1);

-  }

-  lVar4 = SubmitConnectionStatusWork(this,param_1,param_2,param_3);

-  if (((lVar4 < 0) && ((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control)) &&

-     (((WPP_GLOBAL_Control[0x1c] & 0x40) != 0 && (1 < (byte)WPP_GLOBAL_Control[0x19])))) {

-    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xb,

-             &WPP_269145a32571379f04175f2797d54a50_Traceguids,lVar4);

-  }

-  if (param_1 == 7) {

-    plVar1 = *(longlong **)(*(longlong *)(this + 0x10) + 0x118);

-    if (plVar1 == (longlong *)0x0) {

-      lVar4 = -0x7fc1fefb;

+    WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x26,

+            &WPP_269145a32571379f04175f2797d54a50_Traceguids);

+  }

+  uVar16 = 0;

+  *param_2 = (INotificationAckResponse *)0x0;

+  local_1f4 = 0;

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

+                  )0x0;

+  local_1f0[1] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1f0[2] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1f0[3] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1f0[4] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1f0[5] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1f0[6] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1f0[7] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1f8 = 1;

+  local_1a0[0] = 0;

+  local_1e4 = 0;

+  local_1b8 = (ConnectionManagerCallback *)0x0;

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

+                  )0x0;

+  local_1a8[1] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1a8[2] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1a8[3] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1a8[4] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1a8[5] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1a8[6] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1a8[7] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1b0[0] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1b0[1] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1b0[2] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1b0[3] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1b0[4] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1b0[5] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1b0[6] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_1b0[7] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_wil::details::FreeProcessHeap(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_168[0] = 0;

+  local_178._0_8_ = (INotificationAckResponse *)0x0;

+  local_1c0[0] = 0;

+  uStack_60 = 0;

+  local_58 = 0;

+  uStack_50 = 7;

+  local_68 = (INotificationAckResponse *)0x0;

+  uStack_80 = 0;

+  local_78 = 0;

+  uStack_70 = 7;

+  local_88 = (INotificationAckResponse *)0x0;

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0x28))(param_1);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xf3,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  pcVar1 = *(code **)(*(longlong *)param_1 + 0x20);

+  wil::details::

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

+  ::reset(local_1f0,(ushort *)0x0);

+  iVar7 = (*pcVar1)(param_1,local_1f0);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xf4,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0x30))(param_1,&local_1e4);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xf5,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0x58))(param_1,&local_1b8);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xf6,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_a8._0_8_ = local_1a8;

+  local_a8.Data4[0] = '\0';

+  local_a8.Data4[1] = '\0';

+  local_a8.Data4[2] = '\0';

+  local_a8.Data4[3] = '\0';

+  local_a8.Data4[4] = '\0';

+  local_a8.Data4[5] = '\0';

+  local_a8.Data4[6] = '\0';

+  local_a8.Data4[7] = '\0';

+  local_98 = 1;

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0xa0))(param_1,local_a8.Data4);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xf7,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  wil::details::

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

+  ::

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

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

+              *)&local_a8);

+  std::

+  map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+  ::

+  map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+            (local_100);

+  puVar12 = WpnDatabaseHelpers::NotificationTypeNameFromValue(local_1f8);

+  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_a8,(ushort *)L"NotificationType");

+  pbVar13 = std::

+            map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+            ::operator[](local_100,

+                         (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                          *)&local_a8);

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

+  ::assign(pbVar13,puVar12);

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+            ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              *)&local_a8);

+  pcVar1 = *(code **)(*(longlong *)param_1 + 0x20);

+  wil::details::

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

+  ::reset(local_1f0,(ushort *)0x0);

+  iVar7 = (*pcVar1)(param_1,local_1f0);

+  auVar22 = local_1f0;

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0xfb,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  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_a8,(ushort *)L"ChannelId");

+  pbVar13 = std::

+            map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+            ::operator[](local_100,

+                         (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                          *)&local_a8);

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

+  ::assign(pbVar13,(ushort *)auVar22);

+  std::

+  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+  ::

+  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+            ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              *)&local_a8);

+  local_160[0] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_160[1] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_160[2] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_160[3] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_160[4] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_160[5] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_160[6] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  local_160[7] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  )0x0;

+  lVar2 = *(longlong *)(this + 0x10);

+  wil::details::

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

+  ::reset(local_160,(void *)0x0);

+  NotificationPlatform::PdcHelper::Activate

+            ((PdcHelper *)(lVar2 + 0x198),local_100,1,3,(void **)local_160);

+  local_178.Data4[0] = (uchar)local_1a8[0];

+  local_178.Data4[1] = (uchar)local_1a8[1];

+  local_178.Data4[2] = (uchar)local_1a8[2];

+  local_178.Data4[3] = (uchar)local_1a8[3];

+  local_178.Data4[4] = (uchar)local_1a8[4];

+  local_178.Data4[5] = (uchar)local_1a8[5];

+  local_178.Data4[6] = (uchar)local_1a8[6];

+  local_178.Data4[7] = (uchar)local_1a8[7];

+  local_1d0[0] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  )local_1f0[0];

+  local_1d0[1] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  )local_1f0[1];

+  local_1d0[2] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  )local_1f0[2];

+  local_1d0[3] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  )local_1f0[3];

+  local_1d0[4] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  )local_1f0[4];

+  local_1d0[5] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  )local_1f0[5];

+  local_1d0[6] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  )local_1f0[6];

+  local_1d0[7] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                  )local_1f0[7];

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

+              [8])&local_1f8;

+  WnsCPLog::

+  WnsPlatNotificationReceived<unsigned_short*___ptr64,unsigned___int64&___ptr64,char*___ptr64,__MIDL___MIDL_itf_wpntypes_0000_0000_0005&___ptr64,__MIDL___MIDL_itf_wpntypes_0000_0000_0007&___ptr64>

+            ((ushort **)local_1d0,(__uint64 *)&local_1b8,(char **)local_178.Data4,

+             (__MIDL___MIDL_itf_wpntypes_0000_0000_0005 *)auVar22,&local_1e4);

+  local_130 = 0.0;

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0x18))(param_1,&local_130);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x107,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_138 = 0.0;

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0x38))(param_1);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x109,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_180 = (ushort *)0x0;

+  pcVar1 = *(code **)(*(longlong *)param_1 + 0x40);

+  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>_>

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_180,(ushort *)0x0);

+  iVar7 = (*pcVar1)(param_1);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x10b,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_188 = (ushort *)0x0;

+  pcVar1 = *(code **)(*(longlong *)param_1 + 0x48);

+  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>_>

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_188,(ushort *)0x0);

+  iVar7 = (*pcVar1)(param_1);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x10d,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_140 = (ushort *)0x0;

+  pcVar1 = *(code **)(*(longlong *)param_1 + 0x50);

+  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>_>

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_140,(ushort *)0x0);

+  iVar7 = (*pcVar1)(param_1,&local_140);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x10f,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_1dc = 0;

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0x60))(param_1,&local_1dc);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x111,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_1e0 = 0;

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0x68))(param_1);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x113,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_190 = (ushort *)0x0;

+  pcVar1 = *(code **)(*(longlong *)param_1 + 0x70);

+  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>_>

+  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_190,(ushort *)0x0);

+  iVar7 = (*pcVar1)(param_1,&local_190);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x115,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+  local_1c4 = 0;

+  iVar7 = (**(code **)(*(longlong *)param_1 + 0x78))(param_1,&local_1c4);

+  if (-1 < iVar7) {

+    local_1d8[0] = 0;

+    local_120 = (uchar *)0x0;

+    local_a8._0_8_ = &local_120;

+    local_a8.Data4[0] = '\0';

+    local_a8.Data4[1] = '\0';

+    local_a8.Data4[2] = '\0';

+    local_a8.Data4[3] = '\0';

+    local_a8.Data4[4] = '\0';

+    local_a8.Data4[5] = '\0';

+    local_a8.Data4[6] = '\0';

+    local_a8.Data4[7] = '\0';

+    local_98 = 1;

+    iVar7 = (**(code **)(*(longlong *)param_1 + 0x90))(param_1,local_1d8,local_a8.Data4);

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x11a,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                 ,iVar7);

+    }

+    wil::details::

+    out_param_t<wistd::unique_ptr<unsigned_char,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+    ::

+    ~out_param_t<wistd::unique_ptr<unsigned_char,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+              ((out_param_t<wistd::unique_ptr<unsigned_char,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>_>

+                *)&local_a8);

+    iVar7 = (**(code **)(*(longlong *)param_1 + 0x98))(param_1,local_1a0);

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x11b,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                 ,iVar7);

+    }

+    local_1c8 = 0;

+    iVar7 = (**(code **)(*(longlong *)param_1 + 0x80))(param_1);

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x11e,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                 ,iVar7);

+    }

+    local_150[0] = '\0';

+    local_150[1] = '\0';

+    local_150[2] = '\0';

+    local_150[3] = '\0';

+    local_150[4] = '\0';

+    local_150[5] = '\0';

+    local_150[6] = '\0';

+    local_150[7] = '\0';

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

+                    )0x0;

+    local_158[1] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    )0x0;

+    local_158[2] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    )0x0;

+    local_158[3] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    )0x0;

+    local_158[4] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    )0x0;

+    local_158[5] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    )0x0;

+    local_158[6] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    )0x0;

+    local_158[7] = (unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,unsigned_short*___ptr64,unsigned_short*___ptr64,0,std::nullptr_t>_>

+                    )0x0;

+    std::

+    unordered_map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+    ::

+    unordered_map<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>_>

+              (local_e8);

+    while (_Var19 = (__MIDL___MIDL_itf_wpntypes_0000_0000_0005)uVar16, _Var19 < local_1c8) {

+      pcVar1 = *(code **)(*(longlong *)param_1 + 0x88);

+      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>_>

+      ::reset(local_158,(ushort *)0x0);

+      wil::details::

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

+      ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_150,(ushort *)0x0);

+      puVar20 = local_150;

+      iVar7 = (*pcVar1)(param_1,uVar16,puVar20,local_158);

+      if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x125,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                   ,iVar7);

+      }

       if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

-        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xc,

-                 &WPP_269145a32571379f04175f2797d54a50_Traceguids,0x803e0105);

-      }

-    }

-    else {

-      lVar4 = 0;

-    }

-    (**(code **)(*plVar1 + 0x28))(plVar1);

-  }

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

-            ::__l2::impl;

-  bVar2 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

-                    ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

-                      ::__l2::impl);

-  if (bVar2) {

-    if ((DAT_0 & 0x10) != 0) {

-      McTemplateU0qd_EventWriteTransfer

-                (pFVar5,(PCEVENT_DESCRIPTOR)

-                        &WPNCONN_CONNECTION_PROVIDER_ON_CONNECTION_CHANGED_FOR_CLOUD_INSTANCE,

-                 (ulonglong)param_1,*(undefined4 *)(this + 0x18));

-    }

-  }

-  else if ((DAT_0 & 0x10) != 0) {

-    McTemplateU0t_EventWriteTransfer

-              (pFVar5,(PCEVENT_DESCRIPTOR)&WPNCONN_CONNECTION_PROVIDER_ON_CONNECTION_CHANGED,

-               (ulonglong)param_1);

-  }

-  if (5 < DAT_1) {

-    puVar6 = &DAT_1;

-    cVar3 = _tlgKeywordOn(0x18017e038,0x400000000000);

-    if (cVar3 != '\0') {

-      local_58 = &local_a8;

-      local_50 = 4;

-      local_4c = 0;

-      local_68 = &local_a4;

-      local_60 = 4;

-      local_5c = 0;

-      local_78 = local_a0;

-      local_70 = 4;

-      local_6c = 0;

-      local_a8 = param_3;

-      local_a4 = param_1;

-      local_a0[0] = lVar4;

-      _tlgWriteTransfer_EventWriteTransfer

-                ((longlong)puVar6,&DAT_2,(LPCGUID)0x0,(LPCGUID)0x0,5,local_98);

-    }

-  }

-  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

-    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xd,

-             &WPP_269145a32571379f04175f2797d54a50_Traceguids,lVar4);

-  }

-  return lVar4;

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (3 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_dSS(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),uVar16,puVar20,_Var19,

+                   (wchar_t *)local_150,(wchar_t *)local_158);

+      }

+      local_1d0[0] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_158[0];

+      local_1d0[1] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_158[1];

+      local_1d0[2] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_158[2];

+      local_1d0[3] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_158[3];

+      local_1d0[4] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_158[4];

+      local_1d0[5] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_158[5];

+      local_1d0[6] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_158[6];

+      local_1d0[7] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_158[7];

+      local_178.Data4[0] = local_150[0];

+      local_178.Data4[1] = local_150[1];

+      local_178.Data4[2] = local_150[2];

+      local_178.Data4[3] = local_150[3];

+      local_178.Data4[4] = local_150[4];

+      local_178.Data4[5] = local_150[5];

+      local_178.Data4[6] = local_150[6];

+      local_178.Data4[7] = local_150[7];

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

+                  [8])local_1d0;

+      std::

+      _Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+      ::emplace<unsigned_short*___ptr64,unsigned_short*___ptr64>

+                ((_Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                  *)local_e8,(ushort **)&local_a8,(ushort **)local_178.Data4);

+      if (local_a8.Data4[0] == '\0') {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x129,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                   ,-0x7fff0001);

+      }

+      uVar16 = (ulonglong)(_Var19 + 1);

+    }

+    local_1d0[0] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    )local_1a8[0];

+    local_1d0[1] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    )local_1a8[1];

+    local_1d0[2] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    )local_1a8[2];

+    local_1d0[3] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    )local_1a8[3];

+    local_1d0[4] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    )local_1a8[4];

+    local_1d0[5] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    )local_1a8[5];

+    local_1d0[6] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    )local_1a8[6];

+    local_1d0[7] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                    )local_1a8[7];

+    WnsCPLog::WnsPlatNotificationPdcActivated<unsigned___int64&___ptr64,char*___ptr64>

+              ((__uint64 *)&local_1b8,(char **)local_1d0);

+    this_02 = local_118;

+    uVar8 = NotificationPlatform::GetNotificationTrackingId

+                      (*(NotificationPlatform **)(local_118 + 0x10));

+    local_198 = (INotificationHandler *)0x0;

+    local_1c0[0] = uVar8;

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

+              ((ComPtr<DownloadTaskManager> *)&local_198);

+    uVar9 = GetHandlerFromChannelId(this_02,(ushort *)local_1f0,&local_198);

+    pIVar3 = local_198;

+    if (-1 < (int)uVar9) {

+      pcVar1 = *(code **)(*(longlong *)local_198 + 0x18);

+      wil::details::

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

+      ::reset(local_1b0,(ushort *)0x0);

+      iVar7 = (*pcVar1)(pIVar3,local_1b0);

+      this_02 = local_118;

+      uVar9 = local_1f4;

+      if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x13c,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                   ,iVar7);

+      }

+    }

+    local_1f4 = uVar9;

+    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_a8,(ushort *)L"Priority");

+    std::

+    _Hash<std::_Uset_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,0>_>

+    ::find<void>((_Hash<std::_Uset_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,0>_>

+                  *)local_e8,local_1d0);

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)&local_a8);

+    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_a8,(ushort *)L"Cached");

+    p_Var21 = &local_a8;

+    std::

+    _Hash<std::_Uset_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,0>_>

+    ::find<void>((_Hash<std::_Uset_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,0>_>

+                  *)local_e8,

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

+                  *)local_178.Data4);

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)&local_a8);

+    if (local_1d0 !=

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

+          [8])local_e0) {

+      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_68,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)((longlong)local_1d0 + 0x30));

+    }

+    auVar17 = local_178.Data4;

+    if (local_178.Data4 != local_e0) {

+      auVar17 = (uchar  [8])((longlong)local_178.Data4 + 0x30);

+      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_88,

+                  (basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>

+                   *)auVar17);

+    }

+    bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                        ::__l2::impl);

+    if (bVar5) {

+      if ((DAT_0 & 0x40) != 0) {

+        pIVar14 = (INotificationAckResponse *)&local_88;

+        if (7 < uStack_70) {

+          pIVar14 = local_88;

+        }

+        p_Var21 = (_GUID *)(ulonglong)local_1f8;

+        auVar22 = local_1f0;

+        McTemplateU0qzzqxggzzqqtzzzq_EventWriteTransfer

+                  ((ulonglong)*(uint *)(this_02 + 0x18),pIVar14,local_1f8,(wchar_t *)local_1f0,

+                   (wchar_t *)local_1b0);

+      }

+    }

+    else if ((DAT_0 & 0x40) != 0) {

+      pIVar14 = (INotificationAckResponse *)&local_88;

+      if (7 < uStack_70) {

+        pIVar14 = local_88;

+      }

+      p_Var21 = (_GUID *)(ulonglong)local_1f8;

+      auVar22 = local_1f0;

+      McTemplateU0qzzqxggzzqqtzzz_EventWriteTransfer

+                (pIVar14,auVar17,local_1f8,(wchar_t *)local_1f0,(wchar_t *)local_1b0);

+    }

+    local_128 = 0;

+    local_1e8 = 1;

+    local_148 = (ushort *)0x0;

+    bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_ID54436891>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_ID54436891> *)

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

+                        ::__l2::impl);

+    if (bVar5) {

+      if (local_1f8 == 4) {

+        iVar7 = (**(code **)(*(longlong *)param_1 + 0xa8))(param_1);

+        if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x180,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                     ,iVar7);

+        }

+        if (local_1e8 != 1) {

+          pcVar1 = *(code **)(*(longlong *)param_1 + 0xb0);

+          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>_>

+          ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_148,(ushort *)0x0);

+          ppuVar18 = &local_148;

+          iVar7 = (*pcVar1)(param_1);

+          if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+            wil::details::in1diag3::_Throw_Hr

+                      (unaff_retaddr,0x183,

+                       "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                       ,iVar7);

+          }

+          this_01 = unaff_retaddr;

+          bVar5 = WpncoreTelemetry::IsEnabled((uchar)unaff_retaddr,(__uint64)ppuVar18);

+          if (bVar5) {

+            this_00 = wil::details::static_lazy<WpncoreTelemetry>::get

+                                (this_01,<lambda_c91d295e9756ec26c89460bbd269b90b>::

+                                         <lambda_invoker_cdecl>);

+            WpncoreTelemetry::NotificationReceivedWithSubType_(this_00,uVar8,local_1e8);

+          }

+        }

+      }

+    }

+    else if (local_1f8 == 4) {

+      iVar7 = (**(code **)(*(longlong *)param_1 + 0xa8))(param_1);

+      if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x18c,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                   ,iVar7);

+      }

+      if (local_1e8 == 0) {

+        if (5 < DAT_1) {

+          p_Var15 = (_tlgProvider_t *)&DAT_1;

+          cVar6 = _tlgKeywordOn(0x18017e038,0x400000000000);

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

+            local_1f4 = uVar8;

+            _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>_>

+                      (p_Var15,&DAT_2,p_Var21,(_GUID *)auVar22,

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

+          }

+        }

+        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_148);

+        std::

+        unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+        ::

+        ~unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+                  ((unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+                    *)&local_128);

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

+                  ((ComPtr<DownloadTaskManager> *)&local_198);

+        std::

+        _Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+        ::

+        ~_Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                  ((_Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                    *)local_e8);

+        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>_>

+                  (local_158);

+        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_150);

+        wistd::

+        unique_ptr<unsigned_char,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+        ::reset((unique_ptr<unsigned_char,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+                 *)&local_120,(uchar *)0x0);

+        wil::details::

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

+        ::

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

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

+                    *)&local_190);

+        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_140);

+        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_188);

+        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_180);

+        wil::details::

+        unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(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_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                  (local_160);

+        std::

+        _Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+        ::

+        ~_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                  ((_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                    *)local_100);

+        std::

+        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+        ::

+        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    *)&local_88);

+        std::

+        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+        ::

+        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    *)&local_68);

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

+                  ((ComPtr<DownloadTaskManager> *)&local_178);

+        wil::details::

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

+        ::

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

+                  (local_1b0);

+        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>_>

+                  (local_1a8);

+        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>_>

+                  (local_1f0);

+        return 0;

+      }

+    }

+    uVar10 = CreateNotificationDeliveryTransaction

+                       (local_198,*(NotificationPlatform **)(this_02 + 0x10),uVar8,local_130,

+                        (ushort *)local_1f0,(__uint64)local_1b8,(char *)local_1a8,local_1f8,

+                        local_1a0[0],local_1e4,local_138,local_180,local_188,local_140,local_1dc,

+                        local_1e0,local_190,local_120,local_1d8[0],local_1c4,local_e8,local_1e8,

+                        local_148,

+                        (unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+                         *)&local_128);

+    if ((((int)uVar10 < 0) && ((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control)) &&

+       (((WPP_GLOBAL_Control[0x1c] & 0x40) != 0 && (1 < (byte)WPP_GLOBAL_Control[0x19])))) {

+      auVar22[4] = '\0';

+      auVar22[5] = '\0';

+      auVar22[6] = '\0';

+      auVar22[7] = '\0';

+      auVar22[0] = (char)uVar10;

+      auVar22[1] = (char)(uVar10 >> 8);

+      auVar22[2] = (char)(uVar10 >> 0x10);

+      auVar22[3] = (char)(uVar10 >> 0x18);

+      WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x28,

+               &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar10);

+    }

+    if ((int)uVar10 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x1b4,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                 ,uVar10);

+    }

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

+              ((ComPtr<DownloadTaskManager> *)&local_178);

+    p_Var21 = &local_178;

+    lVar11 = GetAckResponse(this_02,local_198,(INotificationAckResponse **)p_Var21);

+    if (lVar11 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x1b6,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                 ,lVar11);

+    }

+    iVar7 = (**(code **)(*(longlong *)local_178._0_8_ + 0x18))(local_178._0_8_,local_168);

+    if (-1 < iVar7) {

+      if (local_168[0] == 0) {

+        uVar10 = SubmitNotificationAvailableWork

+                           (this_02,(unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+                                     *)&local_128);

+        if (((((int)uVar10 < 0) && ((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control)) &&

+            ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

+          auVar22[4] = '\0';

+          auVar22[5] = '\0';

+          auVar22[6] = '\0';

+          auVar22[7] = '\0';

+          auVar22[0] = (char)uVar10;

+          auVar22[1] = (char)(uVar10 >> 8);

+          auVar22[2] = (char)(uVar10 >> 0x10);

+          auVar22[3] = (char)(uVar10 >> 0x18);

+          p_Var21 = (_GUID *)&WPP_269145a32571379f04175f2797d54a50_Traceguids;

+          WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x29,

+                   &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar10);

+        }

+        if ((int)uVar10 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x1be,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+                     ,uVar10);

+        }

+      }

+      local_1d0[0] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_1a8[0];

+      local_1d0[1] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_1a8[1];

+      local_1d0[2] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_1a8[2];

+      local_1d0[3] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_1a8[3];

+      local_1d0[4] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_1a8[4];

+      local_1d0[5] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_1a8[5];

+      local_1d0[6] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_1a8[6];

+      local_1d0[7] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                      )local_1a8[7];

+      WnsCPLog::WnsPlatNotificationDelivered<unsigned___int64&___ptr64,char*___ptr64>

+                ((__uint64 *)&local_1b8,(char **)local_1d0);

+      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_148);

+      std::

+      unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+      ::

+      ~unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+                ((unique_ptr<NotificationDeliveryTransaction,std::default_delete<NotificationDeliveryTransaction>_>

+                  *)&local_128);

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

+                ((ComPtr<DownloadTaskManager> *)&local_198);

+      std::

+      _Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+      ::

+      ~_Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                ((_Hash<std::_Umap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::_Uhash_compare<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::hash<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::equal_to<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                  *)local_e8);

+      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>_>

+                (local_158);

+      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_150);

+      wistd::

+      unique_ptr<unsigned_char,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+      ::reset((unique_ptr<unsigned_char,wil::function_deleter<void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64)>_>

+               *)&local_120,(uchar *)0x0);

+      wil::details::

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

+      ::

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

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

+                  *)&local_190);

+      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_140);

+      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_188);

+      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_180);

+      wil::details::

+      unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(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_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                (local_160);

+      std::

+      _Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+      ::

+      ~_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                ((_Tree<std::_Tmap_traits<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>,std::less<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_>,std::allocator<std::pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,std::basic_string<unsigned_short,struct_std::char_traits<unsigned_short>,class_std::allocator<unsigned_short>_>_>_>,0>_>

+                  *)local_100);

+      pIVar14 = local_110;

+      if (5 < DAT_1) {

+        p_Var15 = (_tlgProvider_t *)&DAT_1;

+        cVar6 = _tlgKeywordOn(0x18017e038,0x400000000000);

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

+          local_108 = (INotificationAckResponse *)&local_88;

+          if (7 < uStack_70) {

+            local_108 = local_88;

+          }

+          local_110 = (INotificationAckResponse *)&local_68;

+          if (7 < uStack_50) {

+            local_110 = local_68;

+          }

+          local_1c0[0] = local_168[0];

+          local_1d8[0] = local_1e4;

+          local_1c4 = local_1a0[0];

+          local_1c8 = local_1f8;

+          local_1d0[0] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          )local_1b0[0];

+          local_1d0[1] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          )local_1b0[1];

+          local_1d0[2] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          )local_1b0[2];

+          local_1d0[3] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          )local_1b0[3];

+          local_1d0[4] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          )local_1b0[4];

+          local_1d0[5] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          )local_1b0[5];

+          local_1d0[6] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          )local_1b0[6];

+          local_1d0[7] = (basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>

+                          )local_1b0[7];

+          local_178.Data4[0] = (uchar)local_1a8[0];

+          local_178.Data4[1] = (uchar)local_1a8[1];

+          local_178.Data4[2] = (uchar)local_1a8[2];

+          local_178.Data4[3] = (uchar)local_1a8[3];

+          local_178.Data4[4] = (uchar)local_1a8[4];

+          local_178.Data4[5] = (uchar)local_1a8[5];

+          local_178.Data4[6] = (uchar)local_1a8[6];

+          local_178.Data4[7] = (uchar)local_1a8[7];

+          local_118 = local_1b8;

+          local_160[0] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                          )local_1f0[0];

+          local_160[1] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                          )local_1f0[1];

+          local_160[2] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                          )local_1f0[2];

+          local_160[3] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                          )local_1f0[3];

+          local_160[4] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                          )local_1f0[4];

+          local_160[5] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                          )local_1f0[5];

+          local_160[6] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                          )local_1f0[6];

+          local_160[7] = (unique_storage<wil::details::resource_policy<void*___ptr64,long_(__cdecl*)(void*___ptr64),&long___cdecl_Pdcv2ActivationClientDeactivate(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,void*___ptr64,void*___ptr64,0,std::nullptr_t>_>

+                          )local_1f0[7];

+          local_1e0 = uVar10;

+          local_1dc = uVar8;

+          _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>,_tlgWrapSz<unsigned_short>,_tlgWrapperByVal<8>,_tlgWrapSz<char>,_tlgWrapSz<unsigned_short>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapSz<unsigned_short>,_tlgWrapSz<unsigned_short>_>

+                    (p_Var15,&DAT_3,p_Var21,(_GUID *)auVar22,

+                     (_tlgWrapperByVal<4> *)&local_1e0,(_tlgWrapperByVal<4> *)&local_1f4,

+                     (_tlgWrapSz<unsigned_short> *)local_160,(_tlgWrapperByVal<8> *)&local_118,

+                     (_tlgWrapSz<char> *)local_178.Data4,(_tlgWrapSz<unsigned_short> *)local_1d0,

+                     (_tlgWrapperByVal<4> *)&local_1dc,(_tlgWrapperByVal<4> *)&local_1c8,

+                     (_tlgWrapperByVal<4> *)&local_1c4,(_tlgWrapperByVal<4> *)local_1d8,

+                     (_tlgWrapperByVal<4> *)local_1c0,(_tlgWrapSz<unsigned_short> *)&local_110,

+                     (_tlgWrapSz<unsigned_short> *)&local_108);

+        }

+      }

+      uVar4 = local_178._0_8_;

+      if (-1 < (int)uVar10) {

+        local_178._0_8_ = (INotificationAckResponse *)0x0;

+        *(undefined8 *)pIVar14 = uVar4;

+      }

+      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

+        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0x2a,

+                 &WPP_269145a32571379f04175f2797d54a50_Traceguids,uVar10);

+      }

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  *)&local_88);

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  *)&local_68);

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

+                ((ComPtr<DownloadTaskManager> *)&local_178);

+      wil::details::

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

+      ::

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

+                (local_1b0);

+      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>_>

+                (local_1a8);

+      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>_>

+                (local_1f0);

+      return uVar10;

+    }

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x1b7,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+               ,iVar7);

+  }

+                    /* WARNING: Subroutine does not return */

+  wil::details::in1diag3::_Throw_Hr

+            (unaff_retaddr,0x117,

+             "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\conn\\connectionmanagercallbackimpl.cpp"

+             ,iVar7);

 }
```

## `BackgroundActivation::ActivateRawNotificationWorkItem`  (modified)

```diff
--- BackgroundActivation::ActivateRawNotificationWorkItem
+++ BackgroundActivation::ActivateRawNotificationWorkItem
@@ -1,2 +1,650 @@
-Failed to decompile wpncore.dll - .ProgramDB BackgroundActivation::ActivateRawNotificationWorkItem : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

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

+   guard_dispatch_icall */

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

+/* public: long __cdecl BackgroundActivation::ActivateRawNotificationWorkItem(struct

+   INotificationHandler * __ptr64,class Notification * __ptr64,class TransientNotificationDetails *

+   __ptr64,struct _GUID) __ptr64 */

+

+long __thiscall

+BackgroundActivation::ActivateRawNotificationWorkItem

+          (BackgroundActivation *this,INotificationHandler *param_1,Notification *param_2,

+          TransientNotificationDetails *param_3,_GUID *param_4)

+

+{

+  WpnNotificationData *pWVar1;

+  code *pcVar2;

+  bool bVar3;

+  undefined8 uVar4;

+  int iVar5;

+  int iVar6;

+  long lVar7;

+  long lVar8;

+  char ****ppppcVar9;

+  __uint64 _Var10;

+  HANDLE pvVar11;

+  short *psVar12;

+  uchar *puVar13;

+  wchar_t *pwVar14;

+  longlong lVar15;

+  _GUID *p_Var16;

+  uint uVar17;

+  bool bVar18;

+  void *unaff_retaddr;

+  undefined1 auStackY_228 [32];

+  bool local_1b8;

+  bool local_1b7;

+  bool local_1b6 [2];

+  int local_1b4;

+  IBuffer *local_1b0;

+  ulong local_1a8;

+  long local_1a4;

+  WpnNotificationData *local_1a0;

+  short *local_198;

+  _SID_NAME_USE local_190 [2];

+  short **local_188;

+  undefined1 local_180;

+  longlong *local_178;

+  _SID_NAME_USE local_170;

+  ulong local_16c;

+  short **local_168;

+  short **local_160;

+  short **local_158;

+  short **local_150;

+  short **local_148;

+  short **local_140;

+  _GUID *local_138;

+  LPCWSTR local_130;

+  longlong local_128;

+  undefined8 local_120;

+  undefined8 local_118;

+  BackgroundActivation *local_110;

+  Notification *local_108 [2];

+  _GUID *local_f8 [2];

+  longlong *local_e8;

+  undefined8 local_e0;

+  undefined8 uStack_d8;

+  undefined8 local_d0;

+  char ***local_c0;

+  char **ppcStack_b8;

+  char **local_b0;

+  char **ppcStack_a8;

+  HStringReference local_a0 [32];

+  _GUID local_80;

+  long local_70 [2];

+  HStringReference local_68 [24];

+  undefined8 local_50;

+  ulonglong local_48;

+  

+  local_48 = __security_cookie ^ (ulonglong)auStackY_228;

+  local_138 = param_4;

+  local_f8[0] = param_4;

+  bVar3 = false;

+  bVar18 = false;

+  iVar6 = 0;

+  local_190[0] = 0;

+  local_110 = this;

+  local_108[0] = param_2;

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

+    WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),10,

+            &WPP_082109baa89b3391c13c14486ad556cd_Traceguids);

+  }

+  local_1a4 = 0;

+  local_1b6[0] = false;

+  local_1b7 = false;

+  local_1a8 = 0;

+  local_e8 = (longlong *)0x0;

+  local_16c = 0;

+  local_170 = SidTypeUnknown;

+  local_1b8 = false;

+  ppcStack_b8 = (char **)0x0;

+  local_b0 = (char **)0x0;

+  ppcStack_a8 = (char **)0xf;

+  local_c0 = (char ***)0x0;

+  local_80.Data1 = 0;

+  local_80.Data2 = 0;

+  local_80.Data3 = 0;

+  local_80.Data4[0] = '\0';

+  local_80.Data4[1] = '\0';

+  local_80.Data4[2] = '\0';

+  local_80.Data4[3] = '\0';

+  local_80.Data4[4] = '\0';

+  local_80.Data4[5] = '\0';

+  local_80.Data4[6] = '\0';

+  local_80.Data4[7] = '\0';

+  local_70[0] = 0;

+  ppppcVar9 = (char ****)TransientNotificationDetails::get_correlationVector(param_3);

+  if (&local_c0 != ppppcVar9) {

+    std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+              ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_c0);

+    local_c0 = *ppppcVar9;

+    ppcStack_b8 = (char **)ppppcVar9[1];

+    local_b0 = (char **)ppppcVar9[2];

+    ppcStack_a8 = (char **)ppppcVar9[3];

+    ppppcVar9[2] = (char ***)0x0;

+    ppppcVar9[3] = (char ***)0xf;

+    *(undefined1 *)ppppcVar9 = 0;

+  }

+  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);

+  local_130 = (LPCWSTR)0x0;

+  local_128 = 0;

+  local_120 = 0;

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

+  Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_130);

+  local_128 = -1;

+  local_120 = 0xffffffffffffffff;

+  iVar5 = (*pcVar2)(param_1,&local_130);

+  if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x6c,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+               ,iVar5);

+  }

+  lVar15 = local_128;

+  if ((local_128 == -1) && (lVar15 = 0, local_130 != (LPCWSTR)0x0)) {

+    lVar15 = -1;

+    do {

+      lVar15 = lVar15 + 1;

+    } while (local_130[lVar15] != L'\0');

+  }

+  pwVar14 = L"";

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

+    pwVar14 = local_130;

+  }

+  iVar5 = CompareStringOrdinal(pwVar14,(int)lVar15,L"app:system",-1,0);

+  local_1b6[0] = iVar5 == 2;

+  if (local_1b6[0]) {

+    local_178 = (longlong *)0x0;

+    iVar5 = (**(code **)(*(longlong *)param_1 + 0x40))(param_1,&local_178);

+    if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x74,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,iVar5);

+    }

+    p_Var16 = local_138;

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

+      local_1b7 = true;

+      local_e8 = local_178;

+      local_1b0 = (IBuffer *)0x0;

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

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

+                ((ComPtr<DownloadTaskManager> *)&local_1b0);

+      iVar6 = (*pcVar2)(param_1,&local_1b0);

+      if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x81,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                   ,iVar6);

+      }

+      local_1b4 = 0;

+      iVar6 = (**(code **)(*(longlong *)local_1b0 + 0x20))(local_1b0,L"c:offlineHeaders",&local_1b4)

+      ;

+      if (iVar6 < 0) {

+        iVar6 = 0;

+      }

+      local_1a4 = iVar6;

+      if (local_1b4 == 0) {

+        _Var10 = Notification::get_payloadSize(param_2);

+        local_1a8 = (ulong)_Var10;

+        puVar13 = Notification::get_payloadBytes(param_2);

+        lVar7 = RtlPublishWnfStateData(local_e8,0,puVar13,_Var10 & 0xffffffff);

+        lVar7 = wil::details::NtStatusToHr(lVar7);

+      }

+      else {

+        _Var10 = Notification::get_payloadSize(param_2);

+        uVar17 = (int)_Var10 + 8;

+        local_1a8 = uVar17;

+        pvVar11 = GetProcessHeap();

+        psVar12 = HeapAlloc(pvVar11,0,(ulonglong)uVar17);

+        local_198 = psVar12;

+        if (psVar12 == (short *)0x0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_NullAlloc

+                    (unaff_retaddr,0x8f,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                    );

+        }

+        local_188 = &local_198;

+        local_180 = 1;

+        psVar12[0] = 1;

+        psVar12[1] = 0;

+        iVar5 = (**(code **)(*(longlong *)(param_3 + 0x20) + 0x18))(param_3 + 0x20,psVar12 + 2);

+        if (iVar5 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x99,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,iVar5);

+        }

+        _Var10 = Notification::get_payloadSize(param_2);

+        puVar13 = Notification::get_payloadBytes(param_2);

+        memcpy(psVar12 + 4,puVar13,_Var10);

+        lVar7 = RtlPublishWnfStateData(local_e8,0,local_198,uVar17);

+        lVar7 = wil::details::NtStatusToHr(lVar7);

+        psVar12 = local_198;

+        if (local_198 != (short *)0x0) {

+          pvVar11 = GetProcessHeap();

+          HeapFree(pvVar11,0,psVar12);

+        }

+      }

+      if (lVar7 == -0x7ff8fffb) {

+        lVar8 = WpnGetCurrentProcessIntegrityLevel(&local_16c);

+        if (lVar8 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0xb8,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar8);

+        }

+        lVar8 = WpnGetUserSidAccount(&local_170);

+        if (lVar8 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0xb9,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar8);

+        }

+        lVar8 = IsAuthenticatedUser(&local_1b8);

+        if (lVar8 < 0) {

+          wil::details::in1diag3::_Log_Hr

+                    (unaff_retaddr,0xba,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar8);

+        }

+      }

+      if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0xbd,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                   ,lVar7);

+      }

+      if ((DAT_0 & 2) != 0) {

+        pwVar14 = (wchar_t *)Notification::get_handlerKey(param_2);

+        bVar18 = true;

+        if (7 < *(ulonglong *)(pwVar14 + 0xc)) {

+          pwVar14 = *(wchar_t **)pwVar14;

+        }

+        McTemplateU0z_EventWriteTransfer

+                  (param_2,(PCEVENT_DESCRIPTOR)&WPNEND_BACKGROUND_TASK_ACTIVATED_SYSTEM_UPDATED,

+                   pwVar14);

+      }

+      if (bVar18) {

+        std::

+        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+        ::

+        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                    *)&local_e0);

+      }

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

+                ((ComPtr<DownloadTaskManager> *)&local_1b0);

+      p_Var16 = local_138;

+    }

+  }

+  else {

+    local_e0 = 0;

+    uStack_d8 = 0;

+    local_d0 = 0;

+    lVar7 = PropertySetHelper::Initialize((PropertySetHelper *)&local_e0);

+    if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xc4,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,lVar7);

+    }

+    local_1a0 = (WpnNotificationData *)0x0;

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

+              ((ComPtr<DownloadTaskManager> *)&local_1a0);

+    pwVar14 = (wchar_t *)&local_1a0;

+    Notification::get_data(param_2,(WpnNotificationData **)pwVar14);

+    if (local_1a0 != (WpnNotificationData *)0x0) {

+      local_140 = (short **)0x0;

+      pWVar1 = local_1a0 + 0x20;

+      pcVar2 = *(code **)(*(longlong *)pWVar1 + 0x20);

+      wil::details::

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

+      ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_140,(ushort *)0x0);

+      iVar6 = (*pcVar2)(pWVar1,L"SecondaryChannelId",&local_140);

+      if (-1 < iVar6) {

+        local_188 = local_140;

+        lVar15 = Microsoft::WRL::Wrappers::HStringReference::

+                 HStringReference<unsigned_short*___ptr64>(local_a0,&local_188);

+        lVar7 = PropertySetHelper::SetValue<HSTRING__*___ptr64>

+                          ((PropertySetHelper *)&local_e0,(ushort *)L"SecondaryChannelId",

+                           *(HSTRING__ **)(lVar15 + 0x18));

+        if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0xcf,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar7);

+        }

+      }

+      pWVar1 = local_1a0;

+      local_148 = (short **)0x0;

+      pcVar2 = *(code **)(*(longlong *)(local_1a0 + 0x20) + 0x20);

+      wil::details::

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

+      ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_148,(ushort *)0x0);

+      iVar6 = (*pcVar2)(pWVar1 + 0x20,L"Encryption",&local_148);

+      if (-1 < iVar6) {

+        local_188 = local_148;

+        lVar15 = Microsoft::WRL::Wrappers::HStringReference::

+                 HStringReference<unsigned_short*___ptr64>(local_a0,&local_188);

+        lVar7 = PropertySetHelper::SetValue<HSTRING__*___ptr64>

+                          ((PropertySetHelper *)&local_e0,(ushort *)L"Encryption",

+                           *(HSTRING__ **)(lVar15 + 0x18));

+        if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0xd6,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar7);

+        }

+      }

+      pWVar1 = local_1a0;

+      local_150 = (short **)0x0;

+      pcVar2 = *(code **)(*(longlong *)(local_1a0 + 0x20) + 0x20);

+      wil::details::

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

+      ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_150,(ushort *)0x0);

+      iVar6 = (*pcVar2)(pWVar1 + 0x20,L"Crypto-Key",&local_150);

+      if (-1 < iVar6) {

+        local_188 = local_150;

+        lVar15 = Microsoft::WRL::Wrappers::HStringReference::

+                 HStringReference<unsigned_short*___ptr64>(local_a0,&local_188);

+        lVar7 = PropertySetHelper::SetValue<HSTRING__*___ptr64>

+                          ((PropertySetHelper *)&local_e0,(ushort *)L"Crypto-Key",

+                           *(HSTRING__ **)(lVar15 + 0x18));

+        if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0xdc,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar7);

+        }

+      }

+      pWVar1 = local_1a0;

+      local_158 = (short **)0x0;

+      pcVar2 = *(code **)(*(longlong *)(local_1a0 + 0x20) + 0x20);

+      wil::details::

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

+      ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_158,(ushort *)0x0);

+      iVar6 = (*pcVar2)(pWVar1 + 0x20,L"Content-Encoding",&local_158);

+      if (-1 < iVar6) {

+        local_188 = local_158;

+        lVar15 = Microsoft::WRL::Wrappers::HStringReference::

+                 HStringReference<unsigned_short*___ptr64>(local_a0,&local_188);

+        lVar7 = PropertySetHelper::SetValue<HSTRING__*___ptr64>

+                          ((PropertySetHelper *)&local_e0,(ushort *)L"Content-Encoding",

+                           *(HSTRING__ **)(lVar15 + 0x18));

+        if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0xe2,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar7);

+        }

+      }

+      pWVar1 = local_1a0;

+      local_160 = (short **)0x0;

+      pcVar2 = *(code **)(*(longlong *)(local_1a0 + 0x20) + 0x20);

+      wil::details::

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

+      ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_160,(ushort *)0x0);

+      iVar6 = (*pcVar2)(pWVar1 + 0x20,L"Priority",&local_160);

+      if (-1 < iVar6) {

+        local_188 = local_160;

+        lVar15 = Microsoft::WRL::Wrappers::HStringReference::

+                 HStringReference<unsigned_short*___ptr64>(local_a0,&local_188);

+        lVar7 = PropertySetHelper::SetValue<HSTRING__*___ptr64>

+                          ((PropertySetHelper *)&local_e0,(ushort *)L"Priority",

+                           *(HSTRING__ **)(lVar15 + 0x18));

+        if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0xe8,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar7);

+        }

+      }

+      pWVar1 = local_1a0;

+      local_168 = (short **)0x0;

+      pcVar2 = *(code **)(*(longlong *)(local_1a0 + 0x20) + 0x20);

+      wil::details::

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

+      ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_168,(ushort *)0x0);

+      pwVar14 = L"Cached";

+      iVar6 = (*pcVar2)(pWVar1 + 0x20,L"Cached",&local_168);

+      if (-1 < iVar6) {

+        local_188 = local_168;

+        lVar15 = Microsoft::WRL::Wrappers::HStringReference::

+                 HStringReference<unsigned_short*___ptr64>(local_a0,&local_188);

+        pwVar14 = L"Cached";

+        lVar7 = PropertySetHelper::SetValue<HSTRING__*___ptr64>

+                          ((PropertySetHelper *)&local_e0,(ushort *)L"Cached",

+                           *(HSTRING__ **)(lVar15 + 0x18));

+        if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0xee,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                     ,lVar7);

+        }

+      }

+      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_168);

+      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_160);

+      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_158);

+      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_150);

+      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_148);

+      wil::details::

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

+      ::

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

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

+                  *)&local_140);

+      this = local_110;

+    }

+    _Var10 = Notification::get_payloadSize(param_2);

+    local_1a8 = (uint)_Var10;

+    puVar13 = Notification::get_payloadBytes(param_2);

+    lVar7 = PropertySetHelper::SetByteArrayValue

+                      ((PropertySetHelper *)&local_e0,(ushort *)pwVar14,(uint)_Var10,puVar13);

+    if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xf3,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,lVar7);

+    }

+    ppppcVar9 = &local_c0;

+    if ((char ***)0xf < ppcStack_a8) {

+      ppppcVar9 = (char ****)local_c0;

+    }

+    lVar7 = PropertySetHelper::SetValue<char_const*___ptr64>

+                      ((PropertySetHelper *)&local_e0,(ushort *)pwVar14,(char *)ppppcVar9);

+    if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xf5,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,lVar7);

+    }

+    local_188 = (short **)Notification::get_handlerKey(param_2);

+    if ((short *)0x7 < local_188[3]) {

+      local_188 = (short **)*local_188;

+    }

+    lVar15 = Microsoft::WRL::Wrappers::HStringReference::HStringReference<unsigned_short*___ptr64>

+                       (local_68,&local_188);

+    lVar7 = PropertySetHelper::SetValue<HSTRING__*___ptr64>

+                      ((PropertySetHelper *)&local_e0,(ushort *)L"AppUserModelId",

+                       *(HSTRING__ **)(lVar15 + 0x18));

+    if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xf6,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,lVar7);

+    }

+    local_50 = 0;

+    std::

+    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+    ::

+    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                *)local_a0);

+    local_1b0 = (IBuffer *)0x0;

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

+              ((ComPtr<DownloadTaskManager> *)&local_1b0);

+    lVar7 = PropertySetHelper::Serialize((PropertySetHelper *)&local_e0,&local_1b0);

+    if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xf9,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,lVar7);

+    }

+    local_178 = (longlong *)0x0;

+    lVar7 = Microsoft::WRL::ComPtr<Windows::Storage::Streams::IBuffer>::

+            As<Windows::Storage::Streams::IBufferByteAccess>

+                      ((ComPtr<Windows::Storage::Streams::IBuffer> *)&local_1b0,&local_178);

+    if (lVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xfc,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,lVar7);

+    }

+    local_1b4 = 0;

+    iVar6 = (**(code **)(*(longlong *)local_1b0 + 0x38))(local_1b0,&local_1b4);

+    if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0xff,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,iVar6);

+    }

+    local_118 = 0;

+    iVar6 = (**(code **)(*local_178 + 0x18))();

+    if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x104,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,iVar6);

+    }

+    local_198 = (short *)0x0;

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

+    wil::details::

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

+    ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_198,(ushort *)0x0);

+    iVar6 = (*pcVar2)(param_1,&local_198);

+    if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x107,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,iVar6);

+    }

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

+    Notification::get_id(param_2);

+    uVar4 = local_118;

+    if ((local_198 == (short *)0x0) || (psVar12 = local_198, *local_198 == 0)) {

+      psVar12 = (short *)Notification::get_handlerKey(param_2);

+      bVar3 = true;

+      local_190[0] = SidTypeGroup;

+      if (7 < *(ulonglong *)(psVar12 + 0xc)) {

+        psVar12 = *(short **)psVar12;

+      }

+    }

+    p_Var16 = local_138;

+    iVar6 = (*pcVar2)(local_110,0,psVar12,uVar4);

+    if (iVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x110,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\backgroundactivation.cpp"

+                 ,iVar6);

+    }

+    if (bVar3) {

+      std::

+      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+      ::

+      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

+                  *)local_a0);

+    }

+    wil::details::

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

+    ::

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

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

+                *)&local_198);

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

+              ((ComPtr<DownloadTaskManager> *)&local_178);

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

+              ((ComPtr<DownloadTaskManager> *)&local_1b0);

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

+              ((ComPtr<DownloadTaskManager> *)&local_1a0);

+    PropertySetHelper::~PropertySetHelper((PropertySetHelper *)&local_e0);

+    iVar6 = 0;

+  }

+  Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_130);

+  local_190[0] = local_170;

+  local_f8[0] = (_GUID *)&local_e8;

+  WpncoreTelemetryLegacy::

+  ActivateRawNotificationWorkItem<Notification*___ptr64&___ptr64,_GUID&___ptr64,std::basic_string<char,std::char_traits<char>,std::allocator<char>_>&___ptr64,long&___ptr64,bool&___ptr64,bool&___ptr64,unsigned_char*___ptr64,unsigned_long&___ptr64,unsigned_long&___ptr64,unsigned_long,bool&___ptr64,_GUID&___ptr64,long&___ptr64>

+            (local_108,p_Var16,

+             (basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_c0,&local_1a4

+             ,local_1b6,&local_1b7,(uchar **)local_f8,&local_1a8,&local_16c,local_190,&local_1b8,

+             &local_80,local_70);

+  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

+      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

+    WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xc,

+            &WPP_082109baa89b3391c13c14486ad556cd_Traceguids);

+  }

+  std::basic_string<char,std::char_traits<char>,std::allocator<char>_>::_Tidy_deallocate

+            ((basic_string<char,std::char_traits<char>,std::allocator<char>_> *)&local_c0);

+  return iVar6;

+}

+
```

## `AppEndpoint::CreateSecondaryChannelRequest`  (modified)

```diff
--- AppEndpoint::CreateSecondaryChannelRequest
+++ AppEndpoint::CreateSecondaryChannelRequest
@@ -1,2 +1,508 @@
-Failed to decompile wpncore.dll - .ProgramDB AppEndpoint::CreateSecondaryChannelRequest : 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 AppEndpoint::CreateSecondaryChannelRequest(unsigned short const *

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

+   __ptr64,struct IWpnChannelRequest * __ptr64) __ptr64 */

+

+long __thiscall

+AppEndpoint::CreateSecondaryChannelRequest

+          (AppEndpoint *this,ushort *param_1,ushort *param_2,ushort *param_3,ushort *param_4,

+          IWpnChannelRequest *param_5)

+

+{

+  short sVar1;

+  short sVar2;

+  code *pcVar3;

+  INotificationHandler *pIVar4;

+  bool bVar5;

+  long lVar6;

+  int iVar7;

+  longlong lVar8;

+  NotificationPlatform *pNVar9;

+  short *psVar10;

+  FeatureImpl<struct___WilFeatureTraits_Feature_61353903> *pFVar11;

+  void *pvVar12;

+  longlong lVar13;

+  ReportingKind RVar14;

+  ushort *puVar15;

+  ushort *puVar16;

+  void *unaff_retaddr;

+  _WNS_CLOUD_INSTANCE local_58 [2];

+  longlong *local_50;

+  INotificationHandler *local_48;

+  INotificationHandler *local_40;

+  short *local_38;

+  longlong local_30;

+  srwlock *local_28 [2];

+  

+  puVar15 = param_2;

+  puVar16 = param_3;

+  bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4152879416>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_4152879416> *)

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

+                      ::__l2::impl);

+  if (bVar5) {

+    AcquireSRWLockShared((PSRWLOCK)&Wns::s_platformLock);

+    local_28[0] = &Wns::s_platformLock;

+    if (Wns::s_platformShutdown != false) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x12e,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    RVar14 = (ReportingKind)CONCAT71((int7)((ulonglong)puVar15 >> 8),3);

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

+              ((FeatureImpl<__WilFeatureTraits_Feature_40169358> *)

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

+                ::__l2::impl,true,RVar14,(__uint64)puVar16);

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

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x136,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fffbffd);

+    }

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

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x137,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fffbffd);

+    }

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

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x138,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fffbffd);

+    }

+    if (param_5 == (IWpnChannelRequest *)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x139,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fffbffd);

+    }

+    lVar8 = -1;

+    lVar13 = -1;

+    do {

+      lVar13 = lVar13 + 1;

+    } while (param_2[lVar13] != 0);

+    if (lVar13 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x13a,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7ff8ffa9);

+    }

+    lVar13 = -1;

+    do {

+      lVar13 = lVar13 + 1;

+    } while (param_3[lVar13] != 0);

+    if (lVar13 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x13b,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7ff8ffa9);

+    }

+    do {

+      lVar8 = lVar8 + 1;

+    } while (param_4[lVar8] != 0);

+    if (lVar8 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x13c,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7ff8ffa9);

+    }

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

+              ((FeatureImpl<__WilFeatureTraits_Feature_40444302> *)

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

+                ::__l2::impl,true,RVar14,(__uint64)puVar16);

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

+               ::__l2::impl;

+    bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                        ::__l2::impl);

+    if (bVar5) {

+      local_58[0] = 0;

+      lVar6 = WnpCloudEndpointResolver::ResolveCloudForPFN(param_2,local_58);

+      pvVar12 = unaff_retaddr;

+      if (lVar6 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x146,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                   ,lVar6);

+      }

+      if ((DAT_0 & 1) != 0) {

+        McTemplateU0zzd_EventWriteTransfer

+                  (pvVar12,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST_FOR_CLOUD_INSTANCE,

+                   (wchar_t *)param_1,(wchar_t *)param_2);

+      }

+    }

+    else if ((DAT_0 & 1) != 0) {

+      McTemplateU0zz_EventWriteTransfer

+                (pFVar11,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST,(wchar_t *)param_1,

+                 (wchar_t *)param_2);

+    }

+    Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+    if (local_30 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x14f,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    local_50 = (longlong *)0x0;

+    pNVar9 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_30);

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

+      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

+                ((com_ptr<INotificationDatabase4> *)&local_50);

+    }

+    iVar7 = (**(code **)**(undefined8 **)(pNVar9 + 0xa8))

+                      (*(undefined8 **)(pNVar9 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

+                       &local_50);

+    if ((-1 < iVar7) && (local_50 == (longlong *)0x0)) {

+      iVar7 = -0x7fc1fefb;

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x402,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                 ,-0x7fc1fefb);

+    }

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x152,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_40 = (INotificationHandler *)0x0;

+    iVar7 = (**(code **)(*local_50 + 0xc0))(local_50,param_2,&local_40);

+    pIVar4 = local_40;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x155,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_38 = (short *)0x0;

+    pcVar3 = *(code **)(*(longlong *)local_40 + 0x30);

+    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>_>

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

+             *)&local_38,(ushort *)0x0);

+    iVar7 = (*pcVar3)(pIVar4,&local_38);

+    pIVar4 = local_40;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x158,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_48 = (INotificationHandler *)0x0;

+    psVar10 = local_38;

+    do {

+      sVar1 = *psVar10;

+      sVar2 = *(short *)((longlong)psVar10 + ((longlong)L"app:immersive" - (longlong)local_38));

+      if (sVar1 != sVar2) break;

+      psVar10 = psVar10 + 1;

+    } while (sVar2 != 0);

+    if (sVar1 == sVar2) {

+      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>_>

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

+               *)&local_48,(ushort *)0x0);

+      lVar6 = WpnDatabaseHelpers::GetPackageFamilyNameFromSecondaryId(param_2,(ushort **)&local_48);

+      if (lVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x15d,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                   ,lVar6);

+      }

+    }

+    else {

+      pcVar3 = *(code **)(*(longlong *)local_40 + 0x38);

+      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>_>

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

+               *)&local_48,(ushort *)0x0);

+      iVar7 = (*pcVar3)(pIVar4,&local_48);

+      if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x162,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                   ,iVar7);

+      }

+    }

+    lVar6 = CreateChannelRequestInternal(this,(ushort *)local_48,local_40,param_3,param_4,param_5);

+    if (lVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x16a,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar6);

+    }

+    wil::details::

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

+    ::

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

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

+                *)&local_48);

+    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_38);

+    if (local_40 != (INotificationHandler *)0x0) {

+      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

+                ((com_ptr<INotificationDatabase4> *)&local_40);

+    }

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

+      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

+                ((com_ptr<INotificationDatabase4> *)&local_50);

+    }

+    Wns::

+    Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+    ::StrongRef::Release((StrongRef *)&local_30);

+    wil::details::

+    unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+                *)local_28);

+  }

+  else {

+    RVar14 = (ReportingKind)CONCAT71((int7)((ulonglong)puVar15 >> 8),3);

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

+              ((FeatureImpl<__WilFeatureTraits_Feature_40169358> *)

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

+                ::__l2::impl,true,RVar14,(__uint64)puVar16);

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

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x174,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fffbffd);

+    }

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

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x175,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fffbffd);

+    }

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

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x176,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fffbffd);

+    }

+    if (param_5 == (IWpnChannelRequest *)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x177,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fffbffd);

+    }

+    lVar8 = -1;

+    lVar13 = -1;

+    do {

+      lVar13 = lVar13 + 1;

+    } while (param_2[lVar13] != 0);

+    if (lVar13 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x178,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7ff8ffa9);

+    }

+    lVar13 = -1;

+    do {

+      lVar13 = lVar13 + 1;

+    } while (param_3[lVar13] != 0);

+    if (lVar13 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x179,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7ff8ffa9);

+    }

+    do {

+      lVar8 = lVar8 + 1;

+    } while (param_4[lVar8] != 0);

+    if (lVar8 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x17a,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7ff8ffa9);

+    }

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

+              ((FeatureImpl<__WilFeatureTraits_Feature_40444302> *)

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

+                ::__l2::impl,true,RVar14,(__uint64)puVar16);

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

+               ::__l2::impl;

+    bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                        ::__l2::impl);

+    if (bVar5) {

+      local_58[0] = 0;

+      lVar6 = WnpCloudEndpointResolver::ResolveCloudForPFN(param_2,local_58);

+      pvVar12 = unaff_retaddr;

+      if (lVar6 < 0) {

+        wil::details::in1diag3::_Log_Hr

+                  (unaff_retaddr,0x184,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                   ,lVar6);

+      }

+      if ((DAT_0 & 1) != 0) {

+        McTemplateU0zzd_EventWriteTransfer

+                  (pvVar12,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST_FOR_CLOUD_INSTANCE,

+                   (wchar_t *)param_1,(wchar_t *)param_2);

+      }

+    }

+    else if ((DAT_0 & 1) != 0) {

+      McTemplateU0zz_EventWriteTransfer

+                (pFVar11,(PCEVENT_DESCRIPTOR)&WPNEND_CHANNEL_REQUEST,(wchar_t *)param_1,

+                 (wchar_t *)param_2);

+    }

+    Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+    if (local_30 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x18d,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    local_50 = (longlong *)0x0;

+    pNVar9 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_30);

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

+      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

+                ((com_ptr<INotificationDatabase4> *)&local_50);

+    }

+    iVar7 = (**(code **)**(undefined8 **)(pNVar9 + 0xa8))

+                      (*(undefined8 **)(pNVar9 + 0xa8),&_GUID_145e48ec_626a_4302_9000_36e8172c6d29,

+                       &local_50);

+    if ((-1 < iVar7) && (local_50 == (longlong *)0x0)) {

+      iVar7 = -0x7fc1fefb;

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x402,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                 ,-0x7fc1fefb);

+    }

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,400,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_48 = (INotificationHandler *)0x0;

+    iVar7 = (**(code **)(*local_50 + 0xc0))(local_50,param_2,&local_48);

+    pIVar4 = local_48;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x193,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_38 = (short *)0x0;

+    pcVar3 = *(code **)(*(longlong *)local_48 + 0x30);

+    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>_>

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

+             *)&local_38,(ushort *)0x0);

+    iVar7 = (*pcVar3)(pIVar4,&local_38);

+    pIVar4 = local_48;

+    if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x196,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,iVar7);

+    }

+    local_40 = (INotificationHandler *)0x0;

+    psVar10 = local_38;

+    do {

+      sVar1 = *psVar10;

+      sVar2 = *(short *)((longlong)psVar10 + ((longlong)L"app:immersive" - (longlong)local_38));

+      if (sVar1 != sVar2) break;

+      psVar10 = psVar10 + 1;

+    } while (sVar2 != 0);

+    if (sVar1 == sVar2) {

+      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>_>

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

+               *)&local_40,(ushort *)0x0);

+      lVar6 = WpnDatabaseHelpers::GetPackageFamilyNameFromSecondaryId(param_2,(ushort **)&local_40);

+      if (lVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x19b,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                   ,lVar6);

+      }

+    }

+    else {

+      pcVar3 = *(code **)(*(longlong *)local_48 + 0x38);

+      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>_>

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

+               *)&local_40,(ushort *)0x0);

+      iVar7 = (*pcVar3)(pIVar4,&local_40);

+      if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x1a0,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                   ,iVar7);

+      }

+    }

+    lVar6 = CreateChannelRequestInternal(this,(ushort *)local_40,local_48,param_3,param_4,param_5);

+    if (lVar6 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x1a8,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar6);

+    }

+    wil::details::

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

+    ::

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

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

+                *)&local_40);

+    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_38);

+    if (local_48 != (INotificationHandler *)0x0) {

+      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

+                ((com_ptr<INotificationDatabase4> *)&local_48);

+    }

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

+      winrt::com_ptr<INotificationDatabase4>::unconditional_release_ref

+                ((com_ptr<INotificationDatabase4> *)&local_50);

+    }

+    Wns::

+    Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+    ::StrongRef::Release((StrongRef *)&local_30);

+  }

+  return 0;

+}

+
```

## `AppEndpoint::PostNotification3`  (modified)

```diff
--- AppEndpoint::PostNotification3
+++ AppEndpoint::PostNotification3
@@ -1,2 +1,208 @@
-Failed to decompile wpncore.dll - .ProgramDB AppEndpoint::PostNotification3 : 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 AppEndpoint::PostNotification3(struct IWpnNotification *

+   __ptr64,struct ITransientNotificationDetails * __ptr64,enum

+   __MIDL___MIDL_itf_wpnplatform_0000_0007_0004,struct IWpnToastFeedback * __ptr64,unsigned long *

+   __ptr64) __ptr64 */

+

+long __thiscall

+AppEndpoint::PostNotification3

+          (AppEndpoint *this,IWpnNotification *param_1,ITransientNotificationDetails *param_2,

+          __MIDL___MIDL_itf_wpnplatform_0000_0007_0004 param_3,IWpnToastFeedback *param_4,

+          ulong *param_5)

+

+{

+  code *pcVar1;

+  bool bVar2;

+  int iVar3;

+  long lVar4;

+  NotificationPlatform *pNVar5;

+  ReportingKind RVar6;

+  undefined4 in_register_0000008c;

+  __uint64 _Var8;

+  void *unaff_retaddr;

+  IWpnNotification *local_res10;

+  ITransientNotificationDetails *local_res18 [2];

+  uint local_58;

+  ulong local_54;

+  TransientNotificationDetails *local_50;

+  Notification *local_48;

+  TransientNotificationDetails *local_40;

+  srwlock *local_38;

+  wchar_t *local_30;

+  undefined8 local_28;

+  undefined8 local_20;

+  wchar_t *pwVar7;

+  

+  _Var8 = CONCAT44(in_register_0000008c,param_3);

+  local_30 = (wchar_t *)0x0;

+  local_28 = 0;

+  local_20 = 0;

+  pcVar1 = *(code **)(*(longlong *)param_1 + 0x20);

+  local_res10 = param_1;

+  local_res18[0] = param_2;

+  Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_30);

+  RVar6 = (ReportingKind)param_2;

+  local_28 = 0xffffffffffffffff;

+  local_20 = 0xffffffffffffffff;

+  iVar3 = (*pcVar1)(param_1,&local_30);

+  if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x47b,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar3);

+  }

+  local_58 = 0;

+  iVar3 = (**(code **)(*(longlong *)param_1 + 0x18))(param_1,&local_58);

+  if (iVar3 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x47e,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+               ,iVar3);

+  }

+  if ((DAT_0 & 1) != 0) {

+    _Var8 = (__uint64)local_58;

+    pwVar7 = local_30;

+    McTemplateU0zq_EventWriteTransfer

+              (unaff_retaddr,(PCEVENT_DESCRIPTOR)&WPNEND_LOCAL_NOTIFICATION_RECEIVED_ON_ENDPOINT,

+               local_30,local_58);

+    RVar6 = (ReportingKind)pwVar7;

+  }

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

+            ((FeatureImpl<__WilFeatureTraits_Feature_40444302> *)

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

+              ::__l2::impl,true,RVar6,_Var8);

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

+                    ((FeatureImpl<__WilFeatureTraits_Feature_4152879416> *)

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

+                      ::__l2::impl);

+  if (bVar2) {

+    AcquireSRWLockShared((PSRWLOCK)&Wns::s_platformLock);

+    local_38 = &Wns::s_platformLock;

+    if (Wns::s_platformShutdown != false) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x495,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+    if (local_40 == (TransientNotificationDetails *)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x498,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    local_54 = *param_5;

+    if (local_54 == 0) {

+      pNVar5 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_40);

+      local_54 = NotificationPlatform::GetNotificationTrackingId(pNVar5);

+    }

+    local_48 = (Notification *)0x0;

+    lVar4 = Microsoft::WRL::Details::

+            MakeAndInitialize<Notification,Notification,unsigned_long&___ptr64,IWpnNotification*___ptr64&___ptr64>

+                      (&local_48,&local_54,&local_res10);

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x49d,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar4);

+    }

+    local_50 = (TransientNotificationDetails *)0x0;

+    lVar4 = Microsoft::WRL::Details::

+            MakeAndInitialize<TransientNotificationDetails,TransientNotificationDetails,ITransientNotificationDetails*___ptr64&___ptr64>

+                      (&local_50,local_res18);

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x4a0,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar4);

+    }

+    lVar4 = PostNotificationInternal(this,local_48,local_50,param_3,param_4);

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x4a2,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar4);

+    }

+    *param_5 = local_54;

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

+              ((ComPtr<DownloadTaskManager> *)&local_50);

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

+    Wns::

+    Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+    ::StrongRef::Release((StrongRef *)&local_40);

+    wil::details::

+    unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+    ::

+    ~unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+              ((unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockShared(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>

+                *)&local_38);

+  }

+  else {

+    Wns::NotificationPlatformHandle::Get((NotificationPlatformHandle *)(this + 0x28));

+    if (local_50 == (TransientNotificationDetails *)0x0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x4a9,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,-0x7fc1fefb);

+    }

+    local_54 = *param_5;

+    if (local_54 == 0) {

+      pNVar5 = Wns::NotificationPlatformPtr::Get((NotificationPlatformPtr *)&local_50);

+      local_54 = NotificationPlatform::GetNotificationTrackingId(pNVar5);

+    }

+    local_48 = (Notification *)0x0;

+    lVar4 = Microsoft::WRL::Details::

+            MakeAndInitialize<Notification,Notification,unsigned_long&___ptr64,IWpnNotification*___ptr64&___ptr64>

+                      (&local_48,&local_54,&local_res10);

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x4ae,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar4);

+    }

+    local_40 = (TransientNotificationDetails *)0x0;

+    lVar4 = Microsoft::WRL::Details::

+            MakeAndInitialize<TransientNotificationDetails,TransientNotificationDetails,ITransientNotificationDetails*___ptr64&___ptr64>

+                      (&local_40,local_res18);

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x4b1,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar4);

+    }

+    lVar4 = PostNotificationInternal(this,local_48,local_40,param_3,param_4);

+    if (lVar4 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_Throw_Hr

+                (unaff_retaddr,0x4b3,

+                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                 ,lVar4);

+    }

+    *param_5 = local_54;

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

+              ((ComPtr<DownloadTaskManager> *)&local_40);

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

+              ((ComPtr<DownloadTaskManager> *)&local_48);

+    Wns::

+    Owner<std::unique_ptr<NotificationPlatform,std::default_delete<NotificationPlatform>_>,std::chrono::duration<__int64,std::ratio<1,1>_>_>

+    ::StrongRef::Release((StrongRef *)&local_50);

+  }

+  Windows::Internal::NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_>::_Free

+            ((NativeString<Windows::Internal::CoTaskMemPolicy<unsigned_short>_> *)&local_30);

+  return 0;

+}

+
```

## `NotificationAvailableWork::DeliverLocalNotification`  (modified)

```diff
--- NotificationAvailableWork::DeliverLocalNotification
+++ 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>_>
@@ -1,760 +1,78 @@
 

-/* 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 NotificationAvailableWork::DeliverLocalNotification(void) __ptr64 */

+/* public: __cdecl std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class

+   std::allocator<unsigned short> >::basic_string<unsigned short,struct std::char_traits<unsigned

+   short>,class std::allocator<unsigned short> >(unsigned short const * __ptr64 const) __ptr64 */

 

-long __thiscall NotificationAvailableWork::DeliverLocalNotification(NotificationAvailableWork *this)

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

+__thiscall

+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>_>

+           *this,ushort *param_1)

 

 {

-  NotificationPlatform *this_00;

-  BackgroundActivation *this_01;

   code *pcVar1;

-  RunningApps *pRVar2;

-  bool bVar3;

-  uchar auVar4 [8];

-  undefined1 auVar5 [4];

-  long lVar6;

-  __MIDL___MIDL_itf_wpntypes_0000_0000_0005 _Var7;

-  int iVar8;

-  NotificationSource NVar9;

-  int iVar10;

-  ulong uVar11;

-  undefined8 *puVar12;

-  undefined8 uVar13;

-  ushort *puVar14;

-  ushort *puVar15;

-  _GUID *p_Var16;

-  undefined8 *puVar17;

-  wchar_t *pwVar18;

-  wchar_t *pwVar19;

-  wchar_t *pwVar20;

-  NotificationDeliveryTransaction *pNVar21;

-  Notification *pNVar22;

-  undefined2 uVar23;

-  __MIDL___MIDL_itf_wpnplatform_0000_0007_0001 _Var24;

-  TransientNotificationDetails *pTVar25;

-  bool bVar26;

-  uint uVar27;

-  uint uVar28;

-  void *unaff_retaddr;

-  undefined1 auStackY_128 [32];

-  _GUID *in_stack_fffffffffffffef8;

-  bool local_e8 [8];

-  ComPtr<DownloadTaskManager> local_e0 [8];

-  ComPtr<DownloadTaskManager> local_d8 [8];

-  uint local_d0 [2];

-  ComPtr<DownloadTaskManager> local_c8 [8];

-  NOTIFICATION_POLICY_REASON local_c0;

-  undefined1 local_bc [4];

-  ushort *local_b8;

-  _GUID local_b0 [2];

-  _GUID local_88 [2];

-  _GUID local_68 [2];

-  ulonglong local_48;

+  ulonglong uVar2;

+  void *_Dst;

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

+  *pbVar3;

+  __uint64 _Var4;

+  ulonglong uVar5;

+  ulonglong uVar6;

   

-  local_48 = __security_cookie ^ (ulonglong)auStackY_128;

-  bVar26 = false;

-  local_d0[0] = 0;

-  local_bc = (undefined1  [4])0x0;

-  local_b8 = (ushort *)0x0;

-  local_c0 = 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>_>

-  ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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,(ushort *)0x0);

-  pNVar21 = *(NotificationDeliveryTransaction **)(this + 0xb0);

-  puVar12 = (undefined8 *)NotificationDeliveryTransaction::get_notificationHandler(pNVar21);

-  lVar6 = GetParentId((NotificationAvailableWork *)pNVar21,(INotificationHandler *)*puVar12,

-                      &local_b8);

-  if (lVar6 < 0) {

-    wil::details::in1diag3::_Log_Hr

-              (unaff_retaddr,0x56b,

-               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-               ,lVar6);

+  _Dst = (void *)0x0;

+  *(undefined8 *)this = 0;

+  *(undefined8 *)(this + 8) = 0;

+  *(undefined8 *)(this + 0x10) = 0;

+  *(undefined8 *)(this + 0x18) = 0;

+  uVar5 = 0xffffffffffffffff;

+  do {

+    uVar5 = uVar5 + 1;

+  } while (param_1[uVar5] != 0);

+  uVar6 = 0x7ffffffffffffffe;

+  if (0x7ffffffffffffffe < uVar5) {

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

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

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

+              *)(*pcVar1)();

+    return pbVar3;

   }

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

-            ((ComPtr<DownloadTaskManager> *)local_d0);

-  bVar3 = true;

-  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

-    puVar12 = (undefined8 *)

-              NotificationDeliveryTransaction::get_notification

-                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

-    bVar26 = true;

-    local_d0[0] = 1;

-    uVar13 = Notification::get_type((Notification *)*puVar12);

-    _Var7 = WpnDatabaseHelpers::NotificationTypeFromName(uVar13);

-    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xc5,

-             &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,_Var7);

+  *(undefined8 *)(this + 0x18) = 7;

+  if (uVar5 < 8) {

+    *(ulonglong *)(this + 0x10) = uVar5;

+    memcpy(this,param_1,uVar5 * 2);

+    *(undefined2 *)(this + uVar5 * 2) = 0;

+    return this;

   }

-  if (bVar26) {

-    Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-  }

-  uVar27 = 0;

-  uVar28 = 0;

-  pNVar21 = *(NotificationDeliveryTransaction **)(this + 0xb0);

-  if (pNVar21[0x18] != (NotificationDeliveryTransaction)0x0) {

-    if ((DAT_0 & 4) != 0) {

-      puVar12 = (undefined8 *)NotificationDeliveryTransaction::get_notification(pNVar21);

-      local_d0[0] = 2;

-      in_stack_fffffffffffffef8 = (_GUID *)Notification::get_type((Notification *)*puVar12);

-      if (7 < *(ulonglong *)in_stack_fffffffffffffef8[1].Data4) {

-        in_stack_fffffffffffffef8 = *(_GUID **)in_stack_fffffffffffffef8;

+  uVar2 = uVar5 | 7;

+  if (uVar2 < 0x7fffffffffffffff) {

+    if (uVar2 < 10) {

+      uVar2 = 10;

+    }

+    if (0x7fffffffffffffff < uVar2 + 1) {

+                    /* WARNING: Subroutine does not return */

+      _Throw_bad_array_new_length();

+    }

+    _Var4 = (uVar2 + 1) * 2;

+    uVar6 = uVar2;

+    if (_Var4 < 0x1000) {

+      if (_Var4 != 0) {

+        _Dst = operator_new(_Var4);

       }

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      uVar11 = Notification::get_id((Notification *)*puVar12);

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      local_d0[0] = 0x1e;

-      pNVar22 = (Notification *)*puVar12;

-      pwVar18 = (wchar_t *)Notification::get_handlerKey(pNVar22);

-      uVar27 = 0x3e;

-      if (7 < *(ulonglong *)(pwVar18 + 0xc)) {

-        pwVar18 = *(wchar_t **)pwVar18;

-      }

-      McTemplateU0zqz_EventWriteTransfer

-                (pNVar22,(PCEVENT_DESCRIPTOR)&WPNEND_NOTIFICATION_OVERRIDE_APP_SETTING,pwVar18,

-                 uVar11,(wchar_t *)in_stack_fffffffffffffef8);

+      goto LAB_0;

     }

-    if ((uVar27 & 0x20) != 0) {

-      uVar27 = uVar27 & 0xffffffdf;

-      std::

-      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-      ::

-      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  *)local_b0);

-    }

-    if ((uVar27 & 0x10) != 0) {

-      uVar27 = uVar27 & 0xffffffef;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-    }

-    if ((uVar27 & 8) != 0) {

-      uVar27 = uVar27 & 0xfffffff7;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_c8);

-    }

-    uVar28 = uVar27;

-    if ((uVar27 & 4) != 0) {

-      uVar28 = uVar27 & 0xfffffffb;

-      std::

-      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-      ::

-      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  *)local_88);

-    }

-    if ((uVar28 & 2) != 0) {

-      uVar28 = uVar28 & 0xfffffffd;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-    }

-LAB_1:

-    puVar12 = (undefined8 *)

-              NotificationDeliveryTransaction::get_notification

-                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

-    puVar15 = (ushort *)Notification::get_type((Notification *)*puVar12);

-    puVar14 = puVar15 + 8;

-    if (7 < *(ulonglong *)(puVar15 + 0xc)) {

-      puVar15 = *(ushort **)puVar15;

-    }

-    if ((*(longlong *)puVar14 == 3) &&

-       (iVar8 = std::_WChar_traits<unsigned_short>::compare(puVar15,(ushort *)L"raw",3), iVar8 == 0)

-       ) {

-      bVar26 = true;

-    }

-    else {

-      bVar26 = false;

-    }

-    std::

-    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-    ::

-    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                *)local_b0);

-    Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-    if (!bVar26) {

-      local_e8[0] = false;

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      uVar27 = uVar28 | 0x40;

-      NVar9 = Notification::get_source((Notification *)*puVar12);

-      if (NVar9 == 3) {

-        puVar12 = (undefined8 *)

-                  NotificationDeliveryTransaction::get_notification

-                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

-        local_d0[0] = uVar28 | 0xc0;

-        puVar15 = (ushort *)Notification::get_type((Notification *)*puVar12);

-        uVar27 = uVar28 | 0x1c0;

-        puVar14 = puVar15 + 8;

-        if (7 < *(ulonglong *)(puVar15 + 0xc)) {

-          puVar15 = *(ushort **)puVar15;

-        }

-        if ((*(longlong *)puVar14 != 5) ||

-           (iVar8 = std::_WChar_traits<unsigned_short>::compare(puVar15,(ushort *)L"toast",5),

-           iVar8 != 0)) goto LAB_2;

-        bVar26 = true;

-      }

-      else {

-LAB_2:

-        bVar26 = false;

-      }

-      if ((uVar27 & 0x100) != 0) {

-        uVar27 = uVar27 & 0xfffffeff;

-        std::

-        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-        ::

-        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                    *)local_b0);

-      }

-      uVar28 = uVar27;

-      if ((char)uVar27 < '\0') {

-        uVar28 = uVar27 & 0xffffff7f;

-        Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-      }

-      if ((uVar28 & 0x40) != 0) {

-        uVar28 = uVar28 & 0xffffffbf;

-        Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_c8);

-      }

-      if (bVar26) {

-        if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-            ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (4 < (byte)WPP_GLOBAL_Control[0x19])) {

-          WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xcf,

-                  &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids);

-        }

-        pRVar2 = *(RunningApps **)(*(longlong *)(this + 0xb8) + 0xe0);

-        if (pRVar2 == (RunningApps *)0x0) {

-          iVar8 = -0x7fc1fefb;

-          wil::details::in1diag3::_Log_Hr

-                    (unaff_retaddr,0x5c8,

-                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-                     ,-0x7fc1fefb);

-          if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-             ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

-            uVar23 = 0xd0;

-            goto LAB_3;

-          }

-          goto LAB_4;

-        }

-        puVar12 = (undefined8 *)

-                  NotificationDeliveryTransaction::get_notificationTransientDetails

-                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

-        pTVar25 = (TransientNotificationDetails *)*puVar12;

-        puVar12 = (undefined8 *)

-                  NotificationDeliveryTransaction::get_notification

-                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

-        iVar8 = RunningApps::CallScheduledNotificationSink

-                          (pRVar2,(Notification *)*puVar12,pTVar25,local_e8);

-        _Var24 = (__MIDL___MIDL_itf_wpnplatform_0000_0007_0001)pTVar25;

-        Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-        Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_c8);

-        if (iVar8 < 0) {

-          _Var24 = 0x80141f50;

-          wil::details::in1diag3::_Log_Hr

-                    (unaff_retaddr,0x5cc,

-                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-                     ,iVar8);

-          if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-             ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

-            uVar23 = 0xd1;

-            goto LAB_5;

-          }

-        }

-        else if (local_e8[0] == false) goto LAB_6;

-      }

-      else {

-LAB_6:

-        puVar12 = (undefined8 *)

-                  (-(ulonglong)(*(longlong *)(*(longlong *)(this + 0xb8) + 0x98) != 0) &

-                  *(longlong *)(*(longlong *)(this + 0xb8) + 0x98) + 0x10U);

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

-          iVar8 = -0x7fc1fefb;

-          if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-              ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

-            WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xd2,

-                     &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

-          }

-          wil::details::in1diag3::_Log_Hr

-                    (unaff_retaddr,0x5d5,

-                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-                     ,-0x7fc1fefb);

-          if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-             ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

-            uVar23 = 0xd3;

-            goto LAB_3;

-          }

-          goto LAB_4;

-        }

-        pcVar1 = *(code **)*puVar12;

-        puVar17 = (undefined8 *)

-                  NotificationDeliveryTransaction::get_notificationTransientDetails

-                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

-        uVar13 = *puVar17;

-        puVar17 = (undefined8 *)

-                  NotificationDeliveryTransaction::get_notificationHandler

-                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

-        pNVar22 = (Notification *)*puVar17;

-        puVar17 = (undefined8 *)

-                  NotificationDeliveryTransaction::get_notification

-                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

-        iVar8 = (*pcVar1)(puVar12,*puVar17,pNVar22,uVar13);

-        Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-        Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_c8);

-        Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-        if (-1 < iVar8) goto LAB_7;

-        if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-            ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

-          WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xd4,

-                   &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

-        }

-        _Var24 = 0x80141f50;

-        wil::details::in1diag3::_Log_Hr

-                  (unaff_retaddr,0x5de,

-                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-                   ,iVar8);

-        if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-           ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

-          uVar23 = 0xd5;

-          goto LAB_5;

-        }

-      }

-      goto LAB_8;

-    }

-    this_01 = *(BackgroundActivation **)(*(longlong *)(this + 0xb8) + 0xe8);

-    if (this_01 == (BackgroundActivation *)0x0) {

-      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

-        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xca,

-                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

-      }

-      wil::details::in1diag3::_Log_Hr

-                (unaff_retaddr,0x5a3,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-                 ,-0x7fc1fefb);

-      iVar8 = -0x7fc1fefb;

-      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-         (iVar8 = -0x7fc1fefb, (WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

-        uVar23 = 0xcb;

-LAB_3:

-        iVar8 = -0x7fc1fefb;

-        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),uVar23,

-                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

-      }

-      goto LAB_4;

-    }

-    puVar12 = (undefined8 *)

-              NotificationDeliveryTransaction::get_notificationTransientDetails

-                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

-    p_Var16 = TransientNotificationDetails::get_messageId

-                        ((TransientNotificationDetails *)*puVar12,local_b0);

-    uVar13._0_4_ = p_Var16->Data1;

-    uVar13._4_2_ = p_Var16->Data2;

-    uVar13._6_2_ = p_Var16->Data3;

-    auVar4 = *&p_Var16->Data4;

-    puVar12 = (undefined8 *)

-              NotificationDeliveryTransaction::get_notificationTransientDetails

-                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

-    pTVar25 = (TransientNotificationDetails *)*puVar12;

-    puVar12 = (undefined8 *)

-              NotificationDeliveryTransaction::get_notification

-                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

-    pNVar22 = (Notification *)*puVar12;

-    puVar12 = (undefined8 *)

-              NotificationDeliveryTransaction::get_notificationHandler

-                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

-    in_stack_fffffffffffffef8 = local_88;

-    local_88[0]._0_8_ = uVar13;

-    local_88[0].Data4 = auVar4;

-    iVar8 = BackgroundActivation::ActivateRawNotificationWorkItem

-                      (this_01,(INotificationHandler *)*puVar12,pNVar22,pTVar25,

-                       in_stack_fffffffffffffef8);

-    Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-    Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_c8);

-    Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

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

-              ((ComPtr<DownloadTaskManager> *)local_d0);

-    if (iVar8 < 0) {

-      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

-        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xcc,

-                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

-      }

-      if (iVar8 == -0x7ff8fb70) {

-        if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-            ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (4 < (byte)WPP_GLOBAL_Control[0x19])) {

-          WPP_SF_(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xcd,

-                  &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids);

-        }

-        iVar8 = -0x7fc1feef;

-      }

-      _Var24 = 0x80141f50;

-      wil::details::in1diag3::_Log_Hr

-                (unaff_retaddr,0x5bb,

-                 "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-                 ,iVar8);

-      if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-         ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

-        uVar23 = 0xce;

-        goto LAB_5;

-      }

-      goto LAB_8;

-    }

-    goto LAB_7;

-  }

-  this_00 = *(NotificationPlatform **)(this + 0xb8);

-  puVar12 = (undefined8 *)NotificationDeliveryTransaction::get_notification(pNVar21);

-  puVar14 = (ushort *)Notification::get_type((Notification *)*puVar12);

-  if (7 < *(ulonglong *)(puVar14 + 0xc)) {

-    puVar14 = *(ushort **)puVar14;

-  }

-  puVar15 = NotificationDeliveryTransaction::get_PackageFullName

-                      (*(NotificationDeliveryTransaction **)(this + 0xb0));

-  puVar12 = (undefined8 *)

-            NotificationDeliveryTransaction::get_notificationHandler

-                      (*(NotificationDeliveryTransaction **)(this + 0xb0));

-  in_stack_fffffffffffffef8 = (_GUID *)((ulonglong)in_stack_fffffffffffffef8 & 0xffffffffffffff00);

-  iVar8 = NotificationPlatform::CheckNotificationHandlerSettingsEnabled

-                    (this_00,(INotificationHandler *)*puVar12,puVar15,puVar14,false,&local_c0,

-                     (PolicyLevel *)local_bc);

-  Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-  std::

-  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-  ::

-  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-            ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-              *)local_b0);

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

-            ((ComPtr<DownloadTaskManager> *)local_d0);

-  if (((iVar8 < 0) && ((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control)) &&

-     (((WPP_GLOBAL_Control[0x1c] & 0x40) != 0 && (1 < (byte)WPP_GLOBAL_Control[0x19])))) {

-    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xc6,

-             &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

-  }

-  auVar5 = local_bc;

-  if (-1 < iVar8) {

-    puVar12 = (undefined8 *)

-              NotificationDeliveryTransaction::get_notification

-                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

-    puVar15 = (ushort *)Notification::get_type((Notification *)*puVar12);

-    puVar14 = puVar15 + 8;

-    if (7 < *(ulonglong *)(puVar15 + 0xc)) {

-      puVar15 = *(ushort **)puVar15;

-    }

-    if ((*(longlong *)puVar14 == 5) &&

-       (iVar8 = std::_WChar_traits<unsigned_short>::compare(puVar15,(ushort *)L"toast",5),

-       iVar8 == 0)) {

-      bVar26 = true;

-    }

-    else {

-      bVar26 = false;

-    }

-    std::

-    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-    ::

-    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                *)local_b0);

-    Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-    if (bVar26) {

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      puVar14 = (ushort *)Notification::get_type((Notification *)*puVar12);

-      if (7 < *(ulonglong *)(puVar14 + 0xc)) {

-        puVar14 = *(ushort **)puVar14;

-      }

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notificationHandler

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      in_stack_fffffffffffffef8 = (_GUID *)local_bc;

-      iVar8 = CheckNotificationHandlerSettingsEnabledForParent

-                        (this,(INotificationHandler *)*puVar12,puVar14,false,

-                         (PolicyLevel *)in_stack_fffffffffffffef8,&local_c0);

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-      std::

-      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-      ::

-      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  *)local_b0);

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

-                ((ComPtr<DownloadTaskManager> *)local_d0);

-      if (iVar8 < 0) {

-        if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-            ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

-          WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),200,

-                   &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

-        }

-        auVar5 = local_bc;

-        puVar12 = (undefined8 *)

-                  NotificationDeliveryTransaction::get_notification

-                            (*(NotificationDeliveryTransaction **)(this + 0xb0));

-        puVar14 = (ushort *)Notification::get_handlerKey((Notification *)*puVar12);

-        if (7 < *(ulonglong *)(puVar14 + 0xc)) {

-          puVar14 = *(ushort **)puVar14;

-        }

-        LogSettingsDropped(this,iVar8,puVar14,(PolicyLevel)auVar5);

-        std::

-        pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-        ::

-        ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                    *)local_b0);

-        Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-        _Var24 = 0x80141f50;

-        wil::details::in1diag3::_Log_Hr

-                  (unaff_retaddr,0x590,

-                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-                   ,iVar8);

-        if (((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-           ((WPP_GLOBAL_Control[0x1c] & 0x80) != 0)) {

-          uVar23 = 0xc9;

-          goto LAB_5;

-        }

-        goto LAB_8;

-      }

-    }

-    goto LAB_1;

-  }

-  puVar12 = (undefined8 *)

-            NotificationDeliveryTransaction::get_notification

-                      (*(NotificationDeliveryTransaction **)(this + 0xb0));

-  puVar14 = (ushort *)Notification::get_handlerKey((Notification *)*puVar12);

-  if (7 < *(ulonglong *)(puVar14 + 0xc)) {

-    puVar14 = *(ushort **)puVar14;

-  }

-  LogSettingsDropped(this,iVar8,puVar14,(PolicyLevel)auVar5);

-  std::

-  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-  ::

-  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-            ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-              *)local_b0);

-  Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-  _Var24 = 0x80141f50;

-  wil::details::in1diag3::_Log_Hr

-            (unaff_retaddr,0x57f,

-             "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\notificationavailablework.cpp"

-             ,iVar8);

-  if (((undefined **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

-     ((WPP_GLOBAL_Control[0x1c] & 0x80) == 0)) goto LAB_8;

-  uVar23 = 199;

-LAB_5:

-  _Var24 = 0x80141fd0;

-  WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),uVar23,

-           &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

-LAB_8:

-  if (iVar8 < 0) {

-LAB_4:

-    puVar12 = (undefined8 *)

-              NotificationDeliveryTransaction::get_notification

-                        (*(NotificationDeliveryTransaction **)(this + 0xb0));

-    local_d0[0] = uVar28 | 0x200;

-    puVar14 = (ushort *)Notification::get_type((Notification *)*puVar12);

-    uVar28 = uVar28 | 0x600;

-    pNVar22 = *(Notification **)(puVar14 + 8);

-    if (7 < *(ulonglong *)(puVar14 + 0xc)) {

-      puVar14 = *(ushort **)puVar14;

-    }

-    if (pNVar22 != (Notification *)0x5) {

-LAB_7:

-      _Var24 = (__MIDL___MIDL_itf_wpnplatform_0000_0007_0001)pNVar22;

-      goto LAB_9;

-    }

-    iVar10 = std::_WChar_traits<unsigned_short>::compare(puVar14,(ushort *)L"toast",5);

-    _Var24 = (__MIDL___MIDL_itf_wpnplatform_0000_0007_0001)pNVar22;

-    if (iVar10 != 0) goto LAB_7;

   }

   else {

-LAB_9:

-    bVar3 = false;

+    _Var4 = 0xfffffffffffffffe;

   }

-  if (uVar28 >> 10 != 0) {

-    uVar28 = uVar28 & 0xfffffbff;

-    std::

-    pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-    ::

-    ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-              ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                *)local_b0);

-  }

-  if ((uVar28 >> 9 & 1) != 0) {

-    uVar28 = uVar28 & 0xfffffdff;

-    Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-  }

-  if (bVar3) {

-    pRVar2 = *(RunningApps **)(*(longlong *)(this + 0xb8) + 0xe0);

-    if (pRVar2 == (RunningApps *)0x0) {

-      if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-          ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (1 < (byte)WPP_GLOBAL_Control[0x19])) {

-        WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xd6,

-                 &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,0x803e0105);

-      }

-    }

-    else {

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      uVar11 = Notification::get_id((Notification *)*puVar12);

-      RunningApps::ToastStatusSync(pRVar2,uVar11,_Var24,iVar8,(ushort *)in_stack_fffffffffffffef8);

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-    }

-  }

-  if (iVar8 < 0) {

-    if ((DAT_10 & 4) != 0) {

-      pwVar18 = (wchar_t *)GetNotificationPolicyReasonString((NOTIFICATION_POLICY_REASON)local_68);

-      if (7 < *(ulonglong *)(pwVar18 + 0xc)) {

-        pwVar18 = *(wchar_t **)pwVar18;

-      }

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      local_d0[0] = uVar28 | 0x1800;

-      pwVar19 = (wchar_t *)Notification::get_handlerKey((Notification *)*puVar12);

-      if (7 < *(ulonglong *)(pwVar19 + 0xc)) {

-        pwVar19 = *(wchar_t **)pwVar19;

-      }

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      uVar11 = Notification::get_id((Notification *)*puVar12);

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      local_d0[0] = uVar28 | 0xf800;

-      pNVar22 = (Notification *)*puVar12;

-      pwVar20 = (wchar_t *)Notification::get_type(pNVar22);

-      uVar28 = 0x1f800;

-      if (7 < *(ulonglong *)(pwVar20 + 0xc)) {

-        pwVar20 = *(wchar_t **)pwVar20;

-      }

-      McTemplateU0zqzzd_EventWriteTransfer

-                (pNVar22,(PCEVENT_DESCRIPTOR)&WPNEND_DELIVERLOCALNOTIFICATION_FAILED,pwVar20,uVar11,

-                 pwVar19,pwVar18);

-    }

-    if (uVar28 >> 0x10 != 0) {

-      uVar28 = uVar28 & 0xfffeffff;

-      std::

-      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-      ::

-      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  *)local_b0);

-    }

-    if ((uVar28 >> 0xf & 1) != 0) {

-      uVar28 = uVar28 & 0xffff7fff;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-    }

-    if ((uVar28 >> 0xe & 1) != 0) {

-      uVar28 = uVar28 & 0xffffbfff;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_c8);

-    }

-    if ((uVar28 >> 0xd & 1) != 0) {

-      uVar28 = uVar28 & 0xffffdfff;

-      std::

-      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-      ::

-      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  *)local_88);

-    }

-    if ((uVar28 >> 0xc & 1) != 0) {

-      uVar28 = uVar28 & 0xffffefff;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-    }

-    if ((uVar28 >> 0xb & 1) == 0) goto LAB_11;

-    p_Var16 = local_68;

-  }

-  else {

-    if ((DAT_12 & 4) != 0) {

-      pwVar18 = (wchar_t *)GetNotificationPolicyReasonString((NOTIFICATION_POLICY_REASON)local_88);

-      if (7 < *(ulonglong *)(pwVar18 + 0xc)) {

-        pwVar18 = *(wchar_t **)pwVar18;

-      }

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      local_d0[0] = uVar28 | 0x60000;

-      pwVar19 = (wchar_t *)Notification::get_handlerKey((Notification *)*puVar12);

-      if (7 < *(ulonglong *)(pwVar19 + 0xc)) {

-        pwVar19 = *(wchar_t **)pwVar19;

-      }

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      uVar11 = Notification::get_id((Notification *)*puVar12);

-      puVar12 = (undefined8 *)

-                NotificationDeliveryTransaction::get_notification

-                          (*(NotificationDeliveryTransaction **)(this + 0xb0));

-      local_d0[0] = uVar28 | 0x3e0000;

-      pNVar22 = (Notification *)*puVar12;

-      pwVar20 = (wchar_t *)Notification::get_type(pNVar22);

-      uVar28 = 0x7e0000;

-      if (7 < *(ulonglong *)(pwVar20 + 0xc)) {

-        pwVar20 = *(wchar_t **)pwVar20;

-      }

-      McTemplateU0zqzzd_EventWriteTransfer

-                (pNVar22,(PCEVENT_DESCRIPTOR)&WPNEND_DELIVERLOCALNOTIFICATION_SUCCESS,pwVar20,uVar11

-                 ,pwVar19,pwVar18);

-    }

-    if (uVar28 >> 0x16 != 0) {

-      uVar28 = uVar28 & 0xffbfffff;

-      std::

-      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-      ::

-      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  *)local_68);

-    }

-    if ((uVar28 >> 0x15 & 1) != 0) {

-      uVar28 = uVar28 & 0xffdfffff;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_d8);

-    }

-    if ((uVar28 >> 0x14 & 1) != 0) {

-      uVar28 = uVar28 & 0xffefffff;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_c8);

-    }

-    if ((uVar28 >> 0x13 & 1) != 0) {

-      uVar28 = uVar28 & 0xfff7ffff;

-      std::

-      pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-      ::

-      ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-                  *)local_b0);

-    }

-    if ((uVar28 >> 0x12 & 1) != 0) {

-      uVar28 = uVar28 & 0xfffbffff;

-      Microsoft::WRL::ComPtr<DownloadTaskManager>::InternalRelease(local_e0);

-    }

-    if ((uVar28 >> 0x11 & 1) == 0) goto LAB_11;

-    p_Var16 = local_88;

-  }

-  std::

-  pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-  ::

-  ~pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-            ((pair<std::basic_string<unsigned_short,std::char_traits<unsigned_short>,std::allocator<unsigned_short>_>_const_,unsigned_long>

-              *)p_Var16);

-LAB_11:

-  LogLocalNotificationDelivered

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

-                   *)&local_b8,local_c0,iVar8);

-  if ((((undefined **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-      ((WPP_GLOBAL_Control[0x1c] & 0x40) != 0)) && (5 < (byte)WPP_GLOBAL_Control[0x19])) {

-    WPP_SF_D(*(undefined8 *)(WPP_GLOBAL_Control + 0x10),0xd7,

-             &WPP_13d6fe84edfc30ff079b37d0acac83d2_Traceguids,iVar8);

-  }

-  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);

-  return iVar8;

+  _Dst = _Allocate_manually_vector_aligned<std::_Default_allocate_traits>(_Var4);

+  uVar2 = uVar6;

+LAB_0:

+  *(ulonglong *)(this + 0x10) = uVar5;

+  *(void **)this = _Dst;

+  *(ulonglong *)(this + 0x18) = uVar2;

+  memcpy(_Dst,param_1,uVar5 * 2);

+  *(undefined2 *)(uVar5 * 2 + (longlong)_Dst) = 0;

+  return this;

 }
```

## `NotificationPlatform::Connect`  (modified)

```diff
--- NotificationPlatform::Connect
+++ NotificationPlatform::Connect
@@ -1,2 +1,228 @@
-Failed to decompile wpncore.dll - .ProgramDB NotificationPlatform::Connect : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

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

+   guard_dispatch_icall */

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

+/* public: long __cdecl NotificationPlatform::Connect(void) __ptr64 */

+

+long __thiscall NotificationPlatform::Connect(NotificationPlatform *this)

+

+{

+  longlong lVar1;

+  code *pcVar2;

+  ConnectWork *pCVar3;

+  longlong *plVar4;

+  bool bVar5;

+  uint uVar6;

+  int iVar7;

+  long lVar8;

+  WorkItem *pWVar9;

+  _Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<_WNS_CLOUD_INSTANCE>_>,std::_Iterator_base0>

+  *this_00;

+  char *in_R8;

+  __uint64 in_R9;

+  uint uVar10;

+  ComPtr<DownloadTaskManager> *unaff_retaddr;

+  undefined1 auStackY_a8 [32];

+  _WNS_CLOUD_INSTANCE local_78 [2];

+  ConnectWork *local_70;

+  uint local_68;

+  ulong local_64;

+  ushort *local_60;

+  longlong *local_58;

+  longlong *local_50 [2];

+  _EVENT_DATA_DESCRIPTOR local_40;

+  ulonglong local_30;

+  

+  local_30 = __security_cookie ^ (ulonglong)auStackY_a8;

+  uVar10 = 0;

+  local_78[0] = 0;

+  local_68 = 0;

+  local_64 = 0;

+  uVar6 = IsCloudConnectionRequired(this,(int *)&local_68);

+  if ((int)uVar6 < 0) {

+    in_R9 = (__uint64)uVar6;

+    in_R8 = "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+    ;

+    wil::details::in1diag3::_Log_Hr

+              (unaff_retaddr,0x438,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+               ,uVar6);

+  }

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

+            ((FeatureImpl<__WilFeatureTraits_Feature_40544545> *)

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

+              ::__l2::impl,true,(ReportingKind)in_R8,in_R9);

+  iVar7 = (**(code **)(**(longlong **)(this + 0x100) + 0x28))

+                    (*(longlong **)(this + 0x100),&local_64);

+  if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+    wil::details::in1diag3::_Throw_Hr

+              (unaff_retaddr,0x43c,

+               "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+               ,iVar7);

+  }

+  if (local_68 != 0) {

+    bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_61353903>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_61353903> *)

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

+                        ::__l2::impl);

+    if (bVar5) {

+      std::

+      set<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>_>::

+      set<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>_>

+                ((set<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>_>

+                  *)local_50);

+      local_58 = (longlong *)0x0;

+      lVar1 = *(longlong *)(this + 0xa8);

+      pcVar2 = *(code **)(*(longlong *)(lVar1 + 0x20) + 0xf0);

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

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

+      iVar7 = (*pcVar2)(lVar1 + 0x20,L"app:all",&local_58);

+      if (iVar7 < 0) {

+        local_78[0] = 0;

+        lVar8 = WnpCloudEndpointResolver::GetDeviceDefaultCloud(local_78);

+        if (lVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x461,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                     ,lVar8);

+        }

+        this_00 = (_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<_WNS_CLOUD_INSTANCE>_>,std::_Iterator_base0>

+                   *)local_50;

+        std::

+        _Tree<std::_Tset_traits<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>,0>_>

+        ::insert<0,0>((_Tree<std::_Tset_traits<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>,0>_>

+                       *)this_00,(_WNS_CLOUD_INSTANCE *)&local_40);

+      }

+      else {

+        local_68 = 0;

+        iVar7 = (**(code **)(*local_58 + 0x20))(local_58,&local_68);

+        this_00 = (_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<_WNS_CLOUD_INSTANCE>_>,std::_Iterator_base0>

+                   *)unaff_retaddr;

+        if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x450,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                     ,iVar7);

+        }

+        for (; plVar4 = local_58, uVar10 < local_68; uVar10 = uVar10 + 1) {

+          local_70 = (ConnectWork *)0x0;

+          pcVar2 = *(code **)(*local_58 + 0x18);

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

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

+          iVar7 = (*pcVar2)(plVar4,uVar10,&local_70);

+          pCVar3 = local_70;

+          if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+            wil::details::in1diag3::_Throw_Hr

+                      (unaff_retaddr,0x454,

+                       "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                       ,iVar7);

+          }

+          local_60 = (ushort *)0x0;

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

+          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>_>

+          ::reset((unique_storage<wil::details::resource_policy<unsigned_short*___ptr64,void_(__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_60,(ushort *)0x0);

+          iVar7 = (*pcVar2)(pCVar3,&local_60);

+          if (iVar7 < 0) {

+                    /* WARNING: Subroutine does not return */

+            wil::details::in1diag3::_Throw_Hr

+                      (unaff_retaddr,0x457,

+                       "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                       ,iVar7);

+          }

+          local_78[0] = 0;

+          lVar8 = WnpCloudEndpointResolver::ResolveCloudForPFN(local_60,local_78);

+          if (lVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+            wil::details::in1diag3::_Throw_Hr

+                      (unaff_retaddr,0x45a,

+                       "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                       ,lVar8);

+          }

+          std::

+          _Tree<std::_Tset_traits<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>,0>_>

+          ::insert<0,0>((_Tree<std::_Tset_traits<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>,0>_>

+                         *)local_50,(_WNS_CLOUD_INSTANCE *)&local_40);

+          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_60);

+          this_00 = (_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<_WNS_CLOUD_INSTANCE>_>,std::_Iterator_base0>

+                     *)&local_70;

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

+                    ((ComPtr<DownloadTaskManager> *)this_00);

+        }

+      }

+      local_60 = (ushort *)*local_50[0];

+      while (*(char *)((longlong)local_60 + 0x19) == '\0') {

+        uVar6 = *(uint *)(local_60 + 0xe);

+        if ((Microsoft_Windows_PushNotifications_PlatformEnableBits & 0x40) != 0) {

+          McTemplateU0t_EventWriteTransfer

+                    (this_00,(PCEVENT_DESCRIPTOR)&WPNPLAT_CONNECT_INITIATED_FOR_CLOUD_INSTANCE,

+                     (ulonglong)uVar6);

+        }

+        local_70 = operator_new(0x20);

+        pWVar9 = (WorkItem *)ConnectWork::ConnectWork(local_70,this,local_64,uVar6);

+        local_70 = (ConnectWork *)pWVar9;

+        (**(code **)(*(longlong *)pWVar9 + 0x20))(pWVar9);

+        local_70 = (ConnectWork *)0x0;

+        lVar8 = ThreadPool::Submit(*(ThreadPool **)(this + 0x30),pWVar9);

+        if (lVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_Throw_Hr

+                    (unaff_retaddr,0x46a,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                     ,lVar8);

+        }

+        std::unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>::

+        ~unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>

+                  ((unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_> *)&local_70);

+        this_00 = (_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<_WNS_CLOUD_INSTANCE>_>,std::_Iterator_base0>

+                   *)&local_60;

+        std::

+        _Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<_WNS_CLOUD_INSTANCE>_>,std::_Iterator_base0>

+        ::operator++(this_00);

+      }

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

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

+      std::

+      _Tree<std::_Tset_traits<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>,0>_>

+      ::

+      ~_Tree<std::_Tset_traits<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>,0>_>

+                ((_Tree<std::_Tset_traits<_WNS_CLOUD_INSTANCE,std::less<_WNS_CLOUD_INSTANCE>,std::allocator<_WNS_CLOUD_INSTANCE>,0>_>

+                  *)local_50);

+    }

+    else {

+      if ((Microsoft_Windows_PushNotifications_PlatformEnableBits & 0x40) != 0) {

+        McGenEventWrite_EventWriteTransfer

+                  (&WPNCORE_PROVIDER_GUID_Context,(PCEVENT_DESCRIPTOR)&WPNPLAT_CONNECT_INITIATED,

+                   in_R8,1,&local_40);

+      }

+      local_70 = operator_new(0x20);

+      pWVar9 = (WorkItem *)ConnectWork::ConnectWork(local_70,this,local_64);

+      local_70 = (ConnectWork *)pWVar9;

+      (**(code **)(*(longlong *)pWVar9 + 0x20))(pWVar9);

+      local_70 = (ConnectWork *)0x0;

+      lVar8 = ThreadPool::Submit(*(ThreadPool **)(this + 0x30),pWVar9);

+      if (lVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+        wil::details::in1diag3::_Throw_Hr

+                  (unaff_retaddr,0x472,

+                   "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\platform.cpp"

+                   ,lVar8);

+      }

+      std::unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>::

+      ~unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_>

+                ((unique_ptr<IGlobalSettings,std::default_delete<IGlobalSettings>_> *)&local_70);

+    }

+  }

+  return 0;

+}

+
```

## ``AppEndpoint::PostNotification3'::__l1::catch$16`  (modified)

```diff
--- `AppEndpoint::PostNotification3'::__l1::catch$16
+++ `AppEndpoint::PostNotification3'::__l1::catch$16
@@ -1,9 +1,25 @@
 

 undefined8 `AppEndpoint::PostNotification3'::__l1::catch_16(undefined8 param_1,longlong param_2)

 

 {

-  undefined8 in_RAX;

+  uint uVar1;

+  long lVar2;

   

-  return in_RAX;

+  uVar1 = wil::details::in1diag3::Return_CaughtException

+                    (*(void **)(param_2 + 0x88),0x4ba,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                    );

+  if ((DAT_0 & 1) != 0) {

+    McTemplateU0d_EventWriteTransfer

+              (&WPNCORE_PROVIDER_GUID_Context,

+               (PCEVENT_DESCRIPTOR)&WPNEND_LOCAL_NOTIFICATION_SUBMIT_TO_THREADPOOL_FAILED,

+               (ulonglong)uVar1);

+  }

+  lVar2 = wil::details::in1diag3::Return_CaughtException

+                    (*(void **)(param_2 + 0x88),0x4bd,

+                     "onecoreuap\\base\\diagnosis\\platform\\notifications\\platform\\endpoint\\appendpoint.cpp"

+                    );

+  *(long *)(param_2 + 0x98) = lVar2;

+  return 0;

 }
```

## `API-MS-WIN-CORE-SYSINFO-L1-1-0.DLL::GetTickCount`  (modified)

```diff
--- API-MS-WIN-CORE-SYSINFO-L1-1-0.DLL::GetTickCount calling
+++ API-MS-WIN-CORE-SYSINFO-L1-1-0.DLL::GetTickCount calling
@@ -10 +9,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_57975764>::__private_IsEnabled
@@ -20 +18,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_SFI663>::__private_IsEnabled
@@ -22,0 +21 @@
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::__private_IsEnabled
```

## `API-MS-WIN-EVENTING-PROVIDER-L1-1-0.DLL::EventWriteTransfer`  (modified)

```diff
--- API-MS-WIN-EVENTING-PROVIDER-L1-1-0.DLL::EventWriteTransfer calling
+++ API-MS-WIN-EVENTING-PROVIDER-L1-1-0.DLL::EventWriteTransfer calling
@@ -1,0 +2 @@
+ToastSession::Deliver
```

## `API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL::GetLastError`  (modified)

```diff
--- API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL::GetLastError calling
+++ API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL::GetLastError calling
@@ -3 +2,0 @@
-AppEndpoint::CreateChannelRequestInternal
```

## `API-MS-WIN-CORE-COM-L1-1-0.DLL::CoEnableCallCancellation`  (modified)

```diff
--- API-MS-WIN-CORE-COM-L1-1-0.DLL::CoEnableCallCancellation calling
+++ API-MS-WIN-CORE-COM-L1-1-0.DLL::CoEnableCallCancellation calling
@@ -3 +2,0 @@
-ChannelRequestCompleteWork::Invoke
```

## `API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL::GetCurrentThreadId`  (modified)

```diff
--- API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL::GetCurrentThreadId calling
+++ API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL::GetCurrentThreadId calling
@@ -4 +3,0 @@
-ChannelRequestCompleteWork::Invoke
```

## `OLEAUT32.DLL::SysFreeString`  (modified)

```diff
--- OLEAUT32.DLL::SysFreeString calling
+++ OLEAUT32.DLL::SysFreeString calling
@@ -13 +12,0 @@
-ChannelRequestCompleteWork::Invoke
```

## `API-MS-WIN-CORE-THREADPOOL-LEGACY-L1-1-0.DLL::CreateTimerQueueTimer`  (modified)

```diff
--- API-MS-WIN-CORE-THREADPOOL-LEGACY-L1-1-0.DLL::CreateTimerQueueTimer calling
+++ API-MS-WIN-CORE-THREADPOOL-LEGACY-L1-1-0.DLL::CreateTimerQueueTimer calling
@@ -3 +2,0 @@
-ChannelRequestCompleteWork::Invoke
```

## `API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::AcquireSRWLockExclusive`  (modified)

```diff
--- API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::AcquireSRWLockExclusive calling
+++ API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::AcquireSRWLockExclusive calling
@@ -131 +130,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_57975764>::GetCachedFeatureEnabledState
@@ -142 +140,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_SFI663>::GetCachedFeatureEnabledState
@@ -145,0 +144 @@
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_TIPLimitErrorWatcherAccumulation>::GetCachedFeatureEnabledState
@@ -149,2 +147,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_UxLabTest>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_ValLabTest>::GetCachedFeatureEnabledState
@@ -154 +150,0 @@
-wil::details::FeatureStateManager::RecordFeatureUsage
@@ -156,0 +153 @@
+wil::details::WilApiImpl_RecordFeatureUsage
```

## `API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL::SetLastError`  (modified)

```diff
--- API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL::SetLastError calling
+++ API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL::GetCurrentThreadId calling
@@ -1,2 +1,6 @@
-AppEndpoint::CreateChannelRequestInternal
-DatabaseTQMAdaptor::EnumerateAll
+AppEndpoint::DoCallbackWithCachedUri
+AppEndpoint::GetWpnConnectionState
+CRPCTimeout::CRPCTimeout
+ChannelRequestCompleteWork::Invoke
+ConnectionManagerPtr::RefreshConnectionManager
+RunningApps::ToastFeedbackCallback::~ToastFeedbackCallback
@@ -4,5 +8,15 @@
-wil::details::unique_storage<wil::details::resource_policy<char*___ptr64,void_(__cdecl*)(void*___ptr64),&void___cdecl_CoTaskMemFree(void*___ptr64),wistd::integral_constant<unsigned___int64,0>,char*___ptr64,char*___ptr64,0,std::nullptr_t>_>::reset
-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>_>::reset
-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
-wil::details_abi::heap_buffer::reserve
-wil::last_error_context::~last_error_context
+WpncoreTelemetry::NotificationPlatformInitializeActivity::StartActivity
+WpncoreTelemetry::NotificationPlatformInitializeActivity::Stop
+WpncoreTelemetry::NotificationPlatformInitializeActivity::StopActivity
+WpncoreTelemetry::NotificationPlatformShutdownActivity::StartActivity
+WpncoreTelemetry::NotificationPlatformShutdownActivity::Stop
+WpncoreTelemetry::NotificationPlatformShutdownActivity::StopActivity
+__security_init_cookie
+wil::GetFailureLogString
+wil::details::GetContextAndNotifyFailure
+wil::details::LogFailure
+wil::details::ThreadFailureCallbackHolder::GetContextAndNotifyFailure
+wil::details::ThreadFailureCallbackHolder::StartWatching
+wil::details::ThreadFailureCallbackHolder::StopWatching
+wil::details_abi::GetThreadLocalDataCache
+wil::details_abi::ThreadLocalStorage<wil::details::ThreadFailureCallbackHolder*___ptr64>::GetLocal
```
