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

Disassembly:
push rbp
lea rbp, [rsp - 0x1b70]
mov eax, 0x1c70
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1c80], rbx
mov qword [rsp + 0x1c88], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x1b60], rax
mov edi, edx
xor r8d, r8d
lea rdx, str.CBaseInfoOSEnv::RemoveBackUpDir
lea rcx, [rsp + 0x20]
call fcn.1400075a0
nop
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400b9f7b
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.14024b970
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1360]
call fcn.14024b970
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xb60]
call fcn.14024b970
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x150]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0xb60]
lea rdx, str.ProgramFilesFolder
mov rcx, rax
call qword [r9 + 0x18]
lea rdx, [rbp + 0xb60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.Canon_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InstRestore
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x1360]
lea rdx, str.PRODUCT
mov rcx, rax
call qword [r9 + 0x18]
lea rdx, [rbp + 0x1360]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov word [rbp + 0x360], ax
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x362]
call fcn.14024b970
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x360]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rcx, rax
call qword [r9 + 0x18]
test edi, edi
je 0x1400b9fda
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rbp + 0x360]
call qword [rax + 0xe8]
jmp 0x1400b9fe7
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test ebx, ebx
jne 0x1400ba082
lea r9, [rsp + 0x40]
lea r8, str._t_t_tCheck_Path___s.
lea edx, [rbx + 7]
lea rcx, [rsp + 0x20]
call fcn.140007780
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400ba03d
test edi, edi
je 0x1400ba032
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0xe8]
jmp 0x1400ba03d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rbp + 0x150]
call qword [rax + 0x170]
test eax, eax
jne 0x1400ba082
test edi, edi
je 0x1400ba075
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rbp + 0x150]
call qword [rax + 0xe8]
jmp 0x1400ba082
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140007780
nop
lea rcx, [rsp + 0x20]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rbp + 0x1b60]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x1c70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret