Function at 0x42f080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 2
xor esi, esi
xor eax, eax
push esi
mov dword [ecx], eax
push esi
mov dword [ecx + 4], eax
push 0x4953f4
mov dword [esp + 0x20], esi
mov dword [ecx + 8], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f0dd
lea edx, [esp + 0x208]
push edx
push ebx
mov dword [esp + 0x210], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
jne 0x42f0e6
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x24]
push eax
push esi
push ebx
mov dword [esp + 0x30], 0x1c
mov dword [esp + 0x18], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x42f29c
mov edx, dword [esp + 0x38]
push 0
push 0
push 0xc8
lea ecx, [esp + 0x14c]
push ecx
push edx
call dword [0x491150]
test eax, eax
jne 0x42f1d8
push 0xc
lea eax, [esp + 0x144]
push 0x47e12c
push eax
call fcn.0045f501
add esp, 0xc
test eax, eax
jne 0x42f1d8
push 0x20019
push 1
push eax
push 1
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f1cb
xor eax, eax
mov byte [esp + 0x40], 0
mov ecx, 0x3f
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x1c]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x47e124
push esi
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f1c2
mov eax, dword [ebp + 8]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.0045eef0
add esp, 8
test eax, eax
jne 0x42f208
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f1d8
push str.GetLocationInformation:_SetupDiOpenDevRegKey_function_fails_n
call fcn.0040aac0
add esp, 4
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
inc eax
push ecx
push eax
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x42f107
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x15
lea edx, [esp + 0x38]
push edx
push ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 4
mov dword [esp + 0x28], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 4
mov dword [edi], eax
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x1c
lea ecx, [esp + 0x38]
push ecx
push ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [esp + 0x10]
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 [esp + 0x10], 1
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret