Function at 0x480240
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0xef0], 0
je 0x48029b
push 0xa2e
push 0x51e4f8
call fcn.004019f0
add esp, 8
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0xef0]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
call fcn.0047b370
add esp, 4
mov ecx, dword [ebp - 0x84]
mov dword [ecx + 0xef0], 0
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0xef0], 0
jne 0x48030f
push str.PASV
mov ecx, dword [ebp - 0x84]
call fcn.0047ff00
test eax, eax
je 0x4802c8
mov eax, 0xa
jmp 0x480559
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x84]
call fcn.0047fee0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x4802ed
mov eax, 0xb
jmp 0x480559
push 0xa35
push 0x51e50c
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004019a0
add esp, 0xc
mov ecx, dword [ebp - 0x84]
mov dword [ecx + 0xef0], eax
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0xef0]
mov dword [ebp - 0x60], eax
push 0x28
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004bf0b0
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x48034e
mov edx, dword [ebp - 0x60]
push edx
push str.set_passive_failed:___s_
call fcn.0040cc80
add esp, 8
add eax, 0xc
jmp 0x480559
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x70], 0
jmp 0x480369
mov ecx, dword [ebp - 0x70]
add ecx, 1
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x70], 6
jge 0x4803ab
mov edx, dword [ebp - 0x44]
push edx
call fcn.004be87b
add esp, 4
mov ecx, dword [ebp - 0x70]
mov byte [ebp + ecx - 0x40], al
push 0x2c
mov edx, dword [ebp - 0x44]
add edx, 1
push edx
call fcn.004bf0b0
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4803a7
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
jmp 0x4803a9
jmp 0x4803ab
jmp 0x480360
movzx ecx, byte [ebp - 0x3d]
push ecx
movzx edx, byte [ebp - 0x3e]
push edx
movzx eax, byte [ebp - 0x3f]
push eax
movzx ecx, byte [ebp - 0x40]
push ecx
push str._d._d._d._d
lea edx, [ebp - 0x34]
push edx
call fcn.004be348
add esp, 0x18
movzx eax, byte [ebp - 0x3c]
shl eax, 8
movzx ecx, byte [ebp - 0x3b]
or eax, ecx
mov dword [ebp - 0x68], eax
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jne 0x480409
push str.set_passive_failed:_cannot_create_socket
call fcn.0040cc80
add esp, 4
add eax, 9
jmp 0x480559
mov dword [ebp - 0x58], 0
push 0
lea edx, [ebp - 0x34]
push edx
call fcn.00402c90
add esp, 8
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x480440
lea eax, [ebp - 0x34]
push eax
push str.set_passive_failed:_cannot_get_host__s
call fcn.0040cc80
add esp, 8
add eax, 9
jmp 0x480559
mov ecx, dword [ebp - 0x58]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004bed60
add esp, 0xc
mov word [ebp - 0x54], 2
mov cx, word [ebp - 0x68]
push ecx
call sub.WS2_32.dll_htons
mov word [ebp - 0x52], ax
push str.connect_ftp
lea ecx, [ebp - 0x59]
call fcn.00403460
push 0x10
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x64]
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4804b9
lea ecx, [ebp - 0x34]
push ecx
push str.set_passive_failed:_cannot_establish_connection_to__s
call fcn.0040cc80
add esp, 8
add eax, 9
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x59]
call fcn.00403480
mov eax, dword [ebp - 0x78]
jmp 0x480559
mov ecx, dword [ebp - 0x84]
call fcn.0047d460
movzx edx, al
test edx, edx
je 0x4804e0
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x34]
push ecx
push str.__connected_to__s:_u_n
call fcn.004be1e4
add esp, 0xc
push 0xa60
push 0x51e5f0
push 0x20
call fcn.0047b970
add esp, 0xc
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x48051d
push 0xa60
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.0047cdd0
mov dword [ebp - 0x88], eax
jmp 0x480527
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.0047dab0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x59]
call fcn.00403480
mov eax, dword [ebp - 0x80]
mov esp, ebp
pop ebp
ret 4