MiGetPartitionLargePageListCount

NTSTATUS __stdcall MiGetPartitionLargePageListCount(){
  NTSTATUS v0; 
  int *v1; 
  __int64 v2; 
  int v3; 

  v0 = *(&stru_140C4DB30 + 508);
  if( !*(&stru_140C4DB30 + 508) )
  {
    v1 = (int *)((char *)&stru_140C4DB30 + 400);
    v2 = (unsigned int)(*(&stru_140C4DB30 + 508) + 3);
    do
    {
      v3 = *v1++;
      v0 += v3 << 6;
      --v2;
    }
    while( v2 );
    v0 *= (unsigned __int16)KeNumberNodes;
    *(&stru_140C4DB30 + 508) = v0;
  }
  return v0;
}

Referenced by:

MiCreatePfnDatabase