Function at 0x10008770
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14c
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x148], eax
push esi
push edi
xor edi, edi
push 0x1002a7cf
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
call fcn.100077e0
push 6
push edi
push edi
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100087f8
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100087df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.1001530a
add esp, 0x14c
ret
push ebx
lea ecx, [esp + 0x34]
push ecx
push edi
push esi
mov dword [esp + 0x40], 0x1c
xor ebx, ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10008992
push ebp
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
nop
push edi
push 0x100
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x44]
push eax
push esi
call ebp
lea ecx, [esp + 0x54]
push str.HDAUDIO
push ecx
call fcn.10014ea7
add esp, 8
test eax, eax
jne 0x10008863
lea edx, [esp + 0x54]
push str.INTELAUDIO
push edx
call fcn.10014ea7
add esp, 8
test eax, eax
je 0x10008979
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 9
lea edx, [esp + 0x44]
push edx
push esi
call fcn.100020e0
add esp, 0x14
test eax, eax
je 0x10008973
push 0x27
push str.SYSTEMCurrentControlSetControlClass_
lea ecx, [esp + 0x18]
call fcn.100062b0
mov eax, dword [esp + 0x20]
push 0x1002aa8c
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.10006720
add esp, 0xc
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.10006720
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.10006840
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100088e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008909
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push edi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008973
mov eax, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push str.HP_Models
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10008968
cmp dword [esp + 0x18], 7
jne 0x10008968
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], edi
jne 0x10008991
lea edx, [esp + 0x38]
push edx
add ebx, 1
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10008820
pop ebp
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebx
jg 0x100089ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.1001530a
add esp, 0x14c
ret