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

Disassembly:
push 0xffffffffffffffff
push 0x536eac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
mov eax, dword [0x5ab980]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x430], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x438]
lea ecx, [esp + 0x10]
mov byte [esp + 0x430], 1
mov eax, dword [esi + 0x16c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push ecx
call fcn.0050e6c7
mov esi, dword [esi + 0x16c]
lea edx, [esp + 0x10]
push esi
push edx
call fcn.00424890
add esp, 0x14
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products_sInstallProperties
push ecx
mov byte [esp + 0x43c], 2
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 4]
mov byte [esp + 0x430], 1
call fcn.005128e4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406e38
lea ecx, [esp + 0xc]
mov byte [esp + 0x430], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x430], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x407042
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x406e9d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x430], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x430], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
jmp 0x407042
push ebx
push ebp
lea edx, [esp + 0x10]
push edi
lea eax, [esp + 0x34]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push 0
lea eax, [esp + 0x244]
push edx
push eax
mov edi, 0x200
push 0
push ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x34], edi
mov ebp, 1
call ebx
test eax, eax
jne 0x407001
jmp 0x406eee
mov edi, 0x200
cmp dword [esp + 0x24], 1
jne 0x406f89
cmp dword [esp + 0x14], 2
jb 0x406f89
mov edx, dword [0x5ab980]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x440], 3
call fcn.00512a6d
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, 0x5b8c78
call fcn.0049c5b0
lea edx, [esp + 0x10]
mov ecx, 0x5bc6a4
push edx
mov esi, eax
call fcn.00497d20
add esi, eax
test esi, esi
jle 0x406f78
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
inc eax
cmp eax, 0x1ff
jge 0x406f78
mov ecx, eax
lea edi, [esp + 0x34]
mov edx, ecx
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 [esp + 0x14], eax
mov edi, 0x200
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], 1
call fcn.005128e4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x240]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x234]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
push edx
lea ecx, [esp + 0x38]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x34]
push 0
lea edx, [esp + 0x244]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x3c]
inc ebp
push eax
call ebx
test eax, eax
je 0x406ee9
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 0
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005128e4
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x428]
pop esi
mov dword fs:[0], ecx
add esp, 0x430
ret 4