Function at 0x14003e3d0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x4f0], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rsi, rdx
mov r12, rcx
xor r8d, r8d
lea rdx, str.CUNINSTALLERDlg::CleanUpDIAS
lea rcx, [rsp + 0x60]
call fcn.140017fc0
nop
xor r13d, r13d
mov qword [rsp + 0x48], r13
call fcn.140054cb8
mov rbx, qword [rax + 8]
mov rax, qword [rbx + 0x260]
cmp dword [rax + 0x84], r13d
jne 0x14003e46f
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r13 + 2]
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
xor eax, eax
jmp 0x14003e75b
lea r9, str.DIASUser
lea r8, str.SOFTWARECanonDIASSETUP
lea rdx, str._s_s
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003e4d8
mov edi, 1
mov r9d, edi
lea r8, str.return___08x
lea edx, [rdi + 1]
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
jmp 0x14003e74f
mov rdx, qword [rbx + 0x1b8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, r13d
mov edi, r13d
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x44], 0x208
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14003e5a1
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14003e550
inc ebx
inc edi
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x44], 0x208
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
mov edx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14003e540
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
ja 0x14003e5ba
mov edi, 1
jmp 0x14003e6e7
call fcn.140051e58
mov r11, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14003e5da
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x50], rdi
call fcn.140051e58
mov r11, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14003e60c
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
mov ecx, 3
call fcn.140051c2c
test rax, rax
je 0x14003e645
mov r8d, 3
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140001b00
mov rbx, qword [rsp + 0x70]
mov ecx, 0x43
call fcn.140051c2c
test rax, rax
je 0x14003e66c
mov r8d, 0x43
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001b00
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r9d, 0x34
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.14003df20
mov edi, r13d
cmp eax, 7
setne dil
cmp dword [0x14027dae0], 0
je 0x14003e6a8
test rsi, rsi
je 0x14003e6a8
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14003e6c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14003e6e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x14003e735
call fcn.140014ee0
lea r9, str.DIASUser
lea r8, str.SOFTWARECanonDIASSETUP
lea rdx, str._s_s
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove edi, r13d
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140017c80
nop
lea rcx, [rsp + 0x60]
call fcn.140018150
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret