Function at 0x14013ebf0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x1090
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov rdi, r9
mov r14d, edx
lea rdx, str.CBaseInfoPrinterEx::MakeBackUpDir
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea r15, [0x1402a8360]
lea rsi, [0x1402bbdb0]
mov rbx, qword [0x1402a8360]
cmp rbx, r15
je 0x14013ecd1
test byte [rbx + 0x1c], 1
je 0x14013ec8a
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x86
lea r8, [0x140261f68]
mov rcx, qword [rbx + 0x10]
call fcn.140001ad0
mov rbx, qword [0x1402a8360]
cmp rbx, r15
je 0x14013ecd1
test byte [rbx + 0x1c], 1
je 0x14013ecd1
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x87
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r8, [0x140261f68]
mov rcx, qword [rbx + 0x10]
call fcn.1400483b0
mov rbx, qword [0x1402a8360]
xor ebp, ebp
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x880]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x80]
call fcn.1401e7e40
test rdi, rdi
jne 0x14013ed16
mov ebp, 0x80010001
mov dword [0x1402bbd98], 1
jmp 0x14013ef0d
xor edx, edx
mov r8d, 0x208
mov rcx, rdi
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
lea r8, [rsp + 0x880]
lea rdx, str.ProgramFilesFolder
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rdx, [rsp + 0x880]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.Canon_
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14013eda0
test r14d, r14d
je 0x14013eda0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InstRestore
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14013edd6
test r14d, r14d
je 0x14013edd6
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rdi
mov edx, 0x400
lea rcx, [rsp + 0x80]
call fcn.1401ebfa8
lea rdx, str.color_
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14013ee2b
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov rcx, rax
mov rax, qword [rax]
lea r8, [rsp + 0x80]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
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 0x14013ee82
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14013eeab
test r14d, r14d
je 0x14013eeab
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x14013eeea
test byte [rcx + 0x1c], 4
je 0x14013eeea
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x88
mov qword [rsp + 0x20], rdi
lea r8, [0x140261f68]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rbx, qword [0x1402a8360]
test eax, eax
jne 0x14013ef0d
mov ebp, 0x80010009
mov dword [0x1402bbd98], 9
mov al, 1
mov byte [rsp + 0x38], al
cmp rbx, r15
je 0x14013ef55
test byte [rbx + 0x1c], al
je 0x14013ef55
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, MsiSetPropertyW
mov dword [rsp + 0x20], ebp
lea r8, [0x140261f68]
mov rcx, qword [rbx + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x38]
mov rbx, qword [0x1402a8360]
lea rcx, vtable.WppTrace.0
mov qword [rsp + 0x30], rcx
test al, al
jne 0x14013efae
cmp rbx, r15
je 0x14013efae
test byte [rbx + 0x1c], 1
je 0x14013efae
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rsi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rsi
lea r8, [0x140252818]
mov rcx, qword [rbx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
mov eax, ebp
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret