MiComputeFlushRange

__int64 __fastcall MiComputeFlushRange(_QWORD *a1, unsigned __int64 *a2, __int64 a3, int a4, __int64 a5){
  __int64 v8; 
  __int64 v9; 
  char v11[24]; 
  v11[0] = 0;
  v8 = MiLockSectionControlArea(a1, 1, (KIRQL *)v11);
  v9 = v8;
  if( v8 )
  {
    if( (!a4 || (unsigned int)MiDoesControlAreaHaveUserWritableReferences(v8))
      && (*(_DWORD *)(v9 + 56) & 3) == 0
      && *(_QWORD *)(v9 + 32) )
    {
      return MiComputeDataFlushRange(v9, v11[0], a2, a3, 0, a5);
    }
    ExReleaseSpinLockExclusiveFromDpcLevel((INT64 *)(v9 + 72));
    __writecr8((unsigned __int8)v11[0]);
  }
  return 0i64;
}

Referenced by:

MmFlushSection
MmTrimSection