MiFreeExcessSegments

UINT64 __stdcall MiFreeExcessSegments(UINT64 TakeAction){
  UINT64 result; 
  VOID **i; 
  result = 9 * (qword_140C52868 / 0xAui64);
  if( qword_140C527E8 >= result )
  {
    LODWORD(result) = MiShouldTrimUnusedSegments();
    if( (_DWORD)result )
    {
      result = (UINT64)PsGetNextPartition(0i64);
      for( i = (VOID **)result; result; i = (VOID **)result )
      {
        if( *((_QWORD *)*i + 212) )
          KeSetEvent((PRKEVENT)((char *)*i + 1400), 0);
        result = (UINT64)PsGetNextPartition(i);
      }
    }
  }
  return result;
}

Referenced by:

MiChargeCommit
MiCheckControlArea
MiCountSystemPool
MmResourcesAvailable