Function at 0x5009b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f8ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0xf8]
mov eax, dword [esi + 0xfc]
test eax, eax
mov dword [esp + 0x14], edx
mov ecx, edx
ja 0x5009f8
test ecx, ecx
jbe 0x500a5a
mov edi, dword [ebp + 0xc]
test edi, edi
jbe 0x500a37
xor ebx, ebx
cmp ebx, eax
ja 0x500a19
jb 0x500a0b
cmp edi, ecx
jae 0x500a19
sub ecx, edi
mov edx, edi
sbb eax, ebx
mov dword [esi + 0xf8], ecx
jmp 0x500a21
xor eax, eax
mov dword [esi + 0xf8], eax
mov ecx, dword [ebp + 8]
push edx
mov dword [esi + 0xfc], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
push ecx
mov ecx, esi
call edx
jmp 0x500a60
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0x2efb
mov ecx, esi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
lea ecx, [ecx]
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp edi, 0x64
mov byte [esp + 0x38], 1
jb 0x500aa3
mov edi, 0x64
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
add eax, ecx
push eax
lea eax, [esp + 0x20]
call fcn.00415c70
push 0x626e46
xor edi, edi
lea eax, [esp + 0x1c]
call fcn.00415c70
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
add eax, ebx
cmp ebx, eax
sbb ecx, ecx
neg ecx
cmp ebx, eax
mov edi, ebx
jae 0x500b0b
jmp 0x500ae0
cmp byte [edi], 0xa
je 0x500aec
add edi, 1
cmp edi, eax
jb 0x500ae0
cmp edi, ebx
jbe 0x500b0b
cmp byte [edi - 1], 0xd
jne 0x500af9
add edi, 0xffffffff
cmp edi, ebx
jbe 0x500b0b
sub edi, ebx
push ebx
lea eax, [esp + 0x1c]
call fcn.00415c70
jmp 0x500b13
test ecx, ecx
je 0x500c63
mov edi, dword [esp + 0x18]
push 0x10
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.005d5236
mov ecx, dword [edi - 0xc]
add esp, 0xc
add ecx, 2
test eax, eax
jle 0x500c10
mov edx, dword [esp + 0x14]
add edx, ecx
cmp dword [ebp + 0xc], edx
mov dword [esp + 0x20], edx
jbe 0x500c0a
mov edi, dword [esp + 0x14]
lea edx, [ecx + eax]
mov dword [esp + 0x24], edx
add edx, edi
mov edi, dword [ebp + 0xc]
cmp edi, edx
jbe 0x500b66
xor ecx, ecx
mov dword [esi + 0xfc], ecx
jmp 0x500b78
sub ecx, edi
add ecx, eax
add ecx, dword [esp + 0x14]
mov dword [esi + 0xfc], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
sub eax, ecx
mov dword [esi + 0xf8], ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x24]
sub eax, dword [esi + 0xf8]
add ebx, 0xfffffff0
add dword [esp + 0x14], eax
mov byte [esp + 0x38], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x500bc3
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x500beb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [esp + 0x14]
ja 0x500a60
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x500c1c
mov dword [esi + 0x100], 1
cmp dword [esp + 0x14], 0
jne 0x500c35
test eax, eax
je 0x500c35
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 0x2efb
mov ecx, esi
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x500c56
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x38], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x500ca1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 0x2efb
mov ecx, esi
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x500c92
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x500cba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8