MmPageEntireDriver

PVOID __stdcall MmPageEntireDriver(PVOID AddressWithinSection){
  INT64 v2; 
  __int64 v3; 
  __int64 v4; 
  void *v5; 
  MMPTE *PteAddress; 
  char *v7; 
  if( (unsigned int)MI_IS_PHYSICAL_ADDRESS(AddressWithinSection) )
    return 0i64;
  v3 = MiLookupDataTableEntry((unsigned __int64)AddressWithinSection, 1i64, v2);
  v4 = v3;
  if( !v3 )
    return 0i64;
  v5 = *(void **)(v3 + 48);
  if( (dword_140CFA174 & 1) == 0 && (unsigned int)MiGetSystemRegionType((UINT64)AddressWithinSection) != 1 )
  {
    KeFlushQueuedDpcs();
    PteAddress = MiGetPteAddress(v5);
    v7 = (char *)PteAddress + 8 * ((unsigned __int64)*(unsigned int *)(v4 + 64) >> 12);
    MiCancelPhase0Locking(v4);
    MiSetPagingOfDriver(v4, (unsigned __int64)PteAddress, (unsigned __int64)(v7 - 8));
  }
  return v5;
}

Referenced by:

No references.