Function at 0x438830
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fb443
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.00434f80
lea ebp, [esi + 0x24]
lea edi, [esi + 0x20]
push ebp
xor ebx, ebx
push edi
mov dword [esi], 0x502438
push 0x8ac
mov dword [esp + 0x28], ebx
mov dword [esi + 8], str.spellbook_gump
mov dword [esi + 0x64], ebx
mov dword [esi + 0x58], 0x8ac
call fcn.004a9760
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.004a9760
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 0x4388c0
mov eax, dword [esi + 0x38]
mov dword [eax + 0xb4], esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x188], 0xffffffff
mov word [esi + 0xb8], 1
mov eax, dword [0xcecc5c]
cmp eax, 0xffffffff
je 0x438920
mov ecx, dword [esi + 0x38]
mov ecx, dword [ecx + 0xb0]
cmp ecx, ebx
je 0x438920
xor edx, edx
mov dx, word [ecx + 0x42]
dec edx
cmp edx, eax
je 0x43890f
mov ecx, dword [ecx + 0x48]
cmp ecx, ebx
jne 0x4388fb
jmp 0x438920
cdq
and edx, 7
add eax, edx
sar eax, 3
inc eax
mov word [esi + 0xb8], ax
mov ax, word [esi + 0xb8]
mov ecx, eax
and ecx, 0xffff
and ecx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x43893c
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x438946
dec eax
mov word [esi + 0xb8], ax
push str.framedata_for_CSpellbookGump
push 0x10
mov dword [esi + 0x140], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 2
call fcn.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], 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.004b9f50
mov edx, dword [esi + 0x40]
push str.spellbook_frame1
mov dword [edx + 4], eax
mov ecx, dword [ebp]
imul ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x40]
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 + 0x40]
mov dx, word [esi + 0x20]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
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.004b9f50
mov edx, dword [esi + 0x40]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x28]
imul ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x40]
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 + 0x40]
mov dx, word [esi + 0x28]
mov ecx, dword [eax + 0xc]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov dx, word [esi + 0x2c]
mov ecx, dword [eax + 0xc]
mov word [ecx + 2], dx
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x40]
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.004d52c0
call fcn.004a97c0
mov eax, dword [esi + 0x30]
add esp, 0x34
cmp eax, 0xffffffff
jne 0x438ab2
call fcn.004ab320
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.004ab330
mov ecx, eax
mov eax, dword [ebp]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov dword [esi + 0x34], ecx
push 0xf0
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x438ae6
push ebx
push fcn.0049d9b0
push ebx
push ebx
push esi
push 0x76
push 0x15
push 0x64
push 3
mov ecx, eax
call fcn.0043bb90
jmp 0x438ae8
xor eax, eax
push 1
push esi
mov ecx, eax
mov byte [esp + 0x24], bl
call fcn.0046af30
mov ecx, esi
call fcn.004396b0
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x55
call fcn.004e3cb0
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