Function at 0x4ac400
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6023d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
add edi, 0x7c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4ac46f
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jae 0x4ac46f
test ecx, ecx
je 0x4ac45a
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4ac460
call dword [0x6105e8]
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*8]
mov byte [ecx + 0x10], 0
add esi, 1
jmp 0x4ac437
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4ac487
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp eax, 0x50
jae 0x4ac53e
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
call fcn.00447d80
test eax, eax
jbe 0x4ac53e
xor esi, esi
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x4ac4ac
xor eax, eax
jmp 0x4ac4b4
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jge 0x4ac525
test ecx, ecx
je 0x4ac4c8
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4ac4ce
call dword [0x6105e8]
mov edx, dword [edi + 4]
lea eax, [edx + esi*8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
test ecx, ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
je 0x4ac4f2
mov eax, dword [edx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x10], eax
jb 0x4ac4fb
call dword [0x6105e8]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x4ac514
add esi, 1
jmp 0x4ac4a1
test esi, esi
jl 0x4ac528
push 1
push esi
mov eax, edi
call fcn.004acb80
add esp, 8
mov edx, dword [ebp + 0x10]
add dword [esp + 0x10], 1
mov eax, edx
call fcn.00447d80
cmp dword [esp + 0x10], eax
jb 0x4ac49f
xor esi, esi
xor edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov eax, ebx
mov dword [esp + 0x38], esi
call fcn.00447d80
test eax, eax
jbe 0x4ac6df
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4ac574
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4ac57a
call dword [0x6105e8]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + esi*4]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 8]
call fcn.004ac8a0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4ac59e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4ac5a4
call dword [0x6105e8]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + esi*4]
movzx edx, word [edx + 0x22]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
test ecx, ecx
je 0x4ac5cf
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4ac5d5
call dword [0x6105e8]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi*4]
movzx eax, word [ecx + 0x22]
cdq
mov ecx, 0x64
idiv ecx
cmp edi, 5
jne 0x4ac5f5
cmp dl, 4
je 0x4ac6c9
push 0x18
call fcn.005e694e
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4ac611
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov byte [eax + 0x10], 0
mov edi, eax
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
call fcn.004acce0
push edi
push edi
call fcn.005ce9b0
add esp, 8
mov byte [esp + 0x38], 1
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4ac641
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4ac647
call dword [0x6105e8]
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4ac668
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4ac66e
call dword [0x6105e8]
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 0x68]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 1
lea eax, [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.0049fb80
mov byte [esp + 0x38], 0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4ac6c9
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ac6c9
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ac6c9
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, ebx
add esi, 1
call fcn.00447d80
cmp esi, eax
jb 0x4ac561
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
mov ebx, edi
jbe 0x4ac701
call dword [0x6105e8]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
jbe 0x4ac701
call dword [0x6105e8]
mov eax, ebx
sub eax, esi
push 0x4ac330
sar eax, 3
push eax
push ebx
push esi
call fcn.004acd70
mov ecx, dword [esp + 0x30]
add esp, 0x10
test ecx, ecx
jne 0x4ac728
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x4ac744
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 3
cmp eax, 0x50
jge 0x4ac73c
mov dword [esp + 0x10], eax
jmp 0x4ac744
mov dword [esp + 0x10], 0x50
push 0
call dword [0x6105ec]
xor ecx, ecx
add esp, 4
mov edi, eax
add edi, dword [esp + 0x10]
mov ebx, edx
adc ebx, ecx
xor esi, esi
cmp dword [esp + 0x10], ecx
jbe 0x4ac7cc
mov eax, dword [esp + 0x20]
add edi, 0xffffffff
adc ebx, 0xffffffff
test eax, eax
je 0x4ac77e
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 3
cmp esi, ecx
jb 0x4ac788
call dword [0x6105e8]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + esi*8]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ac7a6
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 3
cmp esi, ecx
jb 0x4ac7b0
call dword [0x6105e8]
mov eax, dword [esp + 0x20]
lea edx, [eax + esi*8]
mov eax, dword [ebp + 8]
push edx
push esi
add eax, 0x7c
call fcn.004acc40
add esi, 1
add esp, 8
cmp esi, dword [esp + 0x10]
jb 0x4ac763
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov ebx, ecx
jbe 0x4ac7e8
call dword [0x6105e8]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp eax, ecx
lea esi, [esp + 0x1c]
mov edi, eax
jbe 0x4ac7f8
call dword [0x6105e8]
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.005238c0
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x80]
test edx, edx
lea eax, [esi + 0x7c]
je 0x4ac84a
mov ecx, dword [eax + 8]
sub ecx, edx
sar ecx, 3
cmp ecx, 0x50
jbe 0x4ac84a
test edx, edx
jne 0x4ac834
xor ecx, ecx
jmp 0x4ac83c
mov ecx, dword [eax + 8]
sub ecx, edx
sar ecx, 3
add ecx, 0xffffffb0
push ecx
push 0x50
call fcn.004acb80
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov bl, al
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ac881
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.00449a40
mov eax, dword [esp + 0x28]
push eax
call fcn.005e6954
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc