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

Disassembly:
sub esp, 0x214
mov eax, dword [esp + 0x218]
push ebx
push ebp
push esi
xor esi, esi
cmp eax, 5
push edi
mov ebx, ecx
mov dword [esp + 0x14], 0x104
je 0x4111b7
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
lea ecx, [esp + 0x124]
lea ebx, [ebx + edx*8]
lea eax, [ebx + 0x104]
push eax
push str.softwaremicrosoftdevstudio5.0
push str._s_s
push ecx
call fcn.00413130
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x124]
push edx
push 0x20019
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x80000002
call esi
test eax, eax
je 0x411137
lea ecx, [esp + 0x10]
lea edx, [esp + 0x124]
push ecx
push 0x20019
push 0
push edx
push 0x80000001
call esi
test eax, eax
jne 0x4112c7
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.ProductDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411174
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x144], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.CLSID783CD4E4_9D54_11CF_B8EE_00608CC9A71FInprocServer32
push 0x80000000
call edi
test eax, eax
jne 0x4112c7
push 0x422d70
push str.softwaremicrosoftwindowscurrentversionuninstall
lea edx, [esp + 0x28]
push str._s_s
push edx
call fcn.00413130
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x4112c7
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41125c
mov ecx, dword [esp + 0x10]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x1f]
cmp eax, edx
je 0x41128f
cmp esi, 2
je 0x41128f
cmp byte [eax], 0x5c
jne 0x411286
inc esi
cmp esi, 2
je 0x411287
dec eax
lea ecx, [esp + 0x20]
cmp eax, ecx
jne 0x411276
mov edx, dword [esp + 0x10]
push edx
call ebp
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x668]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x144], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4