Function at 0x408e90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4501cd
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x46718c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
cmp byte [edi + 0xe], 0
jne 0x40917f
cmp byte [edi + 0xd], 0
jne 0x40917f
mov edx, dword [edi + 8]
cmp edx, 0xffffffff
je 0x40917f
mov esi, dword [edi]
cmp dword [esi + 0x10], 0
je 0x408eec
mov eax, dword [esi + 8]
add eax, edx
jmp 0x408eee
xor eax, eax
cmp byte [eax], 5
jne 0x40917f
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0xe], 0
jne 0x408f30
cmp byte [ecx + 0xd], 0
jne 0x40917f
mov ebx, dword [ecx + 8]
cmp ebx, 0xffffffff
je 0x40917f
mov eax, dword [ecx]
cmp dword [eax + 0x10], 0
je 0x408f25
mov eax, dword [eax + 8]
add eax, ebx
jmp 0x408f27
xor eax, eax
cmp byte [eax], 3
jne 0x40917f
cmp dword [esi + 0x10], 0
je 0x408f3d
mov eax, dword [esi + 8]
add eax, edx
jmp 0x408f3f
xor eax, eax
lea esi, [eax + 1]
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x28], esi
push eax
call fcn.00409600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
cmp byte [edi + 0xf], 0
je 0x408f6a
lea eax, [ebp - 0x3c]
push eax
call fcn.0040ad10
jmp 0x408f73
lea eax, [ebp - 0x34]
push eax
call fcn.0040acb0
cmp byte [edi + 0xf], 0
lea ecx, [ebp - 0x70]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
je 0x408f89
call fcn.0040aac0
jmp 0x408f8e
call fcn.0040abb0
mov dword [ebp - 0x2c], eax
mov al, byte [edi + 0xf]
mov dword [ebp - 0x24], eax
test al, al
mov eax, dword [ebp - 0x10]
je 0x408fa0
add eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
mov ebx, dword [esi]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], ebx
cmp ebx, 0x20
ja 0x409019
xor esi, esi
test ebx, ebx
je 0x409158
nop
push esi
lea ecx, [ebp - 0x54]
call fcn.004091f0
test eax, eax
je 0x408fe7
inc esi
cmp esi, ebx
jb 0x408fd0
jmp 0x409158
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push dword [eax + esi*8 + 8]
push edi
call fcn.004084c0
lea ecx, [ebp - 0x70]
call fcn.004083e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, 0x100
ja 0x409085
lea eax, [esi + 4]
mov esi, ebx
lea eax, [eax + ebx*8]
mov dword [ebp - 0x38], eax
mov ecx, eax
mov dword [ebp - 0x14], ecx
test esi, esi
jle 0x409073
mov ebx, eax
mov edi, esi
lea ecx, [ebp - 0x54]
shr edi, 1
lea eax, [edi + ebx]
mov dword [ebp - 0x20], eax
movzx eax, byte [eax]
push eax
call fcn.004091f0
test eax, eax
jns 0x40905e
mov ebx, dword [ebp - 0x20]
or eax, 0xffffffff
sub eax, edi
inc ebx
add esi, eax
jmp 0x409060
mov esi, edi
test esi, esi
jg 0x409037
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
add eax, ebx
cmp ecx, eax
je 0x409158
movzx esi, byte [ecx]
jmp 0x409142
lea eax, [ebx*8 + 4]
add eax, esi
mov dword [ebp - 0x20], eax
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ebx, 0x10000
ja 0x4090f2
lea eax, [ebx + ebx]
mov esi, eax
mov dword [ebp - 0x38], eax
sar esi, 1
test esi, esi
jle 0x4090e6
nop dword [eax]
mov edi, esi
shr edi, 1
movzx eax, word [ecx + edi*2]
lea ebx, [ecx + edi*2]
push eax
lea ecx, [ebp - 0x54]
call fcn.004091f0
test eax, eax
jns 0x4090d7
or eax, 0xffffffff
lea ecx, [ebx + 2]
sub eax, edi
mov dword [ebp - 0x14], ecx
add esi, eax
jmp 0x4090dc
mov ecx, dword [ebp - 0x14]
mov esi, edi
test esi, esi
jg 0x4090b0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x20]
cmp ecx, eax
je 0x409158
movzx esi, word [ecx]
jmp 0x409142
lea eax, [ebx*4]
mov esi, eax
mov dword [ebp - 0x38], eax
sar esi, 2
test esi, esi
jle 0x409139
mov edi, esi
shr edi, 1
push dword [ecx + edi*4]
lea ebx, [ecx + edi*4]
lea ecx, [ebp - 0x54]
call fcn.004091f0
test eax, eax
jns 0x40912a
or eax, 0xffffffff
lea ecx, [ebx + 4]
sub eax, edi
mov dword [ebp - 0x14], ecx
add esi, eax
jmp 0x40912f
mov ecx, dword [ebp - 0x14]
mov esi, edi
test esi, esi
jg 0x409105
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x20]
cmp ecx, eax
je 0x409158
mov esi, dword [ecx]
cmp esi, 0xffffffff
je 0x409158
push esi
lea ecx, [ebp - 0x54]
call fcn.004091f0
test eax, eax
je 0x408fe7
mov ecx, dword [ebp + 8]
call fcn.00408550
lea ecx, [ebp - 0x70]
call fcn.004083e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8