Function at 0x140022fa0
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 [0x14010b358]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r12, rcx
call fcn.140070830
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.140070830
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 0x140023048
mov r14, r15
jmp 0x14002305c
mov dword [rsp + 0x40], r13d
call fcn.140070830
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
mov qword [rbp - 0x70], r14
cmp r14, 0xffffffffffffffff
jne 0x1400230d5
movd eax, xmm6
test eax, eax
je 0x1400230d5
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400887d0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], shutdown
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, [0x140107820]
lea rcx, [rbp]
call fcn.1400905b8
nop
mov dword [rsp + 0x60], 1
cmp r14, 0xffffffffffffffff
je 0x14002311d
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.140070830
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140023122
call fcn.140070830
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 0x140023169
call fcn.140070830
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x1400231af
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.140070830
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 0x1400231aa
call fcn.140070830
jmp 0x14002321e
cmp edi, 0xffffffff
jne 0x14002321e
movd eax, xmm6
test eax, eax
je 0x14002321e
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400887d0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], shutdown
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, [0x140107820]
lea rcx, [rbp]
call fcn.1400905b8
nop
cmp r14, 0xffffffffffffffff
jne 0x14002323d
call fcn.140070830
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14002328e
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.140070830
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 0x140023289
call fcn.140070830
jmp 0x1400232fd
cmp edi, 0xffffffff
jne 0x1400232fd
movd eax, xmm6
test eax, eax
je 0x1400232fd
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400887d0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], shutdown
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, [0x140107820]
lea rcx, [rbp]
call fcn.1400905b8
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 0x14002332c
call fcn.140070830
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x140023370
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.140070830
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 0x14002336b
call fcn.140070830
jmp 0x1400233df
cmp edi, 0xffffffff
jne 0x1400233df
movd eax, xmm6
test eax, eax
je 0x1400233df
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400887d0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], shutdown
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, [0x140107820]
lea rcx, [rbp]
call fcn.1400905b8
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.140070830
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 0x140023444
mov dword [rsp + 0x40], r13d
call fcn.140070830
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
mov r15, rdi
mov qword [rbp - 0x80], r15
cmp r15, 0xffffffffffffffff
jne 0x1400234df
movd eax, xmm6
test eax, eax
je 0x1400234c1
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400887d0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], shutdown
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, [0x140107820]
lea rcx, [rbp]
call fcn.1400905b8
nop
call fcn.140070830
mov dword [rsp + 0x40], 0x2719
mov qword [rsp + 0x48], rax
movaps xmm6, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm6
jmp 0x14002353f
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.140070830
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 0x14002353a
mov dword [rsp + 0x70], r13d
call fcn.140070830
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x1400235ae
cmp edi, 0xffffffff
jne 0x1400235ae
movd eax, xmm6
test eax, eax
je 0x1400235ae
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400887d0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], shutdown
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, [0x140107820]
lea rcx, [rbp]
call fcn.1400905b8
nop
lea r9, [rsp + 0x40]
mov rcx, r14
call fcn.140022260
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x14002363c
cmp dword [rsp + 0x40], 0
je 0x14002363c
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400887d0
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], shutdown
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, [0x140107820]
lea rcx, [rbp]
call fcn.1400905b8
nop
mov dword [rsp + 0x64], 1
cmp r15, 0xffffffffffffffff
jne 0x140023663
call fcn.140070830
mov dword [rsp + 0x50], 0x2719
mov qword [rsp + 0x58], rax
movaps xmm6, xmmword [rsp + 0x50]
jmp 0x1400236b8
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.140070830
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 0x1400236b6
mov dword [rsp + 0x50], r13d
call fcn.140070830
mov qword [rsp + 0x58], rax
movaps xmm6, xmmword [rsp + 0x50]
test esi, esi
je 0x140023727
movd eax, xmm6
test eax, eax
je 0x140023727
lea rdx, str.socket_select_interrupter
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400887d0
lea rax, vtable.boost::system::system_error.0
mov qword [rbp - 0x60], rax
movups xmmword [rbp - 0x48], xmm6
mov qword [rbp - 0x20], shutdown
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, [0x140107820]
lea rcx, [rbp]
call fcn.1400905b8
nop
mov dword [rsp + 0x60], 1
cmp r15, 0xffffffffffffffff
jne 0x140023744
call fcn.140070830
mov dword [rsp + 0x50], 0x2719
jmp 0x14002379d
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.140070830
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 0x1400237ad
mov dword [rsp + 0x50], r13d
call fcn.140070830
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.140022960
test eax, eax
je 0x1400237f3
cmp dword [rsp + 0x40], 0
je 0x1400237f3
lea rdx, str.socket_select_interrupter
lea rcx, [rsp + 0x40]
call fcn.140001ac0
int3
mov dword [rsp + 0x60], 1
cmp rbx, 0xffffffffffffffff
je 0x140023839
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.140070830
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x14002383e
call fcn.140070830
mov qword [r12], rbx
mov qword [r12 + 8], r15
cmp r14, 0xffffffffffffffff
je 0x140023876
mov dword [rsp + 0x40], r13d
call fcn.140070830
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.140022330
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140088760
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