Function at 0x10122570
Capabilities:
Get number of processors

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0xc4
push 0xffffffffffffffff
push 0x101c8861
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1021e964]
xor eax, ebp
mov dword [ebp + 0xc0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp + 0xcc]
xor eax, eax
mov esi, dword [ebp + 0xd0]
mov dword [ebp - 0x40], eax
push 1
push dword [ebx + 0x30]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x1c], eax
call fcn.1018d246
add esp, 8
mov dword [ebx + 0x30], 0
cmp byte [ebp + 0xd4], 0
je 0x10122b65
xorps xmm0, xmm0
mov dword [ebp + 0xbc], 0
movq qword [ebp + 0xb4], xmm0
mov dword [ebp + 0xb4], 0
mov dword [ebp + 0xb8], 0
mov dword [ebp + 0xbc], 0
mov ecx, dword [ebx + 0x2c]
lea eax, [ebp + 0xb4]
push eax
mov dword [ebp - 4], 0
call fcn.10122290
mov ecx, dword [ebp + 0xb8]
mov eax, 0x92492493
mov esi, dword [ebp + 0xb4]
sub ecx, esi
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov ebx, edx
mov dword [ebp - 0x18], ecx
shr ebx, 0x1f
add ebx, edx
test ebx, ebx
jle 0x1012272a
mov edx, edi
xor eax, eax
mov dword [ebp - 0x10], eax
lea edi, [edx + 4]
nop word [eax + eax]
push dword [edx + 0x14]
lea ecx, [esi + eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.10122320
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x10122689
mov edx, dword [edi]
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
jb 0x10122695
mov ecx, dword [eax + 4]
push dword [edi + 0x10]
push edx
push dword [eax + 0x14]
push ecx
call fcn.1004d260
mov edx, dword [ebp - 0x24]
add esp, 0x10
mov dword [ebp - 0x3c], 0x10010c38
mov esi, eax
cmp edx, 0x10
jb 0x101226ea
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
mov byte [ebp - 4], 1
cmp edx, 0x1000
jb 0x101226dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10122ba7
push edx
push ecx
call fcn.1018d246
add esp, 8
mov byte [ebp - 4], 0
test esi, esi
mov esi, dword [ebp + 0xb4]
je 0x10122727
mov ecx, dword [ebp + 0xb8]
mov eax, 0x92492493
inc dword [ebp - 0x18]
sub ecx, esi
add dword [ebp - 0x10], 0x1c
dec ebx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x18], eax
jge 0x10122727
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x10122670
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xb8]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x18], eax
test eax, eax
js 0x10122815
mov edx, dword [ebp - 0x14]
lea eax, [ecx*8]
sub eax, ecx
lea edi, [edx + 4]
lea eax, [eax*4 - 0x1c]
mov dword [ebp - 0x10], eax
nop dword [eax]
push dword [edx + 0x14]
lea ecx, [esi + eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.10122320
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x10122789
mov edx, dword [edi]
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
jb 0x10122795
mov ecx, dword [eax + 4]
push dword [edi + 0x10]
push edx
push dword [eax + 0x14]
push ecx
call fcn.1004d260
mov edx, dword [ebp - 0x24]
add esp, 0x10
mov dword [ebp - 0x3c], 0x10010c38
mov esi, eax
cmp edx, 0x10
jb 0x101227ea
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
mov byte [ebp - 4], 2
cmp edx, 0x1000
jb 0x101227dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10122ba7
push edx
push ecx
call fcn.1018d246
add esp, 8
mov byte [ebp - 4], 0
test esi, esi
je 0x1012280c
mov eax, dword [ebp - 0x10]
dec ebx
sub eax, 0x1c
sub dword [ebp - 0x18], 1
mov dword [ebp - 0x10], eax
js 0x1012280c
mov esi, dword [ebp + 0xb4]
mov edx, dword [ebp - 0x14]
jmp 0x10122770
mov esi, dword [ebp + 0xb4]
mov edi, dword [ebp - 0x14]
test ebx, ebx
jg 0x10122820
xor ebx, ebx
jmp 0x10122b0f
mov eax, ebx
shl eax, 5
push eax
mov dword [ebp - 0x14], eax
call fcn.1018d254
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp + 0xb0], 0
mov dword [ecx + 0x30], eax
xor eax, eax
mov dword [ebp - 0x10], eax
nop dword [eax]
push 0xb0
lea eax, [ebp]
push 0
push eax
call fcn.101a4190
add esp, 0xc
mov dword [ebp], 0x10010fcc
mov dword [ebp + 0x10], 0x10010fd4
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x90], 0
mov dword [ebp + 0x94], 0
mov dword [ebp + 0x98], 0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 0x68]
or eax, 1
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x18]
push 0
push eax
mov dword [ebp + 0x68], 0x10010fb0
mov dword [ebp + 0x64], 0x50
movlpd qword [ebp + 8], xmm0
call fcn.1004be60
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp + eax + 0x10], 0x10010e28
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx + 0xc], eax
mov eax, dword [ebp]
mov eax, dword [eax + 4]
mov dword [ebp + eax], 0x10010fc0
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 4], eax
mov eax, dword [ebp]
push 3
mov dword [ebp - 4], 9
mov eax, dword [eax + 4]
mov dword [ebp + eax], 0x10010fc8
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 4], eax
lea ecx, [ebp + 0x18]
call fcn.100408d0
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
mov byte [ebp - 4], 0xa
jb 0x1012293c
mov eax, dword [edi + 4]
push dword [edi + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.100a5c10
push 0
mov esi, eax
lea eax, [ebp - 0x70]
push 2
push eax
call fcn.1018fc42
mov ecx, dword [esi]
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
add ecx, esi
push ecx
call eax
mov eax, dword [esi]
add esp, 0x24
mov ecx, esi
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
mov eax, dword [ebp - 0x10]
inc eax
push eax
mov dword [ebp - 0x10], eax
call fcn.100451e0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x18]
call fcn.1004c9c0
or dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x38]
call fcn.10040730
mov dword [ebp - 0x3c], 0x10010c38
mov esi, dword [ebp - 0x18]
lea eax, [ebp + 0xb0]
push eax
push 0x20
push esi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x2c]
call fcn.10121f20
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], 0x10010c38
cmp edx, 0x10
jb 0x10122a0c
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
mov byte [ebp - 4], 0xd
cmp edx, 0x1000
jb 0x10122a02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10122ba7
push edx
push ecx
call fcn.1018d246
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp edx, 0x10
jb 0x10122a56
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
mov byte [ebp - 4], 0xe
cmp edx, 0x1000
jb 0x10122a4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10122ba7
push edx
push ecx
call fcn.1018d246
add esp, 8
mov eax, dword [ebp]
add esi, 0x20
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebp + eax], 0x10010fc8
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 4], eax
lea ecx, [ebp + 0x18]
call fcn.10042e40
mov eax, dword [ebp]
mov eax, dword [eax + 4]
mov dword [ebp + eax], 0x10010fc0
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp + eax + 0x10], 0x10010e28
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx + 0xc], eax
mov eax, dword [ebp]
mov eax, dword [eax + 4]
mov dword [ebp + eax], 0x10010fb0
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 4], eax
lea eax, [ebp + 0x68]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp + 0x68], 0x10010bd4
call fcn.1018f4e5
add esp, 4
cmp dword [ebp - 0x10], ebx
jl 0x10122850
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xb0]
add ecx, 0xffffffe0
mov esi, dword [ebp + 0xb4]
add eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + 0x30]
mov dword [ebp - 4], 0x10
test esi, esi
je 0x10122b61
mov edi, dword [ebp + 0xb8]
cmp esi, edi
je 0x10122b39
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, edi
jne 0x10122b24
mov esi, dword [ebp + 0xb4]
mov ecx, dword [ebp + 0xbc]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push esi
lea ecx, [ebp + 0xb4]
call fcn.1004ad00
mov eax, ebx
jmp 0x10122b82
push 0x20
call fcn.1018d254
mov ecx, dword [ebx + 0x2c]
add esp, 4
mov dword [ebx + 0x30], eax
push esi
push 0x20
push eax
push edi
call fcn.10121f20
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
call fcn.1018d760
lea esp, [ebp + 0xc4]
pop ebp
ret 0xc
call fcn.100be3b4
int3