Function at 0x14025d350
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 [0x1403644c8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
xor r12d, r12d
test rcx, rcx
je 0x14025d3a4
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 0x14025d58e
lea rdi, [rbx - 1]
mov r8, rdi
lea rdx, [rsi + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1402554d0
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 0x14025d431
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14025d426
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14025d420
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14025d579
call fcn.140082ab0
nop
mov rbx, rdi
test rdi, rdi
jmp 0x14025d3ab
mov r8, rbx
lea rdx, [rsi + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1402554d0
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 0x14025d4dd
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 0x14025d5c1
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14025d51b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14025d516
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14025d580
call fcn.140082ab0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14025d56e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14025d568
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14025d587
call fcn.140082ab0
nop
mov rbx, rdi
test rdi, rdi
jmp 0x14025d3ab
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.14025d290
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400e39a0
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.14025d290
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.140256780
mov rbx, rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call fcn.140256780
nop
mov r8, rax
lea rdx, str.rotating_file_sink:_failed_renaming
lea rcx, [rbp - 0x20]
call fcn.1400d6c60
nop
lea r8, str._to
mov rdx, rax
lea rcx, [rbp]
call fcn.1400a1ef0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.14015ee20
nop
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140251a50
lea rdx, [0x14035afc0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3