Function at 0x1400a0fb0
Capabilities:
Act as tcp client
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
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1403b8550]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 1], rcx
mov dword [rsp + 0x28], 1
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea edx, [rbx + 1]
lea r8d, [rbx + 6]
mov r15d, 2
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
mov r12, 0xffffffffffffffff
cmp rax, r12
je 0x1400a102f
mov dword [rbp - 0x29], ebx
mov byte [rbp - 0x25], bl
lea rdi, [0x14035ccc8]
mov qword [rbp - 0x21], rdi
jmp 0x1400a1055
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
lea rdi, [0x14035ccc8]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rsi, r12
mov qword [rbp + 7], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400a106f
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a174f
mov dword [rbp - 0x15], 1
cmp rsi, 0xffffffffffffffff
jne 0x1400a10b8
mov qword [rbp + 0x1f], rbx
mov word [rbp + 0x17], r15w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
mov word [rbp + 0x19], bx
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
lea r13d, [rsi + 0x11]
jmp 0x1400a1150
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 0xffff
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400a10f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0x1f], rbx
mov word [rbp + 0x17], r15w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov r13d, reloc.WS2_32.dll_recv
mov word [rbp + 0x19], bx
mov dword [rbp + 0x1b], eax
mov r8d, r13d
lea rdx, [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test eax, eax
je 0x1400a1180
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp ebx, 0xffffffff
jne 0x1400a1180
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a174f
cmp rsi, 0xffffffffffffffff
jne 0x1400a1180
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400a11c8
mov dword [rbp - 9], reloc.WS2_32.dll_recv
lea r8, [rbp - 9]
lea rdx, [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r13, dword [rbp - 9]
test eax, eax
jne 0x1400a11a7
mov rbx, rdi
jmp 0x1400a11dc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp ebx, 0xffffffff
jne 0x1400a11d8
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a174f
mov rbx, qword [rbp - 0x21]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x1b], eax
jne 0x1400a11f7
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
cmp rsi, 0xffffffffffffffff
jne 0x1400a1217
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400a1280
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
mov r14d, eax
test eax, eax
jne 0x1400a125b
mov rax, qword [rbx + 8]
movabs r14, 0x8fafd21e25c5e09b
cmp rax, r14
je 0x1400a129d
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a129d
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400a129d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rbx, rdi
cmp r14d, 0xffffffff
jne 0x1400a1293
mov rbx, rdi
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a174f
movabs r14, 0x8fafd21e25c5e09b
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400a1309
mov dword [rbp - 0x29], 0
mov rcx, qword [rbx + 8]
cmp rcx, r14
je 0x1400a12fe
movabs rax, 0xb2ab117a257edf0d
cmp rcx, rax
je 0x1400a12fe
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8 + 0x30]
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
jmp 0x1400a132b
xor al, al
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
jmp 0x1400a132b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov r15, r12
mov rbx, rdi
mov qword [rbp - 9], r15
cmp r15, 0xffffffffffffffff
jne 0x1400a135f
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a172d
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400a13ca
mov r8d, r13d
lea rdx, [rbp + 0x17]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
mov r14d, eax
test eax, eax
jne 0x1400a13a5
mov rax, qword [rbx + 8]
movabs r13, 0x8fafd21e25c5e09b
cmp rax, r13
je 0x1400a13e7
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a13e7
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400a13e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rbx, rdi
cmp r14d, 0xffffffff
jne 0x1400a13dd
mov rbx, rdi
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a172d
movabs r13, 0x8fafd21e25c5e09b
cmp rsi, 0xffffffffffffffff
jne 0x1400a13fd
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
jmp 0x1400a148d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400a147e
mov rdx, qword [rbx + 8]
mov rcx, rdx
movabs rax, 0xb2ab117a257edf0d
cmp rdx, r13
je 0x1400a1448
cmp rdx, rax
je 0x1400a1448
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rbx + 8]
movabs rax, 0xb2ab117a257edf0d
mov dword [rbp - 0x29], 0
cmp rcx, r13
je 0x1400a1470
cmp rcx, rax
je 0x1400a1470
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
mov r12, r14
jmp 0x1400a149d
xor al, al
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
mov r12, r14
jmp 0x1400a149d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
mov rbx, rdi
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0xf], r12
cmp r12, 0xffffffffffffffff
jne 0x1400a14b1
cmp byte [rbp - 0x25], 0
jne 0x1400a173e
mov dword [rbp - 0x11], 1
cmp r15, 0xffffffffffffffff
jne 0x1400a14cb
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
jmp 0x1400a1530
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14d, eax
test eax, eax
js 0x1400a1521
mov dword [rbp - 0x29], 0
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x1400a1511
movabs rax, 0xb2ab117a257edf0d
cmp rcx, rax
je 0x1400a1511
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8 + 0x30]
jmp 0x1400a1513
xor al, al
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
test r14d, r14d
je 0x1400a1550
jmp 0x1400a1540
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
mov rbx, rdi
movdqa xmmword [rbp - 0x29], xmm0
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a173e
mov dword [rbp - 0x15], 1
cmp r15, 0xffffffffffffffff
jne 0x1400a156a
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
jmp 0x1400a15c0
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400a15b1
mov rax, qword [rbx + 8]
cmp rax, r13
je 0x1400a15d0
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a15d0
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400a15d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
mov rbx, rdi
movdqa xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x11], 1
cmp r12, 0xffffffffffffffff
jne 0x1400a15ea
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
jmp 0x1400a164f
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, r12
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14d, eax
test eax, eax
js 0x1400a1640
mov dword [rbp - 0x29], 0
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x1400a1630
movabs rax, 0xb2ab117a257edf0d
cmp rcx, rax
je 0x1400a1630
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8 + 0x30]
jmp 0x1400a1632
xor al, al
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
test r14d, r14d
je 0x1400a166f
jmp 0x1400a165f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
mov rbx, rdi
movdqa xmmword [rbp - 0x29], xmm0
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a173e
mov dword [rbp - 0x15], 1
cmp r12, 0xffffffffffffffff
je 0x1400a16c9
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400a16c3
mov rax, qword [rbx + 8]
cmp rax, r13
je 0x1400a16c9
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a16c9
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400a16c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rax, qword [rbp - 1]
mov qword [rax], r12
mov qword [rax + 8], r15
cmp rsi, 0xffffffffffffffff
je 0x1400a1700
mov dword [rbp - 0x29], 0
mov byte [rbp - 0x25], 0
mov qword [rbp - 0x21], rdi
mov byte [rbp - 0x19], 0
lea r9, [rbp - 0x29]
mov r8b, 1
lea rdx, [rbp - 0x19]
mov rcx, rsi
call fcn.1400a0450
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140250db0
lea r11, [rsp + 0x90]
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 - 0x29]
call fcn.140034c00
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140034c00
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140034c00
int3