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

Disassembly:
push 0xffffffffffffffff
push 0x456c0c
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x344], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x35c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.004317f7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40883b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x364], ebx
call fcn.004317f7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40886c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x364], 1
call fcn.004316f5
mov esi, dword [eax + 4]
lea ecx, [esi + 0xd0]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], esi
call fcn.00402020
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push 2
push ebx
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
jne 0x40891b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40891b
lea eax, [edi - 0x10]
mov byte [esp + 0x364], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x364], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408914
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x408c05
mov ecx, dword [esp + 0x2c]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x38], edi
je 0x408bae
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
push edi
push 2
push ebx
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
je 0x408a66
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
jbe 0x408a5c
add edi, 0x10
mov dword [esp + 0x14], edi
mov bl, 3
xor esi, esi
test esi, esi
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
jl 0x408992
cmp esi, eax
jge 0x408992
lea edx, [esi + ebp]
push 9
push edx
call fcn.00442df6
add esp, 8
test eax, eax
jne 0x408997
or edi, 0xffffffff
jmp 0x40899f
sub eax, ebp
mov edi, eax
test edi, edi
jge 0x4089c6
push esi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
call fcn.00401ea0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x368], 2
call fcn.00402020
mov eax, dword [esp + 0x44]
jmp 0x4089ef
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x24]
call fcn.00401910
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x368], bl
call fcn.00402020
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x364], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov esi, dword [esp + 0x1c]
push eax
push esi
call fcn.00440d82
add esp, 8
test eax, eax
je 0x408ac2
test edi, edi
lea esi, [edi + 1]
jge 0x408971
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], 0x54
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
jb 0x40896f
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], 1
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x14], ebx
je 0x408bae
push str.DIASUser
push str.SOFTWARECanonDIASSETUP
lea ecx, [esp + 0x158]
push 0x45ce28
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x20]
push edx
push 0x2001f
push ebx
lea eax, [esp + 0x15c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408af9
mov dword [esp + 0x14], ebx
jmp 0x408bae
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esi - 0x10]
mov byte [esp + 0x364], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408af1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
jmp 0x4088f0
mov eax, dword [esi + 0xd4]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x2c]
xor esi, esi
push esi
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x60]
push eax
push esi
mov ebp, 0x104
push ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], ebp
call edi
test eax, eax
jne 0x408b97
lea esp, [esp]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x408b62
add ebx, 1
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
push ecx
add esi, 1
push esi
push edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], ebp
call edi
test eax, eax
je 0x408b50
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jbe 0x408bae
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x364], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x364], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.0044027a
add esp, 0x354
ret