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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
push ebx
push esi
push edi
push 0x3f
pop esi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x64b]
mov byte [ebp - 0x64c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x14b]
mov byte [ebp - 0x14c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x34b]
mov byte [ebp - 0x34c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x44b]
mov byte [ebp - 0x44c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x24b]
mov byte [ebp - 0x24c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x54b]
mov byte [ebp - 0x54c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
push 0x40
mov dword [ebp - 4], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x41347a
mov byte [eax], 0x14
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x74b]
mov byte [ebp - 0x74c], bl
mov dword [ebp - 0x20], 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41347a
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x413461
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
jle 0x413461
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x74c]
mov edi, 0x100
push eax
mov dword [ebp - 8], edi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x74c]
push ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413452
push edi
lea eax, [ebp - 0x14c]
push ebx
push eax
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.DisplayName
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x64c]
push ebx
push eax
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ParentKeyName
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x14c]
push eax
call esi
test eax, eax
je 0x413452
lea eax, [ebp - 0x64c]
push str.OperatingSystem
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x413452
push edi
lea eax, [ebp - 0x34c]
push ebx
push eax
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Publisher
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x44c]
push ebx
push eax
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.DisplayVersion
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x24c]
push ebx
push eax
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.InstallDate
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4132c0
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_FileTimeToSystemTime]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SystemTimeToTzSpecificLocalTime]
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x84b]
mov byte [ebp - 0x84c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3c]
push eax
lea eax, [ebp - 0x84c]
push str._d_02d_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edi, 0x100
push edi
lea eax, [ebp - 0x54c]
push ebx
push eax
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.UninstallString
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x54c]
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x24c]
push eax
call esi
add edi, eax
lea eax, [ebp - 0x44c]
push eax
call esi
add edi, eax
lea eax, [ebp - 0x34c]
push eax
call esi
add edi, eax
lea eax, [ebp - 0x14c]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [edi + eax + 6]
mov edi, dword [ebp - 0x18]
add eax, ecx
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.DLL_LocalSize]
cmp eax, dword [ebp - 0x24]
jae 0x413353
push 0x42
push dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
mov dword [ebp - 0x18], eax
mov edi, eax
lea eax, [ebp - 0x14c]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34c]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x34c]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x34c]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44c]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x44c]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24c]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54c]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x54c]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x54c]
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jl 0x4130c7
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
jmp 0x41347c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret