Function at 0x412070
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x46f06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov edi, dword [ebp + 8]
push edi
call fcn.00413a10
mov ebx, eax
mov al, byte [ebx + 0x30]
test al, al
mov byte [ebp - 0xd], al
mov eax, dword [ebx]
setne dl
cmp byte [ebx + 0x31], 0
mov byte [ebp - 0x14], dl
setne cl
mov byte [ebp - 0x1c], cl
cmp eax, 5
ja case.default.0x41218a
jmp dword [eax*4 + 0x412544]
push edi
mov ecx, esi
call fcn.00413a10
mov dword [ebp - 0x18], eax
mov ecx, dword [eax + 8]
cmp ecx, 0x10000
jae 0x412182
cmp byte [eax + 0x32], 0
je 0x412103
sub esp, 0x10
mov ecx, esi
push edi
call fcn.00415560
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
cmp ecx, 0x10000
jae 0x412182
mov edi, dword [eax + 0x14]
sub esp, 0x18
mov esi, dword [eax + 0x10]
mov ecx, esp
add eax, 0x34
push eax
call fcn.00403150
push 0
push edi
push esi
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x1c]
push 1
lea ecx, [esi + 0x68]
call fcn.00416ce0
mov edi, dword [ebp - 0x18]
add eax, dword [edi + 0x18]
mov dword [edi + 8], eax
cmp eax, 0x10000
jae 0x41217f
mov ecx, dword [edi + 0xc]
test ecx, ecx
je case.default.0x41218a
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x412162
push 0x8000
push 0
push ecx
push dword [eax + 0x58]
call dword [0x471db4]
mov dword [edi + 0xc], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 4]
cmp eax, 4
ja case.default.0x41218a
jmp dword [eax*4 + 0x41255c]
push 0
push dword [ebp - 0x14]
lea eax, [ebx + 0x2c]
mov ecx, esi
push eax
lea eax, [ebx + 0x4c]
push eax
lea eax, [ebx + 0x64]
push eax
lea eax, [ebx + 0xc]
push eax
push dword [ebx + 8]
call fcn.00412570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 1
jmp 0x412193
cmp byte [ebx + 0x2c], 0
lea edi, [ebx + 0x2c]
push 0
lea eax, [ebx + 0x4c]
mov ecx, esi
jne 0x4121de
push dword [ebp - 0x14]
push edi
jmp 0x41219f
push 0
push edi
push eax
lea eax, [ebx + 0x64]
mov byte [edi], 0
push eax
lea eax, [ebx + 0xc]
push eax
push dword [ebx + 8]
call fcn.00412570
cmp byte [ebp - 0xd], 0
mov bl, al
mov byte [edi], 0
je 0x412207
xor cl, cl
call fcn.0040d8a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push edi
mov ecx, esi
call fcn.00413a10
mov ebx, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebx + 0x4c]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
call fcn.0040d8d0
cmp byte [ebx + 0x2c], 0
jne 0x41226a
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x41226a
mov edi, dword [ebp - 0x28]
mov edx, ecx
shr ecx, 2
mov eax, 0x90909090
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 8]
lea ecx, [esi + 0x68]
call fcn.004175f0
test al, al
jne 0x4122a0
mov eax, dword [ebp - 0x28]
test eax, eax
je case.default.0x41218a
cmp dword [ebp - 0x24], 0
jbe case.default.0x41218a
push eax
call fcn.004304d1
add esp, 4
jmp case.default.0x41218a
mov al, byte [ebx + 0x2c]
test al, al
mov byte [ebp + 0xb], al
sete al
cmp byte [ebp - 0xd], 0
mov byte [ebx + 0x2c], al
je 0x4122d6
push 0x40005
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
xor eax, eax
cmp byte [ebp + 0xb], al
sete al
add eax, 0x95
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4122ec
cmp dword [ebp - 0x24], 0
jbe 0x4122ec
push eax
call fcn.004304d1
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push edi
mov ecx, esi
call fcn.00413a10
mov edi, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x28]
cmp byte [edi + 0x2c], 0
mov eax, 0x64
mov ecx, 0x4c
cmove ecx, eax
add ecx, edi
call fcn.0040d8d0
lea eax, [ebp - 0x28]
push eax
push dword [edi + 8]
lea ecx, [esi + 0x68]
call fcn.004175f0
test al, al
je 0x41227d
mov bl, byte [edi + 0x2c]
test bl, bl
sete al
cmp byte [ebp - 0xd], 0
mov byte [edi + 0x2c], al
je 0x4122d6
push 0x40005
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
xor eax, eax
test bl, bl
jmp 0x4122c7
push edi
mov ecx, esi
call fcn.00413a10
push dword [ebp + 8]
mov ecx, esi
mov edi, eax
call fcn.00413a10
mov ebx, eax
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4123bf
push 0
push 4
lea ecx, [ebp + 8]
push ecx
push dword [ebx + 8]
push dword [eax + 0x58]
call dword [0x471da4]
test eax, eax
je 0x4123bf
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x1c]
sete al
jmp 0x4123c8
mov dword [ebp + 8], 0
xor al, al
mov byte [edi + 0x2c], al
test al, al
jne 0x4123d4
mov eax, dword [edi + 0x1c]
jmp 0x4123d7
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x4123e8
xor bl, bl
jmp 0x412207
push 0
push 4
lea ecx, [ebp - 0x18]
push ecx
push dword [edi + 8]
push dword [eax + 0x58]
call dword [0x471da8]
test eax, eax
setne bl
test eax, eax
je 0x412207
mov bh, byte [edi + 0x2c]
test bh, bh
sete al
cmp byte [ebp - 0xd], 0
mov byte [edi + 0x2c], al
je 0x412207
push 0x40005
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ecx, ecx
test bh, bh
push eax
sete cl
add ecx, 0x95
push ecx
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
sub esp, 8
lea ecx, [esi + 0x68]
push edx
push dword [ebx + 0x24]
push dword [ebx + 8]
call fcn.00413f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebx + 0x28]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x6c]
test eax, eax
je case.default.0x41218a
push 0
push 4
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push edi
push dword [eax + 0x58]
call dword [0x471da4]
test eax, eax
je case.default.0x41218a
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x68]
add eax, dword [ebp - 0x20]
sub esp, 8
mov dword [ebp + 8], eax
push dword [ebp - 0x14]
push eax
push edi
call fcn.00413f80
test al, al
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push edi
mov ecx, esi
call fcn.00413a10
mov ecx, eax
cmp dword [ecx], 1
je 0x4124f8
mov dword [ecx], 1
mov bl, byte [ecx + 0x2c]
test bl, bl
sete al
cmp byte [ecx + 0x30], 0
mov byte [ecx + 0x2c], al
je 0x4122ec
push 0x40005
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
xor eax, eax
test bl, bl
sete al
add eax, 0x95
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c