Function at 0x10060660
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10179e59
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101cc114]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cc114]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0xbc]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x8c], 1
xchg ebx, eax
xchg ebx, eax
push eax
lea ecx, [esp + 0x18]
call fcn.10043870
mov byte [esp + 0x8c], 2
mov cl, cl
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
jne 0x1006075e
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov esi, 0xf
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push eax
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.10009fb0
mov dword [esp + 0x30], 1
mov byte [esp + 0x8c], 1
lea ecx, [esp + 0x14]
call fcn.1001fcf0
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x7c], 0x10
jb 0x10060755
mov ecx, dword [esp + 0x68]
push ecx
call fcn.1010959d
add esp, 4
mov dword [esp + 0x7c], esi
jmp 0x100609c3
push esi
call fcn.100556c0
add esp, 4
mov dh, dh
mov edx, dword [esi + 0x224]
mov dword [esp + 0x38], edx
mov ecx, ecx
lea eax, [esi + 0x90]
mov dword [esi + 0x224], eax
mov bh, bh
mov ecx, dword [esi + 0x224]
mov ebx, dword [ecx + 0x190]
call fcn.100523f0
mov ch, ch
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x14]
push edx
push eax
push edi
push ecx
lea edx, [esp + 0x54]
push esi
push edx
call fcn.1005bf20
add esp, 0x18
mov byte [esp + 0x8c], 3
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x100607d1
mov eax, dword [eax + 4]
jmp 0x100607d4
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.10043870
mov byte [esp + 0x8c], 5
cmp dword [esp + 0x5c], edi
jb 0x100607f9
mov eax, dword [esp + 0x48]
push eax
call fcn.1010959d
add esp, 4
xor ebx, ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
push ecx
pop ecx
lea ecx, [esp + 0x1c]
call fcn.1010c8ec
mov byte [esp + 0x8c], 6
push ebx
pop ebx
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x10181488
push edx
call fcn.1005eb40
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x3c], ecx
mov ecx, ecx
mov ch, ch
xor edi, edi
cmp ecx, ebx
jle 0x1006088b
mov eax, dword [esp + 0x20]
lea esp, [esp]
cmp edi, ebx
jl 0x100609ef
cmp edi, dword [esp + 0x24]
jge 0x100609ef
mov edx, dword [eax + edi*4]
cmp dword [edx - 0xc], ebx
jle 0x10060884
push 1
mov eax, edx
push eax
push 0x64
push esi
call fcn.1005f280
add esp, 0x10
xchg ebx, eax
xchg ebx, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
add edi, 1
cmp edi, ecx
jl 0x10060850
fld qword [esp + 0xb4]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xa8]
push ebx
sub esp, 8
fstp qword [esp]
push eax
mov eax, dword [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xb4]
push eax
push ecx
push edx
push 0x64
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.1005f590
add esp, 0x30
mov byte [esp + 0x8c], 7
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.10009fb0
mov byte [esp + 0x8c], 6
cmp dword [esp + 0x5c], 0x10
jb 0x10060904
mov ecx, dword [esp + 0x48]
push ecx
call fcn.1010959d
add esp, 4
mov edi, 0xf
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov bh, bh
mov edx, dword [esp + 0x38]
mov dword [esi + 0x224], edx
push edx
pop edx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
push eax
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.10009fb0
mov dword [esp + 0x30], 1
mov byte [esp + 0x8c], 5
lea ecx, [esp + 0x1c]
call fcn.1010cc34
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006097c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100609a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x7c], 0x10
jb 0x100609bf
mov ecx, dword [esp + 0x68]
push ecx
call fcn.1010959d
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov eax, ebp
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10117937
add esp, 0x7c
ret
jmp fcn.1010967c