Function at 0x1400374f0
Capabilities:
Connect socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov rbp, qword [rcx + 0x10]
mov rbx, rcx
mov rdi, rdx
mov rsi, r9
test byte [rcx + 0x24], 1
jne 0x1400375c0
cmp qword [rbp + 0x98], 0xffffffffffffffff
mov byte [r9], 0
je 0x140037540
mov eax, 7
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call sym.cf_socket_open
test eax, eax
jne 0x1400375d0
cmp dword [rbp], 5
je 0x140037630
test rdi, rdi
je 0x1400375a0
test byte [rdi + 0xa37], 0x10
je 0x1400375a0
mov rax, qword [rdi + 0x11e8]
test rax, rax
je 0x140037578
mov edx, dword [rax + 8]
test edx, edx
jle 0x1400375a0
mov rax, qword [rbx]
mov eax, dword [rax + 0xc]
test eax, eax
jle 0x1400375a0
mov r9, qword [rbp + 0x98]
lea r8, str.cf_udp_connect____opened_socket_zd__unconnected_
mov rdx, rbx
mov rcx, rdi
call sym.Curl_trc_cf_infof
nop dword [rax + rax]
mov byte [rsi], 1
xor eax, eax
or byte [rbx + 0x24], 1
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov byte [r9], 1
xor eax, eax
jmp 0x1400375a9
test rdi, rdi
je 0x140037529
test byte [rdi + 0xa37], 0x10
je 0x140037529
mov rdx, qword [rdi + 0x11e8]
test rdx, rdx
je 0x1400375fd
mov ebp, dword [rdx + 8]
test ebp, ebp
jle 0x140037529
mov rdx, qword [rbx]
mov esi, dword [rdx + 0xc]
test esi, esi
jle 0x140037529
mov r9d, eax
lea r8, str.cf_udp_connect____open_failed_____d
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x5c], eax
call sym.Curl_trc_cf_infof
mov eax, dword [rsp + 0x5c]
jmp 0x140037529
mov r12, qword [rbx + 0x10]
mov rcx, qword [r12 + 0x98]
mov r8d, dword [r12 + 0x14]
lea rdx, [r12 + 0x18]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14003777e
or byte [r12 + 0x150], 4
mov rcx, qword [rbx + 0x10]
mov rdx, rdi
call sym.set_local_ip.isra.0
test rdi, rdi
je 0x1400375a0
test byte [rdi + 0xa37], 0x10
je 0x1400375a0
mov rax, qword [rdi + 0x11e8]
test rax, rax
je 0x1400377a5
mov r11d, dword [rax + 8]
test r11d, r11d
jle 0x1400375a0
mov rax, qword [rbx]
mov r10d, dword [rax + 0xc]
test r10d, r10d
jle 0x14003773f
mov r9d, dword [r12 + 0xfc]
mov ecx, dword [r12 + 0x100]
lea r8, [r12 + 0xa0]
lea rdx, [r12 + 0xce]
mov rax, qword [r12 + 0x98]
cmp dword [r12], 5
mov qword [rsp + 0x38], r8
lea r8, str._s_socket__zd_connected:___s:_d_______s:_d_
mov dword [rsp + 0x40], r9d
lea r9, [0x140104b2e]
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov qword [rsp + 0x28], rdx
mov rdx, rbx
mov qword [rsp + 0x20], rax
lea rax, str.QUIC
cmove r9, rax
call sym.Curl_trc_cf_infof
test byte [rdi + 0xa37], 0x10
je 0x1400375a0
mov rax, qword [rdi + 0x11e8]
test rax, rax
je 0x14003773c
mov r8d, dword [rax + 8]
test r8d, r8d
jle 0x1400375a0
mov rax, qword [rbx]
mov ecx, dword [rax + 0xc]
test ecx, ecx
jle 0x1400375a0
mov eax, dword [rbp + 0x100]
mov rdx, rbx
mov rcx, rdi
mov r9, qword [rbp + 0x98]
add rbp, 0xce
lea r8, str.cf_udp_connect____opened_socket_zd___s:_d_
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call sym.Curl_trc_cf_infof
jmp 0x1400375a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
cmp eax, 0xb
je 0x140037797
lea eax, [rax - 0x2733]
cmp eax, 1
ja 0x1400377ba
test rdi, rdi
jne 0x140037716
jmp 0x1400375a0
mov rax, qword [rbx]
mov r9d, dword [rax + 0xc]
test r9d, r9d
jg 0x1400376ad
jmp 0x1400375a0
test rdi, rdi
je 0x140037807
test byte [rdi + 0xa37], 0x10
je 0x140037807
mov rax, qword [rdi + 0x11e8]
test rax, rax
je 0x1400377da
cmp dword [rax + 8], 0
jle 0x140037807
lea rdx, [rsp + 0x60]
mov r8d, 0x100
mov ecx, r13d
call sym.Curl_strerror
lea r8, [r12 + 0xa0]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, rdi
mov r9, rax
call sym.Curl_infof
mov dword [rdi + 0xc64], r13d
jmp 0x140037524