Function at 0x180259ed0
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, 0x370
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x1802427eb.0
mov r13, rax
test rax, rax
jne 0x180259fb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.180294920
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, esi
mov edi, dword [rax]
mov byte [rsp + 0x60], bpl
call fcn.18024eed0
test rax, rax
jne 0x180259f67
mov r9d, esi
mov dword [rsp + 0x20], esi
lea r8, str.Unknown_error__lu__0x_08lX_
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.18023b600
call fcn.180294920
cmp dword [rax], edi
je 0x180259f77
call fcn.180294920
mov dword [rax], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, eax
je 0x180259f89
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.1802430f0
xor ecx, ecx
mov ebx, 0x4d
call qword [fcn.18028d8d8]
jmp 0x18025a144
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r13
mov qword [rsp + 0x3c8], r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x18025a025
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x260]
call fcn.18024efa0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1802430f0
xor ecx, ecx
mov ebx, 0x4d
jmp 0x18025a12e
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18025a06b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x160]
call fcn.18024efa0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1802430f0
mov ebx, 0x4d
jmp 0x18025a122
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x18025a098
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1802430f0
mov ebx, 0x4d
jmp 0x18025a122
lea rcx, [rdi + 1]
call qword [fcn.180297cd0]
mov rbp, rax
test rax, rax
jne 0x18025a0b1
mov ebx, 0x1b
jmp 0x18025a122
test rdi, rdi
je 0x18025a104
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 0x18025a168
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x18025a0fb
mov edi, esi
jmp 0x18025a0fd
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x18025a0c0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.180259b70
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.18028d8d8]
mov rcx, r13
call fcn.18028d8d8
mov r14, qword [rsp + 0x3c8]
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.18027f010
add rsp, 0x370
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x160]
call fcn.18024efa0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1802430f0
mov ebx, 0x4d
jmp 0x18025a122