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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584d87
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push str.Tool_DIASUninstallCheck
push edi
lea ecx, [ebp - 0x654]
call fcn.0044ca70
add esp, 0xc
push 0x208
lea eax, [ebp - 0x420]
push edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x63c], edi
call fcn.0055ca80
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x218]
push edi
push ecx
call fcn.0055ca80
add esp, 0xc
push 0x208
lea edx, [ebp - 0x628]
push edi
push edx
call fcn.0055ca80
add esp, 0xc
mov dword [ebp - 0x648], edi
mov dword [ebp - 0x640], edi
mov dword [ebp - 0x660], edi
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x644], edi
mov dword [ebp - 0x62c], edi
call fcn.00461e32
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41646b
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x630], eax
mov byte [ebp - 4], 1
call fcn.00461e32
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41649b
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x638], ebx
mov byte [ebp - 4], 2
call fcn.0046d2d8
mov esi, dword [eax + 4]
lea ecx, [esi + 0xdc]
push ecx
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x66c], esi
call fcn.00404890
mov edx, dword [esi + 0x130]
cmp byte [edx + 0x6b], 0
jne 0x416553
push edi
push str.return___08x
lea eax, [ebp - 0x654]
push 2
push eax
call fcn.0044cd10
lea eax, [ebx - 0x10]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416514
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41653a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x654]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
xor eax, eax
jmp 0x416a95
mov esi, dword [sym.imp.WINSPOOL.DRV_EnumPrintersW]
lea ecx, [ebp - 0x640]
push ecx
lea edx, [ebp - 0x648]
push edx
push edi
push edi
push 2
push edi
push 6
call esi
test eax, eax
jne 0x4165f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4165f9
push edi
push str.return___08x
lea eax, [ebp - 0x654]
push 2
push eax
call fcn.0044cd10
lea eax, [ebx - 0x10]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4165ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4165e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x654]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
xor eax, eax
jmp 0x416a95
mov ecx, dword [ebp - 0x648]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x634], eax
cmp eax, edi
je 0x416a1e
lea edx, [ebp - 0x640]
push edx
mov edx, dword [ebp - 0x648]
lea ecx, [ebp - 0x648]
push ecx
push edx
push eax
push 2
push edi
push 6
call esi
test eax, eax
je 0x41683c
mov dword [ebp - 0x65c], edi
cmp dword [ebp - 0x640], edi
jbe 0x416832
mov eax, dword [ebp - 0x634]
add eax, 0x10
mov dword [ebp - 0x658], eax
lea esp, [esp]
xor esi, esi
mov edi, dword [ebp - 0x630]
mov eax, dword [edi - 0xc]
test esi, esi
js 0x416685
cmp esi, eax
jge 0x416685
lea ecx, [edi + esi*2]
push 9
push ecx
call fcn.005571b9
add esp, 8
test eax, eax
jne 0x416691
mov dword [ebp - 0x62c], 0xffffffff
jmp 0x4166a3
sub eax, edi
sar eax, 1
mov dword [ebp - 0x62c], eax
test eax, eax
jns 0x416733
push esi
lea edx, [ebp - 0x664]
push edx
lea ecx, [ebp - 0x630]
call fcn.0040a0e0
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x416724
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41670e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41670e
push eax
call fcn.00404900
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4166f6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x664]
mov dword [ebp - 0x638], ebx
jmp 0x4167ba
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x638]
call fcn.004039c0
mov ebx, dword [ebp - 0x638]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x664]
jmp 0x4167ba
mov ecx, dword [ebp - 0x62c]
sub ecx, esi
push ecx
push esi
lea edx, [ebp - 0x668]
push edx
lea ecx, [ebp - 0x630]
call fcn.0040a110
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x4167b0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41679a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41679a
push eax
call fcn.00404900
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41678f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x638], ebx
jmp 0x4167b0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x638]
call fcn.004039c0
mov ebx, dword [ebp - 0x638]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x668]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4167d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x658]
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x416461
push eax
push ebx
call fcn.00556d01
add esp, 8
test eax, eax
je 0x4168a6
mov eax, dword [ebp - 0x62c]
lea esi, [eax + 1]
test eax, eax
jns 0x416662
mov eax, dword [ebp - 0x65c]
add dword [ebp - 0x658], 0x54
inc eax
xor edi, edi
mov dword [ebp - 0x65c], eax
cmp eax, dword [ebp - 0x640]
jb 0x416660
mov dword [ebp - 0x62c], 1
mov ecx, dword [ebp - 0x634]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x62c], edi
je 0x416a1e
push str.DIASUser
push str.SOFTWARECanonDIASSETUP
lea edx, [ebp - 0x420]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x63c]
push eax
push 0x2001f
push edi
lea ecx, [ebp - 0x420]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41692a
mov dword [ebp - 0x62c], edi
jmp 0x416a1e
mov edx, dword [ebp - 0x634]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push str.return___08x
lea eax, [ebp - 0x654]
push 2
push eax
call fcn.0044cd10
lea eax, [ebx - 0x10]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416911
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x654]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
xor eax, eax
jmp 0x416a95
mov edx, dword [ebp - 0x66c]
mov eax, dword [edx + 0xe0]
push eax
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x644]
push ecx
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x660]
push eax
mov eax, dword [ebp - 0x63c]
push edi
lea ecx, [ebp - 0x64c]
push ecx
lea edx, [ebp - 0x218]
push edx
push edi
mov dword [ebp - 0x634], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push eax
xor esi, esi
mov dword [ebp - 0x64c], 0x104
mov dword [ebp - 0x644], 0x208
call edi
test eax, eax
jne 0x4169ff
jmp 0x4169a0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4169b7
inc dword [ebp - 0x634]
lea edx, [ebp - 0x644]
push edx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x660]
push ecx
mov ecx, dword [ebp - 0x63c]
push 0
lea edx, [ebp - 0x64c]
push edx
lea eax, [ebp - 0x218]
push eax
inc esi
push esi
push ecx
mov dword [ebp - 0x64c], 0x104
mov dword [ebp - 0x644], 0x208
call edi
test eax, eax
je 0x4169a0
mov edx, dword [ebp - 0x63c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, dword [ebp - 0x634]
jbe 0x416a1e
mov dword [ebp - 0x62c], 0
mov esi, dword [ebp - 0x62c]
push esi
push str.return___08x
lea eax, [ebp - 0x654]
push 2
push eax
call fcn.0044cd10
lea eax, [ebx - 0x10]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x654]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret