WheapCheckForClzeroSupport

INT64 __stdcall WheapCheckForClzeroSupport(){
  INT64 result; 
  __int64 v1; 
  result = (INT64)KeGetCurrentPrcb();
  if( *(_BYTE *)(result + 141) == 1 )
  {
    result = (unsigned int)EAX(__cpuid(0x80000000, 0));
    if( (unsigned int)result >= 0x80000008 )
    {
      v1 = __cpuid(-2147483640, 0);
      result = (unsigned int)EAX(v1);
      if( (EBX(v1) & 1) != 0 )
        WheapClearPoisonSupported = 1;
    }
  }
  return result;
}

Referenced by:

WheaInitialize