Function at 0x140055500
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 [0x14016a100]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, qword [r8]
xor edi, edi
mov qword [rbp - 0x70], rcx
mov r14, rdx
mov dword [rsp + 0x68], edi
mov r13d, edi
mov r12d, edi
test rdx, rdx
jne 0x14005557b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.140051cb0
xor r8d, r8d
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r9, rax
mov rcx, rsi
call fcn.140029b2c
mov edi, Ordinal_79
jmp 0x140055898
mov qword [rsp + 0x30], rdi
mov r15d, 0x80
mov dword [rsp + 0x28], r15d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x1400555d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, r15d
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.140051cb0
mov r8, r14
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x140055566
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140055616
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r15
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.140051cb0
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r14
mov r9, rax
mov rcx, rsi
call fcn.140029b2c
mov edi, Ordinal_79
jmp 0x14005588d
mov rbx, qword [rbp - 0x80]
mov eax, 0x100000
cmp rbx, rax
jle 0x140055638
mov r8d, eax
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, rsi
call fcn.140029b2c
jmp 0x14005560c
lea rcx, [rbx + 1]
call qword [section..data]
mov r13, rax
test rax, rax
jne 0x140055652
lea edi, [rax + 0x1b]
jmp 0x14005588d
test rbx, rbx
je 0x14005569c
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x64]
mov r8d, ebx
mov edx, r12d
sub r8d, r12d
mov dword [rsp + 0x64], edi
add rdx, r13
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400557bb
cmp dword [rsp + 0x64], edi
jne 0x14005568f
mov ebx, r12d
jmp 0x140055694
add r12d, dword [rsp + 0x64]
mov eax, r12d
cmp rax, rbx
jb 0x140055657
lea rcx, str._n_____END_CERTIFICATE_____
mov byte [rbx + r13], dil
call fcn.1400b39f0
mov qword [rbp - 0x78], rax
mov r12, r13
mov byte [rsp + 0x60], 1
cmp byte [r12], dil
je 0x1400557ea
lea rdx, str._____BEGIN_CERTIFICATE_____
mov rcx, r12
call fcn.1400883c8
mov rbx, rax
test rax, rax
je 0x1400557db
lea rcx, str._____BEGIN_CERTIFICATE_____
call fcn.1400b39f0
mov cl, byte [rax + rbx]
call fcn.1400558cc
test eax, eax
je 0x1400557db
lea rdx, str._n_____END_CERTIFICATE_____
mov rcx, rbx
call fcn.1400883c8
test rax, rax
je 0x140055864
mov r12d, dword [rbp - 0x78]
lea rdx, [rbp - 0x68]
sub r12d, ebx
mov qword [rsp + 0x70], rdi
add r12d, eax
mov dword [rsp + 0x64], edi
lea rax, [rsp + 0x70]
mov qword [rbp - 0x60], rbx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
mov eax, 2
mov qword [rsp + 0x28], rdi
mov r8d, eax
mov ecx, eax
mov dword [rbp - 0x68], r12d
mov dword [rsp + 0x20], edi
lea r9d, [rax + 0xc]
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x140055844
mov r8d, dword [rsp + 0x64]
add r12, rbx
cmp r8d, 1
jne 0x14005582d
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
mov rcx, qword [rbp - 0x70]
lea r8d, [r9 + 4]
call qword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x14005580d
inc dword [rsp + 0x68]
mov al, byte [rsp + 0x60]
jmp 0x1400557e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r15
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.140051cb0
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x1400555fe
mov al, dil
mov byte [rsp + 0x60], al
test al, al
jne 0x1400556b8
mov eax, dword [rsp + 0x68]
mov rcx, rsi
test eax, eax
jne 0x14005587b
mov r8, r14
lea rdx, str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
call fcn.140029c14
jmp 0x14005588d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r15
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.140051cb0
lea rdx, str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
jmp 0x1400555fe
mov r9, r14
lea rdx, str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
mov rcx, rsi
call fcn.140029b2c
jmp 0x14005560c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r15
lea rdx, [rbp - 0x50]
mov ecx, eax
call fcn.140051cb0
lea rdx, str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
jmp 0x1400555fe
mov r8, r14
lea rdx, str.schannel:_CA_file__s_is_not_correctly_formatted
mov rcx, rsi
call fcn.140029b2c
jmp 0x14005560c
mov r9, r14
lea rdx, str.schannel:_added__d_certificate_s__from_CA_file__s_n
mov r8d, eax
call fcn.140029c14
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [str._P_t_]
mov eax, edi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140085010
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret