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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x651ea8]
xor eax, esp
mov dword [esp + 0x94], eax
movss xmm0, dword [ebp + 8]
lea eax, [esp + 0x30]
push esi
mov esi, ecx
movss dword [esp + 0x2c], xmm0
push edi
push eax
push ecx
movss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x44], esi
movss dword [esp], xmm0
call fcn.004a3920
movss xmm1, dword [esp + 0x30]
mov ecx, esi
mulss xmm1, dword [esp + 0x38]
mov edi, dword [esi + 0x50]
addss xmm1, dword [esi + 0x24]
cvttss2si eax, xmm1
mov dword [esp + 0x14], eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [esi + 0x24], xmm1
call fcn.00469c60
mov edx, dword [esp + 0x14]
xorps xmm0, xmm0
mov ecx, edx
movss dword [esp + 0x2c], xmm0
sub ecx, dword [edi + 4]
add ecx, eax
mov dword [esp + 0x10], 0
xor eax, eax
mov dword [esp + 0xc], 0
test ecx, ecx
mov dword [esp + 0x28], 0
cmovns eax, ecx
sub edx, eax
mov dword [esp + 0x14], edx
je 0x4a105b
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, edi
movss dword [esp], xmm0
call fcn.004a3e80
movss xmm0, dword [esp + 0x10]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4a1889
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x50]
movss dword [esp], xmm0
call fcn.004a3d00
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x78]
push eax
push ecx
mov ecx, dword [esi + 0x48]
movss dword [esp], xmm0
call fcn.004a2c00
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x6c]
push eax
push ecx
mov ecx, dword [esi + 0x50]
movss dword [esp], xmm0
call fcn.004a3ac0
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x70]
push eax
push ecx
mov ecx, dword [esi + 0x50]
movss dword [esp], xmm0
call fcn.004a3b80
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x74]
push eax
push ecx
mov ecx, dword [esi + 0x50]
movss dword [esp], xmm0
call fcn.004a3c40
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esi + 0x50]
movss dword [esp], xmm0
call fcn.004a3dc0
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esi + 0x50]
movss dword [esp], xmm0
call fcn.004a3f40
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, dword [esi + 0x50]
movss dword [esp], xmm0
call fcn.004a4000
mov eax, dword [esi + 0x4c]
cmp byte [eax + 0x13], 3
jne 0x4a105b
mov edi, dword [esi + 4]
test edi, edi
je 0x4a105b
movss xmm1, dword [edi + 0x24]
movss xmm0, dword [0x62e130]
mulss xmm1, xmm1
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.005a45e0
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x5f38b0]
jb 0x4a105b
movss xmm0, dword [edi + 4]
xorps xmm0, xmmword [0x62e390]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [edi + 0x14]
fld qword [esp + 0x20]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
call fcn.005a4d00
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x62e1c4]
movss dword [esp + 0x2c], xmm0
cmp dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], 0
jle 0x4a1889
call fcn.0049eb40
mov ecx, dword [esi + 0x4c]
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [edi + 0x5c], ecx
mov ecx, dword [esi + 0x50]
mov dword [edi + 0x60], ecx
movss xmm0, dword [esp + 0x10]
movss dword [edi + 0x54], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [edi + 0x58], xmm0
mov ecx, dword [esi + 0x50]
call fcn.004a39f0
movzx eax, al
cmp eax, 3
ja case.default.0x4a10b7
jmp dword [eax*4 + 0x4a18ac]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
jmp case.default.0x4a10b7
sub esp, 8
mov dword [esp + 4], 0x43fa0000
mov dword [esp], 0xc3fa0000
call fcn.004a67d0
fstp dword [edi + 0xc]
mov dword [esp + 4], 0x43fa0000
mov dword [esp], 0xc3fa0000
call fcn.004a67d0
add esp, 8
lea eax, [edi + 0xc]
fstp dword [edi + 0x10]
mov dword [edi + 0x14], 0
push eax
push eax
call sub.d3dx9_43.dll_D3DXVec3Normalize
mov ecx, dword [esi + 0x50]
call fcn.0049aa70
test eax, eax
mov eax, dword [esi + 0x50]
je 0x4a1144
movss xmm1, dword [eax + 0x28]
addss xmm1, dword [esp + 0xc]
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0xc]
jmp 0x4a12de
movss xmm0, dword [eax + 0x28]
sub esp, 8
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.004a67d0
fadd dword [esp + 0x14]
add esp, 8
fstp dword [esp + 8]
movss xmm1, dword [esp + 8]
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0xc]
movss dword [edi + 0xc], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x14]
movss dword [edi + 0x10], xmm0
movss dword [edi + 0x14], xmm1
jmp case.default.0x4a10b7
mov eax, dword [esi + 0x50]
sub esp, 8
movss xmm1, dword [eax + 0x1c]
movaps xmm0, xmm1
mulss xmm1, dword [0x5f38b4]
mulss xmm0, dword [0x62e124]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.004a67d0
fadd dword [esp + 0x14]
fstp dword [edi + 0xc]
mov eax, dword [esi + 0x50]
movss xmm1, dword [eax + 0x20]
movaps xmm0, xmm1
mulss xmm1, dword [0x5f38b4]
mulss xmm0, dword [0x62e124]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.004a67d0
fadd dword [esp + 0x14]
fstp dword [edi + 0x10]
mov eax, dword [esi + 0x50]
movss xmm1, dword [eax + 0x24]
movaps xmm0, xmm1
mulss xmm1, dword [0x5f38b4]
mulss xmm0, dword [0x62e124]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.004a67d0
fadd dword [esp + 0x14]
add esp, 8
fstp dword [edi + 0x14]
jmp case.default.0x4a10b7
sub esp, 8
mov dword [esp + 4], 0x43fa0000
mov dword [esp], 0xc3fa0000
call fcn.004a67d0
fstp dword [edi + 0xc]
mov dword [esp + 4], 0x43fa0000
mov dword [esp], 0xc3fa0000
call fcn.004a67d0
fstp dword [edi + 0x10]
mov dword [esp + 4], 0x43fa0000
mov dword [esp], 0xc3fa0000
call fcn.004a67d0
add esp, 8
lea eax, [edi + 0xc]
fstp dword [edi + 0x14]
push eax
push eax
call sub.d3dx9_43.dll_D3DXVec3Normalize
mov ecx, dword [esi + 0x50]
call fcn.0049aa70
test eax, eax
mov eax, dword [esi + 0x50]
je 0x4a12aa
movss xmm1, dword [eax + 0x28]
addss xmm1, dword [esp + 0xc]
jmp 0x4a12d5
movss xmm0, dword [eax + 0x28]
sub esp, 8
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.004a67d0
fadd dword [esp + 0x14]
add esp, 8
fstp dword [esp + 8]
movss xmm1, dword [esp + 8]
movss xmm0, dword [edi + 0xc]
mulss xmm0, xmm1
movss dword [edi + 0xc], xmm0
movss xmm0, dword [edi + 0x10]
mulss xmm0, xmm1
movss dword [edi + 0x10], xmm0
movss xmm0, dword [edi + 0x14]
mulss xmm0, xmm1
movss dword [edi + 0x14], xmm0
movq xmm0, qword [esp + 0x78]
lea ecx, [edi + 0xc]
mov eax, dword [esp + 0x80]
movq qword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x78]
mov dword [esp + 0x5c], eax
addss xmm0, dword [ecx]
movss dword [ecx], xmm0
movss xmm0, dword [esp + 0x58]
addss xmm0, dword [ecx + 4]
movss dword [ecx + 4], xmm0
movss xmm0, dword [esp + 0x5c]
addss xmm0, dword [ecx + 8]
movss dword [ecx + 8], xmm0
mov edx, dword [esi + 4]
test edx, edx
je 0x4a136d
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x20], 0
jne 0x4a136d
push edx
push ecx
push ecx
call sub.d3dx9_43.dll_D3DXVec3TransformCoord
push dword [esi + 4]
lea eax, [esp + 0x58]
push eax
push eax
call sub.d3dx9_43.dll_D3DXVec3TransformCoord
movq xmm0, qword [esp + 0x54]
movq qword [edi], xmm0
mov eax, dword [esp + 0x5c]
mov dword [edi + 8], eax
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov ecx, dword [esi + 0x50]
call fcn.004a39e0
cmp al, 2
jne 0x4a13f9
movss xmm2, dword [edi + 0x10]
lea eax, [esp + 0x84]
movss xmm1, dword [edi + 0x14]
movss xmm0, dword [edi + 0xc]
subss xmm2, dword [esp + 0x58]
subss xmm1, dword [esp + 0x5c]
subss xmm0, dword [esp + 0x54]
push eax
lea eax, [edi + 0x24]
push eax
movss dword [esp + 0x90], xmm2
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x94], xmm1
call sub.d3dx9_43.dll_D3DXVec3Normalize
movss xmm1, dword [0x62e250]
jmp 0x4a14ba
mov ecx, dword [esi + 0x50]
call fcn.004a39e0
cmp al, 1
jne 0x4a14e4
mov ecx, dword [esi + 0x50]
call fcn.004a39f0
test al, al
jne 0x4a1465
sub esp, 8
mov dword [esp + 4], 0x42c80000
mov dword [esp], 0xc2c80000
call fcn.004a67d0
fstp dword [edi + 0x24]
mov dword [esp + 4], 0x42c80000
mov dword [esp], 0xc2c80000
call fcn.004a67d0
fstp dword [edi + 0x28]
mov dword [esp + 4], 0x42c80000
mov dword [esp], 0xc2c80000
call fcn.004a67d0
fstp dword [edi + 0x2c]
add esp, 8
jmp 0x4a14e4
movss xmm2, dword [edi + 0x10]
lea eax, [esp + 0x90]
movss xmm1, dword [edi + 0x14]
movss xmm0, dword [edi + 0xc]
subss xmm2, dword [esp + 0x58]
subss xmm1, dword [esp + 0x5c]
subss xmm0, dword [esp + 0x54]
push eax
lea eax, [edi + 0x24]
push eax
movss dword [esp + 0x9c], xmm2
movss dword [esp + 0x98], xmm0
movss dword [esp + 0xa0], xmm1
call sub.d3dx9_43.dll_D3DXVec3Normalize
movss xmm1, dword [0x62e1d8]
movss xmm0, dword [edi + 0x24]
mulss xmm0, xmm1
movss dword [edi + 0x24], xmm0
movss xmm0, dword [edi + 0x28]
mulss xmm0, xmm1
movss dword [edi + 0x28], xmm0
movss xmm0, dword [edi + 0x2c]
mulss xmm0, xmm1
movss dword [edi + 0x2c], xmm0
movq xmm0, qword [esp + 0x6c]
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x74]
movq qword [esp + 0x60], xmm0
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x4a1514
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x20], 0
jne 0x4a1514
push ecx
lea eax, [esp + 0x64]
push eax
push eax
call sub.d3dx9_43.dll_D3DXVec3TransformNormal
movss xmm0, dword [esp + 0x60]
addss xmm0, dword [edi + 0x24]
movss dword [edi + 0x24], xmm0
movss xmm0, dword [esp + 0x64]
addss xmm0, dword [edi + 0x28]
movss dword [edi + 0x28], xmm0
movss xmm0, dword [esp + 0x68]
addss xmm0, dword [edi + 0x2c]
movss dword [edi + 0x2c], xmm0
xorps xmm0, xmm0
mov eax, dword [esi + 0x50]
movss xmm1, dword [eax + 0x2c]
comiss xmm1, xmm0
jbe 0x4a159d
movaps xmm0, xmm1
sub esp, 8
mulss xmm0, dword [0x62e124]
mulss xmm1, dword [0x5f38b4]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.004a67d0
fmul dword [0x62e20c]
add esp, 8
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
addss xmm0, dword [edi + 0x24]
movss dword [edi + 0x24], xmm0
xorps xmm0, xmm0
mov eax, dword [esi + 0x50]
movss xmm1, dword [eax + 0x30]
comiss xmm1, xmm0
jbe 0x4a15f0
movaps xmm0, xmm1
sub esp, 8
mulss xmm0, dword [0x62e124]
mulss xmm1, dword [0x5f38b4]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.004a67d0
fmul dword [0x62e20c]
add esp, 8
movss xmm0, dword [edi + 0x28]
fstp dword [esp + 8]
addss xmm0, dword [esp + 8]
movss dword [edi + 0x28], xmm0
xorps xmm0, xmm0
mov eax, dword [esi + 0x50]
movss xmm1, dword [eax + 0x34]
comiss xmm1, xmm0
jbe 0x4a163d
movaps xmm0, xmm1
sub esp, 8
mulss xmm0, dword [0x62e124]
mulss xmm1, dword [0x5f38b4]
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
call fcn.004a67d0
fmul dword [0x62e20c]
add esp, 8
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
addss xmm0, dword [edi + 0x2c]
movss dword [edi + 0x2c], xmm0
movss xmm1, dword [esp + 0x28]
sub esp, 8
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x24]
movss dword [edi + 0x24], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x28]
mulss xmm1, dword [edi + 0x2c]
movss dword [edi + 0x28], xmm0
movss dword [edi + 0x2c], xmm1
mov eax, dword [esp + 0x48]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x4c]
movzx eax, word [eax + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x40], xmm0
mov ecx, dword [esi + 0x4c]
movzx eax, word [ecx + 0x1e]
movd xmm0, eax
movzx eax, word [ecx + 0x1c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.004a67d0
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
add esp, 8
movss dword [edi + 0x40], xmm0
mov eax, dword [esi + 0x4c]
cmp byte [eax + 0x13], 3
jne 0x4a16e0
cmp dword [esi + 4], 0
je 0x4a16e0
addss xmm0, dword [esp + 0x2c]
movss dword [edi + 0x40], xmm0
mov byte [edi + 0x50], 0
mov eax, dword [esi + 0x4c]
mov al, byte [eax + 4]
mov byte [edi + 0x48], al
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + 0x74]
sub eax, dword [ecx + 0x70]
sar eax, 2
cmp eax, 1
jbe 0x4a174d
cmp byte [ecx + 4], 4
jne 0x4a172c
call fcn.004a6820
test al, 1
je 0x4a1717
mov byte [edi + 0x50], 0
mov byte [edi + 0x48], 1
jmp 0x4a172c
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0x74]
sub ecx, dword [eax + 0x70]
sar ecx, 2
dec cl
mov byte [edi + 0x50], cl
mov byte [edi + 0x48], 2
mov ecx, dword [esi + 0x4c]
cmp dword [ecx + 0xc], 0
je 0x4a174d
mov eax, dword [ecx + 0x74]
sub eax, dword [ecx + 0x70]
sar eax, 2
dec eax
push eax
push 0
call fcn.004a6860
add esp, 8
mov byte [edi + 0x50], al
movss xmm4, dword [esp + 0x30]
movss xmm3, dword [edi + 0xc]
movaps xmm0, xmm4
mulss xmm0, dword [edi + 0x24]
mov ecx, dword [esp + 0x18]
movss xmm1, dword [edi + 0x2c]
movss xmm2, dword [edi + 0x10]
mulss xmm1, xmm4
subss xmm3, xmm0
push edi
movss xmm0, dword [edi + 0x28]
mulss xmm0, xmm4
subss xmm2, xmm0
movss xmm0, dword [edi + 0x14]
subss xmm0, xmm1
unpcklps xmm3, xmm2
movq qword [edi + 0x18], xmm3
movss dword [esp + 0x54], xmm0
mov eax, dword [esp + 0x54]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 4]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 4]
mov dword [edi + 0x44], eax
test ecx, ecx
jne 0x4a17d8
mov ecx, dword [esi + 0x48]
call fcn.00495430
mov dword [esp + 0x18], edi
jmp 0x4a182a
mov esi, dword [ecx + 0x70]
push ecx
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esi + 4]
add esi, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 8], eax
test ecx, ecx
je 0x4a1823
mov eax, dword [ecx]
push edi
push dword [esp + 0x1c]
mov eax, dword [eax + 8]
call eax
mov edx, dword [esp + 8]
mov dword [edx + 4], eax
mov dword [eax + 8], edx
mov esi, dword [esi]
mov ecx, dword [edx + 4]
add esi, 4
mov dword [esp + 8], ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x4a17f7
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
mov dword [edi + 0x70], eax
movzx ecx, byte [edi + 0x50]
lea edx, [esp + 0x20]
mov eax, dword [esi + 0x30]
push edx
lea edi, [eax + ecx*8]
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 4]
push ecx
mov dword [esp + 0x10], ecx
mov ecx, edi
push eax
call fcn.00429b40
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jb 0x4a189f
lea ecx, [eax + 1]
mov eax, dword [esp + 0x1c]
mov dword [edi + 4], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 8]
mov dword [eax], edx
mov eax, dword [esp + 0x34]
inc dword [esi + 0x28]
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x14]
jl 0x4a1076
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.00552cac
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call fcn.00550660
nop dword [eax]
mov esi, 0xd8004a10
adc byte [edx], cl
cwde
adc dword [edx], ecx
cmp dword [edx], edx
dec edx
add ah, cl
int3