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

Disassembly:
push 0xffffffffffffffff
push 0x77672a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0053de30
xor ebp, ebp
lea ebx, [edi + 0x40]
mov dword [edi], 0x885d3c
mov dword [esp + 0x1c], ebp
mov dword [ebx + 8], ebp
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [edi + 0x54], ebp
mov dword [edi + 0x4c], ebp
mov dword [edi + 0x50], ebp
mov dword [edi + 0x60], ebp
mov dword [edi + 0x58], ebp
mov dword [edi + 0x5c], ebp
mov dword [edi + 0x6c], ebp
mov dword [edi + 0x64], ebp
mov dword [edi + 0x68], ebp
mov dword [edi + 0x78], ebp
mov dword [edi + 0x70], ebp
mov dword [edi + 0x74], ebp
mov dword [edi + 0x84], ebp
mov dword [edi + 0x7c], ebp
mov dword [edi + 0x80], ebp
mov ecx, dword [esi + 0x40]
push 4
push ecx
lea eax, [ebx + 8]
push eax
lea edx, [ebx + 4]
push ebx
push edx
mov byte [esp + 0x30], 6
mov dword [esp + 0x38], eax
call fcn.0040e110
add esp, 0x14
cmp dword [esi + 0x40], ebp
je 0x504c93
mov eax, dword [ebx]
mov ecx, dword [esi + 0x48]
mov edx, dword [esp + 0x24]
add eax, eax
add eax, eax
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.0074dfc0
add esp, 0xc
mov ecx, dword [esi + 0x4c]
push 4
lea ebx, [edi + 0x4c]
push ecx
lea eax, [ebx + 8]
push eax
lea edx, [ebx + 4]
push ebx
push edx
mov dword [esp + 0x38], eax
call fcn.0040e110
add esp, 0x14
cmp dword [esi + 0x4c], ebp
je 0x504cd0
mov eax, dword [ebx]
mov ecx, dword [esi + 0x54]
mov edx, dword [esp + 0x24]
add eax, eax
add eax, eax
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.0074dfc0
add esp, 0xc
mov ecx, dword [esi + 0x58]
push 4
lea ebx, [edi + 0x58]
push ecx
lea eax, [ebx + 8]
push eax
lea edx, [ebx + 4]
push ebx
push edx
mov dword [esp + 0x38], eax
call fcn.0040e110
add esp, 0x14
cmp dword [esi + 0x58], ebp
je 0x504d0d
mov eax, dword [ebx]
mov ecx, dword [esi + 0x60]
mov edx, dword [esp + 0x24]
add eax, eax
add eax, eax
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.0074dfc0
add esp, 0xc
mov ecx, dword [esi + 0x64]
push 4
lea ebx, [edi + 0x64]
push ecx
lea eax, [ebx + 8]
push eax
lea edx, [ebx + 4]
push ebx
push edx
mov dword [esp + 0x38], eax
call fcn.0040e110
add esp, 0x14
cmp dword [esi + 0x64], ebp
je 0x504d4a
mov eax, dword [ebx]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x24]
add eax, eax
add eax, eax
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.0074dfc0
add esp, 0xc
mov ecx, dword [esi + 0x70]
push 4
lea ebx, [edi + 0x70]
push ecx
lea eax, [ebx + 8]
push eax
lea edx, [ebx + 4]
push ebx
push edx
mov dword [esp + 0x38], eax
call fcn.0040e110
add esp, 0x14
cmp dword [esi + 0x70], ebp
je 0x504d87
mov eax, dword [ebx]
mov ecx, dword [esi + 0x78]
mov edx, dword [esp + 0x24]
add eax, eax
add eax, eax
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.0074dfc0
add esp, 0xc
mov ecx, dword [esi + 0x7c]
push 4
lea ebx, [edi + 0x7c]
push ecx
lea eax, [ebx + 8]
push eax
lea edx, [ebx + 4]
push ebx
push edx
mov dword [esp + 0x38], eax
call fcn.0040e110
add esp, 0x14
cmp dword [esi + 0x7c], ebp
je 0x504dc7
mov eax, dword [ebx]
mov ecx, dword [esi + 0x84]
mov edx, dword [esp + 0x24]
add eax, eax
add eax, eax
push eax
mov eax, dword [edx]
push ecx
push eax
call fcn.0074dfc0
add esp, 0xc
mov cl, byte [esi + 0x88]
mov byte [edi + 0x88], cl
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4