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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x220
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r12, rcx
call fcn.14006cb10
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r13 + 1]
mov edi, 2
lea r8d, [r13 + 6]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov r14, rax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movaps xmm6, xmmword [rsp + 0x40]
or r15, 0xffffffffffffffff
cmp r14, r15
jne 0x14001ecc8
mov r14, r15
jmp 0x14001ecdc
mov dword [rsp + 0x40], r13d
call fcn.14006cb10
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
mov qword [rbp - 0x70], r14
cmp r14, 0xffffffffffffffff
jne 0x14001ed55
movd eax, xmm6
test eax, eax
je 0x14001ed55
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084aa0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140004580
lea rdx, [0x140101340]
lea rcx, [rbp]
call fcn.14008c5a8
nop
mov dword [rsp + 0x60], 1
cmp r14, 0xffffffffffffffff
je 0x14001ed9d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 4
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.14006cb10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14001eda2
call fcn.14006cb10
mov esi, reloc.WS2_32.dll_recv
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov word [rbp - 0x10], di
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0xc], eax
mov word [rbp - 0xe], r13w
cmp r14, 0xffffffffffffffff
jne 0x14001ede9
call fcn.14006cb10
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14001ee2f
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
lea rdx, [rbp - 0x10]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_bind]
mov edi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movaps xmm6, xmmword [rsp + 0x40]
test edi, edi
jne 0x14001ee2a
call fcn.14006cb10
jmp 0x14001ee9e
cmp edi, 0xffffffff
jne 0x14001ee9e
movd eax, xmm6
test eax, eax
je 0x14001ee9e
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084aa0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140004580
lea rdx, [0x140101340]
lea rcx, [rbp]
call fcn.14008c5a8
nop
cmp r14, 0xffffffffffffffff
jne 0x14001eebd
call fcn.14006cb10
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14001ef0e
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x50], esi
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x10]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_getsockname]
mov edi, eax
movsxd rsi, dword [rsp + 0x50]
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movaps xmm6, xmmword [rsp + 0x40]
test edi, edi
jne 0x14001ef09
call fcn.14006cb10
jmp 0x14001ef7d
cmp edi, 0xffffffff
jne 0x14001ef7d
movd eax, xmm6
test eax, eax
je 0x14001ef7d
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084aa0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140004580
lea rdx, [0x140101340]
lea rcx, [rbp]
call fcn.14008c5a8
nop
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp - 0xc], eax
cmp r14, 0xffffffffffffffff
jne 0x14001efac
call fcn.14006cb10
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14001eff0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 0x7fffffff
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
mov edi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movaps xmm6, xmmword [rsp + 0x40]
test edi, edi
jne 0x14001efeb
call fcn.14006cb10
jmp 0x14001f05f
cmp edi, 0xffffffff
jne 0x14001f05f
movd eax, xmm6
test eax, eax
je 0x14001f05f
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084aa0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140004580
lea rdx, [0x140101340]
lea rcx, [rbp]
call fcn.14008c5a8
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
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_WSASocketA]
mov rdi, rax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movaps xmm6, xmmword [rsp + 0x40]
cmp rdi, 0xffffffffffffffff
je 0x14001f0c4
mov dword [rsp + 0x40], r13d
call fcn.14006cb10
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
mov r15, rdi
mov qword [rbp - 0x80], r15
cmp r15, 0xffffffffffffffff
jne 0x14001f15f
movd eax, xmm6
test eax, eax
je 0x14001f141
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084aa0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140004580
lea rdx, [0x140101340]
lea rcx, [rbp]
call fcn.14008c5a8
nop
call fcn.14006cb10
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm6
jmp 0x14001f1bf
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
lea rdx, [rbp - 0x10]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.14006cb10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movaps xmm6, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm6
test edi, edi
jne 0x14001f1ba
mov dword [rsp + 0x70], r13d
call fcn.14006cb10
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x14001f22e
cmp edi, 0xffffffff
jne 0x14001f22e
movd eax, xmm6
test eax, eax
je 0x14001f22e
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084aa0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140004580
lea rdx, [0x140101340]
lea rcx, [rbp]
call fcn.14008c5a8
nop
lea r9, [rsp + 0x40]
mov rcx, r14
call fcn.14001dee0
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14001f2bc
cmp dword [rsp + 0x40], 0
je 0x14001f2bc
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084aa0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140004580
lea rdx, [0x140101340]
lea rcx, [rbp]
call fcn.14008c5a8
nop
mov dword [rsp + 0x64], 1
cmp r15, 0xffffffffffffffff
jne 0x14001f2e3
call fcn.14006cb10
mov dword [rsp + 0x50], 0x2719
mov qword [rsp + 0x58], rax
movaps xmm6, xmmword [rsp + 0x50]
jmp 0x14001f338
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rsp + 0x64]
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
call fcn.14006cb10
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rdi
movaps xmm6, xmmword [rsp + 0x50]
test esi, esi
js 0x14001f336
mov dword [rsp + 0x50], r13d
call fcn.14006cb10
mov qword [rsp + 0x58], rax
movaps xmm6, xmmword [rsp + 0x50]
test esi, esi
je 0x14001f3a7
movd eax, xmm6
test eax, eax
je 0x14001f3a7
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084aa0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], r13
mov byte [rbp - 0x38], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140004530
nop
mov rdx, rax
lea rcx, [rbp]
call fcn.140004580
lea rdx, [0x140101340]
lea rcx, [rbp]
call fcn.14008c5a8
nop
mov dword [rsp + 0x60], 1
cmp r15, 0xffffffffffffffff
jne 0x14001f3c4
call fcn.14006cb10
mov dword [rsp + 0x50], 0x2719
jmp 0x14001f41d
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.14006cb10
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rdi
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
test esi, esi
jne 0x14001f42d
mov dword [rsp + 0x50], r13d
call fcn.14006cb10
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x64], 1
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001e5e0
test eax, eax
je 0x14001f473
cmp dword [rsp + 0x40], 0
je 0x14001f473
lea rdx, str.socket_select_interrupter
lea rcx, [rsp + 0x40]
call fcn.140001ac0
int3
mov dword [rsp + 0x60], 1
cmp rbx, 0xffffffffffffffff
je 0x14001f4b9
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.14006cb10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x14001f4be
call fcn.14006cb10
mov qword [r12], rbx
mov qword [r12 + 8], r15
cmp r14, 0xffffffffffffffff
je 0x14001f4f6
mov dword [rsp + 0x40], r13d
call fcn.14006cb10
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x30], 0
lea r9, [rsp + 0x40]
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14001dfb0
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140084a30
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret