Function at 0x471433
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 0x4717a4
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 0x4714b7
mov dword [esp + 8], str.socket_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
jmp 0x4717a4
cmp dword [ebx + 0x28], 0
je 0x471656
mov dword [esp + 8], str.PASV_r_n
mov dword [esp + 4], 0xc8
lea esi, [ebp - 0x114]
mov dword [esp], esi
call fcn.00597a20
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 0x47175b
mov eax, ebx
call fcn.0047029c
cmp eax, 2
je 0x471543
cmp eax, 5
mov eax, dword [ebx + 0x30]
je 0x471789
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 0x471550
inc eax
mov dl, byte [eax]
lea ecx, [edx - 0x30]
cmp cl, 9
jbe 0x47155e
test dl, dl
jne 0x47154f
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 0x4715d4
mov dword [esp + 8], str.Invalid_answer_to_PASV_n
mov dword [esp + 4], 0x7d0
mov dword [esp], 9
call fcn.00448b72
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x11c], 0xffffffff
cmp eax, 0xffffffff
jne 0x471789
jmp 0x4717a4
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 0x4715d6
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 0x47179b
mov dword [esp + 8], str.Failed_to_create_a_data_connection
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
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 0x4717a4
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 0x47169c
mov dword [esp + 8], str.bind_failed
jmp 0x471763
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 0x4716d8
mov dword [esp + 8], str.listen_failed
jmp 0x471763
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.00597a20
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 0x471779
mov dword [esp + 8], str.send_failed
mov dword [esp + 4], 0
mov dword [esp], 9
call fcn.00448b72
jmp 0x471786
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlNanoFTPGetResponse
cmp eax, 2
je 0x47179b
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push esi
mov dword [ebx + 0x30], 0xffffffff
jmp 0x4717a4
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