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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565ee7
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x5c0490]
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
lea eax, [ebp - 0x654]
push str.Tool_DIASUninstallCheck
push eax
call fcn.00401190
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x420]
push edi
mov dword [ebp - 4], edi
push ecx
mov dword [ebp - 0x63c], edi
call fcn.00541d20
add esp, 0xc
push 0x208
lea edx, [ebp - 0x218]
push edi
push edx
call fcn.00541d20
add esp, 0xc
push 0x208
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.00541d20
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.00448c3f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x419c2b
push 0x80004005
call fcn.00404160
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.00448c3f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x419c5b
push 0x80004005
call fcn.00404160
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.0044b52d
mov esi, dword [eax + 4]
lea ecx, [esi + 0xe4]
push ecx
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x66c], esi
call fcn.004063a0
mov edx, dword [esi + 0x140]
cmp dword [edx + 0x58], edi
jne 0x419d12
push edi
push str.return___08x
lea eax, [ebp - 0x654]
push 2
push eax
call fcn.00401410
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 0x419cd3
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 0x419cf9
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.00401370
xor eax, eax
jmp 0x41a255
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 0x419db8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x419db8
push edi
push str.return___08x
lea eax, [ebp - 0x654]
push 2
push eax
call fcn.00401410
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 0x419d79
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 0x419d9f
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.00401370
xor eax, eax
jmp 0x41a255
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 0x41a1de
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 0x419ffc
mov dword [ebp - 0x65c], edi
cmp dword [ebp - 0x640], edi
jbe 0x419ff2
mov eax, dword [ebp - 0x634]
add eax, 0x10
mov dword [ebp - 0x658], eax
jmp 0x419e20
xor esi, esi
mov edi, dword [ebp - 0x630]
mov eax, dword [edi - 0xc]
test esi, esi
js 0x419e45
cmp esi, eax
jge 0x419e45
lea ecx, [edi + esi*2]
push 9
push ecx
call fcn.0053d8a3
add esp, 8
test eax, eax
jne 0x419e51
mov dword [ebp - 0x62c], 0xffffffff
jmp 0x419e63
sub eax, edi
sar eax, 1
mov dword [ebp - 0x62c], eax
test eax, eax
jns 0x419ef3
push esi
lea edx, [ebp - 0x664]
push edx
lea ecx, [ebp - 0x630]
call fcn.004103b0
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x419ee4
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x419ece
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x419ece
push eax
call fcn.00406410
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x419eb6
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 0x419f7a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x638]
call fcn.00405470
mov ebx, dword [ebp - 0x638]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x664]
jmp 0x419f7a
mov ecx, dword [ebp - 0x62c]
sub ecx, esi
push ecx
push esi
lea edx, [ebp - 0x668]
push edx
lea ecx, [ebp - 0x630]
call fcn.0040a450
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x419f70
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x419f5a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x419f5a
push eax
call fcn.00406410
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x419f4f
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 0x419f70
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x638]
call fcn.00405470
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 0x419f96
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 0x419c21
push eax
push ebx
call fcn.0053d3bf
add esp, 8
test eax, eax
je 0x41a066
mov eax, dword [ebp - 0x62c]
lea esi, [eax + 1]
test eax, eax
jns 0x419e22
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 0x419e20
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 0x41a1de
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 0x41a0ea
mov dword [ebp - 0x62c], edi
jmp 0x41a1de
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.00401410
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 0x41a0ab
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 0x41a0d1
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.00401370
xor eax, eax
jmp 0x41a255
mov edx, dword [ebp - 0x66c]
mov eax, dword [edx + 0xe8]
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 0x41a1bf
jmp 0x41a160
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x41a177
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 0x41a160
mov edx, dword [ebp - 0x63c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, dword [ebp - 0x634]
jbe 0x41a1de
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.00401410
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 0x41a21b
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 0x41a241
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.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret