Function at 0x1400c1c20
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 + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r12, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor esi, esi
mov qword [rbp - 0x20], rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov edx, 1
mov ecx, 2
mov r8d, 6
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
mov r14, 0xffffffffffffffff
cmp rdi, r14
cmove rdi, r14
mov qword [rbp - 0x50], rdi
lea rax, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
lea rcx, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
cmp rdi, r14
jne 0x1400c1cdc
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], 0x32
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c1cdc
cmp qword [rbp - 0x20], 1
jne 0x1400c2593
cmp dword [rbp - 0x30], esi
setne al
test al, al
jne 0x1400c2593
mov dword [rbp + 0x50], 1
movabs rbx, 0x4d54ee85da812030
lea r13, [0x140275e80]
cmp rdi, 0xffffffffffffffff
jne 0x1400c1d4d
mov dword [rbp - 0x14], esi
mov rcx, qword [0x140275e88]
add rcx, rbx
cmp rcx, 1
jbe 0x1400c1d21
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c1d23
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c1d7b
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
mov r15d, select
mov qword [rbp - 0x38], rsi
mov eax, 2
mov word [rbp - 0x40], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x3c], eax
mov word [rbp - 0x3e], si
cmp rdi, 0xffffffffffffffff
jne 0x1400c1df9
mov dword [rbp - 0x14], esi
mov rcx, qword [0x140275e88]
add rcx, rbx
cmp rcx, 1
jbe 0x1400c1dcd
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c1dcf
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c1e1e
mov r8d, r15d
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
cmp ebx, 0xffffffff
jne 0x1400c1e62
lea rax, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x18], rax
lea rax, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x42
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c1e62
cmp qword [rbp - 0x20], 1
jne 0x1400c25a8
cmp dword [rbp - 0x30], 0
setne al
test al, al
jne 0x1400c25a8
cmp rdi, 0xffffffffffffffff
jne 0x1400c1ec5
mov dword [rbp - 0x14], esi
mov rcx, qword [0x140275e88]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x1400c1e99
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c1e9b
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c1efd
mov dword [rbp + 0x48], r15d
lea r8, [rbp + 0x48]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r15, dword [rbp + 0x48]
test eax, eax
setne dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
cmp ebx, 0xffffffff
movabs rbx, 0x4d54ee85da812030
jne 0x1400c1f41
lea rax, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x18], rax
lea rax, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x46
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c1f41
cmp qword [rbp - 0x20], 1
jne 0x1400c25bd
cmp dword [rbp - 0x30], 0
setne al
test al, al
jne 0x1400c25bd
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x3c], eax
jne 0x1400c1f5c
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x3c], eax
cmp rdi, 0xffffffffffffffff
jne 0x1400c1fb5
mov dword [rbp - 0x14], esi
mov rcx, qword [0x140275e88]
add rcx, rbx
cmp rcx, 1
jbe 0x1400c1f89
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c1f8b
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c1fd8
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
cmp ebx, 0xffffffff
jne 0x1400c201e
lea rbx, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x18], rbx
lea rax, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x50
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c2025
cmp qword [rbp - 0x20], 1
jne 0x1400c257e
cmp dword [rbp - 0x30], 0
setne al
test al, al
jne 0x1400c257e
jmp 0x1400c2025
lea rbx, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov edx, 1
mov ecx, 2
mov r8d, 6
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
cmp rsi, 0xffffffffffffffff
cmove rsi, r14
mov qword [rbp + 0x48], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400c2114
mov qword [rbp - 0x18], rbx
lea rax, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x55
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c20b0
cmp qword [rbp - 0x20], 1
jne 0x1400c25d2
cmp dword [rbp - 0x30], 0
setne al
test al, al
jne 0x1400c25d2
cmp rsi, 0xffffffffffffffff
jne 0x1400c2114
xor r15d, r15d
mov dword [rbp - 0x14], r15d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x140275e88]
cmp rcx, 1
jbe 0x1400c20e8
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c20ea
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c213c
mov r8d, r15d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
xor r15d, r15d
cmp ebx, 0xffffffff
jne 0x1400c2180
lea rax, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x18], rax
lea rax, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x59
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c2180
cmp qword [rbp - 0x20], 1
jne 0x1400c25e7
cmp dword [rbp - 0x30], 0
setne al
test al, al
jne 0x1400c25e7
cmp rdi, 0xffffffffffffffff
jne 0x1400c21e4
mov dword [rbp - 0x14], r15d
mov rcx, qword [0x140275e88]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x1400c21b8
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c21ba
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c222d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
cmp rbx, 0xffffffffffffffff
je 0x1400c2223
xorps xmm0, xmm0
mov qword [rbp - 8], r15
movups xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm0
mov r14, rbx
movabs rbx, 0x4d54ee85da812030
mov qword [rbp - 0x48], r14
cmp r14, 0xffffffffffffffff
jne 0x1400c227b
lea rax, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x18], rax
lea rax, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x5d
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c227b
cmp qword [rbp - 0x20], 1
jne 0x1400c25fc
cmp dword [rbp - 0x30], 0
setne al
test al, al
jne 0x1400c25fc
mov dword [rbp + 0x58], 1
cmp rsi, 0xffffffffffffffff
jne 0x1400c22dc
mov dword [rbp - 0x14], r15d
mov rcx, qword [0x140275e88]
add rcx, rbx
cmp rcx, 1
jbe 0x1400c22b0
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c22b2
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c2302
lea r8, [rbp + 0x58]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x30]
call fcn.1400be880
test ebx, ebx
je 0x1400c2346
lea rax, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x18], rax
lea rax, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x63
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c2346
cmp qword [rbp - 0x20], 1
jne 0x1400c2611
cmp dword [rbp - 0x30], 0
setne al
test al, al
jne 0x1400c2611
mov dword [rbp + 0x50], 1
cmp rsi, 0xffffffffffffffff
jne 0x1400c23b1
mov dword [rbp - 0x14], r15d
mov rcx, qword [0x140275e88]
movabs rbx, 0x4d54ee85da812030
add rcx, rbx
cmp rcx, 1
jbe 0x1400c2385
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c2387
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c23e9
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
mov edx, 6
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
movabs rbx, 0x4d54ee85da812030
mov dword [rbp + 0x58], 1
cmp r14, 0xffffffffffffffff
jne 0x1400c244a
mov dword [rbp - 0x14], r15d
mov rcx, qword [0x140275e88]
add rcx, rbx
cmp rcx, 1
jbe 0x1400c241e
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c2420
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0x2719
mov qword [rbp - 0x10], r13
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [rbp - 8]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400c2470
lea r8, [rbp + 0x58]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x30]
call fcn.1400be880
test ebx, ebx
je 0x1400c24b4
lea rax, str.C:_boost_1_86_0_boost_asiodetailimpl_socket_select_interrupter.ipp
mov qword [rbp - 0x18], rax
lea rax, str.void___cdecl_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], WSAGetLastError
mov dword [rbp - 4], 0x1a
test byte [rbp - 0x20], 1
je 0x1400c24b4
cmp qword [rbp - 0x20], 1
jne 0x1400c2569
cmp dword [rbp - 0x30], 0
setne al
test al, al
jne 0x1400c2569
mov dword [rbp + 0x50], 1
cmp r14, 0xffffffffffffffff
jne 0x1400c24ef
mov rdx, qword [0x140275e88]
movabs rcx, 0x4d54ee85da812030
add rdx, rcx
cmp rdx, 1
jbe 0x1400c251d
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1400c251d
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
mov edx, 6
mov r8d, 1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x30]
call fcn.1400be880
mov qword [r12], r14
mov qword [r12 + 8], rsi
cmp rdi, 0xffffffffffffffff
je 0x1400c254e
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r15
mov byte [rbp + 0x48], 0
lea r9, [rbp - 0x18]
mov r8b, 1
lea rdx, [rbp + 0x48]
mov rcx, rdi
call fcn.1400be9f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
nop
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
int3
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
int3
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
int3
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
nop
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
int3
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
nop
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
int3
lea r8, [rbp - 0x18]
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x30]
call fcn.1400be400
int3