Function at 0x14001d4a0
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 - 0x628]
sub rsp, 0x700
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
xor r8d, r8d
lea rdx, str.Tool_DIASUninstallCheck
lea rcx, [rsp + 0x78]
call fcn.140001190
nop
xor r15d, r15d
mov qword [rsp + 0x68], r15
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.14019d7c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.14019d7c0
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x5c], r15d
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x58], r15d
mov r13d, r15d
call fcn.140056384
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x14001d571
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
call fcn.140056384
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x14001d5a0
mov ecx, 0x80004005
call fcn.140004550
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
call fcn.140059f20
mov r14, qword [rax + 8]
mov qword [rbp - 0x58], r14
mov rdx, qword [r14 + 0x1b0]
lea rcx, [rdx - 0x18]
lea rsi, [rdi - 0x18]
or r12d, 0xffffffff
cmp rcx, rsi
je 0x14001d627
cmp dword [rsi + 0x10], 0
jl 0x14001d614
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x14001d614
call fcn.140006db0
mov rdi, rax
mov eax, r12d
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x14001d604
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rdi, 0x18
mov qword [rsp + 0x40], rdi
mov rbx, qword [rsp + 0x48]
jmp 0x14001d627
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400059f0
mov rdi, qword [rsp + 0x40]
mov rax, qword [r14 + 0x260]
cmp dword [rax + 0x84], 0
jne 0x14001d69e
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x78]
call fcn.140001370
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001d66c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14001d68d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x78]
call fcn.140001320
xor eax, eax
jmp 0x14001ddb7
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
lea ecx, [rdx + 6]
lea r8d, [r9 + 2]
call qword [sym.imp.WINSPOOL.DRV_EnumPrintersW]
test eax, eax
jne 0x14001d73f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14001d73f
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x78]
call fcn.140001370
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001d70d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14001d72e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x78]
call fcn.140001320
xor eax, eax
jmp 0x14001ddb7
mov edx, dword [rsp + 0x54]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14001dd52
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
mov r9, rsi
xor edx, edx
lea ecx, [rdx + 6]
lea r8d, [rdx + 2]
call qword [sym.imp.WINSPOOL.DRV_EnumPrintersW]
test eax, eax
je 0x14001dc10
mov dword [rsp + 0x64], r15d
mov r13d, 1
mov dword [rsp + 0x60], r13d
cmp dword [rsp + 0x5c], 0
jbe 0x14001dc10
lea rax, [rdi - 0x10]
mov qword [rbp - 0x68], rax
lea r14, [rsi + 0x20]
mov qword [rbp - 0x78], r14
nop
mov esi, r15d
test esi, esi
js 0x14001d957
cmp esi, dword [rax]
jge 0x14001d957
mov edx, 9
movsxd rax, esi
lea rcx, [rdi + rax*2]
call fcn.140199ab0
mov r15, rax
test rax, rax
je 0x14001d957
sub r15, rdi
sar r15, 1
test r15d, r15d
js 0x14001d95a
mov r9d, r15d
sub r9d, esi
mov r8d, esi
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.14000b960
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x14001d94e
cmp dword [rdi + 0x10], 0
jl 0x14001d869
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001d869
call fcn.140006db0
mov rbx, rax
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14001d85b
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x14001d94e
movsxd rsi, dword [r13 - 0x10]
test esi, esi
jne 0x14001d8cc
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x14001d94e
cmp dword [rdi + 0x10], 0
jge 0x14001d89b
cmp dword [rbx - 0xc], 0
jl 0x14001db2d
xor eax, eax
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14001d94e
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14001d8b5
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
jmp 0x14001d94e
test r13, r13
je 0x14001db4e
mov r14d, dword [rbx - 0x10]
mov r12, r13
sub r12, rbx
sar r12, 1
test esi, esi
js 0x14001db43
mov ecx, dword [rsp + 0x60]
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x14001d90b
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.140005ae0
mov rbx, qword [rsp + 0x48]
lea rdi, [rsi + rsi]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r12, r14
ja 0x14001d92c
lea r8, [rbx + r12*2]
call fcn.140199418
jmp 0x14001d934
mov r8, r13
call fcn.140199918
cmp esi, dword [rbx - 0xc]
jg 0x14001db38
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [rdi + rbx], ax
or r12d, 0xffffffff
mov r14, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x50]
jmp 0x14001daa7
mov r15d, r12d
mov r8d, esi
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140012110
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x14001daa3
cmp dword [rdi + 0x10], 0
jl 0x14001d9be
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14001d9be
call fcn.140006db0
mov rbx, rax
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14001d9b0
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x14001daa3
movsxd rsi, dword [r13 - 0x10]
test esi, esi
jne 0x14001da21
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x14001daa3
cmp dword [rdi + 0x10], 0
jge 0x14001d9f0
cmp dword [rbx - 0xc], 0
jl 0x14001db59
xor eax, eax
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x14001daa3
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x14001da0a
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
jmp 0x14001daa3
test r13, r13
je 0x14001db7a
mov r14d, dword [rbx - 0x10]
mov r12, r13
sub r12, rbx
sar r12, 1
test esi, esi
js 0x14001db6f
mov ecx, dword [rsp + 0x60]
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x14001da60
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.140005ae0
mov rbx, qword [rsp + 0x48]
lea rdi, [rsi + rsi]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r12, r14
ja 0x14001da81
lea r8, [rbx + r12*2]
call fcn.140199418
jmp 0x14001da89
mov r8, r13
call fcn.140199918
cmp esi, dword [rbx - 0xc]
jg 0x14001db64
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [rdi + rbx], ax
or r12d, 0xffffffff
mov r14, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001dac2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r14]
xor eax, eax
test rdx, rdx
setne al
test eax, eax
je 0x14001dc05
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140199570
test eax, eax
je 0x14001db94
lea esi, [r15 + 1]
test r15d, r15d
js 0x14001db01
mov rdi, qword [rsp + 0x40]
mov rax, qword [rbp - 0x68]
jmp 0x14001d7c3
mov ecx, dword [rsp + 0x64]
inc ecx
mov dword [rsp + 0x64], ecx
add r14, 0x88
mov qword [rbp - 0x78], r14
xor r15d, r15d
cmp ecx, dword [rsp + 0x5c]
jae 0x14001db85
mov rdi, qword [rsp + 0x40]
mov rax, qword [rbp - 0x68]
jmp 0x14001d7c0
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
nop
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
int3
mov ecx, 0x80070057
call fcn.140004550
nop
mov r13d, dword [rsp + 0x60]
mov rsi, qword [rbp - 0x70]
mov r14, qword [rbp - 0x58]
jmp 0x14001dc10
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x78]
call fcn.140001370
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001dbd3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14001dbf4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x78]
call fcn.140001320
xor eax, eax
jmp 0x14001ddb7
mov ecx, 0x80004005
call fcn.140004550
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r13d, r13d
je 0x14001dd52
lea r9, str.DIASUser
lea r8, str.SOFTWARECanonDIASSETUP
lea rdx, str._s_s
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x68]
mov qword [rsp + 0x20], r11
mov r9d, 0x2011f
xor r8d, r8d
lea rdx, [rbp + 0x1d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001dc77
mov r13d, r15d
jmp 0x14001dd52
mov rdx, qword [r14 + 0x1b8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, r15d
mov esi, r15d
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x58], 0x208
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001dd41
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14001dcf0
inc edi
inc esi
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x58], 0x208
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x40]
mov edx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14001dce0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
cmova r13d, r15d
mov r9d, r13d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x78]
call fcn.140001370
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001dd88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x14001ddaa
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x78]
call fcn.140001320
mov eax, r13d
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.140198b40
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret