Function at 0x1401a8470
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1402d4040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov r14, rcx
xor ebx, ebx
lea rdx, [0x14028c7c8]
call fcn.140154de0
mov r8, rax
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rbx
mov qword [rbp + 0x1f], rbx
cmp qword [r14 + 0x10], rax
cmovb r8, qword [r14 + 0x10]
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1401a84d2
mov rdx, qword [r14]
lea rcx, [rbp + 7]
call fcn.140007c30
nop
mov rsi, qword [rbp + 0x17]
lea rdi, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rdi, qword [rbp + 7]
call fcn.140244468
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rsi
lea r8, [rbp - 9]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.140113950
nop
mov qword [rbp - 9], rbx
lea rax, str.___r_
mov qword [rbp - 1], rax
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x39]
call fcn.1401a7820
cmp dword [rbp - 9], 0
jne 0x1401a874b
lea rcx, [rbp - 0x39]
call fcn.14000d450
mov qword [rbp - 0x19], rbx
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1401a854b
mov rdx, qword [r14]
lea r8, [0x14025d010]
lea rcx, [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1401a86cf
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
mov rdi, rbx
test eax, eax
je 0x1401a85ea
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x1401a8760
cmp rsi, 0x1000
jb 0x1401a85ce
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1401a8745
call fcn.140244f20
test rax, rax
je 0x1401a873e
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1401a85d9
mov rcx, rsi
call fcn.140244f20
mov rbx, rax
lea rdi, [rbx + rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rsi, rdi
sub rsi, rbx
mov r9, qword [rbp - 0x19]
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [r15]
mov rax, qword [r15 + 8]
sub rax, r8
cmp rax, rsi
jne 0x1401a869b
test rsi, rsi
je 0x1401a865d
mov rdx, rbx
sub r8, rbx
nop dword [rax]
movzx eax, byte [rdx]
cmp byte [r8 + rdx], al
jne 0x1401a869b
inc rdx
mov rcx, rdi
sub rcx, rbx
mov rax, rdx
sub rax, rbx
cmp rax, rcx
jb 0x1401a8640
test rbx, rbx
je 0x1401a8712
sub rdi, rbx
cmp rdi, 0x1000
jb 0x1401a868e
add rdi, 0x27
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x1f
ja 0x1401a873e
mov rbx, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140244f5c
jmp 0x1401a8712
test rbx, rbx
je 0x1401a86cf
sub rdi, rbx
cmp rdi, 0x1000
jb 0x1401a86c4
add rdi, 0x27
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x1f
ja 0x1401a873e
mov rbx, rax
mov rdx, rdi
mov rcx, rbx
call fcn.140244f5c
cmp qword [r14 + 0x18], 0xf
jbe 0x1401a86d9
mov r14, qword [r14]
lea r8, [0x14025d014]
mov rdx, r14
lea rcx, [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [r15]
mov rdx, qword [r15 + 8]
sub rdx, rcx
mov r9, qword [rbp - 0x19]
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
lea rcx, [rbp + 7]
call fcn.1400050e0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140244f00
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001710
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 9]
lea rcx, str.create_directories
call fcn.140115d70
nop
call fcn.140004ec0
int3