MmPageEntireDriver

VOID *__stdcall MmPageEntireDriver(VOID *AddressWithinSection){
  _LIST_ENTRY *v2; 
  _KLDR_DATA_TABLE_ENTRY *v3; 
  _LIST_ENTRY *Flink; 
  _MMPTE *PteAddress; 
  _MMPTE *v6; 

  if( MI_IS_PHYSICAL_ADDRESS(AddressWithinSection) )
    return 0i64;
  v2 = MiLookupDataTableEntry(AddressWithinSection, 1ui64);
  v3 = (_KLDR_DATA_TABLE_ENTRY *)v2;
  if( !v2 )
    return 0i64;
  Flink = v2[3].Flink;
  if( (dword_140CFA174 & 1) == 0 && MiGetSystemRegionType((UINT64)AddressWithinSection) != 1 )
  {
    KeFlushQueuedDpcs();
    PteAddress = MiGetPteAddress(Flink);
    v6 = &PteAddress[(unsigned __int64)v3->SizeOfImage >> 12];
    MiCancelPhase0Locking(v3);
    MiSetPagingOfDriver(v3, PteAddress, v6 - 1);
  }
  return Flink;
}

Referenced by:

No references.