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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a987
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x5b4450]
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 - 0x644]
push str.Tool_DIASUninstallCheck
push eax
call fcn.0040ac70
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 0x62c], edi
call fcn.0044033f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x410fc8
push 0x80004005
call fcn.004010a0
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.0044033f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x410ff8
push 0x80004005
call fcn.004010a0
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.00442c4d
mov esi, dword [eax + 4]
lea ecx, [esi + 0xe4]
push ecx
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x66c], esi
call fcn.00401520
mov edx, dword [esi + 0x140]
cmp dword [edx + 0x58], edi
jne 0x4110af
push edi
push str.return___08x
lea eax, [ebp - 0x644]
push 2
push eax
call fcn.0040aed0
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 0x411070
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 0x411096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x4115f5
mov esi, dword [sym.imp.WINSPOOL.DRV_EnumPrintersW]
lea ecx, [ebp - 0x648]
push ecx
lea edx, [ebp - 0x654]
push edx
push edi
push edi
push 2
push edi
push 6
call esi
test eax, eax
jne 0x411155
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x411155
push edi
push str.return___08x
lea eax, [ebp - 0x644]
push 2
push eax
call fcn.0040aed0
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 0x411116
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 0x41113c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x4115f5
mov ecx, dword [ebp - 0x654]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x65c], edi
test edi, edi
je 0x41157e
mov ecx, dword [ebp - 0x654]
lea edx, [ebp - 0x648]
push edx
lea eax, [ebp - 0x654]
push eax
push ecx
push edi
push 2
push 0
push 6
call esi
test eax, eax
je 0x41139e
cmp dword [ebp - 0x648], 0
mov dword [ebp - 0x658], 0
jbe 0x411394
add edi, 0x10
mov dword [ebp - 0x634], edi
xor esi, esi
lea esp, [esp]
mov edi, dword [ebp - 0x630]
mov eax, dword [edi - 0xc]
test esi, esi
js 0x4111e3
cmp esi, eax
jge 0x4111e3
lea edx, [edi + esi*2]
push 9
push edx
call fcn.00534181
add esp, 8
test eax, eax
jne 0x4111ef
mov dword [ebp - 0x62c], 0xffffffff
jmp 0x411201
sub eax, edi
sar eax, 1
mov dword [ebp - 0x62c], eax
test eax, eax
jns 0x411291
push esi
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x630]
call fcn.00413950
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x411282
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41126c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41126c
push eax
call fcn.004017c0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x411254
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 - 0x660]
mov dword [ebp - 0x638], ebx
jmp 0x411318
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x638]
call fcn.004016b0
mov ebx, dword [ebp - 0x638]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x660]
jmp 0x411318
mov ecx, dword [ebp - 0x62c]
sub ecx, esi
push ecx
push esi
lea edx, [ebp - 0x664]
push edx
lea ecx, [ebp - 0x630]
call fcn.00404fc0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x41130e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4112f8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4112f8
push eax
call fcn.004017c0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4112ed
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 0x41130e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x638]
call fcn.004016b0
mov ebx, dword [ebp - 0x638]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x664]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411334
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x634]
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x410fbe
push eax
push ebx
call fcn.00533c47
add esp, 8
test eax, eax
je 0x411404
mov eax, dword [ebp - 0x62c]
lea esi, [eax + 1]
test eax, eax
jns 0x4111c0
mov eax, dword [ebp - 0x658]
add dword [ebp - 0x634], 0x54
inc eax
mov dword [ebp - 0x658], eax
cmp eax, dword [ebp - 0x648]
jb 0x4111ba
mov edi, dword [ebp - 0x65c]
mov dword [ebp - 0x62c], 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [ebp - 0x62c], esi
je 0x41157e
push str.DIASUser
push str.SOFTWARECanonDIASSETUP
lea ecx, [ebp - 0x420]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x63c]
push edx
push 0x2001f
push esi
lea eax, [ebp - 0x420]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411488
mov dword [ebp - 0x62c], esi
jmp 0x41157e
mov edx, dword [ebp - 0x65c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push str.return___08x
lea eax, [ebp - 0x644]
push 2
push eax
call fcn.0040aed0
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 0x411449
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 0x41146f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x4115f5
mov ecx, dword [ebp - 0x66c]
mov eax, dword [ecx + 0xe8]
mov edx, dword [ebp - 0x63c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x668]
push edx
mov edx, dword [ebp - 0x63c]
push 0
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push edx
mov dword [ebp - 0x634], esi
mov dword [ebp - 0x64c], 0x104
mov dword [ebp - 0x650], 0x208
call edi
test eax, eax
jne 0x41155f
jmp 0x411500
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x411517
inc dword [ebp - 0x634]
lea ecx, [ebp - 0x650]
push ecx
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x668]
push eax
mov eax, dword [ebp - 0x63c]
push 0
lea ecx, [ebp - 0x64c]
push ecx
lea edx, [ebp - 0x218]
push edx
inc esi
push esi
push eax
mov dword [ebp - 0x64c], 0x104
mov dword [ebp - 0x650], 0x208
call edi
test eax, eax
je 0x411500
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, dword [ebp - 0x634]
jbe 0x41157e
mov dword [ebp - 0x62c], 0
mov esi, dword [ebp - 0x62c]
push esi
push str.return___08x
lea edx, [ebp - 0x644]
push 2
push edx
call fcn.0040aed0
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 0x4115bb
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 0x4115e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret