Function at 0x4640a0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x589a5a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6a3b20]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [0x5a7a7c]
mov ebx, eax
mov esi, ecx
mov dword [esp + 0x20], ebx
mov ecx, eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x24], ecx
mov edi, eax
mov dword [esp + 0x1c], edi
mov edx, dword [esi + 0xe8]
mov eax, dword [edx + 4]
mov edx, dword [ecx + 8]
and edx, 0x7fffffff
mov byte [esp + 0x80], 2
cmp eax, edx
jle 0x46413b
push ecx
mov edx, esp
push eax
mov dword [edx], 0
mov eax, dword [ecx + 4]
push eax
lea ecx, [esp + 0x30]
call fcn.00451d30
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
cmp eax, 1
je 0x464146
test eax, eax
jne 0x46414d
or dword [ecx + 8], 0x80000000
mov ecx, dword [esi + 0xe8]
mov edx, dword [edi + 8]
mov eax, dword [ecx + 4]
and edx, 0x7fffffff
cmp eax, edx
jle 0x46417e
push ecx
mov ecx, esp
mov dword [ecx], 0
push eax
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x28]
call fcn.004524b0
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
cmp eax, 1
je 0x464189
test eax, eax
jne 0x464190
or dword [edi + 8], 0x80000000
mov ecx, dword [esi + 0xf0]
mov edx, dword [ebx + 8]
mov eax, dword [ecx + 4]
and edx, 0x7fffffff
cmp eax, edx
jle 0x4641c1
push ecx
mov ecx, esp
mov dword [ecx], 0
push eax
mov eax, dword [ebx + 4]
push eax
lea ecx, [esp + 0x2c]
call fcn.00451d30
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
cmp eax, 1
je 0x4641cc
test eax, eax
jne 0x4641d3
or dword [ebx + 8], 0x80000000
cmp byte [esi + 0xae], 0
je 0x464293
mov eax, dword [esi + 0xe8]
xor edi, edi
cmp dword [eax + 4], edi
jle 0x464242
lea ecx, [ecx]
mov ecx, dword [eax + 0xc]
lea edx, [ecx + edi*8]
fld qword [edx + eax]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00425870
fstp qword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
call fcn.0045d780
cmp byte [esi + 0x74], 0
je 0x464236
mov eax, dword [esi + 0xec]
mov ecx, dword [eax + 0xc]
lea edx, [ecx + edi*4]
add edx, eax
push edx
lea ecx, [esp + 0x20]
call fcn.0045d8d0
mov eax, dword [esi + 0xe8]
inc edi
cmp edi, dword [eax + 4]
jl 0x4641f0
cmp byte [esi + 0xaf], 0
je 0x464293
mov eax, dword [esi + 0xf0]
mov ebx, dword [eax + 4]
xor edi, edi
test ebx, ebx
jle 0x464293
lea ebx, [ebx]
mov eax, dword [esi + 0xf0]
mov ecx, dword [eax + 0xc]
lea edx, [ecx + edi*8]
fld qword [edx + eax]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00425870
fstp qword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
call fcn.0045d780
inc edi
cmp edi, ebx
jl 0x464260
mov ecx, dword [esi + 0xdc]
mov edx, dword [esi + 0x20]
lea eax, [esp + 0x2c]
mov dword [ecx + 8], edx
push eax
mov ecx, esi
call fcn.00431a30
mov ecx, dword [esi + 0xdc]
push eax
add ecx, 0xc
call dword [0x5a8034]
mov edi, dword [0x5a7e5c]
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00431af0
mov ecx, dword [esi + 0xdc]
push eax
add ecx, 0x54
mov byte [esp + 0x84], 3
call dword [0x5a8030]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 2
call dword [0x5a7ea0]
test byte [esi + 0x34], 4
lea eax, [esi + 0x64]
jne 0x464309
lea eax, [esi + 0x54]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [0x5a7e88]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0xdc]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov ax, word [eax + 0xc]
add ecx, 0x5c
mov dword [esp + 0x38], edx
mov word [esp + 0x3c], ax
call ebx
mov ecx, dword [esi + 0xdc]
lea edx, [esi + 0x40]
push edx
add ecx, 0x6c
call dword [0x5a7cc4]
mov cl, byte [esi + 0xad]
mov eax, dword [esi + 0xdc]
lea edx, [esp + 0x2c]
mov byte [eax + 0x84], cl
push edx
mov ecx, esi
call fcn.00431a60
mov ecx, dword [esi + 0xdc]
push eax
add ecx, 0x98
call dword [0x5a8034]
lea ecx, [esp + 0x2c]
call edi
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00431a90
mov ecx, dword [esi + 0xdc]
push eax
add ecx, 0x9c
call dword [0x5a8034]
lea ecx, [esp + 0x2c]
call edi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00431ac0
mov ecx, dword [esi + 0xdc]
push eax
add ecx, 0xa0
mov byte [esp + 0x84], 4
call dword [0x5a8030]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 2
call dword [0x5a7ea0]
test byte [esi + 0x34], 2
lea eax, [esi + 0x98]
jne 0x4643f6
lea eax, [esi + 0x88]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0xdc]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov ax, word [eax + 0xc]
add ecx, 0xa8
mov dword [esp + 0x38], edx
mov word [esp + 0x3c], ax
call ebx
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx + 0x34]
mov eax, dword [esi + 0xdc]
mov dword [eax + 0xb8], edx
mov edx, dword [ecx + 0x38]
mov dword [eax + 0xbc], edx
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0xc0], edx
mov ecx, dword [ecx + 0x40]
mov dword [eax + 0xc4], ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x2c]
mov eax, dword [esi + 0xdc]
mov dword [eax + 0xc8], edx
mov edx, dword [ecx + 0x30]
mov dword [eax + 0xcc], edx
mov edx, dword [ecx + 0x34]
mov dword [eax + 0xd0], edx
mov ecx, dword [ecx + 0x38]
mov dword [eax + 0xd4], ecx
cmp dword [esi + 0xd4], 1
mov eax, dword [esi + 0xdc]
sete dl
mov byte [eax + 0xe0], dl
mov ecx, dword [esi + 0xdc]
mov dl, byte [esi + 0xd0]
mov eax, dword [esp + 0x24]
mov byte [ecx + 0xe1], dl
mov edi, dword [esi + 0xdc]
cmp eax, dword [edi + 0xe8]
je 0x464501
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.0044e4c0
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0xe8]
mov dword [edi + 0xe8], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4644f3
cmp ecx, 0xffffffff
je 0x464501
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
setne cl
test cl, cl
jne 0x464501
push 8
push 8
push eax
call dword [0x5a7a74]
add esp, 0xc
mov edi, dword [esi + 0xdc]
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [edi + 0xec]
je 0x464584
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
call fcn.0044e5e0
mov eax, dword [esp + 0x2c]
mov ebx, dword [edi + 0xec]
mov dword [edi + 0xec], eax
mov eax, dword [ebx]
test eax, eax
je 0x46454c
cmp eax, 0xffffffff
je 0x464580
mov eax, ebx
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x464580
mov edi, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
lea eax, [edi + edx*4]
add eax, ebx
add edi, ebx
mov dword [esp + 0x2c], eax
cmp edi, eax
je 0x464572
mov ecx, edi
add edi, 4
call dword [0x5a7d90]
cmp edi, dword [esp + 0x2c]
jne 0x464561
push 4
push 4
push ebx
call dword [0x5a7a74]
add esp, 0xc
mov ebx, dword [esp + 0x1c]
mov edi, dword [esi + 0xdc]
mov eax, dword [esp + 0x20]
cmp eax, dword [edi + 0xe4]
je 0x4645dd
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
call fcn.0044e4c0
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 0xe4]
mov dword [edi + 0xe4], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4645cf
cmp ecx, 0xffffffff
je 0x4645dd
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
setne cl
test cl, cl
jne 0x4645dd
push 8
push 8
push eax
call dword [0x5a7a74]
add esp, 0xc
mov esi, dword [esi + 0xdc]
mov edx, dword [esi]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + 4]
push eax
mov ecx, esi
call edx
mov eax, dword [ebx]
mov byte [esp + 0x80], 1
test eax, eax
je 0x464614
cmp eax, 0xffffffff
je 0x464642
mov eax, ebx
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x464642
mov esi, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
lea edi, [esi + edx*4]
add edi, ebx
add esi, ebx
cmp esi, edi
je 0x464634
mov ecx, esi
add esi, 4
call dword [0x5a7d90]
cmp esi, edi
jne 0x464625
push 4
push 4
push ebx
call dword [0x5a7a74]
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
test eax, eax
je 0x464661
cmp eax, 0xffffffff
je 0x46466f
mov eax, ecx
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x46466f
push 8
push 8
push ecx
call dword [0x5a7a74]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x46468e
cmp eax, 0xffffffff
je 0x46469c
mov eax, ecx
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x46469c
push 8
push 8
push ecx
call dword [0x5a7a74]
add esp, 0xc
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0058077e
mov esp, ebp
pop ebp
ret 4