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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, rcx
mov qword [rsp + 0x50], rcx
mov rcx, rdx
mov r15, rdx
mov r12, r8
xor ebp, ebp
xor ebx, ebx
call fcn.140164370
mov r13, rax
test rax, rax
jne 0x140106b86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400bac30
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r15
mov rcx, r12
call fcn.1400d4150
mov rax, qword [fcn.140143670]
lea ebx, [rbp + 0x4d]
xor ecx, ecx
call qword [case.0x1400cc851.0]
jmp 0x140106d4f
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
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 0x140106bf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400bac30
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r15
mov rcx, r12
call fcn.1400d4150
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x140106d32
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140106c42
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400bac30
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r15
mov rcx, r12
call fcn.1400d4150
mov ebx, 0x4d
jmp 0x140106d26
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x140106c77
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r12
call fcn.1400d4150
mov ebx, 0x4d
jmp 0x140106d1e
mov rax, qword [fcn.140154a40]
lea rcx, [rdi + 1]
call qword [case.0x1400cc851.0]
mov rbp, rax
test rax, rax
jne 0x140106c98
lea ebx, [rax + 0x1b]
jmp 0x140106d1e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140106cf8
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 0x140106d71
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140106cef
mov edi, esi
jmp 0x140106cf1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140106cb0
mov rcx, qword [rsp + 0x50]
mov r9, r15
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r12
call fcn.140106840
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
mov rax, qword [fcn.140143670]
call qword [case.0x1400cc851.0]
mov rcx, r13
call fcn.140143670
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140133600
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400bac30
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r15
mov rcx, r12
call fcn.1400d4150
mov ebx, 0x4d
jmp 0x140106d16