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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x470
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r13, rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.1400f47c0
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1401327e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, esi
mov edi, dword [rax]
mov byte [rsp + 0x60], bpl
call fcn.140109c10
test rax, rax
jne 0x140132798
mov r9d, esi
mov dword [rsp + 0x20], esi
lea r8, str.Unknown_error__u__0x_08X_
mov edx, 0x100
lea rcx, [rsp + 0x60]
call sym.CheraxLoader.exe_curl_msnprintf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], edi
je 0x1401327aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, eax
je 0x1401327bc
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0x60]
mov r8, r12
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov rcx, r15
call fcn.1400f1540
xor ecx, ecx
mov ebx, Ordinal_79
call qword [0x14025d0c8]
jmp 0x140132a55
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], Ordinal_133
mov edx, 0x80000000
mov rcx, rax
mov qword [rsp + 0x4c8], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1401328c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0x160]
mov ecx, esi
mov edi, dword [rax]
mov byte [rsp + 0x160], bpl
call fcn.140109c10
test rax, rax
jne 0x14013287e
mov r9d, esi
mov dword [rsp + 0x20], esi
lea r8, str.Unknown_error__u__0x_08X_
mov edx, 0x100
lea rcx, [rsp + 0x160]
call sym.CheraxLoader.exe_curl_msnprintf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], edi
je 0x140132890
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, eax
je 0x1401328a2
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0x160]
mov r8, r12
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov rcx, r15
call fcn.1400f1540
xor ecx, ecx
mov ebx, Ordinal_79
jmp 0x140132a3c
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140132980
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0x260]
mov ecx, esi
mov edi, dword [rax]
mov byte [rsp + 0x260], bpl
call fcn.140109c10
test rax, rax
jne 0x140132938
mov r9d, esi
mov dword [rsp + 0x20], esi
lea r8, str.Unknown_error__u__0x_08X_
mov edx, 0x100
lea rcx, [rsp + 0x260]
call sym.CheraxLoader.exe_curl_msnprintf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], edi
je 0x14013294a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, eax
je 0x14013295c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0x260]
mov r8, r12
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov rcx, r15
call fcn.1400f1540
mov ebx, Ordinal_79
jmp 0x140132a30
mov rdi, qword [rsp + 0x50]
cmp rdi, 0x100000
jle 0x1401329ad
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1400f1540
mov ebx, Ordinal_79
jmp 0x140132a30
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x1401329c4
lea ebx, [rax + 0x1b]
jmp 0x140132a30
test rdi, rdi
je 0x140132a14
nop dword [rax]
mov r8d, edi
mov dword [rsp + 0x48], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140132a79
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x140132a0b
mov edi, esi
jmp 0x140132a0d
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1401329d0
mov r9, r12
mov byte [rdi + rbp], 0
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, rbp
mov rcx, r13
call fcn.1401323a0
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [0x14025d0c8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0x4c8]
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x470
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0x360]
mov ecx, esi
mov edi, dword [rax]
mov byte [rsp + 0x360], 0
call fcn.140109c10
test rax, rax
jne 0x140132ad3
mov r9d, esi
mov dword [rsp + 0x20], esi
lea r8, str.Unknown_error__u__0x_08X_
mov edx, 0x100
lea rcx, [rsp + 0x360]
call sym.CheraxLoader.exe_curl_msnprintf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], edi
je 0x140132ae5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, eax
je 0x140132af7
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0x360]
mov r8, r12
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov rcx, r15
call fcn.1400f1540
mov ebx, Ordinal_79
jmp 0x140132a30