Function at 0x14013f000
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x13b0], rax
mov esi, edx
lea rdx, str.CBaseInfoPrinterEx::RemoveBackUpDir
lea rcx, [rsp + 0x40]
call fcn.14001abe0
nop
lea r14, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14013f097
test byte [rcx + 0x1c], 1
je 0x14013f097
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, MsiSetPropertyW
lea r8, [0x140261f68]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x3b0]
call fcn.1401e7e40
lea rcx, [rsp + 0x30]
call fcn.140091e00
nop
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call qword [case.0x1400136d6.0]
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x50]
mov rcx, rdx
call qword [case.0x1400136d6.0]
mov edi, eax
test eax, eax
jne 0x14013f1e8
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xbb0]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0xbb0]
lea rdx, str.ProgramFilesFolder
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rdx, [rbp + 0xbb0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.Canon_
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InstRestore
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
add rax, 0xb68
cmp qword [rax + 0x18], 8
jb 0x14013f1db
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x3b0]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rcx, r9
call qword [case.0x1400136d6.0]
test esi, esi
je 0x14013f234
lea rdx, [rbp + 0x3b0]
lea rcx, [rsp + 0x30]
call fcn.140097fc0
jmp 0x14013f241
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test edi, edi
jne 0x14013f2f1
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14013f28c
test byte [rcx + 0x1c], 4
je 0x14013f28c
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, MsiSetPropertyW
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r8, [0x140261f68]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14013f2b8
test esi, esi
je 0x14013f2ae
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.140097fc0
jmp 0x14013f2b8
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x30]
call fcn.140098af0
test eax, eax
jne 0x14013f2f1
test esi, esi
je 0x14013f2e4
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x30]
call fcn.140097fc0
jmp 0x14013f2f1
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [rsp + 0x48], 1
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14013f335
test byte [rcx + 0x1c], 1
je 0x14013f335
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, MsiSetPropertyW
mov dword [rsp + 0x20], edi
lea r8, [0x140261f68]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rcx, [rsp + 0x30]
call fcn.140091f70
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0x48], 0
jne 0x14013f3a3
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x14013f3a3
test byte [rcx + 0x1c], 1
je 0x14013f3a3
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rax, qword [rsp + 0x50]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x50]
call fcn.1400048a0
mov eax, edi
mov rcx, qword [rbp + 0x13b0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x14c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret