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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x48655d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
test dl, dl
je 0x486576
add esp, 0xfffffff0
call fcn.004044d8
mov byte [ebp - 1], dl
mov esi, eax
mov ebx, 0x48d084
xor eax, eax
push ebp
push 0x48697b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.0041fe14
mov eax, dword [ebp + 0xc]
mov dword [0x48d078], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x34], eax
lea edx, [ebp - 8]
mov eax, 0x4869ac
call fcn.00457a78
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00405024
lea edx, [ebp - 0xc]
mov eax, 0x4869c4
call fcn.00457a78
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 4]
call fcn.00405024
lea edx, [ebp - 0x10]
mov eax, 0x4869dc
call fcn.00457a78
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 8]
call fcn.00405024
lea edx, [ebp - 0x14]
mov eax, 0x486a1c
call fcn.00457a78
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0xc]
call fcn.00405024
lea edx, [ebp - 0x18]
mov eax, 0x486a34
call fcn.00457a78
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x10]
call fcn.00405024
lea edx, [ebp - 0x1c]
mov eax, 0x486a4c
call fcn.00457a78
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x14]
call fcn.00405024
lea edx, [ebp - 0x20]
mov eax, 0x486a68
call fcn.00457a78
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x18]
call fcn.00405024
lea edx, [ebp - 0x24]
mov eax, 0x486ab0
call fcn.00457a78
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x1c]
call fcn.00405024
lea edx, [ebp - 0x28]
mov eax, 0x486ac8
call fcn.00457a78
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x20]
call fcn.00405024
lea edx, [ebp - 0x2c]
mov eax, 0x486ae0
call fcn.00457a78
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x24]
call fcn.00405024
lea edx, [ebp - 0x30]
mov eax, 0x486af8
call fcn.00457a78
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x28]
call fcn.00405024
lea edx, [ebp - 0x34]
mov eax, 0x486b18
call fcn.00457a78
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x2c]
call fcn.00405024
lea edx, [ebp - 0x38]
mov eax, 0x486b30
call fcn.00457a78
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x30]
call fcn.00405024
lea edx, [ebp - 0x3c]
mov eax, 0x486b48
call fcn.00457a78
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x34]
call fcn.00405024
lea edx, [ebp - 0x40]
mov eax, 0x486b64
call fcn.00457a78
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x38]
call fcn.00405024
lea edx, [ebp - 0x44]
mov eax, 0x486b80
call fcn.00457a78
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x3c]
call fcn.00405024
lea edx, [ebp - 0x48]
mov eax, 0x486ba0
call fcn.00457a78
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x40]
call fcn.00405024
lea edx, [ebp - 0x4c]
mov eax, 0x486bc0
call fcn.00457a78
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x44]
call fcn.00405024
lea edx, [ebp - 0x50]
mov eax, 0x486be0
call fcn.00457a78
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x48]
call fcn.00405024
lea edx, [ebp - 0x54]
mov eax, 0x486bf8
call fcn.00457a78
mov edx, dword [ebp - 0x54]
lea eax, [ebx + 0x4c]
call fcn.00405024
lea edx, [ebp - 0x58]
mov eax, 0x486c14
call fcn.00457a78
mov edx, dword [ebp - 0x58]
lea eax, [ebx + 0x50]
call fcn.00405024
lea edx, [ebp - 0x5c]
mov eax, 0x486c2c
call fcn.00457a78
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0x54]
call fcn.00405024
lea edx, [ebp - 0x60]
mov eax, 0x486c48
call fcn.00457a78
mov edx, dword [ebp - 0x60]
lea eax, [ebx + 0x58]
call fcn.00405024
lea edx, [ebp - 0x64]
mov eax, 0x486c6c
call fcn.00457a78
mov edx, dword [ebp - 0x64]
lea eax, [ebx + 0x5c]
call fcn.00405024
lea edx, [ebp - 0x68]
mov eax, 0x486c80
call fcn.00457a78
mov edx, dword [ebp - 0x68]
lea eax, [ebx + 0x60]
call fcn.00405024
lea edx, [ebp - 0x6c]
mov eax, 0x486c94
call fcn.00457a78
mov edx, dword [ebp - 0x6c]
lea eax, [ebx + 0x64]
call fcn.00405024
lea edx, [ebp - 0x70]
mov eax, 0x486ca8
call fcn.00457a78
mov edx, dword [ebp - 0x70]
lea eax, [ebx + 0x68]
call fcn.00405024
lea edx, [ebp - 0x74]
mov eax, 0x486cbc
call fcn.00457a78
mov edx, dword [ebp - 0x74]
lea eax, [ebx + 0x6c]
call fcn.00405024
lea edx, [ebp - 0x78]
mov eax, 0x486cd0
call fcn.00457a78
mov edx, dword [ebp - 0x78]
lea eax, [ebx + 0x70]
call fcn.00405024
lea edx, [ebp - 0x7c]
mov eax, 0x486cec
call fcn.00457a78
mov edx, dword [ebp - 0x7c]
lea eax, [ebx + 0x74]
call fcn.00405024
lea edx, [ebp - 0x80]
mov eax, 0x486d04
call fcn.00457a78
mov edx, dword [ebp - 0x80]
lea eax, [ebx + 0x78]
call fcn.00405024
lea edx, [ebp - 0x84]
mov eax, 0x486d20
call fcn.00457a78
mov edx, dword [ebp - 0x84]
lea eax, [ebx + 0x7c]
call fcn.00405024
lea edx, [ebp - 0x88]
mov eax, 0x486d3c
call fcn.00457a78
mov edx, dword [ebp - 0x88]
lea eax, [ebx + 0x80]
call fcn.00405024
cmp dword [esi + 0x30], 0
jne 0x4868e2
mov ecx, esi
mov dl, 1
mov eax, dword [0x42d920]
call fcn.0042da34
mov dword [esi + 0x30], eax
mov ebx, dword [esi + 0x30]
xor edx, edx
mov eax, ebx
call fcn.0042dbbc
push esi
push 0x486edc
mov eax, ebx
call fcn.0042dbdc
mov edx, 0x493e0
mov eax, ebx
call fcn.0042dbcc
cmp dword [0x48d074], 0
jne 0x486921
mov dl, 1
mov eax, dword [0x464860]
call fcn.00464c0c
mov dword [0x48d074], eax
mov eax, dword [0x48d074]
mov dword [eax + 0x1c], esi
mov dword [eax + 0x18], 0x486f1c
mov eax, dword [0x48d074]
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], 0x487110
mov eax, dword [0x48d074]
mov dword [eax + 0x2c], esi
mov dword [eax + 0x28], 0x487118
mov eax, dword [0x48d074]
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], 0x487114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486982
lea eax, [ebp - 0x88]
mov edx, 0x21
call fcn.00404ff4
ret