Function at 0x48aff0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x551e40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57f7c4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
cmp dword [ebp + 0x558c], 0
je 0x48b16b
mov eax, dword [ebp + 0x5590]
cmp eax, dword [esp + 0x34]
ja 0x48b16b
mov eax, dword [ebp + 0xe0]
mov ecx, dword [ebp + 0x5594]
lea edx, [esp + 0x30]
push edx
lea esi, [eax + 0x64]
mov dword [esp + 0x34], ecx
call fcn.00415480
mov ebx, eax
test ebx, ebx
je 0x48b16b
mov eax, dword [ebp + 0x558c]
sub eax, 1
je 0x48b11e
sub eax, 1
je 0x48b0d6
sub eax, 1
jne 0x48b16b
mov eax, 4
or ecx, 0xffffffff
mov dword [ebx + 0x558c], eax
mov dword [ebx + 0x5590], ecx
lea esi, [ebx + 0x1590]
mov dword [ebp + 0x558c], eax
mov dword [ebp + 0x5590], ecx
call fcn.004d0db0
lea esi, [ebp + 0x1590]
call fcn.004d0db0
push 2
lea ecx, [esp + 0x34]
mov eax, 0x2404
push ecx
mov ecx, ebx
mov word [esp + 0x38], ax
call fcn.004ed0e0
push 2
lea edx, [esp + 0x34]
push edx
jmp 0x48b164
mov edi, ebx
call fcn.00489e70
mov edi, ebp
call fcn.00489e70
mov ecx, dword [ebp + 0xdc]
push 7
lea edx, [esp + 0x1c]
mov eax, 0x2402
mov dword [esp + 0x1f], ecx
push edx
mov ecx, ebx
mov word [esp + 0x20], ax
mov byte [esp + 0x22], 3
call fcn.004ed0e0
mov eax, dword [ebp + 0xdc]
push 7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1f], eax
push ecx
jmp 0x48b164
mov edi, ebx
call fcn.00489e70
mov edi, ebp
call fcn.00489e70
mov eax, dword [ebx + 0xdc]
push 7
lea ecx, [esp + 0x1c]
mov edx, 0x2402
push ecx
mov ecx, ebx
mov word [esp + 0x20], dx
mov byte [esp + 0x22], 3
mov dword [esp + 0x23], eax
call fcn.004ed0e0
mov edx, dword [ebx + 0xdc]
push 7
lea eax, [esp + 0x1c]
mov dword [esp + 0x1f], edx
push eax
mov ecx, ebp
call fcn.004ed0e0
xor edi, edi
cmp dword [ebp + 0x55a4], edi
je 0x48b3a9
mov ecx, dword [esp + 0x34]
cmp dword [ebp + 0x55b4], ecx
ja 0x48b3a9
mov esi, dword [ebp + 0x1810]
mov dword [esp + 0x30], esi
cmp esi, edi
je 0x48b1b7
add esi, 0x5cc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0x1810], edi
jne 0x48b1b7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov eax, dword [ebp + 0x1810]
cmp eax, edi
je 0x48b395
mov edx, dword [ebp + 0xdc]
cmp edx, dword [eax + 0x4c0]
jne 0x48b395
mov eax, dword [eax + 0x4b8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xe0]
lea ecx, [esp + 0x34]
push ecx
lea esi, [eax + 0x64]
call fcn.00415480
mov ebx, eax
test ebx, ebx
je 0x48b395
mov edx, dword [ebp + 0x1810]
mov eax, dword [edx + 0x4b4]
sub eax, 1
je 0x48b30e
sub eax, 1
je 0x48b2a0
sub eax, 1
jne 0x48b395
mov edi, ebx
lea esi, [esp + 0x18]
call fcn.00431eb0
mov byte [esp + 0x28], 3
mov ecx, dword [ebp + 0x1810]
mov eax, 4
mov dword [ecx + 0x4b4], eax
mov edx, dword [ebx + 0x1810]
mov dword [edx + 0x4b4], eax
or eax, 0xffffffff
mov dword [ebp + 0x55b4], eax
mov dword [ebx + 0x55b4], eax
mov edx, dword [ebp + 0x1810]
mov eax, 0x2504
mov word [esp + 0x34], ax
mov eax, 2
lea ecx, [esp + 0x34]
call fcn.0043f2d0
mov edx, dword [ebx + 0x1810]
mov eax, 2
lea ecx, [esp + 0x34]
call fcn.0043f2d0
mov eax, dword [esp + 0x18]
jmp 0x48b385
mov edi, ebx
lea esi, [esp + 0x34]
call fcn.00431eb0
mov edi, ebp
mov byte [esp + 0x28], 2
call fcn.00489ea0
mov edi, ebx
call fcn.00489ea0
mov eax, dword [ebp + 0x1810]
call fcn.0043edd0
mov eax, dword [ebx + 0x1810]
call fcn.0043edd0
mov edx, dword [ebp + 0xdc]
mov ecx, 0x2502
push 7
lea eax, [esp + 0x1c]
mov word [esp + 0x1c], cx
push eax
mov ecx, ebx
mov byte [esp + 0x22], 3
mov dword [esp + 0x23], edx
call fcn.004ed0e0
mov ecx, dword [ebp + 0xdc]
push 7
lea edx, [esp + 0x1c]
mov dword [esp + 0x1f], ecx
push edx
jmp 0x48b37a
mov edi, ebx
lea esi, [esp + 0x34]
call fcn.00431eb0
mov edi, ebp
mov byte [esp + 0x28], 1
call fcn.00489ea0
mov edi, ebx
call fcn.00489ea0
mov eax, dword [ebp + 0x1810]
call fcn.0043edd0
mov eax, dword [ebx + 0x1810]
call fcn.0043edd0
mov ecx, dword [ebx + 0xdc]
push 7
lea edx, [esp + 0x1c]
mov eax, 0x2502
mov dword [esp + 0x1f], ecx
push edx
mov ecx, ebx
mov word [esp + 0x20], ax
mov byte [esp + 0x22], 3
call fcn.004ed0e0
mov eax, dword [ebx + 0xdc]
push 7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1f], eax
push ecx
mov ecx, ebp
call fcn.004ed0e0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x48b395
add eax, 0x5cc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x48b3a9
add eax, 0x5cc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8