Function at 0x405950
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5096ee
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x5655bc]
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.004077e0
add eax, 0x1c
mov ecx, eax
call fcn.00403b40
mov dword [ebp - 0x38], eax
push 0x513920
lea ecx, [ebp + 8]
call fcn.004077e0
push eax
call fcn.00408550
add esp, 8
movzx eax, al
test eax, eax
je 0x4059d2
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 0x405a0c
push 0x513934
lea ecx, [ebp + 8]
call fcn.004077e0
push eax
call fcn.00408550
add esp, 8
movzx eax, al
test eax, eax
je 0x405a0c
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 0x405a1a
or eax, 0xffffffff
jmp 0x405ccd
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 0x405a5f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x405ccd
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.0045a611
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 0x405a98
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x34]
jae 0x405ca9
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.00463a20
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 0x405b13
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.0045a60c
add esp, 4
or eax, 0xffffffff
jmp 0x405ccd
lea ecx, [ebp - 0x18c]
call fcn.00407360
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00409460
lea edx, [ebp - 0x170]
push edx
push 0x513948
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405800
lea edx, [ebp - 0x154]
push edx
push 0x513954
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405800
lea edx, [ebp - 0x138]
push edx
push 0x513960
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405800
lea edx, [ebp - 0x11c]
push edx
push 0x513970
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405800
lea edx, [ebp - 0x100]
push edx
push 0x513980
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405800
lea edx, [ebp - 0xe4]
push edx
push 0x513990
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405800
lea edx, [ebp - 0xc8]
push edx
push 0x5138e2
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405800
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.00405800
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.00405800
lea edx, [ebp - 0x74]
push edx
push 0x5139b4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405cf0
lea edx, [ebp - 0x58]
push edx
push 0x5139c4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x19c]
call fcn.00405cf0
lea edx, [ebp - 0x18c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00407770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.00407470
jmp 0x405a8f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
push ecx
call fcn.0045a60c
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.00463a0b
mov esp, ebp
pop ebp
ret 0xc