Function at 0x4051f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508b2e
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x19c], ecx
lea ecx, [ebp + 8]
call fcn.00406fb0
add eax, 0x1c
mov ecx, eax
call fcn.004020d0
mov dword [ebp - 0x38], eax
push 0x512910
lea ecx, [ebp + 8]
call fcn.00406fb0
push eax
call fcn.00407e00
add esp, 8
movzx eax, al
test eax, eax
je 0x405272
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp - 0x38]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x28], eax
jmp 0x4052ac
push 0x512924
lea ecx, [ebp + 8]
call fcn.00406fb0
push eax
call fcn.00407e00
add esp, 8
movzx eax, al
test eax, eax
je 0x4052ac
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp - 0x38]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4052ba
or eax, 0xffffffff
jmp 0x40556d
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4052ff
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40556d
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.0045acac
add esp, 4
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
jmp 0x405338
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x34]
jae 0x405549
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.00463f00
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4053b3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x194]
push eax
call fcn.004e0b6b
add esp, 4
or eax, 0xffffffff
jmp 0x40556d
lea ecx, [ebp - 0x18c]
call fcn.00406c60
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00408d10
lea edx, [ebp - 0x170]
push edx
push 0x512938
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0x154]
push edx
push 0x512944
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0x138]
push edx
push 0x512950
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0x11c]
push edx
push 0x512960
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0x100]
push edx
push 0x512970
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0xe4]
push edx
push 0x512980
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0xc8]
push edx
push 0x5128d2
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0xac]
push edx
push str.Path
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0x90]
push edx
push str.Setup_Path2
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004050a0
lea edx, [ebp - 0x74]
push edx
push 0x5129a4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405590
lea edx, [ebp - 0x58]
push edx
push 0x5129b4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405590
lea edx, [ebp - 0x18c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00407060
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.00406d70
jmp 0x40532f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
push ecx
call fcn.004e0b6b
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.00463ee8
mov esp, ebp
pop ebp
ret 0xc