MiQueryStateMatches

BOOL __fastcall MiQueryStateMatches(INT64 a1, INT64 a2, INT64 a3, INT64 a4, INT16 a5){
  int v5; 
  if( (_DWORD)a2 != *(_DWORD *)(a1 + 32) )
    return 0;
  v5 = 0;
  if( (_DWORD)a3 )
    v5 = a4 | MmProtectToValue[(unsigned int)a3];
  return v5 == *(_DWORD *)(a1 + 36) && a5 == *(_WORD *)(a1 + 20);
}

Referenced by:

MiQueryAddressState