Function at 0x14003a140
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x88
mov rbx, qword [rcx + 0x10]
lea r15, [rsp + 0x50]
mov r14, rcx
mov r12, rdx
mov rcx, r15
call sym.Curl_now
movdqu xmm0, xmmword [rsp + 0x50]
cmp qword [r12 + 0x290], 0
movups xmmword [rbx + 0x108], xmm0
je 0x14003a3a8
mov edx, 1
mov rcx, r12
call sym.Curl_set_in_callback
mov rcx, qword [r12 + 0x298]
lea r8, [rbx + 8]
xor edx, edx
call qword [r12 + 0x290]
xor edx, edx
mov rcx, r12
mov qword [rbx + 0x98], rax
call sym.Curl_set_in_callback
mov rax, qword [rbx + 0x98]
cmp rax, 0xffffffffffffffff
je 0x14003a3c9
mov rax, qword [r12 + 0x18]
mov eax, dword [rax + 0x78c]
test eax, eax
jne 0x14003a390
mov rcx, qword [r14 + 0x10]
mov rdx, r12
call sym.set_remote_ip.isra.0
mov r13d, eax
test eax, eax
jne 0x14003a490
mov eax, dword [rbx + 8]
cmp eax, 0x17
je 0x14003a528
test byte [r12 + 0xa47], 0x10
je 0x14003a240
mov rdx, qword [r12 + 0x1270]
test rdx, rdx
je 0x14003a220
mov r9d, dword [rdx + 8]
test r9d, r9d
jle 0x14003a240
mov r9d, dword [rbx + 0xfc]
lea r8, [rbx + 0xa0]
lea rdx, str.__Trying__s:_d...
mov rcx, r12
call sym.Curl_infof
mov eax, dword [rbx + 8]
mov rcx, qword [rbx + 0x98]
cmp eax, 2
je 0x14003a3d8
cmp eax, 0x17
je 0x14003a3d8
call sym.Curl_sndbuf_init
cmp qword [r12 + 0x280], 0
je 0x14003a2ad
mov edx, 1
mov rcx, r12
call sym.Curl_set_in_callback
mov rdx, qword [rbx + 0x98]
mov rcx, qword [r12 + 0x288]
xor r8d, r8d
call qword [r12 + 0x280]
xor edx, edx
mov rcx, r12
mov esi, eax
call sym.Curl_set_in_callback
cmp esi, 2
je 0x14003a5a8
test esi, esi
jne 0x14003a5d0
xor esi, esi
mov eax, dword [rbx + 8]
cmp eax, 2
je 0x14003a4e0
cmp eax, 0x17
je 0x14003a4e0
mov rcx, qword [rbx + 0x98]
mov edx, 1
call sym.curlx_nonblock
test eax, eax
js 0x14003a618
cmp dword [rbx + 0xc], 2
setne al
lea edx, [rax*8]
movzx eax, byte [rbx + 0x150]
and eax, 0xfffffff7
or eax, edx
mov byte [rbx + 0x150], al
test sil, sil
je 0x14003a328
mov rcx, qword [r14 + 0x10]
mov rdx, r12
call sym.set_local_ip.isra.0
mov rcx, r15
call sym.Curl_now
movdqu xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x118], xmm1
or byte [r14 + 0x24], 1
test byte [r12 + 0xa47], 0x10
je 0x14003a372
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x14003a347
mov edx, dword [rax + 8]
test edx, edx
jle 0x14003a372
mov rax, qword [r14]
mov eax, dword [rax + 0xc]
test eax, eax
jle 0x14003a372
mov rax, qword [rbx + 0x98]
mov r9d, r13d
mov rdx, r14
mov rcx, r12
lea r8, str.cf_socket_open_______d__fd_zd
mov qword [rsp + 0x20], rax
call sym.Curl_trc_cf_infof
mov eax, r13d
add rsp, 0x88
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp dword [rbx + 8], 0x17
jne 0x14003a1dc
mov dword [rbx + 0x30], eax
jmp 0x14003a1dc
mov edx, dword [rbx + 0xc]
mov ecx, dword [rbx + 8]
mov r8d, dword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x98], rax
cmp rax, 0xffffffffffffffff
jne 0x14003a1c9
mov r13d, 7
jmp 0x14003a328
cmp dword [rbx + 0xc], 1
jne 0x14003a259
test byte [r12 + 0xa48], 1
jne 0x14003a5b8
call sym.Curl_sndbuf_init
cmp byte [r12 + 0xa48], 0
jns 0x14003a25e
lea r9, [rsp + 0x6c]
mov rsi, qword [rbx + 0x98]
mov edx, 0xffff
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x20], 4
mov r8d, 8
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14003a640
test byte [r12 + 0xa47], 0x10
je 0x14003a25e
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x14003a466
mov r8d, dword [rax + 8]
test r8d, r8d
jle 0x14003a25e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rsi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__zd:_errno__d
mov rcx, r12
mov r9d, eax
call sym.Curl_infof
jmp 0x14003a25e
mov r15, qword [rbx + 0x98]
cmp r15, 0xffffffffffffffff
je 0x14003a328
mov rsi, qword [r14 + 0x18]
test rsi, rsi
je 0x14003a4c0
cmp qword [rsi + 0x20], 0
mov rdx, r15
mov rcx, r12
jne 0x14003a5e8
call sym.Curl_multi_closed
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x98], 0xffffffffffffffff
jmp 0x14003a328
lea rcx, [rbx + 0x18]
call sym.Curl_ipv6_scope
mov r9d, dword [rbx + 8]
mov rdx, qword [r14 + 0x18]
mov rcx, r12
mov r8, qword [rbx + 0x98]
mov dword [rsp + 0x20], eax
call sym.bindlocal
test eax, eax
je 0x14003a2c4
cmp eax, 1
mov r13d, 7
mov r15, qword [rbx + 0x98]
cmovne r13d, eax
jmp 0x14003a497
lea r9, [rsp + 0x74]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rbx + 0x98]
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test byte [r12 + 0xa47], 0x10
je 0x14003a23d
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x14003a57e
mov r10d, dword [rax + 8]
test r10d, r10d
jle 0x14003a23d
mov r9d, dword [rbx + 0xfc]
lea r8, [rbx + 0xa0]
lea rdx, str.__Trying___s_:_d...
mov rcx, r12
call sym.Curl_infof
mov eax, dword [rbx + 8]
jmp 0x14003a240
mov esi, 1
jmp 0x14003a2af
mov rdx, rcx
mov rcx, r12
call sym.tcpnodelay
mov rcx, qword [rbx + 0x98]
jmp 0x14003a3f1
mov r15, qword [rbx + 0x98]
mov r13d, 0x2a
jmp 0x14003a497
call sym.Curl_multi_closed
mov rcx, r12
mov edx, 1
call sym.Curl_set_in_callback
mov rcx, qword [rsi + 0x28]
mov rdx, r15
call qword [rsi + 0x20]
xor edx, edx
mov rcx, r12
call sym.Curl_set_in_callback
jmp 0x14003a4c9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, 1
mov r15, qword [rbx + 0x98]
mov dword [rbx + 0x14c], eax
jmp 0x14003a497
mov ecx, dword [r12 + 0x9d4]
mov dword [rsp + 0x74], 1
call sym.curlx_sltosi
mov ecx, dword [r12 + 0x9d8]
imul eax, eax, 0x3e8
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x78], eax
call sym.curlx_sltosi
mov dword [rsp + 0x28], 0
mov r9d, 0xc
mov rcx, rsi
imul eax, eax, 0x3e8
lea r8, [rsp + 0x74]
mov qword [rsp + 0x40], 0
mov edx, 0x98000004
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x7c], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14003a25e
test byte [r12 + 0xa47], 0x10
je 0x14003a25e
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x14003a6f3
mov ecx, dword [rax + 8]
test ecx, ecx
jle 0x14003a25e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rsi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__zd:_errno__d
mov rcx, r12
mov r9d, eax
call sym.Curl_infof
jmp 0x14003a25e