Function at 0x1401509b0
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 - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1403749c0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r15, qword [r8]
xor edi, edi
mov qword [rsp + 0x78], rcx
mov r14d, edi
mov rcx, rdx
mov ebx, edi
mov r12d, edi
mov r13, rdx
call fcn.140151250
mov qword [rsp + 0x70], rax
mov rsi, rax
test rax, rax
jne 0x140150a40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x60]
mov ecx, eax
call fcn.1401239d0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r13
mov rcx, r15
call fcn.1401363b0
xor ecx, ecx
lea edi, [rsi + 0x4d]
jmp 0x140150db9
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x140150aac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x60]
mov ecx, eax
call fcn.1401239d0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r13
mov rcx, r15
call fcn.1401363b0
xor ecx, ecx
mov edi, 0x4d
jmp 0x140150da9
lea rdx, [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140150af3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x60]
mov ecx, eax
call fcn.1401239d0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r13
mov rcx, r15
call fcn.1401363b0
mov edi, 0x4d
jmp 0x140150d9c
mov rsi, qword [rbp - 0x78]
cmp rsi, 0x100000
jle 0x140150b1f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1401363b0
mov edi, 0x4d
jmp 0x140150d97
mov rax, qword [fcn.14016d320]
lea rcx, [rsi + 1]
call qword [case.0x1401289aa.0]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140150b45
lea edi, [rax + 0x1b]
mov r14, rax
jmp 0x140150d97
test rsi, rsi
je 0x140150b98
nop word [rax + rax]
mov rcx, qword [rbp - 0x80]
lea r9, [rsp + 0x60]
mov r8d, esi
mov r14d, ebx
sub r8d, ebx
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rdi
lea rdx, [r14 + rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140150c96
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x140150b8a
mov esi, r14d
jmp 0x140150b8c
add ebx, eax
mov eax, ebx
cmp rax, rsi
mov rax, qword [rsp + 0x68]
jb 0x140150b50
mov r14, qword [rsp + 0x78]
mov byte [rsi + rax], dil
mov rsi, rax
cmp byte [rsi], dil
je 0x140150d67
lea rdx, str._____BEGIN_CERTIFICATE_____
mov rcx, rsi
call fcn.14015b484
mov rbx, rax
test rax, rax
je 0x140150d67
movzx ecx, byte [rax + 0x1b]
call fcn.140151070
test eax, eax
je 0x140150d67
lea rdx, str._n_____END_CERTIFICATE_____
mov rcx, rbx
call fcn.14015b484
mov rsi, rax
test rax, rax
je 0x140150d4e
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rdi
mov r8d, 2
mov qword [rsp + 0x38], rdi
sub esi, ebx
mov qword [rsp + 0x30], rax
add esi, 0x1a
mov qword [rsp + 0x28], rdi
mov r9d, ntohs
mov ecx, r8d
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x60], edi
mov qword [rbp - 0x68], rbx
mov dword [rbp - 0x70], esi
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x140150d1b
mov r8d, dword [rsp + 0x60]
add rsi, rbx
cmp r8d, 1
jne 0x140150d02
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
mov rcx, r14
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 0x140150ccc
inc r12d
jmp 0x140150ba4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x60]
mov ecx, eax
call fcn.1401239d0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r13
mov rcx, r15
call fcn.1401363b0
mov edi, 0x4d
jmp 0x140150d92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x60]
mov ecx, eax
call fcn.1401239d0
mov r9, rax
lea rdx, str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
mov r8, r13
mov rcx, r15
call fcn.1401363b0
mov edi, 0x4d
jmp 0x140150d92
mov r9, r13
lea rdx, str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
mov rcx, r15
call fcn.1401363b0
mov edi, 0x4d
jmp 0x140150d92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x60]
mov ecx, eax
call fcn.1401239d0
mov r9, rax
lea rdx, str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
mov r8, r13
mov rcx, r15
call fcn.1401363b0
mov edi, 0x4d
jmp 0x140150d92
mov r8, r13
lea rdx, str.schannel:_CA_file__s_is_not_correctly_formatted
mov rcx, r15
call fcn.1401363b0
mov edi, 0x4d
jmp 0x140150d92
mov rcx, r15
test r12d, r12d
jne 0x140150d80
mov r8, r13
lea rdx, str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
call fcn.1401364c0
jmp 0x140150d92
mov r9, r13
lea rdx, str.schannel:_added__d_certificate_s__from_CA_file__s_n
mov r8d, r12d
call fcn.1401364c0
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
mov rax, qword [fcn.140165910]
call qword [case.0x1401289aa.0]
mov rcx, rsi
mov rax, qword [fcn.140165910]
call qword [case.0x1401289aa.0]
mov eax, edi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140158fa0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret