Function at 0x402520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b84b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x1c]
call fcn.004114f0
push str.Setting_up_CCInstallerApp
push 3
mov dword [esp + 0x40], 0
call fcn.00411380
add esp, 8
mov ecx, esi
mov dword [0x466c14], esi
call fcn.00418760
test eax, eax
je 0x40266e
push str.Couldnt_set_up_CCInstallerApp
lea ecx, [esp + 0x18]
call fcn.004010e0
lea eax, [esp + 0x18]
mov ebx, 1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], bl
call fcn.00401d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00411520
push 0x4581ec
lea ecx, [esp + 0x18]
call fcn.004010e0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 2
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x38], 3
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
jle 0x4025f9
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 2
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00411520
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], ebx
jle 0x40263a
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00411520
mov eax, 0x64
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 8
lea edx, [esi + 8]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00401050
mov eax, dword [esi + 0x5c]
mov edx, dword [eax + 0x18]
lea ecx, [esi + 0x5c]
call edx
test eax, eax
je 0x40277f
push str.Couldnt_set_up_working_directory
lea ecx, [esp + 0x18]
call fcn.004010e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 4
call fcn.00401d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00411520
push 0x4581ec
lea ecx, [esp + 0x18]
call fcn.004010e0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 5
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x38], 6
mov eax, dword [esi]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x40270a
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 5
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00411520
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], ebx
jle 0x40274b
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00411520
mov eax, 0x64
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 8
lea edx, [esi + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00401050
mov eax, dword [esi + 0x6c]
mov edx, dword [eax + 0x18]
lea ecx, [esi + 0x6c]
call edx
test eax, eax
je 0x402890
push str.Couldnt_set_up_support_directory
lea ecx, [esp + 0x18]
call fcn.004010e0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 7
call fcn.00401d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00411520
push 0x4581ec
lea ecx, [esp + 0x18]
call fcn.004010e0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 8
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x38], 9
mov eax, dword [esi]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x40281b
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.00411520
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00411520
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], ebx
jle 0x40285c
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push eax
push 3
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00411520
mov eax, 0x64
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
call fcn.0042a205
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov byte [esp + 0x38], 0xa
je 0x4028ba
mov ecx, edi
call fcn.004187e0
mov dword [edi], vtable.CCInstallerObjectFactory.0
mov eax, edi
jmp 0x4028bc
xor eax, eax
test eax, eax
mov dword [esi + 4], eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
jne 0x4028ec
call fcn.00411520
mov eax, 0x66
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00411520
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret