Function at 0x140033700
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 [0x14026fdb0]
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.140001190
nop
xor ebx, ebx
mov r12d, ebx
lea rcx, str.MSCMS.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x14003396d
lea rdx, str.UninstallColorProfileW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x140033964
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.14019d7c0
mov word [rsp + 0x260], bx
xor edx, edx
mov r8d, 0x81e
lea rcx, [rsp + 0x262]
call fcn.14019d7c0
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.14019c388
lea r12d, [rbx + 1]
mov ebp, ebx
mov rcx, qword [r13 + 0x10]
mov esi, ebx
test rcx, rcx
jle 0x140033964
nop dword [rax + rax]
test rsi, rsi
js 0x14003395e
cmp rsi, rcx
jge 0x14003395e
mov rax, qword [r13 + 8]
mov rcx, qword [rax + rsi*8]
sub rcx, 0x18
call fcn.140006db0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x140033953
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14003385a
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140005ae0
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14019a838
cmp edi, dword [rbx - 0xc]
jg 0x140033948
mov dword [rbx - 0x10], edi
xor ecx, ecx
mov word [rbx + rdi*2], cx
cmp dword [rbx - 0x10], ecx
jl 0x140033916
lea rdx, [0x140222398]
mov rcx, rbx
call fcn.1401998b4
test rax, rax
je 0x140033916
sub rax, rbx
sar rax, 1
test eax, eax
jne 0x140033916
mov rcx, rbx
call fcn.140024c30
test eax, eax
je 0x1400338f8
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
lea r8, str._s_s
mov edx, 0x410
lea rcx, [rsp + 0x260]
call fcn.140198b60
mov r8d, 1
lea rdx, [rsp + 0x260]
xor ecx, ecx
call r15
test eax, eax
jne 0x1400338f8
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 0x140033931
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x140033931
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140033931
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 0x140033800
jmp 0x140033964
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
nop
call fcn.14005694c
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.140001370
nop
lea rcx, [rsp + 0x38]
call fcn.140001320
mov eax, r12d
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140198b40
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