Function at 0x403010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526340
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Compsetupstarter
lea ecx, [ebp - 0x14]
call fcn.00406480
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00406d10
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x25], 0
lea ecx, [ebp - 0x1c]
call fcn.00406440
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00406440
mov byte [ebp - 4], 2
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstaller
lea ecx, [ebp - 0x1c]
call fcn.00406540
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x1c]
call fcn.00406580
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403130
mov dword [ebp - 0x10], 0x800
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.004065b0
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push str.InstallerLocation
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403126
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00406600
push 0x536ec8
push 1
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405ab0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
push eax
call fcn.00405dd0
add esp, 8
mov byte [ebp - 0x2d], al
lea ecx, [ebp - 0x34]
call fcn.00406500
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x403122
push 0x536ec8
mov ecx, dword [ebp + 8]
call fcn.00405600
mov byte [ebp - 0x1d], 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 0x1d]
test eax, eax
jne 0x40316a
push str.MSI_Folder_not_specified_in_registry__probably_no_MSI_V2.0_._Taking_default..
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401da0
add esp, 4
mov byte [ebp - 0x25], 1
jmp 0x403211
push str.msiexec.exe
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x24]
call fcn.00406520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00406500
push 0x537b90
lea ecx, [ebp - 0x24]
call fcn.00406580
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00403360
add esp, 8
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00405df0
add esp, 8
mov byte [ebp - 0x39], al
lea ecx, [ebp - 0x40]
call fcn.00406500
movzx edx, byte [ebp - 0x39]
test edx, edx
je 0x403211
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x25], 1
push str.MSI_Folder_is_wrong_specified_in_registry__Taking_default..
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 1
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00401da0
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.00405e50
movzx ecx, al
test ecx, ecx
je 0x403229
mov byte [ebp - 0x1d], 0
jmp 0x4032c6
push str.msiexec.exe
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x24]
call fcn.00406520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00406500
push 0x537b90
lea ecx, [ebp - 0x24]
call fcn.00406580
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00403360
add esp, 8
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00405df0
add esp, 8
mov byte [ebp - 0x45], al
lea ecx, [ebp - 0x4c]
call fcn.00406500
movzx edx, byte [ebp - 0x45]
test edx, edx
je 0x4032c2
push str.Msiexec_was_not_found_at_all_
lea ecx, [ebp - 0x14]
call fcn.00406580
push eax
push 0
push 0x588f50
call fcn.00416d20
add esp, 0x10
mov byte [ebp - 0x1d], 0
jmp 0x4032c6
mov byte [ebp - 0x1d], 1
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x40331e
push str.msiexec.exe__REGSERVER
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.00405c70
add esp, 0xc
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00406520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00406500
push 0x536e60
lea ecx, [ebp - 0x24]
call fcn.00406580
push eax
call fcn.00402210
add esp, 8
mov dl, byte [ebp - 0x1d]
mov byte [ebp - 0x51], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00406500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00406500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406500
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret