Function at 0x4ba0e4
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ba492
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
lea eax, [ebx + 0x3c]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x40]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x44]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x48]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x4c]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x50]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x54]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x58]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x5c]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x60]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x64]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x68]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x6c]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x74]
mov ecx, 1
mov edx, dword [0x46adf0]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x78]
mov ecx, 1
mov edx, dword [0x46ae88]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x7c]
mov ecx, 1
mov edx, dword [0x46ae88]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x88]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x8c]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x90]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x94]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x98]
mov ecx, 1
mov edx, dword [0x46ae58]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x9c]
mov ecx, 1
mov edx, dword [0x46ae24]
call fcn.00406908
add esp, 4
mov eax, dword [ebx + 0x30]
cmp esi, eax
jge 0x4ba3d6
mov edi, esi
dec eax
sub eax, edi
jl 0x4ba383
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x80]
mov edx, dword [eax + edi*4]
mov eax, ebx
call fcn.004ba0dc
mov eax, dword [ebx + 0x80]
lea eax, [eax + edi*4]
call fcn.00410c0c
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + edi*4]
push eax
mov eax, dword [eax]
call dword [eax + 0x68]
call fcn.00407178
mov eax, dword [ebx + 0xa0]
lea eax, [eax + edi*4]
call fcn.00407068
inc edi
dec dword [ebp - 4]
jne 0x4ba33d
push esi
lea eax, [ebx + 0x80]
mov ecx, 1
mov edx, dword [0x46aec0]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x84]
mov ecx, 1
mov edx, dword [0x46adf0]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0xa0]
mov ecx, 1
mov edx, dword [0x4b9a3c]
call fcn.00406908
add esp, 4
jmp 0x4ba47c
cmp eax, esi
jge 0x4ba47c
push esi
lea eax, [ebx + 0x80]
mov ecx, 1
mov edx, dword [0x46aec0]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0x84]
mov ecx, 1
mov edx, dword [0x46adf0]
call fcn.00406908
add esp, 4
push esi
lea eax, [ebx + 0xa0]
mov ecx, 1
mov edx, dword [0x4b9a3c]
call fcn.00406908
add esp, 4
mov edi, dword [ebx + 0x30]
dec esi
sub esi, edi
jl 0x4ba47c
inc esi
mov dword [ebp - 4], esi
mov dl, 1
mov eax, dword [0x41e618]
call fcn.00420e80
mov edx, dword [ebx + 0x80]
mov dword [edx + edi*4], eax
lea edx, [ebp - 8]
mov eax, dword [0x45b2f4]
call fcn.0045b960
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0xa0]
lea eax, [eax + edi*4]
call fcn.00407080
mov eax, dword [ebx + 0x84]
xor edx, edx
mov dword [eax + edi*4], edx
inc edi
dec dword [ebp - 4]
jne 0x4ba438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba499
lea eax, [ebp - 8]
call fcn.00407068
ret