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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffefe0
push esi
push edi
cmp dword [0x4147bc], 0
je 0x401fe7
push dword [0x4147bc]
call fcn.004017bd
mov dword [0x4147bc], 0
cmp dword [0x4147c0], 0
je 0x402005
push dword [0x4147c0]
call fcn.004017bd
mov dword [0x4147c0], 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 0x402193
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 0x40218b
push 0x414814
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
call fcn.00401cfd
or eax, eax
je 0x402180
mov edx, eax
lea eax, [ebp - 0x1004]
push eax
push edx
call fcn.00401d51
or eax, eax
je 0x402180
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1018]
push eax
push str.UninstallString
push dword [ebp - 0x1020]
push 0x80000002
call fcn.00401c76
or eax, eax
je 0x402175
cmp eax, 1
jbe 0x402175
push eax
push dword [ebp - 0x1018]
push eax
push dword [ebp - 0x1010]
call fcn.00401483
lea eax, [ebp - 0x1018]
push eax
push str.DisplayName
push dword [ebp - 0x1020]
push 0x80000002
call fcn.00401c76
or eax, eax
je 0x402150
cmp dword [ebp - 0x1018], 1
jbe 0x402150
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.00401483
pop eax
push dword [ebp - 0x1018]
push eax
push dword [ebp - 0x1014]
call fcn.00401483
call fcn.004017bd
jmp 0x402170
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.00401483
call fcn.004017bd
push dword [ebp - 0x1020]
call fcn.004017bd
inc dword [ebp - 0x100c]
jmp 0x402042
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
push 0
push dword [ebp - 0x1010]
call fcn.0040146e
push 0
push dword [ebp - 0x1014]
call fcn.0040146e
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x1010]
call sub.ole32.dll_GetHGlobalFromStream
test eax, eax
js 0x40220e
push dword [ebp - 0x1010]
call fcn.00401064
mov dword [ebp - 0x1018], eax
push dword [ebp - 0x1018]
call fcn.004017d4
mov dword [0x4147bc], eax
push dword [ebp - 0x101c]
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x40220e
mov ecx, dword [ebp - 0x1018]
mov esi, eax
mov edi, dword [0x4147bc]
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 0x40226f
push dword [ebp - 0x1014]
call fcn.00401064
mov dword [ebp - 0x1018], eax
push dword [ebp - 0x1018]
call fcn.004017d4
mov dword [0x4147c0], eax
push dword [ebp - 0x101c]
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x40226f
mov ecx, dword [ebp - 0x1018]
mov esi, eax
mov edi, dword [0x4147c0]
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x101c]
call sub.kernel32.dll_GlobalUnlock
push dword [ebp - 0x1010]
call fcn.00401017
push dword [ebp - 0x1014]
call fcn.00401017
pop edi
pop esi
leave
ret