Function at 0x140135890
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
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140491ab8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r12, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
xor edi, edi
mov qword [rbp + 7], rdi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea edx, [rdi + 1]
lea r8d, [rdi + 6]
mov r15d, 2
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 9]
call fcn.140131be0
mov r14, 0xffffffffffffffff
cmp rsi, r14
cmove rsi, r14
mov qword [rbp - 0x31], rsi
movabs rbx, 0x4d54ee85da812030
lea r13, [0x1404926e8]
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
lea rcx, str.open_descriptors
cmp rsi, r14
jne 0x140135975
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rcx
mov dword [rbp - 0x11], gethostbyname
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x1401359ad
cmp qword [rbp + 7], 1
jne 0x140136247
cmp dword [rbp - 9], edi
setne al
test al, al
jne 0x140136247
mov dword [rbp + 0xf], 1
cmp rsi, 0xffffffffffffffff
jne 0x140135a65
mov dword [rbp - 0x1d], edi
mov rcx, qword [0x1404926f0]
add rcx, rbx
cmp rcx, 1
jbe 0x1401359b6
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1401359b8
mov dword [rbp + 0xf], 1
jmp 0x140135986
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
mov r15d, reloc.WS2_32.dll_recv
mov qword [rbp + 0x1f], rdi
mov eax, 2
mov word [rbp + 0x17], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
mov word [rbp + 0x19], di
cmp rsi, 0xffffffffffffffff
jne 0x140135ab4
mov dword [rbp - 0x1d], edi
mov rcx, qword [0x1404926f0]
add rcx, rbx
cmp rcx, 1
jbe 0x140135a36
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140135a38
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
jmp 0x140135aea
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0xf]
mov edx, 0xffff
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 9]
call fcn.140131be0
mov qword [rbp + 0x1f], rdi
mov word [rbp + 0x17], r15w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
mov word [rbp + 0x19], di
mov r15d, reloc.WS2_32.dll_recv
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 9]
call fcn.140131be0
cmp ebx, 0xffffffff
jne 0x140135b87
movabs rbx, 0x4d54ee85da812030
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x21], rax
lea rax, str.open_descriptors
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x42
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x140135b2e
cmp qword [rbp + 7], 1
jne 0x14013625c
cmp dword [rbp - 9], 0
setne al
test al, al
jne 0x14013625c
cmp rsi, 0xffffffffffffffff
jne 0x140135b87
mov dword [rbp - 0x1d], edi
mov rcx, qword [0x1404926f0]
add rcx, rbx
cmp rcx, 1
jbe 0x140135b5b
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140135b5d
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
jmp 0x140135bb8
mov dword [rbp + 0x27], reloc.WS2_32.dll_recv
lea r8, [rbp + 0x27]
lea rdx, [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r15, dword [rbp + 0x27]
test eax, eax
setne dl
lea rcx, [rbp - 9]
call fcn.140131be0
cmp ebx, 0xffffffff
jne 0x140135bfc
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x21], rax
lea rax, str.open_descriptors
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x46
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x140135bfc
cmp qword [rbp + 7], 1
jne 0x140136271
cmp dword [rbp - 9], 0
setne al
test al, al
jne 0x140136271
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x1b], eax
jne 0x140135c17
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
cmp rsi, 0xffffffffffffffff
jne 0x140135c7a
mov dword [rbp - 0x1d], edi
mov rcx, qword [0x1404926f0]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x140135c4e
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140135c50
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
jmp 0x140135ca7
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 9]
call fcn.140131be0
cmp ebx, 0xffffffff
movabs rbx, 0x4d54ee85da812030
jne 0x140135ceb
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x21], rax
lea rax, str.open_descriptors
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x50
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x140135ceb
cmp qword [rbp + 7], 1
jne 0x140136286
cmp dword [rbp - 9], 0
setne al
test al, al
jne 0x140136286
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea edx, [r9 + 1]
lea ecx, [rdx + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 9]
call fcn.140131be0
cmp rdi, 0xffffffffffffffff
cmove rdi, r14
mov qword [rbp + 0x27], rdi
cmp rdi, 0xffffffffffffffff
jne 0x140135dcf
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x21], rax
lea rax, str.open_descriptors
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x55
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x140135d78
cmp qword [rbp + 7], 1
jne 0x14013629b
cmp dword [rbp - 9], 0
setne al
test al, al
jne 0x14013629b
xor r15d, r15d
mov dword [rbp - 0x1d], r15d
mov rcx, qword [0x1404926f0]
add rcx, rbx
cmp rcx, 1
jbe 0x140135da3
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140135da5
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
jmp 0x140135df7
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 9]
call fcn.140131be0
xor r15d, r15d
cmp ebx, 0xffffffff
jne 0x140135e3b
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x21], rax
lea rax, str.open_descriptors
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x59
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x140135e3b
cmp qword [rbp + 7], 1
jne 0x1401362b0
cmp dword [rbp - 9], 0
setne al
test al, al
jne 0x1401362b0
cmp rsi, 0xffffffffffffffff
jne 0x140135e9f
mov dword [rbp - 0x1d], r15d
mov rcx, qword [0x1404926f0]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x140135e73
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140135e75
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
jmp 0x140135ee8
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 9]
call fcn.140131be0
cmp rbx, 0xffffffffffffffff
je 0x140135ede
xorps xmm0, xmm0
mov qword [rbp - 0x11], r15
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm0
mov r14, rbx
movabs rbx, 0x4d54ee85da812030
mov qword [rbp - 0x29], r14
cmp r14, 0xffffffffffffffff
jne 0x140135f36
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x21], rax
lea rax, str.open_descriptors
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x5d
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x140135f36
cmp qword [rbp + 7], 1
jne 0x1401362c5
cmp dword [rbp - 9], 0
setne al
test al, al
jne 0x1401362c5
mov dword [rbp + 0x13], 1
cmp rdi, 0xffffffffffffffff
jne 0x140135f97
mov dword [rbp - 0x1d], r15d
mov rcx, qword [0x1404926f0]
add rcx, rbx
cmp rcx, 1
jbe 0x140135f6b
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140135f6d
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
jmp 0x140135fbd
lea r8, [rbp + 0x13]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
sets dl
lea rcx, [rbp - 9]
call fcn.140131be0
test ebx, ebx
je 0x140136001
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x21], rax
lea rax, str.open_descriptors
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x63
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x140136001
cmp qword [rbp + 7], 1
jne 0x1401362da
cmp dword [rbp - 9], 0
setne al
test al, al
jne 0x1401362da
mov dword [rbp + 0xf], 1
cmp rdi, 0xffffffffffffffff
jne 0x14013606c
mov dword [rbp - 0x1d], r15d
mov rcx, qword [0x1404926f0]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x140136040
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140136042
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
jmp 0x1401360a2
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0xf]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 9]
call fcn.140131be0
movabs rbx, 0x4d54ee85da812030
mov dword [rbp + 0x13], 1
cmp r14, 0xffffffffffffffff
jne 0x140136103
mov dword [rbp - 0x1d], r15d
mov rcx, qword [0x1404926f0]
add rcx, rbx
cmp rcx, 1
jbe 0x1401360d7
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1401360d9
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], r13
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm1
jmp 0x140136129
lea r8, [rbp + 0x13]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
sets dl
lea rcx, [rbp - 9]
call fcn.140131be0
test ebx, ebx
je 0x14013616d
lea rax, str.C:_vcpkg_masterinstalledx64_windows_staticinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x21], rax
lea rax, str.open_descriptors
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], WSAStartup
mov dword [rbp - 0xd], 0x1a
test byte [rbp + 7], 1
je 0x14013616d
cmp qword [rbp + 7], 1
jne 0x140136232
cmp dword [rbp - 9], 0
setne al
test al, al
jne 0x140136232
mov dword [rbp + 0xf], 1
cmp r14, 0xffffffffffffffff
jne 0x1401361a8
mov rdx, qword [0x1404926f0]
movabs rbx, 0x4d54ee85da812030
add rdx, rbx
cmp rdx, 1
jbe 0x1401361d4
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1401361d4
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0xf]
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 - 9]
call fcn.140131be0
mov qword [r12], r14
mov qword [r12 + 8], rdi
cmp rsi, 0xffffffffffffffff
je 0x140136205
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r15
mov byte [rbp - 0x39], 0
lea r9, [rbp - 0x21]
mov r8b, 1
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.140131ca0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14035b0c0
lea r11, [rsp + 0xa0]
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 r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
nop
lea r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
int3
lea r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
int3
lea r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
int3
lea r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
nop
lea r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
int3
lea r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
nop
lea r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
int3
lea r8, [rbp - 0x21]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 9]
call fcn.1401314e0
int3