Function at 0x4c1220
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564cfd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5d8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004092f0
test eax, eax
je 0x4c1644
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.004092f0
test eax, eax
je 0x4c1644
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebp + 0x1c]
test ecx, ecx
je 0x4c1297
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x14]
push dword [ebx + 0x68]
mov esi, dword [eax]
mov dword [ebx + 0x34], 0
mov byte [ebx + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push 0x8000000
push 1
push dword [ebp + 0x20]
push edi
push dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x4c12dd
mov ecx, ebx
call fcn.004c22b0
mov edi, eax
test edi, edi
je 0x4c12e9
jmp 0x4c12fe
push dword [ebx + 0x68]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebx + 4], 0
jne 0x4c1429
mov edi, dword [ebx + 0x2c]
test edi, edi
je 0x4c1429
cmp edi, 0x2eed
je 0x4c131a
cmp edi, 0x2eee
je 0x4c131a
cmp edi, 0x2eef
jne 0x4c15ee
call fcn.004092f0
test eax, eax
je 0x4c1644
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
call fcn.004092f0
test eax, eax
je 0x4c1644
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 6
mov eax, str.FTP_Server
lea ecx, [ebp + 0x1c]
test eax, 0xffff0000
jne 0x4c1370
movzx eax, ax
push eax
call fcn.00415190
jmp 0x4c137c
push 0xa
push str.FTP_Server
call fcn.00408e70
mov byte [ebp - 4], 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004c2ab0
test al, al
sete byte [ebp + 0x23]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp + 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c13c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c13e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x23], 0
jne 0x4c15ee
mov edi, dword [ebp - 0x14]
cmp dword [edi - 4], 1
jle 0x4c1403
push dword [edi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00408c70
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x20], eax
cmp dword [eax - 4], 1
jle 0x4c1297
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00408c70
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x20], eax
jmp 0x4c1297
mov eax, dword [ebx + 4]
mov dword [ebp + 0x1c], eax
mov dword [ebx + 8], eax
mov dword [ebp - 0x1c], 0x596f20
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
cmp byte [ebx + 0x40], 0
je 0x4c1463
mov eax, dword [ebp + 0x24]
cmp dword [eax], 0
jbe 0x4c1463
push eax
push dword [ebx + 8]
mov ecx, ebx
call fcn.004c2310
mov edi, eax
test edi, edi
jne 0x4c15c9
mov eax, dword [ebp + 0x18]
push dword [ebx + 0x68]
mov edi, dword [ebx + 8]
mov esi, dword [eax]
mov dword [ebx + 0x34], 2
mov byte [ebx + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push 0x80000002
push 0x80000000
push esi
push edi
call dword [sym.imp.WININET.dll_FtpOpenFileW]
test eax, eax
jne 0x4c14a5
mov ecx, ebx
call fcn.004c22b0
mov edi, eax
test edi, edi
je 0x4c14b1
jmp 0x4c14be
push dword [ebx + 0x68]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebx + 4], 0
jne 0x4c150d
mov edi, dword [ebx + 0x2c]
test edi, edi
je 0x4c150d
call fcn.004092f0
test eax, eax
je 0x4c1644
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x20]
push eax
call fcn.004c0930
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp + 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c15c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c15c9
mov esi, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 4]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x20], eax
mov dword [ebp - 0x2c], 0x596f18
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x2c], 0x596f7c
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 0xf
push 0
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
test eax, eax
je 0x4c1563
mov ecx, dword [ebp + 0x24]
cmp dword [ecx], eax
jb 0x4c1563
mov ebx, dword [ebp + 0x20]
mov edi, 0xe0000010
jmp 0x4c1572
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x28], ebx
xor edi, edi
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x2c], 0x596f7c
mov byte [ebp - 4], 0x11
test ebx, ebx
je 0x4c15ac
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0xffffffffffffffff
push dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call esi
push 0xffffffffffffffff
push dword [ebp + 0x10]
call esi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x2c], 0x596f18
test ebx, ebx
je 0x4c15c9
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp + 0x1c]
push 0
push esi
mov dword [ebp - 0x1c], 0x596f20
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c160f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4c162e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push 0x80004005
call fcn.00408fc0
int3