Function at 0x4027a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5236e8
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x56e188]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56e188]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlClassEB781AAF_9C70_4523_A5DF_642A87ECA567
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402824
mov edx, dword [esp + 0x18]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x44]
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40282b
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402a32
lea ecx, [esp + 0x30]
mov esi, 0x104
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], 1
call fcn.00403180
mov dword [esp + 0x488], 0
mov eax, dword [esp + 0x28]
add eax, 0xffffffff
mov dword [esp + 0x24], eax
js 0x402a0d
jmp 0x402869
mov esi, 0x104
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x288]
push ecx
push eax
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4029fc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x280]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4029fc
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.MatchingDeviceId
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4028f0
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x4029f6
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
cmp esi, eax
jbe 0x40290d
call fcn.004fd947
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
mov ebx, eax
cmp esi, eax
jbe 0x40292d
call fcn.004fd947
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, eax
jbe 0x40292d
call fcn.004fd947
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x6c]
push edx
push ebx
mov eax, esi
mov dword [esp + 0x70], esi
call fcn.00404550
add esp, 8
mov esi, eax
test edi, edi
je 0x40294f
cmp edi, ebp
je 0x402954
call fcn.004fd947
cmp esi, dword [esp + 0x2c]
jne 0x4029f1
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x48]
call fcn.00403110
lea eax, [esp + 0x48]
push eax
lea ebx, [esp + 0x34]
mov byte [esp + 0x48c], 1
call fcn.004032d0
xor ebx, ebx
mov byte [esp + 0x488], bl
cmp dword [esp + 0x60], 8
jb 0x40299e
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00408d8a
add esp, 4
xor edx, edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x70]
push ecx
mov word [esp + 0x54], dx
lea edx, [esp + 0x28]
push edx
push ebx
push str.InfPath
push eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x4029e4
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x4029f6
lea edx, [esp + 0x6c]
push edx
call fcn.00402a60
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
sub eax, 1
mov dword [esp + 0x24], eax
jns 0x402864
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x48c], 0xffffffff
call fcn.00403250
mov eax, 1
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.004fd1b4
add esp, 0x478
ret