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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.00404690
mov eax, dword [ebp + 0x14]
call fcn.00404690
mov eax, dword [ebp + 0x10]
call fcn.00404690
xor eax, eax
push ebp
push 0x549fee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5597ec]
cmp byte [eax], 0
je 0x549d5c
mov edi, 0x20119
jmp 0x549d61
mov edi, 0x20019
lea eax, [ebp - 0x10]
push eax
push edi
push 0
mov eax, dword [ebp - 0xc]
call fcn.004046a0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x549fa5
push 0
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x14], 0x3e8
mov edi, dword [ebp - 0x1c]
dec edi
test edi, edi
jl 0x549fa5
inc edi
mov dword [ebp - 0x34], 0
mov eax, dword [0x559340]
cmp byte [eax], 1
je 0x549fa5
mov eax, dword [0x559800]
mov eax, dword [eax]
call fcn.00490fec
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp dword [ebp - 0xc], 0
jne 0x549e3a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 6
lea edx, [ebp - 0x248]
xor ecx, ecx
mov eax, 0x54a008
call fcn.00409e28
jmp 0x549e81
push dword [ebp - 0xc]
push 0x54a014
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 6
lea edx, [ebp - 0x248]
xor ecx, ecx
mov eax, 0x54a008
call fcn.00409e28
push dword [ebp - 0x24c]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404560
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 6
lea edx, [ebp - 0x248]
xor ecx, ecx
mov eax, 0x54a008
call fcn.00409e28
inc dword [0xbce4f4]
mov eax, dword [0xbce4f4]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x549ecb
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.004711a8
mov eax, dword [0xbce4ec]
mov eax, dword [eax + 0x46c]
mov edx, 0x54a020
call fcn.004045ec
jne 0x549ef7
mov edx, dword [ebp - 0x38]
mov eax, 0x54a02c
call fcn.004047e4
test eax, eax
jg 0x549f9b
mov eax, dword [ebp - 0x38]
mov edx, 0x54a068
call fcn.004045ec
je 0x549f9b
test ebx, ebx
jle 0x549f5e
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x38]
call fcn.004044a0
mov ecx, eax
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.00404700
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0x40]
call fcn.0040863c
mov eax, dword [ebp - 0x250]
push eax
lea edx, [ebp - 0x254]
mov eax, 0x54a0a4
call fcn.0040863c
mov eax, dword [ebp - 0x254]
pop edx
call fcn.004047e4
mov ebx, eax
test ebx, ebx
jg 0x549f9b
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0054cff4
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00549cf0
mov dword [ebp - 0x14], 0x3e8
inc dword [ebp - 0x34]
dec edi
jne 0x549dcf
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x549ff5
lea eax, [ebp - 0x254]
mov edx, 3
call fcn.00404204
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404204
lea eax, [ebp - 0xc]
call fcn.004041e0
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00404204
ret