Function at 0x1400369a0
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 0x140036bd8
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 0x140036bf9
mov rax, qword [rbx + 0x20]
mov eax, dword [rax + 0x7a4]
test eax, eax
jne 0x140036bc0
mov rcx, qword [r12 + 0x10]
mov rdx, rbx
call sym.set_remote_ip.isra.0
mov esi, eax
test eax, eax
jne 0x140036d30
mov eax, dword [rbp + 8]
cmp eax, 0x17
je 0x140036d70
test byte [rbx + 0xa37], 0x10
je 0x140036a96
mov rdx, qword [rbx + 0x11e8]
test rdx, rdx
je 0x140036a76
mov r9d, dword [rdx + 8]
test r9d, r9d
jle 0x140036a96
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 0x140036c08
cmp eax, 0x17
je 0x140036c08
call sym.Curl_sndbuf_init
cmp qword [rbx + 0x270], 0
je 0x140036b02
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 0x140036df0
test r13d, r13d
jne 0x140036e00
xor r13d, r13d
mov eax, dword [rbp + 8]
cmp eax, 2
je 0x140036cb0
cmp eax, 0x17
je 0x140036cb0
mov rcx, qword [rbp + 0x98]
mov edx, 1
call sym.curlx_nonblock
test eax, eax
js 0x140036e18
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 0x140036e50
nop dword [rax + rax]
test byte [rbx + 0xa37], 0x10
je 0x140036ba8
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140036b7c
mov edx, dword [rax + 8]
test edx, edx
jle 0x140036ba8
mov rax, qword [r12]
mov eax, dword [rax + 0xc]
test eax, eax
jle 0x140036ba8
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 0x140036a35
mov dword [rbp + 0x30], eax
jmp 0x140036a35
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 0x140036a23
mov esi, 7
jmp 0x140036b60
cmp dword [rbp + 0xc], 1
jne 0x140036aaf
test byte [rbx + 0xa38], 1
jne 0x140036e38
call sym.Curl_sndbuf_init
cmp byte [rbx + 0xa38], 0
jns 0x140036ab4
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 0x140036e80
test byte [rbx + 0xa37], 0x10
je 0x140036ab4
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140036c8f
mov r8d, dword [rax + 8]
test r8d, r8d
jle 0x140036ab4
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 0x140036ab4
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 0x140036b1a
cmp eax, 1
mov esi, 7
mov rdi, qword [rbp + 0x98]
cmovne esi, eax
cmp rdi, 0xffffffffffffffff
je 0x140036b60
mov r13, qword [r12 + 0x18]
test r13, r13
je 0x140036d15
cmp qword [r13 + 0x18], 0
mov rdx, rdi
mov rcx, rbx
jne 0x140036d40
call sym.Curl_multi_closed
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x98], 0xffffffffffffffff
jmp 0x140036b60
mov rdi, qword [rbp + 0x98]
jmp 0x140036cef
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 0x140036d1e
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 0x140036a93
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140036dc3
mov r10d, dword [rax + 8]
test r10d, r10d
jle 0x140036a93
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 0x140036a96
mov r13d, 1
jmp 0x140036b05
mov rdi, qword [rbp + 0x98]
mov esi, 0x2a
jmp 0x140036cef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, 1
mov rdi, qword [rbp + 0x98]
mov dword [rbp + 0x14c], eax
jmp 0x140036cef
mov rdx, rcx
mov rcx, rbx
call sym.tcpnodelay
mov rcx, qword [rbp + 0x98]
jmp 0x140036c1f
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 0x140036b60
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 0x140036ab4
test byte [rbx + 0xa37], 0x10
je 0x140036ab4
mov rax, qword [rbx + 0x11e8]
test rax, rax
je 0x140036f2c
mov ecx, dword [rax + 8]
test ecx, ecx
jle 0x140036ab4
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 0x140036ab4