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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004046b8
mov eax, dword [ebp + 0x10]
call fcn.004046b8
xor eax, eax
push ebp
push 0x50639f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x512970]
cmp byte [eax], 0
je 0x506103
mov ebx, 0x20119
jmp 0x506108
mov ebx, 0x20019
lea eax, [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.004046c8
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x50635b
push 0
push 0
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
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0xc], 0x3e8
mov ebx, dword [ebp - 0x14]
dec ebx
test ebx, ebx
jl 0x50635b
inc ebx
mov dword [ebp - 0x2c], 0
mov eax, dword [0x512704]
cmp byte [eax], 1
je 0x50635b
mov eax, dword [0x51297c]
mov eax, dword [eax]
call fcn.00481930
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 6
lea edx, [ebp - 0x240]
xor ecx, ecx
mov eax, 0x5063b8
call fcn.00409ae8
cmp dword [ebp - 4], 0
jne 0x506207
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 6
lea edx, [ebp - 0x240]
xor ecx, ecx
mov eax, 0x5063b8
call fcn.00409ae8
jmp 0x50624e
push dword [ebp - 4]
push 0x5063c4
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 6
lea edx, [ebp - 0x240]
xor ecx, ecx
mov eax, 0x5063b8
call fcn.00409ae8
push dword [ebp - 0x244]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404588
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 6
lea edx, [ebp - 0x240]
xor ecx, ecx
mov eax, 0x5063b8
call fcn.00409ae8
inc dword [0x514180]
mov eax, dword [0x514180]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x506299
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
call fcn.00461c78
mov eax, dword [0x51417c]
mov eax, dword [eax + 0x48c]
mov edx, 0x5063d0
call fcn.00404614
jne 0x5062c5
mov edx, dword [ebp - 0x30]
mov eax, 0x5063dc
call fcn.0040480c
test eax, eax
jg 0x506351
mov eax, dword [ebp - 0x30]
mov edx, 0x506418
call fcn.00404614
je 0x506351
mov edx, dword [ebp - 0x30]
mov eax, 0x506454
call fcn.0040480c
test eax, eax
jg 0x506351
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x30]
call fcn.00408774
mov eax, dword [ebp - 0x248]
push eax
lea edx, [ebp - 0x24c]
mov eax, 0x5064b0
call fcn.00408774
mov eax, dword [ebp - 0x24c]
pop edx
call fcn.0040480c
test eax, eax
jg 0x506351
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, edi
mov eax, esi
call fcn.005064bc
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, edi
mov eax, esi
call fcn.005060a4
mov dword [ebp - 0xc], 0x3e8
inc dword [ebp - 0x2c]
dec ebx
jne 0x506173
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5063a6
lea eax, [ebp - 0x24c]
mov edx, 3
call fcn.0040422c
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.0040422c
lea eax, [ebp - 4]
call fcn.00404208
lea eax, [ebp + 0x10]
call fcn.00404208
ret