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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x140
mov eax, dword [0x651ea8]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
call fcn.0049e840
test eax, eax
je 0x49e37d
mov eax, dword [edi + 0x5c]
xor esi, esi
mov ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], esi
call fcn.0049aa80
test eax, eax
je 0x49e37d
lea edx, [edi + 0x2c]
nop
mov ecx, dword [edi + 0x50]
lea eax, [esi + esi*2]
shl eax, 4
add ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
mov ecx, edx
call fcn.00482180
mov ecx, dword [esp + 0x14]
movzx eax, al
push eax
call fcn.004a49c0
test eax, eax
je 0x49e364
mov ecx, dword [edi + 0x24]
push esi
call fcn.0049a950
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0xa4], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x68], 0x3f800000
sub eax, 1
je 0x49deca
sub eax, 1
je 0x49ddc7
sub eax, 1
jne 0x49df45
movss xmm0, dword [edi + 0xc]
lea eax, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [edi + 0x24]
movss dword [esp], xmm0
call fcn.004a2c00
mov ecx, dword [0x6da220]
lea eax, [esp + 0xe8]
push eax
call fcn.004a6790
fsubr dword [edi + 0xc]
push ecx
mov ecx, dword [edi + 0x24]
fstp dword [esp]
call fcn.004a2c00
movss xmm2, dword [esp + 0x5c]
movss xmm1, dword [esp + 0x60]
subss xmm1, dword [esp + 0xec]
subss xmm2, dword [esp + 0xe8]
movss xmm0, dword [esp + 0x64]
subss xmm0, dword [esp + 0xf0]
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x5c], xmm2
mulss xmm1, xmm1
mulss xmm2, xmm2
movss dword [esp + 0x64], xmm0
mulss xmm0, xmm0
addss xmm1, xmm2
addss xmm1, xmm0
comiss xmm1, dword [0x5f385c]
jbe 0x49df45
lea eax, [esp + 0x5c]
push eax
push eax
call sub.d3dx9_43.dll_D3DXVec3Normalize
movss xmm5, dword [esp + 0x5c]
xorps xmm1, xmm1
movss xmm3, dword [esp + 0x64]
movss xmm6, dword [esp + 0x60]
movss xmm7, dword [0x62e23c]
ucomiss xmm1, xmm5
lahf
test ah, 0x44
jp 0x49dcbe
ucomiss xmm7, xmm6
lahf
test ah, 0x44
jp 0x49dcbe
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x49dcbe
movaps xmm0, xmmword [0x5f3870]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x6c]
push eax
movups xmmword [esp + 0x44], xmm0
call sub.d3dx9_43.dll_D3DXMatrixRotationQuaternion
jmp 0x49df45
movaps xmm0, xmm5
movaps xmm2, xmm6
xorps xmm0, xmmword [0x62e390]
movaps xmm4, xmm3
xorps xmm2, xmmword [0x62e390]
xorps xmm4, xmmword [0x62e390]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x49dd17
ucomiss xmm7, xmm2
lahf
test ah, 0x44
jp 0x49dd17
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jp 0x49dd17
movaps xmm0, xmmword [0x5f3860]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x6c]
push eax
movups xmmword [esp + 0x44], xmm0
call sub.d3dx9_43.dll_D3DXMatrixRotationQuaternion
jmp 0x49df45
movaps xmm0, xmm3
movaps xmm2, xmm6
mulss xmm0, xmm7
mulss xmm2, xmm1
mulss xmm3, xmm1
subss xmm0, xmm2
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm1
mulss xmm5, xmm7
movaps xmm1, xmm0
subss xmm0, xmm6
subss xmm1, xmm3
subss xmm2, xmm5
addss xmm0, xmm3
movss dword [esp + 0xc], xmm1
movss dword [esp + 0x1c], xmm2
addss xmm0, dword [0x62e130]
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
call fcn.005a4520
movss xmm1, dword [esp + 0x18]
lea eax, [esp + 0x3c]
cvtsd2ss xmm0, xmm0
push eax
lea eax, [esp + 0x6c]
push eax
divss xmm1, xmm0
movss dword [esp + 0x44], xmm1
movss xmm1, dword [esp + 0x14]
divss xmm1, xmm0
movss dword [esp + 0x48], xmm1
movss xmm1, dword [esp + 0x24]
divss xmm1, xmm0
mulss xmm0, dword [0x62e124]
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x50], xmm0
call sub.d3dx9_43.dll_D3DXMatrixRotationQuaternion
jmp 0x49df45
mov dword [esp + 0xe0], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xe4], 0x3f800000
mov dword [esp + 0xd0], 0x3f800000
mov dword [esp + 0xbc], 0x3f800000
mov dword [esp + 0xa8], 0x3f800000
call fcn.004be0b0
push eax
push 0
lea eax, [esp + 0xb0]
push eax
call sub.d3dx9_43.dll_D3DXMatrixInverse
movss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0xac]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0xb8]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0xbc]
movss dword [esp + 0x7c], xmm0
jmp 0x49df45
push ecx
lea eax, [esp + 0x104]
mov dword [esp], 0x42b40000
push eax
call sub.d3dx9_43.dll_D3DXMatrixRotationX
call fcn.004be0b0
push eax
push 0
lea eax, [esp + 0x70]
push eax
call sub.d3dx9_43.dll_D3DXMatrixInverse
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0xb0]
push eax
call sub.d3dx9_43.dll_D3DXMatrixMultiply
movups xmm0, xmmword [esp + 0xa8]
movups xmmword [esp + 0x68], xmm0
movups xmm0, xmmword [esp + 0xb8]
movups xmmword [esp + 0x78], xmm0
movups xmm0, xmmword [esp + 0xc8]
movups xmmword [esp + 0x88], xmm0
movups xmm0, xmmword [esp + 0xd8]
movups xmmword [esp + 0x98], xmm0
mov ecx, dword [edi + 0x24]
push esi
call fcn.0049c7f0
test eax, eax
jne 0x49df62
mov ecx, dword [0x6d7a5c]
push eax
push 0x1b
call fcn.004bdd50
jmp 0x49dfb1
mov ecx, dword [edi + 0x24]
push esi
call fcn.0049a9b0
mov ecx, dword [esp + 0x28]
push esi
movzx edi, al
mov ecx, dword [ecx + 0x24]
call fcn.0049a980
mov ecx, dword [0x6d7a5c]
push 1
push 0x1b
movzx esi, al
call fcn.004bdd50
mov ecx, dword [0x6d7a5c]
push edi
push 0x13
call fcn.004bdd50
mov ecx, dword [0x6d7a5c]
push esi
push 0x14
call fcn.004bdd50
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
movss xmm0, dword [edi + 0xc]
lea eax, [esp + 0xf4]
push eax
push ecx
mov ecx, dword [edi + 0x24]
movss dword [esp], xmm0
call fcn.004a2c00
movss xmm0, dword [esp + 0xf4]
lea eax, [esp + 0x68]
push dword [edi + 4]
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [esp + 0xfc]
push eax
movss dword [esp + 0xa4], xmm0
lea eax, [esp + 0xb0]
movss xmm0, dword [esp + 0x104]
push eax
movss dword [esp + 0xac], xmm0
call sub.d3dx9_43.dll_D3DXMatrixMultiply
movups xmm0, xmmword [esp + 0xa8]
mov ecx, dword [0x6d7a5c]
lea eax, [esp + 0x68]
push eax
movups xmmword [esp + 0x6c], xmm0
push 0x100
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [esp + 0xd0]
movups xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [esp + 0xa0], xmm0
call fcn.004bdea0
movaps xmm0, xmmword [0x62e360]
lea eax, [esp + 0x13]
mov ecx, dword [edi + 0x24]
push eax
push esi
movups xmmword [esp + 0x54], xmm0
call fcn.0049aa20
test eax, eax
je 0x49e09c
movzx eax, byte [esp + 0x13]
mov ecx, dword [0x6d7a5c]
push eax
push 1
push 0
call fcn.004bde60
mov ecx, dword [edi + 0x24]
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.0049a9e0
movss xmm0, dword [0x62e130]
lea eax, [esp + 0x30]
mov ecx, dword [edi + 0x24]
push eax
push esi
movss dword [esp + 0x14], xmm0
call fcn.0049ab20
test eax, eax
je 0x49e18b
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp eax, ecx
je 0x49e18b
movss xmm1, dword [edi + 0xc]
lea edx, [eax + 8]
movss dword [esp + 0x1c], xmm1
cmp edx, ecx
jne 0x49e101
movss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
jmp 0x49e18b
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x49e117
movss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
jmp 0x49e18b
comiss xmm1, dword [ecx - 8]
jbe 0x49e12a
movss xmm0, dword [ecx - 4]
movss dword [esp + 0xc], xmm0
jmp 0x49e18b
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00494000
mov eax, dword [esp + 0x44]
add esp, 0x10
mov ecx, dword [esp + 0x38]
cmp eax, ecx
je 0x49e157
movss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
jmp 0x49e18b
movss xmm0, dword [ecx]
sub eax, 8
movaps xmm2, xmm0
mov dword [esp + 0x34], eax
subss xmm2, dword [edi + 0xc]
subss xmm0, dword [eax]
divss xmm2, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [ecx + 4]
mulss xmm2, xmm0
addss xmm2, dword [ecx + 4]
movss dword [esp + 0xc], xmm2
mov ecx, dword [esp + 0x2c]
push esi
call fcn.0049aa90
lea ecx, [edi + 0x2c]
mov esi, eax
call fcn.00482180
mov ecx, dword [esp + 0x14]
movzx eax, al
shl eax, 5
add eax, dword [esi + 0xa0]
mov dword [esp + 0x1c], eax
call fcn.00482180
mov esi, dword [esp + 0x24]
movzx ecx, al
mov eax, dword [edi + 0x50]
mov edx, dword [esi + eax + 0x24]
mov eax, dword [esi + eax + 0x28]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x49e1f2
mov ecx, dword [edx + ecx*4]
mov esi, dword [0x6d7a5c]
call fcn.004c9060
mov ecx, eax
call fcn.00428330
push eax
push 0
mov ecx, esi
call fcn.004bde20
mov esi, dword [esp + 0x1c]
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
mulss xmm0, dword [esp + 0xc]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x4c]
comiss xmm0, dword [0x62e130]
jb 0x49e229
mov dword [esp + 0xc], 0xff
jmp 0x49e254
comiss xmm1, xmm0
jb 0x49e238
mov dword [esp + 0xc], 0
jmp 0x49e254
mulss xmm0, dword [0x62e1f0]
addss xmm0, dword [0x62e124]
call fcn.005537e0
mov dword [esp + 0xc], eax
xorps xmm1, xmm1
movss xmm0, dword [esp + 0x50]
comiss xmm0, dword [0x62e130]
jb 0x49e26d
mov dword [esp + 0x18], 0xff
jmp 0x49e295
comiss xmm1, xmm0
jb 0x49e27c
mov dword [esp + 0x18], 0
jmp 0x49e295
mulss xmm0, dword [0x62e1f0]
addss xmm0, dword [0x62e124]
call fcn.005537e0
mov dword [esp + 0x18], eax
movss xmm0, dword [esp + 0x54]
xorps xmm1, xmm1
comiss xmm0, dword [0x62e130]
jb 0x49e2b1
mov dword [esp + 0x14], 0xff
jmp 0x49e2dc
comiss xmm1, xmm0
jb 0x49e2c0
mov dword [esp + 0x14], 0
jmp 0x49e2dc
mulss xmm0, dword [0x62e1f0]
addss xmm0, dword [0x62e124]
call fcn.005537e0
mov dword [esp + 0x14], eax
xorps xmm1, xmm1
movss xmm0, dword [esp + 0x24]
comiss xmm0, dword [0x62e130]
jb 0x49e2f2
mov eax, 0xff
jmp 0x49e310
comiss xmm1, xmm0
jb 0x49e2fb
xor eax, eax
jmp 0x49e310
mulss xmm0, dword [0x62e1f0]
addss xmm0, dword [0x62e124]
call fcn.005537e0
mov ecx, dword [0x6d7a5c]
shl eax, 8
or eax, dword [esp + 0xc]
shl eax, 8
or eax, dword [esp + 0x18]
shl eax, 8
or eax, dword [esp + 0x14]
push eax
push 0x3c
call fcn.004bdd50
mov ecx, dword [0x6d7a5c]
push 0x102
call fcn.004bdba0
mov ecx, dword [0x6d7a5c]
mov eax, 0xaaaaaaab
mul dword [esi + 0x10]
push 0x14
push dword [esi + 0x14]
shr edx, 1
push edx
push 4
call fcn.004bcc20
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc esi
mov dword [esp + 0x20], esi
call fcn.0049aa80
lea edx, [edi + 0x2c]
cmp esi, eax
jb 0x49dad0
mov ecx, dword [esp + 0x144]
pop edi
pop esi
xor ecx, esp
call fcn.00552bec
mov esp, ebp
pop ebp
ret