MiHashIsCommon

BOOL __fastcall MiHashIsCommon(INT64 a1, INT64 a2, VOID *a3){
  _QWORD *v3; 
  unsigned int v5; 
  __int64 v6; 
  v3 = *(_QWORD **)(a1 + 40);
  v5 = *(_DWORD *)(a1 + 56);
  v6 = 0i64;
  if( !v5 )
    return 0;
  while( a2 != *v3 )
  {
    v6 = (unsigned int)(v6 + 1);
    ++v3;
    if( (unsigned int)v6 >= v5 )
      return 0;
  }
  return !a3 || RtlCompareMemoryUlong(a3, 0x1000ui64, *(_DWORD *)(*(_QWORD *)(a1 + 48) + 4 * v6)) == 4096;
}

Referenced by:

MiCapturePfnVm
MiPerformCombineScan
MiSharePages