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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ba56
mov eax, dword fs:[0]
push eax
sub esp, 0x840
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 ebx, ebx
push ebx
lea eax, [ebp - 0x84c]
push str.Tool_CheckCopyUninstall
push eax
call fcn.0040ac70
add esp, 0xc
mov dword [ebp - 4], ebx
call fcn.00442c4d
mov edi, dword [eax + 4]
mov ecx, dword [edi + 0x48]
push ecx
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x83c], ebx
call fcn.00401210
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x834]
mov esi, dword [edx - 0xc]
cmp esi, ebx
jge 0x412530
push 0x80070057
call fcn.004010a0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x412553
push esi
lea ecx, [ebp - 0x834]
call fcn.00401760
mov edx, dword [ebp - 0x834]
lea eax, [esi + 1]
push eax
push edx
call fcn.0053615d
mov eax, dword [ebp - 0x834]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x412526
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x834]
xor ecx, ecx
mov word [edx + esi*2], cx
mov ecx, dword [ebp - 0x834]
cmp dword [ecx - 0xc], ebx
jl 0x4125a8
push str._ncopy
push ecx
call fcn.00535a9a
add esp, 8
cmp eax, ebx
je 0x4125a8
sub eax, dword [ebp - 0x834]
sar eax, 1
cmp eax, 0xffffffff
jne 0x412779
push 0x206
lea ecx, [ebp - 0x82e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x830], ax
call fcn.005373f0
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.005373f0
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.005373f0
add esp, 0x24
push edi
lea esi, [ebp - 0x420]
mov edi, 0x58a8c8
call fcn.0042c510
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, esi
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x218]
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Uninst.ini
lea eax, [ebp - 0x218]
push eax
call ebx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
lea edx, [ebp - 0x830]
push edx
push 0x58aac4
push str.PDL_NAME
push str.Profiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x58aac4
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x412779
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x626]
push edx
mov dword [ebp - 0x838], 0
mov word [ebp - 0x628], cx
call fcn.005373f0
add esp, 0xc
push str.SOFTWARECanonPrnUninst
lea eax, [ebp - 0x628]
push eax
mov dword [ebp - 0x844], 0x104
mov dword [ebp - 0x840], 1
call edi
lea ecx, [ebp - 0x628]
push ecx
call esi
lea edx, [ebp - 0x830]
push edx
lea eax, [ebp - 0x628]
push eax
call ebx
lea ecx, [ebp - 0x838]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x628]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412779
lea eax, [ebp - 0x844]
push eax
mov eax, dword [ebp - 0x838]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x840]
push edx
push 0
push str.exePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41276c
lea ecx, [ebp - 0x218]
push ecx
call esi
lea edx, [ebp - 0x420]
push edx
call esi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41276c
mov dword [ebp - 0x83c], 1
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x83c]
push esi
push str.return___08x
lea eax, [ebp - 0x84c]
push 2
push eax
call fcn.0040aed0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x834]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x84c]
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