Function at 0x14003ac70
Capabilities:
Connect socket

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
mov r12, rcx
mov r14, rdx
mov rbx, r9
test byte [rcx + 0x24], 1
jne 0x14003ad40
mov rsi, qword [rcx + 0x10]
mov r13d, 7
mov byte [r9], 0
cmp qword [rsi + 0x98], 0xffffffffffffffff
je 0x14003acc8
mov eax, r13d
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sym.cf_socket_open
mov r13d, eax
test eax, eax
jne 0x14003ad50
cmp dword [rsi], 5
je 0x14003adb0
test r14, r14
je 0x14003ad28
test byte [r14 + 0xa47], 0x10
je 0x14003ad28
mov rax, qword [r14 + 0x1270]
test rax, rax
je 0x14003ad01
mov r8d, dword [rax + 8]
test r8d, r8d
jle 0x14003ad28
mov rax, qword [r12]
mov ecx, dword [rax + 0xc]
test ecx, ecx
jle 0x14003ad28
mov r9, qword [rsi + 0x98]
lea r8, str.cf_udp_connect____opened_socket_zd__unconnected_
mov rdx, r12
mov rcx, r14
call sym.Curl_trc_cf_infof
nop dword [rax]
mov byte [rbx], 1
or byte [r12 + 0x24], 1
jmp 0x14003acac
mov byte [r9], 1
xor r13d, r13d
jmp 0x14003acac
test r14, r14
je 0x14003acac
test byte [r14 + 0xa47], 0x10
je 0x14003acac
mov rax, qword [r14 + 0x1270]
test rax, rax
je 0x14003ad7e
mov esi, dword [rax + 8]
test esi, esi
jle 0x14003acac
mov rax, qword [r12]
mov ebx, dword [rax + 0xc]
test ebx, ebx
jle 0x14003acac
mov r9d, r13d
lea r8, str.cf_udp_connect____open_failed_____d
mov rdx, r12
mov rcx, r14
call sym.Curl_trc_cf_infof
jmp 0x14003acac
mov rdi, qword [r12 + 0x10]
mov rcx, qword [rdi + 0x98]
mov r8d, dword [rdi + 0x14]
lea rdx, [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14003aef3
or byte [rdi + 0x150], 8
mov rcx, qword [r12 + 0x10]
mov rdx, r14
call sym.set_local_ip.isra.0
test r14, r14
je 0x14003ad28
test byte [r14 + 0xa47], 0x10
je 0x14003ad28
mov rax, qword [r14 + 0x1270]
test rax, rax
je 0x14003af20
mov r11d, dword [rax + 8]
test r11d, r11d
jle 0x14003aea1
mov rdx, qword [r12]
mov edx, dword [rdx + 0xc]
test edx, edx
jle 0x14003aea1
mov ecx, dword [rdi + 0x100]
mov r9d, dword [rdi + 0xfc]
lea r8, [rdi + 0xa0]
lea rdx, [rdi + 0xce]
mov rax, qword [rdi + 0x98]
cmp dword [rdi], 5
mov qword [rsp + 0x38], r8
lea r8, str._s_socket__zd_connected:___s:_d_______s:_d_
mov dword [rsp + 0x40], r9d
lea r9, str.QUIC
mov dword [rsp + 0x30], ecx
mov rcx, r14
mov qword [rsp + 0x28], rdx
mov rdx, r12
mov qword [rsp + 0x20], rax
lea rax, [0x140160a6e]
cmovne r9, rax
call sym.Curl_trc_cf_infof
test byte [r14 + 0xa47], 0x10
je 0x14003ad28
mov rax, qword [r14 + 0x1270]
test rax, rax
je 0x14003aeae
mov r10d, dword [rax + 8]
test r10d, r10d
jle 0x14003ad28
mov rax, qword [r12]
mov r9d, dword [rax + 0xc]
test r9d, r9d
jle 0x14003ad28
mov eax, dword [rsi + 0x100]
mov rdx, r12
mov rcx, r14
mov r9, qword [rsi + 0x98]
add rsi, 0xce
lea r8, str.cf_udp_connect____opened_socket_zd___s:_d_
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call sym.Curl_trc_cf_infof
jmp 0x14003ad28
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0xb
je 0x14003af0b
lea eax, [rax - 0x2733]
cmp eax, 1
ja 0x14003af34
test r14, r14
jne 0x14003ae87
jmp 0x14003ad28
mov rax, qword [r12]
mov eax, dword [rax + 0xc]
test eax, eax
jg 0x14003ae26
jmp 0x14003ad28
test r14, r14
je 0x14003af80
test byte [r14 + 0xa47], 0x10
je 0x14003af80
mov rax, qword [r14 + 0x1270]
test rax, rax
je 0x14003af55
cmp dword [rax + 8], 0
jle 0x14003af80
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, ebp
call sym.Curl_strerror
lea r8, [rdi + 0xa0]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, r14
mov r9, rax
call sym.Curl_infof
mov dword [r14 + 0xc7c], ebp
mov r13d, 7
jmp 0x14003acac