MiSufficientAvailablePages

INT64 __fastcall MiSufficientAvailablePages(INT64 a1, UINT64 a2){
  UINT64 v2; 
  __int64 v5; 
  unsigned __int16 **i; 
  unsigned __int16 *v7; 
  unsigned int v8; 
  v2 = *(_QWORD *)(a1 + 7104);
  if( v2 < a2 )
  {
    v5 = 0i64;
    for( i = (unsigned __int16 **)(a1 + 4200); ; ++i )
    {
      v7 = *i;
      v8 = 0;
      if( dword_140C4DC3C )
        break;
LABEL_7:
      if( ++v5 > 1 )
        return 0i64;
    }
    while( 1 )
    {
      v2 += *v7;
      if( v2 >= a2 )
        break;
      ++v8;
      v7 += 8;
      if( v8 >= dword_140C4DC3C )
        goto LABEL_7;
    }
  }
  return 1i64;
}

Referenced by:

CcCanIWriteStreamEx
MiAllocateAccessLog
MiComputeZeroClusterMaximum
MiFillNoReservationCluster
MiFindContiguousPages
MiFindLargePageMemory
MiGetPageTablePages
MiGetPoolPages
MiNoPagesLastChance
MiPickClusterForMappedFileFault
MiPrefetchVirtualMemory
MiResolvePageFileFault
MiRetryNonPagedAllocation
MiScanPagefiles
MiStoreSetEvictPageFile
MiStoreWriteModifiedPages
MiWaitForFreePage
MmAccessFault
MmEnoughMemoryForWrite