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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
lea eax, [ebp - 0x340]
push eax
push 0x20019
push 0
push 0x4095a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x404473
xor eax, eax
jmp 0x4047d6
mov dword [ebp - 0x33c], 0
mov ecx, 1
test ecx, ecx
je 0x4047c1
mov dword [ebp - 4], 0x104
lea edx, [ebp - 0x124]
push edx
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x33c]
push edx
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4044f1
cmp dword [ebp - 0x118], 0x103
jne 0x4044dd
jmp 0x4047c1
mov ecx, dword [ebp - 0x340]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4047d6
mov edx, dword [ebp - 0x33c]
add edx, 1
mov dword [ebp - 0x33c], edx
push 0x4095c8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4095d0
lea eax, [ebp - 0x114]
push eax
call fcn.00405170
add esp, 0xc
test eax, eax
je 0x404529
jmp 0x40447d
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x40456b
mov ecx, dword [ebp - 0x340]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4047d6
mov dword [ebp - 8], 0
mov edx, 1
test edx, edx
je 0x4047ac
mov dword [ebp - 4], 0x104
lea eax, [ebp - 0x124]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4045ea
cmp dword [ebp - 0x118], 0x103
jne 0x4045cc
jmp 0x4047ac
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4047d6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x128]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x404626
jmp 0x404572
lea edx, [ebp - 0x11c]
push edx
push 0x20019
push 0
push 0x4095d8
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x40465a
jmp 0x404572
mov dword [ebp - 0x344], 1
mov dword [ebp - 0x44c], 0x104
lea ecx, [ebp - 0x44c]
push ecx
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x344]
push eax
push 0
push 0x4095ec
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x404787
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x4095f8
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404787
push 0x409600
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x409624
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x409628
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40962c
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x409630
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x340]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4047d6
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x118], eax
jmp 0x404572
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x118], eax
jmp 0x40447d
mov ecx, dword [ebp - 0x340]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x118], eax
xor eax, eax
mov esp, ebp
pop ebp
ret