Function at 0x1401957a0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x188
mov rbx, qword [rcx + 0x10]
lea r15, [rsp + 0x60]
mov r14, rcx
mov r12, rdx
mov rcx, r15
call sym.Curl_now
movups xmm0, xmmword [rsp + 0x60]
lea rdx, [rbx + 8]
mov rcx, r12
lea r8, [rbx + 0x98]
movups xmmword [rbx + 0x148], xmm0
call sym.socket_open
mov r13d, eax
test eax, eax
jne 0x140195bb6
mov r13, qword [r14 + 0x10]
mov edx, dword [r13 + 0x14]
lea rcx, [r13 + 0x18]
lea r9, [r13 + 0x13c]
lea r8, [r13 + 0xe0]
call sym.Curl_addr2string
mov esi, eax
test al, al
je 0x140195823
cmp dword [rbx + 8], 0x17
jne 0x1401958dc
jmp 0x140195875
mov rsi, qword [sym.imp.msvcrt.dll__errno]
call rsi
mov eax, dword [rax]
mov dword [r13 + 0x178], eax
mov r13d, 2
call rsi
lea rdx, [rsp + 0x80]
mov r8d, 0x100
mov ecx, dword [rax]
call sym.Curl_strerror
mov qword [rsp + 0x58], rax
call rsi
mov r9, qword [rsp + 0x58]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov rcx, r12
mov r8d, dword [rax]
call sym.Curl_failf
jmp 0x140195bb6
lea r9, [rsp + 0x74]
mov rcx, qword [rbx + 0x98]
mov edx, 0x29
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
test r12, r12
je 0x14019591c
test byte [r12 + 0x986], 0x20
je 0x14019591c
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1401958c5
cmp dword [rax + 8], 0
jle 0x14019591c
mov r9d, dword [rbx + 0x13c]
lea r8, [rbx + 0xe0]
lea rdx, str.__Trying___s_:_d...
jmp 0x140195914
test r12, r12
je 0x14019591c
test byte [r12 + 0x986], 0x20
je 0x14019591c
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1401958ff
cmp dword [rax + 8], 0
jle 0x14019591c
mov r9d, dword [rbx + 0x13c]
lea r8, [rbx + 0xe0]
lea rdx, str.__Trying__s:_d...
mov rcx, r12
call sym.Curl_infof
mov eax, dword [rbx + 8]
cmp eax, 2
je 0x14019592c
xor r13d, r13d
cmp eax, 0x17
jne 0x140195955
mov r13d, dword [rbx + 0xc]
cmp r13d, 1
jne 0x140195952
test byte [r12 + 0x987], 2
je 0x140195955
mov rdx, qword [rbx + 0x98]
mov rcx, r12
call sym.tcpnodelay
jmp 0x140195955
xor r13d, r13d
mov rcx, qword [rbx + 0x98]
call sym.Curl_sndbufset
test r13d, r13d
je 0x140195ab8
test byte [r12 + 0x988], 1
je 0x140195ab8
lea r9, [rsp + 0x78]
mov r13, qword [rbx + 0x98]
mov edx, 0xffff
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x20], 4
mov r8d, 8
mov rcx, r13
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401959eb
test byte [r12 + 0x986], 0x20
je 0x140195ab8
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1401959d3
cmp dword [rax + 8], 0
jle 0x140195ab8
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 r9d, eax
jmp 0x140195ab0
mov ecx, dword [r12 + 0x910]
mov dword [rsp + 0x80], 1
call sym.curlx_sltosi
mov ecx, dword [r12 + 0x914]
imul eax, eax, 0x3e8
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x84], eax
call sym.curlx_sltosi
mov dword [rsp + 0x28], 0
mov r9d, 0xc
mov rcx, r13
imul eax, eax, 0x3e8
mov edx, 0x98000004
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x88], eax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140195ab8
test byte [r12 + 0x986], 0x20
je 0x140195ab8
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140195a9d
cmp dword [rax + 8], 0
jle 0x140195ab8
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 r9d, eax
mov rcx, r12
call sym.Curl_infof
cmp qword [r12 + 0x278], 0
jne 0x140195ac7
xor esi, esi
jmp 0x140195b11
mov edx, 1
mov rcx, r12
call sym.Curl_set_in_callback
mov rdx, qword [rbx + 0x98]
mov rcx, qword [r12 + 0x280]
xor r8d, r8d
call qword [r12 + 0x278]
xor edx, edx
mov rcx, r12
mov r13d, eax
call sym.Curl_set_in_callback
cmp r13d, 2
je 0x140195b11
test r13d, r13d
je 0x140195ac3
mov r13d, 0x2a
jmp 0x140195bb6
mov eax, dword [rbx + 8]
cmp eax, 2
je 0x140195b1e
cmp eax, 0x17
jne 0x140195b56
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
mov r13d, eax
test eax, eax
je 0x140195b56
cmp eax, 1
jne 0x140195bb6
mov r13d, 7
jmp 0x140195bb6
mov rcx, qword [rbx + 0x98]
mov edx, 1
call sym.curlx_nonblock
cmp dword [rbx + 0xc], 2
setne al
lea edx, [rax*4]
mov al, byte [rbx + 0x17c]
and eax, 0xfffffffb
or eax, edx
mov byte [rbx + 0x17c], al
test sil, sil
je 0x140195c2f
mov rcx, qword [r14 + 0x10]
mov rdx, r12
call sym.set_local_ip.isra.0
mov rcx, r15
call sym.Curl_now
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x158], xmm1
or byte [r14 + 0x24], 1
jmp 0x140195c2f
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x140195be0
mov rdx, qword [r14 + 0x18]
mov r8d, 1
mov rcx, r12
call sym.socket_close
mov qword [rbx + 0x98], 0xffffffffffffffff
test r12, r12
je 0x140195c34
test byte [r12 + 0x986], 0x20
je 0x140195c34
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140195c03
cmp dword [rax + 8], 0
jle 0x140195c34
mov rax, qword [r14]
cmp dword [rax + 0xc], 0
jle 0x140195c34
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
jmp 0x140195c34
xor r13d, r13d
jmp 0x140195be5
mov eax, r13d
add rsp, 0x188
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret