MiGetPrivatePageCount
VOID __fastcall MiGetPrivatePageCount(_MI_PARTITION *Partition){
unsigned __int64 v2;
_BYTE *v3;
_QWORD *v4;
__int64 v5;
unsigned __int64 v6;
unsigned __int64 v7;
bool v8;
_KLOCK_QUEUE_HANDLE LockHandle;
v2 = 0i64;
memset(&LockHandle, 0, sizeof(LockHandle));
KeAcquireInStackQueuedSpinLock((PKSPIN_LOCK)&stru_140C4DB30 + 522, &LockHandle);
v3 = Partition->gap1AC8;
v4 = *(_QWORD **)v3;
while( v4 != (_QWORD *)v3 )
{
v5 = v4[13];
v6 = v2;
v4 = (_QWORD *)*v4;
v7 = v2 + v5;
v8 = v7 <= v2;
v2 = v7;
if( v8 )
v2 = v6;
}
KeReleaseInStackQueuedSpinLockFromDpcLevel(&LockHandle);
__writecr8(LockHandle.OldIrql);
}Referenced by:
MiAllocateCrcList