Function at 0x40ae20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d7658
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x51d260]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51d260]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
call fcn.00494f88
xor ebp, ebp
push ebp
push 0x2010
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], ebp
xor edi, edi
call fcn.004953fe
lea ecx, [esp + 0x1c]
test eax, eax
jne 0x40ae9b
mov dword [esp + 0x38], 0xffffffff
call fcn.00495090
xor eax, eax
jmp 0x40b0ae
call fcn.00494e73
push eax
mov dword [esp + 0x18], eax
call fcn.004a208f
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
push ebx
lea ecx, [esp + 0x24]
call fcn.00494c7c
lea ecx, [esp + 0x1c]
call fcn.00494f22
mov al, byte [ebx]
cmp al, 0xff
je 0x40aed8
xor al, 0x7f
movsx ebp, al
imul ebp, ebp, 0x989680
mov al, byte [ebx + 1]
cmp al, 0xff
je 0x40aeec
xor al, 0x7f
movsx ecx, al
imul ecx, ecx, 0xf4240
add ebp, ecx
mov al, byte [ebx + 2]
cmp al, 0xff
je 0x40af00
xor al, 0x7f
movsx edx, al
imul edx, edx, 0x186a0
add ebp, edx
mov al, byte [ebx + 3]
cmp al, 0xff
je 0x40af14
xor al, 0x7f
movsx eax, al
imul eax, eax, 0x2710
add ebp, eax
mov al, byte [ebx + 4]
cmp al, 0xff
je 0x40af28
xor al, 0x7f
movsx ecx, al
imul ecx, ecx, 0x3e8
add ebp, ecx
mov al, byte [ebx + 5]
cmp al, 0xff
je 0x40af39
xor al, 0x7f
movsx edx, al
imul edx, edx, 0x64
add ebp, edx
mov al, byte [ebx + 6]
cmp al, 0xff
je 0x40af4c
xor al, 0x7f
movsx eax, al
lea eax, [eax + eax*4]
lea ebp, [ebp + eax*2]
mov al, byte [ebx + 7]
cmp al, 0xff
je 0x40af5a
xor al, 0x7f
movsx ecx, al
add ebp, ecx
mov al, byte [ebx + 8]
cmp al, 0xff
je 0x40af6c
xor al, 0x7f
movsx edi, al
imul edi, edi, 0x989680
mov al, byte [ebx + 9]
cmp al, 0xff
je 0x40af80
xor al, 0x7f
movsx edx, al
imul edx, edx, 0xf4240
add edi, edx
mov al, byte [ebx + 0xa]
cmp al, 0xff
je 0x40af94
xor al, 0x7f
movsx eax, al
imul eax, eax, 0x186a0
add edi, eax
mov al, byte [ebx + 0xb]
cmp al, 0xff
je 0x40afa8
xor al, 0x7f
movsx ecx, al
imul ecx, ecx, 0x2710
add edi, ecx
mov al, byte [ebx + 0xc]
cmp al, 0xff
je 0x40afbc
xor al, 0x7f
movsx edx, al
imul edx, edx, 0x3e8
add edi, edx
mov al, byte [ebx + 0xd]
cmp al, 0xff
je 0x40afcd
xor al, 0x7f
movsx eax, al
imul eax, eax, 0x64
add edi, eax
mov al, byte [ebx + 0xe]
cmp al, 0xff
je 0x40afdf
xor al, 0x7f
movsx eax, al
lea ecx, [eax + eax*4]
lea edi, [edi + ecx*2]
mov al, byte [ebx + 0xf]
cmp al, 0xff
je 0x40afed
xor al, 0x7f
movsx edx, al
add edi, edx
lea eax, [ebp + ebp*4]
add eax, eax
push eax
call fcn.004a208f
mov ecx, dword [esp + 0x1c]
lea edx, [edi + edi*4]
add edx, edx
push edx
mov dword [ecx + 0x33c0], eax
call fcn.004a208f
mov ecx, dword [esp + 0x20]
push edi
lea edx, [ebx + 0x10]
push edx
push eax
mov dword [ecx + 0x33b8], eax
call fcn.004a2300
add esp, 0x14
push edi
push ebp
mov ebp, dword [esp + 0x20]
mov ecx, ebp
call fcn.004099e0
mov ecx, dword [esi + 8]
mov edi, eax
mov eax, dword [ebp + 0x33c0]
add ecx, edi
cmp dword [esi + 4], ecx
mov dword [esp + 0x14], eax
jge 0x40b072
lea esp, [esp]
add dword [esi + 4], 0x400
mov eax, dword [esi + 4]
mov edx, dword [esi]
push eax
push edx
call fcn.004a1e25
mov dword [esi], eax
mov eax, dword [esi + 8]
add eax, edi
add esp, 8
cmp dword [esi + 4], eax
jl 0x40b050
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
push edi
push ecx
add edx, eax
push edx
call fcn.004a2300
add dword [esi + 8], edi
push ebx
call fcn.004a2159
add esp, 0x10
mov ecx, ebp
call fcn.00409b10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00495090
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a0abf
add esp, 0x28
ret 8