WheapCreatePerProcessorInfo

INT64 __fastcall WheapCreatePerProcessorInfo(){
  ULONG_PTR v0; 
  char *PoolWithTag; 
  unsigned int v2; 
  char *v3; 
  __int64 v4; 
  v0 = (unsigned int)KeNumberProcessors_0;
  PoolWithTag = (char *)ExAllocatePoolWithTag(
                          NonPagedPoolNx,
                          24i64 * (unsigned int)KeNumberProcessors_0,
                          0x61656857ui64);
  v2 = 0;
  v3 = PoolWithTag;
  if( !PoolWithTag )
  {
    LODWORD(WheapStatus) = WheapStatus + 1;
    HIDWORD(WheapStatus) |= 0x10u;
    KeBugCheckEx(0x122u, 2ui64, v0, 0i64, 0i64);
  }
  memset((INT64)PoolWithTag, 0i64);
  if( (_DWORD)v0 )
  {
    do
    {
      KeGetPrcb(v2++);
      *(_QWORD *)(v4 + 33568) = v3;
      v3 += 24;
    }
    while( v2 < (unsigned int)v0 );
  }
  return 0i64;
}

Referenced by:

WheaInitialize