PpmAllocatePerfCheck

NTSTATUS __stdcall PpmAllocatePerfCheck(_KPRCB *Prcb){
  NTSTATUS v1; 
  VOID **PoolWithTag; 
  _ETHREAD *v4; 

  v1 = 0;
  if( !Prcb->NextThread )
  {
    PoolWithTag = ExAllocatePoolWithTag(0x200ui64, 0x158ui64, 1884115024i64);
    v4 = (_ETHREAD *)PoolWithTag;
    if( PoolWithTag )
    {
      memset(PoolWithTag, 0i64, 0x158u);
      Prcb->NextThread = v4;
    }
    else
    {
      return -1073741670;
    }
  }
  return v1;
}

Referenced by:

PpmCheckInitProcessors
PpmRegisterPerfStates