Function at 0x41c130
Capabilities:
Delete registry key
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546524
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x5ec938]
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
mov esi, dword [ebp + 8]
push 0x456
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x876]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x878], ax
call fcn.0052c850
add esp, 0xc
call fcn.00436219
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c19d
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x890], eax
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x890]
push str._s_s
push ecx
mov dword [ebp - 4], ebx
call fcn.00403bf0
mov esi, dword [ebp - 0x890]
add esp, 0x10
lea edx, [ebp - 0x884]
push edx
push 1
push ebx
push esi
push 0x80000002
mov dword [ebp - 0x884], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ccad
lea eax, [ebp - 0x894]
push eax
mov eax, dword [ebp - 0x884]
lea ecx, [ebp - 0x878]
push ecx
lea edx, [ebp - 0x898]
push edx
push ebx
push str.UninstallString
push eax
mov dword [ebp - 0x894], 0x458
mov dword [ebp - 0x898], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x884]
push ecx
mov dword [ebp - 0x880], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x880], ebx
je 0x41c265
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41ccc4
lea ecx, [ebp - 0x878]
push ecx
lea ecx, [ebp - 0x87c]
call fcn.00404fe0
mov byte [ebp - 4], 1
call fcn.00436219
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c295
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x88c], eax
mov byte [ebp - 4], 2
call fcn.00436219
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c2c5
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x888], eax
mov ecx, dword [ebp - 0x87c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x898], ebx
cmp dword [ecx - 0xc], ebx
jl 0x41c312
push str._UninstallRemove
push ecx
call fcn.0052d906
mov ecx, dword [ebp - 0x87c]
add esp, 8
cmp eax, ebx
je 0x41c312
sub eax, ecx
sar eax, 1
mov ebx, eax
test ebx, ebx
jg 0x41c560
cmp dword [ecx - 0xc], 0
jl 0x41c463
push str._Uninstall
push ecx
call fcn.0052d906
add esp, 8
test eax, eax
je 0x41c463
mov ecx, dword [ebp - 0x87c]
sub eax, ecx
sar eax, 1
mov ebx, eax
test ebx, ebx
jle 0x41c463
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x41c370
push 0x104
lea ecx, [ebp - 0x87c]
call fcn.00402340
mov ecx, dword [ebp - 0x87c]
xor eax, eax
lea edx, [ebp - 0x880]
push edx
mov dword [ebp - 0x894], eax
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x894]
push eax
push ecx
mov esi, ecx
lea ecx, [ebp - 0x884]
push ecx
mov ecx, edi
call fcn.00415cc0
push eax
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 4
call fcn.00402930
mov eax, dword [ebp - 0x884]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c3d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x11
push str._UninstallRemove
call fcn.0052ceda
add eax, ebx
add esp, 8
lea ecx, [esi + eax*2]
push ecx
lea edx, [ebp - 0x880]
push edx
mov ecx, edi
call fcn.00416040
push eax
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 5
call fcn.00402930
mov eax, dword [ebp - 0x880]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c42c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x87c]
call fcn.004022d0
mov ecx, dword [ebp - 0x88c]
mov edx, dword [ebp - 0x888]
push ecx
push str._UninstallDelayReboot
push edx
lea eax, [ebp - 0x87c]
push str.__s___s___s_
push eax
call fcn.00403bf0
add esp, 0x14
jmp 0x41c6bc
push str._NOMESSAGE
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x898], 1
call fcn.00406560
push str._NODLG
lea ecx, [ebp - 0x87c]
call fcn.00406560
cmp dword [edi + 8], 0
je 0x41c4a3
push str._SUBINST
lea ecx, [ebp - 0x87c]
call fcn.00406560
push str._UPDATEINST
lea ecx, [ebp - 0x87c]
call fcn.00406560
mov edx, dword [ebp - 0x87c]
lea ecx, [ebp - 0x880]
push ecx
push 1
push edx
mov ecx, edi
mov dword [ebp - 0x880], 0
call fcn.00412d90
test eax, eax
jne 0x41c9f8
mov eax, dword [ebp - 0x888]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c502
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x88c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x87c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x890]
add eax, 0xfffffff0
jmp 0x41ccb0
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x22c
or eax, edx
jge 0x41c58a
push 0x22c
lea ecx, [ebp - 0x87c]
call fcn.00402340
mov ecx, dword [ebp - 0x87c]
xor eax, eax
lea edx, [ebp - 0x880]
push edx
mov dword [ebp - 0x894], eax
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x894]
push eax
push ecx
mov esi, ecx
lea ecx, [ebp - 0x884]
push ecx
mov ecx, edi
call fcn.00415cc0
push eax
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 6
call fcn.00402930
mov eax, dword [ebp - 0x884]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c5ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x11
push str._UninstallRemove
call fcn.0052ceda
add eax, ebx
add esp, 8
lea ecx, [esi + eax*2]
push ecx
lea edx, [ebp - 0x880]
push edx
mov ecx, edi
call fcn.00416040
push eax
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 7
call fcn.00402930
mov eax, dword [ebp - 0x880]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c646
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x87c]
call fcn.004022d0
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [edi + 0x148]
call fcn.0040a970
mov edx, dword [eax]
mov eax, dword [ebp - 0x88c]
mov ecx, dword [ebp - 0x888]
push edx
push str._TransferFilePath
push eax
push str._UninstallUpdate
push ecx
lea edx, [ebp - 0x87c]
push str.__s___s___s___s___s_
push edx
mov byte [ebp - 4], 8
call fcn.00403bf0
mov eax, dword [ebp - 0x880]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c6bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x8c4]
call fcn.00438f15
push 0x206
xor ebx, ebx
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov byte [ebp - 4], 9
mov word [ebp - 0x218], cx
call fcn.0052c850
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x420], ax
call fcn.0052c850
mov esi, dword [ebp - 0x888]
add esi, 0xfffffff0
push esi
call fcn.004023a0
add eax, 0x10
mov dword [ebp - 0x880], eax
mov edx, dword [ebp - 0x888]
push edx
lea eax, [ebp - 0x218]
push 0x104
push eax
mov byte [ebp - 4], 0xa
call fcn.0052cd4a
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052ceda
lea eax, [ebp + eax*2 - 0x218]
lea edx, [ebp - 0x218]
add esp, 0x30
cmp eax, edx
je 0x41c795
lea esp, [esp]
cmp word [eax], 0x5c
je 0x41c775
sub eax, 2
lea ecx, [ebp - 0x218]
cmp eax, ecx
jne 0x41c760
jmp 0x41c795
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.0052cd4a
add esp, 0xc
mov edx, dword [ebp - 0x888]
push ebx
push edx
lea ecx, [ebp - 0x8c4]
call fcn.00438fbc
lea ecx, [ebp - 0x8c4]
mov dword [ebp - 0x884], eax
call fcn.00438a9f
cmp dword [ebp - 0x884], ebx
jne 0x41c871
mov eax, dword [ebp - 0x880]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c7eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x8c4]
mov byte [ebp - 4], 3
call fcn.00438f47
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c817
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x88c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c83d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x87c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x890]
add eax, 0xfffffff0
jmp 0x41ccb0
cmp dword [edi + 8], ebx
je 0x41c89a
push 1
push 0x557b28
lea ecx, [ebp - 0x87c]
call fcn.00406390
push 0xb
push str._SubInstall
lea ecx, [ebp - 0x87c]
call fcn.00406390
push 1
push 0x557b28
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x8a8], ebx
mov dword [ebp - 0x894], ebx
call fcn.00406390
push 0xa
push str._UpdateReg
lea ecx, [ebp - 0x87c]
call fcn.00406390
lea ecx, [ebp - 0x894]
push ecx
push 1
push 4
lea edx, [ebp - 0x8a8]
push edx
push 4
push str.ProcessID
push str.SOFTWARECanonIJAppUpdateInstall
push 0x80000002
lea ecx, [edi + 0x148]
call fcn.004092f0
lea eax, [ebp - 0x894]
push eax
push 1
push 4
lea ecx, [edi + 0xe8a4]
push ecx
push 4
push str.Window
push str.SOFTWARECanonIJAppUpdateInstall
push 0x80000002
lea ecx, [edi + 0x148]
call fcn.004092f0
call fcn.00436219
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c940
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x884], eax
movzx ecx, word [edi + 0xe890]
push ecx
push str._LangID
lea edx, [ebp - 0x884]
push str.__s_d
push edx
mov byte [ebp - 4], 0xb
call fcn.00403bf0
mov eax, dword [ebp - 0x884]
mov ecx, dword [eax - 0xc]
add esp, 0x10
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.00406390
lea ecx, [ebp - 0x884]
call fcn.004022d0
mov eax, dword [ebp - 0x884]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c9be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x880]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c9e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x8c4]
mov byte [ebp - 4], 3
call fcn.00438f47
jmp 0x41c4b3
cmp dword [ebp - 0x898], 0
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jne 0x41ca2d
mov ecx, dword [ebp - 0x880]
push ecx
push 1
push 0x100000
call ebx
mov esi, eax
test esi, esi
je 0x41ca2d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x8a4], esi
mov dword [ebp - 0x8a0], 4
mov dword [ebp - 0x89c], esi
cmp dword [ebp - 0x898], esi
jne 0x41cb6e
push 1
lea edx, [ebp - 0x8a0]
push edx
lea eax, [ebp - 0x89c]
push eax
lea ecx, [ebp - 0x8a4]
push ecx
push str.ProcessID
push str.SOFTWARECanonIJAppUpdateInstall
push 0x80000002
lea ecx, [edi + 0x148]
call fcn.00409260
push str.SOFTWARECanonIJAppUpdateInstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x89c]
cmp eax, 0xffffffff
jne 0x41cb44
mov eax, dword [ebp - 0x888]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41cac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x88c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41caed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x87c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cb13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x890]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cb3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x41ccd5
cmp eax, esi
je 0x41cb6e
push eax
push 1
push 0x100000
call ebx
mov esi, eax
test esi, esi
je 0x41cbe2
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41cbe2
mov edx, dword [ebp - 0x890]
lea ecx, [ebp - 0x880]
push ecx
push 1
push esi
push edx
push 0x80000002
mov dword [ebp - 0x880], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cbd7
mov eax, dword [ebp - 0x880]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x888]
call fcn.00402480
lea ecx, [ebp - 0x88c]
call fcn.00402480
lea ecx, [ebp - 0x87c]
call fcn.00402480
lea ecx, [ebp - 0x890]
call fcn.00402480
mov eax, 0x642
jmp 0x41ccd5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x890]
call fcn.004022d0
lea ecx, [ebp - 0x87c]
call fcn.004022d0
lea ecx, [ebp - 0x88c]
call fcn.004022d0
lea ecx, [ebp - 0x888]
call fcn.004022d0
mov eax, dword [ebp - 0x888]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x88c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x87c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x890]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cca9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41ccd5
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ccd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x643
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.0052c2ec
mov esp, ebp
pop ebp
ret 4