Function at 0x14008eae0
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 fcn.14008c0a0
mov rcx, qword [rsp + 0x230]
mov rdx, rbx
mov r13, rax
call fcn.14008c070
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 [0x140135f20]
mov rax, qword [rax]
call qword [rax + 0x58]
mov ecx, eax
test eax, eax
jne 0x14008eb6c
cmp qword [rsp + 0x78], 0
je 0x14008eb6c
cmp qword [r13 + 8], 0
jne 0x14008eba5
jmp 0x14008eb98
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
xor esi, esi
call fcn.14008d410
lea rdx, str.schannel:_Failed_to_read_remote_certificate_context:__s
mov rcx, rbx
mov r8, rax
call fcn.14007ceb0
jmp 0x14008f06b
mov rsi, qword [r13 + 0x48]
test rsi, rsi
je 0x14008ef18
mov rax, qword [rdi + 0x30]
xor esi, esi
cmp byte [rax + 0x6c], 0
je 0x14008ef18
xor eax, eax
xor r8d, r8d
mov r9d, 2
mov edx, 1
mov dword [rsp + 0x20], eax
mov ecx, 6
call fcn.1400b8aa0
test al, al
je 0x14008ebf3
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rbx
call fcn.14007ceb0
xor ebp, ebp
mov r15d, 0x4d
jmp 0x14008f15c
mov rcx, qword [rsp + 0x230]
mov rdx, rbx
call fcn.14008a7a0
mov rsi, rax
test rax, rax
je 0x14008ec46
test rbx, rbx
je 0x14008ec2b
test byte [rbx + 0x98e], 0x20
je 0x14008ec2b
mov rax, qword [rbx + 0x1188]
test rax, rax
je 0x14008ec35
cmp dword [rax + 8], 0
jg 0x14008ec35
mov rbp, rsi
xor esi, esi
jmp 0x14008f0dc
lea rdx, str.schannel:_reusing_certificate_store_from_cache
mov rcx, rbx
call fcn.140083620
jmp 0x14008ec2b
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 0x14008ec9d
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call fcn.140090d70
lea rdx, str.schannel:_failed_to_create_certificate_store:__s
mov rcx, rbx
mov r8, rax
call fcn.14007ceb0
jmp 0x14008ebe6
mov rdi, qword [r13 + 0x48]
test rdi, rdi
je 0x14008ecc9
mov r8, qword [rdi + 8]
mov qword [rsp + 0x20], rbx
lea r9, str._memory_blob_
mov rcx, rax
mov rdx, qword [rdi]
call fcn.1400a6620
mov r15d, eax
jmp 0x14008eef1
mov rax, qword [r13 + 8]
mov rcx, rax
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll__strdup
mov r14, rax
test rax, rax
jne 0x14008ed0e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call fcn.140090d70
mov r8, qword [rsp + 0x48]
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r9, rax
jmp 0x14008ed70
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 0x14008ed83
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call fcn.140090d70
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 fcn.14007ceb0
jmp 0x14008eed8
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x90]
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x14008edc9
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call fcn.140090d70
mov r8, qword [rsp + 0x48]
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r9, rax
jmp 0x14008ee9d
mov r12, qword [rsp + 0x90]
cmp r12, 0x100000
jle 0x14008edf4
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, rbx
call fcn.14007ceb0
jmp 0x14008eea5
mov rax, qword [0x140135e80]
lea rcx, [r12 + 1]
mov r15d, 0x1b
call qword [rax]
mov rdi, rax
test rax, rax
je 0x14008eecd
xor r11d, r11d
lea r9, [rsp + 0x74]
jmp 0x14008ee2f
mov eax, dword [rsp + 0x74]
test eax, eax
je 0x14008ee2c
add r11d, eax
mov r15, r12
mov r12, r15
mov r15d, r11d
cmp r15, r12
jae 0x14008eead
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 0x14008ee1e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call fcn.140090d70
mov r8, qword [rsp + 0x48]
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r9, rax
mov rcx, rbx
call fcn.14007ceb0
mov r15d, 0x4d
jmp 0x14008eecd
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 fcn.1400a6620
mov r15d, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rax, qword [0x140135e70]
mov rcx, rdi
call qword [rax]
test r14, r14
je 0x14008eef1
mov rcx, r14
call fcn.14005a988
test r15d, r15d
jne 0x14008f15c
mov rcx, qword [rsp + 0x230]
mov r8, rbp
mov rdx, rbx
call fcn.14008a8b0
test al, al
cmove rsi, rbp
jmp 0x14008f0dc
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, 4
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 0x14008efd1
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov ecx, eax
call fcn.140090d70
lea rdx, str.schannel:_CertGetCertificateChain_failed:__s
mov rcx, rbx
mov r8, rax
call fcn.14007ceb0
xor eax, eax
mov qword [rsp + 0x80], rax
jmp 0x14008f06b
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 + 0x5d8], 0x40
jne 0x14008effc
and eax, 0xfffffffd
mov r15d, eax
test r15d, r15d
je 0x14008f073
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_REVOKED
test r15d, 4
jne 0x14008f01f
bt r15d, 0x10
jae 0x14008f029
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_PARTIAL_CHAIN
mov rcx, rbx
call fcn.14007ceb0
jmp 0x14008f06b
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_UNTRUSTED_ROOT
test r15d, 0x20
jne 0x14008f01f
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_NOT_TIME_VALID
test r15d, 1
jne 0x14008f01f
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_REVOCATION_STATUS_UNKNOWN
test r15d, 0x40
jne 0x14008f01f
mov r8d, r15d
lea rdx, str.schannel:_CertGetCertificateChain_error_mask:_0x_08lx
mov rcx, rbx
call fcn.14007ceb0
mov r15d, 0x3c
jmp 0x14008f08d
test byte [r13 + 0x6c], 2
je 0x14008f08d
mov rcx, qword [rsp + 0x230]
mov rdx, rbx
call fcn.14008f180
mov r15d, eax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14008f0a0
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChainEngine]
test rsi, rsi
je 0x14008f0b0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14008f0c3
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008f164
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x14008f164
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 0x14008ef18
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, [rsp + 0xe0]
mov r8d, 0x100
mov r15d, 0x4d
mov ecx, eax
call fcn.140090d70
lea rdx, str.schannel:_failed_to_create_certificate_chain_engine:__s
mov rcx, rbx
mov r8, rax
call fcn.14007ceb0
jmp 0x14008f08d
mov rsi, rbp
jmp 0x14008f08d
mov eax, r15d
add rsp, 0x1e8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret