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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081a0f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], edi
lea edx, [edi + 0x14]
mov dword [ebp - 0x28], edx
lea ecx, [edx + 0x2c]
xorps xmm0, xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x24], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
call fcn.100723e0
mov dword [edx + 0x68], 0
mov dword [edx + 0x70], 0
mov dword [edx + 0x6c], 0
mov dword [edx + 0xc8], 0
mov dword [edx + 0xcc], 0
mov dword [edx + 0xd0], 0
mov dword [edx + 0xd4], 0
mov dword [edx + 0xd8], 0
mov dword [edx + 0xdc], 0
lea eax, [edx + 0xe4]
mov ecx, 6
mov dword [eax + 4], 0
lea eax, [eax + 0x18]
mov dword [eax - 0x18], 0
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov dword [eax - 0xc], 0
mov dword [eax - 0x10], 0
sub ecx, 1
jne 0x10066120
mov ecx, edx
call fcn.10072510
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 3
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
sub eax, ecx
mov dword [ebp - 0x30], 0x260
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
sar eax, 2
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100661cc
push eax
lea ecx, [ebp - 0x1c]
call fcn.10021ce0
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x28]
add esp, 0xc
lea eax, [esi + eax*4]
mov dword [ebp - 0x18], eax
sub esp, 0xc
mov byte [ebp - 4], 4
mov esi, esp
mov dword [ebp - 0x28], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
je 0x10066225
push eax
mov ecx, esi
call fcn.10021ce0
mov edi, dword [esi]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub esi, eax
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x28]
add esp, 0xc
sar esi, 2
lea eax, [edi + esi*4]
mov edi, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov ecx, 0xd78d54
call fcn.10014fb0
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0xc
mov dword [edi], eax
push 4
push eax
call esi
test eax, eax
je 0x1006624e
mov dword [edi], 0
jmp 0x10066416
lea ecx, [edi + 0x14]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
call fcn.10072510
mov ecx, edi
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1ac], 0
call fcn.10066470
mov ecx, edi
call fcn.10068180
cmp dword [0x100937c0], 0
jne 0x100662d6
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100662d6
push 4
push eax
call esi
test eax, eax
jne 0x100662d6
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x54
push eax
call esi
test eax, eax
jne 0x100662d6
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x54
mov dword [ebp - 0x24], eax
je 0x100662d6
mov eax, dword [eax]
push 4
push eax
mov dword [0x100937c0], eax
call esi
test eax, eax
jne 0x100662d6
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x100686a0
cmp dword [0x100937b8], 0
jne 0x10066326
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10066326
push 4
push eax
call esi
test eax, eax
jne 0x10066326
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x64
push eax
call esi
test eax, eax
jne 0x10066326
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x64
mov dword [ebp - 0x24], eax
je 0x10066326
mov eax, dword [eax]
push 4
push eax
mov dword [0x100937b8], eax
call esi
test eax, eax
jne 0x10066326
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x10069b40
cmp dword [0x100937b0], 0
jne 0x10066376
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10066376
push 4
push eax
call esi
test eax, eax
jne 0x10066376
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x6c
push eax
call esi
test eax, eax
jne 0x10066376
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x6c
mov dword [ebp - 0x24], eax
je 0x10066376
mov eax, dword [eax]
push 4
push eax
mov dword [0x100937b0], eax
call esi
test eax, eax
jne 0x10066376
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x10069ea0
cmp dword [0x100937a0], 0
jne 0x100663c6
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100663c6
push 4
push eax
call esi
test eax, eax
jne 0x100663c6
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x70
push eax
call esi
test eax, eax
jne 0x100663c6
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x70
mov dword [ebp - 0x24], eax
je 0x100663c6
mov eax, dword [eax]
push 4
push eax
mov dword [0x100937a0], eax
call esi
test eax, eax
jne 0x100663c6
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x1006ad10
cmp dword [0x10093798], 0
jne 0x10066416
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10066416
push 4
push eax
call esi
test eax, eax
jne 0x10066416
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x78
push eax
call esi
test eax, eax
jne 0x10066416
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, 0x78
mov dword [ebp - 0x24], eax
je 0x10066416
mov eax, dword [eax]
push 4
push eax
mov dword [0x10093798], eax
call esi
test eax, eax
jne 0x10066416
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x1006b050
lea ecx, [ebp - 0x1c]
call fcn.10009460
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007d0a4
mov esp, ebp
pop ebp
ret