Function at 0x40e8e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x413ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x50]
mov eax, 0x81020409
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x54]
sar edx, 7
mov eax, edx
push edi
shr eax, 0x1f
add edx, eax
mov eax, 0x81020409
mov dword [esi + 0x48], edx
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esi + 0x4c], edx
mov edx, dword [esi + 0x20]
push edx
call dword [0x4148c4]
push eax
call fcn.004114d2
mov edi, eax
lea ecx, [esi + 0x58]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x30]
mov edx, dword [edi + 8]
mov ebx, dword [0x414204]
push 0x58
push edx
mov dword [esp + 0x18], eax
call ebx
mov ecx, dword [esi + 0x48]
push 0x5a
imul ecx, eax
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 8]
push edx
call ebx
imul eax, dword [esi + 0x4c]
mov dword [esi + 0x4c], eax
call dword [0x4148ec]
mov ebp, eax
mov ebx, dword [0x4142c0]
shr eax, 0x10
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x48]
shl eax, 2
cdq
and ebp, 0xffff
idiv ebp
mov ecx, eax
mov eax, dword [esi + 0x4c]
shl eax, 3
cdq
idiv dword [esp + 0x58]
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], eax
mov eax, dword [0x424924]
mov edx, dword [0x424920]
push eax
push edx
push ecx
call ebx
mov edx, dword [esi + 0x4c]
mov dword [esi + 0x48], eax
mov eax, dword [0x424924]
mov ecx, dword [0x424920]
push eax
push ecx
push edx
call ebx
mov dword [esi + 0x4c], eax
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [0x4148c8]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub eax, edx
lea ebx, [esi + 0x64]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x48]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x30]
sub eax, edx
mov dword [esi + 0x40], ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x4c]
cdq
sub eax, edx
mov edx, dword [esp + 0x5c]
sar ecx, 1
sar eax, 1
sub ecx, eax
push edx
mov dword [esi + 0x44], ecx
mov ecx, ebx
call fcn.004110a6
push ebx
lea ecx, [esp + 0x58]
call fcn.004110c4
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], eax
push 0x424974
lea ecx, [esp + 0x58]
call fcn.004116be
cmp eax, 0xffffffff
mov dword [esp + 0x5c], eax
je 0x40ea8b
inc eax
lea ecx, [esp + 0x54]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004110f4
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 1
call fcn.004110a6
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 0
call fcn.004110a0
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [0x4141c4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jle 0x40eabb
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x5c], 0xffffffff
jne 0x40ea47
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x3c], ecx
push 0x400
lea eax, [edx*4]
cdq
idiv ebp
mov ebp, eax
mov eax, ecx
cdq
sub eax, edx
lea ecx, [esp + 0x38]
mov edx, eax
mov eax, 0x55555556
sar edx, 1
mov dword [esp + 0x5c], edx
imul ebp
mov eax, edx
xor ebp, ebp
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x5c]
sub eax, edx
mov edx, dword [esi + 0x40]
add eax, edx
mov dword [esp + 0x38], ebp
mov dword [esi + 0x50], eax
mov ebx, dword [ebx]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov eax, dword [ebx - 8]
mov edx, dword [edi]
push ecx
push eax
push ebx
mov ecx, edi
call dword [edx + 0x70]
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x4c]
mov ecx, edx
cdq
sub eax, edx
mov edx, dword [esi + 0x44]
sar eax, 1
sub eax, ecx
mov ecx, edi
add eax, edx
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
push eax
call dword [edx + 0x30]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [0x4148cc]
push 0x427050
push 0x17ec
lea eax, [esp + 0x64]
push 0x17d4
push eax
call dword [0x414044]
add esp, 0x10
push eax
lea ecx, [esi + 0x60]
mov byte [esp + 0x50], 2
call fcn.004110a6
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4c], 0
call fcn.004110a0
mov ecx, dword [esi + 0x20]
push 1
push ebp
push ecx
call dword [0x41489c]
mov edx, dword [esi + 0x20]
push edx
call dword [0x414898]
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004110a0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc