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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424c6e
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x431074]
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 ebx, ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x25c], ebx
xor eax, eax
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x228], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea esi, [ebx + 0xc]
mov dword [ebp - 4], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x240]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x23c]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x238]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x234]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0xff
xor edi, edi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x210]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0xff
lea eax, [ebp - 0x110]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x22c], 0xff
lea eax, [ebp - 0x230]
mov dword [ebp - 0x214], 0xff
mov dword [ebp - 0x21c], 7
push eax
push 0xf003f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ff22
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40fed8
lea eax, [ebp - 0x210]
inc edi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x25c], edi
push 0x4278c8
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140.dll_Ordinal_8146]
test al, al
jne 0x40feaa
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc140.dll_Ordinal_310]
mov edi, eax
mov ecx, edi
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov ebx, eax
mov eax, dword [ebp - 0x228]
or eax, 1
push 0x427b60
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x260], eax
call dword [sym.imp.mfc140.dll_Ordinal_14238]
add esp, 4
mov ecx, edi
push eax
push 0x427b60
call dword [sym.imp.mfc140.dll_Ordinal_5861]
push eax
mov ecx, edi
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
mov ecx, ebx
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140.dll_Ordinal_5898]
push eax
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140.dll_Ordinal_305]
mov edi, eax
lea ecx, [ebp - 0x218]
mov eax, dword [ebp - 0x228]
or eax, 2
mov dword [ebp - 0x250], eax
call dword [sym.imp.mfc140.dll_Ordinal_5861]
push eax
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
mov ecx, ebx
call dword [sym.imp.mfc140.dll_Ordinal_5861]
push eax
mov ecx, ebx
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_3005]
add esp, 0x14
lea ecx, [ebp - 0x234]
push edi
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x258]
and eax, 0xfffffffc
mov dword [ebp - 0x228], eax
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea eax, [ebp - 0x220]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x234]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fe7e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x220]
call ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0xff
lea eax, [ebp - 0x110]
mov dword [ebp - 0x214], 0xff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x220]
call ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0xff
lea eax, [ebp - 0x110]
mov dword [ebp - 0x214], 0xff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x220]
call ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0xff
lea eax, [ebp - 0x110]
mov dword [ebp - 0x214], 0xff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.Publisher
push dword [ebp - 0x220]
call ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x240]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x220]
call ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x23c]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0xff
lea eax, [ebp - 0x110]
mov dword [ebp - 0x214], 0xff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x220]
call ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x238]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0xff
lea eax, [ebp - 0x110]
mov dword [ebp - 0x214], 0xff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140.dll_Ordinal_8146]
test al, al
jne 0x40fe7e
push 0
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140.dll_Ordinal_5059]
cmp al, 0x4b
jne 0x40fef0
push 1
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140.dll_Ordinal_5059]
cmp al, 0x42
jne 0x40fef0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x24c]
push ecx
cmp dword [esi + 8], eax
je 0x40fee6
mov ecx, eax
call fcn.0040ffc0
add dword [esi + 4], 0x18
mov ebx, dword [ebp - 0x224]
push 0xff
lea eax, [ebp - 0x210]
mov dword [ebp - 0x22c], 0xff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x25c]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40faa0
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ff33
push eax
mov ecx, esi
call fcn.0040f6e0
jmp 0x40fe7e
mov ebx, dword [ebp - 0x224]
lea ecx, [ebp - 0x24c]
push ecx
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x40ff15
mov ecx, eax
call fcn.0040ffc0
add dword [ebx + 4], 0x18
jmp 0x40fe84
push eax
mov ecx, ebx
call fcn.0040f6e0
jmp 0x40fe84
push 0x30
push 0
push 0x427d74
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x234]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x238]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x23c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x240]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, ebx
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.00421e64
mov esp, ebp
pop ebp
ret