Function at 0x1400a66a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140239158]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
xor r12d, r12d
test rcx, rcx
je 0x1400a66f4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x80], r12
mov rbx, qword [rsi + 0x68]
test rbx, rbx
je 0x1400a68de
lea rdi, [rbx - 1]
mov r8, rdi
lea rdx, [rsi + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14009c2b0
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400a6781
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400a6776
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a6770
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a68c9
call fcn.1400aa758
nop
mov rbx, rdi
test rdi, rdi
jmp 0x1400a66fb
mov r8, rbx
lea rdx, [rsi + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14009c2b0
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
nop
test eax, eax
je 0x1400a682d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
nop
test eax, eax
jne 0x1400a6911
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400a686b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a6866
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a68d0
call fcn.1400aa758
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400a68be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a68b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a68d7
call fcn.1400aa758
nop
mov rbx, rdi
test rdi, rdi
jmp 0x1400a66fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dl, 1
lea rcx, [rsi + 0x78]
call fcn.1400a63a0
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400aab20
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov dl, 1
lea rcx, [rsi + 0x78]
call fcn.1400a63a0
mov qword [rsi + 0x70], r12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x60]
call fcn.14009d8f0
mov rbx, rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call fcn.14009d8f0
nop
mov r8, rax
lea rdx, str.rotating_file_sink:_failed_renaming
lea rcx, [rbp - 0x20]
call fcn.140078cc0
nop
lea r8, str._to
mov rdx, rax
lea rcx, [rbp]
call fcn.140078c60
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140078bd0
nop
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400968b0
lea rdx, [0x140233f38]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3