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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cf315
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x5164b0]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push esi
push edi
mov eax, dword [0x5164b0]
xor eax, esp
push eax
lea eax, [esp + 0x308]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402716
push 0xf
pop esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x310], ebx
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x7c]
mov byte [esp + 0x310], 2
push eax
push eax
push str.SoftBList
push str.CInfos
call fcn.0044cc7a
mov ecx, eax
call fcn.0044cf0d
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004646f1
pop ecx
pop ecx
push eax
lea ecx, [esp + 0x80]
call fcn.004033c5
xor edi, edi
lea ecx, [esp + 0x64]
push ebx
inc edi
push edi
call fcn.004044e5
push 0x4dda94
lea ecx, [esp + 0x98]
call fcn.004041e5
lea eax, [esp + 0x20]
mov byte [esp + 0x310], 3
push eax
lea edx, [esp + 0x98]
lea ecx, [esp + 0x80]
call fcn.004648a4
pop ecx
push ebx
push edi
lea ecx, [esp + 0x9c]
mov byte [esp + 0x318], 2
call fcn.004044e5
push 0x103
lea eax, [esp + 0x1f9]
mov byte [esp + 0x1f8], bl
push ebx
push eax
call fcn.004ab3c0
add esp, 0xc
mov dword [esp + 0x18], 0x104
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x30]
push eax
push ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x21c]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4026b9
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov byte [esp + 0x310], 5
mov esi, ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], 0xff
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x108]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40268a
push str.Publisher
lea ecx, [esp + 0x68]
call fcn.004041e5
lea eax, [esp + 0xf4]
mov byte [esp + 0x310], 6
push eax
lea ecx, [esp + 0xc8]
call fcn.004041e5
lea eax, [esp + 0xac]
mov byte [esp + 0x310], 7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc4]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0040211a
mov bl, al
pop ecx
neg bl
pop ecx
sbb bl, bl
lea ecx, [esp + 0xc4]
xor edi, edi
push edi
push 1
call fcn.004044e5
push edi
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x318], 5
call fcn.004044e5
inc bl
je 0x402530
mov ebx, 0x4e870e
push ebx
call fcn.004041c8
pop ecx
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.0040414f
lea edx, [esp + 0x20]
lea ecx, [esp + 0xac]
call fcn.00402205
test al, al
je 0x402685
push str.DisplayName
lea ecx, [esp + 0xc8]
call fcn.004041e5
lea eax, [esp + 0xf4]
mov byte [esp + 0x310], 8
push eax
lea ecx, [esp + 0x68]
call fcn.004041e5
lea eax, [esp + 0x94]
mov byte [esp + 0x310], 9
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x64]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.0040211a
pop ecx
pop ecx
push edi
push 1
lea ecx, [esp + 0x6c]
mov bl, al
call fcn.004044e5
push edi
xor edi, edi
mov byte [esp + 0x314], 5
inc edi
lea ecx, [esp + 0xc8]
push edi
call fcn.004044e5
test bl, bl
je 0x402681
cmp dword [esp + 0x5c], 0
je 0x4025e6
mov ebx, 0x4dda94
push ebx
call fcn.004041c8
pop ecx
push eax
push ebx
lea ecx, [esp + 0x54]
call fcn.00403c73
lea eax, [esp + 0x94]
mov edx, str.name:
push eax
lea ecx, [esp + 0xe0]
call fcn.004035a7
mov byte [esp + 0x314], 0xa
lea ecx, [esp + 0xc8]
mov edx, eax
mov dword [esp], str._publish:
call fcn.0040360e
pop ecx
lea ecx, [esp + 0xac]
mov byte [esp + 0x310], 0xb
push ecx
mov edx, eax
lea ecx, [esp + 0x68]
call fcn.00403640
pop ecx
push 0xffffffffffffffff
xor ebx, ebx
mov byte [esp + 0x314], 0xc
push ebx
push eax
lea ecx, [esp + 0x58]
call fcn.00403d15
push ebx
push edi
lea ecx, [esp + 0x6c]
call fcn.004044e5
push ebx
push edi
lea ecx, [esp + 0xcc]
call fcn.004044e5
push ebx
push edi
lea ecx, [esp + 0xe4]
mov byte [esp + 0x318], 5
call fcn.004044e5
jmp 0x40268a
xor ebx, ebx
jmp 0x40268a
xor edi, edi
xor ebx, ebx
inc edi
inc esi
cmp esi, dword [esp + 0x14]
jb 0x402466
push ebx
push edi
lea ecx, [esp + 0x9c]
call fcn.004044e5
push ebx
push edi
lea ecx, [esp + 0xb4]
mov byte [esp + 0x318], 2
call fcn.004044e5
cmp dword [esp + 0x60], 0x10
lea eax, [esp + 0x4c]
push dword [esp + 0x5c]
cmovae eax, dword [esp + 0x50]
push eax
push 0x4e870e
push str.SOFTWARE
call fcn.0044fe3d
mov ecx, eax
call fcn.004502f8
push dword [esp + 0x10]
movzx eax, al
mov dword [0x51c16c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.00403e2c
push ebx
push edi
lea ecx, [esp + 0x84]
call fcn.004044e5
push ebx
push edi
lea ecx, [esp + 0x54]
call fcn.004044e5
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.004a5088
mov esp, ebp
pop ebp
ret