Function at 0x4580e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4edec2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x54a2b0]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 7
xor esi, esi
push 0x4ffc1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
call fcn.00401eb0
lea eax, [esp + 0x10]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x6c]
mov edi, dword [esi + 0x4c]
push eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esi + 0x44]
call fcn.0040cea0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
cmp ecx, edi
mov edi, 0x10
setne bl
cmp eax, edi
mov dword [esp + 0x60], 0xffffffff
jb 0x458176
mov edx, dword [esp + 0x14]
push edx
call fcn.004c2c15
add esp, 4
test bl, bl
je 0x4583fa
push 7
xor ebx, ebx
push 0x4ffc24
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00401eb0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x64], 1
call fcn.0040ede0
mov esi, eax
cmp dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x60], 0xffffffff
jb 0x4581d5
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004c2c15
add esp, 4
mov edi, dword [esp + 0x68]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], 0
xor edx, edx
mov ecx, dword [esi + 0x48]
cmp ecx, ebx
mov dword [esp + 0x6c], edx
jne 0x4581fb
xor eax, eax
jmp 0x458203
mov eax, dword [esi + 0x4c]
sub eax, ecx
sar eax, 3
cmp edx, eax
jge 0x4583fa
push edx
mov ecx, esi
call fcn.0040ee00
push 0xffffffffffffffff
push ebx
add eax, 0x28
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], 0
call fcn.00401510
mov edx, dword [esp + 0x4c]
push 0xb
push str.Any_Effect1
push edx
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], 2
call fcn.004025a0
test eax, eax
jne 0x45827c
mov eax, dword [ebp + 0xa8]
mov edx, dword [eax*8 + 0x53eaa8]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458268
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.00401eb0
mov ecx, dword [esp + 0x4c]
push 0xb
push str.Any_Effect2
push ecx
push ebx
lea ecx, [esp + 0x48]
call fcn.004025a0
test eax, eax
jne 0x4582bc
mov edx, dword [ebp + 0xa8]
mov edx, dword [edx*8 + 0x53eaac]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4582a8
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.00401eb0
mov eax, dword [esp + 0x4c]
push 9
push 0x4ffc44
push eax
push ebx
lea ecx, [esp + 0x48]
call fcn.004025a0
test eax, eax
je 0x4583bf
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x5c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], 0
call fcn.00401510
mov eax, dword [esp + 0x8c]
push eax
mov ecx, ebp
call fcn.00457f80
mov esi, eax
mov al, byte [esp + 0x74]
test al, al
setne cl
mov byte [esi + 0xd4], cl
mov edx, dword [edi + 0x68]
push edx
call fcn.00402720
mov ebp, eax
mov eax, dword [edi + 0x6c]
push eax
call fcn.00402720
mov edx, dword [esi]
add esp, 8
push ebp
mov ecx, esi
mov ebx, eax
call dword [edx + 0x24]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ebx, eax
mov eax, dword [edi + 0x6c]
push eax
call fcn.00402720
mov ecx, dword [edi + 0x68]
push ecx
mov ebp, eax
call fcn.00402720
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx]
add esp, 8
mov dword [esp + 0x68], eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x68]
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], eax
call fcn.00473fc0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x30]
cmp eax, 0x64
mov dword [esi + 0xcc], eax
jbe 0x4583b1
mov dword [esi + 0xcc], 0x64
push esi
mov ecx, edi
call fcn.004693e0
mov ebp, dword [esp + 0x30]
xor ebx, ebx
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x60], 0xffffffff
jb 0x4583db
mov eax, dword [esp + 0x3c]
push eax
call fcn.004c2c15
add esp, 4
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], 0
inc edx
jmp 0x4581ec
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x54]
call fcn.004c2e45
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x10