HvipApertureDetectParameters

VOID __stdcall HvipApertureDetectParameters(){
  __int32 v0; 
  __int32 v1; 
  __int64 v2; 
  bool v3; 
  char v4; 
  char v5; 
  __int128 v6; 
  _HV_X64_HYPERVISOR_FEATURES HvFeaturesOut; 
  INT64 v8[2]; 

  v2 = __cpuid(0, 0);
  v1 = ECX(v2);
  v0 = EDX(v2);
  v3 = 0;
  *(_OWORD *)v8 = 0i64;
  if( EBX(v2) != 1970169159 || v0 != 1231384169 || (v4 = 1, v1 != 1818588270) )
    v4 = 0;
  v6 = 0i64;
  HvFeaturesOut = 0i64;
  HviGetHypervisorFeatures(&HvFeaturesOut);
  if( (HvFeaturesOut.PartitionPrivileges.AsUINT64 & 0x100000000000i64) != 0 && HviIsHypervisorVendorMicrosoft() )
    BYTE8(v6) = ECX(__cpuid(1073741831, 0));
  if( (BYTE8(v6) & 1) != 0 )
  {
    v5 = 0;
    HviGetHardwareFeatures((INT64)v8);
    v3 = (v8[0] & 0x8000) != 0;
  }
  else
  {
    v5 = 1;
  }
  byte_140CF9D4C = v4;
  byte_140C12B42 = v5;
  byte_140CF9D4E = v3;
  byte_140CF9D4D = 1;
}

Referenced by:

HviEnterKernelAperture