Function at 0x417590
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584c16
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push str.Tool_CheckCopyUninstall
push ebx
lea ecx, [esp + 0x30]
call fcn.0044ca70
add esp, 0xc
mov dword [esp + 0x860], ebx
call fcn.0046d2d8
mov edi, dword [eax + 4]
mov eax, dword [edi + 0x48]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call fcn.00403340
mov byte [esp + 0x860], 1
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
cmp esi, ebx
jge 0x417622
push 0x80070057
call fcn.004025a0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x417641
push esi
lea ecx, [esp + 0x14]
call fcn.00403a70
mov edx, dword [esp + 0x10]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.005578a9
mov eax, dword [esp + 0x18]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x417618
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x10]
xor edx, edx
mov word [eax + esi*2], dx
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x41768e
push str._ncopy
push ecx
call fcn.00556fbe
add esp, 8
cmp eax, ebx
je 0x41768e
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
jne 0x417851
push 0x206
lea edx, [esp + 0x64a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x650], cx
call fcn.0055ca80
add esp, 0xc
push 0x206
lea ecx, [esp + 0x32]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x38], ax
call fcn.0055ca80
add esp, 0xc
push 0x206
lea eax, [esp + 0x23a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x240], dx
call fcn.0055ca80
add esp, 0xc
push edi
lea esi, [esp + 0x238]
mov edi, 0x5b69a4
call fcn.00430bd0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x2c]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Uninst.ini
lea ecx, [esp + 0x30]
push ecx
call ebx
lea edx, [esp + 0x2c]
push edx
push 0x104
lea eax, [esp + 0x64c]
push eax
push str.item_not_found__
push str.PDL_NAME
push str.Profiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.item_not_found__
lea ecx, [esp + 0x648]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x417851
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x446]
push eax
mov dword [esp + 0x20], 0
mov word [esp + 0x448], dx
call fcn.0055ca80
add esp, 0xc
push str.SOFTWARECanonPrnUninst
lea ecx, [esp + 0x440]
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call edi
lea edx, [esp + 0x43c]
push edx
call esi
lea eax, [esp + 0x644]
push eax
lea ecx, [esp + 0x440]
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
lea eax, [esp + 0x448]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417851
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.exePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417846
lea edx, [esp + 0x2c]
push edx
call esi
lea eax, [esp + 0x234]
push eax
call esi
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x417846
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
push esi
push str.return___08x
lea ecx, [esp + 0x2c]
push 2
push ecx
call fcn.0044cd10
mov byte [esp + 0x870], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417892
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x860], 0xffffffff
call fcn.0044cc70
mov eax, esi
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0055649d
mov esp, ebp
pop ebp
ret