Function at 0x1400107c0
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 - 0x618]
sub rsp, 0x6f0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
xor r8d, r8d
lea rdx, str.Tool_DIASUninstallCheck
lea rcx, [rsp + 0x70]
call fcn.140017fc0
nop
xor r15d, r15d
mov esi, r15d
call fcn.140051e58
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x14001083a
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
call fcn.140051e58
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x140010869
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
call fcn.140054cb8
mov r14, qword [rax + 8]
mov qword [rbp - 0x70], r14
mov rdx, qword [r14 + 0x1b0]
lea rcx, [rdx - 0x18]
lea r12, [rbx - 0x18]
or r13d, 0xffffffff
cmp rcx, r12
je 0x1400108f6
cmp dword [r12 + 0x10], 0
jl 0x1400108e3
mov rax, qword [r12]
cmp qword [rcx], rax
jne 0x1400108e3
call fcn.140001950
mov rbx, rax
mov eax, r13d
lock xadd dword [r12 + 0x10], eax
dec eax
test eax, eax
jg 0x1400108d3
mov rcx, qword [r12]
mov rax, qword [rcx]
mov rdx, r12
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rbx, 0x18
mov qword [rsp + 0x40], rbx
mov rdi, qword [rsp + 0x58]
jmp 0x1400108f6
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140001c20
mov rbx, qword [rsp + 0x40]
mov rax, qword [r14 + 0x260]
cmp dword [rax + 0x84], 0
jne 0x14001096d
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x70]
call fcn.140017c80
nop
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001093b
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], r13d
dec r13d
test r13d, r13d
jg 0x14001095c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call fcn.140018150
xor eax, eax
jmp 0x140010e4b
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4c]
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 sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
jne 0x140010a0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140010a0d
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x70]
call fcn.140017c80
nop
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400109db
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], r13d
dec r13d
test r13d, r13d
jg 0x1400109fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call fcn.140018150
xor eax, eax
jmp 0x140010e4b
mov edx, dword [rsp + 0x4c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140010de7
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov r9, r12
xor edx, edx
lea ecx, [rdx + 6]
lea r8d, [rdx + 2]
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
je 0x140010ca7
mov dword [rsp + 0x60], r15d
cmp dword [rsp + 0x54], 0
jbe 0x140010ca2
lea r15, [rbx - 0x10]
lea r14, [r12 + 0x20]
nop word [rax + rax]
xor r12d, r12d
test r12d, r12d
js 0x140010b34
cmp r12d, dword [r15]
jge 0x140010b34
mov edx, 9
movsxd rax, r12d
lea rcx, [rbx + rax*2]
call fcn.140193da0
mov rsi, rax
test rax, rax
je 0x140010b34
sub rsi, rbx
sar rsi, 1
test esi, esi
js 0x140010b37
mov r9d, esi
sub r9d, r12d
mov r8d, r12d
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140006970
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140010b2e
cmp dword [rdi + 0x10], 0
jl 0x140010b1f
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140010b1f
call fcn.140001950
mov rbx, rax
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140010b14
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 + 0x58], rax
jmp 0x140010b2e
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140001c20
nop
mov rdx, qword [rbp - 0x60]
jmp 0x140010ba7
mov esi, r13d
mov r8d, r12d
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x40]
call fcn.140018290
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140010ba3
cmp dword [rdi + 0x10], 0
jl 0x140010b94
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140010b94
call fcn.140001950
mov rbx, rax
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140010b89
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 + 0x58], rax
jmp 0x140010ba3
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140001c20
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140010bc2
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 0x140010c97
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.1401936c8
test eax, eax
je 0x140010c26
lea r12d, [rsi + 1]
test esi, esi
js 0x140010bf8
mov rbx, qword [rsp + 0x40]
jmp 0x140010a83
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
add r14, 0x88
cmp eax, dword [rsp + 0x54]
jae 0x140010c19
mov rbx, qword [rsp + 0x40]
jmp 0x140010a80
mov r12, qword [rbp - 0x78]
mov r14, qword [rbp - 0x70]
xor r15d, r15d
jmp 0x140010ca2
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x70]
call fcn.140017c80
nop
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140010c65
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], r13d
dec r13d
test r13d, r13d
jg 0x140010c86
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call fcn.140018150
xor eax, eax
jmp 0x140010e4b
mov ecx, 0x80004005
call fcn.140001010
int3
mov esi, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x140010de7
lea r9, str.DIASUser
lea r8, str.SOFTWARECanonDIASSETUP
lea rdx, str._s_s
lea rcx, [rbp + 0x1c0]
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 + 0x1c0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140010d0d
mov esi, r15d
jmp 0x140010de7
mov rdx, qword [r14 + 0x1b8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, r15d
mov r12d, r15d
mov dword [rsp + 0x48], 0x104
mov dword [rsp + 0x50], 0x208
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140010dd5
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140010d83
inc ebx
inc r12d
mov dword [rsp + 0x48], 0x104
mov dword [rsp + 0x50], 0x208
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x50]
mov edx, r12d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140010d73
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r12d, ebx
cmova esi, r15d
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x70]
call fcn.140017c80
nop
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140010e1d
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], r13d
dec r13d
test r13d, r13d
jg 0x140010e3f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x70]
call fcn.140018150
mov eax, esi
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1401945b0
lea r11, [rsp + 0x6f0]
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