Function at 0x14003e600
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 [0x140260d50]
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.14000b870
nop
xor r13d, r13d
mov qword [rsp + 0x48], r13
call fcn.140050920
mov rbx, qword [rax + 8]
mov rax, qword [rbx + 0x260]
cmp dword [rax + 0x84], r13d
jne 0x14003e69f
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r13 + 2]
lea rcx, [rsp + 0x60]
call fcn.14000ba50
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
xor eax, eax
jmp 0x14003e98b
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 0x14003e708
mov edi, 1
mov r9d, edi
lea r8, str.return___08x
lea edx, [rdi + 1]
lea rcx, [rsp + 0x60]
call fcn.14000ba50
nop
jmp 0x14003e97f
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 0x14003e7d1
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14003e780
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 0x14003e770
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
ja 0x14003e7ea
mov edi, 1
jmp 0x14003e917
call fcn.14004cde4
mov r11, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14003e80a
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x50], rdi
call fcn.14004cde4
mov r11, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14003e83c
mov ecx, 0x80004005
call fcn.140001000
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.14004cbb8
test rax, rax
je 0x14003e875
mov r8d, 3
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400012a0
mov rbx, qword [rsp + 0x70]
mov ecx, 0x43
call fcn.14004cbb8
test rax, rax
je 0x14003e89c
mov r8d, 0x43
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400012a0
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov r9d, 0x34
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.14003e160
mov edi, r13d
cmp eax, 7
setne dil
cmp dword [0x140280b48], 0
je 0x14003e8d8
test rsi, rsi
je 0x14003e8d8
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 0x14003e8f6
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 0x14003e913
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x14003e965
call fcn.140013290
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.14000ba50
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret