MiLargePfnPromoteCandidate

BOOL __stdcall MiLargePfnPromoteCandidate(INT64 a1, INT64 a2){
  unsigned __int64 v3; 
  int v4; 
  int v5; 
  __int64 v6; 
  BOOL result; 

  result = 0;
  if( (*(_BYTE *)(a2 + 34) & 7u) <= 1 )
  {
    v3 = *(_QWORD *)(a2 + 40);
    if( (v3 & 0x1000000000i64) != 0
      && *(_QWORD *)(*(&stru_140C4DB30 + 267) + 8 * ((v3 >> 39) & 0x3FF)) == a1
      && (*(_BYTE *)(a2 + 35) & 0x40) == 0 )
    {
      LOBYTE(v4) = MiIsPageOnBadList(a2);
      if( !v4 && v5 == 3 - (*(_BYTE *)(v6 + 39) & 3) )
        return 1;
    }
  }
  return result;
}

Referenced by:

MiChangePageAttributeLargeFreeZeroPage
MiCoalesceFreeLargePages