Function at 0x10107c7
Capabilities:
Get number of processors

Disassembly:
movzx eax, word [esi + 0x4c]
and dword [ebp - 0x1a8], 0
mov dword [ebp - 0x19c], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x194]
cmp eax, dword [ebp - 0x1bc]
jae 0x100248c
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 0x1a8], 0x64
jae 0x100247f
movzx eax, word [esi + 8]
cmp word [ebp - 0x19c], ax
jge 0x100247f
mov eax, dword [ebp - 0x1b4]
movzx edx, word [eax]
mov eax, dword [ebp - 0x1b8]
movzx eax, word [eax]
cmp ax, 0x20
jb 0x1002580
cmp ax, 0x7f
je 0x1002580
mov word [edi], dx
inc edi
inc edi
inc dword [ebp - 0x19c]
inc dword [ebp - 0x1a8]
add dword [ebp - 0x1a4], 2
mov eax, dword [ebp - 0x1bc]
add dword [ebp - 0x1b4], 2
add dword [ebp - 0x1b8], 2
add dword [ebx], 2
cmp dword [ebx], eax
jb 0x1002410
cmp dword [ebp - 0x1a8], 0
jne 0x10025cb
mov eax, dword [ebp - 0x1bc]
cmp dword [ebx], eax
je 0x1002521
mov eax, dword [ebp - 0x1b4]
movzx eax, word [eax]
sub eax, 8
je 0x101064c
dec eax
je 0x10105b1
dec eax
jne 0x10026aa
add dword [ebp - 0x1a4], 2
xor eax, eax
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
inc ax
mov word [ebp - 0x196], ax
push dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
shr eax, 1
and eax, 1
push eax
push dword [ebp - 0x198]
push esi
call fcn.0100212c
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jl 0x1002719
add dword [ebx], 2
add dword [ebp - 0x1b4], 2
add dword [ebp - 0x1b8], 2
mov eax, dword [ebp - 0x1bc]
cmp dword [ebx], eax
jb 0x10023e5
mov eax, dword [ebp - 0x1c8]
test eax, eax
jne 0x1010863
push esi
call fcn.01001bcf
and dword [ebp - 0x1a0], 0
cmp dword [ebp - 0x1c4], 0
jne 0x1010870
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010015a8
leave
ret 0x24
cmp dword [ebp - 0x1d8], 0
jne 0x100244c
movzx ecx, ax
sub ecx, 7
je 0x1010542
dec ecx
je 0x100247f
dec ecx
je 0x10026e9
dec ecx
je 0x100247f
sub ecx, 3
je 0x100247f
jmp 0x1010510
movsx eax, word [esi + 8]
movsx ecx, word [esi + 0x4c]
sub eax, ecx
cmp dword [ebp - 0x1a8], eax
ja 0x1010599
mov edi, dword [ebp - 0x1a8]
push esi
push edi
lea eax, [ebp - 0x194]
push eax
call fcn.01001f19
movzx eax, word [esi + 0x4c]
mov word [ebp - 0x1d4], ax
lea eax, [edi + eax - 1]
mov word [ebp - 0x1d0], ax
movzx eax, word [esi + 0x4e]
mov word [ebp - 0x1d2], ax
mov word [ebp - 0x1ce], ax
lea eax, [ebp - 0x1d4]
push eax
push esi
call fcn.01002285
mov ax, word [esi + 0x4c]
push dword [ebp + 0x28]
add dword [ebp - 0x1ac], edi
add ax, di
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
mov word [ebp - 0x196], ax
mov eax, dword [ebp + 0x24]
and eax, 2
push eax
push dword [ebp - 0x198]
push esi
call fcn.0100212c
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x1bc]
jne 0x1002513
push esi
call fcn.01001bcf
mov eax, dword [ebp - 0x1c8]
test eax, eax
je 0x1002535
jmp 0x10105a4
sub eax, 3
jne 0x10024f5
add dword [ebp - 0x1a4], 2
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
jmp 0x10024d0
mov ecx, dword [ebp - 0x19c]
and ecx, 7
push 8
pop eax
sub eax, ecx
movzx ecx, word [esi + 8]
add dword [ebp - 0x19c], eax
cmp word [ebp - 0x19c], cx
jge 0x100247f
xor ecx, ecx
test eax, eax
ja 0x1002724
jmp 0x100245d
push esi
call fcn.01001bcf
jmp 0x100253c
cmp dword [ebp - 0x1a8], 0x64
jae 0x100245d
push 0x20
pop edx
mov word [edi], dx
inc edi
inc edi
inc ecx
inc dword [ebp - 0x1a8]
cmp ecx, eax
jb 0x1002724
jmp 0x100245d
test byte [ebp + 0x24], 4
je 0x101051c
cmp ax, 0x20
jb 0x1010548
test byte [esi], 4
je 0x101052e
test byte [0x10382f8], 1
je 0x100244c
push eax
push dword [0x1038334]
call fcn.0101c433
mov word [edi], ax
jmp 0x100244f
test byte [ebp + 0x24], 4
je 0x101057f
cmp dword [ebp - 0x1a8], 0x63
jae 0x100247f
push 0x5e
pop ecx
mov word [edi], cx
push 2
pop ecx
add dword [ebp - 0x19c], ecx
add dword [ebp - 0x1a8], ecx
add edi, ecx
add eax, 0x40
mov word [edi], ax
add edi, ecx
add dword [ebp - 0x1a4], ecx
jmp 0x1002464
push 0
push 0
push 0x403
push dword [0x1038260]
call dword [0x1001208]
jmp 0x1002464
mov dword [ebp - 0x1a8], eax
jmp 0x10025e1
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x1002535
movzx ecx, word [esi + 0x4c]
add dword [ebp - 0x1a4], 2
mov edx, ecx
push 8
and edx, 7
pop eax
sub eax, edx
add dword [ebp - 0x1ac], eax
add ecx, eax
movzx eax, word [esi + 8]
cmp cx, ax
mov word [ebp - 0x198], cx
push 0x7cfffffe
push ds
movsx ecx, word [esi + 0x4c]
cwde
sub eax, ecx
mov dword [ebp - 0x1b0], eax
xor eax, eax
mov word [ebp - 0x198], ax
mov ax, word [esi + 0x4e]
inc ax
jmp 0x101060f
movsx eax, word [esi + 0x4c]
movsx ecx, cx
sub ecx, eax
mov ax, word [esi + 0x4e]
mov dword [ebp - 0x1b0], ecx
push 0
mov word [ebp - 0x196], ax
lea eax, [ebp - 0x1b0]
push eax
push 4
push dword [esi + 0x4c]
push 0x1038e90
push esi
call fcn.0101fa25
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x1cc]
push esi
call fcn.0100a43c
jmp 0x10024d7
mov edi, dword [ebp - 0x1a4]
mov eax, dword [esi + 0x4c]
dec dword [ebp - 0x1ac]
mov dword [ebp - 0x198], eax
cmp edi, dword [ebp - 0x1c0]
je 0x10107db
sub edi, dword [ebp - 0x1c0]
sar edi, 1
cmp edi, 0x64
jle 0x10106a9
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [edi + edi]
push ecx
push dword [0x1038030]
push dword [eax + 0x18]
call dword [fcn.01001370]
test eax, eax
jne 0x10106af
mov dword [ebp - 0x1a0], 0xc0000017
jmp 0x100253c
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 0x1c0]
mov ecx, eax
mov dword [ebp - 0x19c], edx
test edi, edi
jbe 0x10106f6
mov dword [ebp - 0x1a0], edi
mov edx, dword [ebp - 0x19c]
movzx edx, word [edx]
cmp dx, 8
or byte [ebp + 8], dh
cmp ecx, eax
jbe 0x10106e3
dec ecx
dec ecx
jmp 0x10106e3
mov word [ecx], dx
inc ecx
inc ecx
add dword [ebp - 0x19c], 2
dec dword [ebp - 0x1a0]
jne 0x10106c7
cmp ecx, eax
jne 0x1010702
mov dword [ebp - 0x19c], 0x20
jmp 0x101070c
movzx ecx, word [ecx - 2]
mov dword [ebp - 0x19c], ecx
lea ecx, [ebp - 0xcc]
cmp eax, ecx
je 0x101072b
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.01001378]
cmp word [ebp - 0x19c], 9
jne 0x101077d
push dword [0x1038334]
dec edi
push edi
push dword [ebp - 0x1c0]
push dword [ebp + 0x20]
call fcn.01023375
sub word [ebp - 0x198], ax
jns 0x10107e2
movsx eax, word [esi + 8]
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
dec word [ebp - 0x196]
lea eax, [eax*8 + 1]
mov word [ebp - 0x198], ax
jmp 0x10107e2
cmp word [ebp - 0x19c], 0x20
jae 0x10107db
dec word [ebp - 0x198]
dec dword [ebp - 0x1ac]
test byte [ebp + 0x24], 1
je 0x10107db
push 0
lea eax, [ebp - 0x1b0]
push eax
push 4
push dword [ebp - 0x198]
mov dword [ebp - 0x1b0], 1
push 0x1038e90
push esi
call fcn.0101fa25
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [ebp - 0x198]
push dword [ebp - 0x1cc]
push esi
call fcn.0100a43c
dec word [ebp - 0x198]
test byte [ebp + 0x24], 0x10
je 0x10107fb
cmp word [ebp - 0x198], 0
jge 0x10107fb
xor eax, eax
mov word [ebp - 0x198], ax
push dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
shr eax, 1
and eax, 1
push eax
push dword [ebp - 0x198]
push esi
call fcn.0100212c
test byte [ebp + 0x24], 1
mov dword [ebp - 0x1a0], eax
je 0x10024f5
push 0
lea eax, [ebp - 0x1b0]
push eax
push 4
push dword [esi + 0x4c]
mov dword [ebp - 0x1b0], 1
push 0x1038e90
push esi
call fcn.0101fa25
lea eax, [ebp - 0x1b0]
push eax
push 3
push dword [esi + 0x4c]
push dword [ebp - 0x1cc]
push esi
call fcn.0100a43c
jmp 0x10024ef
mov ecx, dword [ebp - 0x1ac]
mov dword [eax], ecx
jmp 0x100252f
push dword [ebp - 0x1c4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [fcn.01001378]
jmp 0x1002549