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

Disassembly:
push 0xffffffffffffffff
push 0x43d2e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x30], ecx
call fcn.004293f0
and eax, 0xffff
cmp eax, 6
jne 0x4114ff
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x451020
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
stosb byte es:[edi], al
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], 0x104
call fcn.0043a78c
push 0x451020
lea ecx, [esp + 0x14]
mov dword [esp + 0x260], esi
call fcn.0043a78c
push 0x451020
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 1
call fcn.0043a78c
lea eax, [esp + 0x24]
mov byte [esp + 0x25c], 2
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x41118b
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x411504
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x150]
push 0x104
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4114c9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
jmp 0x4111b6
xor esi, esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Empty
lea eax, [esp + 0x150]
lea ecx, [esp + 0x1c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x450184
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_CString::Empty
lea edx, [esp + 0x2c]
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x38]
push eax
push ecx
push str.RegistryLocation
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x411371
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
push str.SOFTWAREMicrosoftUpdates
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41149f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x4c]
push 0x450290
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x41149f
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
lea esi, [eax + 2]
push ecx
push esi
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x3c]
call fcn.00411520
cmp dword [esp + 0x28], 6
jne 0x41149f
push 6
lea eax, [esp + 0x40]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 3
call fcn.0043a7b6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
mov esi, dword [esp + 0x268]
add esp, 4
xor edx, edx
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x411318
mov esi, dword [esi]
cmp dword [esi], eax
je 0x41130f
inc edx
add esi, 4
cmp edx, ecx
jl 0x411301
jmp 0x411318
cmp edx, 0xffffffff
jne 0x41149f
lea edx, [esp + 0x44]
push ebp
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 4
call fcn.0043a7b6
lea ecx, [esp + 0x44]
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push 0x45012c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x4c]
push edx
push eax
jmp 0x411459
lea edx, [esp + 0x150]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x450290
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x41149f
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x38]
lea esi, [eax + 2]
push ecx
push esi
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x3c]
call fcn.00411520
push 6
lea eax, [esp + 0x4c]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 5
call fcn.0043a7b6
lea ecx, [esp + 0x48]
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp ecx, 6
jne 0x41149f
mov edx, dword [esp + 0x264]
xor ecx, ecx
mov esi, dword [edx + 4]
test esi, esi
jle 0x411434
mov edx, dword [edx]
cmp dword [edx], eax
je 0x41142f
inc ecx
add edx, 4
cmp ecx, esi
jl 0x411421
jmp 0x411434
cmp ecx, 0xffffffff
jne 0x41149f
lea edx, [esp + 0x150]
lea eax, [esp + 0x4c]
push edx
push str.SOFTWAREMicrosoftUpdatesWindows_XPSP3_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x4c]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, str.FileList_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x150]
inc eax
push 0x104
push edx
push eax
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4111b4
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x25c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x250
ret 4