Function at 0x56c940
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566f68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5c3f60]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push edi
mov eax, dword [0x5c3f60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esi + 0x1b8]
mov edi, dword [fcn.0056a780]
push 0
push 1
push 0xf1
push eax
call edi
push 1
lea ecx, [esi + 0x5ac]
call fcn.005a0b5f
push 1
lea ecx, [esi + 0x620]
call fcn.005a0b5f
push 1
lea ecx, [esi + 0x694]
call fcn.005a0b5f
call fcn.0059d432
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x56c9cf
push 0x80004005
call fcn.00562230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0
push 0
mov dword [esp + 0x40], 0
mov ecx, dword [esi + 0x314]
push 0x14b
push ecx
call edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x59ac68
push ecx
call fcn.00565720
mov ebx, dword [esp + 0x1c]
mov edx, dword [esi + 0x314]
add esp, 0x10
push ebx
push 0
push 0x143
push edx
call edi
mov eax, dword [esi + 0x388]
push ebx
push 0
push 0x143
push eax
call edi
mov ecx, dword [esi + 0x3fc]
push ebx
push 0
push 0x143
push ecx
call edi
mov edx, dword [esi + 0x470]
push ebx
push 0
push 0x143
push edx
call edi
mov eax, dword [esi + 0x4e4]
push ebx
push 0
push 0x143
push eax
call edi
mov ecx, dword [esi + 0x558]
push ebx
push 0
push 0x143
push ecx
call edi
mov edx, dword [esi + 0x5cc]
push ebx
push 0
push 0x143
push edx
call edi
mov eax, dword [esi + 0x640]
push ebx
push 0
push 0x143
push eax
call edi
mov ecx, dword [esi + 0x6b4]
push ebx
push 0
push 0x143
push ecx
call edi
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 9
jl 0x56ca09
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x56ca01
xor ebx, ebx
push ebx
push 0x599fa4
lea ecx, [esi + 0x9c4]
push 0x50
call fcn.005ae39c
mov eax, dword [esi + 0x79c]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [fcn.0056a89c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.005ac5ee
mov edx, dword [esi + 0x8dc]
mov edx, dword [edx + 0x160]
push 0x4e20
push esi
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esi + 0x8dc]
call edx
lea eax, [esi + 0x9c4]
test eax, eax
je 0x56cb57
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0x8fc]
push 0x30
push eax
call edi
push 0
lea ecx, [esi + 0x77c]
call fcn.005a0b1d
push 5
lea ecx, [esi + 0x8dc]
call fcn.005a0b1d
mov edx, dword [esi + 0x79c]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [fcn.0056a89c]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.005ac5ee
mov edx, dword [esi + 0x950]
mov edx, dword [edx + 0x160]
mov eax, 0x14
sub dword [esp + 0x1c], eax
sub dword [esp + 0x24], eax
push 0x4e21
push esi
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esi + 0x950]
call edx
lea eax, [esi + 0x9c4]
test eax, eax
je 0x56cbd8
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0x970]
push 0x30
push eax
call edi
push 0
lea ecx, [esi + 0x950]
call fcn.005a0b1d
mov ecx, dword [esi + 0x2a0]
push 0
push 0x14
push 0xc5
push ecx
call edi
mov edx, dword [esi + 0x728]
push 0
push 0x28
push 0xc5
push edx
call edi
mov eax, dword [esi + 0x884]
push 0
push 0
push 0x1037
push eax
call edi
mov ecx, dword [esi + 0x884]
or eax, 0x21
push eax
push 0
push 0x1036
push ecx
call edi
push 0xffffffffffffffff
push 0x64
push 0
push 0x59ac78
push 0
lea ecx, [esi + 0x864]
call fcn.005a1a84
push 0xffffffffffffffff
push 0x78
push 0
push 0x59ac84
push 1
lea ecx, [esi + 0x864]
call fcn.005a1a84
push 0xffffffffffffffff
push 0x109
push 0
push 0x59ac90
push 2
lea ecx, [esi + 0x864]
call fcn.005a1a84
mov ecx, esi
call fcn.0056dda0
push esi
call fcn.0056d510
mov edx, dword [esi + 0x8d8]
push edx
lea eax, [esp + 0x10]
push 0x59aca8
push eax
call fcn.00565720
mov edi, dword [esp + 0x18]
add esp, 0xc
push edi
lea ecx, [esi + 0x280]
call fcn.005a0a52
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x56cce2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call 0x69db7e
mov esp, ebp
pop ebp
ret