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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffefe0
push esi
push edi
cmp dword [0x4117ab], 0
je 0x401eb7
push dword [0x4117ab]
call fcn.00401752
mov dword [0x4117ab], 0
cmp dword [0x4117af], 0
je 0x401ed5
push dword [0x4117af]
call fcn.00401752
mov dword [0x4117af], 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 0x402063
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 0x40205b
push 0x411803
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
call fcn.00401bcd
or eax, eax
je 0x402050
mov edx, eax
lea eax, [ebp - 0x1004]
push eax
push edx
call fcn.00401c21
or eax, eax
je 0x402050
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1018]
push eax
push str.UninstallString
push dword [ebp - 0x1020]
push 0x80000002
call fcn.00401b46
or eax, eax
je 0x402045
cmp eax, 1
jbe 0x402045
push eax
push dword [ebp - 0x1018]
push eax
push dword [ebp - 0x1010]
call fcn.004014fb
lea eax, [ebp - 0x1018]
push eax
push str.DisplayName
push dword [ebp - 0x1020]
push 0x80000002
call fcn.00401b46
or eax, eax
je 0x402020
cmp dword [ebp - 0x1018], 1
jbe 0x402020
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.004014fb
pop eax
push dword [ebp - 0x1018]
push eax
push dword [ebp - 0x1014]
call fcn.004014fb
call fcn.00401752
jmp 0x402040
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.004014fb
call fcn.00401752
push dword [ebp - 0x1020]
call fcn.00401752
inc dword [ebp - 0x100c]
jmp 0x401f12
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
push 0
push dword [ebp - 0x1010]
call fcn.004014e6
push 0
push dword [ebp - 0x1014]
call fcn.004014e6
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x1010]
call sub.ole32.dll_GetHGlobalFromStream
test eax, eax
js 0x4020de
push dword [ebp - 0x1010]
call fcn.00401082
mov dword [ebp - 0x1018], eax
push dword [ebp - 0x1018]
call fcn.00401769
mov dword [0x4117ab], eax
push dword [ebp - 0x101c]
call sub.KERNEL32.DLL_GlobalLock
or eax, eax
je 0x4020de
mov ecx, dword [ebp - 0x1018]
mov esi, eax
mov edi, dword [0x4117ab]
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 0x40213f
push dword [ebp - 0x1014]
call fcn.00401082
mov dword [ebp - 0x1018], eax
push dword [ebp - 0x1018]
call fcn.00401769
mov dword [0x4117af], eax
push dword [ebp - 0x101c]
call sub.KERNEL32.DLL_GlobalLock
or eax, eax
je 0x40213f
mov ecx, dword [ebp - 0x1018]
mov esi, eax
mov edi, dword [0x4117af]
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