DefaultQueryInformation

NTSTATUS __stdcall DefaultQueryInformation(HAL_QUERY_INFORMATION_CLASS InformationType, PVOID Buffer){
  __int64 v2; 
  unsigned int *v3; 
  __int32 v4; 
  __int32 v5; 
  bool ProfileAvailability; 
  NTSTATUS v7; 
  _DWORD *v8; 
  v4 = InformationType - 1;
  if( !v4 )
  {
    if( (unsigned int)Buffer < 0x18 )
      goto LABEL_8;
    v7 = 0;
    if( !*(_DWORD *)v2 )
    {
      *(_BYTE *)(v2 + 4) = 1;
      *(_DWORD *)(v2 + 8) = dword_140C05478;
      *(_QWORD *)(v2 + 16) = off_140C05528;
      *v3 = 24;
      return v7;
    }
LABEL_10:
    *v3 = 0;
    return -1073741637;
  }
  v5 = v4 - 19;
  if( !v5 )
    return HalpQueryProfileSourceList(
             &DefaultProfileSourceDescriptorListHead,
             (__int64)DefaultProfileIntervalLimits,
             1,
             (unsigned int)Buffer,
             v2,
             v3);
  if( v5 != 24 )
    goto LABEL_10;
  if( (unsigned int)Buffer < 4 )
  {
LABEL_8:
    *v3 = 0;
    return -1073741820;
  }
  *v3 = 4;
  ProfileAvailability = HalpTimerQueryProfileAvailability();
  v7 = 0;
  *v8 = ProfileAvailability;
  return v7;
}

Referenced by:

No references.