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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10018246
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1001f0b0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x1001f0b0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x1001bf34
lea eax, [esp + 0x58]
mov dword [esp + 0x20], esi
call fcn.10003059
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push esi
mov edi, 0x1001ba00
push eax
mov dword [esp + 0x64], edi
call fcn.10001aa9
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.100031c0
and dword [esp + 0x90], 0
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0x24]
mov byte [esp + 0x24], 0
call fcn.10005eb6
mov esi, dword [esp + 0x20]
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x28]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000491a
mov ecx, esi
lea eax, [esp + 0x30]
call fcn.10003059
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
mov ebx, 0x1001bf38
push ebx
push eax
mov dword [esp + 0x3c], edi
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x20]
mov byte [esp + 0x90], 2
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001bf40
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
mov esi, dword [esp + 0x20]
lea edi, [esi + 0x24]
mov byte [esp + 0x90], 3
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ebx
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x28]
mov byte [esp + 0x90], 4
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push 0x1001bf74
lea eax, [esi + 0x2c]
push eax
call fcn.10001cd2
push 0x1001bf84
lea eax, [esi + 0x30]
push eax
call fcn.10001cd2
push 0x7d
pop ebx
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001bf94
push eax
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], ebx
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x3c]
mov byte [esp + 0x90], 5
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001bfa8
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x40]
mov byte [esp + 0x90], 6
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001bf40
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x44]
mov byte [esp + 0x90], 7
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001bfc0
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x48]
mov byte [esp + 0x90], 8
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c038
push eax
mov dword [esi + 0x4c], ebx
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x50]
mov byte [esp + 0x90], 9
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c0a0
push eax
mov dword [esi + 0x54], ebx
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x58]
mov byte [esp + 0x90], 0xa
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001bf40
push eax
mov dword [esi + 0x5c], ebx
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x60]
mov byte [esp + 0x90], 0xb
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c0f0
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x64]
mov byte [esp + 0x90], 0xc
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c0fc
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
mov byte [esp + 0x90], 0xd
lea edi, [esi + 0x68]
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c108
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x6c]
mov byte [esp + 0x90], 0xe
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c114
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x70]
mov byte [esp + 0x90], 0xf
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c130
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x74]
mov byte [esp + 0x90], 0x10
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c13c
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x78]
mov byte [esp + 0x90], 0x11
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c148
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x7c]
mov byte [esp + 0x90], 0x12
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c164
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x80]
mov byte [esp + 0x90], 0x13
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c198
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x84]
mov byte [esp + 0x90], 0x14
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c1cc
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x88]
mov byte [esp + 0x90], 0x15
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c1fc
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x8c]
mov byte [esp + 0x90], 0x16
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c230
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x90]
mov byte [esp + 0x90], 0x17
call fcn.10001ae6
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1001c278
push eax
call fcn.10001aa9
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100031c0
lea edi, [esi + 0x94]
mov byte [esp + 0x90], 0x18
call fcn.10001ae6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.100021af
lea eax, [esp + 0x24]
call fcn.10005ee7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.100021af
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1000696c
mov esp, ebp
pop ebp
ret