MmRaisePoolQuota

UINT8 __stdcall MmRaisePoolQuota(INT64 ResourceType, UINT64 OldQuotaLimit, UINT64 RaiseAmount, UINT64 *NewQuotaLimit){
  unsigned __int64 v4; 
  _QWORD *v5; 
  unsigned __int64 v6; 
  __int64 v7; 
  unsigned __int64 v8; 
  UINT8 result; 
  unsigned __int64 v10; 
  unsigned __int64 v11; 
  if( (_DWORD)ResourceType == 1 )
  {
    v10 = MiFreePoolPagesLeft(6i64);
    v11 = v6;
    if( v6 < 0x100000 )
      v11 = 0x100000i64;
    if( v10 > v11 >> 12 && v6 + qword_140C4C698 >= qword_140C4C698 )
    {
      qword_140C4C698 += v6;
      goto LABEL_7;
    }
  }
  else
  {
    v4 = MiFreePoolPagesLeft(5i64);
    v8 = v6;
    if( v6 < 0x100000 )
      v8 = 0x100000i64;
    if( v4 > v8 >> 12 && v6 + qword_140C4C6A0 >= qword_140C4C6A0 )
    {
      qword_140C4C6A0 += v6;
LABEL_7:
      result = 1;
      *v5 = v7 + v6;
      return result;
    }
  }
  return 0;
}

Referenced by:

No references.