Function at 0x472693
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:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x11c], 0xffffffff
test ebx, ebx
je 0x472a04
lea esi, [ebp - 0x34]
mov ecx, 4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov dword [ebx + 0x30], eax
mov word [ebp - 0x34], 2
mov dword [ebp - 0x1c], 0x10
cmp eax, 0xffffffff
jne 0x472717
mov dword [esp + 8], str.socket_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00449dd2
jmp 0x472a04
cmp dword [ebx + 0x28], 0
je 0x4728b6
mov dword [esp + 8], str.PASV_r_n
mov dword [esp + 4], 0xc8
lea esi, [ebp - 0x114]
mov dword [esp], esi
call fcn.00597e90
xor eax, eax
mov ecx, dword [ebp - 0x11c]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
js 0x4729bb
mov eax, ebx
call fcn.004714fc
cmp eax, 2
je 0x4727a3
cmp eax, 5
mov eax, dword [ebx + 0x30]
je 0x4729e9
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push edx
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x28], 0
mov eax, dword [ebx + 0x448]
lea eax, [ebx + eax + 0x3c]
jmp 0x4727b0
inc eax
mov dl, byte [eax]
lea ecx, [edx - 0x30]
cmp cl, 9
jbe 0x4727be
test dl, dl
jne 0x4727af
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x38]
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x18], ecx
lea ecx, [ebp - 0x40]
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x44]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x48]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], str._u__u__u__u__u__u
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
cmp eax, 6
je 0x472834
mov dword [esp + 8], str.Invalid_answer_to_PASV_n
mov dword [esp + 4], 0x7d0
mov dword [esp], 9
call fcn.00449dd2
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x11c], 0xffffffff
cmp eax, 0xffffffff
jne 0x4729e9
jmp 0x472a04
xor eax, eax
lea edx, [ebp - 0x22]
mov ecx, dword [ebp + eax*4 - 0x4c]
mov byte [ebp + eax - 0x22], cl
inc eax
cmp eax, 6
jne 0x472836
lea eax, [ebp - 0x34]
mov ecx, dword [edx]
mov dword [ebp - 0x30], ecx
mov dx, word [edx + 4]
mov word [ebp - 0x32], dx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
jns 0x4729fb
mov dword [esp + 8], str.Failed_to_create_a_data_connection
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00449dd2
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push eax
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebp - 0x11c], 0xffffffff
jmp 0x472a04
lea edi, [ebp - 0x1c]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
mov word [ebp - 0x32], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_bind
sub esp, 0xc
test eax, eax
jns 0x4728fc
mov dword [esp + 8], str.bind_failed
jmp 0x4729c3
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_listen
push edi
push edi
test eax, eax
jns 0x472938
mov dword [esp + 8], str.listen_failed
jmp 0x4729c3
movzx eax, byte [ebp - 0x31]
mov dword [esp + 0x20], eax
movzx eax, byte [ebp - 0x32]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebp - 0x2d]
mov dword [esp + 0x18], eax
movzx eax, byte [ebp - 0x2e]
mov dword [esp + 0x14], eax
movzx eax, byte [ebp - 0x2f]
mov dword [esp + 0x10], eax
movzx eax, byte [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.PORT__d__d__d__d__d__d_r_n
mov dword [esp + 4], 0xc8
lea esi, [ebp - 0x114]
mov dword [esp], esi
call fcn.00597e90
mov byte [ebp - 0x4d], 0
xor eax, eax
mov ecx, dword [ebp - 0x11c]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x4729d9
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00449dd2
jmp 0x4729e6
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPGetResponse
cmp eax, 2
je 0x4729fb
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push esi
mov dword [ebx + 0x30], 0xffffffff
jmp 0x472a04
mov ebx, dword [ebx + 0x30]
mov dword [ebp - 0x11c], ebx
mov eax, dword [ebp - 0x11c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret