Function at 0x401840
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x530
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x338]
mov ebx, dword [esp + 0x548]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x234]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x544]
mov ecx, 0x41
lea edi, [esp + 0x130]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x440]
mov ebp, 0x104
push esi
rep stosd dword es:[edi], eax
push str.Performing_reglookup_at__s_looking_for_value__s_r_n
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ebp
call fcn.004017b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0xf003f
push 0
push esi
push 0x80000002
call edi
test eax, eax
je 0x40190c
push esi
push str.No_devices_found_under_the__s_key_r_n
call fcn.004017b0
mov eax, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x530
ret
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
xor esi, esi
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x348]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401b02
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0xf003f
push eax
lea eax, [esp + 0x344]
push eax
push ecx
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x401908
mov ecx, dword [esp + 0x18]
push eax
push eax
push eax
push eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x244]
push edx
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401af2
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
lea eax, [esp + 0x23c]
push 0
push eax
push ecx
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x401ac9
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x130]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push str.DeviceDesc
push edx
call edi
test eax, eax
jne 0x4019ea
lea eax, [esp + 0x130]
lea ecx, [esp + 0x2c]
push eax
push str.Found_Hardware:_Device___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x43c]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x401a31
lea eax, [esp + 0x2c]
push ebx
push eax
lea ecx, [esp + 0x34]
push str._s...Installation_in_progress_or_not_completed__Could_not_find__s_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [esp + 0x24], 1
jmp 0x401aa6
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x103
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c]
sub edx, ecx
push edx
push str.Class_
push eax
call fcn.00404572
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x103
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x13c]
sub edx, ecx
lea ecx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.00404572
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x103
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x44]
sub edx, ecx
push edx
push str.___Installed_r_n
push eax
call fcn.00404572
add esp, 0x24
lea ecx, [esp + 0x2c]
push ecx
call fcn.004017b0
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
inc esi
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x244]
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40197e
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401908
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x530
ret