Function at 0x1801a7850
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x180290300]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov rdi, r9
mov dword [rbp - 0x3c], 1
mov r14d, 2
lea rsi, str.C:Dev_vcpkg_buildtreescurl_srcurl_7_81_0_459d17a9d2.cleanlib_socketpair.c
mov ecx, r14d
mov qword [rsp + 0x20], rsi
lea r9d, [rdx + 0x4a]
lea r8d, [rdx + 5]
call fcn.180195c60
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1801a78b9
jmp 0x1801a7aaf
mov qword [rsp + 0x90], r15
mov ecx, 0x7f000001
xor r15d, r15d
mov word [rbp - 0x38], r14w
mov qword [rbp - 0x30], r15
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r15w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r15 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1801a7a71
lea r8d, [r15 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1801a7a71
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1801a7a71
cmp dword [rbp - 0x40], 0x10
jl 0x1801a7a71
lea edx, [r15 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1801a7a71
lea r9d, [r15 + 0x60]
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [r15 + 1]
mov ecx, r14d
call fcn.180195c60
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1801a7a71
lea r8d, [r15 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1801a7a71
lea edx, [r15 + 1]
mov rcx, rbx
call fcn.1801c2620
test eax, eax
js 0x1801a7a71
lea edx, [r15 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.18018fbf0
lea r9d, [r15 + 0x6d]
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1801954a0
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1801a7a71
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1801a7a71
cmp dword [rbp - 0x40], 0x10
jl 0x1801a7a71
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1801a7a71
cmp dword [rbp - 0x40], 0x10
jl 0x1801a7a71
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x1801a7a71
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x1801a7a71
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x1801a7a71
mov r8, rsi
lea edx, [r15 + 0x7f]
mov rcx, rbx
call fcn.180195b00
xor eax, eax
jmp 0x1801a7aa7
mov r8, rsi
mov edx, 0x83
mov rcx, rbx
call fcn.180195b00
mov rcx, qword [rdi]
mov r8, rsi
mov edx, 0x84
call fcn.180195b00
mov rcx, qword [rdi + 8]
mov r8, rsi
mov edx, 0x85
call fcn.180195b00
mov eax, 0xffffffff
mov r15, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1801d6f80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret