Function at 0x415460
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484671
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4b31cc]
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 [0x4b30b8], 0xffffffff
lea eax, [ebp - 0xe]
mov dword [0x4b30bc], 0x7fffffff
push eax
mov dword [edi + 0x44], ebx
push dword [edi + 0x5c]
mov dword [ebp - 4], ebx
push dword [edi + 0x58]
call fcn.00413e90
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.00418b30
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 0x415522
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call fcn.0046d747
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x48]
jne 0x415510
lea ecx, [edi + 0x50]
call fcn.004191e0
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x415545
push 0x4000
shl eax, 2
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x415557
push dword [edi + 0x20]
call fcn.0046e94b
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.00418330
push 0
lea ecx, [edi + 0x78]
call fcn.00468930
push 0
lea ecx, [edi + 0x7c]
call fcn.00468930
mov esi, dword [edi + 0x30]
cmp esi, dword [edi + 0x34]
je 0x415603
cmp byte [ebp + 8], 0
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
jne 0x4155bf
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00466390
or ebx, 1
mov byte [ebp - 4], 1
mov ecx, eax
mov dword [ebp - 0x18], ebx
call fcn.00468f70
mov byte [ebp - 0xe], 0
test eax, eax
je 0x4155c3
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x4155de
mov ecx, dword [ebp - 0x1c]
and ebx, 0xfffffffe
test ecx, ecx
je 0x4155de
call fcn.00468f40
cmp byte [ebp - 0xe], 0
je 0x4155f3
mov ecx, dword [ebp - 0x14]
call fcn.00465790
neg al
sbb al, al
and byte [ebp - 0xd], al
mov ecx, dword [ebp - 0x14]
call fcn.00465730
add esi, 4
cmp esi, dword [edi + 0x34]
jne 0x415590
mov ebx, dword [edi + 0x34]
mov esi, dword [edi + 0x30]
mov dword [ebp + 8], ebx
cmp esi, ebx
je 0x41563c
mov eax, ebx
mov ebx, dword [esi]
test ebx, ebx
je 0x415635
lea eax, [ebx + 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x415632
push eax
mov ecx, ebx
call fcn.004660b0
mov eax, dword [ebp + 8]
add esi, 4
cmp esi, eax
jne 0x415612
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