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

Disassembly:
sub esp, 0x57c
push ebp
push esi
mov esi, dword [esp + 0x598]
test byte [esi], 8
push edi
mov edi, ecx
mov dword [esp + 0x100], edi
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
je 0x486aaf
mov eax, dword [esp + 0x5a0]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], edx
call fcn.004433d0
add eax, 0xa8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call fcn.004433d0
add eax, 0xb4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov eax, dword [0x98c0d4]
test eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
je 0x486b54
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], 0x3e99999a
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], 0xc20c0000
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], 0xbca3d70a
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], 0x40a00000
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
fld dword [esp + 0x38]
lea ecx, [esp + 0x50]
fsub dword [esp + 0x44]
push ecx
mov edx, ecx
push edx
fst dword [esp + 0x118]
fstp dword [esp + 0x58]
fld dword [esp + 0x44]
fsub dword [esp + 0x50]
fst dword [esp + 0x1c4]
fstp dword [esp + 0x5c]
fld dword [esp + 0x48]
fsub dword [esp + 0x54]
fst dword [esp + 0x178]
fstp dword [esp + 0x60]
call sub.d3dx9_35.dll_D3DXVec3Normalize
fld dword [esi + 0x40]
mov ebp, dword [edi + 0x1c]
test ebp, ebp
fsub dword [esi + 0x3c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x5c], 0
fstp dword [esp + 0x2cc]
mov dword [esp + 0x60], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x3f800000
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x24], 0
je 0x487d0e
push ebx
mov ebx, 0x196d998
cmp ebx, 0x197d398
jge 0x487bf6
fld dword [esp + 0x594]
mov eax, dword [esi + 0x24]
test eax, eax
fmul dword [ebp + 0xa4]
fstp dword [esp + 0x10]
je 0x486dbb
mov edi, dword [esp + 0x598]
fld dword [ebp + 0xa0]
fmul dword [edi + 8]
mov esi, dword [esp + 0x59c]
fld dword [ebp + 0x9c]
fmul dword [edi + 4]
faddp st(1)
fld dword [ebp + 0x98]
fmul dword [edi]
faddp st(1)
fstp dword [esp + 0x60]
fld dword [ebp + 0x9c]
fmul dword [esi + 4]
fld dword [ebp + 0xa0]
fmul dword [esi + 8]
faddp st(1)
fld dword [ebp + 0x98]
fmul dword [esi]
faddp st(1)
fcom dword [0x4e54a4]
fnstsw ax
test ah, 5
jp 0x486c85
fchs
fadd dword [0x4e54b8]
lea eax, [esp + 0x60]
push eax
mov ecx, eax
push ecx
fstp dword [esp + 0x6c]
call sub.d3dx9_35.dll_D3DXVec2Normalize
fld dword [esp + 0x64]
fmul dword [esi]
fld dword [esp + 0x64]
fmul dword [esi + 4]
fld dword [esp + 0x64]
fmul dword [esi + 8]
fstp dword [esp + 0x358]
fld dword [esp + 0x60]
fmul dword [edi]
fld dword [esp + 0x60]
fmul dword [edi + 4]
fstp dword [esp + 0x24c]
fld dword [esp + 0x60]
fmul dword [edi + 8]
fstp dword [esp + 0x250]
fadd st(2)
fstp dword [esp + 0x138]
mov edx, dword [esp + 0x138]
fld dword [esp + 0x24c]
mov dword [esp + 0x14], edx
fadd st(1)
fstp dword [esp + 0x13c]
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x18], eax
fstp st(0)
fstp st(0)
fld dword [esp + 0x250]
fadd dword [esp + 0x358]
fstp dword [esp + 0x140]
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x1c]
fmul dword [esp + 0x58]
fld dword [esp + 0x18]
fmul dword [esp + 0x5c]
fsubp st(1)
fstp dword [esp + 0x1c4]
mov edx, dword [esp + 0x1c4]
fld dword [esp + 0x5c]
mov dword [esp + 0x20], edx
fmul dword [esp + 0x14]
lea edx, [esp + 0x20]
fld dword [esp + 0x1c]
push edx
fmul dword [esp + 0x58]
fsubp st(1)
fstp dword [esp + 0x1cc]
mov eax, dword [esp + 0x1cc]
fld dword [esp + 0x1c]
mov dword [esp + 0x28], eax
fmul dword [esp + 0x58]
mov eax, edx
fld dword [esp + 0x5c]
push eax
fmul dword [esp + 0x1c]
fsubp st(1)
fstp dword [esp + 0x1d4]
mov ecx, dword [esp + 0x1d4]
mov dword [esp + 0x30], ecx
call sub.d3dx9_35.dll_D3DXVec3Normalize
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call sub.d3dx9_35.dll_D3DXVec3Normalize
mov esi, dword [esp + 0x5a0]
jmp 0x486e17
lea eax, [ebp + 0x98]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xac], 0xbf800000
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xb0], 0
mov edx, dword [esp + 0xb0]
mov dword [esp + 0xb4], 0
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fld dword [esp + 0x14]
lea eax, [ebp + 0x64]
fmul dword [esp + 0x10]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fstp dword [esp + 0x28]
mov ecx, dword [ebp + 0xb0]
fld dword [esp + 0x2d0]
mov dword [esp + 0x9c], ecx
fmul dword [ebp + 0xb0]
mov edx, ecx
mov dword [esp + 0x90], edx
mov ecx, dword [eax]
fadd dword [esi + 0x3c]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
fstp dword [esp + 0x10]
mov dword [esp + 0x68], ecx
fld dword [esi + 0x44]
mov dword [esp + 0x6c], edx
fld dword [esp + 0x14]
mov dword [esp + 0x70], eax
fmul st(1)
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0x1ec]
fld dword [esp + 0x1c]
fmul st(2)
fstp dword [esp + 0x1f0]
fmul dword [esp + 0x9c]
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0x1ec]
fmul dword [esp + 0x9c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x1f0]
fmul dword [esp + 0x9c]
fstp dword [esp + 0x50]
fld dword [esi + 0x48]
fld dword [esp + 0x14]
fmul st(1)
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0x21c]
fld dword [esp + 0x1c]
fmul st(2)
fstp dword [esp + 0x220]
fmul dword [esp + 0x90]
fstp dword [esp + 0x3c]
fstp st(0)
fld dword [esp + 0x21c]
fmul dword [esp + 0x90]
fstp dword [esp + 0x40]
fld dword [esp + 0x220]
fmul dword [esp + 0x90]
fstp dword [esp + 0x44]
fld dword [esi + 0x4c]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x78]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x80]
fstp st(0)
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x1c0]
mov eax, dword [esp + 0x174]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0xc4], edx
mov dword [esp + 0x58], edx
push ecx
mov edx, ecx
push edx
mov dword [esp + 0xd0], eax
mov dword [esp + 0x64], eax
call sub.d3dx9_35.dll_D3DXVec3Normalize
fld dword [ebp + 0xb8]
fld dword [esp + 0x54]
mov eax, dword [esi + 0x24]
test eax, eax
fmul st(1)
fld dword [esp + 0x58]
fmul st(2)
fstp dword [esp + 0x27c]
fld dword [esp + 0x5c]
fmul st(2)
fstp dword [esp + 0x280]
fadd dword [esp + 0x68]
fstp dword [esp + 0x68]
fstp st(0)
fld dword [esp + 0x27c]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x6c]
fld dword [esp + 0x280]
fadd dword [esp + 0x70]
fstp dword [esp + 0x70]
je 0x48737c
fld dword [esp + 0x20]
lea eax, [ebx - 0x20]
fmul dword [esp + 0x10]
fst dword [esp + 0xd4]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fst dword [esp + 0xd8]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fst dword [esp + 0x10]
fst dword [esp + 0xdc]
fld dword [esp + 0x68]
fadd dword [esp + 0x14]
fst dword [esp + 0x320]
fld dword [esp + 0x6c]
fadd dword [esp + 0x18]
fld st(0)
fld dword [esp + 0x70]
fadd dword [esp + 0x1c]
fst dword [esp + 0x8c]
fld dword [esp + 0x320]
fadd dword [esp + 0x48]
fstp dword [esp + 0x230]
fxch st(1)
fadd dword [esp + 0x4c]
fstp dword [esp + 0x234]
fadd dword [esp + 0x50]
fld dword [esp + 0x230]
fadd dword [esp + 0x78]
fld dword [esp + 0x234]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x264]
fxch st(1)
fadd dword [esp + 0x80]
fstp dword [esp + 0x268]
fadd dword [esp + 0xd4]
fstp dword [esp + 0xe8]
mov ecx, dword [esp + 0xe8]
fld dword [esp + 0x264]
mov dword [eax], ecx
fadd dword [esp + 0xd8]
fstp dword [esp + 0xec]
mov edx, dword [esp + 0xec]
fld dword [esp + 0x268]
mov dword [eax + 4], edx
fadd dword [esp + 0xdc]
mov edx, ebx
fstp dword [esp + 0xf0]
mov ecx, dword [esp + 0xf0]
fld st(4)
mov dword [eax + 8], ecx
fstp dword [esp + 0xf8]
fld st(3)
fstp dword [esp + 0xfc]
fxch st(2)
fstp dword [esp + 0x100]
fstp dword [esp + 0x338]
fld dword [esp + 0x8c]
fld dword [esp + 0x338]
fadd dword [esp + 0x48]
fstp dword [esp + 0x200]
fxch st(1)
fadd dword [esp + 0x4c]
fstp dword [esp + 0x204]
fadd dword [esp + 0x50]
fld dword [esp + 0x200]
fadd dword [esp + 0x78]
fld dword [esp + 0x204]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x1f8]
fxch st(1)
fadd dword [esp + 0x80]
fstp dword [esp + 0x1fc]
fsub dword [esp + 0xf8]
fstp dword [esp + 0x108]
fld dword [esp + 0x1f8]
fsub dword [esp + 0xfc]
fstp dword [esp + 0x10c]
fld dword [esp + 0x1fc]
fsub dword [esp + 0x100]
fstp dword [esp + 0x110]
fld st(1)
mov eax, dword [esp + 0x108]
fld st(1)
mov ecx, dword [esp + 0x10c]
fld dword [esp + 0x68]
mov dword [edx], eax
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x110]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x10]
fst dword [esp + 0x8c]
mov dword [esp + 0x31c], ecx
fld dword [esp + 0x6c]
mov dword [edx + 8], eax
fsub dword [esp + 0x18]
lea edx, [ebx + 0x20]
fst dword [esp + 0xf4]
fld dword [esp + 0x70]
fsub dword [esp + 0x1c]
fst dword [esp + 0x38]
fstp dword [esp + 0x304]
fxch st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x2d8]
fadd dword [esp + 0x40]
fld dword [esp + 0x304]
fadd dword [esp + 0x44]
fld dword [esp + 0x2d8]
fadd dword [esp + 0x78]
fstp dword [esp + 0x118]
fxch st(1)
fadd dword [esp + 0x7c]
fstp dword [esp + 0x11c]
fadd dword [esp + 0x80]
fstp dword [esp + 0x120]
fld dword [esp + 0x118]
fadd st(2)
fstp dword [esp + 0x12c]
mov eax, dword [esp + 0x12c]
fld dword [esp + 0x11c]
mov dword [edx], eax
fadd st(1)
fstp dword [esp + 0x130]
mov ecx, dword [esp + 0x130]
mov dword [edx + 4], ecx
fstp st(0)
mov ecx, dword [esp + 0x38]
fstp st(0)
mov dword [esp + 0x370], ecx
fld dword [esp + 0x120]
fadd dword [esp + 0x31c]
fstp dword [esp + 0x134]
mov eax, dword [esp + 0x134]
fxch st(1)
mov dword [edx + 8], eax
fstp dword [esp + 0x380]
fld dword [esp + 0x10]
fld dword [esp + 0x8c]
fld dword [esp + 0xf4]
fxch st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x32c]
fadd dword [esp + 0x40]
fld dword [esp + 0x370]
fadd dword [esp + 0x44]
fld dword [esp + 0x32c]
fadd dword [esp + 0x78]
fstp dword [esp + 0x20c]
fxch st(1)
fadd dword [esp + 0x7c]
fstp dword [esp + 0x210]
fadd dword [esp + 0x80]
fld dword [esp + 0x20c]
fsub dword [esp + 0x380]
fstp dword [esp + 0x144]
fld dword [esp + 0x210]
fsub st(3)
fstp dword [esp + 0x148]
fsub st(1)
fstp dword [esp + 0x14c]
fstp st(0)
mov eax, dword [esp + 0x144]
fstp st(0)
mov ecx, dword [esp + 0x148]
lea edx, [ebx + 0x40]
mov dword [edx], eax
mov eax, dword [esp + 0x14c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x487970
fld dword [esp + 0x48]
fadd dword [esp + 0x68]
fst dword [esp + 0x344]
fld dword [esp + 0x4c]
fadd dword [esp + 0x6c]
fld st(0)
fld dword [esp + 0x50]
fadd dword [esp + 0x70]
fst dword [esp + 0x38]
fld dword [esp + 0x344]
fadd dword [esp + 0x78]
fstp dword [esp + 0xa0]
mov ecx, dword [esp + 0xa0]
fxch st(1)
mov dword [esp + 0x1d0], ecx
fadd dword [esp + 0x7c]
fstp dword [esp + 0xa4]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x1d4], edx
fadd dword [esp + 0x80]
fstp dword [esp + 0xa8]
mov eax, dword [esp + 0xa8]
fxch st(1)
mov dword [esp + 0x1d8], eax
fstp dword [esp + 0x374]
fld dword [esp + 0x38]
fld dword [esp + 0x374]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x168]
mov ecx, dword [esp + 0x168]
fxch st(1)
mov dword [esp + 0x1dc], ecx
fadd dword [esp + 0x40]
fstp dword [esp + 0x16c]
mov edx, dword [esp + 0x16c]
mov dword [esp + 0x1e0], edx
fadd dword [esp + 0x44]
fstp dword [esp + 0x170]
mov eax, dword [esp + 0x170]
mov dword [esp + 0x1e4], eax
call fcn.004433d0
add eax, 0x68
push eax
lea ecx, [esp + 0x1d4]
push ecx
call fcn.004343e0
mov esi, eax
mov ecx, 0x10
lea edi, [esp + 0x414]
rep movsd dword es:[edi], dword [esi]
call fcn.004433d0
add eax, 0x68
push eax
lea edx, [esp + 0x1e8]
push edx
call fcn.004343e0
mov esi, eax
mov eax, dword [0x98c0d4]
add esp, 0x10
test eax, eax
mov ecx, 0x10
lea edi, [esp + 0x44c]
rep movsd dword es:[edi], dword [esi]
je 0x48763a
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x25c]
push edx
lea eax, [esp + 0x29c]
push eax
mov dword [esp + 0x264], 0
mov dword [esp + 0x268], 0x3e99999a
mov dword [esp + 0x26c], 0xc20c0000
mov dword [esp + 0x24c], 0xbca3d70a
mov dword [esp + 0x250], 0
mov dword [esp + 0x254], 0x40a00000
mov dword [esp + 0x234], 0
mov dword [esp + 0x238], 0x3f800000
mov dword [esp + 0x23c], 0
mov dword [esp + 0x2d8], 0
mov dword [esp + 0x2d4], 0
mov dword [esp + 0x2d0], 0
mov dword [esp + 0x2cc], 0
mov dword [esp + 0x2c4], 0
mov dword [esp + 0x2c0], 0
mov dword [esp + 0x2bc], 0
mov dword [esp + 0x2b8], 0
mov dword [esp + 0x2b0], 0
mov dword [esp + 0x2ac], 0
mov dword [esp + 0x2a8], 0
mov dword [esp + 0x2a4], 0
mov dword [esp + 0x2dc], 0x3f800000
mov dword [esp + 0x2c8], 0x3f800000
mov dword [esp + 0x2b4], 0x3f800000
mov dword [esp + 0x2a0], 0x3f800000
call sub.d3dx9_35.dll_D3DXMatrixLookAtLH
lea ecx, [esp + 0x290]
push ecx
lea edx, [esp + 0x1d4]
push edx
call fcn.004343e0
mov esi, eax
mov ecx, 0x10
lea edi, [esp + 0x414]
lea eax, [esp + 0x298]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x1e8]
push ecx
call fcn.004343e0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x45c]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc0]
push edx
lea eax, [esp + 0x3d0]
push eax
call sub.d3dx9_35.dll_D3DXMatrixRotationZ
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fstp dword [esp + 0x364]
fxch st(1)
fadd dword [esp + 0x14]
fstp dword [esp + 0x178]
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x2c], ecx
fadd dword [esp + 0x18]
lea ecx, [esp + 0x40c]
push ecx
fstp dword [esp + 0x180]
mov edx, dword [esp + 0x180]
fld dword [esp + 0x368]
mov dword [esp + 0x34], edx
fadd dword [esp + 0x20]
lea edx, [esp + 0x3d0]
push edx
fstp dword [esp + 0x188]
mov eax, dword [esp + 0x188]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x494]
push eax
call sub.d3dx9_35.dll_D3DXMatrixMultiply
mov ecx, 0x10
lea esi, [esp + 0x48c]
lea edi, [esp + 0x38c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [ebx - 0x20]
push eax
call sub.d3dx9_35.dll_D3DXVec3TransformCoord
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fstp dword [esp + 0x2ec]
fld dword [esp + 0x14]
fsub st(2)
fstp dword [esp + 0x18c]
mov ecx, dword [esp + 0x18c]
fld dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
fsub st(1)
lea ecx, [esp + 0x40c]
push ecx
fstp dword [esp + 0x194]
mov edx, dword [esp + 0x194]
mov dword [esp + 0x34], edx
fstp st(0)
lea edx, [esp + 0x3d0]
fstp st(0)
push edx
fld dword [esp + 0x24]
fsub dword [esp + 0x2f4]
fstp dword [esp + 0x19c]
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x514]
push eax
call sub.d3dx9_35.dll_D3DXMatrixMultiply
mov ecx, 0x10
lea esi, [esp + 0x50c]
lea edi, [esp + 0x38c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38c]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
call sub.d3dx9_35.dll_D3DXVec3TransformCoord
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fstp dword [esp + 0x2f8]
fld dword [esp + 0x14]
fchs
fld dword [esp + 0x18]
fchs
fstp dword [esp + 0x270]
fld dword [esp + 0x1c]
fchs
fstp dword [esp + 0x274]
fadd st(2)
fstp dword [esp + 0x1a0]
mov eax, dword [esp + 0x1a0]
fld dword [esp + 0x270]
mov dword [esp + 0x2c], eax
fadd st(1)
lea eax, [esp + 0x44c]
push eax
fstp dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x34], ecx
fstp st(0)
lea ecx, [esp + 0x3d0]
fstp st(0)
push ecx
fld dword [esp + 0x27c]
fadd dword [esp + 0x300]
fstp dword [esp + 0x1b0]
mov edx, dword [esp + 0x1b0]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x4d4]
push edx
call sub.d3dx9_35.dll_D3DXMatrixMultiply
mov ecx, 0x10
lea esi, [esp + 0x4cc]
lea edi, [esp + 0x38c]
lea eax, [esp + 0x38c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [ebx + 0x20]
push edx
call sub.d3dx9_35.dll_D3DXVec3TransformCoord
fld dword [esp + 0x20]
fmul dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fstp dword [esp + 0x310]
fld dword [esp + 0x14]
fchs
fld dword [esp + 0x18]
fchs
fstp dword [esp + 0x288]
fld dword [esp + 0x1c]
fchs
fstp dword [esp + 0x28c]
fsub st(2)
fstp dword [esp + 0x1b4]
mov eax, dword [esp + 0x1b4]
fld dword [esp + 0x288]
mov dword [esp + 0x2c], eax
fsub st(1)
fstp dword [esp + 0x1b8]
mov ecx, dword [esp + 0x1b8]
fstp st(0)
fstp st(0)
fld dword [esp + 0x28c]
fsub dword [esp + 0x310]
fstp dword [esp + 0x1bc]
mov edx, dword [esp + 0x1bc]
lea eax, [esp + 0x44c]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x3d0]
mov dword [esp + 0x38], edx
push ecx
lea edx, [esp + 0x554]
push edx
call sub.d3dx9_35.dll_D3DXMatrixMultiply
mov ecx, 0x10
lea esi, [esp + 0x54c]
lea edi, [esp + 0x38c]
lea eax, [esp + 0x38c]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [ebx + 0x40]
push edx
call sub.d3dx9_35.dll_D3DXVec3TransformCoord
mov esi, dword [esp + 0x5a0]
mov eax, dword [ebp + 0xac]
mov dword [ebx - 0x14], eax
mov ecx, dword [ebp + 0xac]
mov dword [ebx + 0xc], ecx
mov edx, dword [ebp + 0xac]
mov dword [ebx + 0x2c], edx
mov eax, dword [ebp + 0xac]
mov dword [ebx + 0x4c], eax
test byte [esi], 8
je 0x487a89
mov edi, dword [esp + 0x5a4]
mov ecx, dword [edi]
fild dword [edi]
test ecx, ecx
jge 0x4879b2
fadd dword [0x4e594c]
fmul dword [ebp + 0xb0]
call fcn.004cfb28
push eax
mov ecx, edi
call fcn.004b22f0
test eax, eax
je 0x487be8
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
mov ecx, edx
mov edx, dword [eax + 4]
mov dword [esp + 0x128], edx
mov edx, ecx
mov dword [esp + 0x1ac], edx
fld dword [esp + 0x1ac]
fadd dword [esp + 0x98]
mov edx, dword [eax + 4]
mov eax, edx
mov dword [ebx - 0xc], eax
fstp dword [esp + 0x1ac]
mov eax, dword [esp + 0x1ac]
fld dword [esp + 0x128]
mov edi, ecx
fadd dword [esp + 0x94]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x30], ecx
fstp dword [esp + 0x128]
mov ecx, dword [esp + 0x128]
fld dword [esp + 0x84]
mov dword [ebx - 0x10], edi
fadd dword [esp + 0x98]
mov dword [ebx + 0x34], ecx
fstp dword [esp + 0x84]
mov edx, dword [esp + 0x84]
fld dword [esp + 0x88]
mov dword [ebx + 0x50], edx
fadd dword [esp + 0x94]
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
mov dword [ebx + 0x54], eax
jmp 0x487b31
mov dword [esp + 0x184], 0
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x188], 0
mov edx, dword [esp + 0x188]
mov dword [ebx - 0x10], ecx
mov dword [ebx - 0xc], edx
mov dword [esp + 0x158], 0x3f800000
mov eax, dword [esp + 0x158]
mov dword [esp + 0x15c], 0
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0xb8], 0
mov edx, dword [esp + 0xb8]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov dword [esp + 0xbc], 0x3f800000
mov eax, dword [esp + 0xbc]
mov dword [ebx + 0x30], edx
mov dword [esp + 0x150], 0x3f800000
mov ecx, dword [esp + 0x150]
mov dword [esp + 0x154], 0x3f800000
mov edx, dword [esp + 0x154]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], edx
mov dword [esp + 0xd0], 0
mov ecx, dword [esp + 0xd0]
mov dword [ebx - 4], ecx
mov dword [esp + 0xe0], 0
mov ecx, dword [esp + 0xe0]
mov dword [ebx + 0x38], ecx
mov dword [esp + 0xcc], 0
mov eax, dword [esp + 0xcc]
mov dword [ebx - 8], eax
mov dword [esp + 0x164], 0x3f800000
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x198], 0x3f800000
mov edx, dword [esp + 0x198]
mov dword [esp + 0x19c], 0
mov eax, dword [esp + 0x19c]
mov dword [ebx + 0x5c], ecx
mov ecx, dword [esp + 0x74]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], eax
mov dword [esp + 0xe4], 0x3f800000
mov edx, dword [esp + 0xe4]
mov dword [esp + 0x160], 0x3f800000
mov eax, dword [esp + 0x160]
inc ecx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x58], eax
mov dword [esp + 0x74], ecx
add ebx, 0x80
mov ebp, dword [ebp + 0xe8]
test ebp, ebp
jne 0x486c00
mov eax, dword [esp + 0x74]
xor edi, edi
cmp eax, edi
jle 0x487d0d
call fcn.00452770
mov ecx, dword [eax + 0x114]
add eax, 0x10c
call fcn.00483ca0
mov esi, dword [esp + 0x74]
mov edx, dword [0xa4ca38]
mov ebx, esi
shl ebx, 7
mov ebp, eax
lea eax, [ebx + edx]
cmp eax, dword [0xa4ca40]
mov ecx, 0x1000
jbe 0x487c5f
mov ecx, dword [esp + 0x590]
push ecx
call fcn.00452770
mov ecx, eax
call fcn.00453930
mov ecx, 0x2000
mov dword [0xa4ca3c], edi
mov dword [0xa4ca38], edi
mov edx, dword [esp + 0x104]
mov eax, dword [edx + 0x20]
push ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 1
mov edx, dword [0xa4ca3c]
lea ecx, [esp + 0x3c]
push ecx
mov dword [ebp], edx
mov dword [ebp + 4], esi
mov ecx, dword [0xa4ca38]
mov eax, dword [0xa4ca34]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x2c]
mov edi, dword [esp + 0x38]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, 0x196d978
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0xa4ca34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov edx, dword [0xa4ca3c]
mov edi, dword [0xa4ca38]
mov eax, dword [esp + 0x74]
lea ecx, [edx + eax*4]
add edi, ebx
push ebp
mov dword [0xa4ca3c], ecx
mov dword [0xa4ca38], edi
call fcn.00452770
mov ecx, eax
add ecx, 0x10c
call fcn.00452760
mov eax, dword [0x98c0d4]
test eax, eax
je 0x487d0d
mov edx, dword [esp + 0x590]
push edx
call fcn.00452770
mov ecx, eax
call fcn.00453930
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x57c
ret 0x18