PpmTryAcquireLock

UINT8 __stdcall PpmTryAcquireLock(){
  __int64 v0; 
  _ETHREAD *CurrentThread; 
  UINT8 v2; 
  NTSTATUS v3; 
  _ETHREAD *v4; 
  __int64 v6; 

  v6 = v0;
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --CurrentThread->Tcb.SpecialApcDisable;
  v2 = 0;
  v6 = 0i64;
  v3 = KeWaitForSingleObject((UINT64)&stru_140C23628 + 1056, 0, 0, 0, (INT64)&v6);
  v4 = (_ETHREAD *)KeGetCurrentThread();
  if( v3 )
  {
    KiLeaveGuardedRegionUnsafe((__int64)v4);
  }
  else
  {
    v2 = 1;
    *(&stru_140C23628 + 131) = v4;
  }
  return v2;
}

Referenced by:

PoLatencySensitivityHint