Function at 0x1401b0b50
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1e8
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x230], rcx
mov rbx, rdx
call sym.Curl_ssl_cf_get_primary_config
mov rcx, qword [rsp + 0x230]
mov rdx, rbx
mov r13, rax
call sym.Curl_ssl_cf_get_config
lea r8, [rsp + 0x78]
mov edx, 0x53
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax + 8]
mov rax, qword [0x140297f10]
mov rax, qword [rax]
call qword [rax + 0x58]
mov ecx, eax
test eax, eax
jne 0x1401b0bdc
cmp qword [rsp + 0x78], 0
je 0x1401b0bdc
cmp qword [r13 + 8], 0
jne 0x1401b0c15
jmp 0x1401b0c08
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
xor esi, esi
call sym.Curl_sspi_strerror
lea rdx, str.schannel:_Failed_to_read_remote_certificate_context:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_failf
jmp 0x1401b10ca
mov rsi, qword [r13 + 0x48]
test rsi, rsi
je 0x1401b0f77
mov rax, qword [rdi + 0x30]
xor esi, esi
cmp byte [rax + 0x6c], 0
je 0x1401b0f77
xor eax, eax
xor r8d, r8d
mov r9d, 2
mov edx, 1
mov dword [rsp + 0x20], eax
mov ecx, 6
call sym.curlx_verify_windows_version
test al, al
je 0x1401b0c63
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rbx
call sym.Curl_failf
xor ebp, ebp
mov r15d, 0x4d
jmp 0x1401b11c0
mov rcx, qword [rsp + 0x230]
mov rdx, rbx
call sym.Curl_schannel_get_cached_cert_store
mov rsi, rax
test rax, rax
je 0x1401b0ca5
test rbx, rbx
je 0x1401b113b
test byte [rbx + 0xa0e], 0x20
je 0x1401b113b
lea rdx, str.schannel:_reusing_certificate_store_from_cache
mov rcx, rbx
call sym.Curl_infof
jmp 0x1401b113b
xor eax, eax
mov r9d, 0x2000
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 2
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov rbp, rax
test rax, rax
jne 0x1401b0cfc
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
lea rdx, str.schannel:_failed_to_create_certificate_store:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_failf
jmp 0x1401b0c56
mov rdi, qword [r13 + 0x48]
test rdi, rdi
je 0x1401b0d28
mov r8, qword [rdi + 8]
mov qword [rsp + 0x20], rbx
lea r9, str._memory_blob_
mov rcx, rax
mov rdx, qword [rdi]
call sym.add_certs_data_to_store
mov r15d, eax
jmp 0x1401b0f50
mov rax, qword [r13 + 8]
mov rcx, rax
mov qword [rsp + 0x48], rax
call sym.strdup
mov r14, rax
test rax, rax
jne 0x1401b0d6d
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
mov r8, qword [rsp + 0x48]
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r9, rax
jmp 0x1401b0dcf
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov rcx, r14
mov qword [rsp + 0x30], rax
mov r8d, 1
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
inc rax
jne 0x1401b0de2
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
mov r8, qword [rsp + 0x48]
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r9, rax
mov rcx, rbx
mov r15d, 0x4d
call sym.Curl_failf
jmp 0x1401b0f37
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x90]
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x1401b0e28
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
mov r8, qword [rsp + 0x48]
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r9, rax
jmp 0x1401b0efc
mov r12, qword [rsp + 0x90]
cmp r12, 0x100000
jle 0x1401b0e53
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, rbx
call sym.Curl_failf
jmp 0x1401b0f04
mov rax, qword [0x140297bb0]
lea rcx, [r12 + 1]
mov r15d, 0x1b
call qword [rax]
mov rdi, rax
test rax, rax
je 0x1401b0f2c
xor r11d, r11d
lea r9, [rsp + 0x74]
jmp 0x1401b0e8e
mov eax, dword [rsp + 0x74]
test eax, eax
je 0x1401b0e8b
add r11d, eax
mov r15, r12
mov r12, r15
mov r15d, r11d
cmp r15, r12
jae 0x1401b0f0c
xor r10d, r10d
xor eax, eax
mov r8d, r12d
mov qword [rsp + 0x68], r9
sub r8d, r11d
mov dword [rsp + 0x64], r11d
mov rcx, qword [rsp + 0x50]
lea rdx, [rdi + r15]
mov dword [rsp + 0x74], r10d
mov qword [rsp + 0x20], rax
call qword [sym.imp.kernel32.dll_ReadFile]
mov r11d, dword [rsp + 0x64]
mov r9, qword [rsp + 0x68]
test eax, eax
jne 0x1401b0e7d
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
mov r8, qword [rsp + 0x48]
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r9, rax
mov rcx, rbx
call sym.Curl_failf
mov r15d, 0x4d
jmp 0x1401b0f2c
mov byte [rdi + r12], 0
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call sym.add_certs_data_to_store
mov r15d, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rax, qword [0x140297ba0]
mov rcx, rdi
call qword [rax]
test r14, r14
je 0x1401b0f50
mov rcx, r14
call sym.free
test r15d, r15d
jne 0x1401b11c0
mov rcx, qword [rsp + 0x230]
mov r8, rbp
mov rdx, rbx
call sym.Curl_schannel_set_cached_cert_store
test al, al
cmove rsi, rbp
jmp 0x1401b1140
lea r8, [rsp + 0x94]
xor eax, eax
mov ecx, 7
mov rdi, r8
xor r8d, r8d
lea rdx, [rsp + 0x90]
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x90], 0x20
mov r9, qword [rcx + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], r8
xor r8d, r8d
mov al, byte [rax + 0xb0]
mov qword [rsp + 0x20], rdx
mov rdx, rcx
mov rcx, qword [rsp + 0x88]
shr al, 3
xor eax, 1
and eax, 1
shl eax, 0x1d
mov dword [rsp + 0x28], eax
call qword [sym.imp.CRYPT32.dll_CertGetCertificateChain]
test eax, eax
jne 0x1401b1030
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
lea rdx, str.schannel:_CertGetCertificateChain_failed:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_failf
xor eax, eax
mov qword [rsp + 0x80], rax
jmp 0x1401b10ca
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov eax, dword [rax + 4]
mov r15d, eax
and r15d, 0xfeffffbd
test byte [rbx + 0x5b0], 0x20
jne 0x1401b105b
and eax, 0xfffffffd
mov r15d, eax
test r15d, r15d
je 0x1401b10d2
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_REVOKED
test r15d, 4
jne 0x1401b107e
bt r15d, 0x10
jae 0x1401b1088
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_PARTIAL_CHAIN
mov rcx, rbx
call sym.Curl_failf
jmp 0x1401b10ca
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_UNTRUSTED_ROOT
test r15d, 0x20
jne 0x1401b107e
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_NOT_TIME_VALID
test r15d, 1
jne 0x1401b107e
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_REVOCATION_STATUS_UNKNOWN
test r15d, 0x40
jne 0x1401b107e
mov r8d, r15d
lea rdx, str.schannel:_CertGetCertificateChain_error_mask:_0x_08lx
mov rcx, rbx
call sym.Curl_failf
mov r15d, 0x3c
jmp 0x1401b10ec
test byte [r13 + 0x6c], 2
je 0x1401b10ec
mov rcx, qword [rsp + 0x230]
mov rdx, rbx
call sym.Curl_verify_host
mov r15d, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1401b10ff
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChainEngine]
test rsi, rsi
je 0x1401b110f
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1401b1122
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1401b11c8
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x1401b11c8
mov rbp, rsi
xor esi, esi
lea rdx, [rsp + 0x94]
xor eax, eax
mov ecx, 0x13
mov rdi, rdx
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x88]
rep stosd dword [rdi], eax
mov qword [rsp + 0xd0], rbp
mov rcx, r8
mov dword [rsp + 0x90], 0x50
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateChainEngine]
test eax, eax
jne 0x1401b0f77
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov r15d, 0x4d
mov ecx, eax
call sym.Curl_winapi_strerror
lea rdx, str.schannel:_failed_to_create_certificate_chain_engine:__s
mov rcx, rbx
mov r8, rax
call sym.Curl_failf
jmp 0x1401b10ec
mov rsi, rbp
jmp 0x1401b10ec
mov eax, r15d
add rsp, 0x1e8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret