Function at 0x1400c9198
Capabilities:
Connect socket
Set socket configuration

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
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdx, qword [rcx + 0x10]
or r12, 0xffffffffffffffff
mov rbx, rcx
cmp rdx, r12
je 0x1400c91eb
mov rcx, qword [rcx + 0x20]
xor r8d, r8d
call fcn.1400c8858
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x18]
mov r9d, dword [rbx + 0x90]
mov r8, qword [rbx + 0x78]
mov rax, qword [rcx]
xor edi, edi
xor edx, edx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [rax]
mov rax, qword [rbx + 0x78]
lea ecx, [rdi + 2]
cmp dword [rax + 0x10], edi
jne 0x1400c921d
mov r14d, edi
jmp 0x1400c9232
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400c922f
mov r14d, dword [rax + 4]
jmp 0x1400c9232
mov r14d, ecx
mov rcx, qword [rbx + 0x20]
mov rdx, rbx
mov rcx, qword [rcx]
call fcn.1400c7e6c
xor r8d, r8d
mov ecx, r14d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
cmp rax, r12
jne 0x1400c9266
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x1400c949b
mov qword [rbx + 0x10], rax
mov esi, 4
mov r12d, 0xffff
cmp dword [rbx + 0x64], edi
je 0x1400c929b
lea r9, [rbp - 0x40]
mov r8d, 0x100
mov edx, r12d
mov rcx, rax
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [rbx + 0x68], edi
je 0x1400c92c1
mov edx, 6
lea r9, [rbp - 0x40]
mov rcx, r15
lea r8d, [rdx - 5]
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [rbx + 0x6c], edi
je 0x1400c92e7
lea r9, [rbp - 0x40]
mov r8d, 8
mov edx, r12d
mov rcx, r15
mov dword [rbp - 0x40], 1
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [rbx + 0x70], edi
je 0x1400c92f3
mov esi, 0x3ff
jmp 0x1400c92f6
movzx esi, di
mov edx, 0x1c
lea r13, [rbp - 0x28]
lea rcx, [rbp - 0x38]
lea edi, [rdx - 5]
lea r12d, [rdx - 0xc]
cmp r14d, edi
cmove r12d, edx
cmovne r13, rcx
movsxd rax, r14d
cmp rax, rdi
jne 0x1400c933f
mov r8, rdx
lea rcx, [rbp - 0x28]
xor edx, edx
call qword [sym.imp.msvcrt.dll_memset]
movzx ecx, si
mov word [rbp - 0x28], di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x26], ax
jmp 0x1400c9360
mov eax, 2
xor ecx, ecx
mov word [rbp - 0x38], ax
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, si
mov dword [rbp - 0x34], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x36], ax
mov r8d, r12d
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400c939a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2740
jne 0x1400c93a0
test si, si
je 0x1400c93a6
dec si
je 0x1400c93a6
mov edi, reloc.OLEAUT32.dll_SafeArrayUnaccessData
lea edx, [rdi + 5]
jmp 0x1400c9315
xor esi, esi
mov edi, esi
jmp 0x1400c93a2
xor esi, esi
test edi, edi
je 0x1400c93b2
lea rax, str.Network_error__winsock_.
jmp 0x1400c946a
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400c941c
mov ecx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
cmp r14d, ecx
jne 0x1400c9407
mov word [rbp - 0x28], cx
movzx ecx, word [rbx + 0x90]
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rbx + 0x80]
mov word [rbp - 0x26], ax
mov rax, qword [rdx + 0x20]
movups xmm0, xmmword [rax + 8]
movdqu xmmword [rbp - 0x20], xmm0
mov rax, qword [rdx + 0x20]
mov ecx, dword [rax + 4]
mov dword [rbp - 0x24], ecx
mov rax, qword [rdx + 0x20]
mov ecx, dword [rax + 0x18]
mov dword [rbp - 0x10], ecx
jmp 0x1400c9451
mov ecx, 2
mov word [rbp - 0x38], cx
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 4]
mov dword [rbp - 0x34], ecx
jmp 0x1400c9440
movsxd rdx, dword [rbx + 0x88]
mov eax, 2
mov word [rbp - 0x38], ax
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + 0x20]
mov ecx, dword [rcx + rdx*4]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x34], eax
movzx ecx, word [rbx + 0x90]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x36], ax
mov rcx, qword [rbx + 0x20]
mov r8b, 1
mov rdx, r15
call fcn.1400c8858
test rax, rax
je 0x1400c9474
mov edi, 1
mov qword [rbx + 8], rax
or r12, 0xffffffffffffffff
jmp 0x1400c94b1
mov r8d, r12d
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
or r12, 0xffffffffffffffff
cmp eax, r12d
jne 0x1400c94a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
je 0x1400c94af
lea rax, str.Network_error__winsock_.
mov qword [rbx + 8], rax
jmp 0x1400c94b1
mov dword [rbx + 0x4c], 1
mov edi, esi
mov rax, qword [rbx + 0x20]
xor esi, esi
mov rcx, qword [rax]
cmp qword [rcx + 8], rsi
je 0x1400c94cb
mov r8d, r12d
mov rdx, rbx
call fcn.1400c71e0
test edi, edi
je 0x1400c94f6
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 8]
mov r9d, dword [rbx + 0x90]
mov r10, qword [rcx]
mov r8, qword [rbx + 0x78]
mov edx, 1
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [r10]
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001010
lea r11, [rsp + 0x70]
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