Function at 0x140196240
Capabilities:
Connect socket

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
mov r13, rcx
mov r12, rdx
mov rsi, r9
test byte [rcx + 0x24], 1
je 0x140196268
mov byte [rsi], 1
jmp 0x140196455
mov r14d, 1
test r8b, r8b
jne 0x140196547
mov rbx, qword [rcx + 0x10]
mov r14d, 7
mov byte [r9], 0
cmp qword [rbx + 0x98], 0xffffffffffffffff
jne 0x140196357
call sym.cf_socket_open
mov r14d, eax
test eax, eax
jne 0x140196481
test byte [r13 + 0x24], 1
jne 0x140196260
mov rdx, qword [r13 + 0x18]
mov rax, qword [r13 + 0x10]
or edi, 0xffffffff
test byte [rdx + 0x342], 8
jne 0x1401962d5
mov rcx, qword [rax + 0x98]
mov r8d, dword [rax + 0x14]
lea rdx, [rax + 0x18]
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [r13 + 0x10]
mov rdx, r12
mov ebp, eax
call sym.set_local_ip.isra.0
test r12, r12
je 0x140196339
test byte [r12 + 0x986], 0x20
je 0x140196339
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x14019630c
cmp dword [rax + 8], 0
jle 0x140196339
mov rax, qword [r13]
cmp dword [rax + 0xc], 0
jle 0x140196339
mov eax, dword [rbx + 0x140]
lea r9, [rbx + 0x10e]
mov rdx, r13
mov rcx, r12
lea r8, str.local_address__s_port__d...
mov dword [rsp + 0x20], eax
call sym.Curl_trc_cf_infof
inc edi
jne 0x140196357
lea rdx, [rbx + 0xe0]
mov r8d, ebp
mov rcx, r12
call sym.socket_connect_result
mov r14d, eax
jmp 0x14019647c
mov r8, qword [rbx + 0x98]
xor r9d, r9d
or rdx, 0xffffffffffffffff
or rcx, 0xffffffffffffffff
call sym.Curl_socket_check
test eax, eax
jne 0x1401963bb
test r12, r12
je 0x140196455
test byte [r12 + 0x986], 0x20
je 0x140196455
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1401963a1
cmp dword [rax + 8], 0
jle 0x140196455
mov rax, qword [r13]
lea r8, str.not_connected_yet
cmp dword [rax + 0xc], 0
jle 0x140196455
jmp 0x14019644a
cmp eax, 2
je 0x1401963d1
mov rdx, qword [r13 + 0x18]
test byte [rdx + 0x342], 8
je 0x14019645d
mov rcx, qword [rbx + 0x98]
lea rdx, [rbx + 0x178]
call sym.verifyconnect
test al, al
je 0x14019647c
lea rcx, [rsp + 0x40]
call sym.Curl_now
movups xmm0, xmmword [rsp + 0x40]
mov rcx, qword [r13 + 0x10]
mov rdx, r12
movups xmmword [rbx + 0x158], xmm0
call sym.set_local_ip.isra.0
mov byte [rsi], 1
or byte [r13 + 0x24], 1
test r12, r12
je 0x140196455
test byte [r12 + 0x986], 0x20
je 0x140196455
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140196439
cmp dword [rax + 8], 0
jle 0x140196455
mov rax, qword [r13]
cmp dword [rax + 0xc], 0
jle 0x140196455
lea r8, str.connected
mov rdx, r13
mov rcx, r12
call sym.Curl_trc_cf_infof
xor r14d, r14d
jmp 0x140196547
test al, 4
je 0x14019647c
mov rcx, qword [rbx + 0x98]
lea rdx, [rbx + 0x178]
mov r14d, 7
call sym.verifyconnect
jmp 0x140196481
test r14d, r14d
je 0x140196455
cmp dword [rbx + 0x178], 0
je 0x14019651a
mov rcx, qword [r13 + 0x10]
mov rdx, r12
call sym.set_local_ip.isra.0
mov ecx, dword [rbx + 0x178]
mov dword [r12 + 0xbb4], ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test byte [r12 + 0x986], 0x20
je 0x14019651a
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1401964cc
cmp dword [rax + 8], 0
jle 0x14019651a
mov ecx, dword [rbx + 0x178]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
call sym.Curl_strerror
mov r9d, dword [rbx + 0x13c]
lea r8, [rbx + 0xe0]
mov rcx, r12
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 0x140]
lea rdx, str.connect_to__s_port__u_from__s_port__d_failed:__s
mov dword [rsp + 0x28], eax
lea rax, [rbx + 0x10e]
mov qword [rsp + 0x20], rax
call sym.Curl_infof
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x140196544
mov rdx, qword [r13 + 0x18]
mov r8d, 1
mov rcx, r12
call sym.socket_close
mov qword [rbx + 0x98], 0xffffffffffffffff
mov byte [rsi], 0
mov eax, r14d
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret