Function at 0x18007e990
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 [0x1800c31c0]
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 0x18007ea0f
mov dword [rbp - 0x50], edi
lea rax, [0x1800c3050]
mov qword [rbp - 0x48], rax
mov eax, edi
jmp 0x18007ea30
call fcn.180046bf0
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 0x18007ea82
test eax, eax
jne 0x18007eea1
mov dword [rbp - 0x40], 1
call fcn.180046bf0
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 0x18007ee88
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 0x18007ec10
call fcn.180046bf0
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, select
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov r15d, eax
test eax, eax
je 0x18007eb30
call fcn.180046bf0
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 0x18007eb30
test eax, eax
jne 0x18007eea1
mov dword [rbp - 0x38], select
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 0x18007eb7f
call fcn.180046bf0
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 0x18007eb7f
test eax, eax
jne 0x18007eea1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x1c], eax
jne 0x18007eb9a
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 0x18007ebdb
call fcn.180046bf0
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 0x18007ebdb
test eax, eax
jne 0x18007eea1
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 0x18007ec3a
mov dword [rbp - 0x50], edi
mov eax, edi
jmp 0x18007ec5b
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 0x18007ee88
jmp 0x18007eaea
call fcn.180046bf0
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 0x18007eeb2
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 0x18007ecac
call fcn.180046bf0
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 0x18007ecac
test eax, eax
jne 0x18007eecf
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
jne 0x18007ece0
call fcn.180046bf0
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 0x18007ece8
mov dword [rbp - 0x50], edi
mov r14, rax
mov eax, edi
mov qword [rbp - 0x28], r14
cmp r14, 0xffffffffffffffff
jne 0x18007ecfa
test eax, eax
jne 0x18007ee77
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 0x18007ed24
mov dword [rbp - 0x50], edi
mov eax, edi
test ecx, ecx
je 0x18007ed4a
jmp 0x18007ed42
call fcn.180046bf0
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 0x18007ee77
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 0x18007ed93
call fcn.180046bf0
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 0x18007ee5d
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x18007edc1
mov dword [rbp - 0x50], edi
je 0x18007ede9
jmp 0x18007ede1
call fcn.180046bf0
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 0x18007ee77
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 0x18007ee1f
call fcn.180046bf0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [r13], r14
mov qword [r13 + 8], r15
lea rcx, [rbp - 0x30]
call fcn.18005f800
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180097330
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.180046bf0
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.180046b50
nop
call fcn.180046bf0
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.180046b50
nop
test eax, eax
jne 0x18007eecf
call fcn.180046bf0
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.180046b50
int3