Function at 0x4f69b8
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.004046b8
mov eax, dword [ebp + 0x14]
call fcn.004046b8
mov eax, dword [ebp + 0x10]
call fcn.004046b8
xor eax, eax
push ebp
push 0x4f6cd8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4f6c8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x512970]
cmp byte [eax], 0
je 0x4f6a32
mov edi, 0x20119
jmp 0x4f6a37
mov edi, 0x20019
lea eax, [ebp - 0x10]
push eax
push edi
push 0
mov eax, dword [ebp - 0xc]
call fcn.004046c8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4f6c7b
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 0x4f6c7b
inc edi
mov dword [ebp - 0x34], 0
mov eax, dword [0x512704]
cmp byte [eax], 1
je 0x4f6c7b
mov eax, dword [0x51297c]
mov eax, dword [eax]
call fcn.00481930
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 0x4f6b10
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, 0x4f6cf0
call fcn.00409ae8
jmp 0x4f6b57
push dword [ebp - 0xc]
push 0x4f6cfc
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, 0x4f6cf0
call fcn.00409ae8
push dword [ebp - 0x24c]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404588
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, 0x4f6cf0
call fcn.00409ae8
inc dword [0x514180]
mov eax, dword [0x514180]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x4f6ba1
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.00461c78
mov eax, dword [0x51417c]
mov eax, dword [eax + 0x48c]
mov edx, 0x4f6d08
call fcn.00404614
jne 0x4f6bcd
mov edx, dword [ebp - 0x38]
mov eax, 0x4f6d14
call fcn.0040480c
test eax, eax
jg 0x4f6c71
mov eax, dword [ebp - 0x38]
mov edx, 0x4f6d50
call fcn.00404614
je 0x4f6c71
test ebx, ebx
jle 0x4f6c34
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x38]
call fcn.004044c8
mov ecx, eax
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.00404728
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0x40]
call fcn.00408774
mov eax, dword [ebp - 0x250]
push eax
lea edx, [ebp - 0x254]
mov eax, 0x4f6d8c
call fcn.00408774
mov eax, dword [ebp - 0x254]
pop edx
call fcn.0040480c
mov ebx, eax
test ebx, ebx
jg 0x4f6c71
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.004f8ccc
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.004f69b8
mov dword [ebp - 0x14], 0x3e8
inc dword [ebp - 0x34]
dec edi
jne 0x4f6aa5
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
jmp 0x4f6c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6cdf
lea eax, [ebp - 0x254]
mov edx, 3
call fcn.0040422c
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.0040422c
lea eax, [ebp - 0xc]
call fcn.00404208
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.0040422c
ret