Function at 0x102f4920
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, 0x100
mov eax, dword [0x106499c8]
xor eax, esp
mov dword [esp + 0xfc], eax
push esi
mov esi, dword [esp + 0x108]
test esi, esi
je 0x102f4986
push 6
xorps xmm0, xmm0
push 1
push 2
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, 2
mov dword [esi + 0x30], eax
mov word [esp + 8], cx
mov dword [esp + 4], 0x10
cmp eax, 0xffffffff
jne 0x102f499f
push str.socket_failed
push 0
push 9
call fcn.10269820
add esp, 0xc
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.10311bec
add esp, 0x100
ret
cmp dword [esi + 0x28], 0
push edi
je 0x102f4b50
push str.PASV_r_n
lea eax, [esp + 0x40]
push 0xc8
push eax
call dword [sym.imp.MSVCR110.dll__snprintf]
lea ecx, [esp + 0x48]
add esp, 0xc
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x102f49d0
push 0
sub ecx, edx
push ecx
lea eax, [esp + 0x44]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x102f4c1e
push esi
call fcn.102f59a0
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
cmp eax, 2
je 0x102f4a22
push dword [esi + 0x30]
cmp eax, 5
je 0x102f4c32
call edi
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x448]
lea ecx, [esi + 0x3c]
add ecx, eax
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, 0x30
jl 0x102f4a3a
cmp al, 0x39
jle 0x102f4a41
test al, al
je 0x102f4a41
inc ecx
jmp 0x102f4a30
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push str._u__u__u__u__u__u
push ecx
call dword [sym.imp.MSVCR110.dll_sscanf]
add esp, 0x20
cmp eax, 6
je 0x102f4ab7
push str.Invalid_answer_to_PASV_n
push 0x7d0
push 9
call fcn.10269820
mov eax, dword [esi + 0x30]
add esp, 0xc
cmp eax, 0xffffffff
je 0x102f4c3f
push eax
call edi
pop edi
mov dword [esi + 0x30], 0xffffffff
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.10311bec
add esp, 0x100
ret
movzx eax, byte [esp + 0x1c]
mov byte [esp + 0x34], al
movzx eax, byte [esp + 0x20]
push dword [esp + 8]
mov byte [esp + 0x39], al
movzx eax, byte [esp + 0x28]
mov byte [esp + 0x3a], al
movzx eax, byte [esp + 0x2c]
mov byte [esp + 0x3b], al
movzx eax, byte [esp + 0x30]
mov byte [esp + 0x3c], al
movzx eax, byte [esp + 0x34]
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov ax, word [esp + 0x3c]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x102f4c67
push str.Failed_to_create_a_data_connection
push 0
push 9
call fcn.10269820
add esp, 0xc
push dword [esi + 0x30]
call edi
pop edi
mov dword [esi + 0x30], 0xffffffff
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.10311bec
add esp, 0x100
ret
mov edi, dword [sym.imp.WS2_32.dll_getsockname]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
push ecx
push eax
call edi
push dword [esp + 8]
xor eax, eax
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x102f4b8a
push str.bind_failed
jmp 0x102f4c23
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x30]
call edi
push 1
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x102f4baf
push str.listen_failed
jmp 0x102f4c23
movzx eax, byte [esp + 0xf]
push eax
movzx eax, byte [esp + 0x12]
push eax
movzx eax, byte [esp + 0x1b]
push eax
movzx eax, byte [esp + 0x1e]
push eax
movzx eax, byte [esp + 0x21]
push eax
movzx eax, byte [esp + 0x24]
push eax
push str.PORT__d__d__d__d__d__d_r_n
lea eax, [esp + 0x58]
push 0xc8
push eax
call dword [sym.imp.MSVCR110.dll__snprintf]
lea ecx, [esp + 0x60]
add esp, 0x24
mov byte [esp + 0x103], 0
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x102f4c00
push 0
sub ecx, edx
push ecx
lea eax, [esp + 0x44]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x102f4c59
push str.send_failed
push 0
push 9
call fcn.10269820
add esp, 0xc
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x30], 0xffffffff
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.10311bec
add esp, 0x100
ret
push esi
call fcn.102f59a0
add esp, 4
cmp eax, 2
jne 0x102f4c2f
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x104]
pop edi
pop esi
xor ecx, esp
call fcn.10311bec
add esp, 0x100
ret