Function at 0x14005f2f0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x30], xmm6
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov edi, r8d
mov r14d, edx
mov rsi, rcx
mov ecx, 0xa0
call fcn.14007caac
mov qword [rbp - 0x28], rax
call qword [sym.imp.TT_SubSystem.dll_class_boost::asio::io_context____ptr64___cdecl_GetIoContext_void_]
mov rbx, rax
test r14d, r14d
mov ecx, 0xfe3
cmovne ecx, r14d
xorps xmm6, xmm6
movups xmmword [rbp - 0x3c], xmm6
mov dword [rbp - 0x2c], 0
mov word [rbp - 0x44], 2
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x42], ax
mov dword [rbp - 0x40], 0
mov rcx, qword [rbx]
lea rax, vtable.type_info.0
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0
lea r8, [0x14005fb60]
lea rdx, [rbp - 0x20]
mov r9, rbx
call fcn.1400293d0
mov r14, rax
mov r12, rax
mov r13, qword [rbp - 0x28]
mov qword [r13], r14
lea r15, [r13 + 8]
mov dword [r13 + 0x40], 2
mov byte [r13 + 0x44], 0
movups xmmword [r13 + 0x50], xmm6
mov dword [r13 + 0x60], 0
mov qword [r13 + 0x48], 2
lea rax, [r13 + 0x68]
lea rcx, [0x1400853c0]
mov qword [r13 + 0x90], rcx
lea rcx, method.boost::asio::detail::deadline_timer_service_struct_boost::asio::time_traits_class_boost::posix_time::ptime__.virtual_8
mov qword [r13 + 0x80], rcx
mov qword [r13 + 0x70], rbx
mov qword [r13 + 0x88], rax
lea rax, [0x140085530]
mov qword [r13 + 0x98], rax
mov qword [r13 + 8], 0xffffffffffffffff
mov byte [r13 + 0x10], 0
lea rbx, [r14 + 0x28]
add r14, 0x50
movups xmmword [r13 + 0x18], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [r12 + 0x78]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], 0
test rax, rax
je 0x14005f43b
mov qword [rax + 0x30], r15
mov qword [rbx + 0x50], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
cmp qword [r15], 0xffffffffffffffff
movabs r12, 0x595588bd12bf6fe8
je 0x14005f4d1
mov rax, qword [0x1400acf68]
shr rax, 1
cmp rax, r12
je 0x14005f4a5
mov rax, qword [0x1400acf60]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f4a5
lea rcx, [0x1400acf60]
mov edx, 1
call rax
mov r13d, 2
test al, al
je 0x14005f4ab
mov r13d, 3
mov qword [rbp], 1
lea rax, [0x1400acf60]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r13
test r13b, 1
je 0x14005f67e
jmp 0x14005f6a7
mov rax, qword [rbp - 0x28]
mov r14, qword [rax]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, 2
mov edx, 1
mov r8d, 6
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14005f53a
mov rbx, rax
mov rax, qword [r14 + 0x30]
mov rdx, qword [rax + 0x28]
mov rcx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x14005f598
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
jmp 0x14005f604
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rax, qword [0x1400ab638]
shr rax, 1
cmp rax, r12
je 0x14005f575
mov rax, qword [0x1400ab630]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f575
lea rcx, [0x1400ab630]
mov edx, ebx
call rax
jmp 0x14005f57a
test ebx, ebx
setne al
movzx r13d, al
or r13, 2
mov dword [rbp], ebx
mov dword [rbp + 4], 0
lea rax, [0x1400ab630]
jmp 0x14005f4ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [0x1400ab638]
shr rax, 1
cmp rax, r12
je 0x14005f5d5
mov rax, qword [0x1400ab630]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f5d5
lea rcx, [0x1400ab630]
mov edx, r14d
call rax
jmp 0x14005f5db
test r14d, r14d
setne al
movzx eax, al
lea r13, [rax + 2]
mov dword [rbp], r14d
mov dword [rbp + 4], 0
lea rcx, [0x1400ab630]
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], r13
test al, al
jne 0x14005fa76
mov qword [r15], rbx
mov byte [r15 + 8], 0x10
mov ecx, 0x18
call fcn.14007caac
mov rcx, qword [rbp - 0x28]
add rcx, 0x18
movabs rdx, 0x100000001
mov qword [rax + 8], rdx
lea rdx, vtable.std::_Ref_count_resource_void____ptr64__struct_boost::asio::detail::socket_ops::noop_deleter_.0
mov qword [rax], rdx
mov qword [rax + 0x10], 0
mov qword [rcx], 0
mov rbx, qword [rcx + 8]
mov qword [rcx + 8], rax
test rbx, rbx
je 0x14005f66f
lock dec dword [rbx + 8]
jne 0x14005f66f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x14005f66f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
mov rdx, qword [rbp - 0x28]
lea rax, [rdx + 0x40]
mov rcx, rdx
add rcx, 0x4a
mov dword [rax], 2
mov byte [rdx + 0x44], 0
mov word [rdx + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rcx + 0xa], xmm0
movups xmmword [rcx], xmm0
mov rax, qword [rbp + 0x10]
mov ecx, eax
and ecx, 1
lea rdx, str.win_iocp_socket_service.hpp
or rdx, rcx
cmp rax, 2
cmovb rdx, rax
mov qword [rbp + 0x10], rdx
lea r14, str.basic_socket_acceptor.hpp
mov qword [rbp - 0x20], r14
lea r13, str.__cdecl_boost::asio::basic_socket_acceptor_boost::asio::ip::tcp_::basic_socket_acceptor_ExecutionContext___const_endpoint_type___bool__constraint_t_is_convertible_ExecutionContext___execution_context__::value____Protocol__boost::asio::ip::tcp__Executor__boost::asio::any_io_executor__ExecutionContext__boost::asio::io_context_
mov qword [rbp - 0x18], r13
movabs rax, 0x500000123
mov qword [rbp - 0x10], rax
lea rdx, str.open
mov rcx, rbp
lea r8, [rbp - 0x20]
call fcn.140029fd0
mov dword [rbp - 0x20], 1
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
je 0x14005f76d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x20]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14005f7e9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rax, qword [0x1400ab638]
shr rax, 1
cmp rax, r12
je 0x14005f7b9
mov rax, qword [0x1400ab630]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f7b9
lea rcx, [0x1400ab630]
mov edx, ebx
call rax
jmp 0x14005f7be
mov rax, qword [0x1400ab638]
shr rax, 1
cmp rax, r12
je 0x14005f7aa
mov rax, qword [0x1400ab630]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f7aa
lea rcx, [0x1400ab630]
mov edx, 0x2719
call rax
mov ecx, 2
test al, al
je 0x14005f7af
mov ecx, 3
mov qword [rbp], 0x2719
jmp 0x14005f7cf
test ebx, ebx
setne al
movzx ecx, al
or rcx, 2
mov dword [rbp], ebx
mov dword [rbp + 4], 0
lea rax, [0x1400ab630]
mov qword [rbp + 8], rax
and ecx, 1
lea rax, str.win_iocp_socket_service.hpp
or rax, rcx
jmp 0x14005f7f2
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
xor eax, eax
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r13
movabs rax, 0x700000128
mov qword [rbp - 0x10], rax
lea rdx, str.set_option
mov rcx, rbp
lea r8, [rbp - 0x20]
call fcn.140029fd0
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
je 0x14005f889
cmp word [rbp - 0x44], 2
mov eax, 0x10
mov r8d, 0x1c
cmove r8d, eax
lea rdx, [rbp - 0x44]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14005f905
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rax, qword [0x1400ab638]
shr rax, 1
cmp rax, r12
je 0x14005f8d5
mov rax, qword [0x1400ab630]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f8d5
lea rcx, [0x1400ab630]
mov edx, ebx
call rax
jmp 0x14005f8da
mov rax, qword [0x1400ab638]
shr rax, 1
cmp rax, r12
je 0x14005f8c6
mov rax, qword [0x1400ab630]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f8c6
lea rcx, [0x1400ab630]
mov edx, 0x2719
call rax
mov ecx, 2
test al, al
je 0x14005f8cb
mov ecx, 3
mov qword [rbp], 0x2719
jmp 0x14005f8eb
test ebx, ebx
setne al
movzx ecx, al
or rcx, 2
mov dword [rbp], ebx
mov dword [rbp + 4], 0
lea rax, [0x1400ab630]
mov qword [rbp + 8], rax
and ecx, 1
lea rax, str.win_iocp_socket_service.hpp
or rax, rcx
jmp 0x14005f90e
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
xor eax, eax
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r13
movabs rax, 0x50000012b
mov qword [rbp - 0x10], rax
lea rdx, [0x14008d2aa]
mov rcx, rbp
lea r8, [rbp - 0x20]
call fcn.140029fd0
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
je 0x14005f992
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14005fa14
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rax, qword [0x1400ab638]
shr rax, 1
cmp rax, r12
je 0x14005f9ed
mov rax, qword [0x1400ab630]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f9ed
lea rcx, [0x1400ab630]
mov edx, ebx
call rax
jmp 0x14005f9f2
mov rax, qword [0x1400ab638]
shr rax, 1
cmp rax, r12
je 0x14005f9cf
mov rax, qword [0x1400ab630]
mov rax, qword [rax + 0x30]
lea rcx, [method.boost::beast::http::detail::http_error_category.virtual_48]
cmp rax, rcx
je 0x14005f9cf
lea rcx, [0x1400ab630]
mov edx, 0x2719
call rax
mov ecx, 2
test al, al
je 0x14005f9d4
mov ecx, 3
mov qword [rbp], 0x2719
lea rax, [0x1400ab630]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rcx
jmp 0x14005fa23
test ebx, ebx
setne al
movzx eax, al
or rax, 2
mov dword [rbp], ebx
mov dword [rbp + 4], 0
lea rcx, [0x1400ab630]
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rax
jmp 0x14005fa23
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r13
movabs rax, 0x50000012e
mov qword [rbp - 0x10], rax
lea rdx, str.listen
mov rcx, rbp
lea r8, [rbp - 0x20]
call fcn.140029fd0
mov rax, qword [rbp - 0x28]
mov qword [rsi], rax
mov dword [rsi + 8], edi
mov rcx, rsi
call fcn.14005ffb0
movaps xmm6, xmmword [rbp + 0x30]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
mov byte [rbp + 0x27], 0
lea rdx, [rbp + 0x27]
lea r9, [rbp - 0x20]
mov rcx, rbx
mov r8b, 1
call fcn.14005fbc0
jmp 0x14005f4c2