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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140344548]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
xor r12d, r12d
test rcx, rcx
je 0x14026064b
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 0x14026083b
lea rdi, [rbx - 1]
mov r8, rdi
lea rdx, [rsi + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140258610
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
jne 0x1402606dd
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14026081b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1402606cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140260826
call fcn.140082030
nop
mov rbx, rdi
test rdi, rdi
jmp 0x140260652
mov r8, rbx
lea rdx, [rsi + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140258610
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 0x140260789
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 0x14026089a
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1402607c8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1402607c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14026082d
call fcn.140082030
nop
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r12w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14026081b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140260815
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140260834
call fcn.140082030
nop
mov rbx, rdi
test rdi, rdi
jmp 0x140260652
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
cmp qword [rsi + 0x98], 0
je 0x140260880
lea rdx, [rsi + 0x88]
mov r8b, 1
lea rcx, [rsi + 0x78]
call fcn.14025fc80
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140266400
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, str.Failed_re_opening_file___was_not_opened_before
lea rcx, [rsp + 0x48]
call fcn.140096cb0
mov rcx, rax
call fcn.140261980
nop
mov dl, 1
lea rcx, [rsi + 0x78]
call fcn.1402605c0
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, [rsp + 0x68]
call fcn.140259880
mov rbx, rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.140259880
nop
mov r8, rax
lea rdx, str.rotating_file_sink:_failed_renaming
lea rcx, [rbp - 0x58]
call fcn.1400d65d0
nop
lea r8, str._to
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400a2a20
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.14024d580
nop
mov edx, edi
mov rcx, rax
call fcn.140261950
int3