Function at 0x140123690
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 [0x14032aa00]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, rcx
mov dword [rsp + 0x28], 1
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov edx, 1
mov r8d, 6
mov r15d, 2
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
mov r14, 0xffffffffffffffff
cmp rax, r14
je 0x14012370f
mov dword [rbp - 0x50], edi
lea rax, [0x1403275b8]
mov qword [rbp - 0x48], rax
mov eax, edi
jmp 0x140123730
call fcn.14004cfa0
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 rsi, r14
mov qword [rbp - 0x30], rsi
cmp rsi, 0xffffffffffffffff
jne 0x140123782
test eax, eax
jne 0x140123ba1
mov dword [rbp - 0x40], 1
call fcn.14004cfa0
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x20], r15w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], di
jmp 0x140123b88
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140123910
call fcn.14004cfa0
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], rdi
mov word [rbp - 0x20], r15w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], di
mov r8d, setsockopt
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov r15d, eax
test eax, eax
je 0x140123830
call fcn.14004cfa0
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 0x140123830
test eax, eax
jne 0x140123ba1
mov dword [rbp - 0x38], setsockopt
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
mov r15d, eax
movsxd r12, dword [rbp - 0x38]
test eax, eax
je 0x14012387f
call fcn.14004cfa0
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 0x14012387f
test eax, eax
jne 0x140123ba1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x1c], eax
jne 0x14012389a
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
mov r15d, eax
test eax, eax
je 0x1401238db
call fcn.14004cfa0
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 0x1401238db
test eax, eax
jne 0x140123ba1
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov edx, 1
mov ecx, 2
mov r8d, 6
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14012393a
mov dword [rbp - 0x50], edi
mov eax, edi
jmp 0x14012395b
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x20], r15w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], di
cmp rsi, 0xffffffffffffffff
je 0x140123b88
jmp 0x1401237ea
call fcn.14004cfa0
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 r15, r14
mov qword [rbp - 0x38], r15
cmp r15, 0xffffffffffffffff
je 0x140123bb2
mov r8d, r12d
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
mov r12d, eax
test eax, eax
je 0x1401239ac
call fcn.14004cfa0
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 r12d, 0xffffffff
jne 0x1401239ac
test eax, eax
jne 0x140123bcf
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
jne 0x1401239e0
call fcn.14004cfa0
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 0x1401239e8
mov dword [rbp - 0x50], edi
mov r14, rax
mov eax, edi
mov qword [rbp - 0x28], r14
cmp r14, 0xffffffffffffffff
jne 0x1401239fa
test eax, eax
jne 0x140123b77
mov dword [rbp - 0x3c], 1
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, eax
test eax, eax
js 0x140123a24
mov dword [rbp - 0x50], edi
mov eax, edi
test ecx, ecx
je 0x140123a4a
jmp 0x140123a42
call fcn.14004cfa0
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
test eax, eax
jne 0x140123b77
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 6
mov r8d, 1
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140123a93
call fcn.14004cfa0
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 r14, 0xffffffffffffffff
je 0x140123b5d
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x140123ac1
mov dword [rbp - 0x50], edi
je 0x140123ae9
jmp 0x140123ae1
call fcn.14004cfa0
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 edi, eax
test edi, edi
jne 0x140123b77
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 6
mov r8d, 1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140123b1f
call fcn.14004cfa0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [r13], r14
mov qword [r13 + 8], r15
lea rcx, [rbp - 0x30]
call fcn.1400e3be0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401ae6a0
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
call fcn.14004cfa0
nop
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.14004b0d0
nop
call fcn.14004cfa0
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.14004b0d0
nop
test eax, eax
jne 0x140123bcf
call fcn.14004cfa0
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.14004b0d0
int3