Function at 0x140037020
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 0x1400370f0
cmp qword [rbp + 0x98], 0xffffffffffffffff
mov byte [r9], 0
je 0x140037070
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 0x140037100
cmp dword [rbp], 5
je 0x140037160
test rdi, rdi
je 0x1400370d0
test byte [rdi + 0xa37], 0x10
je 0x1400370d0
mov rax, qword [rdi + 0x11e8]
test rax, rax
je 0x1400370a8
mov edx, dword [rax + 8]
test edx, edx
jle 0x1400370d0
mov rax, qword [rbx]
mov eax, dword [rax + 0xc]
test eax, eax
jle 0x1400370d0
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 0x1400370d9
test rdi, rdi
je 0x140037059
test byte [rdi + 0xa37], 0x10
je 0x140037059
mov rdx, qword [rdi + 0x11e8]
test rdx, rdx
je 0x14003712d
mov ebp, dword [rdx + 8]
test ebp, ebp
jle 0x140037059
mov rdx, qword [rbx]
mov esi, dword [rdx + 0xc]
test esi, esi
jle 0x140037059
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 0x140037059
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 0x1400372ae
or byte [r12 + 0x150], 4
mov rcx, qword [rbx + 0x10]
mov rdx, rdi
call sym.set_local_ip.isra.0
test rdi, rdi
je 0x1400370d0
test byte [rdi + 0xa37], 0x10
je 0x1400370d0
mov rax, qword [rdi + 0x11e8]
test rax, rax
je 0x1400372d5
mov r11d, dword [rax + 8]
test r11d, r11d
jle 0x1400370d0
mov rax, qword [rbx]
mov r10d, dword [rax + 0xc]
test r10d, r10d
jle 0x14003726f
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, [0x1400f9a0e]
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 0x1400370d0
mov rax, qword [rdi + 0x11e8]
test rax, rax
je 0x14003726c
mov r8d, dword [rax + 8]
test r8d, r8d
jle 0x1400370d0
mov rax, qword [rbx]
mov ecx, dword [rax + 0xc]
test ecx, ecx
jle 0x1400370d0
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 0x1400370d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
cmp eax, 0xb
je 0x1400372c7
lea eax, [rax - 0x2733]
cmp eax, 1
ja 0x1400372ea
test rdi, rdi
jne 0x140037246
jmp 0x1400370d0
mov rax, qword [rbx]
mov r9d, dword [rax + 0xc]
test r9d, r9d
jg 0x1400371dd
jmp 0x1400370d0
test rdi, rdi
je 0x140037337
test byte [rdi + 0xa37], 0x10
je 0x140037337
mov rax, qword [rdi + 0x11e8]
test rax, rax
je 0x14003730a
cmp dword [rax + 8], 0
jle 0x140037337
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 0x140037054