Function at 0x4160b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4885b1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], ebx
push edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
mov dword [0x4bc0c8], 0xffffffff
lea eax, [ebp - 0xe]
mov dword [0x4bc0cc], 0x7fffffff
push eax
mov dword [edi + 0x44], ebx
push dword [edi + 0x5c]
mov dword [ebp - 4], ebx
push dword [edi + 0x58]
call fcn.00414810
mov eax, dword [edi + 0x58]
lea ecx, [edi + 0x64]
mov dword [edi + 0x5c], eax
add esp, 0x10
mov eax, dword [edi + 0x64]
push dword [eax + 4]
call fcn.00419880
mov eax, dword [edi + 0x64]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x64]
mov dword [eax], eax
mov eax, dword [edi + 0x64]
mov dword [eax + 8], eax
mov dword [edi + 0x68], ebx
mov eax, dword [edi + 0x48]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x48]
mov dword [eax + 4], eax
mov dword [edi + 0x4c], ebx
cmp ecx, dword [edi + 0x48]
je 0x416172
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call fcn.004705af
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x48]
jne 0x416160
lea ecx, [edi + 0x50]
call fcn.00419f70
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x416198
lea eax, [eax + eax*2]
push 0x4000
shl eax, 3
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4161aa
push dword [edi + 0x20]
call fcn.00471b0c
add esp, 4
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
lea ecx, [edi + 0xe0]
mov dword [edi + 0x28], 0
mov byte [edi + 0x1c], 0
call fcn.00419080
push 0
lea ecx, [edi + 0x78]
call fcn.0046b290
push 0
lea ecx, [edi + 0x7c]
call fcn.0046b290
mov esi, dword [edi + 0x30]
cmp esi, dword [edi + 0x34]
je 0x416256
cmp byte [ebp + 8], 0
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
jne 0x416212
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004688b0
or ebx, 1
mov byte [ebp - 4], 1
mov ecx, eax
mov dword [ebp - 0x18], ebx
call fcn.0046b860
mov byte [ebp - 0xe], 0
test eax, eax
je 0x416216
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x416231
mov ecx, dword [ebp - 0x1c]
and ebx, 0xfffffffe
test ecx, ecx
je 0x416231
call fcn.0046b840
cmp byte [ebp - 0xe], 0
je 0x416246
mov ecx, dword [ebp - 0x14]
call fcn.00467cd0
neg al
sbb al, al
and byte [ebp - 0xd], al
mov ecx, dword [ebp - 0x14]
call fcn.00467c60
add esi, 4
cmp esi, dword [edi + 0x34]
jne 0x4161e3
mov ebx, dword [edi + 0x34]
mov esi, dword [edi + 0x30]
mov dword [ebp + 8], ebx
cmp esi, ebx
je 0x41628f
mov eax, ebx
mov ebx, dword [esi]
test ebx, ebx
je 0x416288
lea eax, [ebx + 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x416285
push eax
mov ecx, ebx
call fcn.004685f0
mov eax, dword [ebp + 8]
add esi, 4
cmp esi, eax
jne 0x416265
mov ecx, dword [edi + 0x30]
push edi
mov dword [edi + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4