Function at 0x41a530
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4eab53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00416cc0
lea ebp, [esi + 0x24]
lea edi, [esi + 0x20]
push ebp
xor ebx, ebx
push edi
mov dword [esi], 0x4f22d4
push 0x8ac
mov dword [esp + 0x28], ebx
mov dword [esi + 8], str.spellbook_gump
mov dword [esi + 0x60], ebx
mov dword [esi + 0x54], 0x8ac
call fcn.004447f0
mov eax, dword [ebp]
lea ecx, [esi + 0x28]
add eax, 0x14
mov dword [ebp], eax
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x2c]
push eax
push ecx
push 0x8ba
call fcn.004447f0
mov ecx, dword [esp + 0x44]
add esp, 0x18
mov dword [esi + 0x38], ecx
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
je 0x41a5c0
mov eax, dword [esi + 0x38]
mov dword [eax + 0xb0], esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x184], 0xffffffff
mov word [esi + 0xb4], 1
mov eax, dword [0xcc045c]
cmp eax, 0xffffffff
je 0x41a620
mov ecx, dword [esi + 0x38]
mov ecx, dword [ecx + 0xac]
cmp ecx, ebx
je 0x41a620
xor edx, edx
mov dx, word [ecx + 0x40]
dec edx
cmp edx, eax
je 0x41a60f
mov ecx, dword [ecx + 0x44]
cmp ecx, ebx
jne 0x41a5fb
jmp 0x41a620
cdq
and edx, 7
add eax, edx
sar eax, 3
inc eax
mov word [esi + 0xb4], ax
push str.framedata_for_CSpellbookGump
push 0x10
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 2
call fcn.00479630
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x3c], edi
push str.course_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp]
imul eax, dword [esi + 0x20]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
push str.spellbook_frame1
mov dword [edx + 4], eax
mov ecx, dword [ebp]
imul ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x3c]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x20]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [ebp]
mov ecx, dword [eax + 4]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x28]
imul eax, dword [esi + 0x2c]
lea ecx, [eax + eax + 4]
push ecx
call fcn.00479630
mov edx, dword [esi + 0x3c]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x28]
imul ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x3c]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 0xc]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x28]
mov ecx, dword [eax + 0xc]
mov word [ecx], dx
mov eax, dword [esi + 0x3c]
mov dx, word [esi + 0x2c]
mov ecx, dword [eax + 0xc]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x28]
push eax
push ecx
mov eax, dword [edx + 0xc]
add eax, 4
push eax
push ebx
push ebx
push 0x8ba
push fcn.004c00b0
call fcn.00444850
mov eax, dword [esi + 0x30]
add esp, 0x34
cmp eax, 0xffffffff
jne 0x41a78c
call fcn.00448fc0
mov ecx, eax
mov eax, dword [esi + 0x20]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esi + 0x30], ecx
call fcn.00448fd0
mov ecx, eax
mov eax, dword [ebp]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esi + 0x34], ecx
push 0xec
call fcn.004ddf8e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x41a7c0
push ebx
push fcn.0041e240
push ebx
push ebx
push esi
push 0x76
push 0x15
push 0x64
push 3
mov ecx, eax
call fcn.00422b10
jmp 0x41a7c2
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x24], bl
call fcn.0045a530
mov ecx, esi
call fcn.0041b370
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x55
call fcn.004d4400
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc