Function at 0x140032060
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x808]
sub rsp, 0x8e0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, str.CUNINSTALLERApp::ExitInstance
lea rcx, [rsp + 0x78]
call fcn.140017fc0
nop
cmp dword [rbx + 0xa88], 0
je 0x1400320c2
xor ecx, ecx
call fcn.14000d3c0
xor eax, eax
lea r13, [0x1401c6ea8]
mov rdi, r13
mov rsi, qword [rbx + 0x2a0]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400320e4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
xor r14d, r14d
or esi, 0xffffffff
test al, al
je 0x140032231
call fcn.140051e58
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140032117
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
test r13, 0xffffffffffff0000
jne 0x140032154
movzx edi, r13w
mov ecx, edi
call fcn.140051c2c
test rax, rax
je 0x140032165
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001b00
jmp 0x140032165
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140001c20
nop
lea r8, str.uninst.ini
lea rdx, [rbx + 0x2a0]
lea rcx, [rsp + 0x70]
call fcn.140007ed0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x50]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400321dc
cmp dword [rdi + 0x10], 0
jl 0x1400321cd
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400321cd
call fcn.140001950
mov r13, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400321c2
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [r13 + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x1400321dc
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140001c20
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400321fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x2a0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140032231
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14000e280
mov rcx, qword [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp qword [rbx + 0x268], 0
je 0x1400322d4
call fcn.140051e58
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140032271
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x60], rdi
mov ecx, 0x39
call fcn.140051c2c
test rax, rax
je 0x1400322aa
mov r8d, 0x39
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140001b00
mov rdi, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, qword [rbx + 0x268]
call fcn.140007c90
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400322d4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
mov rcx, rbx
call fcn.140031950
lea rcx, [rbx + 0x798]
call fcn.14004a800
cmp dword [rbx + 0x36c], 1
jne 0x1400323fb
mov edx, 0x20
lea rcx, [rbx + 0x578]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbx + 0x578]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbp + 0x5c0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x5c2]
call fcn.140192cb0
mov word [rbp + 0x3b0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x3b2]
call fcn.140192cb0
mov word [rbp - 0x70], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.140192cb0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0x104
lea r9, [rbp + 0x3b0]
mov r8d, 0x104
lea rdx, [rbp + 0x5c0]
lea rcx, [rbx + 0x578]
call fcn.1401967f4
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x3b0]
lea r8, [rbp + 0x5c0]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14019669c
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InsCmn.dll
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, 0x20
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x218]
sub rcx, 0x18
call fcn.140001950
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
mov edx, 0x5c
mov rcx, rdi
call fcn.140193dc0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, 0x5c
mov rcx, rdi
call fcn.140193dc0
test rax, rax
jne 0x140032440
mov eax, esi
jmp 0x140032446
sub rax, rdi
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140017f20
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1400324b3
cmp dword [rdi + 0x10], 0
jl 0x1400324a4
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400324a4
call fcn.140001950
mov r12, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140032498
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [r12 + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x1400324b3
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140001c20
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400324d2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.140192cb0
mov edx, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.14000db20
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.Canon_
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbx + 0x788]
test rcx, rcx
je 0x140032554
movsxd r8, dword [rbx + 0x270]
xor r9d, r9d
mov edx, 0x8001
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, rbx
call fcn.140064d54
mov r12d, eax
test eax, eax
jne 0x14003256a
mov r12d, dword [rbx + 0x270]
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x78]
call fcn.140017c80
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14003259d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x78]
call fcn.140018150
mov eax, r12d
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret