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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, rcx
lea r14, [rcx + 0x78]
mov rcx, qword [rcx + 0x80]
xor r15d, r15d
test rcx, rcx
je 0x140043eb9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x80], r15
mov rbx, qword [rdi + 0x68]
test rbx, rbx
je 0x1400440a3
lea rsi, [rdi + 0x40]
nop word [rax + rax]
lea rdi, [rbx - 1]
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14003d950
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
je 0x140043f09
test al, 0x10
jne 0x140043f09
mov al, 1
jmp 0x140043f0b
xor al, al
test al, al
jne 0x140043f57
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140043f52
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043f4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400440d6
call fcn.14005f1b8
nop
jmp 0x140044097
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.14003d950
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 0x140044002
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 0x1400440eb
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140044044
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004403f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400440dd
call fcn.14005f1b8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140044097
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044091
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400440e4
call fcn.14005f1b8
nop
mov rbx, rdi
test rdi, rdi
jne 0x140043ed0
mov dl, 1
mov rcx, r14
call fcn.140043ae0
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14005f850
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
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
mov rcx, r14
call fcn.140043ae0
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x60]
call fcn.14003f130
mov rbx, rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call fcn.14003f130
nop
mov r8, rax
lea rdx, str.rotating_file_sink:_failed_renaming
lea rcx, [rbp - 0x20]
call fcn.140029750
nop
lea r8, str._to
mov rdx, rax
lea rcx, [rbp]
call fcn.1400296f0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140029660
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, dword [rax]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1400395a0
lea rdx, [0x1401062c0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3