Function at 0x40be50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bf69d
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x4e44b4]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
mov eax, dword [0x4e44b4]
xor eax, esp
push eax
lea eax, [esp + 0x2f8]
mov dword fs:[0], eax
call fcn.004753a0
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], eax
call fcn.004753a0
cmp esi, 5
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
jne 0x40c16b
cmp edi, 1
jne 0x40c16b
cmp ecx, 3
jne 0x40c16b
lea eax, [esp + 0x10]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionSideBySideInstallations
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bfdb
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor esi, esi
lea esp, [esp]
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0xe8]
push ecx
push esi
push edx
call edi
cmp eax, ebx
jne 0x40bfc6
lea eax, [esp + 0xe4]
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bf40
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x7c]
call fcn.00405680
push 0x1b
push ebx
push str._Microsoft.Windows.GdiPlus_
lea ecx, [esp + 0x80]
call fcn.004055a0
cmp eax, 0xffffffff
je 0x40bf93
push 0x10
push ebx
push str._1.0.6002.22509_
lea ecx, [esp + 0x80]
call fcn.004055a0
cmp eax, 0xffffffff
jne 0x40bfb6
add esi, 1
cmp dword [esp + 0x8c], 8
jb 0x40bf00
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00495fd1
add esp, 4
jmp 0x40bf00
lea ecx, [esp + 0x74]
mov esi, 1
call fcn.00402400
jmp 0x40bfc8
mov esi, ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40c16b
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
sub esp, 0x1c
mov dword [esp + 0x31c], ebx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4cab1c
lea esi, [esp + 0xb0]
call fcn.00402090
call fcn.00401be0
add esp, 0x1c
mov eax, esi
push eax
lea ecx, [esp + 0xcc]
call fcn.00475a60
push str.WindowsXP_KB2412687_x86_CHS.exe
lea ecx, [esp + 0x78]
mov byte [esp + 0x304], 1
call fcn.00405140
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0xd0]
mov byte [esp + 0x308], 2
call fcn.00476020
lea ecx, [esp + 0x74]
mov byte [esp + 0x300], 4
call fcn.00402400
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x4c]
call fcn.00471900
push str._quiet
lea ecx, [esp + 0x30]
mov byte [esp + 0x304], 5
call fcn.00402090
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x304], 6
call fcn.00472000
lea ecx, [esp + 0x2c]
mov byte [esp + 0x300], 5
call fcn.004020d0
push str._norestart
lea ecx, [esp + 0x30]
call fcn.00402090
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x304], 7
call fcn.00472000
lea ecx, [esp + 0x2c]
mov byte [esp + 0x300], 5
call fcn.004020d0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x28], bl
mov byte [esp + 0x2a], bl
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x34], ebx
mov byte [esp + 0x29], 1
mov dword [esp + 0x20], ebx
call fcn.0047a9f0
add esp, 0xc
mov byte [esp + 0x300], 4
lea ecx, [esp + 0x48]
call fcn.00471770
lea ecx, [esp + 0xac]
mov byte [esp + 0x300], 1
call fcn.00475620
lea ecx, [esp + 0xc8]
mov byte [esp + 0x300], bl
call fcn.00475620
mov ecx, esi
call fcn.00402400
mov ecx, dword [esp + 0x2f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret 4