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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x540f9b
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x540f94
mov ecx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404690
mov ecx, dword [ebp + 0x10]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x4010c8]
call fcn.00404df4
xor eax, eax
push ebp
push 0x54122f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0xbce469], 0
je 0x540fe0
mov ebx, 0x20119
jmp 0x540fe5
mov ebx, 0x20019
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.004046a0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5411e6
push 0
push 0
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
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x10], 0x3e8
mov ebx, dword [ebp - 0x18]
dec ebx
test ebx, ebx
jl 0x5411e6
inc ebx
mov dword [ebp - 0x30], 0
cmp byte [0xbce468], 3
je 0x5411e6
mov eax, dword [0x559800]
mov eax, dword [eax]
call fcn.00490fec
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x541258
call fcn.00409e28
cmp dword [ebp - 4], 0
jne 0x5410e3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x541258
call fcn.00409e28
jmp 0x54112a
push dword [ebp - 4]
push 0x541264
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x541258
call fcn.00409e28
push dword [ebp - 0x248]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404560
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 6
lea edx, [ebp - 0x244]
xor ecx, ecx
mov eax, 0x541258
call fcn.00409e28
mov eax, dword [0x5591b8]
inc dword [eax]
mov eax, dword [0x5591b8]
mov eax, dword [eax]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x541178
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
call fcn.004711a8
mov edx, dword [ebp - 0x34]
mov eax, 0x541270
call fcn.004047e4
test eax, eax
jg 0x5411dc
mov eax, dword [ebp - 0x34]
mov edx, 0x5412ac
call fcn.004045ec
je 0x5411dc
mov edx, dword [ebp - 0x34]
mov eax, 0x5412e8
call fcn.004047e4
test eax, eax
jg 0x5411dc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0054133c
mov eax, dword [ebp + 0x10]
push eax
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.00540f70
mov dword [ebp - 0x10], 0x3e8
inc dword [ebp - 0x30]
dec ebx
jne 0x541050
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541236
lea eax, [ebp - 0x248]
call fcn.004041e0
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404204
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
inc ecx
mov edx, dword [0x4010c8]
call fcn.00404cb4
lea eax, [ebp - 4]
call fcn.004041e0
ret