Function at 0x140172840
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1bf0]
mov eax, 0x1cf0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x1be0], rax
lea rdx, str.CBaseSeqFinish::FinishInstaller
lea rcx, [rsp + 0x70]
call fcn.14001abe0
nop
lea r15, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1401728d9
test byte [rcx + 0x1c], 1
je 0x1401728d9
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1a
lea r8, [0x140266148]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x3e0]
call fcn.1401e7e40
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x140172f91
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.1400041d0
mov rax, qword [0x1402bbfe0]
lea rcx, [0x1402bbfe0]
mov rax, qword [rax + 0x38]
call qword [case.0x1400136d6.0]
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x48], r12d
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xbe0]
call fcn.1401e7e40
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 + 0xbe0]
lea rdx, str.ISFINISH
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1401729d7
test byte [rcx + 0x1c], 4
je 0x1401729d7
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
lea edx, [r12 + 0x1b]
lea rax, [rbp + 0xbe0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266148]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
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 + 0x3e0]
lea rdx, str.RebootYesNo
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140172a52
test byte [rcx + 0x1c], 4
je 0x140172a52
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1c
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266148]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x40]
call fcn.140099a10
nop
cmp word [rbp + 0xbe0], 0x31
jne 0x140172a75
cmp word [rbp + 0x3e0], 0x59
je 0x140172c4d
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140099f00
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140099f00
mov edx, 4
lea rcx, [rsp + 0x40]
call fcn.140099f00
mov edx, 5
lea rcx, [rsp + 0x40]
call fcn.140099f00
mov edx, 6
lea rcx, [rsp + 0x40]
call fcn.140099f00
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 + 0x3e0]
lea rdx, str.INTEGRATEDINSTALLER
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rdx, str.NULL
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140172c4d
lea rcx, [rsp + 0x50]
call fcn.14009ffa0
nop
lea r9, [rbp + 0x3e0]
lea r8, [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.1400a0270
movsxd rsi, dword [rsp + 0x48]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov rdx, qword [rax + 8]
add rdx, 0x4814
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [rbp + 0x3e0]
lea r8, [rsp + 0x58]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400a0270
mov eax, dword [0x1402bbd98]
mov rbx, qword [rsp + 0x58]
test rbx, rbx
cmovne eax, r12d
mov dword [0x1402bbd98], eax
mov r14d, eax
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140172bd7
test byte [rcx + 0x1c], 4
je 0x140172bd7
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 0x10]
call fcn.140171610
mov r9, r14
mov r8, rbx
mov edx, 0x401
mov rcx, rsi
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne 0x140172c43
mov rax, qword [0x1402a8360]
cmp rax, r15
je 0x140172c43
test byte [rax + 0x1c], 2
je 0x140172c43
mov rbx, rdi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x70]
call fcn.14001b0b0
mov edx, 0x1e
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140266148]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
nop
lea rcx, [rsp + 0x50]
call fcn.1400a0110
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
xor edx, edx
mov rcx, r8
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov edx, 3
mov rcx, r8
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0xc0]
mov rcx, rdx
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x1400136d6.0]
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x30]
xor edx, edx
mov rcx, r8
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x1400136d6.0]
xor edx, edx
call fcn.14013f000
lea rcx, [rsp + 0x60]
call fcn.140091e00
nop
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400136d6.0]
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x40]
mov rcx, rdx
call qword [case.0x1400136d6.0]
test eax, eax
jne 0x140172e66
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x13e0]
call fcn.1401e7e40
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 + 0x13e0]
lea rdx, str.ProgramFilesFolder
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rdx, [rbp + 0x13e0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.Canon_
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InstRestore
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x1d0]
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 0x140172e3e
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.140097fc0
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [rsp + 0x78], 1
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140172eab
test byte [rcx + 0x1c], 1
je 0x140172eab
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1f
mov dword [rsp + 0x20], r12d
lea r8, [0x140266148]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
nop
lea rcx, [rsp + 0x60]
call fcn.140091f70
nop
lea rcx, [rsp + 0x40]
call fcn.140099b80
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140172eed
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
lea rax, vtable.WppTrace.0
mov qword [rsp + 0x70], rax
cmp byte [rsp + 0x78], 0
jne 0x140172f4d
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x140172f4d
test byte [rcx + 0x1c], 1
je 0x140172f4d
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rbp - 0x60]
call fcn.1400048a0
lea rcx, [rbp - 0x80]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rbp + 0x1be0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x1cf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001470
int3