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

Disassembly:
push 0xffffffffffffffff
push 0x4a9cc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x110]
mov edx, dword [0x4c2084]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [esp + 0x1c], 0x18
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d9bd
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40d9bd
mov eax, dword [esi + 0x110]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esi + 0x10c]
mov ecx, dword [0x4c2084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40d9ec
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40d9ec
mov eax, dword [esi + 0x10c]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esi + 0x108]
mov edx, dword [0x4c2084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40da1b
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40da1b
mov eax, dword [esi + 0x108]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esi + 0x104]
mov ecx, dword [0x4c2084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40da4a
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40da4a
mov eax, dword [esi + 0x104]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esi + 0x100]
mov edx, dword [0x4c2084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40da79
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40da79
mov eax, dword [esi + 0x100]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov edx, dword [esi + 0xf8]
mov eax, dword [esi + 0xf4]
lea edi, [esi + 0xf0]
push edx
push eax
mov ecx, edi
call fcn.004102e0
mov eax, dword [edi + 4]
push eax
call fcn.00442ac0
xor ebx, ebx
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov ecx, dword [esi + 0xe8]
mov edx, dword [esi + 0xe4]
lea edi, [esi + 0xe0]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x24], 0x17
call fcn.004102e0
mov eax, dword [edi + 4]
push eax
call fcn.00442ac0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [esi + 0xc8]
mov edx, dword [0x4c2084]
add esp, 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40db0f
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40db0f
mov eax, dword [esi + 0xc8]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esi + 0xb8]
mov ecx, dword [0x4c2084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40db3e
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40db3e
mov eax, dword [esi + 0xb8]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
lea edi, [esi + 0x78]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x24], 0x14
call fcn.004102e0
mov eax, dword [edi + 4]
push eax
call fcn.00442ac0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [esi + 0x74]
mov ecx, dword [0x4c2084]
add esp, 4
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40db96
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40db96
mov eax, dword [esi + 0x74]
sub eax, 0xc
push eax
call fcn.00442ac0
add esp, 4
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 0x12
call fcn.004056c0
lea ecx, [esi + 0x6c]
mov byte [esp + 0x1c], 0x11
call fcn.004056c0
lea ecx, [esi + 0x68]
mov byte [esp + 0x1c], 0x10
call fcn.004056c0
lea ecx, [esi + 0x64]
mov byte [esp + 0x1c], 0xf
call fcn.004056c0
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 0xe
call fcn.004056c0
lea ecx, [esi + 0x5c]
mov byte [esp + 0x1c], 0xd
call fcn.004056c0
lea ecx, [esi + 0x58]
mov byte [esp + 0x1c], 0xc
call fcn.004056c0
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 0xb
call fcn.004056c0
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 0xa
call fcn.004100b0
lea ecx, [esi + 0x40]
mov byte [esp + 0x1c], 9
call fcn.004056c0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 8
call fcn.004056c0
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 7
call fcn.004056c0
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 6
call fcn.004056c0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 5
call fcn.004056c0
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 4
call fcn.004056c0
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 3
call fcn.004056c0
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 2
call fcn.004056c0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 1
call fcn.004056c0
lea ecx, [esi + 4]
mov byte [esp + 0x1c], bl
call fcn.0043b390
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.004056c0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret