Function at 0x40b5a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x457280
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461b6c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
xor edi, edi
mov eax, 0x64
xor bl, bl
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x5c], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
xor esi, esi
cmp eax, edi
mov byte [esp + 0x5c], 3
mov dword [esp + 0x14], esi
jle 0x40b895
xor edx, edx
mov dword [esp + 0x18], edx
jmp 0x40b620
cmp edx, edi
fld qword [0x459310]
jl 0x40b848
cmp esi, eax
jge 0x40b848
mov ecx, dword [ecx + 0xc]
fld qword [ecx + edx + 0x10]
add ecx, edx
fld qword [ecx + 8]
fabs
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x40b671
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x40b675
test bl, bl
jne 0x40b662
mov bl, 1
mov dword [esp + 0x2c], edi
push ecx
lea ecx, [esp + 0x30]
call fcn.00401d30
jmp 0x40b778
fstp st(0)
fstp st(0)
test bl, bl
je 0x40b778
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x2c], edi
call fcn.0040db40
add esp, 0x10
cmp eax, edi
jne 0x40b90e
mov edx, dword [ebp]
cmp edx, edi
jle 0x40b73b
lea eax, [edx - 1]
cmp eax, edi
jl 0x40b84a
cmp eax, edx
jge 0x40b84a
cmp eax, edi
mov ecx, dword [ebp + 0xc]
lea esi, [eax + eax*2]
lea esi, [ecx + esi*8]
jl 0x40b84a
cmp eax, edx
jge 0x40b84a
fld qword [esi + 0x10]
lea edx, [eax + eax*2]
fld qword [ecx + edx*8 + 8]
lea ecx, [ecx + edx*8]
fabs
fld qword [0x459310]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40b737
fxch st(1)
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x40b73b
fld qword [0x459468]
mov dword [esp + 0x3c], 0x270f
fst qword [esp + 0x44]
fstp qword [esp + 0x4c]
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
mov byte [esp + 0x60], 4
call fcn.00401d30
mov byte [esp + 0x5c], 3
jmp 0x40b73b
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, edi
jle 0x40b772
test edi, edi
jl 0x40b84a
cmp esi, eax
jge 0x40b84a
mov ecx, dword [esp + 0x28]
lea eax, [edi + ecx]
push eax
mov ecx, ebp
call fcn.00401d30
mov eax, dword [esp + 0x1c]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x40b745
xor edi, edi
mov esi, dword [esp + 0x14]
xor bl, bl
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
inc esi
add edx, 0x18
cmp esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
jl 0x40b620
test bl, bl
je 0x40b895
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x2c], edi
call fcn.0040db40
add esp, 0x10
cmp eax, edi
jne 0x40b90e
mov edx, dword [ebp]
cmp edx, edi
jle 0x40b85f
lea eax, [edx - 1]
cmp eax, edi
jl 0x40b84a
cmp eax, edx
jge 0x40b84a
cmp eax, edi
mov ecx, dword [ebp + 0xc]
lea esi, [eax + eax*2]
lea esi, [ecx + esi*8]
jl 0x40b84a
cmp eax, edx
jge 0x40b84a
fld qword [esi + 0x10]
lea eax, [eax + eax*2]
fld qword [ecx + eax*8 + 8]
lea ecx, [ecx + eax*8]
fabs
fld qword [0x459310]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40b85b
fxch st(1)
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x40b85f
fld qword [0x459468]
mov dword [esp + 0x3c], 0x270f
fst qword [esp + 0x44]
fstp qword [esp + 0x4c]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
mov byte [esp + 0x60], 5
call fcn.00401d30
mov byte [esp + 0x5c], 3
jmp 0x40b85f
fstp st(0)
push str.Invalid_Array_Index
push 0x40
push str.d:devwncdevwncobjinternalincwctl_sh3_array.hpp
call fcn.00401230
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, edi
jle 0x40b895
lea esp, [esp]
test edi, edi
jl 0x40b84a
cmp esi, eax
jge 0x40b84a
mov edx, dword [esp + 0x28]
lea eax, [edi + edx]
push eax
mov ecx, ebp
call fcn.00401d30
mov eax, dword [esp + 0x1c]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x40b870
xor edi, edi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x5c], 1
cmp eax, edi
je 0x40b8bf
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x5c], 0xffffffff
cmp eax, edi
je 0x40b8f8
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push edx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x5c], 1
cmp eax, edi
je 0x40b93c
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x5c], 0xffffffff
cmp eax, edi
je 0x40b975
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push edx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret