Function at 0x1400088f8
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006c100]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x30], r15
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r15w
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400089ae
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1400089ae
mov ecx, edi
jmp 0x140008c1c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140007e74
mov r8d, 1
lea rdx, [0x140052ed0]
lea rcx, [rsp + 0x50]
call fcn.1400080d4
mov r8d, 9
lea rdx, str.LogsPLUG
lea rcx, [rsp + 0x50]
call fcn.1400080d4
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140008a17
shr ebx, 4
and ebx, 1
jmp 0x140008a1a
mov ebx, r15d
xor ecx, ecx
call fcn.140004854
xor ecx, ecx
call fcn.140004854
test ebx, ebx
jne 0x140008a4c
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call fcn.14000814c
mov edi, eax
test eax, eax
js 0x140008c1a
mov esi, r15d
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140008a89
lea rbx, [rax - 4]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140004854
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
inc esi
mov dword [rsp + 0x20], esi
lea r9, str.RUXIMLog
lea rdx, str._s_s._03d.etl
lea rcx, [rsp + 0x30]
call fcn.14000845c
mov edi, eax
test eax, eax
js 0x140008c1a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400087c0
mov edi, eax
test eax, eax
js 0x140008c1a
cmp esi, 0x32
jb 0x140008a4f
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsi + 0x188]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140008b0d
shr ebx, 4
not ebx
and ebx, 1
jmp 0x140008b10
mov ebx, r15d
xor ecx, ecx
call fcn.140004854
xor ecx, ecx
call fcn.140004854
test ebx, ebx
je 0x140008b66
mov rcx, qword [rsi + 0x188]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140008b66
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140008b53
mov edi, 0x80004005
jmp 0x1400089a7
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400089a7
mov edi, 0x180
mov rcx, qword [rsi + rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140008b8c
shr ebx, 4
not ebx
and ebx, 1
jmp 0x140008b8f
mov ebx, r15d
xor ecx, ecx
call fcn.140004854
xor ecx, ecx
call fcn.140004854
test ebx, ebx
je 0x140008bbe
mov rdx, qword [rdi + rsi + 8]
mov rcx, qword [rsi + rdi]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileW]
nop dword [rax + rax]
test eax, eax
je 0x140008b39
sub rdi, 8
cmp rdi, 0xfffffffffffffff8
jne 0x140008b6b
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140008be8
shr ebx, 4
not ebx
and ebx, 1
jmp 0x140008beb
mov ebx, r15d
xor ecx, ecx
call fcn.140004854
xor ecx, ecx
call fcn.140004854
mov edi, r15d
test ebx, ebx
je 0x140008c0f
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov rax, qword [rsi]
mov qword [rsi], r15
mov qword [r14], rax
jmp 0x140008c21
mov ecx, eax
call fcn.140009f6c
mov ecx, edi
call fcn.140004854
nop
lea rcx, [rsp + 0x50]
call fcn.140007d04
nop
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140008c6a
lea rbx, [rax - 4]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140004854
nop
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14000849c
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140008ca0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14004b180
lea r11, [rsp + 0x290]
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