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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r15, rcx
xor r8d, r8d
lea rdx, str.CUNINSTALLERDlg::CleanUpVDC
lea rcx, [rsp + 0x68]
call fcn.140001190
nop
xor ebx, ebx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x40], ebx
call fcn.140056384
mov r11, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x140045ee5
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x60], rdi
mov ecx, 0x42
call fcn.140056158
test rax, rax
je 0x140045f1e
mov r8d, 0x42
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005730
mov rdi, qword [rsp + 0x60]
mov r14, rbx
cmp dword [0x140292e28], r14d
je 0x140045f45
mov edx, 0x3f2
mov rcx, r15
call fcn.1400650c0
mov r14, rax
mov rdx, rdi
mov rcx, rax
call fcn.140065248
call fcn.140059f20
mov r13, qword [rax + 8]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, str.SOFTWARECanonVDCSETUPVDCUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140045fc6
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x68]
call fcn.140001370
nop
lea rdx, [rdi - 0x18]
or esi, 0xffffffff
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140045fb2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x68]
call fcn.140001320
mov eax, 1
jmp 0x1400462fe
call fcn.140056384
mov r11, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x140045fe5
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov rdx, qword [r13 + 0x1b8]
lea rcx, [rdx - 0x18]
lea r12, [rbx - 0x18]
or esi, 0xffffffff
cmp rcx, r12
je 0x140046067
cmp dword [r12 + 0x10], 0
jl 0x140046054
mov rax, qword [r12]
cmp qword [rcx], rax
jne 0x140046054
call fcn.140006db0
mov rbx, rax
mov ecx, esi
lock xadd dword [r12 + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140046044
mov rcx, qword [r12]
mov r8, qword [rcx]
mov rdx, r12
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
add rbx, 0x18
mov qword [rsp + 0x50], rbx
mov rdi, qword [rsp + 0x60]
jmp 0x140046067
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.1400059f0
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rdx, qword [r13 + 0x1c0]
lea rcx, [rdx - 0x18]
lea r12, [rbx - 0x18]
cmp rcx, r12
je 0x1400460e2
cmp dword [r12 + 0x10], 0
jl 0x1400460cf
mov rax, qword [r12]
cmp qword [rcx], rax
jne 0x1400460cf
call fcn.140006db0
mov rbx, rax
mov ecx, esi
lock xadd dword [r12 + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400460bf
mov rcx, qword [r12]
mov r8, qword [rcx]
mov rdx, r12
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
add rbx, 0x18
mov qword [rsp + 0x50], rbx
mov rdi, qword [rsp + 0x60]
jmp 0x1400460e2
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.1400059f0
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor r13d, r13d
mov r12d, r13d
mov dword [rsp + 0x44], 0x104
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x190]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140046198
inc r12d
mov dword [rsp + 0x44], 0x104
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x190]
mov edx, r12d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140046145
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r13
mov eax, dword [0x140292e28]
test eax, eax
cmovne rcx, r15
test r12d, r12d
sete r13b
test eax, eax
je 0x14004621b
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, rax
call fcn.140060128
mov eax, dword [0x140292e28]
test eax, eax
je 0x14004621b
xor r9d, r9d
mov edx, 0x404
lea r8d, [r9 + 1]
mov rcx, qword [r15 + 0x158]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x405
mov rcx, qword [r15 + 0x158]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rdi
mov rcx, r14
call fcn.140065248
mov eax, dword [0x140292e28]
test r13d, r13d
je 0x14004625d
call fcn.140018650
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, str.SOFTWARECanonVDCSETUPVDCUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, 0
cmove r13d, eax
mov eax, dword [0x140292e28]
test eax, eax
je 0x14004629d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x405
mov rcx, qword [r15 + 0x158]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rdi
mov rcx, r14
call fcn.140065248
xor r9d, r9d
mov edx, 0x404
lea r8d, [r9 + 3]
mov rcx, qword [r15 + 0x158]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, r13d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x68]
call fcn.140001370
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400462d2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400462f1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x68]
call fcn.140001320
mov eax, r13d
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret