IoUpdateDumpPhysicalRanges

VOID __stdcall IoUpdateDumpPhysicalRanges(){
  _BYTE *v0; 
  INT64 v1; 
  INT64 v2; 
  _ETHREAD *CurrentThread; 
  __int64 v4; 

  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --CurrentThread->Tcb.KernelApcDisable;
  if( qword_140C50968 )
  {
    LOBYTE(v0) = 1;
    if( byte_140C50958 == 1 )
    {
      if( ExAcquireResourceExclusiveLite((UINT64)&stru_140C452E0 + 6976, 1, v2) )
      {
        IopGetPhysicalMemoryBlock();
        if( v4 )
          ((void(__fastcall *)(__int64))qword_140C509E0)(v4);
        ExReleaseResourceLite((PERESOURCE)((char *)&stru_140C452E0 + 6976));
      }
    }
  }
  if( OfflineDumpEnabled )
    IopConstructInMemoryDumpHeader(v1, v0);
  KeLeaveCriticalRegionThread(&CurrentThread->Tcb);
}

Referenced by:

MiAddPhysicalMemory
MiRemovePhysicalMemory