Function at 0x100c3577
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1015f008
push eax
mov al, byte [0x101c7ad4]
mov dword fs:[0], esp
sub esp, 0x10
test al, 1
push ebx
push ebp
push esi
mov ebp, ecx
jne 0x100c35c5
or dword [0x101c7ad4], 1
call fcn.101f821e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
push 0x10166210
mov dword [0x101c7ad0], eax
call fcn.101a75df
add esp, 4
mov al, byte [0x101c7ad4]
mov ebx, 2
test bl, al
jne 0x100c35fa
or dword [0x101c7ad4], ebx
call fcn.101f821e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
push 0x10166200
mov dword [0x101c7acc], eax
call fcn.101a75df
add esp, 4
mov eax, dword [0x101c7ac8]
cmp eax, 1
jne 0x100c364b
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp esi, ebx
jne 0x100c3612
xor eax, eax
jmp 0x100c3620
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100c3617
sub eax, edx
push eax
push esi
mov ecx, 0x101c7acc
call fcn.100b41b7
mov eax, dword [0x101c7ac8]
pop esi
inc eax
pop ebp
mov dword [0x101c7ac8], eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
cmp eax, ebx
push edi
jne 0x100c36ed
mov edx, dword [esp + 0x30]
mov edi, 0x101684c4
mov esi, edx
mov ecx, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100c366c
sbb eax, eax
sbb eax, reloc.WINMM.dll_midiStreamOut
xor ebx, ebx
cmp eax, ebx
jne 0x100c369d
push edx
mov ecx, 0x101c7acc
call fcn.100bb247
mov eax, dword [0x101c7ac8]
pop edi
pop esi
inc eax
pop ebp
mov dword [0x101c7ac8], eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
push 0x101c7acc
mov ecx, 0x101c7ad0
call fcn.100a8917
mov ecx, 0x101c7acc
mov dword [0x101c7ac8], ebx
call fcn.100a7e57
mov edi, dword [esp + 0x30]
mov ecx, dword [ebp + 0x54]
cmp ecx, ebx
je 0x100c36de
mov edx, dword [0x101c7ad0]
mov eax, dword [edx - 0xc]
cmp eax, ebx
je 0x100c36de
push eax
push edx
add ecx, 0x60
call fcn.100b41b7
cmp edi, ebx
jne 0x100c3908
xor eax, eax
jmp 0x100c3916
cmp eax, 3
jne 0x100c38a8
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
xor ebx, ebx
push 0x10169dcc
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [0x101c7ac8], ebx
call fcn.101a8aa2
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, reloc.WINMM.dll_midiStreamOut
jle 0x100c388a
cmp eax, 0x18
jge 0x100c388a
mov eax, dword [esp + 0x14]
cmp eax, reloc.WINMM.dll_midiStreamOut
jle 0x100c388a
cmp eax, 0x3c
jge 0x100c388a
mov eax, dword [esp + 0x18]
cmp eax, reloc.WINMM.dll_midiStreamOut
jle 0x100c388a
cmp eax, 0x3c
jge 0x100c388a
mov eax, dword [0x101c7acc]
cmp dword [eax - 0xc], 0x40
jge 0x100c388a
mov ecx, ebp
call fcn.100c3367
push 0x64
call fcn.101f81cf
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x100c37a9
call fcn.101f821e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x60], eax
mov eax, esi
jmp 0x100c37ab
xor eax, eax
mov dword [ebp + 0x54], eax
push 0x28
mov ecx, 0x101c7acc
mov dword [eax], 0xa
call fcn.100b69d7
mov esi, eax
cmp esi, reloc.WINMM.dll_midiStreamOut
je 0x100c3833
push 0x29
mov ecx, 0x101c7acc
call fcn.100b69d7
cmp eax, reloc.WINMM.dll_midiStreamOut
je 0x100c3833
sub eax, esi
dec eax
push eax
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x101c7acc
call fcn.100a8327
mov edx, dword [eax]
mov eax, dword [ebp + 0x54]
add eax, 0x44
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp cl, bl
jne 0x100c37f7
lea ecx, [esp + 0x30]
call fcn.100e4da7
push esi
push ebx
lea edx, [esp + 0x24]
push edx
mov ecx, 0x101c7acc
call fcn.100a8327
push eax
mov ecx, 0x101c7acc
mov dword [esp + 0x2c], ebx
call fcn.100a8917
lea ecx, [esp + 0x1c]
call fcn.100e4da7
mov eax, dword [ebp + 0x54]
mov edx, dword [0x101c7acc]
add eax, 4
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp cl, bl
jne 0x100c383f
mov eax, dword [ebp + 0x54]
mov edx, edi
add eax, 0x54
lea ebx, [ebx]
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp cl, bl
jne 0x100c3857
mov ecx, 0x101c7ad0
call fcn.100a7e57
mov ecx, 0x101c7acc
call fcn.100a7e57
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
push 0x101c7acc
mov ecx, 0x101c7ad0
call fcn.100a8917
mov ecx, 0x101c7acc
call fcn.100a7e57
jmp 0x100c36c0
mov esi, dword [esp + 0x30]
mov edi, 0x10169dc8
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100c38c1
sbb eax, eax
sbb eax, reloc.WINMM.dll_midiStreamOut
xor ebx, ebx
cmp eax, ebx
jne 0x100c36bc
push 0x101c7ad0
mov ecx, 0x101c7acc
mov dword [0x101c7ac8], 1
call fcn.100a8917
mov eax, dword [esp + 0x30]
push eax
mov ecx, 0x101c7acc
call fcn.100bb247
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100c390d
sub eax, edx
push eax
push edi
mov ecx, 0x101c7ad0
call fcn.100a8517
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4