Function at 0x40b280
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d5aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51b260]
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.004933cf
xor ebp, ebp
push ebp
push 0x2010
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], ebp
xor edi, edi
call fcn.00493845
lea ecx, [esp + 0x1c]
test eax, eax
jne 0x40b2fb
mov dword [esp + 0x38], 0xffffffff
call fcn.004934d7
xor eax, eax
jmp 0x40b50e
call fcn.004932ba
push eax
mov dword [esp + 0x18], eax
call fcn.004a04df
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
push ebx
lea ecx, [esp + 0x24]
call fcn.004930c3
lea ecx, [esp + 0x1c]
call fcn.00493369
mov al, byte [ebx]
cmp al, 0xff
je 0x40b338
xor al, 0x7f
movsx ebp, al
imul ebp, ebp, 0x989680
mov al, byte [ebx + 1]
cmp al, 0xff
je 0x40b34c
xor al, 0x7f
movsx ecx, al
imul ecx, ecx, 0xf4240
add ebp, ecx
mov al, byte [ebx + 2]
cmp al, 0xff
je 0x40b360
xor al, 0x7f
movsx edx, al
imul edx, edx, 0x186a0
add ebp, edx
mov al, byte [ebx + 3]
cmp al, 0xff
je 0x40b374
xor al, 0x7f
movsx eax, al
imul eax, eax, 0x2710
add ebp, eax
mov al, byte [ebx + 4]
cmp al, 0xff
je 0x40b388
xor al, 0x7f
movsx ecx, al
imul ecx, ecx, 0x3e8
add ebp, ecx
mov al, byte [ebx + 5]
cmp al, 0xff
je 0x40b399
xor al, 0x7f
movsx edx, al
imul edx, edx, 0x64
add ebp, edx
mov al, byte [ebx + 6]
cmp al, 0xff
je 0x40b3ac
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 0x40b3ba
xor al, 0x7f
movsx ecx, al
add ebp, ecx
mov al, byte [ebx + 8]
cmp al, 0xff
je 0x40b3cc
xor al, 0x7f
movsx edi, al
imul edi, edi, 0x989680
mov al, byte [ebx + 9]
cmp al, 0xff
je 0x40b3e0
xor al, 0x7f
movsx edx, al
imul edx, edx, 0xf4240
add edi, edx
mov al, byte [ebx + 0xa]
cmp al, 0xff
je 0x40b3f4
xor al, 0x7f
movsx eax, al
imul eax, eax, 0x186a0
add edi, eax
mov al, byte [ebx + 0xb]
cmp al, 0xff
je 0x40b408
xor al, 0x7f
movsx ecx, al
imul ecx, ecx, 0x2710
add edi, ecx
mov al, byte [ebx + 0xc]
cmp al, 0xff
je 0x40b41c
xor al, 0x7f
movsx edx, al
imul edx, edx, 0x3e8
add edi, edx
mov al, byte [ebx + 0xd]
cmp al, 0xff
je 0x40b42d
xor al, 0x7f
movsx eax, al
imul eax, eax, 0x64
add edi, eax
mov al, byte [ebx + 0xe]
cmp al, 0xff
je 0x40b43f
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 0x40b44d
xor al, 0x7f
movsx edx, al
add edi, edx
lea eax, [ebp + ebp*4]
add eax, eax
push eax
call fcn.004a04df
mov ecx, dword [esp + 0x1c]
lea edx, [edi + edi*4]
add edx, edx
push edx
mov dword [ecx + 0x33c0], eax
call fcn.004a04df
mov ecx, dword [esp + 0x20]
push edi
lea edx, [ebx + 0x10]
push edx
push eax
mov dword [ecx + 0x33b8], eax
call fcn.004a0750
add esp, 0x14
push edi
push ebp
mov ebp, dword [esp + 0x20]
mov ecx, ebp
call fcn.00409d30
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 0x40b4d2
lea esp, [esp]
add dword [esi + 4], 0x400
mov eax, dword [esi + 4]
mov edx, dword [esi]
push eax
push edx
call fcn.004a0275
mov dword [esi], eax
mov eax, dword [esi + 8]
add eax, edi
add esp, 8
cmp dword [esi + 4], eax
jl 0x40b4b0
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.004a0750
add dword [esi + 8], edi
push ebx
call fcn.004a05a9
add esp, 0x10
mov ecx, ebp
call fcn.00409e60
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004934d7
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.0049ef0f
add esp, 0x28
ret 8