Function at 0x59f840
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e728a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x65a06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4c], esi
call dword [eax + 0xbc]
mov ebx, eax
push 0
push 1
mov ecx, ebx
mov dword [ebp - 0x3c], ebx
call fcn.005c0f60
push 1
push 0
push esi
mov ecx, ebx
call fcn.00562c40
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
mov eax, dword [esi + 4]
mov dword [ebp - 0x44], eax
lea ecx, [eax - 8]
mov eax, dword [ecx]
test eax, 0x30000000
jne 0x59f8b8
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff8
mov eax, dword [ecx]
or ebx, 0xffffffff
test eax, 0x30000000
jne 0x59f8ec
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x59f8ec
push ecx
call fcn.00494c04
add esp, 4
call fcn.004edd00
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004ede10
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x618d30
push eax
mov edx, esi
lea ecx, [ebp - 0x48]
call fcn.004d7940
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x48]
mov ecx, dword [eax + 0x68]
mov eax, dword [eax + 0x70]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
cmp ecx, eax
je 0x59f964
nop word [eax + eax]
cmp dword [ecx], esi
je 0x59f95d
add ecx, 0x18
cmp ecx, eax
jne 0x59f950
jmp 0x59f964
lea eax, [ecx + 8]
test eax, eax
jne 0x59f969
call fcn.005004b0
mov ecx, dword [eax]
add eax, 8
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ecx
push eax
mov ecx, dword [ecx + 0x34]
call ecx
add esp, 8
add esi, 0xfffffff8
mov byte [ebp - 4], 4
mov eax, dword [esi]
test eax, 0x30000000
jne 0x59f9a1
mov eax, ebx
lock xadd dword [esi], eax
test eax, eax
jne 0x59f9a1
push esi
call fcn.00494c04
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp byte [ecx], 0
je 0x59f9b4
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x9c]
jmp 0x59f9e4
mov byte [ebp - 4], 5
mov eax, dword [ecx + 0xc]
lea ecx, [ebp - 0x28]
push ecx
call eax
mov ecx, eax
mov byte [ebp - 4], 4
shr ecx, 8
add esp, 4
mov byte [ebp - 0x34], cl
mov ecx, eax
mov byte [ebp - 0x35], al
shr ecx, 0x10
shr eax, 0x18
mov byte [ebp - 0x33], cl
mov byte [ebp - 0x32], al
mov eax, dword [ebp - 0x35]
mov esi, dword [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00562300
mov eax, dword [ebp - 0x40]
mov ecx, 4
mov edx, dword [eax + 0x3c]
test edx, edx
jle 0x59fa19
mov eax, dword [eax + 0x34]
mov eax, dword [eax + edx*4 - 4]
test eax, eax
je 0x59fa19
cmp dword [eax + 0x1c], ecx
jne 0x59fa19
cmp dword [eax + 0x20], ecx
mov edx, 0x14
cmove ecx, edx
push ecx
push ecx
mov ecx, esi
call fcn.005bef00
call fcn.004edd00
mov esi, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004ede10
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x618d68
push eax
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.004d7940
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x50]
mov ecx, dword [eax + 0x68]
mov eax, dword [eax + 0x70]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
cmp ecx, eax
je 0x59fa94
nop word [eax + eax]
cmp dword [ecx], esi
je 0x59fa8d
add ecx, 0x18
cmp ecx, eax
jne 0x59fa80
jmp 0x59fa94
lea eax, [ecx + 8]
test eax, eax
jne 0x59fa99
call fcn.005004b0
mov ecx, dword [eax]
add eax, 8
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
push eax
mov ecx, dword [ecx + 0x34]
call ecx
add esp, 8
add esi, 0xfffffff8
mov byte [ebp - 4], 9
mov eax, dword [esi]
test eax, 0x30000000
jne 0x59fad1
mov eax, ebx
lock xadd dword [esi], eax
test eax, eax
jne 0x59fad1
push esi
call fcn.00494c04
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x64]
push ecx
mov eax, dword [eax + 0x18]
call eax
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov dword [eax], 0x612d9c
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff8
mov eax, dword [ecx]
test eax, 0x30000000
jne 0x59fb11
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x59fb11
push ecx
call fcn.00494c04
add esp, 4
mov eax, dword [ebp - 0x58]
mov cl, byte [eax]
mov byte [ebp - 0x31], cl
lea ecx, [eax - 8]
mov eax, dword [ecx]
test eax, 0x30000000
jne 0x59fb38
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x59fb38
push ecx
call fcn.00494c04
add esp, 4
cmp byte [ebp - 0x31], 0
je 0x59fbb2
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x68]
push ecx
mov eax, dword [eax + 0x18]
call eax
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 0x54], ecx
mov dword [eax], 0x612d9c
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff8
mov eax, dword [ecx]
test eax, 0x30000000
jne 0x59fb7e
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x59fb7e
push ecx
call fcn.00494c04
add esp, 4
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0xa
call fcn.00561a90
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff8
mov eax, dword [ecx]
test eax, 0x30000000
jne 0x59fbb2
lock xadd dword [ecx], ebx
test ebx, ebx
jne 0x59fbb2
push ecx
call fcn.00494c04
add esp, 4
mov ebx, dword [ebp - 0x3c]
mov ecx, ebx
push 1
mov eax, dword [ebx]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x40]
push 0xffffffffffffffff
push ebx
call fcn.005bdc90
push 1
mov ecx, ebx
call fcn.005bf680
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push ecx
mov eax, dword [eax + 0x30]
call eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xc
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00494b92
mov esp, ebp
pop ebp
ret 4