Function at 0x14002c210
Capabilities:
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa90
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov r13, rcx
xor r8d, r8d
lea rdx, str.Tool_UninstallColorProfile
lea rcx, [rsp + 0x38]
call fcn.14000b870
nop
xor ebx, ebx
mov r12d, ebx
lea rcx, str.MSCMS.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
call fcn.140050920
test r14, r14
je 0x14002c47d
lea rdx, str.UninstallColorProfileW
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x14002c474
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.140193010
mov word [rsp + 0x260], bx
xor edx, edx
mov r8d, 0x81e
lea rcx, [rsp + 0x262]
call fcn.140193010
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.SpoolDriversCOLOR
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140191cac
lea r12d, [rbx + 1]
mov ebp, ebx
mov rcx, qword [r13 + 0x10]
mov esi, ebx
test rcx, rcx
jle 0x14002c474
test rsi, rsi
js 0x14002c46e
cmp rsi, rcx
jge 0x14002c46e
mov rax, qword [r13 + 8]
mov rcx, qword [rax + rsi*8]
sub rcx, 0x18
call fcn.140001620
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x14002c463
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002c36a
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400015c0
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14019178c
cmp edi, dword [rbx - 0xc]
jg 0x14002c458
mov dword [rbx - 0x10], edi
xor ecx, ecx
mov word [rbx + rdi*2], cx
cmp dword [rbx - 0x10], ecx
jl 0x14002c426
lea rdx, [0x1402164a0]
mov rcx, rbx
call fcn.140190f4c
test rax, rax
je 0x14002c426
sub rax, rbx
sar rax, 1
test eax, eax
jne 0x14002c426
mov rcx, rbx
call fcn.14001ad50
test eax, eax
je 0x14002c408
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
lea r8, str._s_s
mov edx, 0x410
lea rcx, [rsp + 0x260]
call fcn.140191178
mov r8d, 1
lea rdx, [rsp + 0x260]
xor ecx, ecx
call r15
test eax, eax
jne 0x14002c408
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12d, eax
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002c441
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x14002c441
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002c441
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc ebp
inc rsi
mov rcx, qword [r13 + 0x10]
movsxd rax, ebp
cmp rax, rcx
jl 0x14002c310
jmp 0x14002c474
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
call fcn.14004d690
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x38]
call fcn.14000ba00
mov eax, r12d
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14018e5d0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret