Function at 0x14001e8e0
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.14006c660
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.14006c660
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 0x14001e988
mov r14, r15
jmp 0x14001e99c
mov dword [rsp + 0x40], r13d
call fcn.14006c660
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
mov qword [rbp - 0x70], r14
cmp r14, 0xffffffffffffffff
jne 0x14001ea15
movd eax, xmm6
test eax, eax
je 0x14001ea15
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084600
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, [0x140101260]
lea rcx, [rbp]
call fcn.14008c1c8
nop
mov dword [rsp + 0x60], 1
cmp r14, 0xffffffffffffffff
je 0x14001ea5d
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.14006c660
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14001ea62
call fcn.14006c660
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 0x14001eaa9
call fcn.14006c660
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14001eaef
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.14006c660
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 0x14001eaea
call fcn.14006c660
jmp 0x14001eb5e
cmp edi, 0xffffffff
jne 0x14001eb5e
movd eax, xmm6
test eax, eax
je 0x14001eb5e
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084600
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, [0x140101260]
lea rcx, [rbp]
call fcn.14008c1c8
nop
cmp r14, 0xffffffffffffffff
jne 0x14001eb7d
call fcn.14006c660
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14001ebce
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.14006c660
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 0x14001ebc9
call fcn.14006c660
jmp 0x14001ec3d
cmp edi, 0xffffffff
jne 0x14001ec3d
movd eax, xmm6
test eax, eax
je 0x14001ec3d
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084600
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, [0x140101260]
lea rcx, [rbp]
call fcn.14008c1c8
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 0x14001ec6c
call fcn.14006c660
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14001ecb0
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.14006c660
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 0x14001ecab
call fcn.14006c660
jmp 0x14001ed1f
cmp edi, 0xffffffff
jne 0x14001ed1f
movd eax, xmm6
test eax, eax
je 0x14001ed1f
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084600
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, [0x140101260]
lea rcx, [rbp]
call fcn.14008c1c8
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.14006c660
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 0x14001ed84
mov dword [rsp + 0x40], r13d
call fcn.14006c660
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
mov r15, rdi
mov qword [rbp - 0x80], r15
cmp r15, 0xffffffffffffffff
jne 0x14001ee1f
movd eax, xmm6
test eax, eax
je 0x14001ee01
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084600
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, [0x140101260]
lea rcx, [rbp]
call fcn.14008c1c8
nop
call fcn.14006c660
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm6
jmp 0x14001ee7f
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.14006c660
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 0x14001ee7a
mov dword [rsp + 0x70], r13d
call fcn.14006c660
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x14001eeee
cmp edi, 0xffffffff
jne 0x14001eeee
movd eax, xmm6
test eax, eax
je 0x14001eeee
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084600
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, [0x140101260]
lea rcx, [rbp]
call fcn.14008c1c8
nop
lea r9, [rsp + 0x40]
mov rcx, r14
call fcn.14001dba0
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14001ef7c
cmp dword [rsp + 0x40], 0
je 0x14001ef7c
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084600
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, [0x140101260]
lea rcx, [rbp]
call fcn.14008c1c8
nop
mov dword [rsp + 0x64], 1
cmp r15, 0xffffffffffffffff
jne 0x14001efa3
call fcn.14006c660
mov dword [rsp + 0x50], 0x2719
mov qword [rsp + 0x58], rax
movaps xmm6, xmmword [rsp + 0x50]
jmp 0x14001eff8
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.14006c660
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 0x14001eff6
mov dword [rsp + 0x50], r13d
call fcn.14006c660
mov qword [rsp + 0x58], rax
movaps xmm6, xmmword [rsp + 0x50]
test esi, esi
je 0x14001f067
movd eax, xmm6
test eax, eax
je 0x14001f067
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140084600
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, [0x140101260]
lea rcx, [rbp]
call fcn.14008c1c8
nop
mov dword [rsp + 0x60], 1
cmp r15, 0xffffffffffffffff
jne 0x14001f084
call fcn.14006c660
mov dword [rsp + 0x50], 0x2719
jmp 0x14001f0dd
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.14006c660
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 0x14001f0ed
mov dword [rsp + 0x50], r13d
call fcn.14006c660
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.14001e2a0
test eax, eax
je 0x14001f133
cmp dword [rsp + 0x40], 0
je 0x14001f133
lea rdx, str.socket_select_interrupter
lea rcx, [rsp + 0x40]
call fcn.140001ac0
int3
mov dword [rsp + 0x60], 1
cmp rbx, 0xffffffffffffffff
je 0x14001f179
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.14006c660
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x14001f17e
call fcn.14006c660
mov qword [r12], rbx
mov qword [r12 + 8], r15
cmp r14, 0xffffffffffffffff
je 0x14001f1b6
mov dword [rsp + 0x40], r13d
call fcn.14006c660
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.14001dc70
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140084590
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