MiNumberWsSwapPagefiles

UINT64 __stdcall MiNumberWsSwapPagefiles(_MI_PARTITION *Partition){
  unsigned int v1; 
  unsigned int v2; 
  __int64 *v3; 
  __int64 v4; 
  __int64 v5; 
  unsigned int v6; 
  v1 = *((_DWORD *)Partition + 1734);
  v2 = 0;
  if( v1 )
  {
    v3 = (__int64 *)((char *)Partition + 6944);
    v4 = v1;
    do
    {
      v5 = *v3;
      v6 = v2 + 1;
      ++v3;
      if( (*(_BYTE *)(v5 + 204) & 0x10) == 0 )
        v6 = v2;
      v2 = v6;
      --v4;
    }
    while( v4 );
  }
  return v2;
}

Referenced by:

MiCheckTrimUnusedPageFileRegions
MiContractWsSwapPageFile
MiInsertPageFileInList