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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c624
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x60c9c8]
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.00531fb0
add esp, 0xc
call fcn.0043e2f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41f82d
push 0x80004005
call fcn.00402a80
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 0x55d250
push ecx
mov dword [ebp - 4], ebx
call fcn.004047a0
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 0x42033d
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 0x41f8f5
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 0x420354
lea ecx, [ebp - 0x878]
push ecx
lea ecx, [ebp - 0x87c]
call fcn.00405b90
mov byte [ebp - 4], 1
call fcn.0043e2f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41f925
push 0x80004005
call fcn.00402a80
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.0043e2f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41f955
push 0x80004005
call fcn.00402a80
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 0x41f9a2
push str._UninstallRemove
push ecx
call fcn.00533a71
mov ecx, dword [ebp - 0x87c]
add esp, 8
cmp eax, ebx
je 0x41f9a2
sub eax, ecx
sar eax, 1
mov ebx, eax
test ebx, ebx
jg 0x41fbf0
cmp dword [ecx - 0xc], 0
jl 0x41faf3
push str._Uninstall
push ecx
call fcn.00533a71
add esp, 8
test eax, eax
je 0x41faf3
mov ecx, dword [ebp - 0x87c]
sub eax, ecx
sar eax, 1
mov ebx, eax
test ebx, ebx
jle 0x41faf3
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x41fa00
push 0x104
lea ecx, [ebp - 0x87c]
call fcn.00402f00
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.00418670
push eax
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 4
call fcn.004034d0
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 0x41fa63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x11
push str._UninstallRemove
call fcn.005330ca
add eax, ebx
add esp, 8
lea ecx, [esi + eax*2]
push ecx
lea edx, [ebp - 0x880]
push edx
mov ecx, edi
call fcn.004189f0
push eax
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 5
call fcn.004034d0
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 0x41fabc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x87c]
call fcn.00402e90
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.004047a0
add esp, 0x14
jmp 0x41fd4c
push str._NOMESSAGE
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x898], 1
call fcn.00407df0
push str._NODLG
lea ecx, [ebp - 0x87c]
call fcn.00407df0
cmp dword [edi + 8], 0
je 0x41fb33
push str._SUBINST
lea ecx, [ebp - 0x87c]
call fcn.00407df0
push str._UPDATEINST
lea ecx, [ebp - 0x87c]
call fcn.00407df0
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.00415790
test eax, eax
jne 0x420088
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 0x41fb92
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 0x41fbb8
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 0x41fef3
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 0x420340
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x22c
or eax, edx
jge 0x41fc1a
push 0x22c
lea ecx, [ebp - 0x87c]
call fcn.00402f00
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.00418670
push eax
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 6
call fcn.004034d0
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 0x41fc7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x11
push str._UninstallRemove
call fcn.005330ca
add eax, ebx
add esp, 8
lea ecx, [esi + eax*2]
push ecx
lea edx, [ebp - 0x880]
push edx
mov ecx, edi
call fcn.004189f0
push eax
lea ecx, [ebp - 0x88c]
mov byte [ebp - 4], 7
call fcn.004034d0
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 0x41fcd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x87c]
call fcn.00402e90
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [edi + 0x158]
call fcn.0040ce80
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.004047a0
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 0x41fd4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x8c4]
call fcn.0043f9a5
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.00531fb0
push 0x206
lea ecx, [ebp - 0x41e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x420], ax
call fcn.00531fb0
mov esi, dword [ebp - 0x888]
add esi, 0xfffffff0
push esi
call fcn.00402f60
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.00532f33
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.005330ca
lea eax, [ebp + eax*2 - 0x218]
lea edx, [ebp - 0x218]
add esp, 0x30
cmp eax, edx
je 0x41fe25
lea esp, [esp]
cmp word [eax], 0x5c
je 0x41fe05
sub eax, 2
lea ecx, [ebp - 0x218]
cmp eax, ecx
jne 0x41fdf0
jmp 0x41fe25
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.00532f33
add esp, 0xc
mov edx, dword [ebp - 0x888]
push ebx
push edx
lea ecx, [ebp - 0x8c4]
call fcn.0043fa4c
lea ecx, [ebp - 0x8c4]
mov dword [ebp - 0x884], eax
call fcn.0043f52f
cmp dword [ebp - 0x884], ebx
jne 0x41ff01
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 0x41fe7b
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.0043f9d7
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fea7
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 0x41fecd
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 0x41fef3
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 0x420340
cmp dword [edi + 8], ebx
je 0x41ff2a
push 1
push 0x55e51c
lea ecx, [ebp - 0x87c]
call fcn.00407c10
push 0xb
push str._SubInstall
lea ecx, [ebp - 0x87c]
call fcn.00407c10
push 1
push 0x55e51c
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x8a8], ebx
mov dword [ebp - 0x894], ebx
call fcn.00407c10
push 0xa
push str._UpdateReg
lea ecx, [ebp - 0x87c]
call fcn.00407c10
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 + 0x158]
call fcn.0040b110
lea eax, [ebp - 0x894]
push eax
push 1
push 4
lea ecx, [edi + 0xe4c8]
push ecx
push 4
push str.Window
push str.SOFTWARECanonIJAppUpdateInstall
push 0x80000002
lea ecx, [edi + 0x158]
call fcn.0040b110
call fcn.0043e2f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41ffd0
push 0x80004005
call fcn.00402a80
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 + 0xe4b8]
push ecx
push str._LangID
lea edx, [ebp - 0x884]
push str.__s_d
push edx
mov byte [ebp - 4], 0xb
call fcn.004047a0
mov eax, dword [ebp - 0x884]
mov ecx, dword [eax - 0xc]
add esp, 0x10
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.00407c10
lea ecx, [ebp - 0x884]
call fcn.00402e90
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 0x42004e
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 0x420074
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.0043f9d7
jmp 0x41fb43
cmp dword [ebp - 0x898], 0
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jne 0x4200bd
mov ecx, dword [ebp - 0x880]
push ecx
push 1
push 0x100000
call ebx
mov esi, eax
test esi, esi
je 0x4200bd
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 0x4201fe
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 + 0x158]
call fcn.0040b080
push str.SOFTWARECanonIJAppUpdateInstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x89c]
cmp eax, 0xffffffff
jne 0x4201d4
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 0x420157
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 0x42017d
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 0x4201a3
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 0x4201cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x420365
cmp eax, esi
je 0x4201fe
push eax
push 1
push 0x100000
call ebx
mov esi, eax
test esi, esi
je 0x420272
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420272
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 0x420267
mov eax, dword [ebp - 0x880]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x888]
call fcn.00402e70
lea ecx, [ebp - 0x88c]
call fcn.00402e70
lea ecx, [ebp - 0x87c]
call fcn.00402e70
lea ecx, [ebp - 0x890]
call fcn.00402e70
mov eax, 0x642
jmp 0x420365
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x890]
call fcn.00402e90
lea ecx, [ebp - 0x87c]
call fcn.00402e90
lea ecx, [ebp - 0x88c]
call fcn.00402e90
lea ecx, [ebp - 0x888]
call fcn.00402e90
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 0x4202c4
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 0x4202ea
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 0x420310
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 0x420339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x420365
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 0x420360
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.00531f97
mov esp, ebp
pop ebp
ret 4