Function at 0x4f54c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x605b81
push eax
mov eax, 0x4bb4
mov dword fs:[0], esp
call fcn.005e2440
push ebx
mov ebx, ecx
fld dword [ebx + 0x30]
push esi
fcomp qword [0x611680]
push edi
fnstsw ax
test ah, 0x41
jp 0x4f5671
fld dword [ebx + 0x34]
fcomp qword [0x611680]
fnstsw ax
test ah, 0x41
jp 0x4f5671
mov eax, dword [ebx]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push str.SetTexture_gTexture
push eax
xor edi, edi
push edi
push ecx
call dword [edx + 0x8c]
push eax
call fcn.004f4180
mov eax, dword [ebp + 0x10]
add esp, 8
xor ecx, ecx
cmp eax, edi
mov dword [ebp - 0x10], edi
jle 0x4f5c25
mov esi, dword [ebp + 0xc]
add esi, 0x10
fld dword [ebp + 0x18]
mov edx, dword [esi]
fadd dword [esi - 0x10]
lea eax, [ecx + ecx*2]
shl eax, 5
lea eax, [ebp + eax - 0x4bc0]
fstp dword [eax]
inc ecx
cmp edx, edi
fld dword [ebp + 0x1c]
fadd dword [esi - 0xc]
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0x3f800000
fstp dword [eax + 4]
jne 0x4f5579
mov edx, dword [ebp + 0x14]
fld dword [esi - 8]
mov dword [eax + 0x10], edx
fmul dword [ebx + 0x30]
mov edx, dword [esi + 0x14]
cmp edx, edi
mov dword [eax + 0x14], edi
fstp dword [eax + 0x18]
mov dword [eax + 0x28], edi
fld dword [esi - 4]
mov dword [eax + 0x2c], 0x3f800000
fmul dword [ebx + 0x34]
fstp dword [eax + 0x1c]
fld dword [ebp + 0x18]
fadd dword [esi + 4]
fstp dword [eax + 0x20]
fld dword [ebp + 0x1c]
fadd dword [esi + 8]
fstp dword [eax + 0x24]
jne 0x4f55b7
mov edx, dword [ebp + 0x14]
fld dword [esi + 0xc]
mov dword [eax + 0x30], edx
fmul dword [ebx + 0x30]
mov edx, dword [esi + 0x28]
cmp edx, edi
mov dword [eax + 0x34], edi
fstp dword [eax + 0x38]
mov dword [eax + 0x48], edi
fld dword [esi + 0x10]
mov dword [eax + 0x4c], 0x3f800000
fmul dword [ebx + 0x34]
fstp dword [eax + 0x3c]
fld dword [ebp + 0x18]
fadd dword [esi + 0x18]
fstp dword [eax + 0x40]
fld dword [ebp + 0x1c]
fadd dword [esi + 0x1c]
fstp dword [eax + 0x44]
jne 0x4f55f5
mov edx, dword [ebp + 0x14]
cmp ecx, 0x64
fld dword [esi + 0x20]
fmul dword [ebx + 0x30]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edi
fstp dword [eax + 0x58]
fld dword [esi + 0x24]
fmul dword [ebx + 0x34]
fstp dword [eax + 0x5c]
je 0x4f561d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
dec edx
cmp eax, edx
jne 0x4f5649
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push str.DrawPrimitive__TriList_
push edi
lea ecx, [ecx + ecx*2]
push ecx
lea ecx, [ebp - 0x4bc0]
push ecx
push 0x1c4
push 4
push eax
call dword [edx + 0x64]
push eax
call fcn.004f4180
add esp, 8
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
inc eax
add esi, 0x3c
cmp eax, edx
mov dword [ebp - 0x10], eax
jl 0x4f5547
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
jle 0x4f5c25
mov edx, dword [ebp + 0xc]
add edx, 0x10
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], 0x3f800000
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], 0x3f800000
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], 0x3f800000
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], eax
lea ebx, [ebx]
mov eax, dword [ebp - 0x28]
fld dword [ebp + 0x18]
fadd dword [eax - 0x10]
mov ecx, dword [eax]
test ecx, ecx
mov edx, dword [ebp + 0x14]
fstp dword [ebp - 0x98]
mov dword [ebp - 0x88], ecx
fld dword [ebp + 0x1c]
fadd dword [eax - 0xc]
fstp dword [ebp - 0x94]
jne 0x4f56f0
mov dword [ebp - 0x88], edx
fld dword [eax - 8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
fmul dword [ebx + 0x30]
mov dword [ebp - 0x68], ecx
fstp dword [ebp - 0x80]
fld dword [eax - 4]
fmul dword [ebx + 0x34]
fstp dword [ebp - 0x7c]
fld dword [ebp + 0x18]
fadd dword [eax + 4]
fstp dword [ebp - 0x78]
fld dword [ebp + 0x1c]
fadd dword [eax + 8]
fstp dword [ebp - 0x74]
jne 0x4f5721
mov dword [ebp - 0x68], edx
fld dword [eax + 0xc]
mov ecx, dword [eax + 0x28]
test ecx, ecx
fmul dword [ebx + 0x30]
mov dword [ebp - 0x48], ecx
fstp dword [ebp - 0x60]
fld dword [eax + 0x10]
fmul dword [ebx + 0x34]
fstp dword [ebp - 0x5c]
fld dword [ebp + 0x18]
fadd dword [eax + 0x18]
fstp dword [ebp - 0x58]
fld dword [ebp + 0x1c]
fadd dword [eax + 0x1c]
fstp dword [ebp - 0x54]
jne 0x4f5752
mov dword [ebp - 0x48], edx
fld dword [eax + 0x20]
mov dword [ebp + 0xc], 0
fmul dword [ebx + 0x30]
mov dword [ebp - 0x14], 0
fstp dword [ebp - 0x40]
fld dword [eax + 0x24]
mov eax, dword [ebx + 0x34]
fmul dword [ebx + 0x34]
mov dword [ebp + 0x10], eax
fstp dword [ebp - 0x3c]
fld dword [ebx + 0x30]
fld dword [ebp - 0x80]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4f578c
fstp st(0)
fld dword [ebp - 0x80]
fld dword [ebp - 0x7c]
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 5
jp 0x4f579f
mov ecx, dword [ebp - 0x7c]
mov dword [ebp + 0x10], ecx
fld dword [ebp - 0x80]
fcomp dword [0x60c748]
fnstsw ax
test ah, 0x41
jne 0x4f57b5
mov edx, dword [ebp - 0x80]
mov dword [ebp + 0xc], edx
fld dword [ebp - 0x7c]
fcomp dword [0x60c748]
fnstsw ax
test ah, 0x41
jne 0x4f57cb
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
fld dword [ebp - 0x60]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4f57dc
fstp st(0)
fld dword [ebp - 0x60]
fld dword [ebp - 0x5c]
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 5
jp 0x4f57ef
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + 0x10], ecx
fld dword [ebp - 0x60]
fcomp dword [ebp + 0xc]
fnstsw ax
test ah, 0x41
jne 0x4f5802
mov edx, dword [ebp - 0x60]
mov dword [ebp + 0xc], edx
fld dword [ebp - 0x5c]
fcomp dword [ebp - 0x14]
fnstsw ax
test ah, 0x41
jne 0x4f5815
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
fld dword [ebp - 0x40]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4f5826
fstp st(0)
fld dword [ebp - 0x40]
fld dword [ebp - 0x3c]
fcomp dword [ebp + 0x10]
fnstsw ax
test ah, 5
jp 0x4f5839
mov ecx, dword [ebp - 0x3c]
mov dword [ebp + 0x10], ecx
fld dword [ebp - 0x40]
fcomp dword [ebp + 0xc]
fnstsw ax
test ah, 0x41
jne 0x4f584c
mov edx, dword [ebp - 0x40]
mov dword [ebp + 0xc], edx
fld dword [ebp - 0x3c]
fcomp dword [ebp - 0x14]
fnstsw ax
test ah, 0x41
jne 0x4f585f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x19b4]
mov edx, 0x64
mov dword [ebp - 0xd34], ecx
mov dword [ebp - 0xd2c], edx
mov ecx, 8
lea esi, [ebp - 0x98]
lea edi, [ebp - 0x19b4]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x78]
lea edi, [ebp - 0x1994]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x1974]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea ecx, [ebp - 0x2640]
mov dword [ebp - 4], eax
mov dword [ebp - 0xd30], 3
mov dword [ebp - 0x19c0], ecx
mov dword [ebp - 0x19bc], eax
mov dword [ebp - 0x19b8], edx
sub esp, 8
mov byte [ebp - 4], 1
fstp qword [esp]
call fcn.005e1c70
call fcn.005e0b1c
fld dword [ebp + 0x10]
mov edi, eax
fstp qword [esp]
mov dword [ebp - 0x34], edi
call fcn.005e1c70
call fcn.005e0b1c
fld dword [ebp + 0xc]
fstp qword [esp]
mov esi, eax
call fcn.005e1e70
call fcn.005e0b1c
fld dword [ebp - 0x14]
fstp qword [esp]
mov dword [ebp - 0x10], eax
call fcn.005e1e70
add esp, 8
call fcn.005e0b1c
test edi, edi
mov dword [ebp - 0x24], eax
jge 0x4f592f
mov dword [ebp - 0x34], 0
test esi, esi
jge 0x4f5935
xor esi, esi
mov eax, dword [ebx + 0x18]
cmp dword [ebp - 0x10], eax
jle 0x4f5940
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x24]
cmp eax, ecx
jle 0x4f594f
mov eax, ecx
mov dword [ebp - 0x24], eax
cmp esi, eax
mov edx, dword [ebx]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], esi
jge 0x4f5bd6
nop
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
jge 0x4f5bc4
fild dword [ebp - 0x18]
fstp dword [ebp - 0x20]
mov eax, dword [ebx + 0x18]
imul eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
add eax, edx
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4]
mov eax, dword [ebp - 0xd30]
cmp eax, 0x64
lea edi, [ebp - 0xd28]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], 0x64
jle 0x4f5a12
mov dword [ebp - 0xa0], eax
shl eax, 5
push eax
call fcn.005d02a6
mov ecx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xa8]
shl ecx, 5
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xd28]
add esp, 4
cmp eax, ecx
je 0x4f5a03
push eax
call fcn.005e05ca
add esp, 4
mov edi, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xa8], edi
mov ecx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xd34]
shl ecx, 5
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xa8]
fild dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
fld dword [eax + 0x18]
mov byte [ebp - 4], 2
fsub st(1)
fstp dword [eax + 0x18]
mov eax, dword [ebp - 0xa8]
fld dword [eax + 0x1c]
fsub dword [ebp - 0x20]
fstp dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x2c]
dec ecx
cmp esi, ecx
jne 0x4f5a73
fild dword [eax + 8]
mov ecx, dword [ebp - 0xa8]
fidiv dword [edx + 8]
fmul dword [ecx + 0x1c]
fstp dword [ecx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov edi, dword [ebp - 0x1c]
dec ecx
cmp edi, ecx
jne 0x4f5a90
fild dword [eax + 4]
mov ecx, dword [ebp - 0xa8]
fidiv dword [edx + 4]
fmul dword [ecx + 0x18]
fstp dword [ecx + 0x18]
mov ecx, dword [ebp - 0xa8]
fld dword [ecx + 0x38]
fsub st(1)
fstp dword [ecx + 0x38]
mov ecx, dword [ebp - 0xa8]
fld dword [ecx + 0x3c]
fsub dword [ebp - 0x20]
fstp dword [ecx + 0x3c]
mov ecx, dword [ebx + 0x1c]
dec ecx
cmp esi, ecx
jne 0x4f5ac7
fild dword [eax + 8]
mov ecx, dword [ebp - 0xa8]
fidiv dword [edx + 8]
fmul dword [ecx + 0x3c]
fstp dword [ecx + 0x3c]
mov ecx, dword [ebx + 0x18]
dec ecx
cmp edi, ecx
jne 0x4f5ae1
fild dword [eax + 4]
mov ecx, dword [ebp - 0xa8]
fidiv dword [edx + 4]
fmul dword [ecx + 0x38]
fstp dword [ecx + 0x38]
mov ecx, dword [ebp - 0xa8]
fld dword [ecx + 0x58]
fsub st(1)
fstp dword [ecx + 0x58]
mov ecx, dword [ebp - 0xa8]
fstp st(0)
fld dword [ecx + 0x5c]
fsub dword [ebp - 0x20]
fstp dword [ecx + 0x5c]
mov ecx, dword [ebx + 0x1c]
dec ecx
cmp esi, ecx
jne 0x4f5b1a
fild dword [eax + 8]
mov ecx, dword [ebp - 0xa8]
fidiv dword [edx + 8]
fmul dword [ecx + 0x5c]
fstp dword [ecx + 0x5c]
mov ecx, dword [ebx + 0x18]
dec ecx
cmp edi, ecx
jne 0x4f5b34
fild dword [eax + 4]
mov ecx, dword [ebp - 0xa8]
fidiv dword [edx + 4]
fmul dword [ecx + 0x58]
fstp dword [ecx + 0x58]
lea esi, [ebp - 0xd28]
call fcn.004eb090
cmp dword [ebp - 0xa4], 3
jl 0x4f5b95
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
push str.SetTexture_gTexture
push ecx
push 0
push esi
call dword [edx + 0x8c]
push eax
call fcn.004f4180
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [esi]
add esp, 8
push str.DrawPrimitive__Tri__4
push 0
push eax
push ecx
push 0x1c4
push 6
push esi
call dword [edx + 0x64]
push eax
call fcn.004f4180
add esp, 8
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xd28]
cmp eax, edx
mov byte [ebp - 4], 1
je 0x4f5bb2
push eax
call fcn.005e05ca
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x4f5975
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jl 0x4f5960
mov eax, dword [ebp - 0x19c0]
lea ecx, [ebp - 0x2640]
cmp eax, ecx
je 0x4f5bef
push eax
call fcn.005e05ca
add esp, 4
mov eax, dword [ebp - 0xd34]
lea edx, [ebp - 0x19b4]
cmp eax, edx
mov dword [ebp - 4], 0xffffffff
je 0x4f5c0f
push eax
call fcn.005e05ca
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
add ecx, 0x3c
dec eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], eax
jne 0x4f56c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18