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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, qword [r8]
xor r13d, r13d
and dword [rsp + 0x70], r13d
mov r14, rdx
mov qword [rbp - 0x70], rcx
xor r15d, r15d
mov rcx, rdx
call fcn.180074a4c
mov qword [rsp + 0x68], rax
mov rbx, rax
test rax, rax
jne 0x18007455a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.18003b70c
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r14
mov r9, rax
mov rcx, rsi
call fcn.18004ce58
mov edi, 0x4d
jmp 0x180074865
and qword [rsp + 0x30], r13
mov r12d, 0x80
mov dword [rsp + 0x28], r12d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x1800745ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, r12d
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.18003b70c
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x180074542
lea rdx, [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1800745f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r12
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.18003b70c
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r14
mov rcx, rsi
call fcn.18004ce58
mov edi, 0x4d
jmp 0x18007485b
mov rbx, qword [rbp - 0x78]
mov eax, 0x100000
cmp rbx, rax
jle 0x18007461b
mov r8d, eax
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, rsi
call fcn.18004ce58
mov edi, 0x4d
jmp 0x180074856
lea rcx, [rbx + 1]
call qword [fcn.1800865b0]
mov r13, rax
test rax, rax
jne 0x180074635
lea edi, [rax + 0x1b]
jmp 0x180074856
xor edi, edi
test rbx, rbx
je 0x180074680
mov rcx, qword [rbp - 0x80]
lea r9, [rsp + 0x64]
and dword [rsp + 0x64], edi
mov r8d, ebx
and qword [rsp + 0x20], rdi
sub r8d, r15d
mov edx, r15d
add rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180074781
mov eax, dword [rsp + 0x64]
test eax, eax
jne 0x180074675
mov ebx, r15d
jmp 0x180074678
add r15d, eax
mov eax, r15d
cmp rax, rbx
jb 0x18007463c
mov byte [rbx + r13], dil
mov r15, r13
mov byte [rsp + 0x60], 1
cmp byte [r15], dil
je 0x1800747bd
lea rdx, str._____BEGIN_CERTIFICATE_____
mov rcx, r15
call fcn.18008520c
mov rbx, rax
test rax, rax
je 0x1800747af
mov al, byte [rax + 0x1b]
cmp al, 0xd
je 0x1800746bf
cmp al, 0xa
jne 0x1800747af
lea rdx, str._n_____END_CERTIFICATE_____
mov rcx, rbx
call fcn.18008520c
xor ecx, ecx
mov r15, rax
test rax, rax
je 0x18007482d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x50], rax
lea r9d, [rcx + 0xe]
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x64]
mov qword [rsp + 0x40], rcx
lea rdx, [rbp - 0x68]
mov qword [rsp + 0x38], rcx
sub r15d, ebx
mov qword [rsp + 0x30], rax
add r15d, 0x1a
mov qword [rsp + 0x28], rcx
lea eax, [rcx + 2]
mov dword [rsp + 0x20], ecx
mov r8d, eax
mov dword [rsp + 0x64], ecx
mov ecx, eax
mov qword [rbp - 0x60], rbx
mov dword [rbp - 0x68], r15d
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x18007480d
mov r8d, dword [rsp + 0x64]
add r15, rbx
cmp r8d, 1
jne 0x1800747f6
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
mov rcx, qword [rbp - 0x70]
lea r8d, [r9 + 4]
call qword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x1800747d9
inc dword [rsp + 0x70]
mov al, byte [rsp + 0x60]
jmp 0x1800747b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r12
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.18003b70c
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r9, rax
mov r8, r14
mov rcx, rsi
call fcn.18004ce58
jmp 0x180074611
xor al, al
mov byte [rsp + 0x60], al
test al, al
jne 0x18007468c
mov eax, dword [rsp + 0x70]
mov rcx, rsi
test eax, eax
jne 0x180074844
mov r8, r14
lea rdx, str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
call fcn.18004cf4c
jmp 0x180074856
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r12
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.18003b70c
lea rdx, str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
jmp 0x18007479c
mov r9, r14
lea rdx, str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
mov rcx, rsi
call fcn.18004ce58
jmp 0x180074611
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r12
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.18003b70c
lea rdx, str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
jmp 0x18007479c
mov r8, r14
lea rdx, str.schannel:_CA_file__s_is_not_correctly_formatted
mov rcx, rsi
call fcn.18004ce58
jmp 0x180074611
mov r9, r14
lea rdx, str.schannel:_added__d_certificate_s__from_CA_file__s_n
mov r8d, eax
call fcn.18004cf4c
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [fcn.18008628c]
test rbx, rbx
je 0x18007487c
mov rcx, rbx
call qword [fcn.18008628c]
mov eax, edi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.180081d90
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret