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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x498
mov rax, qword [0x14045e9a8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1403220a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x80]
mov ecx, eax
call fcn.1402addb0
mov r9, rax
mov r8, qword [rsp + 0x4a8]
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov rcx, qword [rsp + 0x4b0]
call fcn.1402e83a0
mov dword [rsp + 0x40], 0x4d
jmp 0x1403222fa
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x14032212c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x180]
mov ecx, eax
call fcn.1402addb0
mov r9, rax
mov r8, qword [rsp + 0x4a8]
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov rcx, qword [rsp + 0x4b0]
call fcn.1402e83a0
mov dword [rsp + 0x40], 0x4d
jmp 0x1403222fa
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140322187
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x280]
mov ecx, eax
call fcn.1402addb0
mov r9, rax
mov r8, qword [rsp + 0x4a8]
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov rcx, qword [rsp + 0x4b0]
call fcn.1402e83a0
mov dword [rsp + 0x40], 0x4d
jmp 0x1403222fa
cmp qword [rsp + 0x78], 0x100000
jle 0x1403221b9
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, qword [rsp + 0x4b0]
call fcn.1402e83a0
mov dword [rsp + 0x40], 0x4d
jmp 0x1403222fa
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
inc rax
mov rcx, rax
call qword [str._N5_]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1403221ee
mov dword [rsp + 0x40], 0x1b
jmp 0x1403222fa
mov eax, dword [rsp + 0x44]
cmp rax, qword [rsp + 0x50]
jae 0x1403222b7
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140322290
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x380]
mov ecx, eax
call fcn.1402addb0
mov r9, rax
mov r8, qword [rsp + 0x4a8]
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov rcx, qword [rsp + 0x4b0]
call fcn.1402e83a0
mov dword [rsp + 0x40], 0x4d
jmp 0x1403222fa
cmp dword [rsp + 0x48], 0
jne 0x1403222a2
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x50], rax
jmp 0x1403222b2
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
jmp 0x1403221ee
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
mov rax, qword [rsp + 0x4b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x4a8]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x4a0]
call fcn.140321c00
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x14032230d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [str.EN5_]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x14032230d
cmp qword [rsp + 0x68], 0
je 0x140322343
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x68], 0
xor eax, eax
test eax, eax
jne 0x140322327
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140354350
add rsp, 0x498
ret