Function at 0x1400364d0
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbp, qword [rcx + 0x10]
lea rdi, [rsp + 0x50]
mov r12, rcx
mov rbx, rdx
mov rcx, rdi
call sym.Curl_now
movdqu xmm0, xmmword [rsp + 0x50]
cmp qword [rbx + 0x280], 0
movups xmmword [rbp + 0x108], xmm0
je 0x140036708
mov edx, 1
mov rcx, rbx
call sym.Curl_set_in_callback
mov rcx, qword [rbx + 0x288]
lea r8, [rbp + 8]
xor edx, edx
call qword [rbx + 0x280]
xor edx, edx
mov rcx, rbx
mov qword [rbp + 0x98], rax
call sym.Curl_set_in_callback
mov rax, qword [rbp + 0x98]
cmp rax, 0xffffffffffffffff
je 0x140036729
mov rax, qword [rbx + 0x20]
mov eax, dword [rax + 0x7a4]
test eax, eax
jne 0x1400366f0
mov rcx, qword [r12 + 0x10]
mov rdx, rbx
call sym.set_remote_ip.isra.0
mov esi, eax
test eax, eax
jne 0x140036860
mov eax, dword [rbp + 8]
cmp eax, 0x17
je 0x1400368a0
test byte [rbx + 0xa37], 0x10
je 0x1400365c6
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x1400365a6
mov r9d, dword [rdx + 8]
test r9d, r9d
jle 0x1400365c6
mov r9d, dword [rbp + 0xfc]
lea r8, [rbp + 0xa0]
lea rdx, str.__Trying__s:_d...
mov rcx, rbx
call sym.Curl_infof
mov eax, dword [rbp + 8]
mov rcx, qword [rbp + 0x98]
cmp eax, 2
je 0x140036738
cmp eax, 0x17
je 0x140036738
call sym.Curl_sndbuf_init
cmp qword [rbx + 0x270], 0
je 0x140036632
mov edx, 1
mov rcx, rbx
call sym.Curl_set_in_callback
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbx + 0x278]
xor r8d, r8d
call qword [rbx + 0x270]
xor edx, edx
mov rcx, rbx
mov r13d, eax
call sym.Curl_set_in_callback
cmp r13d, 2
je 0x140036920
test r13d, r13d
jne 0x140036930
xor r13d, r13d
mov eax, dword [rbp + 8]
cmp eax, 2
je 0x1400367e0
cmp eax, 0x17
je 0x1400367e0
mov rcx, qword [rbp + 0x98]
mov edx, 1
call sym.curlx_nonblock
test eax, eax
js 0x140036948
cmp dword [rbp + 0xc], 2
movzx eax, byte [rbp + 0x150]
setne dl
shl edx, 2
and eax, 0xfffffffb
or eax, edx
mov byte [rbp + 0x150], al
test r13b, r13b
jne 0x140036980
nop dword [rax + rax]
test byte [rbx + 0xa37], 0x10
je 0x1400366d8
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x1400366ac
mov edx, dword [rax + 8]
test edx, edx
jle 0x1400366d8
mov rax, qword [r12]
mov eax, dword [rax + 0xc]
test eax, eax
jle 0x1400366d8
mov rax, qword [rbp + 0x98]
mov r9d, esi
mov rdx, r12
mov rcx, rbx
lea r8, str.cf_socket_open_______d__fd_zd
mov qword [rsp + 0x20], rax
call sym.Curl_trc_cf_infof
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp dword [rbp + 8], 0x17
jne 0x140036565
mov dword [rbp + 0x30], eax
jmp 0x140036565
mov edx, dword [rbp + 0xc]
mov ecx, dword [rbp + 8]
mov r8d, dword [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x98], rax
cmp rax, 0xffffffffffffffff
jne 0x140036553
mov esi, 7
jmp 0x140036690
cmp dword [rbp + 0xc], 1
jne 0x1400365df
test byte [rbx + 0xa38], 1
jne 0x140036968
call sym.Curl_sndbuf_init
cmp byte [rbx + 0xa38], 0
jns 0x1400365e4
lea r9, [rsp + 0x6c]
mov r13, qword [rbp + 0x98]
mov edx, 0xffff
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x20], 4
mov r8d, 8
mov rcx, r13
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400369b0
test byte [rbx + 0xa37], 0x10
je 0x1400365e4
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x1400367bf
mov r8d, dword [rax + 8]
test r8d, r8d
jle 0x1400365e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r13
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__zd:_errno__d
mov rcx, rbx
mov r9d, eax
call sym.Curl_infof
jmp 0x1400365e4
lea rcx, [rbp + 0x18]
call sym.Curl_ipv6_scope
mov r9d, dword [rbp + 8]
mov rdx, qword [r12 + 0x18]
mov rcx, rbx
mov r8, qword [rbp + 0x98]
mov dword [rsp + 0x20], eax
call sym.bindlocal
test eax, eax
je 0x14003664a
cmp eax, 1
mov esi, 7
mov rdi, qword [rbp + 0x98]
cmovne esi, eax
cmp rdi, 0xffffffffffffffff
je 0x140036690
mov r13, qword [r12 + 0x18]
test r13, r13
je 0x140036845
cmp qword [r13 + 0x18], 0
mov rdx, rdi
mov rcx, rbx
jne 0x140036870
call sym.Curl_multi_closed
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
jmp 0x140036690
mov rdi, qword [rbp + 0x98]
jmp 0x14003681f
call sym.Curl_multi_closed
mov rcx, rbx
mov edx, 1
call sym.Curl_set_in_callback
mov rcx, qword [r13 + 0x20]
mov rdx, rdi
call qword [r13 + 0x18]
xor edx, edx
mov rcx, rbx
call sym.Curl_set_in_callback
jmp 0x14003684e
lea r9, [rsp + 0x74]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rbp + 0x98]
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test byte [rbx + 0xa37], 0x10
je 0x1400365c3
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x1400368f3
mov r10d, dword [rax + 8]
test r10d, r10d
jle 0x1400365c3
mov r9d, dword [rbp + 0xfc]
lea r8, [rbp + 0xa0]
lea rdx, str.__Trying___s_:_d...
mov rcx, rbx
call sym.Curl_infof
mov eax, dword [rbp + 8]
jmp 0x1400365c6
mov r13d, 1
jmp 0x140036635
mov rdi, qword [rbp + 0x98]
mov esi, 0x2a
jmp 0x14003681f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, 1
mov rdi, qword [rbp + 0x98]
mov dword [rbp + 0x14c], eax
jmp 0x14003681f
mov rdx, rcx
mov rcx, rbx
call sym.tcpnodelay
mov rcx, qword [rbp + 0x98]
jmp 0x14003674f
mov rcx, qword [r12 + 0x10]
mov rdx, rbx
call sym.set_local_ip.isra.0
mov rcx, rdi
call sym.Curl_now
movdqu xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x118], xmm1
or byte [r12 + 0x24], 1
jmp 0x140036690
mov ecx, dword [rbx + 0x9c4]
mov dword [rsp + 0x74], 1
call sym.curlx_sltosi
mov ecx, dword [rbx + 0x9c8]
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, r13
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 0x1400365e4
test byte [rbx + 0xa37], 0x10
je 0x1400365e4
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140036a5c
mov ecx, dword [rax + 8]
test ecx, ecx
jle 0x1400365e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r13
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__zd:_errno__d
mov rcx, rbx
mov r9d, eax
call sym.Curl_infof
jmp 0x1400365e4