Function at 0x14008c670
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 [0x1402a7978]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rcx
xor r13d, r13d
mov qword [rbp - 0x38], r13
lea rax, [0x1402a9358]
mov qword [rbp - 0x30], rax
mov dword [rsp + 0x28], 1
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
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
mov rsi, 0xffffffffffffffff
cmp rdi, rsi
cmove rdi, rsi
mov qword [rbp - 0x48], rdi
cmp rdi, rsi
jne 0x14008c755
cmp dword [rbp - 0x38], r13d
jne 0x14008cb10
mov dword [rbp - 0x28], 1
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
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
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
lea r15d, [r13 + 0x10]
jmp 0x14008c7d1
mov dword [rbp - 0x28], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x28]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
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
mov r15d, select
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
cmp ebx, 0xffffffff
jne 0x14008c7f1
cmp dword [rbp - 0x38], 0
jne 0x14008cb10
cmp rdi, 0xffffffffffffffff
jne 0x14008c7f1
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
jmp 0x14008c822
mov dword [rbp - select], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r15, dword [rbp - 0x10]
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
cmp ebx, 0xffffffff
jne 0x14008c82c
cmp dword [rbp - 0x38], 0
jne 0x14008cb10
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x1c], eax
jne 0x14008c847
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
cmp rdi, 0xffffffffffffffff
jne 0x14008c85d
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
jmp 0x14008c880
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
cmp ebx, 0xffffffff
jne 0x14008c88a
cmp dword [rbp - 0x38], 0
jne 0x14008cb10
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
cmp r14, 0xffffffffffffffff
cmove r14, rsi
mov qword [rbp - 0x10], r14
cmp r14, 0xffffffffffffffff
jne 0x14008c8ea
cmp dword [rbp - 0x38], 0
jne 0x14008cb21
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
jmp 0x14008c90f
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
cmp ebx, 0xffffffff
jne 0x14008c919
cmp dword [rbp - 0x38], 0
jne 0x14008cb21
cmp rdi, 0xffffffffffffffff
jne 0x14008c92f
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
jmp 0x14008c95d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
cmp rbx, 0xffffffffffffffff
je 0x14008c95d
mov dword [rbp - 0x38], r13d
mov rsi, rbx
mov qword [rbp - 0x40], rsi
cmp rsi, 0xffffffffffffffff
jne 0x14008c971
cmp dword [rbp - 0x38], 0
jne 0x14008caff
mov dword [rbp - 0x24], 1
cmp r14, 0xffffffffffffffff
jne 0x14008c98e
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
jmp 0x14008c9b4
lea r8, [rbp - 0x24]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x38]
call fcn.14005dde0
test ebx, ebx
je 0x14008c9be
cmp dword [rbp - 0x38], 0
jne 0x14008caff
mov dword [rbp - 0x28], 1
cmp r14, 0xffffffffffffffff
jne 0x14008c9db
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
jmp 0x14008ca07
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x28]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
mov dword [rbp - 0x24], 1
cmp rsi, 0xffffffffffffffff
jne 0x14008ca24
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
jmp 0x14008ca4a
lea r8, [rbp - 0x24]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x38]
call fcn.14005dde0
test ebx, ebx
je 0x14008ca54
cmp dword [rbp - 0x38], 0
jne 0x14008caff
mov dword [rbp - 0x28], 1
cmp rsi, 0xffffffffffffffff
jne 0x14008ca71
mov edx, 0x2719
lea rcx, [rbp - 0x38]
call fcn.140062430
jmp 0x14008ca9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x28]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x38]
call fcn.14005dde0
mov qword [r12], rsi
mov qword [r12 + 8], r14
cmp rdi, 0xffffffffffffffff
je 0x14008cad2
mov qword [rbp - 0x38], r13
lea rax, [0x1402a9358]
mov qword [rbp - 0x30], rax
mov byte [rbp - 0x50], 0
lea r9, [rbp - 0x38]
mov r8b, 1
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.14005de70
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140156510
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 - 0x38]
call fcn.14005d2f0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.14005d2f0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x38]
call fcn.14005d2f0
int3