Function at 0x405890
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x550068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x64
call fcn.00525ec0
mov ecx, dword [ebp + 0x18]
push ebx
push esi
push edi
lea eax, [esp + 0x24]
push eax
call fcn.0040f130
xor ebx, ebx
mov dword [esp + 0x7c], ebx
push eax
call fcn.00407800
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x7c], 0xffffffff
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4058fe
call fcn.00419470
cmp eax, ebx
je 0x4058fe
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.0040e730
mov dword [esp + 0x7c], 1
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
movzx ecx, ax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], 0
mov byte [esp + 0x7c], 2
mov edi, dword [ebp + 8]
lea edx, [edi + 8]
push edx
lea eax, [esp + 0x20]
push eax
push 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x20], 0x30
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004f8b9c
mov esi, dword [ebp + 0x20]
mov al, byte [esi]
add esp, 0x14
cmp al, 0x2b
je 0x405976
mov dword [esp + 0x1c], ebx
cmp al, 0x2d
jne 0x40597e
mov dword [esp + 0x1c], 1
call fcn.00510655
mov eax, dword [eax]
mov ebx, dword [ebp + 0x30]
mov cl, byte [eax]
push ebx
push 0x65
push esi
mov byte [esp + 0x1c], cl
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0
call fcn.00510680
movsx edx, byte [esp + 0x1c]
add esp, 0xc
push ebx
push edx
push esi
mov dword [esp + 0x34], eax
call fcn.00510680
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4059c3
mov dword [ebp + 0x2c], eax
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x58]
mov ecx, eax
cmp edx, 0x10
jae 0x4059d6
lea ecx, [esp + 0x58]
cmp byte [ecx], 0x7f
je 0x405b12
cmp edx, 0x10
jae 0x4059e8
lea eax, [esp + 0x58]
cmp byte [eax], 0
jle 0x405b12
push ebx
push esi
lea ecx, [esp + 0x40]
call fcn.00417880
mov ebx, dword [esp + 0x28]
test ebx, ebx
jne 0x405a15
mov eax, dword [ebp + 0x2c]
push 0x30
push eax
lea ecx, [esp + 0x40]
call fcn.00419e10
jmp 0x405a44
cmp dword [esp + 0x14], 0
jne 0x405a32
mov ecx, dword [ebp + 0x24]
push 0x30
push ecx
lea ecx, [esp + 0x40]
call fcn.00419e10
mov dword [ebp + 0x24], 0
mov edx, dword [ebp + 0x2c]
push 0x30
push edx
sub ebx, esi
push ebx
lea ecx, [esp + 0x44]
call fcn.0040dd90
mov ebx, dword [esp + 0x14]
push 0x30
test ebx, ebx
jne 0x405a5d
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00419e10
jmp 0x405a87
mov ecx, dword [ebp + 0x28]
sub ebx, esi
push ecx
lea edx, [ebx + 1]
push edx
lea ecx, [esp + 0x44]
call fcn.0040dd90
mov eax, dword [ebp + 0x24]
push 0x30
push eax
push ebx
lea ecx, [esp + 0x44]
call fcn.0040dd90
mov dword [ebp + 0x28], 0
mov ebx, dword [esp + 0x58]
mov eax, 0x10
mov dword [ebp + 0x24], 0
cmp dword [esp + 0x6c], eax
jae 0x405aa1
lea ebx, [esp + 0x58]
cmp dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
jae 0x405aaf
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00510730
mov esi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x405af3
test al, al
jle 0x405af3
mov edx, esi
sub edx, dword [esp + 0x1c]
movsx eax, al
cmp eax, edx
jae 0x405af3
push 0
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x44]
call fcn.0040dd90
cmp byte [ebx + 1], 0
jle 0x405aed
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x405ac5
cmp dword [esp + 0x50], 0x10
mov esi, dword [esp + 0x3c]
jae 0x405b02
lea esi, [esp + 0x3c]
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], eax
mov ebx, eax
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
lea eax, [ecx + edx]
add eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 0x18]
add eax, ebx
test ecx, ecx
jle 0x405b36
cmp ecx, eax
jbe 0x405b36
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x405b3e
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x405bb4
cmp eax, 0x100
jne 0x405b82
cmp dword [esp + 0x1c], 0
jbe 0x405b82
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 1
push esi
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push edi
call fcn.004068d0
mov ecx, dword [eax]
add esp, 0x18
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
inc esi
dec ebx
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x30], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.00406130
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], 0
mov dword [ebp + 0x14], eax
add esp, 0x18
movsx ecx, byte [esp + 0x10]
push ebx
push ecx
push esi
call fcn.00510680
add esp, 0xc
test eax, eax
je 0x405c85
mov edx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x14]
sub eax, esi
inc eax
push edx
mov edx, dword [ebp + 0x10]
mov ebx, eax
lea eax, [ebx - 1]
push eax
push esi
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.004069c0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x24]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00406130
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x48]
mov dword [ebp + 0x14], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 0x18
call edx
mov ecx, dword [ebp + 0x10]
movzx eax, ax
push 1
push eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call fcn.00406130
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x28]
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x58]
push eax
push edi
call fcn.00406130
mov ecx, dword [eax]
add esi, ebx
add esp, 0x30
sub dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 0x30]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
push ebx
push 0x65
push esi
call fcn.00510680
add esp, 0xc
test eax, eax
je 0x405d37
mov edx, dword [ebp + 0x14]
sub eax, esi
inc eax
mov ebx, eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebx - 1]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
call fcn.004069c0
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x2c]
add esp, 0x1c
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.00406130
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x18]
add esp, 0x18
test byte [edx + 0x10], 4
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x2c], 0
mov ecx, 0x5861b8
jne 0x405d0c
mov ecx, 0x5861bc
mov edx, dword [eax]
push 1
push ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004068d0
mov ecx, dword [eax]
add esi, ebx
add esp, 0x18
sub dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 0x30]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ebx
push esi
push ecx
push edx
lea eax, [esp + 0x44]
push eax
push edi
call fcn.004069c0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x2c]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00406130
mov ecx, dword [eax]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x18], ebx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
push ecx
push esi
push edi
mov dword [ebp + 0x14], eax
call fcn.00406130
add esp, 0x30
mov byte [esp + 0x7c], 1
mov edi, 0x10
cmp dword [esp + 0x50], edi
jb 0x405dc2
mov eax, dword [esp + 0x3c]
push eax
call fcn.0050d7de
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], 0
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x6c], edi
jb 0x405dee
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0050d7de
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
mov eax, esi
mov dword [esp + 0x64], ebx
pop esi
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], 0
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret