MiCheckTrimUnusedPageFileRegions

VOID __stdcall MiCheckTrimUnusedPageFileRegions(_MI_PARTITION *Partition){
  __int64 v1; 
  UINT64 UnbiasedInterruptTime; 
  __int64 v3; 
  _QWORD *v4; 
  int v5[10]; 

  if( MiNumberWsSwapPagefiles(Partition) )
  {
    if( !*(_QWORD *)(v1 + 1072) )
    {
      _InterlockedOr(v5, 0);
      UnbiasedInterruptTime = KiQueryUnbiasedInterruptTime(1u);
      if( UnbiasedInterruptTime - *(_QWORD *)(v3 + 1080) >= 0x861C46800i64 )
      {
        if( *(&stru_140C4DB30 + 2257) )
        {
          *(_QWORD *)(v3 + 1080) = UnbiasedInterruptTime - 33000000000i64;
        }
        else if( PsReferencePartitionSafe(*(_QWORD *)(v3 + 176)) )
        {
          v4[131] = 0i64;
          v4[133] = MiTrimUnusedPageFileRegionsWorker;
          v4[134] = v4;
          ExQueueWorkItemToPartition(v4 + 131);
        }
      }
    }
  }
}

Referenced by:

MiWorkingSetManager