Function at 0x4084c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fb2b
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x496534]
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
call fcn.004350f7
lea ecx, [ebp - 0x62c]
xor ebx, ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x634], eax
push dword [eax + 0x48]
call fcn.00401ff0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x62c]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x408526
push 0x80070057
call fcn.00401e60
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x408549
push esi
lea ecx, [ebp - 0x62c]
call fcn.00401cb0
mov eax, dword [ebp - 0x62c]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00456708
mov eax, dword [ebp - 0x62c]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40851c
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x62c]
or edi, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x62c]
cmp dword [eax - 0xc], ecx
jl 0x4085a0
push str._ncopy
push eax
call fcn.0044e917
add esp, 8
test eax, eax
je 0x4085a0
sub eax, dword [ebp - 0x62c]
sar eax, 1
cmp eax, edi
jne 0x4086f7
mov ecx, dword [ebp - 0x634]
lea eax, [ebp - 0x630]
push eax
call fcn.00406e40
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0044f210
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0044f210
mov esi, dword [ebp - 0x630]
add esp, 0x18
cmp dword [esi - 0xc], 0
je 0x4086e0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x630], 0
push 0
push eax
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x638], 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x63c], 1
push str.SOFTWARECanonPrnUninst
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x630]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4086e0
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x63c]
push eax
push 0
push str.exePath
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4086d4
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, 1
cmove ebx, eax
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4086f7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x408719
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0044ae75
mov esp, ebp
pop ebp
ret