MiStoreGraphicsProtectionInVad

INT8 __fastcall MiStoreGraphicsProtectionInVad(INT64 a1, UINT64 a2){
  INT8 result; 
  if( (a2 & 0x20000) != 0 )
  {
    *(_DWORD *)(a1 + 48) |= 0x2000000u;
    LODWORD(a2) = a2 & 0xFFFDFFFF;
  }
  if( (a2 & 0x40000) != 0 )
  {
    *(_DWORD *)(a1 + 48) |= 0x4000000u;
    LODWORD(a2) = a2 & 0xFFFBFFFF;
  }
  result = RtlFindMostSignificantBit((unsigned __int64)(unsigned int)a2 >> 11);
  *(_DWORD *)(a1 + 48) ^= (*(_DWORD *)(a1 + 48) ^ (result << 27)) & 0x38000000;
  return result;
}

Referenced by:

MiReserveUserMemory