Function at 0x4745e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
sub esp, 0xfc
push esi
push edi
push 6
push 1
push 2
call dword [0x47829c]
mov esi, dword [esp + 0x108]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x28]
test ecx, ecx
mov dword [esi + 0x30], eax
mov dword [esp + 8], 0x10
mov word [esp + 0xc], 2
je 0x4747aa
lea edx, [esp + 0x3c]
push str.PASV_r_n
push edx
call dword [0x4781dc]
lea eax, [esp + 0x44]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474644
mov ecx, dword [esi + 0x2c]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [0x4782b8]
mov edi, eax
test edi, edi
jge 0x474681
mov edx, dword [esi + 0x30]
push edx
call dword [0x4782bc]
mov eax, edi
pop edi
mov dword [esi + 0x30], 0xffffffff
pop esi
add esp, 0xfc
ret
mov eax, esi
call fcn.00473f40
cmp eax, 2
mov edi, dword [0x4782bc]
je 0x4746b0
cmp eax, 5
je 0x47483d
mov ecx, dword [esi + 0x30]
push ecx
call edi
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x28], 0
mov edx, dword [esi + 0x248]
lea ecx, [edx + esi + 0x3c]
lea ebx, [ebx]
mov al, byte [ecx]
cmp al, 0x30
jl 0x4746ca
cmp al, 0x39
jle 0x4746d1
test al, al
je 0x4746d1
inc ecx
jmp 0x4746c0
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x38]
push edx
push str._u__u__u__u__u__u
push ecx
call dword [0x4780e8]
add esp, 0x20
cmp eax, 6
je 0x474739
mov eax, dword [0x4a4528]
push str.Invalid_answer_to_PASV_n
push eax
call dword [0x490ca8]
mov eax, dword [esi + 0x30]
add esp, 8
cmp eax, 0xffffffff
je 0x4748ea
push eax
call edi
pop edi
mov dword [esi + 0x30], 0xffffffff
or eax, 0xffffffff
pop esi
add esp, 0xfc
ret
xor eax, eax
jmp 0x474740
mov cl, byte [esp + eax*4 + 0x24]
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 6
jl 0x474740
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov ax, word [esp + 0x20]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 0x10]
mov word [esp + 0x12], ax
mov eax, dword [esi + 0x30]
push edx
push eax
call dword [0x4782a4]
test eax, eax
jge 0x4748f6
mov ecx, dword [0x4a4528]
push str.Failed_to_create_a_data_connection_n
push ecx
call dword [0x490ca8]
mov edx, dword [esi + 0x30]
add esp, 8
push edx
call edi
pop edi
mov dword [esi + 0x30], 0xffffffff
or eax, 0xffffffff
pop esi
add esp, 0xfc
ret
mov edi, dword [0x478290]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
call edi
mov eax, dword [esp + 8]
mov edx, dword [esi + 0x30]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
mov word [esp + 0x1a], 0
call dword [0x47828c]
test eax, eax
jge 0x4747f9
mov eax, dword [0x4a4528]
push str.Failed_to_bind_a_port_n
push eax
call dword [0x490ca8]
mov ecx, dword [esi + 0x30]
add esp, 8
push ecx
jmp 0x4748dd
mov ecx, dword [esi + 0x30]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
call edi
mov edx, dword [esi + 0x30]
push 1
push edx
call dword [0x4782c4]
test eax, eax
jge 0x474846
mov eax, dword [esp + 0xe]
push eax
call dword [0x478284]
mov edx, dword [0x4a4528]
movzx ecx, ax
push ecx
push str.Could_not_listen_on_port__d_n
push edx
call dword [0x490ca8]
add esp, 0xc
mov eax, dword [esi + 0x30]
push eax
jmp 0x4748dd
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
movzx eax, byte [esp + 0x13]
push ecx
movzx ecx, byte [esp + 0x16]
push edx
movzx edx, byte [esp + 0x19]
push eax
movzx eax, byte [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
push str.PORT__d__d__d__d__d__d_r_n
push ecx
call dword [0x4781dc]
lea eax, [esp + 0x5c]
add esp, 0x20
mov byte [esp + 0x103], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474890
sub eax, edx
push 0
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x44]
push edx
push eax
call dword [0x4782b8]
mov edi, eax
test edi, edi
jge 0x4748cd
mov ecx, dword [esi + 0x30]
push ecx
call dword [0x4782bc]
mov eax, edi
pop edi
mov dword [esi + 0x30], 0xffffffff
pop esi
add esp, 0xfc
ret
mov eax, esi
call fcn.00473f40
cmp eax, 2
je 0x4748f6
mov edx, dword [esi + 0x30]
push edx
call dword [0x4782bc]
mov dword [esi + 0x30], 0xffffffff
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xfc
ret
mov eax, dword [esi + 0x30]
pop edi
pop esi
add esp, 0xfc
ret