MiLargePfnPromoteCandidate
BOOL __fastcall MiLargePfnPromoteCandidate(INT64 a1, INT64 a2){
unsigned __int64 v3;
int v4;
__int64 v5;
BOOL result;
result = 0;
if( (*(_BYTE *)(a2 + 34) & 7u) <= 1 )
{
v3 = *(_QWORD *)(a2 + 40);
if( (v3 & 0x1000000000i64) != 0
&& *(_QWORD *)(qword_140C4E388 + 8 * ((v3 >> 39) & 0x3FF)) == a1
&& (*(_BYTE *)(a2 + 35) & 0x40) == 0
&& !MiIsPageOnBadList(a2)
&& v4 == 3 - (*(_BYTE *)(v5 + 39) & 3) )
{
return 1;
}
}
return result;
}Referenced by:
MiChangePageAttributeLargeFreeZeroPage
MiCoalesceFreeLargePages