Function at 0x5671f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x64b387
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x4bb8
call fcn.00635b40
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x4bf8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
fld1
fcom dword [ebx + 0x34]
fnstsw ax
test ah, 1
jne 0x5675cf
fcom dword [ebx + 0x38]
fnstsw ax
test ah, 1
jne 0x5675cf
mov eax, dword [ebx + 4]
fstp st(0)
test eax, eax
je 0x56726c
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x567271
call fcn.0061c63f
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x8c]
push edx
push 0
push edi
call eax
push eax
mov edi, str.SetTexture_gTexture
call fcn.005644e0
xor eax, eax
add esp, 4
cmp esi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
jle 0x567cca
mov ecx, dword [ebp + 0xc]
fld dword [ebp + 0x1c]
fld dword [ebp + 0x18]
add ecx, 0x10
fldz
mov dword [esp + 0x10], ecx
jmp 0x5672c4
fld dword [ebp + 0x18]
fldz
fld dword [ebp + 0x1c]
fxch st(2)
fxch st(1)
mov eax, dword [esp + 0xc]
lea esi, [eax + eax*2]
add eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
fld dword [eax - 0x10]
mov ecx, dword [eax]
fadd st(2)
shl esi, 5
lea esi, [esp + esi + 0x2644]
xor edi, edi
cmp ecx, edi
fstp dword [esi]
fld dword [eax - 0xc]
fadd st(3)
fstp dword [esi + 4]
fst dword [esi + 8]
fld1
fst dword [esi + 0xc]
jne 0x567302
mov ecx, dword [ebp + 0x14]
fld dword [eax - 8]
mov dword [esi + 0x10], ecx
fmul dword [ebx + 0x34]
lea ecx, [esi + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esi + 0x14], edi
fstp dword [esi + 0x18]
fld dword [eax - 4]
fmul dword [ebx + 0x38]
fstp dword [esi + 0x1c]
fld dword [eax + 4]
fadd st(3)
fstp dword [ecx]
mov ecx, dword [eax + 0x14]
cmp ecx, edi
fld dword [eax + 8]
fadd st(4)
fstp dword [esi + 0x24]
fxch st(1)
fst dword [esi + 0x28]
fxch st(1)
fst dword [esi + 0x2c]
jne 0x567344
mov ecx, dword [ebp + 0x14]
fld dword [eax + 0xc]
lea edx, [esi + 0x40]
fmul dword [ebx + 0x34]
mov dword [esi + 0x30], ecx
mov ecx, dword [eax + 0x28]
cmp ecx, edi
fstp dword [esi + 0x38]
mov dword [esi + 0x34], edi
fld dword [eax + 0x10]
fmul dword [ebx + 0x38]
fstp dword [esi + 0x3c]
fld dword [eax + 0x18]
faddp st(3)
fxch st(2)
fstp dword [edx]
fld dword [eax + 0x1c]
faddp st(3)
fxch st(2)
fstp dword [esi + 0x44]
fxch st(1)
fstp dword [esi + 0x48]
fstp dword [esi + 0x4c]
jne 0x567384
mov ecx, dword [ebp + 0x14]
cmp dword [ebp + 0x20], edi
fld dword [eax + 0x20]
fmul dword [ebx + 0x34]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edi
fstp dword [esi + 0x58]
fld dword [eax + 0x24]
fmul dword [ebx + 0x38]
fstp dword [esi + 0x5c]
je 0x567552
lea eax, [esp + 0xd24]
mov dword [esp + 0x19a4], eax
mov eax, 0x64
mov dword [esp + 0x19ac], eax
xor ecx, ecx
mov dword [esp + 0x4c00], ecx
lea edi, [esp + 0x94]
mov dword [esp + 0xd14], edi
mov dword [esp + 0xd18], ecx
mov dword [esp + 0xd1c], eax
mov byte [esp + 0x4c00], 1
mov ecx, 8
lea edi, [esp + 0xd24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
mov ecx, 8
lea edi, [esp + 0xd44]
rep movsd dword es:[edi], dword [esi]
mov esi, edx
mov edx, dword [ebp + 0x20]
mov ecx, 8
lea edi, [esp + 0xd64]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x94]
push ecx
push 4
lea ecx, [esp + 0xd2c]
mov dword [esp + 0x19b0], 3
call fcn.005667d0
mov ecx, dword [esp + 0xd20]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add esp, 8
add eax, edx
je 0x567511
sub dword [esp + 0xc], 1
test eax, eax
jle 0x567511
mov edx, dword [esp + 0xd14]
add edx, 0x40
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
lea ecx, [ecx]
mov ecx, dword [esp + 0xc]
lea eax, [ecx + ecx*2]
add ecx, 1
mov dword [esp + 0xc], ecx
shl eax, 5
cmp dword [esp + 0xc], 0x64
lea eax, [esp + eax + 0x2644]
lea esi, [edx - 0x40]
mov ecx, 8
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [edx - 0x20]
lea edi, [eax + 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x40]
mov ecx, 8
mov esi, edx
rep movsd dword es:[edi], dword [esi]
jne 0x5674ff
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x64]
push 0
push 0x12c
lea ecx, [esp + 0x264c]
push ecx
push 0x1c4
push 4
push eax
call edx
push eax
mov edi, str.DrawPrimitive__TriList_clipped_
call fcn.005644e0
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0xc], 0
add edx, 0x60
sub dword [esp + 0x18], 1
mov dword [esp + 0x20], edx
jne 0x567480
mov eax, dword [esp + 0xd14]
lea ecx, [esp + 0x94]
cmp eax, ecx
je 0x56752c
push eax
call fcn.0061c19a
add esp, 4
mov dword [esp + 0x4c00], 0xffffffff
mov eax, dword [esp + 0x19a4]
lea edx, [esp + 0xd24]
cmp eax, edx
je 0x567552
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0xc], 0x64
je 0x567565
mov eax, dword [ebp + 0x10]
add eax, 0xffffffff
cmp dword [esp + 0x14], eax
jne 0x56759f
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
lea eax, [eax + eax*2]
push eax
lea eax, [esp + 0x264c]
push eax
push 0x1c4
push 4
push ecx
mov ecx, dword [edx + 0x64]
call ecx
push eax
mov edi, str.DrawPrimitive__TriList_
call fcn.005644e0
add esp, 4
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 0x3c
add eax, 1
cmp eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
jl 0x5672b8
mov ecx, dword [esp + 0x4bf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
test esi, esi
jle 0x567cc8
mov edx, dword [ebp + 0xc]
fld dword [ebp + 0x1c]
fld dword [ebp + 0x18]
add edx, 0x10
fldz
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
jmp 0x5675fe
fldz
fld1
fld dword [ebp + 0x18]
fld dword [ebp + 0x1c]
fxch st(2)
fxch st(3)
mov eax, dword [esp + 0x20]
fld dword [eax - 0x10]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x14]
fadd st(2)
xor edx, edx
cmp ecx, edx
fstp dword [esp + 0x34]
mov dword [esp + 0x44], ecx
fld dword [eax - 0xc]
fadd st(3)
fstp dword [esp + 0x38]
fst dword [esp + 0x3c]
fxch st(3)
fst dword [esp + 0x40]
jne 0x567631
mov dword [esp + 0x44], esi
fld dword [eax - 8]
mov ecx, dword [eax + 0x14]
cmp ecx, edx
fmul dword [ebx + 0x34]
mov dword [esp + 0x48], edx
mov dword [esp + 0x64], ecx
fstp dword [esp + 0x4c]
fld dword [eax - 4]
fmul dword [ebx + 0x38]
fstp dword [esp + 0x50]
fld dword [eax + 4]
fadd st(2)
fstp dword [esp + 0x54]
fld dword [eax + 8]
fadd st(3)
fstp dword [esp + 0x58]
fxch st(3)
fst dword [esp + 0x5c]
fxch st(3)
fst dword [esp + 0x60]
jne 0x567676
mov dword [esp + 0x64], esi
fld dword [eax + 0xc]
mov ecx, dword [eax + 0x28]
cmp ecx, edx
fmul dword [ebx + 0x34]
mov dword [esp + 0x68], edx
mov dword [esp + 0x84], ecx
fstp dword [esp + 0x6c]
fld dword [eax + 0x10]
fmul dword [ebx + 0x38]
fstp dword [esp + 0x70]
fld dword [eax + 0x18]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x74]
fld dword [eax + 0x1c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x78]
fxch st(1)
fst dword [esp + 0x7c]
fxch st(1)
fstp dword [esp + 0x80]
jne 0x5676c8
mov dword [esp + 0x84], esi
fld dword [eax + 0x20]
mov dword [esp + 0x88], edx
fmul dword [ebx + 0x34]
fstp dword [esp + 0x8c]
fld dword [eax + 0x24]
fmul dword [ebx + 0x38]
fstp dword [esp + 0x90]
fld dword [ebx + 0x34]
fstp dword [esp + 0xc]
fld dword [ebx + 0x38]
fstp dword [esp + 0x18]
fst dword [esp + 0x10]
fst dword [esp + 0x14]
fld dword [esp + 0x4c]
fld dword [esp + 0xc]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x567714
fst dword [esp + 0xc]
fld dword [esp + 0x50]
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x567729
fst dword [esp + 0x18]
fxch st(1)
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x56773a
fstp dword [esp + 0x10]
jmp 0x56773c
fstp st(0)
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x56774d
fstp dword [esp + 0x14]
jmp 0x56774f
fstp st(0)
fld dword [esp + 0x6c]
fld dword [esp + 0xc]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x567764
fst dword [esp + 0xc]
fld dword [esp + 0x70]
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x567779
fst dword [esp + 0x18]
fld dword [esp + 0x10]
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x56778e
fxch st(1)
fstp dword [esp + 0x10]
jmp 0x567790
fstp st(1)
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5677a3
fstp dword [esp + 0x14]
jmp 0x5677a5
fstp st(0)
fld dword [esp + 0x8c]
fld dword [esp + 0xc]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x5677bd
fst dword [esp + 0xc]
fld dword [esp + 0x90]
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x5677d5
fst dword [esp + 0x18]
fld dword [esp + 0x10]
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x5677ea
fxch st(1)
fstp dword [esp + 0x10]
jmp 0x5677ec
fstp st(1)
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5677ff
fstp dword [esp + 0x14]
jmp 0x567801
fstp st(0)
lea eax, [esp + 0xd24]
mov dword [esp + 0x19a4], eax
mov eax, 0x64
mov dword [esp + 0x19ac], eax
mov dword [esp + 0x4c00], 2
mov ecx, 8
lea esi, [esp + 0x34]
lea edi, [esp + 0xd24]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x54]
lea edi, [esp + 0xd44]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x74]
lea edi, [esp + 0xd64]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x19b4]
mov dword [esp + 0x19a8], 3
mov dword [esp + 0x2634], ecx
mov dword [esp + 0x2638], 0
mov dword [esp + 0x263c], eax
sub esp, 8
fld dword [esp + 0x14]
mov byte [esp + 0x4c08], 3
fstp qword [esp]
call fcn.00639dc0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
call fcn.006397d0
fld dword [esp + 0x20]
mov edi, eax
fstp qword [esp]
mov dword [esp + 0x34], edi
call fcn.00639dc0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
call fcn.006397d0
fld dword [esp + 0x18]
fstp qword [esp]
mov esi, eax
call fcn.0061f440
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
call fcn.006397d0
fld dword [esp + 0x1c]
fstp qword [esp]
mov dword [esp + 0x20], eax
call fcn.0061f440
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
call fcn.006397d0
test edi, edi
mov dword [esp + 0xc], eax
jge 0x567915
mov dword [esp + 0x2c], 0
test esi, esi
jge 0x56791b
xor esi, esi
mov eax, dword [ebx + 0x1c]
cmp dword [esp + 0x18], eax
jle 0x567928
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x20]
mov edi, dword [esp + 0xc]
cmp edi, eax
jle 0x567939
mov edi, eax
mov dword [esp + 0xc], edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x567957
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x56795c
call fcn.0061c63f
cmp esi, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], esi
jge 0x567c60
nop
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jge 0x567c4b
fild dword [esp + 0x10]
fstp dword [esp + 0x28]
lea ebx, [ebx]
mov esi, dword [ebx + 0x1c]
imul esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
add esi, dword [esp + 0x14]
test eax, eax
je 0x5679bc
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x5679c1
call fcn.0061c63f
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x19a8]
cmp edi, 0x64
lea edx, [esi + esi*2]
lea esi, [eax + edx*4]
lea ecx, [esp + 0x94]
mov eax, edi
mov dword [esp + 0xd14], ecx
mov dword [esp + 0xd18], eax
mov dword [esp + 0xd1c], 0x64
jle 0x567a61
xor ecx, ecx
mov edx, 0x20
mul edx
seto cl
mov dword [esp + 0xd1c], edi
neg ecx
or ecx, eax
push ecx
call fcn.0060ae9b
mov ecx, dword [esp + 0xd18]
mov edi, eax
mov eax, dword [esp + 0xd1c]
add esp, 4
shl eax, 5
push eax
push ecx
push edi
call fcn.00624510
mov eax, dword [esp + 0xd20]
lea edx, [esp + 0xa0]
add esp, 0xc
cmp eax, edx
je 0x567a51
push eax
call fcn.0061c19a
add esp, 4
mov eax, dword [esp + 0xd18]
mov ecx, edi
mov dword [esp + 0xd14], ecx
shl eax, 5
push eax
mov eax, dword [esp + 0x19a8]
push eax
push ecx
call fcn.00624510
add esp, 0xc
fild dword [esp + 0x14]
mov byte [esp + 0x4c00], 4
mov eax, dword [esp + 0xd14]
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x10]
fld dword [eax + 0x18]
fld dword [esp + 0x30]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [eax + 0x18]
mov eax, dword [esp + 0xd14]
fld dword [eax + 0x1c]
fld dword [esp + 0x28]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [eax + 0x1c]
mov ecx, dword [ebx + 0x20]
sub ecx, 1
cmp edx, ecx
mov ecx, dword [esp + 0x1c]
jne 0x567ad9
fild dword [ecx + 8]
mov eax, dword [esp + 0xd14]
fidiv dword [esi + 8]
fmul dword [eax + 0x1c]
fstp dword [eax + 0x1c]
mov eax, dword [ebx + 0x1c]
mov edi, dword [esp + 0x14]
sub eax, 1
cmp edi, eax
jne 0x567afa
fild dword [ecx + 4]
mov eax, dword [esp + 0xd14]
fidiv dword [esi + 4]
fmul dword [eax + 0x18]
fstp dword [eax + 0x18]
mov eax, dword [esp + 0xd14]
fld dword [eax + 0x38]
fsub st(2)
fstp dword [eax + 0x38]
mov eax, dword [esp + 0xd14]
fld dword [eax + 0x3c]
fsub st(1)
fstp dword [eax + 0x3c]
mov eax, dword [ebx + 0x20]
sub eax, 1
cmp edx, eax
jne 0x567b35
fild dword [ecx + 8]
mov eax, dword [esp + 0xd14]
fidiv dword [esi + 8]
fmul dword [eax + 0x3c]
fstp dword [eax + 0x3c]
mov eax, dword [ebx + 0x1c]
sub eax, 1
cmp edi, eax
jne 0x567b52
fild dword [ecx + 4]
mov eax, dword [esp + 0xd14]
fidiv dword [esi + 4]
fmul dword [eax + 0x38]
fstp dword [eax + 0x38]
mov eax, dword [esp + 0xd14]
fld dword [eax + 0x58]
fsubrp st(2)
fxch st(1)
fstp dword [eax + 0x58]
mov eax, dword [esp + 0xd14]
fsubr dword [eax + 0x5c]
fstp dword [eax + 0x5c]
mov eax, dword [ebx + 0x20]
sub eax, 1
cmp edx, eax
jne 0x567b8d
fild dword [ecx + 8]
mov eax, dword [esp + 0xd14]
fidiv dword [esi + 8]
fmul dword [eax + 0x5c]
fstp dword [eax + 0x5c]
mov edx, dword [ebx + 0x1c]
sub edx, 1
cmp edi, edx
jne 0x567baa
fild dword [ecx + 4]
mov eax, dword [esp + 0xd14]
fidiv dword [esi + 4]
fmul dword [eax + 0x58]
fstp dword [eax + 0x58]
lea edi, [esp + 0x94]
call fcn.00566b70
cmp dword [esp + 0xd18], 3
jl 0x567c13
mov edx, dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push 0
push eax
mov eax, dword [ecx + 0x8c]
call eax
push eax
mov edi, str.SetTexture_gTexture
call fcn.005644e0
mov edx, dword [esp + 0xd1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add esp, 4
push 0
push edx
mov edx, dword [esp + 0xd1c]
push edx
push 0x1c4
push 6
push eax
mov eax, dword [ecx + 0x64]
call eax
push eax
mov edi, str.DrawPrimitive__Tri__4
call fcn.005644e0
add esp, 4
mov byte [esp + 0x4c00], 3
mov eax, dword [esp + 0xd14]
lea ecx, [esp + 0x94]
cmp eax, ecx
je 0x567c36
push eax
call fcn.0061c19a
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x567990
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
jl 0x567970
mov eax, dword [esp + 0x2634]
lea edx, [esp + 0x19b4]
cmp eax, edx
je 0x567c7b
push eax
call fcn.0061c19a
add esp, 4
mov dword [esp + 0x4c00], 0xffffffff
mov eax, dword [esp + 0x19a4]
lea ecx, [esp + 0xd24]
cmp eax, ecx
je 0x567ca1
push eax
call fcn.0061c19a
add esp, 4
add dword [esp + 0x20], 0x3c
sub dword [esp + 0x24], 1
jne 0x5675f0
mov ecx, dword [esp + 0x4bf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
fstp st(0)
mov ecx, dword [esp + 0x4bf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c