Function at 0x18006e4a0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x180089050]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14d, r8d
mov rdi, rdx
mov esi, ecx
mov eax, 4
cmp ecx, eax
cmova esi, eax
lea rdx, [rbp - 0x68]
lea rcx, str.RunLog.log
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
cmp dword [rbp - 0x54], 0x3c00000
jl 0x18006e53b
lea r8, [0x18007f6d8]
lea rdx, str.RunLogBack.log
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18006e527
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, str.RunLogBack.log
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rdx, str.RunLogBack.log
lea rcx, str.RunLog.log
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], al
lea edx, [rax + 0x5c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rbx, 0xffffffffffffffff
mov r8, rbx
test rax, rax
je 0x18006e580
lea rdx, [rax + 1]
inc r8
cmp byte [rdx + r8], 0
jne 0x18006e571
jmp 0x18006e58d
inc r8
cmp byte [rdi + r8], 0
jne 0x18006e580
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.18000aa50
lea rdi, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdi, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov eax, esi
shl rax, 5
lea rcx, [0x180089110]
add rax, rcx
cmp qword [rax + 0x18], 0x10
jb 0x18006e5db
mov rax, qword [rax]
mov r9d, dword [rbp - 0x58]
inc r9d
mov r8d, dword [rbp - 0x54]
add r8d, 0x76c
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x40], rdi
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x64]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp - 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x20], eax
lea rdx, str.__d__02d__02d__2d:_02d:_02d____s:_d____s_:
lea rcx, [rbp - 0x30]
call fcn.18006e840
lea rdx, [rbp - 0x30]
lea rcx, [0x18007dc58]
call fcn.18006e440
lea r8, [0x18007f6b4]
lea rdx, str.RunLog.log
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov r9, qword [rsp + 0x60]
test r9, r9
je 0x18006e686
lea rax, [rbp - 0x30]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x18006e660
mov r8, rbx
mov edx, 1
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea r14, [rbp + 0xb0]
mov rdi, qword [rbp + 0xa8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
call fcn.180001150
mov rsi, rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
lea rcx, [0x18007cbf8]
call fcn.18006e440
lea r8, [0x18007f6b4]
lea rdx, str.RunLog.log
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x18006e72e
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, qword [rbp + 0xa8]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
mov r9, qword [rsp + 0x68]
mov edx, 1
mov r8d, edx
lea rcx, [0x18007cbf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18006e76d
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006e768
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006e768
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800728f4
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1800722b0
add rsp, 0x160
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret