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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x65aa70
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x65b056
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x419954]
call fcn.00404054
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65b031
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 0x3a
mov eax, dword [ebp - 4]
call fcn.0041e238
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push ebp
lea edx, [ebp - 0xc]
mov eax, 0x65b06c
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x30]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x10]
mov eax, 0x65b07c
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x10]
lea eax, [esi + 0x34]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x14]
mov eax, 0x65b094
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x38]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x18]
mov eax, 0x65b0ac
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x18]
lea eax, [esi + 0x3c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x1c]
mov eax, 0x65b0c4
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x1c]
lea eax, [esi + 0x40]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x20]
mov eax, 0x65b0d4
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x20]
lea eax, [esi + 0x44]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x24]
mov eax, 0x65b0ec
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x24]
lea eax, [esi + 0x48]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x28]
mov eax, 0x65b104
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x28]
lea eax, [esi + 0x4c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x2c]
mov eax, 0x65b118
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x2c]
lea eax, [esi + 0x50]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x30]
mov eax, 0x65b134
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x30]
lea eax, [esi + 0x54]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x34]
mov eax, 0x65b150
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x34]
lea eax, [esi + 0x58]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x38]
mov eax, 0x65b168
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x38]
lea eax, [esi + 0x5c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x3c]
mov eax, 0x65b184
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x3c]
lea eax, [esi + 0x60]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x40]
mov eax, 0x65b198
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x40]
lea eax, [esi + 0x64]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x44]
mov eax, 0x65b1b0
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x44]
lea eax, [esi + 0x68]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x48]
mov eax, 0x65b1c8
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x48]
lea eax, [esi + 0x6c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x4c]
mov eax, 0x65b1d8
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x4c]
lea eax, [esi + 0x70]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x50]
mov eax, 0x65b1e8
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x50]
lea eax, [esi + 0x74]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x54]
mov eax, 0x65b1f8
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x54]
lea eax, [esi + 0x78]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x58]
mov eax, 0x65b208
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x58]
lea eax, [esi + 0x7c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x5c]
mov eax, 0x65b218
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x5c]
lea eax, [esi + 0x80]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x60]
mov eax, 0x65b22c
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x60]
lea eax, [esi + 0x84]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x64]
mov eax, 0x65b248
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x64]
lea eax, [esi + 0x88]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x68]
mov eax, 0x65b260
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x68]
lea eax, [esi + 0x8c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x6c]
mov eax, 0x65b274
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x6c]
lea eax, [esi + 0x90]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x70]
mov eax, 0x65b290
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x70]
lea eax, [esi + 0x94]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x74]
mov eax, 0x65b2a8
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x74]
lea eax, [esi + 0x98]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x78]
mov eax, 0x65b2c0
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x78]
lea eax, [esi + 0x9c]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x7c]
mov eax, 0x65b2d0
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x7c]
lea eax, [esi + 0xa0]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x80]
mov eax, 0x65b2ec
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x80]
lea eax, [esi + 0xa4]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x84]
mov eax, 0x65b2fc
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x84]
lea eax, [esi + 0xa8]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x88]
mov eax, 0x65b30c
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x88]
lea eax, [esi + 0xac]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x8c]
mov eax, 0x65b318
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x8c]
lea eax, [esi + 0xb0]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x90]
mov eax, 0x65b328
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x90]
lea eax, [esi + 0xb4]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x94]
mov eax, 0x65b344
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x94]
lea eax, [esi + 0xb8]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x98]
mov eax, 0x65b354
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x98]
lea eax, [esi + 0xbc]
call fcn.00404f48
push ebp
lea edx, [ebp - 0x9c]
mov eax, 0x65b368
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0x9c]
lea eax, [esi + 0xc0]
call fcn.00404f48
push ebp
lea edx, [ebp - 0xa0]
mov eax, 0x65b374
call fcn.0065a9d4
pop ecx
mov edx, dword [ebp - 0xa0]
lea eax, [esi + 0xc4]
call fcn.00404f48
mov eax, dword [esi + 0xcc]
call fcn.0041ca00
mov edx, 0x65b384
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov ebx, eax
test ebx, ebx
jl 0x65afa2
lea ecx, [ebp - 0xa8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041e254
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.00409b04
cmp dword [ebp - 0xa4], 0
je 0x65af85
lea ecx, [ebp - 0xb0]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041e254
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.00409b04
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [esi + 0xcc]
call fcn.006588b0
pop edx
call fcn.006585e8
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x65b384
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov ebx, eax
test ebx, ebx
jge 0x65af22
mov eax, dword [esi + 0xc8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x65b011
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
lea ecx, [ebp - 0xb8]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.00409b04
cmp dword [ebp - 0xb4], 0
je 0x65b00b
lea ecx, [ebp - 0xbc]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0xbc]
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec dword [ebp - 8]
jne 0x65afc0
or edx, 0xffffffff
mov eax, esi
call fcn.00659714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65b038
mov eax, dword [ebp - 4]
call fcn.00404084
ret