Function at 0x40b570
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db953
mov eax, dword fs:[0]
push eax
sub esp, 0x570
mov eax, dword [0x65eff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
push 1
push 0x40
push 0x21
mov ecx, dword [ebp - 0x28c]
add ecx, 0x30
call fcn.0040eb80
push eax
lea ecx, [ebp - 0x384]
call fcn.0040f0f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x384]
call fcn.0040f070
movzx eax, al
test eax, eax
jne 0x40b5fe
mov byte [ebp - 0x28d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x384]
call fcn.0040b3b0
mov al, byte [ebp - 0x28d]
jmp 0x40bc84
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x384]
call fcn.00410880
mov eax, dword [ebp - 0x28c]
mov dword [eax + 0x64], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2a8], xmm0
push 0
push 0x200
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x384]
call fcn.004109a0
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x210]
test ecx, ecx
jne 0x40b65d
jmp 0x40bc2d
lea edx, [ebp - 0x194]
push edx
call fcn.0040a100
add esp, 4
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040eef0
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c8], esp
lea edx, [ebp - 0x240]
push edx
call fcn.0040efb0
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x28c]
call fcn.0040a280
mov byte [ebp - 0x28e], al
movzx eax, byte [ebp - 0x28e]
test eax, eax
je 0x40bb64
cmp dword [ebp - 0x298], 0
jg 0x40bb64
jl 0x40b6ea
cmp dword [ebp - 0x29c], 0x20000
jae 0x40bb64
mov ecx, dword [ebp - 0x29c]
add ecx, 1
push ecx
call fcn.0046701b
add esp, 4
mov dword [ebp - 0x2b4], eax
mov edx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2a0], edx
push 0
push 1
mov eax, dword [ebp - 0x298]
push eax
mov ecx, dword [ebp - 0x29c]
push ecx
call fcn.005aa430
mov edx, dword [ebp - 0x2a0]
mov byte [edx + eax], 0
mov eax, dword [ebp - 0x29c]
cdq
push edx
push eax
mov eax, dword [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x384]
call fcn.004109a0
mov ecx, dword [ebp - 0x29c]
push ecx
mov edx, dword [ebp - 0x2a0]
push edx
mov ecx, dword [ebp - 0x28c]
call fcn.0040bca0
mov byte [ebp - 0x28f], al
movzx eax, byte [ebp - 0x28f]
test eax, eax
jne 0x40b7a7
mov byte [ebp - 0x290], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040ecc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x384]
call fcn.0040b3b0
mov al, byte [ebp - 0x290]
jmp 0x40bc84
mov ecx, dword [ebp - 0x29c]
sub ecx, 0x100
mov edx, dword [ebp - 0x298]
sbb edx, 0
push ecx
mov eax, dword [ebp - 0x2a0]
add eax, 0x100
push eax
lea ecx, [ebp - 0x258]
push ecx
mov ecx, dword [ebp - 0x28c]
call fcn.0040c760
mov byte [ebp - 4], 2
push 1
push 1
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x42c]
call fcn.0040fe00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
call fcn.0040ef60
mov byte [ebp - 4], 4
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00419630
add esp, 8
push 1
push 1
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x4d4]
call fcn.0040fe00
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28c]
add eax, 0x64
push eax
lea ecx, [ebp - 0x4d4]
call fcn.00410b10
mov ecx, dword [ebp - 0x28c]
add ecx, 0x48
push ecx
lea edx, [ebp - 0x42c]
push edx
call fcn.00419630
add esp, 8
mov eax, dword [ebp - 0x28c]
cmp dword [eax + 0x64], 0
jl 0x40b882
mov ecx, dword [ebp - 0x28c]
cmp dword [ecx + 0x64], 0x64
jle 0x40b90c
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.00467024
add esp, 4
mov byte [ebp - 0x291], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4d4]
call fcn.0040b3e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
call fcn.0040ecc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x42c]
call fcn.0040b3e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.0040ecc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040ecc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x384]
call fcn.0040b3b0
mov al, byte [ebp - 0x291]
jmp 0x40bc84
mov dword [ebp - 0x2ac], 0
jmp 0x40b927
mov ecx, dword [ebp - 0x2ac]
add ecx, 1
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [edx + 0x64]
jge 0x40ba35
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x42c]
push edx
call fcn.00419630
add esp, 8
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x2b0]
add edx, dword [ecx + 4]
mov ecx, edx
call fcn.00406850
movzx eax, al
test eax, eax
je 0x40ba35
push 1
push 1
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x57c]
call fcn.0040fe00
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x288]
call fcn.0040ef60
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x270]
call fcn.0040ef60
mov byte [ebp - 4], 8
lea edx, [ebp - 0x288]
push edx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x57c]
push ecx
call fcn.00419670
add esp, 8
push eax
call fcn.00419670
add esp, 8
lea edx, [ebp - 0x288]
push edx
mov ecx, dword [ebp - 0x28c]
add ecx, 0x68
call fcn.0040e660
lea eax, [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x28c]
add ecx, 0x74
call fcn.0040e660
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x270]
call fcn.0040ecc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x288]
call fcn.0040ecc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x57c]
call fcn.0040b3e0
jmp 0x40b918
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x2bc]
push edx
call fcn.00467024
add esp, 4
mov ecx, dword [ebp - 0x28c]
add ecx, 0x68
call fcn.0040e7f0
mov ecx, dword [ebp - 0x28c]
cmp dword [ecx + 0x64], eax
je 0x40bad8
mov byte [ebp - 0x292], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4d4]
call fcn.0040b3e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
call fcn.0040ecc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x42c]
call fcn.0040b3e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.0040ecc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040ecc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x384]
call fcn.0040b3b0
mov al, byte [ebp - 0x292]
jmp 0x40bc84
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4d4]
call fcn.0040b3e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x228]
call fcn.0040ecc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x42c]
call fcn.0040b3e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.0040ecc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040ecc0
jmp 0x40bc2d
push 0
push 0x200
mov edx, dword [ebp - 0x298]
push edx
mov eax, dword [ebp - 0x29c]
push eax
call fcn.005aa350
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
push 0
push 0x200
mov ecx, dword [ebp - 0x298]
push ecx
mov edx, dword [ebp - 0x29c]
push edx
call fcn.005d97b0
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c0], edx
mov eax, dword [ebp - 0x2c4]
or eax, dword [ebp - 0x2c0]
je 0x40bbdc
mov ecx, dword [ebp - 0x2a8]
add ecx, 1
mov edx, dword [ebp - 0x2a4]
adc edx, 0
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x2a4], edx
push 1
push 0
push 0x200
mov eax, dword [ebp - 0x2a4]
push eax
mov ecx, dword [ebp - 0x2a8]
push ecx
call fcn.005aa430
push edx
push eax
lea ecx, [ebp - 0x384]
call fcn.00410880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.0040ecc0
jmp 0x40b62b
mov edx, dword [ebp - 0x28c]
cmp dword [edx + 0x64], 0
jg 0x40bc5a
mov byte [ebp - 0x293], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x384]
call fcn.0040b3b0
mov al, byte [ebp - 0x293]
jmp 0x40bc84
lea ecx, [ebp - 0x384]
call fcn.0040f040
mov byte [ebp - 0x294], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x384]
call fcn.0040b3b0
mov al, byte [ebp - 0x294]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a980c
mov esp, ebp
pop ebp
ret 8