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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43257b
mov eax, dword fs:[0]
push eax
mov eax, 0x1864
call fcn.00413820
mov eax, dword [0x446074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x1844], esi
mov dword [ebp - 0x1830], esi
lea ecx, [ebp - 0x1864]
mov dword [ebp - 0x1830], esi
call fcn.00404ab0
mov ecx, str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstall
mov dword [ebp - 4], 0
test bl, bl
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
cmovne eax, ecx
lea ecx, [ebp - 0x1834]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x183c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40359d
lea eax, [ebp - 0x1864]
mov ecx, esi
push eax
call fcn.004049c0
lea ecx, [ebp - 0x1864]
call fcn.00403780
mov eax, esi
jmp 0x40374e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1838]
mov dword [ebp - 0x1838], 0x800
push eax
lea eax, [ebp - 0x1010]
push eax
push esi
push dword [ebp - 0x1834]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x40371a
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x183c]
lea eax, [ebp - 0x1810]
push str._ws_ws
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x182c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x1810]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40362f
push dword [ebp - 0x182c]
call ebx
inc esi
jmp 0x4035a5
lea eax, [ebp - 0x1830]
mov dword [ebp - 0x1830], 0x800
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x1840], 0xf003f
push eax
lea eax, [ebp - 0x1840]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x182c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403712
mov dword [ebp - 0x1818], eax
mov word [ebp - 0x1828], ax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x1814], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403693
sub eax, edx
lea ecx, [ebp - 0x1828]
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004093f0
lea eax, [ebp - 0x1828]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x186c]
push eax
lea ecx, [ebp - 0x1864]
call fcn.0040cfe0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1814]
cmp edx, 8
jb 0x403712
mov ecx, dword [ebp - 0x1828]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40376a
push edx
push ecx
call fcn.004127f6
add esp, 8
push dword [ebp - 0x182c]
call ebx
inc esi
test edi, edi
je 0x4035a5
push dword [ebp - 0x1834]
call ebx
mov ecx, dword [ebp - 0x1844]
lea eax, [ebp - 0x1864]
push eax
call fcn.004049c0
lea ecx, [ebp - 0x1864]
call fcn.00403780
mov eax, dword [ebp - 0x1844]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004127e5
mov esp, ebp
pop ebp
ret
call fcn.00417464
int3