Function at 0x407921
Capabilities:
Get number of processors
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c17f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x478030]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, 0x47e0f0
mov esi, str.installScanInitiated
push 0x463d68
mov ecx, edi
mov dword [esp + 0x14], 0x8000ffff
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], str.configurationError
call fcn.004029a2
mov ebx, eax
test ebx, ebx
je 0x407d50
push str.installScanTimeout
mov ecx, 0x47e0c4
mov dword [esp + 0x14], 0x80004005
mov dword [esp + 0x20], 0x2ee0
call fcn.00423150
test eax, eax
je 0x4079bd
push eax
call fcn.0043a984
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0x77
ja 0x4079bd
imul eax, eax, 0x3e8
mov dword [esp + 0x1c], eax
mov eax, dword [0x47e0c0]
test eax, eax
je 0x4079d2
push esi
push str.InstallerScan_LI
push eax
call fcn.00415e78
mov esi, dword [ebp + 8]
push 0
push 0xbdd
call fcn.00407f99
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ebx
call fcn.0040151c
and dword [esp + 0x4c], 0
or dword [esp + 0x4c], 0xffffffff
lea ebx, [esp + 0x18]
call fcn.00417a43
pop ecx
mov dword [esp + 0x48], 1
push 0x5c
mov esi, ebx
call fcn.004080a5
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.004085cc
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
mov ecx, dword [esp + 0x28]
sub eax, dword [ecx - 0xc]
mov ecx, ebx
dec eax
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004080c6
mov byte [esp + 0x48], 3
call fcn.00408061
push 0x22
mov ecx, ebx
call fcn.00404012
push str.__installscan
mov ecx, ebx
call fcn.004086e8
push 0x463db8
mov ecx, edi
call fcn.004029a2
xor edi, edi
cmp eax, edi
je 0x407ae4
mov ecx, 0x463dcc
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407a9d
cmp dx, di
je 0x407a99
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407a9d
add eax, 4
add ecx, 4
cmp dx, di
jne 0x407a77
xor eax, eax
jmp 0x407aa2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x407ae4
push 3
push 5
call fcn.004179d0
test al, al
pop ecx
pop ecx
je 0x407ae4
push dword [esp + 0x14]
call fcn.00418e84
cmp eax, edi
pop ecx
mov dword [esp + 0x10], eax
jge 0x407ae4
mov eax, dword [0x47e0c0]
cmp eax, edi
je 0x407ae4
push str.installScanInitiated
push str.asInvoker
push dword [esp + 0x18]
push eax
call fcn.00415df7
cmp dword [esp + 0x10], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], str.asInstaller
jge 0x407b31
lea eax, [esp + 0x14]
push eax
call fcn.00416ed1
mov esi, eax
pop ecx
mov dword [esp + 0x34], esi
mov byte [esp + 0x48], 4
cmp esi, edi
je 0x407b18
mov dword [esp + 0x10], edi
jmp 0x407b21
call fcn.00403116
mov dword [esp + 0x10], eax
mov byte [esp + 0x48], 3
cmp esi, edi
je 0x407b31
push esi
call ebx
mov dword [esp + 0x34], edi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00405440
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.00405440
cmp dword [esp + 0x10], edi
jl 0x407d26
mov dword [esp + 0x18], str.waitingOnAppStart
mov dword [esp + 0x20], edi
mov byte [esp + 0x48], 5
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [esp + 0x20]
lea edi, [esp + 0x28]
push dword [ebp + 0xc]
call fcn.00407756
xor esi, esi
cmp eax, esi
mov dword [esp + 0x10], eax
jl 0x407d10
mov eax, dword [0x47e0c0]
cmp eax, esi
mov ecx, str.installScanInProgress
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], esi
je 0x407ba9
push ecx
push str.InstallerScan_LI
push eax
call fcn.00415e78
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.00407836
cmp eax, esi
mov dword [esp + 0x10], eax
jl 0x407d10
mov eax, dword [0x47e0c0]
cmp eax, esi
mov ecx, str.installScanCompleted
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], str.gettingResultId
je 0x407bf0
push ecx
push str.InstallerScan_LI
push eax
call fcn.00415e78
lea ecx, [esp + 0x24]
call fcn.0041966f
mov byte [esp + 0x48], 6
lea eax, [esp + 0x34]
push eax
push 0x47df48
call fcn.0040e68c
mov byte [esp + 0x48], 7
push dword [eax]
lea eax, [esp + 0x28]
push str.SOFTWARESlimWare_Utilities_Inc_s
push eax
call fcn.00402026
add esp, 0xc
mov byte [esp + 0x48], 6
lea ecx, [esp + 0x34]
call fcn.00401b66
mov dword [esp + 0x1c], esi
mov byte [esp + 0x48], 8
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [esp + 0x30]
mov dword [esp + 0x20], esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x407ceb
lea ecx, [esp + 0x1c]
call fcn.004085b5
cmp eax, esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
jne 0x407ceb
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push str.InstallScanID
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], 0x80004005
mov dword [esp + 0x4c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x407cb3
cmp eax, 0xea
jne 0x407ceb
mov eax, dword [esp + 0x10]
dec eax
je 0x407cd7
sub eax, 3
je 0x407cc9
mov dword [esp + 0x10], 0x80028ca0
jmp 0x407cf4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], str.app_side_error
jmp 0x407cf0
mov eax, dword [esp + 0x34]
neg eax
sbb eax, eax
and eax, 0x5ffefffe
add eax, 0xa0010002
jmp 0x407cf0
call fcn.0040861d
mov dword [esp + 0x10], eax
mov byte [esp + 0x48], 6
lea ecx, [esp + 0x1c]
call fcn.004085b5
mov byte [esp + 0x48], 5
lea ecx, [esp + 0x24]
call fcn.00401b66
mov byte [esp + 0x48], 3
cmp dword [esp + 0x20], esi
je 0x407d26
push dword [esp + 0x20]
call ebx
and dword [esp + 0x20], 0
mov byte [esp + 0x48], 2
lea ecx, [esp + 0x38]
call fcn.00401b66
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x28]
call fcn.00401b66
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401b66
mov esi, dword [ebp + 8]
push 0x64
push 0xbdd
call fcn.00407f99
xor ecx, ecx
cmp dword [0x47dff0], ecx
jne 0x407d6e
cmp dword [esi + 0x58], ecx
je 0x407d76
mov dword [esp + 0x10], 0x800704c7
cmp dword [esp + 0x10], ecx
jge 0x407d97
mov eax, dword [0x47e0c0]
cmp eax, ecx
je 0x407d97
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push dword [esp + 0x18]
push eax
call fcn.00415df7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8