Function at 0x140368330
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140535ab8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
mov dword [rsp + 0x28], 1
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r13 + 1]
lea r8d, [r13 + 6]
mov r14d, 2
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
mov rsi, 0xffffffffffffffff
cmp rax, rsi
je 0x1403683af
mov eax, r13d
mov dword [rbp - 0x50], eax
lea rbx, [0x1405203c8]
mov qword [rbp - 0x48], rbx
jmp 0x1403683d3
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov rdi, rsi
mov eax, dword [rbp - 0x50]
mov qword [rbp - 0x30], rdi
cmp rdi, 0xffffffffffffffff
jne 0x140368446
test eax, eax
jne 0x14036891e
mov dword [rbp - 0x40], 1
call fcn.1401692c0
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x18], r13
mov word [rbp - 0x20], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r13w
call fcn.1401692c0
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r15d, [rdi + 0x11]
jmp 0x14036858f
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14036848f
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x18], r13
mov word [rbp - 0x20], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov r15d, reloc.WS2_32.dll_recv
mov word [rbp - 0x1e], r13w
mov dword [rbp - 0x1c], eax
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov r14d, eax
test eax, eax
jne 0x140368567
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x38], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov r14d, eax
movsxd r15, dword [rbp - 0x38]
test eax, eax
je 0x140368525
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp r14d, 0xffffffff
jne 0x140368521
cmp dword [rbp - 0x50], 0
jne 0x14036891e
mov rbx, qword [rbp - 0x48]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x1c], eax
jne 0x140368540
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
cmp rdi, 0xffffffffffffffff
jne 0x1403685c1
call fcn.1401692c0
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x140368634
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp r14d, 0xffffffff
jne 0x1403684d0
cmp dword [rbp - 0x50], 0
jne 0x14036891e
cmp rdi, 0xffffffffffffffff
jne 0x1403684d0
call fcn.1401692c0
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x140368517
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
mov r14d, eax
test eax, eax
jne 0x140368610
mov dword [rbp - 0x50], r13d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r9 + 1]
lea ecx, [rdx + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140368640
mov eax, r13d
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
jmp 0x140368664
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp r14d, 0xffffffff
jne 0x1403685da
cmp dword [rbp - 0x50], 0
jne 0x14036891e
jmp 0x1403685da
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov r14, rsi
mov eax, dword [rbp - 0x50]
mov qword [rbp - 0x38], r14
cmp r14, 0xffffffffffffffff
jne 0x140368694
test eax, eax
jne 0x14036892f
call fcn.1401692c0
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x1403686f7
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov r15d, eax
test eax, eax
jne 0x1403686d3
mov qword [rbp - 0x48], rbx
cmp rdi, 0xffffffffffffffff
jne 0x140368703
call fcn.1401692c0
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x140368742
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp r15d, 0xffffffff
jne 0x1403686af
cmp dword [rbp - 0x50], 0
jne 0x14036892f
jmp 0x1403686af
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
jne 0x140368737
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x140368742
mov dword [rbp - 0x50], r13d
mov qword [rbp - 0x48], rbx
mov rsi, rax
mov qword [rbp - 0x28], rsi
cmp rsi, 0xffffffffffffffff
jne 0x140368756
cmp dword [rbp - 0x50], 0
jne 0x14036890d
mov dword [rbp - 0x3c], 1
cmp r14, 0xffffffffffffffff
jne 0x140368778
call fcn.1401692c0
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
jmp 0x1403687af
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x14036879a
mov dword [rbp - 0x50], r13d
mov qword [rbp - 0x48], rbx
je 0x1403687c2
jmp 0x1403687b8
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp dword [rbp - 0x50], 0
jne 0x14036890d
mov dword [rbp - 0x40], 1
cmp r14, 0xffffffffffffffff
jne 0x1403687e4
call fcn.1401692c0
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
jmp 0x14036881b
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140368824
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x3c], 1
cmp rsi, 0xffffffffffffffff
jne 0x140368843
call fcn.1401692c0
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
jmp 0x14036887a
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x140368865
mov dword [rbp - 0x50], r13d
mov qword [rbp - 0x48], rbx
je 0x14036888d
jmp 0x140368883
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp dword [rbp - 0x50], 0
jne 0x14036890d
mov dword [rbp - 0x40], 1
cmp rsi, 0xffffffffffffffff
jne 0x1403688a1
call fcn.1401692c0
jmp 0x1403688ce
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1403688ce
call fcn.1401692c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [r12], rsi
mov qword [r12 + 8], r14
lea rcx, [rbp - 0x30]
call fcn.1403331b0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14038a8e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.1401681f0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.1401681f0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.1401681f0
int3