Function at 0x42f770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push 2
xor esi, esi
xor eax, eax
push esi
mov dword [ecx], eax
push esi
mov dword [ecx + 4], eax
push 0x4aa84c
mov dword [ebp - 8], esi
mov dword [ecx + 8], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f7c6
lea edx, [ebp - 0x31c]
push edx
push ebx
mov dword [ebp - 0x31c], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
jne 0x42f7ce
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 4], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x42f971
push edi
lea ecx, [ecx]
mov edx, dword [ebp - 0x20]
push 0
push 0
push 0xc8
lea ecx, [ebp - 0x1fc]
push ecx
push edx
call dword [0x49b6f0]
test eax, eax
jne 0x42f8c1
push 0xc
lea eax, [ebp - 0x1fc]
push 0x4866d4
push eax
call fcn.00461fe2
add esp, 0xc
test eax, eax
jne 0x42f8c1
push 0x20019
push 1
push eax
push 1
lea ecx, [ebp - 0x34]
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f8b4
xor eax, eax
mov byte [ebp - 0x134], 0
mov ecx, 0x3f
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x14]
push edx
stosb byte es:[edi], al
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x4866cc
push esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f8ab
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x134]
push edx
push eax
call fcn.004619b0
add esp, 8
test eax, eax
jne 0x42f8ed
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f8c1
push str.GetLocationInformation:_SetupDiOpenDevRegKey_function_fails_n
call fcn.0040acd0
add esp, 4
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x34]
inc eax
push ecx
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x42f7f0
pop edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x15
lea edx, [ebp - 0x34]
push edx
push ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push 4
mov dword [edi], eax
xor eax, eax
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1c
lea ecx, [ebp - 0x34]
push ecx
push ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [ebp - 8]
mov edx, eax
shr edx, 0x10
and eax, 0xffff
push esi
mov dword [edi + 4], edx
mov dword [edi + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], 1
pop edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret