Function at 0x14007efa0
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 r12, rcx
mov r13, rdx
call sym.Curl_ssl_cf_get_primary_config
mov rdx, r13
mov rcx, r12
mov rbx, rax
call sym.Curl_ssl_cf_get_config
lea r8, [rsp + 0x78]
mov edx, 0x53
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov rsi, rax
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x88], 0
mov rcx, qword [rax + 8]
mov rax, qword [0x140171aa0]
mov rax, qword [rax]
call qword [rax + 0x58]
mov ecx, eax
test eax, eax
jne 0x14007f1a0
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x14007f1a0
cmp qword [rbx + 8], 0
je 0x14007f250
mov rax, qword [rdi + 0x30]
cmp byte [rax + 0x6c], 0
je 0x14007f3a8
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov r9d, 2
mov edx, 1
mov ecx, 6
call sym.curlx_verify_windows_version
test al, al
jne 0x14007f220
mov rdx, r13
mov rcx, r12
call sym.Curl_schannel_get_cached_cert_store
mov rbp, rax
test rax, rax
je 0x14007f428
xor r14d, r14d
test r13, r13
je 0x14007f0ba
test byte [r13 + 0xa47], 0x10
je 0x14007f0ba
mov rax, qword [r13 + 0x1270]
test rax, rax
je 0x14007f0a8
mov eax, dword [rax + 8]
test eax, eax
jle 0x14007f0ba
lea rdx, str.schannel:_reusing_certificate_store_from_cache
mov rcx, r13
xor r14d, r14d
call sym.Curl_infof
lea rdi, [rsp + 0x90]
mov qword [rsp + 0x90], 0
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x98], 0
mov rcx, rdi
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0x90], 0x50
mov qword [rsp + 0xd0], rbp
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateChainEngine]
mov rdx, qword [rsp + 0x78]
test eax, eax
jne 0x14007f265
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, r13
mov r8, rax
call sym.Curl_failf
jmp 0x14007f320
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov r15d, 0x3c
call sym.Curl_sspi_strerror
mov rcx, r13
lea rdx, str.schannel:_Failed_to_read_remote_certificate_context:__s
mov r8, rax
call sym.Curl_failf
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14007f1de
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChainEngine]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14007f1f1
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14007f201
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, r15d
add rsp, 0x1e8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
call sym.Curl_failf
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14007f242
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChainEngine]
mov r15d, 0x4d
jmp 0x14007f1de
mov r14, qword [rbx + 0x48]
test r14, r14
jne 0x14007f036
lea rdi, [rsp + 0x90]
mov qword [rsp + 0x90], 0
xor eax, eax
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov r9, qword [rdx + 0x20]
test byte [rsi + 0xb0], 0x10
mov qword [rsp + 0x38], rcx
sete al
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x90], 0x20
shl eax, 0x1d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
call qword [sym.imp.CRYPT32.dll_CertGetCertificateChain]
test eax, eax
je 0x14007f360
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov edi, dword [rax + 4]
mov eax, edi
and edi, 0xfeffffbd
and eax, 0xfffffffd
test byte [r13 + 0x5e0], 0x40
cmovne eax, edi
mov r15d, eax
test eax, eax
jne 0x14007f3b0
test byte [rbx + 0x6c], 2
jne 0x14007f350
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14007f333
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChainEngine]
test r14, r14
je 0x14007f1de
xor edx, edx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x14007f1de
mov rdx, r13
mov rcx, r12
call sym.Curl_verify_host
mov r15d, eax
jmp 0x14007f320
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov r15d, 0x3c
mov ecx, eax
call sym.Curl_winapi_strerror
lea rdx, str.schannel:_CertGetCertificateChain_failed:__s
mov rcx, r13
mov r8, rax
call sym.Curl_failf
mov qword [rsp + 0x80], 0
jmp 0x14007f320
xor r14d, r14d
jmp 0x14007f25d
test al, 4
jne 0x14007f410
test eax, 0x10000
jne 0x14007f3f8
test al, 0x20
jne 0x14007f4a0
test al, 1
jne 0x14007f4cb
test al, 0x40
je 0x14007f4b4
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_REVOCATION_STATUS_UNKNOWN
mov rcx, r13
call sym.Curl_failf
nop word [rax + rax]
mov r15d, 0x3c
jmp 0x14007f320
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_PARTIAL_CHAIN
mov rcx, r13
call sym.Curl_failf
jmp 0x14007f3e8
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_REVOKED
mov rcx, r13
call sym.Curl_failf
jmp 0x14007f3e8
mov r9d, 0x2000
xor r8d, r8d
xor edx, edx
mov ecx, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r14, rax
test rax, rax
je 0x14007f62a
mov rbp, qword [rbx + 0x48]
test rbp, rbp
je 0x14007f500
mov r8, qword [rbp + 8]
mov qword [rsp + 0x20], r13
lea r9, str._memory_blob_
mov rcx, rax
mov rdx, qword [rbp]
call sym.add_certs_data_to_store
mov r15d, eax
test r15d, r15d
je 0x14007f4df
mov rcx, qword [rsp + 0x88]
test rcx, rcx
jne 0x14007f32d
jmp 0x14007f33c
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_UNTRUSTED_ROOT
mov rcx, r13
call sym.Curl_failf
jmp 0x14007f3e8
mov r8d, eax
lea rdx, str.schannel:_CertGetCertificateChain_error_mask:_0x_08lx
mov rcx, r13
call sym.Curl_failf
jmp 0x14007f3e8
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_NOT_TIME_VALID
mov rcx, r13
call sym.Curl_failf
jmp 0x14007f3e8
mov r8, r14
mov rdx, r13
mov rcx, r12
mov rbp, r14
call sym.Curl_schannel_set_cached_cert_store
test al, al
je 0x14007f0ba
xor r14d, r14d
jmp 0x14007f0ba
mov rax, qword [rbx + 8]
mov rcx, rax
mov qword [rsp + 0x50], rax
call sym.strdup
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14007f7c0
mov qword [rsp + 0x30], 0
mov rcx, rax
xor r9d, r9d
mov r8d, 1
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x14007f778
mov rcx, rax
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007f73b
mov rdi, qword [rsp + 0x90]
cmp rdi, 0x100000
jg 0x14007f71b
mov rax, qword [0x1401719a0]
lea rcx, [rdi + 1]
mov r15, rdi
call qword [rax]
mov rbp, rax
test rax, rax
je 0x14007f7b5
test rdi, rdi
je 0x14007f685
xor r10d, r10d
lea r9, [rsp + 0x74]
mov qword [rsp + 0x60], rbx
xor edi, edi
mov qword [rsp + 0x68], rsi
mov rbx, qword [rsp + 0x58]
mov esi, r10d
mov qword [rsp + 0x230], r12
mov r12, r15
mov r15, r13
mov r13, r9
jmp 0x14007f5ed
add esi, eax
mov edi, esi
cmp rdi, r12
jae 0x14007f66d
mov r8d, r12d
lea rdx, [rbp + rdi]
mov r9, r13
mov rcx, rbx
sub r8d, esi
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007f6cc
mov eax, dword [rsp + 0x74]
test eax, eax
jne 0x14007f5e0
mov r12, rdi
jmp 0x14007f5e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
mov rcx, r13
lea rdx, str.schannel:_failed_to_create_certificate_store:__s
mov r8, rax
call sym.Curl_failf
mov rcx, qword [rsp + 0x88]
test rcx, rcx
jne 0x14007f23c
jmp 0x14007f242
mov r13, r15
mov rbx, qword [rsp + 0x60]
mov r15, r12
mov rsi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x230]
mov byte [rbp + r15], 0
mov r8, r15
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x50]
call sym.add_certs_data_to_store
mov r15d, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1401718c0]
mov rcx, rbp
call qword [rax]
mov rcx, qword [rsp + 0x48]
call sym.free
jmp 0x14007f47f
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r13, r15
mov r12, qword [rsp + 0x230]
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 + 0x50]
mov rcx, r15
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r9, rax
mov r15d, 0x4d
call sym.Curl_failf
jmp 0x14007f6a6
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r13
mov r15d, 0x4d
call sym.Curl_failf
jmp 0x14007f6a6
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
mov r8, qword [rsp + 0x50]
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov rcx, r13
mov r9, rax
call sym.Curl_failf
jmp 0x14007f6a6
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
mov r8, qword [rsp + 0x50]
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov rcx, r13
mov r9, rax
call sym.Curl_failf
jmp 0x14007f6b1
mov r15d, 0x1b
jmp 0x14007f6a6
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
mov r8, qword [rsp + 0x50]
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov rcx, r13
mov r9, rax
call sym.Curl_failf
mov rax, qword [0x1401718c0]
xor ecx, ecx
call qword [rax]
jmp 0x14007f484