Function at 0x10021330
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10382db0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10444724]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov edx, esp
mov dword [ebp + 0xc], 0
push ecx
mov dword [ebp - 4], 0
mov dword [edx], eax
call fcn.102d93e0
mov edx, dword [ebp - 0x10]
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [edx + 4], 1
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov byte [edx + 0x14], 0
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
lea ecx, [edx + 0x1c]
mov dword [edx], vtable.ProLevelsEffectAdapter.0
lea esi, [edx + 0x30]
mov dword [ecx], 0
lea edi, [edx + 0x44]
mov dword [ecx + 4], 0x3f800000
lea ebx, [edx + 0x58]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0x3f800000
mov dword [ecx + 0x10], 0x3f800000
mov dword [esi], 0
mov dword [esi + 4], 0x3f800000
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x3f800000
mov dword [esi + 0x10], 0x3f800000
mov dword [edi], 0
mov dword [edi + 4], 0x3f800000
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0x3f800000
mov dword [edi + 0x10], 0x3f800000
mov dword [ebx], 0
mov dword [ebx + 4], 0x3f800000
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0x3f800000
mov dword [ebx + 0x10], 0x3f800000
push ecx
mov dword [edx + 0x6c], 0
lea ecx, [ebp - 0x20]
mov dword [edx + 0x70], 0x3f800000
mov dword [edx + 0x74], 0
mov dword [edx + 0x78], 0x3f800000
mov dword [edx + 0x7c], 0x3f800000
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push 3
mov byte [ebp - 4], 2
mov dword [edx + 0x80], 0x3f800000
mov dword [edx + 0x84], 0x3f800000
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.1001b820
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
push ecx
push 4
mov ecx, eax
call fcn.1001b820
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
push ecx
push 5
mov ecx, eax
call fcn.1001b820
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
push ecx
push 6
mov ecx, eax
call fcn.1001b820
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
push ecx
push 7
mov ecx, eax
call fcn.1001b820
push esi
push 0xa
mov ecx, eax
call fcn.1001b820
mov esi, dword [ebp - 0x10]
lea ecx, [esi + 0x34]
push ecx
push 0xb
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x40]
push ecx
push 0xc
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x38]
push ecx
push 0xd
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x3c]
push ecx
push 0xe
mov ecx, eax
call fcn.1001b820
push edi
push 0x11
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x48]
push ecx
push 0x12
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x54]
push ecx
push 0x13
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x4c]
push ecx
push 0x14
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x50]
push ecx
push 0x15
mov ecx, eax
call fcn.1001b820
push ebx
push 0x18
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x5c]
push ecx
push 0x19
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x68]
push ecx
push 0x1a
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x60]
push ecx
push 0x1b
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x64]
push ecx
push 0x1c
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x6c]
push ecx
push 0x1f
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x70]
push ecx
push 0x20
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x7c]
push ecx
push 0x21
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x74]
push ecx
push 0x22
mov ecx, eax
call fcn.1001b820
lea ecx, [esi + 0x78]
push ecx
push 0x23
mov ecx, eax
call fcn.1001b820
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x100215fe
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x100215fe
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc