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

Disassembly:
mov r11, rsp
push rbx
push r15
sub rsp, 0x198
mov rax, qword [0x14026fad8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [r11 + 0x20], rbp
xor ebx, ebx
mov qword [r11 - 0x28], r12
xor ebp, ebp
mov qword [rsp + 0x50], rcx
mov r12, r8
mov qword [r11 - 0x30], r13
mov rcx, rdx
mov r13, rdx
call case.0x14017d3cf.1
mov r15, rax
test rax, rax
jne 0x1401bf62f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140194850
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r13
mov rcx, r12
call fcn.1401815e0
lea ebx, [rbp + 0x4d]
jmp 0x1401bf7d7
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r15
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1401bf6a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140194850
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r13
mov rcx, r12
call fcn.1401815e0
lea ebx, [r14 + 0x4e]
jmp 0x1401bf7cf
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1401bf6e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140194850
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r13
mov rcx, r12
call fcn.1401815e0
mov ebx, Ordinal_79
jmp 0x1401bf7c6
mov qword [rsp + 0x188], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1401bf71e
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r12
call fcn.1401815e0
mov ebx, Ordinal_79
jmp 0x1401bf7be
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x1401bf738
lea ebx, [rax + 0x1b]
jmp 0x1401bf7be
mov qword [rsp + 0x190], rsi
test rdi, rdi
je 0x1401bf798
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401bf822
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1401bf78f
mov edi, esi
jmp 0x1401bf791
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1401bf750
mov rcx, qword [rsp + 0x50]
mov r9, r13
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r12
call fcn.1401bf310
mov ebx, eax
mov rsi, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x188]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x170]
mov rcx, rbp
call qword [fcn.1401c8df5]
mov r13, qword [rsp + 0x178]
mov r12, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x1c8]
test r15, r15
je 0x1401bf805
mov rcx, r15
call fcn.1401c8df5
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401c74a0
add rsp, 0x198
pop r15
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140194850
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r13
mov rcx, r12
call fcn.1401815e0
mov ebx, Ordinal_79
jmp 0x1401bf7b6