Function at 0x4c3b80
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f748
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c3f32
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c3f3c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x14]
mov ebx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4c3bf7
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x14]
push dword [esi + 0x68]
mov edi, dword [eax]
mov dword [esi + 0x34], 0
mov byte [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0x8000000
push 1
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x4c3c3d
mov ecx, esi
call fcn.004c4a50
mov edi, eax
test edi, edi
je 0x4c3c49
jmp 0x4c3c56
push dword [esi + 0x68]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 4], 0
jne 0x4c3d85
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x4c3d85
cmp edi, 0x2eed
je 0x4c3c7a
cmp edi, 0x2eee
je 0x4c3c7a
cmp edi, 0x2eef
jne 0x4c3edc
call fcn.00411fd0
test eax, eax
je 0x4c3f32
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 4
mov eax, str.FTP_Server
lea ecx, [ebp + 0x1c]
test eax, 0xffff0000
jne 0x4c3cb2
movzx eax, ax
push eax
call fcn.00412350
jmp 0x4c3cbe
push 0xa
push str.FTP_Server
call fcn.004126c0
mov byte [ebp - 4], 5
call fcn.00411fd0
test eax, eax
je 0x4c3f32
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.004c54a0
test al, al
sete bl
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c3d21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c3d40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x4c3edc
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 4], 1
jle 0x4c3d5f
push dword [ebx - 0xc]
lea ecx, [ebp - 0x14]
call fcn.004124b0
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x20], eax
cmp dword [eax - 4], 1
jle 0x4c3bf7
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004124b0
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x20], eax
jmp 0x4c3bf7
mov ebx, dword [esi + 4]
mov dword [ebp + 0x1c], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 0x1c], 0x58f2e0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0xe
cmp byte [esi + 0x40], 0
je 0x4c3dbf
mov eax, dword [ebp + 0x24]
cmp dword [eax], 0
jbe 0x4c3dbf
push eax
push dword [esi + 8]
mov ecx, esi
call fcn.004c4ab0
mov edi, eax
test edi, edi
jne 0x4c3eba
mov eax, dword [ebp + 0x18]
push dword [esi + 0x68]
mov ebx, dword [esi + 8]
mov edi, dword [eax]
mov dword [esi + 0x34], 2
mov byte [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0x80000002
push 0x80000000
push edi
push ebx
call dword [sym.imp.WININET.dll_FtpOpenFileW]
test eax, eax
jne 0x4c3e01
mov ecx, esi
call fcn.004c4a50
mov edi, eax
test edi, edi
je 0x4c3e0d
jmp 0x4c3e16
push dword [esi + 0x68]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 4], 0
jne 0x4c3e53
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x4c3e53
lea ecx, [ebp + 0x20]
call fcn.00411710
mov byte [ebp - 4], 0x11
lea eax, [ebp + 0x20]
push eax
call fcn.004c31f0
mov byte [ebp - 4], 0xe
or eax, 0xffffffff
mov edx, dword [ebp + 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c3e4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x1c]
jmp 0x4c3eba
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x2c], 0x58f2d8
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x2c], 0x58f33c
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 0x16
push 0
push dword [esi + 4]
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
test eax, eax
je 0x4c3ea0
mov ecx, dword [ebp + 0x24]
cmp dword [ecx], eax
jb 0x4c3ea0
mov ebx, dword [ebp + 0x1c]
mov edi, 0xe0000010
jmp 0x4c3eae
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], ebx
xor edi, edi
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.004c1440
mov byte [ebp - 4], 3
push 0
push ebx
mov dword [ebp - 0x1c], 0x58f2e0
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push ebx
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 0x4c3efd
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 0x4c3f1c
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.004126a0
push 0x80004005
call fcn.004126a0
int3