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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffefe0
push esi
push edi
cmp dword [0x4147ed], 0
je 0x4020e2
push dword [0x4147ed]
call fcn.004018b8
mov dword [0x4147ed], 0
cmp dword [0x4147f1], 0
je 0x402100
push dword [0x4147f1]
call fcn.004018b8
mov dword [0x4147f1], 0
lea eax, [ebp - 0x1010]
push eax
call fcn.00401000
lea eax, [ebp - 0x1014]
push eax
call fcn.00401000
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
or eax, eax
jne 0x40228e
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1008], 0xfff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
push dword [ebp - 4]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
jne 0x402286
push 0x414845
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
call fcn.00401df8
or eax, eax
je 0x40227b
mov edx, eax
lea eax, [ebp - 0x1004]
push eax
push edx
call fcn.00401e4c
or eax, eax
je 0x40227b
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1018]
push eax
push str.UninstallString
push dword [ebp - 0x1020]
push 0x80000002
call fcn.00401d71
or eax, eax
je 0x402270
cmp eax, 1
jbe 0x402270
push eax
push dword [ebp - 0x1018]
push eax
push dword [ebp - 0x1010]
call fcn.0040157e
lea eax, [ebp - 0x1018]
push eax
push str.DisplayName
push dword [ebp - 0x1020]
push 0x80000002
call fcn.00401d71
or eax, eax
je 0x40224b
cmp dword [ebp - 0x1018], 1
jbe 0x40224b
push eax
push eax
lea eax, [ebp - 0x1004]
push eax
call sub.KERNEL32.DLL_lstrlenA
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call fcn.0040157e
pop eax
push dword [ebp - 0x1018]
push eax
push dword [ebp - 0x1014]
call fcn.0040157e
call fcn.004018b8
jmp 0x40226b
lea eax, [ebp - 0x1004]
push eax
call sub.KERNEL32.DLL_lstrlenA
inc eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call fcn.0040157e
call fcn.004018b8
push dword [ebp - 0x1020]
call fcn.004018b8
inc dword [ebp - 0x100c]
jmp 0x40213d
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
push 0
push dword [ebp - 0x1010]
call fcn.00401569
push 0
push dword [ebp - 0x1014]
call fcn.00401569
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x1010]
call sub.ole32.dll_GetHGlobalFromStream
test eax, eax
js 0x402309
push dword [ebp - 0x1010]
call fcn.00401082
mov dword [ebp - 0x1018], eax
push dword [ebp - 0x1018]
call fcn.004018cf
mov dword [0x4147ed], eax
push dword [ebp - 0x101c]
call sub.KERNEL32.DLL_GlobalLock
or eax, eax
je 0x402309
mov ecx, dword [ebp - 0x1018]
mov esi, eax
mov edi, dword [0x4147ed]
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x101c]
call sub.KERNEL32.DLL_GlobalUnlock
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x1014]
call sub.ole32.dll_GetHGlobalFromStream
test eax, eax
js 0x40236a
push dword [ebp - 0x1014]
call fcn.00401082
mov dword [ebp - 0x1018], eax
push dword [ebp - 0x1018]
call fcn.004018cf
mov dword [0x4147f1], eax
push dword [ebp - 0x101c]
call sub.KERNEL32.DLL_GlobalLock
or eax, eax
je 0x40236a
mov ecx, dword [ebp - 0x1018]
mov esi, eax
mov edi, dword [0x4147f1]
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x101c]
call sub.KERNEL32.DLL_GlobalUnlock
push dword [ebp - 0x1010]
call fcn.00401021
push dword [ebp - 0x1014]
call fcn.00401021
pop edi
pop esi
leave
ret