Function at 0x1400f7790
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
mov r14, rcx
call fcn.1400f7a70
cmp dword [r14], 0
je 0x1400f7a4a
test rdi, rdi
je 0x1400f7a4a
test ebx, ebx
je 0x1400f7a4a
mov r13d, dword [rsp + 0xe0]
test r13d, r13d
je 0x1400f77fa
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_WSASetLastError]
mov r12, qword [rsp + 0xd8]
test r12, r12
je 0x1400f7817
mov dword [r12], 0xfffffffd
cmp qword [r14 + 0x30], 0
jne 0x1400f7861
mov ecx, 0x118
call fcn.1400dba80
mov rbx, rax
test rax, rax
je 0x1400f7845
xor edx, edx
mov r8d, 0x118
mov rcx, rax
call fcn.140141ad0
xor r15d, r15d
jmp 0x1400f784b
xor r15d, r15d
mov ebx, r15d
mov qword [r14 + 0x30], rbx
xor edx, edx
mov r8d, 0x118
mov rcx, rbx
call fcn.140141ad0
jmp 0x1400f7864
xor r15d, r15d
mov rdi, qword [r14 + 0x30]
mov qword [rsp + 0x40], rdi
test rdi, rdi
je 0x1400f7a1f
cmp dword [r14 + 4], 0
jne 0x1400f79bc
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1400f7060
nop
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x48], rbx
cmp rbx, qword [rsp + 0x60]
je 0x1400f7987
mov rsi, qword [rbx]
cmp qword [rsi + 0x10], 0x80
jbe 0x1400f78b6
jmp 0x1400f797e
xor r8d, r8d
lea edx, [r8 + 2]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x1400f78e8
mov dword [rsp + 0x34], 1
lea rdx, [0x140307c28]
lea rcx, [rsp + 0x34]
call fcn.1401419e8
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, qword [rdi]
call qword [sym.imp.WSOCK32.dll_setsockopt]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, qword [rdi]
call qword [sym.imp.WSOCK32.dll_getsockopt]
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1400f7972
lea rcx, [rdi + 0x90]
mov r8, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
call fcn.1401415b0
mov eax, dword [rsi + 0x10]
mov dword [rdi + 0x110], eax
mov dword [r14 + 4], 1
jmp 0x1400f7987
mov rcx, qword [rdi]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rdi], r15
add rbx, 8
jmp 0x1400f7894
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400f79b5
mov r8, qword [rsp + 0x68]
sub r8, rdx
sar r8, 3
lea rcx, [rsp + 0x58]
call fcn.1400cce60
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
cmp dword [r14 + 4], 0
je 0x1400f7a03
mov dword [rsp + 0x20], r15d
mov r9d, dword [rsp + 0xc8]
mov r8, qword [rsp + 0xc0]
mov rdx, rdi
mov rcx, r14
call fcn.1400f76f0
test eax, eax
je 0x1400f7a03
test r12, r12
je 0x1400f79e9
mov dword [r12], r15d
mov rbx, qword [rsp + 0xd0]
test rbx, rbx
je 0x1400f7a1f
xor ecx, ecx
call fcn.1401541c8
mov qword [rbx + 8], rax
jmp 0x1400f7a1f
test r12, r12
je 0x1400f7a12
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [r12], eax
lea rdx, [r14 + 0x30]
mov rcx, r14
call fcn.1400f6fe0
nop
jmp 0x1400f7a36
test r13d, r13d
je 0x1400f7a45
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
jmp 0x1400f7a5f
mov rax, qword [rsp + 0xd8]
test rax, rax
je 0x1400f7a5d
mov dword [rax], 0xfffffffe
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret