KdpAllowDisable

INT64 __fastcall KdpAllowDisable(){
  unsigned int ActiveProcessorCount; 
  int v1; 
  _KPRCB **i; 
  ActiveProcessorCount = KeQueryActiveProcessorCountEx(0xFFFFu);
  v1 = 0;
  if( !ActiveProcessorCount )
    return 0i64;
  for( i = &KiProcessorBlock; !*((_BYTE *)*i + 328); ++i )
  {
    if( ++v1 >= ActiveProcessorCount )
      return 0i64;
  }
  return 3221225506i64;
}

Referenced by:

KdDisableDebuggerWithLock