Function at 0x10008640
Capabilities:
Get number of processors

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10099a5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x50], eax
lea eax, [esi + 0x38]
push eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x68], eax
call edi
push dword [ebp - 0x50]
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x30]
call fcn.10009160
mov ecx, dword [ebp - 0x5c]
cmp byte [ecx + 0xd], 0
jne 0x10008898
mov eax, dword [ebp - 0x50]
mov al, byte [eax]
cmp al, byte [ecx + 0x10]
jb 0x10008898
cmp ecx, dword [esi + 0x30]
je 0x10008898
lea eax, [ebp - 0x16]
mov byte [ebp - 0x15], 0
push eax
lea eax, [ebp - 0x15]
mov byte [ebp - 0x16], 0
push eax
mov eax, dword [ecx + 0x2c]
call eax
add esp, 8
mov dword [ebp - 0x24], 0
mov esi, eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 0
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x10008714
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x50]
mov al, byte [ecx]
mov byte [ebp - 0x20], al
mov eax, dword [ecx + 1]
mov dword [ebp - 0x1f], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
add eax, 0x58
push eax
mov dword [ebp - 0x4c], eax
call edi
cmp byte [ebp - 0x15], 0
jne 0x1000874f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
jmp 0x100087b9
mov edi, dword [ebp - 0x54]
mov edx, dword [edi + 0x50]
mov eax, dword [edx]
cmp eax, edx
je 0x100087b9
nop dword [eax + eax]
cmp dword [eax + 0x18], esi
je 0x100087a5
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1000878b
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x10008787
cmp eax, dword [ecx + 8]
jne 0x10008787
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x10008777
mov eax, ecx
jmp 0x1000879f
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x1000879f
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x10008795
cmp eax, edx
jne 0x10008760
jmp 0x100087b9
push eax
lea ecx, [edi + 0x50]
call fcn.10008cb0
push 0x24
push eax
call fcn.1007bcac
add esp, 8
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x74], esi
add edi, 0x50
movzx eax, byte [ecx]
mov esi, dword [ecx + 1]
mov ecx, edi
mov byte [ebp - 0x78], al
movzx eax, byte [ebp - 0x16]
mov byte [ebp - 0x70], al
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x8c]
movups xmm0, xmmword [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x8c], esi
push eax
movups xmmword [ebp - 0x88], xmm0
call fcn.100090d0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x74], xmm0
cmp byte [eax + 0xd], 0
jne 0x10008818
cmp esi, dword [eax + 0x10]
jae 0x1000886e
cmp dword [edi + 4], 0x71c71c7
je 0x10008950
mov esi, dword [edi]
mov dword [ebp - 0x60], edi
mov byte [ebp - 4], 2
push 0x24
mov dword [ebp - 0x5c], 0
call fcn.1007bcba
movups xmm0, xmmword [ebp - 0x8c]
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x7c]
mov ecx, edi
movups xmmword [edx + 0x10], xmm0
push edx
push dword [ebp - 0x70]
mov dword [edx + 0x20], eax
push dword [ebp - 0x74]
mov dword [edx], esi
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov word [edx + 0xc], 0
call fcn.100091f0
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1000889f
mov edx, dword [ecx]
lea eax, [ebp - 0x48]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x1000889f
mov dword [ebp - 0x58], 0x490
push 0x100014
call fcn.1007bcba
mov edi, dword [ebp - 0x58]
mov esi, eax
add esp, 4
mov eax, 0x18
mov word [esi + 2], ax
mov dword [esi + 8], 0
mov dword [esi + 4], edi
call fcn.1007f15d
cdq
mov ecx, 0x64
idiv ecx
mov ecx, dword [ebp - 0x50]
inc edx
imul eax, edx, 0x34
mov word [esi], ax
mov eax, dword [ecx + 0xa]
add eax, 0xe
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0xa]
add eax, 0xe
je 0x10008901
push eax
push ecx
lea eax, [esi + 0x14]
push eax
call fcn.1007e990
add esp, 0xc
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], esi
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x10008955
mov edx, dword [ecx]
lea eax, [ebp - 0x4c]
push eax
call dword [edx + 8]
push 0x100014
push esi
call fcn.1007bcac
add esp, 8
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10007ca0
call fcn.1008e60c
int3