ExpQueryNumaProcessorMap

NTSTATUS __stdcall ExpQueryNumaProcessorMap(
        PVOID SystemInformation,
        UINT64 SystemInformationLength,
        UINT64 *ReturnedLength){
  unsigned int v4; 
  UINT16 v6; 
  unsigned __int16 v7; 
  unsigned int v8; 
  unsigned int i; 

  v4 = SystemInformationLength;
  v6 = 0;
  if( (unsigned int)SystemInformationLength < 4 )
  {
    if( ReturnedLength )
      *(_DWORD *)ReturnedLength = 4;
    return -1073741820;
  }
  else
  {
    KeQueryHighestNodeNumber((INT64)SystemInformation, SystemInformationLength);
    *(_DWORD *)SystemInformation = v7;
    v8 = v7 + 1;
    if( (v4 - 8) >> 4 <= v8 )
      v8 = (v4 - 8) >> 4;
    if( v4 >= 8 && v8 )
    {
      *(_DWORD *)ReturnedLength = 16 * v8 + 8;
      for( i = 0; i < v8; v6 = i )
        KeQueryNodeActiveAffinity(v6, (PGROUP_AFFINITY)((char *)SystemInformation + 16 * i++ + 8), 0i64);
      return 0;
    }
    else
    {
      *(_DWORD *)ReturnedLength = 4;
      return 0;
    }
  }
}

Referenced by:

ExpQuerySystemInformation