Function at 0x1400c0460
Capabilities:
Check if file exists
Delete directory
Delete file
Delete registry value

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 - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1401e7e40
lea rax, vtable.CMap_class_ATL::CStringT_unsigned_short_int__class_StrTraitMFC_unsigned_short_int__class_ATL::ChTraitsCRT_unsigned_short_int_____unsigned_short_int_const____ptr64__unsigned_char____ptr64__unsigned_char____ptr64_.0
mov qword [rsp + 0x48], rax
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], reloc.COMCTL32.dll_InitCommonControls
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x14026f400]
movdqa xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
lfence
lea ecx, [r12 + 0x48]
call fcn.1401baa78
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x40], r12
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 0x1400c0544
mov rax, qword [rax]
mov r9, rax
lea r8, str.SOFTWARECanonPrnUninst
lea rdx, [0x140252608]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400c0582
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
test eax, eax
cmove rcx, r12
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
neg rax
sbb rdi, rdi
mov r15, 0xffffffffffffffff
test rcx, rcx
je 0x1400c06dc
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1400c0980
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x1400c097a
mov rsi, rdi
test rdi, rdi
je 0x1400c097a
mov r8d, dword [rsp + 0x58]
cmp rdi, 0xffffffffffffffff
jne 0x1400c060f
mov ecx, r12d
test r8d, r8d
je 0x1400c060f
mov eax, ecx
mov rsi, qword [r9 + rax*8]
test rsi, rsi
jne 0x1400c060f
inc ecx
cmp ecx, r8d
jb 0x1400c05f4
test rsi, rsi
je 0x1400c097a
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x1400c0637
xor edx, edx
mov eax, dword [rsi + 0x18]
div r8d
inc edx
cmp edx, r8d
jae 0x1400c0637
mov rdi, qword [r9 + rdx*8]
test rdi, rdi
jne 0x1400c0637
inc edx
cmp edx, r8d
jb 0x1400c0627
mov rdx, qword [rsi]
lea rcx, [rdx - 0x18]
lea r14, [rbx - 0x18]
cmp rcx, r14
je 0x1400c06a0
cmp dword [r14 + 0x10], 0
jl 0x1400c068d
mov rax, qword [r14]
cmp qword [rcx], rax
jne 0x1400c068d
call fcn.140004d00
mov rbx, rax
mov ecx, r15d
lock xadd dword [r14 + 0x10], ecx
sub ecx, 1
jg 0x1400c0682
lfence
mov rcx, qword [r14]
mov r8, qword [rcx]
mov rdx, r14
mov rax, qword [r8 + 8]
call qword [case.0x1400136d6.0]
add rbx, 0x18
mov qword [rsp + 0x38], rbx
jmp 0x1400c06a0
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140004e60
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400c06af
call fcn.1400079c0
nop
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c06d3
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
test rdi, rdi
jne 0x1400c05a0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c0749
mov edi, r12d
mov edx, dword [rsp + 0x58]
test edx, edx
je 0x1400c073f
mov eax, edi
mov rbx, qword [rcx + rax*8]
test rbx, rbx
je 0x1400c0739
nop dword [rax]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c0727
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c0700
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
inc edi
cmp edi, edx
jb 0x1400c06f1
call fcn.1400079c0
mov qword [rsp + 0x50], r12
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov rcx, qword [rsp + 0x70]
call fcn.1401bc020
mov qword [rsp + 0x70], r12
mov rbx, qword [rbp - 0x80]
mov r8, qword [rbx + 8]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140008f00
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rbp - 0x78], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c0940
mov qword [rbp - 0x70], r12
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, str.IcnPath
lea rcx, [rsp + 0x40]
call fcn.140007cf0
test eax, eax
jne 0x1400c0940
mov r8, qword [rbp - 0x70]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1401ebfa8
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400c0940
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1400c0940
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400c0940
call fcn.1401bb0c4
mov rcx, rax
test rax, rax
je 0x1400c0980
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
cmp rax, 0x10000
jae 0x1400c0866
lea rax, [rbp - 0x60]
movzx edx, ax
lea rcx, [rsp + 0x30]
call fcn.1400041d0
jmp 0x1400c088c
lea rcx, [rbp - 0x60]
mov rax, r15
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400c0870
mov r8d, eax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x30]
call fcn.140004e60
nop
mov edx, 0x5c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1401e768c
test rax, rax
jne 0x1400c08a8
mov eax, r15d
jmp 0x1400c08ae
sub rax, rbx
sar rax, 1
mov r8d, eax
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x30]
call fcn.140004340
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140004620
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c08f6
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400c091c
lea rdx, str.IcnPath
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x1400c0940
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
nop
lea rcx, [rsp + 0x40]
call fcn.140007a90
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x4d0]
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
call fcn.1401bb848
nop
mov ecx, 0x80004005
call fcn.140001470
int3