Function at 0x881f28
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x881f30
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x8822e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x881ddc]
call fcn.0040999c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x881f67
sub edx, 0xfffffff8
call fcn.00410d98
mov eax, dword [ebp - 0x14]
mov esi, ebx
mov dword [eax + 0x14], esi
cmp dword [esi + 0x30], 0
je 0x882291
call fcn.00433768
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea edx, [ebp - 0x24]
mov eax, dword [0x8d284c]
call fcn.00434764
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.0040c4b4
lea eax, [ebp - 0x28]
push eax
mov ecx, 2
mov edx, 4
mov eax, dword [ebp - 8]
call fcn.0040c31c
push dword [ebp - 0x28]
push 0x8822fc
lea eax, [ebp - 0x2c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040c31c
push dword [ebp - 0x2c]
push 0x8822fc
lea eax, [ebp - 0x30]
push eax
mov ecx, 4
mov edx, 7
mov eax, dword [ebp - 8]
call fcn.0040c31c
push dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 5
call fcn.0040c1c4
lea eax, [ebp - 0xc]
call fcn.0084f318
mov eax, dword [ebp - 0x14]
add eax, 0xc
call fcn.0040b8d8
mov eax, dword [0x8d1a20]
cmp byte [eax], 1
je 0x882291
mov eax, dword [0x8d1a20]
cmp byte [eax], 0
jne 0x882048
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x882041
sub edx, 0xffffffdc
xor eax, eax
call fcn.004c703c
xor eax, eax
push ebp
push 0x882099
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 0x30]
call fcn.0040c8f4
mov eax, dword [ebp - 0x38]
push eax
call fcn.0060873c
lea ecx, [ebp - 0x34]
pop edx
call fcn.00608528
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
add eax, 0x30
mov ecx, 0
call fcn.0040c4b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x8820b1
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 0x14]
cmp dword [ebx + 0x30], 0
je 0x882291
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x8820cb
mov eax, dword [eax - 4]
cmp eax, 0x7d00
jge 0x882291
push 0x88230c
push dword [ebx + 0x34]
push 0x882348
lea eax, [ebp - 0x40]
mov edx, dword [ebx + 0x3c]
call fcn.0040c8f4
push dword [ebp - 0x40]
push 0x882388
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 8]
call fcn.0040c8f4
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0042f458
push dword [ebp - 0x44]
push 0x882388
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0xc]
call fcn.0040c8f4
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0042f458
push dword [ebp - 0x4c]
push 0x882388
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 0x30]
call fcn.0040c8f4
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0042f458
push dword [ebp - 0x54]
push 0x882398
lea eax, [ebp - 0x3c]
mov edx, 0xb
call fcn.0040cb14
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov ecx, 0
call fcn.0040c4b4
mov eax, dword [0x8d1a20]
cmp byte [eax], 1
je 0x882291
mov eax, dword [0x8d1a20]
cmp byte [eax], 0
jne 0x88219f
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x882198
sub edx, 0xffffffe0
xor eax, eax
call fcn.004c703c
push 0x8823cc
mov eax, dword [ebp - 0x14]
push dword [eax + 0x10]
push 0x8823e0
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov edx, 3
call fcn.0040c1c4
mov eax, dword [0x8d1a20]
cmp byte [eax], 1
je 0x882291
mov eax, dword [0x8d1a20]
cmp byte [eax], 0
jne 0x8821e8
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x8821e1
sub edx, 0xffffffe4
xor eax, eax
call fcn.004c703c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
cmp dword [eax + 0x4c], 0
je 0x882291
mov eax, 0x64
call fcn.004c719c
push 0x8823f4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
push dword [eax + 0x4c]
push 0x882410
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.0040c1c4
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
call fcn.0040c8f4
push dword [ebp - 0x60]
mov eax, dword [0x8d2950]
mov eax, dword [eax]
push dword [eax + 0x488]
push 0x882430
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.0040cb14
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov ecx, 0
call fcn.0040c4b4
mov eax, dword [0x8d1a20]
cmp byte [eax], 1
je 0x882291
mov eax, dword [0x8d1a20]
cmp byte [eax], 1
je 0x882291
mov eax, dword [0x8d1a20]
cmp byte [eax], 0
jne 0x882291
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x88228a
sub edx, 0xffffffe8
xor eax, eax
call fcn.004c703c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8822e7
lea eax, [ebp - 0x64]
call fcn.0040b8d8
lea eax, [ebp - 0x60]
mov edx, 0xc
call fcn.0040b914
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040b94c
lea eax, [ebp - 0x24]
call fcn.0040b8b4
lea eax, [ebp - 0x10]
call fcn.00410d80
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040b94c
pop eax
jmp eax