# CVE-2026-54990 — rdpbase.dll patch diff

`rdpbase.dll` 10.0.26100.8655 -> 10.0.26100.8875 (ghidriff).

## `memcpy_s`  (modified)

```diff
--- memcpy_s calling
+++ memcpy_s calling
@@ -30,6 +29,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
@@ -40 +33,0 @@
-wil::details_abi::heap_buffer::reserve
```

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

```diff
--- wil::details::SubscribeFeatureStateCacheToConfigurationChanges
+++ wil::details::DestroyThreadPoolTimer<wil::details::SystemThreadPoolMethods,0>::Destroy
@@ -1,78 +1,2 @@
-

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

-   guard_dispatch_icall */

-

-void __cdecl

-`PipelineClock::GetInstance'::__l2::SubscribeFeatureStateCacheToConfigurationChanges

-          (wil_details_FeatureStateCache *param_1,wil_FeatureChangeTime param_2,uint param_3)

-

-{

-  long lVar1;

-  undefined4 uVar2;

-  undefined2 uVar4;

-  undefined4 in_register_00000014;

-  longlong unaff_RBX;

-  undefined8 unaff_RSI;

-  undefined4 in_register_00000084;

-  RdpWinInterfaceSecurityFilterHelper *pRVar5;

-  longlong in_R11;

-  void *local_res20;

-  ulong in_stack_ffffffffffffffa8;

-  undefined4 in_stack_ffffffffffffffac;

-  void **in_stack_ffffffffffffffb0;

-  void **in_stack_ffffffffffffffb8;

-  longlong lStack_38;

-  longlong lStack_30;

-  longlong alStack_28 [2];

-  ulonglong uVar3;

-  

-  pRVar5 = (RdpWinInterfaceSecurityFilterHelper *)CONCAT44(in_register_00000084,param_3);

-  *(int *)(unaff_RBX + 8) = (int)unaff_RBX;

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

-  local_res20 = (void *)0x0;

-  lStack_30 = 0;

-  alStack_28[0] = 0;

-  lStack_38 = 0;

-  *(longlong **)(in_R11 + -0x48) = &lStack_38;

-  *(longlong **)(in_R11 + -0x50) = alStack_28;

-  *(longlong **)(in_R11 + -0x58) = &lStack_30;

-  lVar1 = CSecFilterServerTemplate::InitializeCredentials

-                    ((CSecFilterServerTemplate *)param_1,pRVar5,

-                     (_XSECURITY_FILTER_SERVER_SETTINGS *)CONCAT44(in_register_00000014,param_2),

-                     &local_res20,

-                     (void **)CONCAT44(in_stack_ffffffffffffffac,in_stack_ffffffffffffffa8),

-                     in_stack_ffffffffffffffb0,in_stack_ffffffffffffffb8);

-  if (lVar1 < 0) {

-    if ((((undefined8 **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

-        ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) == 0)) ||

-       (*(byte *)((longlong)WPP_GLOBAL_Control + 0x19) < 2)) goto LAB_0;

-    uVar3 = RdpX_GetActivityIdPrefix();

-    uVar2 = (undefined4)uVar3;

-    uVar4 = 0x15;

-  }

-  else {

-    lVar1 = CSecurityFilterTemplate::Initialize

-                      ((CSecurityFilterTemplate *)param_1,pRVar5,

-                       *(uint *)CONCAT44(in_register_00000014,param_2),local_res20,

-                       in_stack_ffffffffffffffa8);

-    if ((((-1 < lVar1) || ((undefined8 **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control)) ||

-        ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) == 0)) ||

-       (*(byte *)((longlong)WPP_GLOBAL_Control + 0x19) < 2)) goto LAB_0;

-    uVar3 = RdpX_GetActivityIdPrefix();

-    uVar2 = (undefined4)uVar3;

-    uVar4 = 0x16;

-  }

-  WPP_SF_DD(WPP_GLOBAL_Control[2],uVar4,&WPP_bcf6cbb121023be29bda4ddf912d8228_Traceguids,uVar2);

-LAB_0:

-  if (lStack_38 != 0) {

-    (**(code **)(*(longlong *)pRVar5 + 0x58))(pRVar5);

-  }

-  if (lStack_30 != 0) {

-    (**(code **)(*(longlong *)pRVar5 + 0x20))(pRVar5);

-  }

-  if (alStack_28[0] != 0) {

-    (**(code **)(*(longlong *)pRVar5 + 0x20))(pRVar5);

-  }

-  return;

-}

-

+Failed to decompile rdpbase.dll - .ProgramDB wil::details::DestroyThreadPoolTimer<wil::details::SystemThreadPoolMethods,0>::Destroy : Error: Decompile error: 
+Marshaling error: Did not see expected closing element
```

## `<lambda_0374aa0a5d1201b2358c6bce99369c58>::<lambda_invoker_cdecl>`  (modified)

```diff
--- <lambda_0374aa0a5d1201b2358c6bce99369c58>::<lambda_invoker_cdecl>
+++ <lambda_0374aa0a5d1201b2358c6bce99369c58>::<lambda_invoker_cdecl>
@@ -1,2 +1,28 @@
-Failed to decompile rdpbase.dll - .ProgramDB <lambda_0374aa0a5d1201b2358c6bce99369c58>::<lambda_invoker_cdecl> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: static __cdecl <lambda_0374aa0a5d1201b2358c6bce99369c58>::<lambda_invoker_cdecl>(struct

+   _TP_CALLBACK_INSTANCE * __ptr64,void * __ptr64,struct _TP_TIMER * __ptr64) */

+

+void __cdecl

+<lambda_0374aa0a5d1201b2358c6bce99369c58>::<lambda_invoker_cdecl>

+          (_TP_CALLBACK_INSTANCE *param_1,void *param_2,_TP_TIMER *param_3)

+

+{

+  PSRWLOCK SRWLock;

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

+  *puVar1;

+  

+  if (*(int *)param_2 != 0) {

+    SRWLock = (PSRWLOCK)((longlong)param_2 + 8);

+    puVar1 = param_2;

+    AcquireSRWLockExclusive(SRWLock);

+    if (*(int *)param_2 != 0) {

+      wil::details::EnabledStateManager::RecordCachedUsageUnderLock(param_2,puVar1);

+      *(undefined1 *)((longlong)param_2 + 0x18) = 0;

+    }

+    if (SRWLock != (PSRWLOCK)0x0) {

+      ReleaseSRWLockExclusive(SRWLock);

+    }

+  }

+  return;

+}

+
```

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

```diff
--- wil::details::RecordSRUMFeatureUsage
+++ wil::details::EnabledStateManager::~EnabledStateManager
@@ -1,18 +1,2 @@
-

-void __cdecl

-`PipelineClock::GetInstance'::__l2::RecordSRUMFeatureUsage(uint param_1,uint param_2,uint param_3)

-

-{

-  uint uVar1;

-  

-  if ((((undefined8 **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-      ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) != 0)) &&

-     (1 < *(byte *)((longlong)WPP_GLOBAL_Control + 0x19))) {

-    uVar1 = RdpWppGetCurrentThreadActivityIdPrefix();

-    WPP_SF_DsD(WPP_GLOBAL_Control[2],0x19,&WPP_f1f1aac725c93b45240bb37fa20382d9_Traceguids,uVar1,

-               "RDPAPI_GetGenericCounter GfxInterFrameCacheHitRects failed");

-  }

-  CTSAutoLock::~CTSAutoLock((CTSAutoLock *)&stack0x00000080);

-  return;

-}

-

+Failed to decompile rdpbase.dll - .ProgramDB wil::details::EnabledStateManager::~EnabledStateManager : Error: Decompile error: 
+Marshaling error: Did not see expected closing element
```

## `wil::details::EnabledStateManager::ProcessShutdown`  (modified)

```diff
--- wil::details::EnabledStateManager::ProcessShutdown
+++ wil::details::unique_storage<wil::details::resource_policy<FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,void_(__cdecl*)(FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64),&void___cdecl_wil::details::WilApi_UnsubscribeFeatureStateChangeNotification(struct_FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64),wistd::integral_constant<unsigned___int64,0>,FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,0,std::nullptr_t>_>::~unique_storage<wil::details::resource_policy<FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,void_(__cdecl*)(FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64),&void___cdecl_wil::details::WilApi_UnsubscribeFeatureStateChangeNotification(struct_FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64),wistd::integral_constant<unsigned___int64,0>,FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,0,std::nullptr_t>_>
@@ -1,2 +1,2 @@
-Failed to decompile rdpbase.dll - .ProgramDB wil::details::EnabledStateManager::ProcessShutdown : Error: Decompile error: 
+Failed to decompile rdpbase.dll - .ProgramDB wil::details::unique_storage<wil::details::resource_policy<FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,void_(__cdecl*)(FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64),&void___cdecl_wil::details::WilApi_UnsubscribeFeatureStateChangeNotification(struct_FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64),wistd::integral_constant<unsigned___int64,0>,FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,0,std::nullptr_t>_>::~unique_storage<wil::details::resource_policy<FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,void_(__cdecl*)(FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64),&void___cdecl_wil::details::WilApi_UnsubscribeFeatureStateChangeNotification(struct_FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64),wistd::integral_constant<unsigned___int64,0>,FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,FEATURE_STATE_CHANGE_SUBSCRIPTION__*___ptr64,0,std::nullptr_t>_> : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `CaCpuDecompressor::Decompress`  (modified)

```diff
--- CaCpuDecompressor::Decompress
+++ CaCpuDecompressor::Decompress
@@ -1,2 +1,65 @@
-Failed to decompile rdpbase.dll - .ProgramDB CaCpuDecompressor::Decompress : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual long __cdecl CaCpuDecompressor::Decompress(struct RDP_COMPRESSION_PARAMETERS

+   const * __ptr64,struct RDP_BITMAP_INFO const * __ptr64,unsigned char const * __ptr64,unsigned

+   int,unsigned char * __ptr64,unsigned int) __ptr64 */

+

+long __thiscall

+CaCpuDecompressor::Decompress

+          (CaCpuDecompressor *this,RDP_COMPRESSION_PARAMETERS *param_1,RDP_BITMAP_INFO *param_2,

+          uchar *param_3,uint param_4,uchar *param_5,uint param_6)

+

+{

+  bool bVar1;

+  int iVar2;

+  ulonglong uVar3;

+  uint uVar4;

+  RDP_BITMAP_INFO *pRVar5;

+  uchar *puVar6;

+  undefined4 local_res18;

+  undefined4 local_res1c;

+  tagPOINT local_18 [2];

+  

+  uVar4 = (uint)param_1;

+  local_18[0].x = 0;

+  local_18[0].y = 0;

+  if ((*(uint *)(param_2 + 4) < 0x3e81) && (*(uint *)(param_2 + 8) < 0x3e81)) {

+    pRVar5 = param_2;

+    puVar6 = param_3;

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

+                      ((FeatureImpl<__WilFeatureTraits_Feature_553358650> *)

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

+                        ::__l2::impl);

+    if (bVar1) {

+      uVar3 = (ulonglong)*(uint *)(param_2 + 8) * (ulonglong)*(uint *)(param_2 + 4) * 4;

+    }

+    else {

+      uVar3 = (ulonglong)((*(uint *)(param_2 + 8) * *(int *)(param_2 + 4) & 0x7ffffff) << 2);

+    }

+    if (uVar3 < 0x100000000) {

+      if ((param_6 < uVar3) ||

+         ((*(longlong *)(this + 8) != 0 && ((ulonglong)(longlong)*(int *)(this + 0x10) < uVar3)))) {

+        iVar2 = -0x7ffdffed;

+      }

+      else {

+        iVar2 = Decode(this + -0x30,uVar4,(uint)pRVar5,(uint)puVar6,param_3,param_4,local_18);

+        if (-1 < iVar2) {

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

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

+          iVar2 = Transfer(this + -0x30,local_18,(tagSIZE *)&local_res18,param_5,param_6);

+        }

+      }

+    }

+    else {

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

+                        ((FeatureImpl<__WilFeatureTraits_Feature_553358650> *)

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

+                          ::__l2::impl);

+      iVar2 = (-(uint)bVar1 & 0x80070000) + 0x216;

+    }

+  }

+  else {

+    iVar2 = -0x7ff8ffa9;

+  }

+  return iVar2;

+}

+
```

## `CaCpuDecompressor::Transfer`  (modified)

```diff
--- CaCpuDecompressor::Transfer
+++ wil::details::EnabledStateManager::EnsureSubscribedToFeatureConfigurationChangesImpl
@@ -1,2 +1,2 @@
-Failed to decompile rdpbase.dll - .ProgramDB CaCpuDecompressor::Transfer : Error: Decompile error: 
+Failed to decompile rdpbase.dll - .ProgramDB wil::details::EnabledStateManager::EnsureSubscribedToFeatureConfigurationChangesImpl : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

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

```diff
--- wil::details::EnsureSubscribedToFeatureConfigurationChanges
+++ wil::details::EnsureSubscribedToFeatureConfigurationChanges
@@ -1,127 +1,36 @@
 

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

    guard_dispatch_icall */

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

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

+/* unsigned int __cdecl wil::details::EnsureSubscribedToFeatureConfigurationChanges(void) */

 

-uint __cdecl `PipelineClock::GetInstance'::__l2::EnsureSubscribedToFeatureConfigurationChanges(void)

+uint __cdecl wil::details::EnsureSubscribedToFeatureConfigurationChanges(void)

 

 {

   uint uVar1;

-  undefined4 uVar2;

-  undefined4 *puVar3;

-  uint *puVar4;

-  uint uVar5;

-  ulonglong in_RAX;

-  ulonglong uVar6;

-  undefined4 *puVar7;

-  __uint64 _Var8;

-  code *pcVar9;

-  uint uVar10;

-  uint uVar11;

-  longlong in_RCX;

-  undefined4 *puVar12;

-  undefined8 unaff_RBP;

-  longlong in_R11;

-  undefined8 unaff_R12;

-  undefined8 unaff_R13;

-  undefined8 unaff_R14;

-  undefined8 unaff_R15;

-  bool bVar13;

-  longlong lStack0000000000000030;

-  undefined4 in_stack_00000038;

-  undefined4 in_stack_0000003c;

-  ulonglong uStack0000000000000068;

+  code *pcVar2;

   

-  uStack0000000000000068 = in_RAX ^ (ulonglong)&stack0x00000000;

-  puVar3 = *(undefined4 **)(in_RCX + 0x28);

-  puVar12 = *(undefined4 **)(in_RCX + 0x20);

-  uVar6 = (longlong)puVar3 - (longlong)puVar12;

-  if (0xf < uVar6) {

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

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

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

-    *(undefined8 *)(in_R11 + -0x20) = unaff_R14;

-    *(undefined8 *)(in_R11 + -0x28) = unaff_R15;

-    lStack0000000000000030 = in_RCX;

-    for (; puVar12 != puVar3; puVar12 = puVar12 + 4) {

-      puVar4 = *(uint **)(puVar12 + 2);

-      uVar2 = *puVar12;

-      uVar5 = *puVar4;

-      do {

-        LOCK();

-        uVar11 = *puVar4;

-        bVar13 = uVar5 == uVar11;

-        if (bVar13) {

-          *puVar4 = uVar5 & 0xffc0401e;

-          uVar11 = uVar5;

-        }

-        uVar5 = uVar11;

-        UNLOCK();

-      } while (!bVar13);

-      uVar10 = uVar5 >> 1 & 0xf;

-      uVar11 = 0;

-      if (uVar10 != 0) {

-        uVar11 = puVar4[1];

-        do {

-          LOCK();

-          uVar1 = puVar4[1];

-          bVar13 = uVar11 == uVar1;

-          if (bVar13) {

-            puVar4[1] = uVar11 | uVar10;

-            uVar1 = uVar11;

-          }

-          uVar11 = uVar1;

-          UNLOCK();

-        } while (!bVar13);

-        uVar11 = uVar10 & ~uVar11;

+  uVar1 = DAT_0;

+  if (DAT_0 == 0) {

+    if (_g_enabledStateManager != 0) {

+      AcquireSRWLockExclusive((PSRWLOCK)&DAT_1);

+      uVar1 = DAT_0;

+      if ((DAT_2 == 0) &&

+         (((pcVar2 = g_wil_details_internalSubscribeFeatureStateChangeNotification, uVar1 = 0,

+           g_wil_details_internalSubscribeFeatureStateChangeNotification != (code *)0x0 ||

+           (pcVar2 = g_wil_details_apiSubscribeFeatureStateChangeNotification,

+           g_wil_details_apiSubscribeFeatureStateChangeNotification != (code *)0x0)) &&

+          ((*pcVar2)(&DAT_2,

+                     <lambda_fee8cea507d2413a58be13acfb66740a>::<lambda_invoker_cdecl>,

+                     &g_enabledStateManager), DAT_2 != 0)))) {

+        DAT_0 = 1;

+        uVar1 = 1;

       }

-      puVar7 = &stack0x00000038;

-      if ((uVar11 & 1) != 0) {

-        puVar7 = (undefined4 *)&stack0x00000040;

-        in_stack_0000003c = 0x10002;

-        in_stack_00000038 = uVar2;

-      }

-      if ((uVar11 & 2) != 0) {

-        *puVar7 = uVar2;

-        puVar7[1] = 0x10006;

-        puVar7 = puVar7 + 2;

-      }

-      if ((uVar11 & 4) != 0) {

-        *puVar7 = uVar2;

-        puVar7[1] = 0x10003;

-        puVar7 = puVar7 + 2;

-      }

-      if (7 < uVar11) {

-        *puVar7 = uVar2;

-        puVar7[1] = 0x10007;

-        puVar7 = puVar7 + 2;

-      }

-      if ((uVar5 >> 5 & 0x1ff) != 0) {

-        *puVar7 = uVar2;

-        *(ushort *)((longlong)puVar7 + 6) = (ushort)(uVar5 >> 5) & 0x1ff;

-        *(ushort *)(puVar7 + 1) = ((ushort)(uVar5 >> 0xe) & 1) << 2;

-        puVar7 = puVar7 + 2;

-      }

-      if ((uVar5 >> 0xf & 0x7f) != 0) {

-        *puVar7 = uVar2;

-        *(ushort *)((longlong)puVar7 + 6) = (ushort)(uVar5 >> 0xf) & 0x7f;

-        *(ushort *)(puVar7 + 1) = ((ushort)(uVar5 >> 0x16) & 1) * 4 + 1;

-        puVar7 = puVar7 + 2;

-      }

-      _Var8 = (longlong)puVar7 - (longlong)&stack0x00000038 >> 3;

-      if (0 < (longlong)_Var8) {

-        wil::details::WilApi_RecordFeatureUsageReports

-                  ((__WIL_RTL_FEATURE_USAGE_DATA *)&stack0x00000038,_Var8);

-      }

+      ReleaseSRWLockExclusive((PSRWLOCK)&DAT_1);

+      return uVar1;

     }

-    *(undefined8 *)(lStack0000000000000030 + 0x28) = *(undefined8 *)(lStack0000000000000030 + 0x20);

-    pcVar9 = g_wil_details_internalRecordFeatureUsage;

-    if ((g_wil_details_internalRecordFeatureUsage != (code *)0x0) ||

-       (uVar6 = 0, pcVar9 = g_wil_details_apiRecordFeatureUsage,

-       g_wil_details_apiRecordFeatureUsage != (code *)0x0)) {

-      uVar6 = (*pcVar9)(0,0xfe,0,0);

-    }

+    uVar1 = 0;

   }

-  return (uint)uVar6;

+  return uVar1;

 }
```

## `wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset`  (modified)

```diff
--- wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset
+++ wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset
@@ -1,2 +1,32 @@
-Failed to decompile rdpbase.dll - .ProgramDB wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl wil::details::unique_storage<struct wil::details::resource_policy<struct

+   _TP_TIMER * __ptr64,void (__cdecl*)(struct _TP_TIMER * __ptr64),&public: static void __cdecl

+   wil::details::DestroyThreadPoolTimer<struct

+   wil::details::SystemThreadPoolMethods,0>::Destroy(struct _TP_TIMER * __ptr64),struct

+   wistd::integral_constant<unsigned __int64,0>,struct _TP_TIMER * __ptr64,struct _TP_TIMER *

+   __ptr64,0,std::nullptr_t> >::reset(struct _TP_TIMER * __ptr64) __ptr64 */

+

+void __thiscall

+wil::details::

+unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>

+::reset(unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>

+        *this,_TP_TIMER *param_1)

+

+{

+  PTP_TIMER pti;

+  DWORD dwErrCode;

+  

+  pti = *(PTP_TIMER *)this;

+  if (pti != (PTP_TIMER)0x0) {

+    dwErrCode = GetLastError();

+    SetThreadpoolTimer(pti,(PFILETIME)0x0,0,0);

+    WaitForThreadpoolTimerCallbacks(pti,1);

+    CloseThreadpoolTimer(pti);

+    SetLastError(dwErrCode);

+    *(_TP_TIMER **)this = param_1;

+    return;

+  }

+  *(_TP_TIMER **)this = param_1;

+  return;

+}

+
```

## `PlanarDecompressor::Decompress`  (modified)

```diff
--- PlanarDecompressor::Decompress
+++ PlanarDecompressor::Decompress
@@ -1,2 +1,286 @@
-Failed to decompile rdpbase.dll - .ProgramDB PlanarDecompressor::Decompress : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual long __cdecl PlanarDecompressor::Decompress(struct RDP_COMPRESSION_PARAMETERS

+   const * __ptr64,struct RDP_BITMAP_INFO const * __ptr64,unsigned char const * __ptr64,unsigned

+   int,unsigned char * __ptr64,unsigned int) __ptr64 */

+

+long __thiscall

+PlanarDecompressor::Decompress

+          (PlanarDecompressor *this,RDP_COMPRESSION_PARAMETERS *param_1,RDP_BITMAP_INFO *param_2,

+          uchar *param_3,uint param_4,uchar *param_5,uint param_6)

+

+{

+  ushort uVar1;

+  int iVar2;

+  undefined8 uVar3;

+  int iVar4;

+  bool bVar5;

+  uint uVar6;

+  long lVar7;

+  undefined4 uVar8;

+  ulonglong uVar9;

+  uint uVar10;

+  uint uVar11;

+  char *pcVar12;

+  undefined2 uVar13;

+  PixelMap *pPVar14;

+  char cVar15;

+  byte bVar16;

+  uint uVar17;

+  byte bVar18;

+  ushort uVar19;

+  uint uVar20;

+  uint uVar21;

+  PlanarDecompressor *local_res18;

+  uchar *local_res20;

+  uint uVar22;

+  int in_stack_ffffffffffffff20;

+  int in_stack_ffffffffffffff28;

+  uchar local_88 [2];

+  ushort local_86;

+  ushort local_84;

+  int local_80 [2];

+  int local_78 [8];

+  undefined8 local_58;

+  undefined8 local_50;

+  undefined8 local_48;

+  undefined8 uStack_40;

+  

+  local_78[0] = 0;

+  local_78[1] = 0;

+  local_78[2] = 0;

+  local_78[3] = 0;

+  local_58 = 0;

+  local_50 = 0;

+  local_78[4] = 0;

+  local_78[5] = 0;

+  local_78[6] = 0;

+  local_78[7] = 0;

+  local_48 = 0;

+  uStack_40 = 0;

+  local_res20 = param_3;

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

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

+        ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) != 0)) &&

+       (1 < *(byte *)((longlong)WPP_GLOBAL_Control + 0x19))) {

+      uVar9 = RdpX_GetActivityIdPrefix();

+      WPP_SF_DsD(WPP_GLOBAL_Control[2],0x17,&WPP_a8adb151b25432f5001e7825cc13b459_Traceguids,

+                 (int)uVar9,"pBitmapInfo");

+    }

+    lVar7 = -0x7fffbffd;

+    goto LAB_0;

+  }

+  local_84 = *(ushort *)(param_2 + 4);

+  uVar1 = *(ushort *)(param_2 + 8);

+  uVar10 = (uint)local_84;

+  uVar20 = *(uint *)(param_2 + 4);

+  local_86 = uVar1;

+  if (uVar10 == uVar20) {

+    uVar22 = *(uint *)(param_2 + 8);

+    uVar6 = (uint)uVar1;

+    if (uVar6 == uVar22) {

+      if (*(int *)(param_2 + 0x10) == 0xf) {

+        uVar11 = 0xf;

+      }

+      else {

+        uVar11 = *(int *)(param_2 + 0x10) + 1U & 0xf8;

+      }

+      bVar5 = PixelMap::Attach((PixelMap *)local_78,param_5,param_6,uVar20,uVar22,

+                               *(int *)(param_2 + 0xc),uVar11,in_stack_ffffffffffffff20,

+                               in_stack_ffffffffffffff28,uVar20,uVar22);

+      uVar3 = local_78._8_8_;

+      if (bVar5) {

+        iVar4 = local_78[3];

+        if (*(int *)(param_2 + 0xc) < 0) {

+          uVar20 = -local_78[2];

+          if (-local_78[2] < 0) {

+            uVar20 = local_78[2];

+          }

+          if (uVar20 != (local_78[3] + 1 >> 3 & 0xffU) * local_78[0]) goto LAB_1;

+        }

+        uVar20 = local_78[3] + 1;

+        pPVar14 = (PixelMap *)local_78;

+        uVar11 = -local_78[2];

+        if (-local_78[2] < 0) {

+          uVar11 = local_78[2];

+        }

+        uVar21 = ((int)uVar20 >> 3 & 0xffU) * local_78[0];

+        uVar17 = local_78[2];

+        if (uVar11 == uVar21) {

+LAB_2:

+          iVar2 = -*(int *)(pPVar14 + 8);

+          if (-*(int *)(pPVar14 + 8) < 0) {

+            iVar2 = *(int *)(pPVar14 + 8);

+          }

+          if (iVar2 == (*(int *)(pPVar14 + 0xc) + 1 >> 3 & 0xffU) * *(int *)pPVar14) {

+            cVar15 = SUB81(uVar3,4);

+            uVar19 = local_86;

+            if ((iVar4 == 0xf) || ((cVar15 + 1U & 0xf8) != 0x20)) {

+LAB_3:

+              if (iVar4 == 0xf) {

+                bVar18 = 0xf;

+              }

+              else {

+                bVar18 = cVar15 + 1U & 0xf8;

+              }

+              if (iVar4 == 0xf) {

+                bVar16 = 0xf;

+              }

+              else {

+                bVar16 = cVar15 + 1U & 0xf8;

+              }

+              lVar7 = Planar::BD_DecompressBitmap

+                                (local_res20,*(uchar **)(pPVar14 + 0x18),param_4,

+                                 iVar2 * *(int *)(pPVar14 + 4),1,bVar16,0,local_84,uVar19,

+                                 *(uchar **)(this + 0x48),*(uint *)(this + 0x50),

+                                 (uint)(bVar18 == 0x20),0,0,0,0,(ITSGraphicsSurface *)0x0,(int *)0x0

+                                );

+              if (-1 < lVar7) {

+                if ((pPVar14 != (PixelMap *)local_78) &&

+                   (bVar5 = PixelMap::CopyFrom((PixelMap *)local_78,pPVar14), !bVar5)) {

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

+                     (((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) != 0 &&

+                      (1 < *(byte *)((longlong)WPP_GLOBAL_Control + 0x19))))) {

+                    uVar9 = RdpX_GetActivityIdPrefix();

+                    WPP_SF_DD(WPP_GLOBAL_Control[2],0x20,

+                              &WPP_a8adb151b25432f5001e7825cc13b459_Traceguids,(int)uVar9);

+                  }

+                  lVar7 = -0x7fffbffb;

+                }

+                goto LAB_0;

+              }

+              if ((((undefined8 **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

+                  ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) == 0)) ||

+                 (*(byte *)((longlong)WPP_GLOBAL_Control + 0x19) < 2)) goto LAB_0;

+              uVar9 = RdpX_GetActivityIdPrefix();

+              uVar8 = (undefined4)uVar9;

+              uVar13 = 0x1f;

+              pcVar12 = "BD_DecompressBitmap failed";

+            }

+            else {

+              local_88[0] = '\0';

+              local_res18 = (PlanarDecompressor *)((ulonglong)local_res18 & 0xffffffffffffff00);

+              local_80[0] = 0;

+              if (iVar4 == 0xf) {

+                bVar18 = 0xf;

+              }

+              else {

+                bVar18 = cVar15 + 1U & 0xf8;

+              }

+              lVar7 = Planar::BD_GetCompressionSettings

+                                (local_res20,param_4,uVar17,bVar18,uVar22,local_88,

+                                 (uchar *)&local_res18,local_80);

+              if (lVar7 < 0) {

+                if ((((undefined8 **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

+                    ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) == 0)) ||

+                   (*(byte *)((longlong)WPP_GLOBAL_Control + 0x19) < 2)) goto LAB_0;

+                uVar9 = RdpX_GetActivityIdPrefix();

+                uVar8 = (undefined4)uVar9;

+                uVar13 = 0x1c;

+                pcVar12 = "BD_GetCompressionSettings failed";

+              }

+              else {

+                if (iVar4 == 0xf) {

+                  bVar18 = 0xf;

+                }

+                else {

+                  bVar18 = cVar15 + 1U & 0xf8;

+                }

+                uVar20 = Planar::BD_PlanarBitmapSize

+                                   (bVar18,(uint)((char)local_res18 != '\0'),local_84,uVar1,

+                                    local_80[0]);

+                if (uVar20 == 0) {

+                  lVar7 = -0x7ff8ffa9;

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

+                      ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 1) != 0)) &&

+                     (*(char *)((longlong)WPP_GLOBAL_Control + 0x19) != '\0')) {

+                    WPP_SF_(WPP_GLOBAL_Control[2],0x1d,

+                            &WPP_a8adb151b25432f5001e7825cc13b459_Traceguids);

+                  }

+                  goto LAB_0;

+                }

+                lVar7 = EnsureBufferStorage((uchar **)(this + 0x48),(uint *)(this + 0x50),uVar20);

+                uVar19 = uVar1;

+                if (-1 < lVar7) goto LAB_3;

+                if ((((undefined8 **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

+                    ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) == 0)) ||

+                   (*(byte *)((longlong)WPP_GLOBAL_Control + 0x19) < 2)) goto LAB_0;

+                uVar9 = RdpX_GetActivityIdPrefix();

+                uVar8 = (undefined4)uVar9;

+                uVar13 = 0x1e;

+                pcVar12 = "EnsureBufferStorage failed";

+              }

+            }

+LAB_4:

+            WPP_SF_DsD(WPP_GLOBAL_Control[2],uVar13,&WPP_a8adb151b25432f5001e7825cc13b459_Traceguids

+                       ,uVar8,pcVar12);

+            goto LAB_0;

+          }

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

+              ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) != 0)) &&

+             (1 < *(byte *)((longlong)WPP_GLOBAL_Control + 0x19))) {

+            uVar9 = RdpX_GetActivityIdPrefix();

+            uVar8 = (undefined4)uVar9;

+            uVar13 = 0x1b;

+LAB_5:

+            WPP_SF_DD(WPP_GLOBAL_Control[2],uVar13,&WPP_a8adb151b25432f5001e7825cc13b459_Traceguids,

+                      uVar8);

+          }

+        }

+        else {

+          local_res18 = this + 0x38;

+          lVar7 = EnsureBufferStorage((uchar **)local_res18,(uint *)(this + 0x40),

+                                      local_78[1] * uVar11);

+          if (lVar7 < 0) {

+            if ((((undefined8 **)WPP_GLOBAL_Control == &WPP_GLOBAL_Control) ||

+                ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) == 0)) ||

+               (*(byte *)((longlong)WPP_GLOBAL_Control + 0x19) < 2)) goto LAB_0;

+            uVar9 = RdpX_GetActivityIdPrefix();

+            uVar8 = (undefined4)uVar9;

+            uVar13 = 0x19;

+            pcVar12 = "OOM allocating Planar decode buffer";

+            goto LAB_4;

+          }

+          if (iVar4 == 0xf) {

+            uVar20 = 0xf;

+          }

+          else {

+            uVar20 = uVar20 & 0xf8;

+          }

+          uVar17 = *(uint *)(this + 0x40);

+          uVar22 = uVar6;

+          bVar5 = PixelMap::Attach((PixelMap *)&local_58,*(uchar **)local_res18,uVar17,uVar10,uVar6,

+                                   uVar21,uVar20,in_stack_ffffffffffffff20,in_stack_ffffffffffffff28

+                                   ,uVar10,uVar6);

+          if (bVar5) {

+            pPVar14 = (PixelMap *)&local_58;

+            goto LAB_2;

+          }

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

+              ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) != 0)) &&

+             (1 < *(byte *)((longlong)WPP_GLOBAL_Control + 0x19))) {

+            uVar9 = RdpX_GetActivityIdPrefix();

+            uVar8 = (undefined4)uVar9;

+            uVar13 = 0x1a;

+            goto LAB_5;

+          }

+        }

+        lVar7 = -0x7fff0001;

+        goto LAB_0;

+      }

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

+          ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x1c) & 8) != 0)) &&

+         (1 < *(byte *)((longlong)WPP_GLOBAL_Control + 0x19))) {

+        uVar9 = RdpX_GetActivityIdPrefix();

+        WPP_SF_DD(WPP_GLOBAL_Control[2],0x18,&WPP_a8adb151b25432f5001e7825cc13b459_Traceguids,

+                  (int)uVar9);

+      }

+    }

+  }

+LAB_1:

+  lVar7 = -0x7ff8ffa9;

+LAB_0:

+  PixelMap::~PixelMap((PixelMap *)&local_58);

+  PixelMap::~PixelMap((PixelMap *)local_78);

+  return lVar7;

+}

+
```

## `wil::details::EnabledStateManager::OnStateChange`  (modified)

```diff
--- wil::details::EnabledStateManager::OnStateChange
+++ wil::details::EnsureCoalescedTimer<wil::details::EnabledStateManager>
@@ -1,2 +1,10 @@
-Failed to decompile rdpbase.dll - .ProgramDB wil::details::EnabledStateManager::OnStateChange : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void __cdecl

+`PipelineClock::GetInstance'::__l2::EnsureCoalescedTimer<wil::details::EnabledStateManager>

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

+           *param_1,bool *param_2,EnabledStateManager *param_3)

+

+{

+  return;

+}

+
```

## `wil::details::EnabledStateManager::RecordCachedUsageUnderLock`  (modified)

```diff
--- wil::details::EnabledStateManager::RecordCachedUsageUnderLock
+++ wil::details::unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockExclusive(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_ReleaseSRWLockExclusive(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>
@@ -1,2 +1,2 @@
-Failed to decompile rdpbase.dll - .ProgramDB wil::details::EnabledStateManager::RecordCachedUsageUnderLock : Error: Decompile error: 
+Failed to decompile rdpbase.dll - .ProgramDB wil::details::unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockExclusive(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_ReleaseSRWLockExclusive(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_> : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

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

```diff
--- wil::details::ReportUsageToService
+++ wil::details::ReportUsageToService
@@ -1,49 +1,106 @@
 

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

    guard_dispatch_icall */

+/* void __cdecl wil::details::ReportUsageToService(struct wil_details_FeatureReportingCache *

+   __ptr64,unsigned int,int,int,struct FEATURE_LOGGED_TRAITS const * __ptr64,int,enum

+   wil_ReportingKind,unsigned __int64) */

 

 void __cdecl

-`PipelineClock::GetInstance'::__l2::ReportUsageToService

+wil::details::ReportUsageToService

           (wil_details_FeatureReportingCache *param_1,uint param_2,int param_3,int param_4,

           FEATURE_LOGGED_TRAITS *param_5,int param_6,wil_ReportingKind param_7,__uint64 param_8)

 

 {

-  _XResult32 _Var1;

-  ulonglong uVar2;

-  uchar *puVar3;

-  longlong unaff_RBP;

-  int *unaff_RSI;

-  undefined8 *unaff_RDI;

-  undefined1 *puVar4;

-  byte in_CF;

-  undefined4 in_stack_0000003c;

+  FEATURE_LOGGED_TRAITS FVar1;

+  uint *puVar2;

+  code *pcVar3;

+  int iVar4;

+  wil_details_ServiceReportingKind wVar5;

+  wil_details_ServiceReportingKind wVar6;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  undefined8 local_48;

+  uint local_40 [6];

   

-  _Var1 = CSecurityFilter::QueryContextAttributesW

-                    ((CSecurityFilter *)param_1,(-(uint)in_CF & 6) + 0x80000080,&param_6);

-  if (_Var1 == 0) {

-    puVar3 = TSCompatShim::AllocateMemoryUsingMSVCRT(param_6);

-    *unaff_RDI = puVar3;

-    if (puVar3 != (uchar *)0x0) {

-      *unaff_RSI = param_6;

-      memcpy((void *)*unaff_RDI,(void *)CONCAT44(in_stack_0000003c,param_7),(ulonglong)(uint)param_6

-            );

+  if (param_7 != 0) {

+    switch(param_7) {

+    case 1:

+      wVar5 = 0;

+      if (param_6 == 0) {

+        wVar5 = 4;

+      }

+      break;

+    case 2:

+      wVar5 = 1;

+      if (param_6 == 0) {

+        wVar5 = 5;

+      }

+      break;

+    case 3:

+      wVar5 = 2;

+      if (param_6 == 0) {

+        wVar5 = 6;

+      }

+      break;

+    case 4:

+      wVar5 = 3;

+      if (param_6 == 0) {

+        wVar5 = 7;

+      }

+      break;

+    case 5:

+      wVar5 = 8;

+      if (param_6 == 0) {

+        wVar5 = 10;

+      }

+      break;

+    case 6:

+      wVar5 = 9;

+      if (param_6 == 0) {

+        wVar5 = 0xb;

+      }

+      break;

+    default:

+      if (((byte)param_7 < 100) || (0x95 < (byte)param_7)) {

+        wVar5 = 0xff;

+      }

+      else {

+        iVar4 = 100;

+        if (param_6 == 0) {

+          iVar4 = 0x96;

+        }

+        wVar5 = iVar4 + (param_7 - 100 & 0xff);

+      }

     }

-  }

-  else if ((((undefined8 **)WPP_GLOBAL_Control != &WPP_GLOBAL_Control) &&

-           ((*(byte *)((longlong)WPP_GLOBAL_Control + 0x44) & 0x20) != 0)) &&

-          (1 < *(byte *)((longlong)WPP_GLOBAL_Control + 0x41))) {

-    uVar2 = RdpX_GetActivityIdPrefix();

-    WPP_SF_Ddd(WPP_GLOBAL_Control[7],0x25,&WPP_bcf6cbb121023be29bda4ddf912d8228_Traceguids,

-               (int)uVar2);

-  }

-  if ((undefined1 *)CONCAT44(in_stack_0000003c,param_7) != (undefined1 *)0x0) {

-    puVar4 = (undefined1 *)CONCAT44(in_stack_0000003c,param_7);

-    for (uVar2 = (ulonglong)(uint)param_6; uVar2 != 0; uVar2 = uVar2 - 1) {

-      *puVar4 = 0;

-      puVar4 = puVar4 + 1;

+    FVar1 = param_5[4];

+    wVar6 = wVar5;

+    puVar2 = wil_details_FeatureReporting_RecordUsageInCache(local_40,(uint *)param_1,wVar5);

+    local_58 = *(undefined8 *)puVar2;

+    uStack_50 = *(undefined8 *)(puVar2 + 2);

+    local_48 = *(undefined8 *)(puVar2 + 4);

+    RecordFeatureUsageCallback

+              (param_2,wVar5,wVar6,param_1,(wil_details_RecordUsageResult *)&local_58);

+    if (param_3 != 0) {

+      wVar6 = wVar5 | 0x80000000;

+      if (param_4 == 0) {

+        wVar6 = wVar5;

+      }

+      pcVar3 = g_wil_details_internalRecordFeatureUsage;

+      if ((g_wil_details_internalRecordFeatureUsage != (code *)0x0) ||

+         (pcVar3 = g_wil_details_apiRecordFeatureUsage,

+         g_wil_details_apiRecordFeatureUsage != (code *)0x0)) {

+        (*pcVar3)(param_2,wVar6,0,0);

+      }

     }

-    (**(code **)(unaff_RBP + 0x98))(CONCAT44(in_stack_0000003c,param_7));

+    if ((int)local_48 == 0) {

+      if (g_wil_details_realtimeFeatureUsageHook != (code *)0x0) {

+        (*g_wil_details_realtimeFeatureUsageHook)(param_2,wVar5,FVar1);

+      }

+      if (g_wil_details_pfnFeatureLoggingHook != (code *)0x0) {

+        (*g_wil_details_pfnFeatureLoggingHook)(param_2,param_5,0,param_6,&param_7,0,0,1);

+      }

+    }

   }

   return;

 }
```

## `wil::details_abi::heap_buffer::push_back`  (modified)

```diff
--- wil::details_abi::heap_buffer::push_back
+++ wil::details_abi::heap_buffer::push_back
@@ -1,2 +1,55 @@
-Failed to decompile rdpbase.dll - .ProgramDB wil::details_abi::heap_buffer::push_back : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: bool __cdecl wil::details_abi::heap_buffer::push_back(void const * __ptr64,unsigned

+   __int64) __ptr64 */

+

+bool __thiscall

+wil::details_abi::heap_buffer::push_back(heap_buffer *this,void *param_1,__uint64 param_2)

+

+{

+  LPVOID lpMem;

+  DWORD dwErrCode;

+  void *pvVar1;

+  HANDLE hHeap;

+  ulonglong uVar2;

+  ulonglong uVar3;

+  __uint64 _Var4;

+  longlong lVar5;

+  

+  uVar2 = *(longlong *)(this + 0x10) - *(longlong *)this;

+  if (uVar2 <= (*(longlong *)(this + 8) - *(longlong *)this) + 0x10U) {

+    uVar3 = 0x10;

+    if (0x10 < uVar2 * 2) {

+      uVar3 = uVar2 * 2;

+    }

+    if (uVar2 < uVar3) {

+      dwErrCode = GetLastError();

+      _Var4 = (uVar3 & 0xffffffffffffffc0) + 0x40;

+      pvVar1 = details::ProcessHeapAlloc(0,_Var4);

+      if (pvVar1 == (void *)0x0) {

+        SetLastError(dwErrCode);

+        return false;

+      }

+      lVar5 = *(longlong *)(this + 8) - *(longlong *)this;

+      memcpy_s(pvVar1,_Var4,*(longlong *)this,lVar5);

+      lpMem = *(LPVOID *)(this + 0x18);

+      *(void **)(this + 0x18) = pvVar1;

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

+        hHeap = GetProcessHeap();

+        HeapFree(hHeap,0,lpMem);

+      }

+      *(void **)this = pvVar1;

+      *(longlong *)(this + 8) = lVar5 + (longlong)pvVar1;

+      *(__uint64 *)(this + 0x10) = (longlong)pvVar1 + _Var4;

+      SetLastError(dwErrCode);

+    }

+  }

+  uVar2 = *(ulonglong *)(this + 8);

+  lVar5 = 0;

+  if (uVar2 < *(ulonglong *)(this + 0x10)) {

+    lVar5 = *(longlong *)(this + 0x10) - uVar2;

+  }

+  memcpy_s(uVar2,lVar5,param_1,0x10);

+  *(longlong *)(this + 8) = *(longlong *)(this + 8) + 0x10;

+  return true;

+}

+
```

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

```diff
--- wil::details::WilApi_RecordFeatureUsageReports
+++ wil::details::EnabledStateManager::EnsureSubscribedToUsageFlush
@@ -1,19 +1,2 @@
-

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

-   guard_dispatch_icall */

-

-void __cdecl

-`PipelineClock::GetInstance'::__l2::WilApi_RecordFeatureUsageReports

-          (__WIL_RTL_FEATURE_USAGE_DATA *param_1,__uint64 param_2)

-

-{

-  uint *unaff_RBX;

-  longlong unaff_RBP;

-  

-  (**(code **)((ulonglong)*unaff_RBX + 0x20))();

-  if (*(longlong *)(unaff_RBP + -0x10) != 0) {

-    (**(code **)(*(longlong *)unaff_RBX + 0x20))();

-  }

-  return;

-}

-

+Failed to decompile rdpbase.dll - .ProgramDB wil::details::EnabledStateManager::EnsureSubscribedToUsageFlush : Error: Decompile error: 
+Marshaling error: Did not see expected closing element
```

## `wil::details_abi::heap_buffer::push_back`  (modified)

```diff
--- wil::details_abi::heap_buffer::push_back
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_TestLoc03>::GetCachedFeatureEnabledState
@@ -1,55 +1,57 @@
 

-/* public: bool __cdecl wil::details_abi::heap_buffer::push_back(void const * __ptr64,unsigned

-   __int64) __ptr64 */

+/* WARNING: Removing unreachable block (ram,0x00018015452d) */

+/* WARNING: Removing unreachable block (ram,0x000180154532) */

+/* private: union wil_details_FeatureStateCache __cdecl wil::details::FeatureImpl<struct

+   __WilFeatureTraits_Feature_TestLoc03>::GetCachedFeatureEnabledState(void) __ptr64 */

 

-bool __thiscall

-wil::details_abi::heap_buffer::push_back(heap_buffer *this,void *param_1,__uint64 param_2)

+void __thiscall

+wil::details::FeatureImpl<__WilFeatureTraits_Feature_TestLoc03>::GetCachedFeatureEnabledState

+          (FeatureImpl<__WilFeatureTraits_Feature_TestLoc03> *this)

 

 {

-  LPVOID lpMem;

-  DWORD dwErrCode;

-  void *pvVar1;

-  HANDLE hHeap;

-  ulonglong uVar2;

-  ulonglong uVar3;

-  __uint64 _Var4;

-  longlong lVar5;

+  uint uVar1;

+  uint uVar2;

+  uint uVar3;

+  uint *in_RDX;

+  uint uVar4;

+  bool bVar5;

+  uint local_res18 [2];

   

-  uVar2 = *(longlong *)(this + 0x10) - *(longlong *)this;

-  if (uVar2 <= (*(longlong *)(this + 8) - *(longlong *)this) + 0x10U) {

-    uVar3 = 0x10;

-    if (0x10 < uVar2 * 2) {

-      uVar3 = uVar2 * 2;

+  in_RDX[0] = 0;

+  uVar2 = Feature_TestLoc03__private_cppFeatureState;

+  in_RDX[1] = 0;

+  *in_RDX = Feature_TestLoc03__private_cppFeatureState;

+  if (((byte)uVar2 & 6) != 6) {

+    uVar1 = EnsureSubscribedToFeatureConfigurationChanges();

+    GetCurrentFeatureEnabledState(this,(int *)local_res18);

+    uVar2 = *in_RDX;

+    do {

+      uVar4 = uVar2;

+      uVar3 = uVar4 | 0x40000;

+      *in_RDX = uVar3;

+      if ((uVar4 & 4) == 0) {

+        uVar3 = uVar4 & 0xfffffbff | 0x40000 | local_res18[0] & 0x400 | 4;

+        *in_RDX = uVar3;

+      }

+      LOCK();

+      bVar5 = uVar4 != Feature_TestLoc03__private_cppFeatureState;

+      uVar2 = uVar4;

+      if (bVar5) {

+        uVar2 = Feature_TestLoc03__private_cppFeatureState;

+        uVar3 = Feature_TestLoc03__private_cppFeatureState;

+      }

+      Feature_TestLoc03__private_cppFeatureState = uVar3;

+      UNLOCK();

+    } while (bVar5);

+    if ((uVar4 & 4) == 0) {

+      SubscribeFeatureStateCacheToConfigurationChanges

+                ((wil_details_FeatureStateCache *)&Feature_TestLoc03__private_cppFeatureState,3,

+                 uVar1);

     }

-    if (uVar2 < uVar3) {

-      dwErrCode = GetLastError();

-      _Var4 = (uVar3 & 0xffffffffffffffc0) + 0x40;

-      pvVar1 = details::ProcessHeapAlloc(0,_Var4);

-      if (pvVar1 == (void *)0x0) {

-        SetLastError(dwErrCode);

-        return false;

-      }

-      lVar5 = *(longlong *)(this + 8) - *(longlong *)this;

-      memcpy_s(pvVar1,_Var4,*(longlong *)this,lVar5);

-      lpMem = *(LPVOID *)(this + 0x18);

-      *(void **)(this + 0x18) = pvVar1;

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

-        hHeap = GetProcessHeap();

-        HeapFree(hHeap,0,lpMem);

-      }

-      *(void **)this = pvVar1;

-      *(longlong *)(this + 8) = lVar5 + (longlong)pvVar1;

-      *(__uint64 *)(this + 0x10) = (longlong)pvVar1 + _Var4;

-      SetLastError(dwErrCode);

+    if ((*in_RDX & 2) == 0) {

+      *in_RDX = *in_RDX & 0xfffff63e | local_res18[0] & 0x9c1;

     }

   }

-  uVar2 = *(ulonglong *)(this + 8);

-  lVar5 = 0;

-  if (uVar2 < *(ulonglong *)(this + 0x10)) {

-    lVar5 = *(longlong *)(this + 0x10) - uVar2;

-  }

-  memcpy_s(uVar2,lVar5,param_1,0x10);

-  *(longlong *)(this + 8) = *(longlong *)(this + 8) + 0x10;

-  return true;

+  return;

 }
```

## `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
@@ -41,0 +42,8 @@
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_4188256568>::__private_IsEnabled
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_553358650>::__private_IsEnabled
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_AuthenticationPackageUtilizationTelemetry>::__private_IsEnabled
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_BugFixJsonHelperCannotBeUsedInMTA>::__private_IsEnabled
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::__private_IsEnabled
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_TestLoc02>::__private_IsEnabled
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_TestLoc03>::__private_IsEnabled
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_TestUex12>::__private_IsEnabled
```

## `API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::WaitForThreadpoolTimerCallbacks`  (modified)

```diff
--- API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::WaitForThreadpoolTimerCallbacks calling
+++ API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::WaitForThreadpoolTimerCallbacks calling
@@ -1,4 +1,3 @@
-wil::details::DestroyThreadPoolTimer<wil::details::SystemThreadPoolMethods,0>::Destroy
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
+wil::details::EnabledStateManager::ProcessShutdown
+wil::details::`dynamic_atexit_destructor_for_'g_enabledStateManager''
+wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset
```

## `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
@@ -155,6 +155 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
+wil::details::EnabledStateManager::ProcessShutdown
@@ -161,0 +157,2 @@
+wil::details::RecordFeatureUsageCallback
+wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset
@@ -163,0 +161 @@
+wil::details_abi::heap_buffer::push_back
```

## `API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::SetThreadpoolTimer`  (modified)

```diff
--- API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::SetThreadpoolTimer calling
+++ API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::SetThreadpoolTimer calling
@@ -7,5 +7,4 @@
-wil::details::DestroyThreadPoolTimer<wil::details::SystemThreadPoolMethods,0>::Destroy
-wil::details::EnsureCoalescedTimer<wil::details::EnabledStateManager>
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
+wil::details::EnabledStateManager::ProcessShutdown
+wil::details::RecordFeatureUsageCallback
+wil::details::`dynamic_atexit_destructor_for_'g_enabledStateManager''
+wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset
```

## `API-MS-WIN-CORE-HEAP-L1-1-0.DLL::GetProcessHeap`  (modified)

```diff
--- API-MS-WIN-CORE-HEAP-L1-1-0.DLL::GetProcessHeap calling
+++ API-MS-WIN-CORE-HEAP-L1-1-0.DLL::GetProcessHeap calling
@@ -1,6 +0,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
@@ -8,0 +3 @@
+wil::details::`dynamic_atexit_destructor_for_'g_enabledStateManager''
@@ -13,0 +9 @@
+wil::details_abi::heap_buffer::push_back
```

## `API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapFree`  (modified)

```diff
--- API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapFree calling
+++ API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapFree calling
@@ -1,6 +1 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
+wil::details::`dynamic_atexit_destructor_for_'g_enabledStateManager''
@@ -11,0 +7 @@
+wil::details_abi::heap_buffer::push_back
```

## `API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::CloseThreadpoolTimer`  (modified)

```diff
--- API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::CloseThreadpoolTimer calling
+++ API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::CloseThreadpoolTimer calling
@@ -3,3 +3,2 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
+wil::details::EnabledStateManager::ProcessShutdown
+wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset
```

## `API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::CreateThreadpoolTimer`  (modified)

```diff
--- API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::CreateThreadpoolTimer calling
+++ API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL::CreateThreadpoolTimer calling
@@ -4,4 +4 @@
-wil::details::EnsureCoalescedTimer<wil::details::EnabledStateManager>
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
+wil::details::RecordFeatureUsageCallback
```

## `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
@@ -0,0 +1,2 @@
+<lambda_0374aa0a5d1201b2358c6bce99369c58>::<lambda_invoker_cdecl>
+<lambda_aa194dc0bf891154933407eb98fb868a>::<lambda_invoker_cdecl>
@@ -19,2 +20,0 @@
-wil::details::EnabledStateManager::EnsureSubscribedToFeatureConfigurationChangesImpl
-wil::details::EnabledStateManager::EnsureSubscribedToUsageFlush
@@ -22 +21,0 @@
-wil::details::EnabledStateManager::OnTimer
@@ -24,4 +23,2 @@
-wil::details::EnabledStateManager::QueueBackgroundUsageReporting
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCurrentFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
+wil::details::EnsureSubscribedToFeatureConfigurationChanges
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_553358650>::GetCachedFeatureEnabledState
@@ -29,5 +26 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::GetCurrentFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCurrentFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
+wil::details::RecordFeatureUsageCallback
```

## `API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::ReleaseSRWLockExclusive`  (modified)

```diff
--- API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::ReleaseSRWLockExclusive calling
+++ API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::ReleaseSRWLockExclusive calling
@@ -0,0 +1 @@
+<lambda_0374aa0a5d1201b2358c6bce99369c58>::<lambda_invoker_cdecl>
@@ -17,3 +18,4 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCurrentFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
+wil::details::EnabledStateManager::OnStateChange
+wil::details::EnabledStateManager::ProcessShutdown
+wil::details::EnsureSubscribedToFeatureConfigurationChanges
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_553358650>::GetCachedFeatureEnabledState
@@ -21,6 +23,2 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::GetCurrentFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCurrentFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
-wil::details::unique_storage<wil::details::resource_policy<_RTL_SRWLOCK*___ptr64,void_(__cdecl*)(_RTL_SRWLOCK*___ptr64),&void___cdecl_ReleaseSRWLockExclusive(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_ReleaseSRWLockExclusive(struct__RTL_SRWLOCK*___ptr64),wistd::integral_constant<unsigned___int64,1>,_RTL_SRWLOCK*___ptr64,_RTL_SRWLOCK*___ptr64,0,std::nullptr_t>_>
+wil::details::RecordFeatureUsageCallback
+wil::details::SubscribeFeatureStateCacheToConfigurationChanges
```

## `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-ERRORHANDLING-L1-1-0.DLL::SetLastError calling
@@ -1,6 +1,4 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_FuzzedBoundaryChecks>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_IncreaseUdpTransportTimerInterval2>::ReportUsage
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_StrideChecks>::ReportUsage
+wil::details::EnabledStateManager::ProcessShutdown
+wil::details::RecordFeatureUsageCallback
+wil::details::unique_storage<wil::details::resource_policy<_TP_TIMER*___ptr64,void_(__cdecl*)(_TP_TIMER*___ptr64),&public:_static_void___cdecl_wil::details::DestroyThreadPoolTimer<struct_wil::details::SystemThreadPoolMethods,0>::Destroy(struct__TP_TIMER*___ptr64),wistd::integral_constant<unsigned___int64,0>,_TP_TIMER*___ptr64,_TP_TIMER*___ptr64,0,std::nullptr_t>_>::reset
+wil::details_abi::heap_buffer::push_back
```
