Function at 0x4224c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483402
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
call fcn.0046ab70
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2d], 0
call fcn.00430390
movzx eax, al
test eax, eax
jne 0x422507
mov al, byte [ebp - 0x2d]
jmp 0x422707
call fcn.004303c0
movzx ecx, al
test ecx, ecx
je 0x42251b
mov al, byte [ebp - 0x2d]
jmp 0x422707
push 4
push 0
push 0x48ec70
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x42253d
mov al, byte [ebp - 0x2d]
jmp 0x422707
lea ecx, [ebp - 0x34]
call fcn.0040e380
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0x1c
mov dword [ebp - 0x3c], 0
jmp 0x422565
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4226d9
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
setne al
mov byte [ebp - 0x2d], al
cmp dword [ebp - 0x44], 0
je 0x422649
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004553bf
add esp, 4
mov dword [ebp - 0x1060], eax
mov edx, dword [ebp - 0x1060]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
je 0x422649
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x422631
mov ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040e530
mov ecx, dword [ebp + 8]
call fcn.0040e550
push eax
lea ecx, [ebp - 0x34]
call fcn.0040dbe0
test eax, eax
je 0x422631
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x1064], edx
mov eax, dword [ebp - 0x1064]
push eax
call fcn.004553b4
add esp, 4
cmp dword [ebp - 0x40], 0
jne 0x422654
jmp 0x42255c
push 0xf003f
push 1
push 0
push 1
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
je 0x4226ca
mov dword [ebp - 0x58], 0x1000
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x105c]
push ecx
push 0
push 0
push 0x48ec7c
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4226c0
cmp dword [ebp - 0x58], 0x1000
ja 0x4226c0
lea eax, [ebp - 0x105c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 0x2d], 1
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x4226d4
jmp 0x4226d9
jmp 0x42255c
cmp dword [ebp - 0x38], 0
je 0x4226e9
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov cl, byte [ebp - 0x2d]
mov byte [ebp - 0x1065], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040e4c0
mov al, byte [ebp - 0x1065]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret