Function at 0x403ad0
Capabilities:
Get common file path
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551127
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x5bb270]
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 edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.00537c80
push esi
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.0053725b
add esp, 0x18
test esi, esi
jne 0x403b3b
xor ecx, ecx
jmp 0x403b4f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403b40
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 8]
call fcn.004046f0
mov eax, dword [edi + 0x24]
lea esi, [edi + 0x24]
lea ecx, [ebp - 0x830]
push ecx
mov ecx, esi
call dword [eax + 4]
test eax, eax
jne 0x403b79
mov eax, 0x643
jmp 0x404161
mov eax, dword [esi]
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x834], 0
push ecx
push 0x561d60
push str._Uninstall_
mov ecx, esi
mov dword [ebp - 0x844], 0
call dword [eax + 0x10]
test eax, eax
je 0x403bf8
mov eax, dword [ebp - 0x834]
mov edx, dword [eax + 0x2d8]
lea eax, [edi + 0x20]
test edx, edx
jne 0x403bc7
xor ecx, ecx
jmp 0x403be2
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403bd0
sub ecx, ebx
lea eax, [edi + 0x20]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.004046f0
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x834]
call dword [eax + 0x14]
mov eax, dword [esi]
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x834]
push ecx
push 0x561d88
push str._Uninstall_
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x403c6e
mov eax, dword [ebp - 0x834]
mov edx, dword [eax + 0x2d8]
lea eax, [edi + 0x1c]
test edx, edx
jne 0x403c32
xor ecx, ecx
jmp 0x403c49
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403c37
sub ecx, ebx
lea eax, [edi + 0x1c]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.004046f0
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x834]
call dword [eax + 0x14]
push 0x1e
lea ecx, [edi + 0x18]
push str.CANON_NSU_INSTALLER_UNST_MUTEX
call fcn.004046f0
mov eax, dword [esi]
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x834]
push ecx
push str.UninstallName
push str._Uninstall_
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x403cd8
mov eax, dword [ebp - 0x834]
mov edx, dword [eax + 0x2d8]
lea eax, [edi + 0x14]
test edx, edx
jne 0x403ca8
xor ecx, ecx
jmp 0x403cc2
mov ecx, edx
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403cb0
sub ecx, ebx
lea eax, [edi + 0x14]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.004046f0
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x834]
call dword [eax + 0x14]
mov eax, dword [esi]
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x834]
push ecx
push str.CtrlExApp
push str._Uninstall_
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x403d12
mov ecx, dword [ebp - 0x834]
push ecx
mov eax, dword [ecx + 0x210]
mov ecx, esi
mov dword [edi + 4], eax
mov eax, dword [esi]
call dword [eax + 0x14]
xor eax, eax
mov dword [ebp - 0x840], 0
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00537c80
add esp, 0xc
lea eax, [ebp - 0x83c]
mov ecx, edi
push eax
call fcn.004039d0
push dword [eax]
lea eax, [ebp - 0x628]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x561e78
push 0x104
push eax
call fcn.0053777e
mov edx, dword [ebp - 0x83c]
or ebx, 0xffffffff
add edx, 0xfffffff0
add esp, 0x14
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x403d8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x840]
push eax
push 1
push 0
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403e13
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00537c80
add esp, 0xc
mov dword [ebp - 0x83c], 0x104
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push str.InstallLocation
push dword [ebp - 0x840]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403e07
lea eax, [ebp - 0x420]
push eax
lea ecx, [edi + 0x10]
call fcn.004020a0
push dword [ebp - 0x840]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004122b0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403e2f
push 0x80004005
call fcn.004022c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x840], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00537c80
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x83c]
mov ecx, edi
push eax
call fcn.00403910
push eax
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 1
call fcn.00402030
mov edx, dword [ebp - 0x83c]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403eb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..bat
push str..exe
lea ecx, [ebp - 0x840]
call fcn.00404440
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x83c]
push eax
call fcn.004020f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x840]
mov byte [ebp - 4], 2
call fcn.00402030
mov edx, dword [ebp - 0x83c]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403f1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x840]
lea ecx, [edi + 0xc]
push eax
call fcn.00402030
lea eax, [edi + 0xd4c8]
push 9
push 0x561ebc
mov ecx, eax
mov dword [ebp - 0x84c], eax
call fcn.004046f0
lea eax, [edi + 0xd4cc]
push 0xc
push str.uinstrsc.dll
mov ecx, eax
mov dword [ebp - 0x850], eax
call fcn.004046f0
lea eax, [edi + 0xd4d0]
push 0xa
push str.uninst.ini
mov ecx, eax
mov dword [ebp - 0x854], eax
call fcn.004046f0
mov eax, dword [esi]
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x834]
push ecx
push str.UNSTFILE
push str._Uninstall_
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x40413b
mov ecx, dword [ebp - 0x834]
mov eax, dword [ecx]
test eax, eax
jle 0x40413b
xor edi, edi
test eax, eax
jle 0x404133
xor eax, eax
mov dword [ebp - 0x83c], eax
push dword [eax + ecx + 0x2d8]
lea ecx, [ebp - 0x838]
call fcn.00401b80
mov eax, dword [ebp - 0x838]
mov edx, 1
mov byte [ebp - 4], 3
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x404009
push 0x104
lea ecx, [ebp - 0x838]
call fcn.004042f0
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [ebp - 0x838]
push dword [eax - 8]
push eax
call fcn.005372b7
mov edx, eax
add esp, 8
test edx, edx
js 0x40417f
mov ecx, dword [ebp - 0x838]
cmp edx, dword [ecx - 8]
jg 0x40417f
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x838]
mov word [eax + edx*2], cx
push dword [ebp - 0x838]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x848]
call fcn.00401b80
push str..exe
push dword [ebp - 0x848]
mov byte [ebp - 4], 4
call fcn.005375f1
add esp, 8
test eax, eax
jne 0x404085
mov ecx, dword [ebp - 0x84c]
jmp 0x4040c1
push str..dll
push dword [ebp - 0x848]
call fcn.005375f1
add esp, 8
test eax, eax
jne 0x4040a4
mov ecx, dword [ebp - 0x850]
jmp 0x4040c1
push str..ini
push dword [ebp - 0x848]
call fcn.005375f1
add esp, 8
test eax, eax
jne 0x4040cd
mov ecx, dword [ebp - 0x854]
lea eax, [ebp - 0x838]
push eax
call fcn.00402030
mov edx, dword [ebp - 0x848]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4040f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x838]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404113
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x834]
inc edi
mov eax, dword [ebp - 0x83c]
add eax, 0x5a4
mov dword [ebp - 0x83c], eax
cmp edi, dword [ecx]
jl 0x403fc2
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [ebp - 0x840]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40415f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.0053787e
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004022c0
int3