Function at 0x1400137e0
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 [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
xor r8d, r8d
lea rdx, str.Tool_DIASUninstallCheck
lea rcx, [rsp + 0x70]
call fcn.14000b870
nop
xor r15d, r15d
mov r13d, r15d
call fcn.14004cde4
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x14001385a
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
call fcn.14004cde4
mov rcx, rax
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x140013889
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
call fcn.140050920
mov r14, qword [rax + 8]
mov qword [rbp - 0x60], r14
mov rdx, qword [r14 + 0x1b0]
lea rcx, [rdx - 0x18]
lea rsi, [rdi - 0x18]
or r12d, 0xffffffff
cmp rcx, rsi
je 0x140013910
cmp dword [rsi + 0x10], 0
jl 0x1400138fd
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x1400138fd
call fcn.140001620
mov rdi, rax
mov eax, r12d
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x1400138ed
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 0x140013910
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400014d0
mov rdi, qword [rsp + 0x40]
mov rax, qword [r14 + 0x260]
cmp dword [rax + 0x84], 0
jne 0x140013987
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x70]
call fcn.14000ba50
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140013955
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 0x140013976
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call fcn.14000ba00
xor eax, eax
jmp 0x1400140a6
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
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 0x140013a28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140013a28
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x70]
call fcn.14000ba50
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400139f6
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 0x140013a17
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call fcn.14000ba00
xor eax, eax
jmp 0x1400140a6
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140014041
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
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 0x140013f00
mov dword [rsp + 0x64], r15d
mov r13d, 1
mov dword [rsp + 0x5c], r13d
cmp dword [rsp + 0x54], 0
jbe 0x140013f00
lea rax, [rdi - 0x10]
mov qword [rbp - 0x68], rax
lea r14, [rsi + 0x20]
mov qword [rbp - 0x80], r14
nop dword [rax + rax]
mov esi, r15d
test esi, esi
js 0x140013c47
cmp esi, dword [rax]
jge 0x140013c47
mov edx, 9
movsxd rax, esi
lea rcx, [rdi + rax*2]
call fcn.14018efd4
mov r15, rax
test rax, rax
je 0x140013c47
sub r15, rdi
sar r15, 1
test r15d, r15d
js 0x140013c4a
mov r9d, r15d
sub r9d, esi
mov r8d, esi
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400059d0
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140013c3e
cmp dword [rdi + 0x10], 0
jl 0x140013b59
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140013b59
call fcn.140001620
mov rbx, rax
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140013b4b
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 0x140013c3e
movsxd rsi, dword [r13 - 0x10]
test esi, esi
jne 0x140013bbc
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x140013c3e
cmp dword [rdi + 0x10], 0
jge 0x140013b8b
cmp dword [rbx - 0xc], 0
jl 0x140013e1d
xor eax, eax
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140013c3e
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140013ba5
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 0x140013c3e
test r13, r13
je 0x140013e3e
mov r14d, dword [rbx - 0x10]
mov r12, r13
sub r12, rbx
sar r12, 1
test esi, esi
js 0x140013e33
mov ecx, dword [rsp + 0x5c]
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x140013bfb
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.1400015c0
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 0x140013c1c
lea r8, [rbx + r12*2]
call fcn.14018e5f0
jmp 0x140013c24
mov r8, r13
call fcn.14018e7d0
cmp esi, dword [rbx - 0xc]
jg 0x140013e28
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [rdi + rbx], ax
or r12d, 0xffffffff
mov r14, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x50]
jmp 0x140013d97
mov r15d, r12d
mov r8d, esi
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x40]
call fcn.140016680
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140013d93
cmp dword [rdi + 0x10], 0
jl 0x140013cae
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140013cae
call fcn.140001620
mov rbx, rax
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140013ca0
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 0x140013d93
movsxd rsi, dword [r13 - 0x10]
test esi, esi
jne 0x140013d11
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x140013d93
cmp dword [rdi + 0x10], 0
jge 0x140013ce0
cmp dword [rbx - 0xc], 0
jl 0x140013e49
xor eax, eax
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140013d93
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140013cfa
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 0x140013d93
test r13, r13
je 0x140013e6a
mov r14d, dword [rbx - 0x10]
mov r12, r13
sub r12, rbx
sar r12, 1
test esi, esi
js 0x140013e5f
mov ecx, dword [rsp + 0x5c]
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x140013d50
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.1400015c0
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 0x140013d71
lea r8, [rbx + r12*2]
call fcn.14018e5f0
jmp 0x140013d79
mov r8, r13
call fcn.14018e7d0
cmp esi, dword [rbx - 0xc]
jg 0x140013e54
mov dword [rbx - 0x10], esi
xor eax, eax
mov word [rdi + rbx], ax
or r12d, 0xffffffff
mov r14, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140013db2
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 0x140013ef5
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.14018ea5c
test eax, eax
je 0x140013e84
lea esi, [r15 + 1]
test r15d, r15d
js 0x140013df1
mov rdi, qword [rsp + 0x40]
mov rax, qword [rbp - 0x68]
jmp 0x140013ab3
mov ecx, dword [rsp + 0x64]
inc ecx
mov dword [rsp + 0x64], ecx
add r14, 0x88
mov qword [rbp - 0x80], r14
xor r15d, r15d
cmp ecx, dword [rsp + 0x54]
jae 0x140013e75
mov rdi, qword [rsp + 0x40]
mov rax, qword [rbp - 0x68]
jmp 0x140013ab0
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
nop
mov r13d, dword [rsp + 0x5c]
mov rsi, qword [rbp - 0x70]
mov r14, qword [rbp - 0x60]
jmp 0x140013f00
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 + 0x70]
call fcn.14000ba50
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140013ec3
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 0x140013ee4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x70]
call fcn.14000ba00
xor eax, eax
jmp 0x1400140a6
mov ecx, 0x80004005
call fcn.140001000
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r13d, r13d
je 0x140014041
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 0x140013f67
mov r13d, r15d
jmp 0x140014041
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, [rbp - 0x78]
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 0x140014030
nop dword [rax]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140013fe0
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, [rbp - 0x78]
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 0x140013fd0
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 + 0x70]
call fcn.14000ba50
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140014077
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 0x140014099
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x70]
call fcn.14000ba00
mov eax, r13d
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.14018e5d0
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