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

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x1860
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1880], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x1850], rax
mov rbx, r9
mov ebp, r8d
mov esi, edx
xor r8d, r8d
lea rdx, str.CBaseInfoOSEnv::MakeBackUpDir
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov qword [rsp + 0x20], rbx
mov r9d, ebp
lea r8, str.dwPathLen___d__lpPath___p
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
xor edi, edi
mov word [rsp + 0x50], di
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call fcn.14024b970
test rbx, rbx
jne 0x1400b9bd1
mov edi, 0x80010001
mov dword [0x1403b95bc], 1
jmp 0x1400b9da0
mov r8, rbp
add r8, r8
xor edx, edx
mov rcx, rbx
call fcn.14024b970
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x1050]
call fcn.14024b970
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x850]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x850]
lea rdx, str.ProgramFilesFolder
mov rcx, rax
call qword [r9 + 0x18]
lea rdx, [rsp + 0x850]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.Canon_
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400b9c77
test esi, esi
je 0x1400b9c77
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InstRestore
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400b9cac
test esi, esi
je 0x1400b9cac
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rbx
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.140246628
lea rdx, [0x1402e3a88]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400b9cf5
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x50]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rcx, rax
call qword [r9 + 0x20]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x1050]
lea rdx, str.PRODUCT
mov rcx, rax
call qword [r9 + 0x18]
lea rdx, [rsp + 0x1050]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400b9d6b
test esi, esi
je 0x1400b9d6b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r9, rbx
lea r8, str._t_t_tCheck_Path___s.
mov edx, 7
lea rcx, [rsp + 0x30]
call fcn.140007780
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400b9da0
mov edi, 0x80010009
mov dword [0x1403b95bc], 9
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov eax, edi
mov rcx, qword [rsp + 0x1850]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x1880]
add rsp, 0x1860
pop rdi
pop rsi
pop rbp
ret