Function at 0x4a6020
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52a200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5726b4
mov ebp, ecx
call edi
mov eax, dword [0x5726cc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x5726ac]
mov ecx, 0x5726ac
call dword [edx + 0x14]
lea esi, [ebp + 0xdc]
mov dword [esp + 0x30], esi
lea eax, [esi + 8]
push eax
call edi
lea ecx, [ebp + 0x2bc]
mov dword [esp + 0x3c], 0
call fcn.00407b10
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x3c], 0xffffffff
call dword [edx + 0x14]
mov ecx, ebp
call fcn.0049b9e0
lea ebx, [ebp + 0xbc]
lea eax, [ebp + 0x9c]
mov dword [esp + 0x10], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
jmp 0x4a60c8
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
lea eax, [esi + 8]
push eax
call edi
lea ecx, [ebp + 0x2bc]
mov dword [esp + 0x3c], 1
call fcn.00407b10
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x3c], 0xffffffff
call dword [edx + 0x14]
lea eax, [ebx + 8]
push eax
call edi
mov eax, dword [ebp + 0x2ac]
mov dword [esp + 0x3c], 2
neg eax
sbb eax, eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], eax
je 0x4a6149
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [ebp + 0x2a0]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
call fcn.00507368
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x4a6143
mov eax, dword [ecx]
push 3
call dword [eax + 4]
cmp dword [esp + 0x1c], esi
jne 0x4a6112
lea ecx, [ebp + 0x2a0]
call fcn.00507195
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x3c], 0xffffffff
call dword [edx + 0x14]
mov eax, dword [esp + 0x18]
add eax, 8
push eax
call edi
mov ebx, dword [ebp + 0x25c]
mov dword [esp + 0x3c], 3
neg ebx
sbb ebx, ebx
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x4a6331
cmp ebx, 0xffffffff
mov ecx, ebx
jne 0x4a61b2
mov esi, dword [ebp + 0x258]
xor eax, eax
test esi, esi
jbe 0x4a61b2
mov edx, dword [ebp + 0x254]
mov ecx, dword [edx]
test ecx, ecx
jne 0x4a61b2
inc eax
add edx, 4
cmp eax, esi
jb 0x4a61a4
mov ebx, dword [ecx]
test ebx, ebx
mov dword [esp + 0x20], ebx
jne 0x4a61e5
mov eax, dword [ecx + 4]
mov esi, dword [ebp + 0x258]
inc eax
cmp eax, esi
jae 0x4a61e5
mov edx, dword [ebp + 0x254]
lea edx, [edx + eax*4]
mov ebx, dword [edx]
test ebx, ebx
mov dword [esp + 0x20], ebx
jne 0x4a61e5
inc eax
add edx, 4
cmp eax, esi
jb 0x4a61d3
mov esi, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.004d1940
mov eax, dword [esi + 0x3c8]
cmp eax, 0xffffffff
je 0x4a6275
cmp dword [eax*4 + 0x572b18], esi
jne 0x4a6217
mov ecx, dword [esi + 0x3bc]
mov dword [eax*4 + 0x572b18], ecx
mov ecx, dword [eax*4 + 0x572b0c]
lea eax, [eax*4 + 0x572b0c]
cmp ecx, esi
jne 0x4a6231
mov edx, dword [esi + 0x3c0]
mov dword [eax], edx
mov eax, dword [esi + 0x3bc]
xor ecx, ecx
cmp eax, ecx
mov dword [esi + 0x3c8], 0xffffffff
je 0x4a6253
mov edx, dword [esi + 0x3c0]
mov dword [eax + 0x3c0], edx
mov eax, dword [esi + 0x3c0]
cmp eax, ecx
je 0x4a6269
mov edx, dword [esi + 0x3bc]
mov dword [eax + 0x3bc], edx
mov dword [esi + 0x3bc], ecx
mov dword [esi + 0x3c0], ecx
push 0xf4240
lea eax, [esi + 0xc]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.004295c0
mov ecx, dword [esp + 0x2c]
mov edi, dword [esi + 0x248]
mov edx, dword [ecx]
call dword [edx + 0x14]
and edi, 0xffff0000
mov ecx, ebp
cmp edi, 0x20000
push esi
jne 0x4a62c2
call fcn.004c57b0
push 0
push 0x20003
mov ecx, esi
call fcn.004d1dc0
inc dword [esp + 0x14]
jmp 0x4a62df
call fcn.004c54d0
mov eax, dword [esp + 0x30]
lea ecx, [ebp + 0x250]
push eax
call fcn.004cfe30
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4a618b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a632b
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x10], eax
jl 0x4a60c0
or ebx, 0xffffffff
jmp 0x4a6341
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x18]
or ebx, 0xffffffff
mov dword [esp + 0x3c], ebx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, 0x572a70
call fcn.004e40e0
cmp dword [esp + 0x10], 0x3e8
jge 0x4a6395
push 0xf4240
push 0
push 0x5726ac
lea ecx, [esp + 0x3c]
call fcn.004295c0
mov ecx, dword [esp + 0x30]
mov esi, dword [0x5726a0]
mov eax, dword [ecx]
call dword [eax + 0x14]
test esi, esi
je 0x4a6395
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x10], eax
jl 0x4a6355
lea esi, [ebp + 0xdc]
mov dword [esp + 0x30], esi
lea ecx, [esi + 8]
push ecx
call edi
lea ecx, [ebp + 0x2bc]
mov dword [esp + 0x3c], 4
call fcn.00407b10
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x3c], ebx
call dword [edx + 0x14]
lea esi, [ebp + 0xfc]
mov dword [esp + 0x30], esi
lea eax, [esi + 8]
push eax
call edi
lea ecx, [ebp + 0x2e4]
mov dword [esp + 0x3c], 5
call fcn.00407b10
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x3c], ebx
call dword [edx + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret