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

Disassembly:
mov eax, 0x45e15a
call fcn.00437048
sub esp, 0x364
mov eax, dword [0x48ed50]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x360], esi
call fcn.004012ff
lea eax, [ebp - 0x358]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esi + 0x1c], bl
mov dword [ebp - 0x358], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401765
push edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x250]
push eax
push ebx
push dword [ebp - 0x358]
mov edi, 0x104
mov dword [ebp - 0x368], ebx
mov dword [ebp - 0x364], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, 0x103
jmp 0x40172d
cmp eax, ebx
jne 0x4016fd
lea eax, [ebp - 0x35c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x358]
mov dword [ebp - 0x35c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016fd
push edi
lea eax, [ebp - 0x354]
push ebx
push eax
call fcn.004370b0
push edi
lea eax, [ebp - 0x14c]
push ebx
push eax
call fcn.004370b0
add esp, 0x18
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x354]
push eax
push ebx
push ebx
push str.ConsoleBrand
push dword [ebp - 0x35c]
mov dword [ebp - 0x36c], esi
mov dword [ebp - 0x370], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40165e
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x14c]
push eax
push ebx
push ebx
push str.ConsoleExePath
push dword [ebp - 0x35c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x35c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401496
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00401496
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
je 0x4016e3
cmp dword [ebp - 0x34], ebx
je 0x4016e3
lea eax, [ebp - 0x48]
push eax
call fcn.00401099
test al, al
pop ecx
je 0x4016e3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4016b5
mov eax, dword [eax + 4]
jmp 0x4016b8
add eax, 4
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x4016c4
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.00448933
pop ecx
pop ecx
push 0xffffffffffffffff
test eax, eax
push ebx
lea eax, [ebp - 0x48]
push eax
je 0x401737
mov ecx, dword [ebp - 0x360]
call fcn.00401333
push ebx
lea ecx, [ebp - 0x48]
push 1
call fcn.00401050
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x2c]
push 1
call fcn.00401050
inc dword [ebp - 0x368]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x368]
mov dword [ebp - 0x364], edi
push dword [ebp - 0x358]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x4015b7
jmp 0x40175e
mov esi, dword [ebp - 0x360]
mov ecx, esi
call fcn.00401333
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [esi + 0x1c], 1
call fcn.00401050
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401050
mov esi, dword [ebp - 0x360]
pop edi
cmp dword [ebp - 0x358], ebx
je 0x401779
push dword [ebp - 0x358]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0xc], bl
je 0x401789
xor eax, eax
cmp eax, dword [esi + 0x14]
sbb eax, eax
neg eax
jmp 0x40178c
mov al, byte [esi + 0x1c]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00437141
leave
ret 8