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

Disassembly:
push 0xffffffffffffffff
push 0x4231cb
mov eax, dword fs:[0]
push eax
sub esp, 0x540
mov eax, dword [0x42ea58]
xor eax, esp
mov dword [esp + 0x53c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42ea58]
xor eax, esp
push eax
lea eax, [esp + 0x554]
mov dword fs:[0], eax
mov esi, dword [esp + 0x564]
mov ebp, dword [esp + 0x568]
push str.CStubApp::EnumerateRegistryTree
lea ecx, [esp + 0x38]
call fcn.00401120
xor ebx, ebx
push 0x103
lea eax, [esp + 0x41]
push ebx
push eax
mov dword [esp + 0x568], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x48], bl
call fcn.00410d80
push ebp
push esi
lea ecx, [esp + 0x48]
push str.Performing_reglookup_at__s_looking_for_value__s_r_n
mov edi, 0x104
push ecx
mov dword [esp + 0x30], edi
call fcn.00401410
add esp, 0x1c
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40428a
push esi
lea eax, [esp + 0x38]
push str.No_devices_found_under_the__s_key_r_n
push eax
call fcn.00401410
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x55c], 0xffffffff
call fcn.004012d0
xor eax, eax
jmp 0x404504
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x258]
push edx
push ebx
push eax
call esi
test eax, eax
jne 0x4044e1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x250]
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4044a6
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x154]
push edx
push ebx
push eax
call esi
test eax, eax
jne 0x4044a6
lea esp, [esp]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x14c]
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404481
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34c]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
push str.DeviceDesc
push ecx
call esi
test eax, eax
jne 0x40436e
lea edx, [esp + 0x348]
push edx
lea eax, [esp + 0x40]
push str.Found_Hardware:_Device___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x450]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
push ebp
push ecx
mov dword [esp + 0x2c], edi
call esi
test eax, eax
lea eax, [esp + 0x3c]
je 0x4043b5
push ebp
mov edx, eax
push edx
push str._s...Installation_in_progress_or_not_completed__Could_not_find__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [esp + 0x2c], 1
jmp 0x404455
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4043b8
mov ecx, dword [str.Class_]
mov edx, dword [0x425fd8]
mov dword [eax], ecx
mov cl, byte [0x425fdc]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
lea eax, [esp + 0x348]
mov edx, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4043e5
lea edi, [esp + 0x3c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x4043f7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x3c]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x404418
mov edx, dword [str.___Installed_r_n]
mov ecx, dword [0x425fc8]
mov dword [eax], edx
mov edx, dword [0x425fcc]
mov dword [eax + 4], ecx
mov cx, word [0x425fd0]
mov dword [eax + 8], edx
mov dl, byte [0x425fd2]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
mov edi, 0x104
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00401410
mov edx, dword [esp + 0x2c]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x18], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x154]
push ecx
push edx
push eax
call esi
test eax, eax
je 0x404300
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x258]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], eax
call esi
test eax, eax
je 0x4042b1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x34]
mov dword [esp + 0x55c], 0xffffffff
call fcn.004012d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x554]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x53c]
xor ecx, esp
call fcn.00410afa
add esp, 0x54c
ret