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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffefe0
push esi
push edi
cmp dword [0x414bbf], 0
je 0x40201d
push dword [0x414bbf]
call fcn.004018b8
mov dword [0x414bbf], 0
cmp dword [0x414bc3], 0
je 0x40203b
push dword [0x414bc3]
call fcn.004018b8
mov dword [0x414bc3], 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 0x4021c9
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 0x4021c1
push 0x414c17
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
call fcn.00401d33
or eax, eax
je 0x4021b6
mov edx, eax
lea eax, [ebp - 0x1004]
push eax
push edx
call fcn.00401d87
or eax, eax
je 0x4021b6
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1018]
push eax
push str.UninstallString
push dword [ebp - 0x1020]
push 0x80000002
call fcn.00401cac
or eax, eax
je 0x4021ab
cmp eax, 1
jbe 0x4021ab
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.00401cac
or eax, eax
je 0x402186
cmp dword [ebp - 0x1018], 1
jbe 0x402186
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 0x4021a6
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 0x402078
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 0x402244
push dword [ebp - 0x1010]
call fcn.00401082
mov dword [ebp - 0x1018], eax
push dword [ebp - 0x1018]
call fcn.004018cf
mov dword [0x414bbf], eax
push dword [ebp - 0x101c]
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x402244
mov ecx, dword [ebp - 0x1018]
mov esi, eax
mov edi, dword [0x414bbf]
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 0x4022a5
push dword [ebp - 0x1014]
call fcn.00401082
mov dword [ebp - 0x1018], eax
push dword [ebp - 0x1018]
call fcn.004018cf
mov dword [0x414bc3], eax
push dword [ebp - 0x101c]
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x4022a5
mov ecx, dword [ebp - 0x1018]
mov esi, eax
mov edi, dword [0x414bc3]
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