Function at 0x415ed0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486f41
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.00414710
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.004196b0
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 0x415f92
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call fcn.0046f057
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x48]
jne 0x415f80
lea ecx, [edi + 0x50]
call fcn.00419da0
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x415fb8
lea eax, [eax + eax*2]
push 0x4000
shl eax, 3
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x415fca
push dword [edi + 0x20]
call fcn.0047055c
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.00418e60
push 0
lea ecx, [edi + 0x78]
call fcn.0046a240
push 0
lea ecx, [edi + 0x7c]
call fcn.0046a240
mov esi, dword [edi + 0x30]
cmp esi, dword [edi + 0x34]
je 0x416076
cmp byte [ebp + 8], 0
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
jne 0x416032
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00467870
or ebx, 1
mov byte [ebp - 4], 1
mov ecx, eax
mov dword [ebp - 0x18], ebx
call fcn.0046a870
mov byte [ebp - 0xe], 0
test eax, eax
je 0x416036
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x416051
mov ecx, dword [ebp - 0x1c]
and ebx, 0xfffffffe
test ecx, ecx
je 0x416051
call fcn.0046a850
cmp byte [ebp - 0xe], 0
je 0x416066
mov ecx, dword [ebp - 0x14]
call fcn.00466c90
neg al
sbb al, al
and byte [ebp - 0xd], al
mov ecx, dword [ebp - 0x14]
call fcn.00466c20
add esi, 4
cmp esi, dword [edi + 0x34]
jne 0x416003
mov ebx, dword [edi + 0x34]
mov esi, dword [edi + 0x30]
mov dword [ebp + 8], ebx
cmp esi, ebx
je 0x4160af
mov eax, ebx
mov ebx, dword [esi]
test ebx, ebx
je 0x4160a8
lea eax, [ebx + 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x4160a5
push eax
mov ecx, ebx
call fcn.004675b0
mov eax, dword [ebp + 8]
add esi, 4
cmp esi, eax
jne 0x416085
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