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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424603
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c0
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx esi, byte [ebx + 0x10]
mov eax, dword [ebx + 8]
inc esi
mov dword [ebp - 0x3cc], eax
xor eax, eax
shl esi, 8
mov dword [ebp - 0x3c4], esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
movzx edi, byte [ebx + 0xc]
lea ecx, [ebp - 0x5c]
push 0x33
add edi, 0x80000001
mov dword [ebp - 4], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov dword [ebp - 0x3c8], edi
call fcn.00403560
push 0x210
lea eax, [ebp - 0x3b0]
push 0
push eax
call fcn.0040a8e0
add esp, 0xc
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x3ac]
cmovae ecx, dword [ebp - 0x5c]
or esi, 0x20019
push eax
push esi
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4061af
mov dword [ebp - 0x3ac], 0
xor al, al
jmp 0x406203
push 0x206
lea eax, [ebp - 0x3a8]
mov byte [ebp - 0x3b0], 1
push 0
push eax
call fcn.0040a8e0
mov al, byte [ebp - 0x3b0]
add esp, 0xc
test al, al
je 0x406209
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x100
push eax
lea eax, [ebp - 0x3a4]
push eax
push dword [ebp - 0x3a8]
push dword [ebp - 0x3ac]
call esi
test eax, eax
sete al
mov byte [ebp - 0x3b0], al
mov byte [ebp - 4], 1
test al, al
je 0x40697b
mov edx, dword [ebp - 0x4c]
mov eax, 0x7ffffffe
sub eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 1
jb 0x4069f6
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
lea ecx, [edx + 1]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x5c]
lea edi, [ebp - 0x44]
mov esi, 7
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], ecx
cmp ecx, esi
jbe 0x4062e4
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x406276
mov esi, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x406298
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4069e7
add eax, eax
cmp eax, 0x1000
jb 0x4062c5
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4069e7
push ecx
call fcn.00408ed8
add esp, 4
test eax, eax
je 0x4069e2
mov ecx, dword [ebp - 0x18]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x1c]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4062de
test eax, eax
je 0x4062dc
push eax
call fcn.00408ed8
mov ecx, dword [ebp - 0x18]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov edi, eax
jmp 0x4062de
xor edi, edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], esi
lea esi, [edx + edx]
push esi
push eax
push edi
mov dword [ebp - 0x34], ecx
call fcn.0040a340
mov eax, 0x5c
add esp, 0xc
mov word [esi + edi], ax
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov word [edi + eax*2 + 2], cx
lea eax, [ebp - 0x3a4]
mov byte [ebp - 4], 2
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406320
mov ecx, dword [ebp - 0x30]
sub eax, edx
mov edx, dword [ebp - 0x34]
sub ecx, edx
sar eax, 1
cmp eax, ecx
ja 0x40636d
cmp dword [ebp - 0x30], 8
lea edi, [eax + edx]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x34], edi
cmovae esi, dword [ebp - 0x44]
add eax, eax
push eax
lea eax, [ebp - 0x3a4]
push eax
lea ecx, [esi + edx*2]
push ecx
call fcn.0040a340
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [ebp - 0x44]
jmp 0x40638b
push eax
lea ecx, [ebp - 0x3a4]
mov byte [ebp - 0x3c0], 0
push ecx
push dword [ebp - 0x3c0]
lea ecx, [ebp - 0x44]
push eax
call fcn.00406c90
mov dword [ebp - 0x68], 0
xor ecx, ecx
mov dword [ebp - 0x64], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4063fb
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4063f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069e2
push edx
push ecx
call fcn.00408f08
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
xor esi, esi
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], 1
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
mov edi, dword [ebp - 0x3c4]
lea ecx, [ebp - 0x18]
cmovae eax, dword [ebp - 0x78]
or edi, 1
push ecx
push edi
push esi
push eax
push dword [ebp - 0x3c8]
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4068bd
mov esi, dword [ebp - 0x18]
and edi, 0x300
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
test eax, eax
jne 0x4068bd
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
push str.DisplayName
lea ecx, [ebp - 0x2c]
call fcn.00405b50
cmp dword [ebp - 0x34], 0
jne 0x4064e1
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4064c6
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4064bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069e2
push edx
push ecx
call fcn.00408f08
add esp, 8
cmp byte [ebp - 0x24], 0
je 0x4068d6
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4068cf
push eax
jmp 0x4068c2
xor eax, eax
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 7
mov word [ebp - 0x1a0], ax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], 7
mov word [ebp - 0x188], ax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], 7
mov word [ebp - 0x170], ax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 7
mov word [ebp - 0x140], ax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 7
push eax
push str.UninstallString
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0xb0]
push eax
push str.UninstallString2
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0x98]
push eax
push str.QuietUninstallString
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x3b1], 0
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 0x3b2], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
xor edi, edi
mov dword [ebp - 0x1c], 4
push edi
push str.NoModify
push dword [ebp - 0x2c]
xor esi, esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40668b
cmp dword [ebp - 0x18], 4
jne 0x40668b
cmp dword [ebp - 0x1c], 4
cmove esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
push eax
push 0
push str.NoRepair
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4066ca
cmp dword [ebp - 0x20], 4
jne 0x4066ca
cmp dword [ebp - 0x18], 4
cmove edi, dword [ebp - 0x1c]
movzx eax, byte [ebp - 0x3b1]
test esi, esi
mov ecx, 1
mov dword [ebp - 0x20], 4
cmovne eax, ecx
mov dword [ebp - 0x18], 4
mov byte [ebp - 0x7c], al
test edi, edi
movzx eax, byte [ebp - 0x3b2]
cmovne eax, ecx
xor esi, esi
mov byte [ebp - 0x7b], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x80], esi
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
push esi
push str.EstimatedSize
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406733
cmp dword [ebp - 0x20], 4
jne 0x406733
cmp dword [ebp - 0x18], 4
cmove esi, dword [ebp - 0x1c]
mov dword [ebp - 0x80], esi
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x1a0]
push eax
call fcn.00403560
lea eax, [ebp - 0x188]
push eax
push str.DisplayIcon
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0x170]
push eax
push str.DisplayVersion
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0x158]
push eax
push str.Publisher
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0x128]
push eax
push str.InstallLocation
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0x140]
push eax
push str.InstallDate
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0x110]
push eax
push str.HelpLink
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0xf8]
push eax
push str.URLInfoAbout
lea ecx, [ebp - 0x2c]
call fcn.00405b50
lea eax, [ebp - 0xe0]
push eax
push str.URLUpdateInfo
lea ecx, [ebp - 0x2c]
call fcn.00405b50
mov edi, dword [ebp - 0x3cc]
cmp dword [edi + 4], 0xd79435
mov esi, dword [edi]
je 0x4069ec
lea eax, [ebp - 0x1a0]
push eax
push edi
lea ecx, [ebp - 0x3bc]
call fcn.00406b20
mov eax, dword [ebp - 0x3b8]
inc dword [edi + 4]
mov ecx, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [ebp - 0x3b8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x3b8]
mov dword [ebp - 0x3b8], 0
mov dword [esi + 4], eax
mov dword [ecx], eax
mov ecx, dword [ebp - 0x3b8]
test ecx, ecx
je 0x40686b
add ecx, 8
call fcn.00405710
mov eax, dword [ebp - 0x3b8]
test eax, eax
je 0x40686b
push 0x130
push eax
call fcn.00408f08
add esp, 8
lea ecx, [ebp - 0x1a0]
call fcn.00405710
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4068b4
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4068aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069e2
push edx
push ecx
call fcn.00408f08
add esp, 8
cmp byte [ebp - 0x24], 0
je 0x4068d6
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x4068cf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x406914
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40690a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069e2
push edx
push ecx
call fcn.00408f08
add esp, 8
inc dword [ebp - 0x3a8]
lea eax, [ebp - 0x3a4]
push 0x202
push 0
push eax
call fcn.0040a8e0
mov al, byte [ebp - 0x3b0]
add esp, 0xc
test al, al
je 0x40697b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x20]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x20], 0x100
push eax
push dword [ebp - 0x3a8]
push dword [ebp - 0x3ac]
call esi
test eax, eax
sete al
mov byte [ebp - 0x3b0], al
test al, al
jne 0x406215
mov eax, dword [ebp - 0x3ac]
test eax, eax
je 0x40698c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x4069c2
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4069b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4069e2
push edx
push ecx
call fcn.00408f08
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408ec2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.0040e5c1
call fcn.00401240
push str.list_too_long
call fcn.0040709f
call fcn.00401310
int3