MiStoreGraphicsProtectionInVad

INT8 __fastcall MiStoreGraphicsProtectionInVad(__int64 a1, unsigned int a2){
  INT8 result; 

  if( (a2 & 0x20000) != 0 )
  {
    *(_DWORD *)(a1 + 48) |= 0x2000000u;
    a2 &= ~0x20000u;
  }
  if( (a2 & 0x40000) != 0 )
  {
    *(_DWORD *)(a1 + 48) |= 0x4000000u;
    a2 &= ~0x40000u;
  }
  result = RtlFindMostSignificantBit((unsigned __int64)a2 >> 11);
  *(_DWORD *)(a1 + 48) ^= (*(_DWORD *)(a1 + 48) ^ (result << 27)) & 0x38000000;
  return result;
}

Referenced by:

MiReserveUserMemory