Function at 0x140353530
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140472e80]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, qword [rcx]
xor r12d, r12d
movsxd rbx, edx
mov rsi, rcx
mov qword [rbp - 0x50], 0xffffffffffffffff
mov r15, rbx
mov qword [rbp + 0x20], rbx
mov qword [rsp + 0x60], r12
cmp dword [rsi + 0x3dc], 2
lea rax, [rbx + rbx*2]
lea r13, [rcx + rax*8]
mov qword [rbp - 0x60], r12
mov ecx, 0x590
mov qword [rbp + 0x18], r13
lea r14d, [rcx - 0x18]
jne 0x1403535bf
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov eax, r14d
cmovne eax, ecx
cmp dword [rax + rsi], 2
je 0x1403535bf
mov rax, qword [rsi + 0x3c8]
jmp 0x1403535c6
mov rax, qword [rsi + 0x340]
mov edx, 1
mov qword [rbp - 0x58], rax
mov r9d, edx
lea ecx, [rdx + 4]
lea r8d, [rdx + 1]
call fcn.1403420d0
test al, al
je 0x1403535f1
lea rdx, str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc._n
mov rcx, rdi
call fcn.14033f2f0
cmp byte [rsi + 0x671], r12b
je 0x140353638
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.wine_get_version
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140353638
mov edx, 3
lea ecx, [rax + 6]
mov r9d, edx
lea r8d, [rax + 2]
call fcn.1403420d0
test al, al
je 0x140353638
mov cl, 1
jmp 0x14035363a
xor cl, cl
mov rax, qword [r13 + 0x550]
mov byte [rax + 0x6a], cl
cmp dword [rsi + 0x3dc], 2
jne 0x140353670
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x590
cmovne rax, rcx
cmp dword [rax + rsi], 2
je 0x140353670
mov rax, qword [rsi + 0x610]
jmp 0x140353677
mov rax, qword [rsi + 0x5c0]
test rax, rax
je 0x1403536bb
mov edx, 1
lea ecx, [rdx + 5]
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.1403420d0
test al, al
je 0x1403536a2
mov rax, qword [r13 + 0x550]
mov byte [rax + 0x6b], 1
jmp 0x1403536c6
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rdi
call fcn.14033f170
mov eax, Ordinal_79
jmp 0x1403542bd
mov rax, qword [r13 + 0x550]
mov byte [rax + 0x6b], r12b
mov rax, qword [r13 + 0x550]
mov qword [rax], r12
cmp dword [rsi + 0x3dc], 2
jne 0x1403536fc
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x590
cmovne rax, rcx
cmp dword [rax + rsi], 2
je 0x1403536fc
movzx eax, byte [rdi + 0xb03]
jmp 0x140353703
movzx eax, byte [rdi + 0xa5b]
test al, al
je 0x140353748
mov rcx, rsi
call fcn.140339270
mov r9d, ebx
lea rdx, [rbp - 0x60]
xor r8d, r8d
mov rcx, rsi
call fcn.140338c90
test al, al
jne 0x140353740
mov rcx, qword [r13 + 0x550]
mov rax, qword [rbp - 0x60]
mov qword [rcx], rax
mov rax, qword [r13 + 0x550]
mov rcx, qword [rax]
inc dword [rcx + 0x18]
mov rcx, rsi
call fcn.1403392a0
mov rcx, qword [r13 + 0x550]
cmp qword [rcx], r12
jne 0x140353fc7
xorps xmm0, xmm0
mov r9d, 8
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x40], 4
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
cmp byte [rsi + 0x5f8], r12b
je 0x1403537bb
cmp byte [rcx + 0x6b], r12b
mov eax, reloc.WLDAP32.dll_Ordinal_32
cmovne eax, r9d
mov dword [rbp + 8], eax
cmp byte [rdi + 0xab3], r12b
je 0x1403537a5
or eax, 0x1800
jmp 0x1403537c0
cmp byte [rdi + 0xab5], r12b
je 0x1403537b5
or eax, 0x1a00
jmp 0x1403537c0
bts eax, 9
jmp 0x1403537c0
mov eax, 0x1808
mov dword [rbp + 8], eax
cmp byte [rsi + 0x5f9], r12b
jne 0x1403537d2
or eax, 4
mov dword [rbp + 8], eax
movsxd r8, dword [rsi + 0x5b0]
cmp r8d, 7
ja case.default.0x1403537fb
lea rdx, [0x140000000]
mov r12d, 0x60000
mov ecx, dword [rdx + r8*4 + 0x3542e8]
add rcx, rdx
jmp rcx
mov ecx, dword [rsi + 0x3dc]
mov r10, qword [rsi]
cmp ecx, 2
jne 0x140353856
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
mov edx, 0x590
cmovne rax, rdx
cmp dword [rax + rsi], ecx
je 0x140353834
mov r8d, dword [rsi + 0x600]
mov r9d, dword [rsi + 0x604]
jmp 0x14035385d
cmp ecx, 2
jne 0x140353856
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rsi], ecx
je 0x140353856
mov r9d, dword [rsi + 0x604]
jmp 0x14035385d
mov r9d, dword [rsi + 0x5b4]
test r9d, 0xfffeffff
cmove r9d, r12d
sar r9d, 0x10
cmp r8d, r9d
jg 0x1403538c9
mov edx, dword [rbp - 8]
mov ecx, r8d
sub ecx, 4
je 0x1403538ab
sub ecx, 1
je 0x1403538a5
sub ecx, 1
je 0x14035389f
cmp ecx, 1
jne 0x1403538b2
lea rdx, str.schannel:_TLS_1.3_is_not_yet_supported
mov rcx, r10
call fcn.14033f170
jmp 0x1403542b8
bts edx, 0xb
jmp 0x1403538af
bts edx, 9
jmp 0x1403538af
bts edx, 7
mov dword [rbp - 8], edx
inc r8d
cmp r8d, r9d
jle 0x140353874
jmp 0x1403538c9
mov dword [rbp - 8], reloc.WLDAP32.dll_Ordinal_32
jmp 0x1403538c9
mov dword [rbp - 8], r9d
mov ecx, dword [rsi + 0x3dc]
mov edx, 0x590
cmp ecx, 2
jne 0x1403538f6
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rsi], ecx
je 0x1403538f6
mov rax, qword [rsi + 0x630]
jmp 0x1403538fd
mov rax, qword [rsi + 0x5e0]
test rax, rax
je 0x1403539a6
cmp ecx, 2
jne 0x140353926
cmp qword [rsi + 0x4c8], 0xffffffffffffffff
cmovne r14, rdx
cmp dword [r14 + rsi], ecx
je 0x140353926
mov rbx, qword [rsi + 0x630]
jmp 0x14035392d
mov rbx, qword [rsi + 0x5e0]
xor r15d, r15d
lea rcx, [0x1404e5820]
test rbx, rbx
je 0x14035399e
mov r14, rcx
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rdi
call fcn.14033f170
jmp 0x1403542b8