Function at 0x1a9a0f5
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x24], edx
push edi
mov dword [ebp - 4], ebx
lea eax, [ebx + 4]
xor edx, edx
inc edx
mov edi, dword [eax]
mov dword [ebp - 8], edi
test edi, edi
je 0x1a9a2fa
and dword [ebp - 0x14], 0
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
mov ecx, dword [ebx]
shr eax, 0x10
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x1c], esi
test eax, 0x8000
je 0x1a9a1bf
movzx edi, word [ebx + 0x5c]
mov dword [ebp - 0x14], edx
mov al, byte [esi + edi*4 + 0x1bf]
test dl, al
jne 0x1a9a1bc
movzx edx, byte [esi + edi*4 + 0x1be]
mov ecx, esi
call fcn.019dc76c
test eax, eax
js 0x1a9a1bc
mov al, byte [esi + edi*4 + 0x1bf]
xor ecx, ecx
movzx eax, al
inc ecx
or eax, ecx
mov byte [esi + edi*4 + 0x1bf], al
call fcn.019f1a00
test eax, eax
je 0x1a9a191
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x50]
add eax, 0x226
jmp 0x1a9a196
mov eax, 0x7ffe0380
cmp byte [eax], 0
je 0x1a9a1bc
mov eax, dword fs:[0x30]
xor ecx, ecx
inc ecx
test byte [eax + 0x240], cl
je 0x1a9a1bc
movzx edx, byte [esi + edi*4 + 0x1be]
mov ecx, dword [esi + 0xc]
call fcn.01a92c08
mov edi, dword [ebp - 8]
xor eax, eax
inc eax
cmp ax, word [0x7ffe036a]
sbb eax, eax
and eax, 0x64
xor edx, edx
mov dword [ebp - 0x18], eax
mov esi, dword [edi + 0x10]
mov eax, esi
shr eax, 0x10
test eax, 0x8000
jne 0x1a9a203
test si, si
je 0x1a9a2ca
mov ecx, esi
lea ebx, [edi + 0x10]
or ecx, 0x80000000
mov eax, esi
lock cmpxchg dword [ebx], ecx
mov ebx, dword [ebp - 4]
cmp eax, esi
je 0x1a9a20c
inc edx
cmp edx, dword [ebp - 0x18]
jbe 0x1a9a1d3
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x1a9a2ca
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1a9a2c5
cmp dword [edi], ebx
jne 0x1a9a2c5
test si, si
je 0x1a9a2c5
mov edx, dword fs:[0x18]
movzx eax, word [ebx + 0x5c]
movzx ecx, word [edx + 0xfaa]
movzx edi, byte [eax + 0x19bbc40]
push edi
lea eax, [ecx + 1]
movzx eax, al
mov word [edx + 0xfaa], ax
mov edx, esi
movzx eax, byte [ecx + 0x1ac64c0]
mov ecx, dword [ebp - 0xc]
push eax
sar edx, 0x10
add ecx, 0x14
call fcn.01a93c3c
mov edi, eax
movzx edx, si
mov eax, dword [ebp - 0x10]
dec edx
mov esi, dword [ebp - 0xc]
mov ecx, edi
shl ecx, 0x10
or edx, ecx
mov dword [eax], edx
mov ecx, dword [esi + 0x10]
xor ecx, dword [0x1ac8774]
xor ecx, esi
xor ecx, dword [ebp - 0x1c]
mov eax, ecx
movzx edx, cx
shr eax, 0x10
imul eax, edi
add eax, esi
add edx, eax
test byte [edx + 7], 0x3f
je 0x1a9a2cc
mov eax, dword [ebx]
xor esi, esi
push esi
push esi
push esi
push edx
mov edx, dword [eax + 0xc]
push 0xe
pop ecx
mov edx, dword [edx + 0xc]
call fcn.01a36033
mov edx, esi
jmp 0x1a9a2cc
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
xor edx, edx
cmp dword [ebp - 0x14], 0
je 0x1a9a2f2
mov eax, dword [0x1ac6104]
lea ecx, [eax + 1]
cmp ecx, dword [0x1ac6100]
jae 0x1a9a2f2
lea ecx, [ecx*2 - 1]
mov esi, 0x1ac6104
lock cmpxchg dword [esi], ecx
test edx, edx
jne 0x1a9a7b8
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 8]
mov dword [ebp - 0xc], eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], 0x10
and dword [ebp - 0x14], ebx
mov ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ecx]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x1a9a34c
mov ax, word [edx + 0x10]
movzx eax, ax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x14]
jbe 0x1a9a34c
mov ecx, esi
call fcn.01a19b1a
mov ecx, dword [ebp - 8]
test al, al
jne 0x1a9a34c
mov eax, dword [ebp - 0x20]
mov ebx, ecx
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
add ecx, 4
sub dword [ebp - 0x10], 1
mov dword [ebp - 8], ecx
jne 0x1a9a318
mov dword [ebp - 0x14], edi
test ebx, ebx
je 0x1a9a427
mov eax, dword [ebp - 0x18]
movzx ecx, word [esi + 0x5c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4 + 0x3c0]
add eax, 0x48
mov dword [ebp - 8], eax
mov ecx, eax
call fcn.019fc1c0
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
test esi, esi
je 0x1a9a3e5
sub esi, 0x20
xor eax, eax
inc eax
lea edx, [esi + 0x1c]
mov ecx, dword [edx]
test al, cl
jne 0x1a9a3ca
push 0xfffffffffffffffd
pop edi
mov eax, dword [edx]
mov ecx, eax
and ecx, edi
lock cmpxchg dword [edx], ecx
jne 0x1a9a3a1
mov edi, dword [ebp - 0x14]
cmp eax, 2
mov eax, dword [ebp - 8]
jne 0x1a9a37a
mov eax, dword [esi]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
and dword [esi], 0
call fcn.019f7900
mov eax, dword [ebp - 8]
jmp 0x1a9a37a
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.019d4ae0
test eax, eax
jne 0x1a9a3e5
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
call fcn.019f7900
xor esi, esi
mov edx, esi
mov eax, edi
lock cmpxchg dword [ebx], edx
cmp eax, edi
je 0x1a9a40f
mov eax, dword [ebp - 0xc]
test esi, esi
je 0x1a9a307
mov ecx, dword [ebp - 8]
lea edx, [esi + 0x20]
call fcn.019f7900
mov eax, dword [ebp - 0xc]
jmp 0x1a9a307
test esi, esi
jne 0x1a9a429
mov ecx, dword [ebp - 4]
sub ebx, ecx
sub ebx, 8
sar ebx, 2
movzx eax, bl
mov word [ecx + 0x5e], ax
jmp 0x1a9a429
xor edi, edi
test edi, edi
je 0x1a9a45f
push 0xfffffffffffffffd
lea edx, [edi + 0x1c]
pop ebx
mov eax, dword [edx]
mov ecx, eax
and ecx, ebx
lock cmpxchg dword [edx], ecx
jne 0x1a9a435
cmp eax, 2
jne 0x1a9a53d
mov eax, dword [edi]
lea edx, [edi + 0x20]
mov ecx, dword [eax]
and dword [edi], 0
call fcn.019f7900
mov eax, dword [ebp - 0xc]
jmp 0x1a9a305
mov eax, dword [ebp - 0x18]
xor esi, esi
mov ebx, dword [ebp - 4]
mov eax, dword [eax + 0xc]
movzx ecx, word [ebx + 0x5c]
mov eax, dword [eax + ecx*4 + 0x3c0]
xor ecx, ecx
add eax, 0x48
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.019fc1c0
mov edx, eax
mov dword [ebp - 0xc], edx
test edx, edx
je 0x1a9a4d9
xor eax, eax
lea edi, [edx - 0x20]
mov ecx, dword [edi + 0x1c]
inc eax
test al, cl
je 0x1a9a50a
mov edx, ebx
mov ecx, edi
call fcn.019d4ae0
test eax, eax
je 0x1a9a4f1
push 0xfffffffffffffffd
lea edx, [edi + 0x1c]
pop ebx
mov eax, dword [edx]
mov ecx, eax
and ecx, ebx
lock cmpxchg dword [edx], ecx
jne 0x1a9a4b5
mov ebx, dword [ebp - 4]
cmp eax, 2
jne 0x1a9a4cc
mov edx, dword [ebp - 0xc]
jmp 0x1a9a527
mov edx, edi
mov ecx, ebx
call fcn.019f2c60
test al, al
je 0x1a9a533
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1a9a540
push ecx
mov ecx, dword [ebp - 0x18]
mov edx, esi
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.01a17280
jmp 0x1a9a540
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x1a9a4fe
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
inc ecx
mov dword [edi + 0x20], esi
lea esi, [edi + 0x20]
mov dword [ebp - 8], ecx
jmp 0x1a9a533
push 0xfffffffffffffffd
lea ebx, [edi + 0x1c]
pop edx
mov eax, dword [ebx]
mov ecx, eax
and ecx, edx
lock cmpxchg dword [ebx], ecx
jne 0x1a9a512
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp eax, 2
jne 0x1a9a533
mov eax, dword [edi]
mov ecx, dword [eax]
and dword [edi], 0
call fcn.019f7900
mov eax, dword [ebp - 0x14]
xor edi, edi
jmp 0x1a9a483
mov ebx, dword [ebp - 4]
test edi, edi
je 0x1a9a7b6
mov eax, dword [ebp - 0x24]
lea esi, [edi + 0x1c]
mov byte [edi + 0x1b], al
mov edx, dword [esi]
lea eax, [ebx + 4]
test edx, edx
je 0x1a9a10b
lea eax, [ebx + 4]
test dl, 6
jne 0x1a9a10b
mov ecx, edx
mov eax, edx
or ecx, 6
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x1a9a551
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1a9a66e
push 0xfffffffffffffff9
pop edx
mov eax, dword [esi]
mov ecx, eax
and ecx, edx
lock cmpxchg dword [esi], ecx
jne 0x1a9a58b
cmp eax, 6
jne 0x1a9a5a6
mov eax, dword [edi]
mov ecx, dword [eax]
and dword [edi], 0
jmp 0x1a9a661
mov ecx, dword [ebp - 0x20]
mov edx, edi
call fcn.019f2c60
test al, al
lea eax, [ebx + 4]
je 0x1a9a10b
mov edx, dword [esi]
lea eax, [ebx + 4]
test edx, edx
je 0x1a9a10b
lea eax, [ebx + 4]
test dl, 2
jne 0x1a9a10b
mov ecx, edx
mov eax, edx
or ecx, 2
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x1a9a5bb
mov edx, dword [edi]
xor eax, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
movzx ecx, word [edx + 0x5e]
add ecx, eax
and ecx, 0xf
lea eax, [ecx + 2]
lea eax, [edx + eax*4]
mov esi, dword [eax]
mov dword [ebp - 0x20], eax
test esi, esi
jne 0x1a9a61d
mov esi, dword [ebp - 0x20]
mov ecx, edi
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
lea eax, [ebx + 4]
je 0x1a9a10b
jmp 0x1a9a640
mov eax, dword [esi + 0x1c]
test al, 1
jne 0x1a9a640
mov eax, dword [ebp - 0x18]
mov edx, edi
add eax, 8
lea ecx, [eax + ecx*4]
mov eax, esi
lock cmpxchg dword [ecx], edx
cmp eax, esi
je 0x1a9a786
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x10
jb 0x1a9a5ed
mov eax, dword [edi]
movzx ecx, word [eax + 0x5c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ecx*4 + 0x3c0]
add ecx, 0x48
lea edx, [edi + 0x20]
call fcn.019f7900
jmp 0x1a9a108
call fcn.019f1a00
test eax, eax
je 0x1a9a687
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x50]
add eax, 0x226
jmp 0x1a9a68c
mov eax, 0x7ffe0380
xor edx, edx
inc edx
cmp byte [eax], 0
je 0x1a9a6b5
mov eax, dword fs:[0x30]
test byte [eax + 0x240], dl
je 0x1a9a6b5
mov eax, dword [ebx]
mov edx, dword [edi + 4]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0xc]
call fcn.01a930d1
xor edx, edx
inc edx
lea eax, [ebx + 4]
xchg dword [eax], edi
test edi, edi
je 0x1a9a10e
push 0xfffffffffffffff9
lea esi, [edi + 0x1c]
pop edx
mov eax, dword [esi]
mov ecx, eax
and ecx, edx
lock cmpxchg dword [esi], ecx
jne 0x1a9a6ca
cmp eax, 6
je 0x1a9a59a
mov edx, edi
mov ecx, ebx
call fcn.019f2c60
push 1
test al, al
lea eax, [ebx + 4]
pop edx
je 0x1a9a10e
mov edx, dword [esi]
lea eax, [ebx + 4]
test edx, edx
je 0x1a9a10b
lea eax, [ebx + 4]
test dl, 2
jne 0x1a9a10b
mov ecx, edx
mov eax, edx
or ecx, 2
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x1a9a6f4
mov edx, dword [edi]
xor eax, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
movzx ecx, word [edx + 0x5e]
add ecx, eax
and ecx, 0xf
lea eax, [ecx + 2]
lea eax, [edx + eax*4]
mov esi, dword [eax]
mov dword [ebp - 0x20], eax
test esi, esi
jne 0x1a9a756
mov esi, dword [ebp - 0x20]
mov ecx, edi
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
lea eax, [ebx + 4]
je 0x1a9a10b
jmp 0x1a9a775
mov eax, dword [esi + 0x1c]
test al, 1
jne 0x1a9a775
mov eax, dword [ebp - 0x18]
mov edx, edi
add eax, 8
lea ecx, [eax + ecx*4]
mov eax, esi
lock cmpxchg dword [ecx], edx
cmp eax, esi
je 0x1a9a786
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x10
jb 0x1a9a726
jmp 0x1a9a64c
push 0xfffffffffffffffd
lea edx, [esi + 0x1c]
pop edi
mov eax, dword [edx]
mov ecx, eax
and ecx, edi
lock cmpxchg dword [edx], ecx
jne 0x1a9a78e
push 1
cmp eax, 2
lea eax, [ebx + 4]
pop edx
jne 0x1a9a10e
mov eax, dword [esi]
lea edx, [esi + 0x20]
mov ecx, dword [eax]
and dword [esi], 0
jmp 0x1a9a664
xor edx, edx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret