Function at 0x486060
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d1dc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.00474d80
mov dword [esp + 0x28], 0
mov dword [esi], 0x5e63f0
call fcn.00401020
mov eax, dword [eax + 4]
lea edi, [esi + 8]
push 1
push 0x60ba48
mov ecx, edi
mov dword [esi + 4], eax
call fcn.00558740
lea ebp, [esi + 0xc]
push 1
push 0x60aa14
mov ecx, ebp
call fcn.00558740
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
call fcn.00558070
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 4]
call fcn.00412ba0
lea ecx, [esp + 0x14]
call fcn.005581a0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.00558070
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
call fcn.00412c20
lea ecx, [esp + 0x14]
call fcn.005581a0
push 4
push 0x60aa28
lea ecx, [esi + 0x64]
call fcn.00558600
lea ecx, [esp + 0x10]
call fcn.00558060
push 2
push 0x609400
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00558600
mov eax, dword [esi + 0x78]
lea edi, [esi + 0x70]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 1
push 0x60af90
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 1
push 0x619c10
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 2
push 0x60bb4c
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 1
push 0x619c10
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 2
push 0x60bb48
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x60ae74
call fcn.00558100
lea ecx, [esi + 0x84]
call fcn.00558390
lea edi, [esi + 0x68]
push 1
push 0x60bb44
mov ecx, edi
call fcn.00558600
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
call fcn.00558070
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
call fcn.00412ca0
lea ecx, [esp + 0x14]
call fcn.005581a0
push 2
push 0x60aa08
lea ecx, [esi + 0x6c]
call fcn.00558600
push 4
push 0x60aa00
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 0x5c]
lea edi, [esi + 0x54]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 5
push 0x60bb3c
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 5
push 0x60bb34
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 5
push 0x60bb2c
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.00402a90
lea ebx, [esi + 0x40]
push 2
push 0x60a9e4
mov ecx, ebx
call fcn.00558600
push 2
push 0x60ab64
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 0x4c]
lea ebp, [esi + 0x44]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.00402a90
push 5
push 0x60bb24
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, ebp
call fcn.00402a90
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x60bb1c
call fcn.00558100
lea ecx, [esi + 0x14]
call fcn.00558390
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x60bb14
call fcn.00558100
lea ecx, [esi + 0x10]
call fcn.00558390
push 4
push 0x60aa00
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 5
push 0x60bb3c
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 5
push 0x60bb34
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 3
push 0x60bb10
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.00402a90
push 2
push 0x60a9e4
mov ecx, ebx
call fcn.00558600
push 2
push 0x60a9e0
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x4864d5
mov ecx, ebp
call fcn.0056e680
cmp eax, 1
jbe 0x486441
mov ecx, ebp
call fcn.0056e680
mov ebx, eax
jmp 0x486446
mov ebx, 1
mov ecx, ebp
call fcn.0056e680
add eax, ebx
mov dword [esp + 0x18], eax
jns 0x486457
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.005bcf2f
add esp, 4
mov ebx, eax
mov eax, dword [ebp + 4]
mov ecx, ebp
push ebx
push edi
push eax
call fcn.00402d20
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
push 1
push eax
mov ecx, ebp
call fcn.00402d60
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
add edx, 4
mov ecx, ebp
push edx
push eax
push edi
call fcn.00402d20
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
push ecx
push edx
mov ecx, ebp
call fcn.00402cf0
mov eax, dword [ebp + 4]
push eax
call fcn.005bc500
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [ebx + eax*4]
mov dword [ebp + 0xc], ecx
mov ecx, ebp
call fcn.0056e680
lea edx, [ebx + eax*4 + 4]
mov dword [ebp + 4], ebx
mov dword [ebp + 8], edx
jmp 0x486552
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x486521
lea edx, [edi + 4]
mov ecx, ebp
push edx
push eax
push edi
call fcn.00402d20
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, ebp
call fcn.00402d60
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.00402d90
add esp, 0xc
jmp 0x48654e
push eax
push eax
add eax, 0xfffffffc
mov ecx, ebp
push eax
call fcn.00402d20
mov eax, dword [ebp + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.00402dd0
lea ecx, [esp + 0x1c]
lea edx, [edi + 4]
push ecx
push edx
push edi
call fcn.00402d90
add esp, 0x18
add dword [ebp + 8], 4
push 5
push 0x60bb08
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x486628
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x486594
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x486594
mov ecx, ebp
call fcn.0056e680
mov ebx, eax
jmp 0x486599
mov ebx, 1
mov ecx, ebp
call fcn.0056e680
add eax, ebx
mov dword [esp + 0x14], eax
jns 0x4865aa
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.005bcf2f
add esp, 4
mov ebx, eax
mov eax, dword [ebp + 4]
mov ecx, ebp
push ebx
push edi
push eax
call fcn.00402d20
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
push ecx
push 1
push eax
mov ecx, ebp
call fcn.00402d60
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
add edx, 4
mov ecx, ebp
push edx
push eax
push edi
call fcn.00402d20
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
push ecx
push edx
mov ecx, ebp
call fcn.00402cf0
mov eax, dword [ebp + 4]
push eax
call fcn.005bc500
mov eax, dword [esp + 0x18]
add esp, 4
lea ecx, [ebx + eax*4]
mov dword [ebp + 0xc], ecx
mov ecx, ebp
call fcn.0056e680
lea edx, [ebx + eax*4 + 4]
mov dword [ebp + 4], ebx
mov dword [ebp + 8], edx
jmp 0x4866a5
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x486674
lea edx, [edi + 4]
mov ecx, ebp
push edx
push eax
push edi
call fcn.00402d20
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, ebp
call fcn.00402d60
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.00402d90
add esp, 0xc
jmp 0x4866a1
push eax
push eax
add eax, 0xfffffffc
mov ecx, ebp
push eax
call fcn.00402d20
mov eax, dword [ebp + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.00402dd0
lea ecx, [esp + 0x1c]
lea edx, [edi + 4]
push ecx
push edx
push edi
call fcn.00402d90
add esp, 0x18
add dword [ebp + 8], 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.005581a0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret