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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x28
mov eax, 0x5b88a6
call fcn.0058f985
mov edi, dword [ebp + 0x218]
mov esi, dword [ebp + 0x214]
mov dword [ebp - 0x28], edi
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x20]
call fcn.0040141e
and dword [ebp - 4], 0
test edi, edi
je 0x40a1fd
xor eax, eax
or dword [edi + 0xc], 0xffffffff
mov word [edi + 0xa], ax
mov word [edi + 8], ax
mov word [edi + 6], ax
mov word [edi + 4], ax
test esi, esi
jne 0x40a231
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401019
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x20c
leave
ret
push esi
lea eax, [ebp - 0x20]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.00401518
add esp, 0xc
call fcn.00446344
test eax, eax
je 0x40a25c
mov dword [ebp - 0x24], 0x20119
mov dword [ebp - 0x14], 0x20219
jmp 0x40a267
or dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x24], 0x20019
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push 0
push dword [ebp - 0x20]
push ebx
call esi
test eax, eax
je 0x40a2e2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
lea edi, [ebx - 1]
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
je 0x40a2df
cmp dword [ebp - 0x14], 0xffffffff
je 0x40a201
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x20]
push ebx
call esi
test eax, eax
je 0x40a2df
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
je 0x40a2df
xor bl, bl
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401019
mov al, bl
jmp 0x40a20e
mov edi, dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0x18]
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x40a327
mov byte [ebp - 0xd], 1
test edi, edi
je 0x40a453
push dword [ebp - 0x34]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
jmp 0x40a453
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x1c], ebx
xor ebx, ebx
push ebx
push ebx
push str.VersionMajor
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x40a37a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push str.VersionMinor
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x40a37a
mov byte [ebp - 0xd], 1
cmp edi, ebx
je 0x40a453
push dword [ebp - 0x2c]
mov eax, dword [edi]
push dword [ebp - 0x30]
mov ecx, edi
call dword [eax + 0x14]
jmp 0x40a453
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push 0
push 0
push str.DisplayVersion
push dword [ebp - 0x18]
mov ebx, 0x208
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x40a3bc
test edi, edi
je 0x40a3b3
mov eax, dword [edi]
lea ecx, [ebp]
push ecx
mov ecx, edi
call dword [eax + 4]
test eax, eax
je 0x40a453
mov byte [ebp - 0xd], 1
jmp 0x40a453
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push 0
push 0
push str.DisplayName
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x40a453
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401287
mov esi, str.0123456789
push esi
lea ecx, [ebp - 0x14]
call fcn.00409dbf
test eax, eax
jl 0x40a448
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402192
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040227d
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401019
test edi, edi
je 0x40a444
push dword [ebp - 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test eax, eax
je 0x40a48e
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [ebp - 0xd]
jmp 0x40a2cd
push 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402192
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040227d
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401019
push esi
lea ecx, [ebp - 0x14]
call fcn.00409dbf
test eax, eax
je 0x40a464
jmp 0x40a3fc