Function at 0x140117230
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov rsi, r9
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x6c], reloc.WS2_32.dll_recv
movaps xmm6, xmmword [0x14047fb40]
movaps xmmword [rsp + 0x90], xmm6
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x14011748c
mov rdi, rax
mov qword [rsp + 0xb0], 0
mov word [rsp + 0xa8], 2
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0xac], eax
mov word [rsp + 0xaa], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [rsi], xmm0
lea r9, [rsp + 0x50]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14011743b
lea rdx, [rsp + 0xa8]
mov rcx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14011743b
lea rdx, [rsp + 0xa8]
lea r8, [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14011743b
cmp dword [rsp + 0x6c], 0x10
jl 0x14011743b
mov rcx, rdi
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14011743b
mov ecx, 2
mov edx, 1
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14011743b
lea rdx, [rsp + 0xa8]
mov rcx, rax
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14011743b
mov rcx, rdi
mov edx, 1
call fcn.1401102f0
test eax, eax
js 0x14011743b
lea rcx, [rsp + 0x90]
mov qword [rcx], rdi
mov dword [rcx + 8], 0x300
mov r8d, 0x3e8
mov edx, 1
call fcn.1401128c0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14011743b
lea rcx, [rsp + 0x50]
movaps xmmword [rcx], xmm6
call fcn.14011bd90
mov al, 0xaa
lea rdx, [rsp + 0x80]
mov byte [rdx + 8], al
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rdx], rcx
mov byte [rsp + 0x78], al
mov qword [rsp + 0x70], rcx
mov ebx, 9
mov r8d, 9
xor ecx, ecx
call fcn.140112380
test eax, eax
je 0x140117493
mov rbx, qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call rbx
mov rcx, qword [rsi]
call rbx
mov rdi, qword [rsi + 8]
mov esi, 0xffffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1402ddd70
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14011745e
mov rcx, qword [rsi]
lea rdx, [rsp + 0x80]
mov r8d, 9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
lea r14, [rsp + 0x70]
mov r15, qword [sym.imp.WS2_32.dll_recv]
lea r12, [rsp + 0x40]
lea r13, [rsp + 0x30]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], 0x300
mov r8d, 0x3e8
lea rcx, [rsp + 0x90]
mov edx, 1
call fcn.1401128c0
mov rcx, qword [rsi + 8]
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call r15
cmp eax, 0xffffffff
jne 0x140117547
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov rcx, r12
call fcn.14011bd90
movdqa xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm0
mov rcx, r12
mov rdx, r13
call fcn.14011be30
cmp rax, 0xea60
jg 0x14011743b
cmp ebp, 0x2733
je 0x1401174c3
jmp 0x14011743b
cdqe
sub rbx, rax
je 0x140117556
add r14, rax
jmp 0x1401174c3
mov rax, qword [rsp + 0x80]
xor rax, qword [rsp + 0x70]
mov cl, byte [rsp + 0x88]
xor cl, byte [rsp + 0x78]
movzx ecx, cl
or rcx, rax
jne 0x14011743b
xor esi, esi
jmp 0x140117455