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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x328
mov eax, dword [0x4e84c4]
xor eax, esp
mov dword [esp + 0x324], eax
mov eax, dword fs:[0x2c]
push esi
push edi
mov edi, ecx
mov edx, dword [eax]
mov eax, dword [0x4ec3a8]
mov dword [esp + 0x48], edi
cmp eax, dword [edx + 8]
jle 0x414699
push 0x4ec3a8
call fcn.0049c29e
add esp, 4
cmp dword [0x4ec3a8], 0xffffffff
jne 0x414699
xorps xmm0, xmm0
push 0x4c73f0
movups xmmword [0x4ec390], xmm0
movq qword [0x4ec3a0], xmm0
call fcn.0049c5b0
add esp, 4
push 0x4ec3a8
call fcn.0049c254
add esp, 4
cmp byte [0x4ec39c], 0
jne 0x415dd5
mov eax, dword [edi + 0x20]
xor ecx, ecx
mov edx, dword [edi + 0x1c]
sub eax, edx
sar eax, 2
test eax, eax
jle 0x4146f2
mov eax, dword [edx + ecx*4]
mov edx, dword [eax + 0x24]
test edx, edx
je 0x4146e2
inc dword [eax + 0x28]
mov esi, dword [edx + 0x18]
cmp esi, dword [eax + 0x28]
jg 0x4146e2
cmp byte [edx + 0x1c], 0
je 0x4146db
mov dword [eax + 0x28], 0
jmp 0x4146e2
mov dword [eax + 0x28], esi
mov byte [eax + 0x34], 1
mov eax, dword [edi + 0x20]
inc ecx
mov edx, dword [edi + 0x1c]
sub eax, edx
sar eax, 2
cmp ecx, eax
jl 0x4146b7
push dword [edi + 0x5c]
call fcn.0049c6df
add esp, 4
mov esi, eax
mov dword [esp + 0x58], esi
push dword [edi + 0x5c]
push 0
push esi
call fcn.0049f000
mov ecx, dword [edi + 0x20]
add esp, 0xc
mov edx, dword [edi + 0x1c]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x10], 0
sar eax, 2
test eax, eax
jle 0x4148ff
xor esi, esi
sub ecx, edx
sar ecx, 2
sub ecx, esi
mov eax, dword [edx + ecx*4 - 4]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b0], ecx
mov esi, dword [eax + 0x18]
mov dword [esp + 0xc], esi
mov esi, dword [eax + 0x1c]
mov dword [esp + 0x44], eax
cmp dword [esp + 0xc], esi
je 0x414812
sub esi, dword [esp + 0xc]
mov dword [esp + 0x14], esi
sar esi, 2
mov dword [esp + 0x20], esi
cmp esi, 0x3fffffff
ja 0x415de9
shl esi, 2
cmp esi, 0x1000
jb 0x4147b9
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x415de9
push eax
call fcn.0049c118
add esp, 4
test eax, eax
je 0x415dee
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4147cc
test esi, esi
je 0x4147ca
push esi
call fcn.0049c118
add esp, 4
mov esi, eax
jmp 0x4147cc
xor esi, esi
push dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push dword [esp + 0x10]
mov dword [esp + 0x1b0], esi
push esi
lea eax, [esi + eax*4]
mov dword [esp + 0x1b8], esi
mov dword [esp + 0x1bc], eax
call fcn.0049f160
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x1a8]
lea edx, [esi + eax*4]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1ac], edx
mov eax, dword [eax + 0x24]
xor esi, esi
mov dword [esp + 0x14], eax
mov eax, edx
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x41487d
mov eax, dword [ecx + esi*4]
test eax, eax
js 0x414871
cmp eax, dword [edi + 0x5c]
jge 0x414871
mov edi, dword [esp + 0x58]
cmp byte [eax + edi], 0
mov edi, dword [esp + 0x48]
jne 0x414871
mov ecx, dword [esp + 0x58]
lea edx, [eax + eax*2]
mov byte [eax + ecx], 1
mov eax, dword [edi + 0x60]
mov ecx, dword [esp + 0x14]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x28]
mov eax, dword [edi + 0x60]
mov dword [eax + edx*4 + 4], ecx
mov edx, dword [esp + 0x1ac]
mov ecx, dword [esp + 0x1a8]
mov eax, edx
inc esi
sub eax, ecx
sar eax, 2
cmp esi, eax
jl 0x414826
test ecx, ecx
je 0x4148dd
mov eax, dword [esp + 0x1b0]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x4148b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415dee
push edx
push ecx
call fcn.0049c10a
add esp, 8
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
mov dword [esp + 0x1b0], 0
mov ecx, dword [edi + 0x20]
mov eax, ecx
mov esi, dword [esp + 0x10]
mov edx, dword [edi + 0x1c]
inc esi
sub eax, edx
mov dword [esp + 0x10], esi
sar eax, 2
cmp esi, eax
jl 0x414730
mov esi, dword [esp + 0x58]
mov eax, dword [edi + 0x5c]
xor ecx, ecx
test eax, eax
jle 0x414936
xor edx, edx
nop word [eax + eax]
cmp byte [ecx + esi], 0
jne 0x41492b
mov eax, dword [edi + 0x60]
mov dword [eax + edx], 0
mov eax, dword [edi + 0x60]
mov dword [eax + edx + 4], 0
mov eax, dword [edi + 0x5c]
inc ecx
add edx, 0xc
cmp ecx, eax
jl 0x414910
push eax
call fcn.0049c6df
add esp, 4
mov dword [esp + 0x40], eax
push dword [edi + 0x5c]
push 0
push eax
call fcn.0049f000
mov ecx, dword [edi + 0x5c]
add esp, 0xc
xor esi, esi
test ecx, ecx
jle 0x414a06
xor edx, edx
mov ecx, dword [edi + 0x6c]
cmp dword [edx + ecx + 8], 0
lea eax, [edx + ecx]
mov dword [esp + 0x20], eax
jg 0x414990
mov eax, dword [edi + 0x60]
mov edi, dword [esp + 0x20]
mov eax, dword [edx + eax]
cmp eax, dword [edi]
mov edi, dword [esp + 0x48]
je 0x414990
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x58]
mov dword [ecx + 8], eax
mov ecx, dword [edi + 0x6c]
mov eax, dword [ecx + edx + 8]
test eax, eax
jle 0x4149f7
dec eax
mov dword [ecx + edx + 8], eax
mov eax, dword [edi + 0x6c]
inc dword [edx + eax + 4]
mov ecx, dword [edi + 0x6c]
mov eax, dword [edx + ecx]
test eax, eax
je 0x4149ce
mov eax, dword [eax + 0x18]
cmp dword [edx + ecx + 4], eax
jle 0x4149ce
mov edi, dword [edx + ecx]
cmp byte [edi + 0x1c], 0
mov edi, 0
cmovne eax, edi
mov edi, dword [esp + 0x48]
mov dword [edx + ecx + 4], eax
mov eax, dword [esp + 0x40]
mov byte [esi + eax], 1
mov ecx, dword [edi + 0x6c]
cmp dword [edx + ecx + 8], 0
jg 0x4149f7
mov eax, dword [edi + 0x60]
mov eax, dword [edx + eax]
mov dword [edx + ecx], eax
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x6c]
mov eax, dword [edx + eax + 4]
mov dword [edx + ecx + 4], eax
mov ecx, dword [edi + 0x5c]
inc esi
add edx, 0xc
cmp esi, ecx
jl 0x414960
movss xmm2, dword [0x4da970]
xor esi, esi
movss xmm3, dword [0x4da724]
mov dword [esp + 0x54], esi
test ecx, ecx
jle 0x415b5c
xor eax, eax
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x6c], 0x3f800000
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x1a8], esi
mov dword [esp + 0x1ac], esi
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x88], 0x3f800000
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x1b0]
sub esp, 0xc
movq xmm0, qword [esp + 0x1b4]
mov dword [esp + 0x1ec], eax
lea eax, [esp + 0x2ec]
movq qword [esp + 0x1e4], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXQuaternionRotationYawPitchRoll]
movups xmm0, xmmword [esp + 0x2e0]
mov eax, dword [esp + 0x70]
sub esp, 0xc
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x8c]
movups xmmword [esp + 0x1f0], xmm0
mov dword [esp + 8], 0
movq xmm0, qword [esp + 0x74]
mov dword [esp + 0x27c], eax
lea eax, [esp + 0x2fc]
mov dword [esp + 4], 0
movq qword [esp + 0x200], xmm0
movq xmm0, qword [esp + 0x84]
mov dword [esp], 0
push eax
movq qword [esp + 0x278], xmm0
call dword [sym.imp.d3dx9_43.dll_D3DXQuaternionRotationYawPitchRoll]
mov eax, dword [esp + 0x90]
movups xmm0, xmmword [esp + 0x2f0]
mov edx, dword [edi + 0x60]
mov dword [esp + 0x28c], eax
mov eax, dword [esp + 0x4c]
movups xmmword [esp + 0x274], xmm0
movq xmm0, qword [esp + 0x88]
mov ecx, dword [eax + edx]
movq qword [esp + 0x284], xmm0
test ecx, ecx
je 0x414bb6
push dword [eax + edx + 4]
lea eax, [esp + 0x134]
push esi
push eax
call fcn.00416b10
mov esi, eax
lea edi, [esp + 0x1d8]
mov eax, dword [esp + 0x4c]
mov ecx, 0x1d
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov cl, byte [esi + ecx]
test cl, cl
je 0x41570b
mov edx, dword [edi + 0x6c]
mov ecx, dword [edx + eax]
test ecx, ecx
je 0x414c08
push dword [edx + eax + 4]
lea eax, [esp + 0x134]
push esi
push eax
call fcn.00416b10
mov edx, dword [esp + 0x40]
lea edi, [esp + 0x268]
mov esi, eax
mov ecx, 0x1d
mov eax, dword [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [eax + edx]
test cl, cl
je 0x41570b
mov edi, dword [esp + 0x48]
sub esp, 0xc
lea eax, [esp + 0x328]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXQuaternionRotationYawPitchRoll]
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 0x4c]
movss xmm2, dword [esp + 0x1dc]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [esi + eax + 8]
sub ecx, eax
movd xmm4, ecx
cvtdq2ps xmm4, xmm4
movss xmm3, dword [esp + 0x1e0]
divss xmm4, xmm0
movss xmm1, dword [esp + 0x1d8]
mulss xmm2, xmm4
mulss xmm3, xmm4
mulss xmm1, xmm4
movss dword [esp + 0xc], xmm4
movd xmm4, eax
cvtdq2ps xmm4, xmm4
movss xmm6, dword [esp + 0x26c]
divss xmm4, xmm0
movss xmm0, dword [esp + 0x268]
movss xmm5, dword [esp + 0x270]
movss xmm7, dword [esp + 0x1ec]
mulss xmm6, xmm4
mulss xmm0, xmm4
mulss xmm5, xmm4
addss xmm6, xmm2
movss xmm2, dword [esp + 0x1e8]
addss xmm0, xmm1
mulss xmm2, dword [0x4da740]
movss dword [esp + 0x14], xmm4
addss xmm5, xmm3
movss xmm4, dword [esp + 0x1e4]
mulss xmm4, dword [0x4da740]
movss xmm3, dword [0x4da970]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x20], xmm6
movaps xmm0, xmm4
movss dword [esp + 0x44], xmm5
movaps xmm6, xmm2
movss xmm5, dword [esp + 0x1f0]
mulss xmm6, xmm7
mulss xmm0, xmm5
movss dword [esp + 0x10], xmm2
movss dword [esp + 0x38], xmm4
subss xmm6, xmm0
xorps xmm6, xmm3
movaps xmm0, xmm6
movss dword [esp + 0x24], xmm6
call fcn.00414100
movss xmm1, dword [0x4da720]
comiss xmm1, xmm0
movss xmm1, dword [0x4da740]
seta al
test al, al
je 0x414dfb
movaps xmm0, xmm5
movaps xmm3, xmm7
mulss xmm0, xmm1
mulss xmm3, xmm1
movaps xmm1, xmm2
mulss xmm1, dword [esp + 0x1e8]
movaps xmm2, xmm4
mulss xmm2, dword [esp + 0x1e8]
mulss xmm0, xmm5
movss dword [esp + 0x34], xmm3
addss xmm1, xmm0
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm5
subss xmm1, dword [0x4da724]
addss xmm0, xmm2
call fcn.00419430
movss xmm1, dword [esp + 0x38]
mulss xmm1, dword [esp + 0x1ec]
movss xmm6, dword [esp + 0x24]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x1f0]
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x34]
mulss xmm0, dword [esp + 0x1ec]
addss xmm0, dword [esp + 0x3c]
jmp 0x414e34
xorps xmm0, xmm0
mulss xmm2, xmm5
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm4
mulss xmm4, dword [esp + 0x1e4]
mulss xmm0, xmm7
subss xmm0, xmm2
xorps xmm0, xmm3
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm5
addss xmm0, xmm4
subss xmm0, dword [0x4da724]
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm6
call fcn.00427b40
mulss xmm0, dword [esp + 0xc]
movss xmm1, dword [esp + 0x34]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x10]
call fcn.00419430
movss xmm3, dword [esp + 0x278]
movaps xmm1, xmm0
movss xmm0, dword [esp + 0xc]
movss xmm4, dword [esp + 0x274]
mulss xmm3, dword [0x4da740]
mulss xmm4, dword [0x4da740]
movss xmm7, dword [esp + 0x27c]
movaps xmm6, xmm3
movss xmm5, dword [esp + 0x280]
movss xmm2, dword [0x4da970]
mulss xmm1, xmm0
mulss xmm0, dword [esp + 0x18]
mulss xmm6, xmm7
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm4
mulss xmm0, xmm5
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x34], xmm3
subss xmm6, xmm0
movss dword [esp + 0x24], xmm4
xorps xmm6, xmm2
movaps xmm0, xmm6
movss dword [esp + 0x38], xmm6
call fcn.00414100
movss xmm1, dword [0x4da720]
comiss xmm1, xmm0
movss xmm1, dword [0x4da740]
seta al
test al, al
je 0x414fac
movaps xmm0, xmm5
movaps xmm2, xmm7
mulss xmm0, xmm1
mulss xmm2, xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esp + 0x278]
mulss xmm0, xmm5
movss dword [esp + 0x10], xmm2
addss xmm1, xmm0
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm2
movaps xmm2, xmm4
mulss xmm2, dword [esp + 0x278]
mulss xmm0, xmm5
subss xmm1, dword [0x4da724]
addss xmm0, xmm2
call fcn.00419430
movss xmm1, dword [esp + 0x24]
mulss xmm1, dword [esp + 0x27c]
movss xmm6, dword [esp + 0x38]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x34]
mulss xmm0, dword [esp + 0x280]
addss xmm0, xmm1
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x27c]
addss xmm0, dword [esp + 0x3c]
jmp 0x414fe5
xorps xmm0, xmm0
mulss xmm3, xmm5
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm4
mulss xmm4, dword [esp + 0x274]
mulss xmm0, xmm7
subss xmm0, xmm3
xorps xmm0, xmm2
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm5
addss xmm0, xmm4
subss xmm0, dword [0x4da724]
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm6
call fcn.00427b40
mulss xmm0, dword [esp + 0x14]
movss xmm1, dword [esp + 0x10]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x34]
call fcn.00419430
movss xmm2, dword [esp + 0x14]
lea eax, [esp + 0x1c8]
movss xmm1, dword [esp + 0x24]
sub esp, 0xc
addss xmm1, dword [esp + 0x34]
mulss xmm0, xmm2
mulss xmm2, dword [esp + 0x24]
addss xmm0, dword [esp + 0x38]
addss xmm2, dword [esp + 0x18]
movss dword [esp + 8], xmm2
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXQuaternionRotationYawPitchRoll]
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x6c]
movss xmm2, dword [esp + 0x1f4]
movss xmm3, dword [esp + 0x1fc]
movd xmm1, ecx
mov eax, dword [esi + eax + 8]
sub ecx, eax
cvtdq2ps xmm1, xmm1
mov esi, dword [esp + 0x50]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss xmm4, dword [esp + 0x1f8]
divss xmm0, xmm1
movss xmm6, dword [esp + 0x284]
mulss xmm3, xmm0
mulss xmm2, xmm0
mulss xmm4, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + 0x40]
movss xmm5, dword [esp + 0x28c]
divss xmm0, xmm1
movss xmm1, dword [esp + 0x288]
mulss xmm5, xmm0
mulss xmm6, xmm0
mulss xmm1, xmm0
addss xmm5, xmm3
movq xmm0, qword [esi + eax]
addss xmm6, xmm2
mov eax, dword [esi + eax + 8]
movq qword [esp + 0x9c], xmm0
addss xmm4, xmm1
movss xmm0, dword [esp + 0x9c]
addss xmm0, dword [esp + 0x1c]
movss xmm7, dword [esp + 0x1c8]
movss xmm1, dword [0x4da740]
movss xmm2, dword [esp + 0x1d0]
mov dword [esp + 0xa4], eax
movaps xmm3, xmm2
movups xmmword [esp + 0x120], xmm0
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x38], xmm6
movss xmm6, dword [esp + 0x1cc]
movss dword [esp + 0x30], xmm5
movaps xmm5, xmm7
mulss xmm5, xmm1
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x44]
addss xmm0, dword [esp + 0xa4]
movss dword [esp + 0x34], xmm4
movss dword [esp + 0x14], xmm5
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x44], xmm0
movaps xmm0, xmm6
mulss xmm0, xmm1
movss dword [esp + 0xc], xmm0
mulss xmm3, xmm0
movss xmm4, dword [esp + 0x1d4]
movaps xmm0, xmm4
movss dword [esp + 0x2c], xmm4
mulss xmm0, xmm5
subss xmm3, xmm0
movss dword [esp + 0x10], xmm3
movss xmm0, dword [esp + 0x10]
movss xmm3, dword [0x4da970]
xorps xmm0, xmm3
movss dword [esp + 0x10], xmm0
call fcn.00414100
movss xmm5, dword [0x4da720]
comiss xmm5, xmm0
movss xmm5, dword [esp + 0x14]
seta al
test al, al
je 0x41526d
movaps xmm0, xmm4
mulss xmm2, xmm1
mulss xmm0, xmm1
movaps xmm1, xmm6
mulss xmm1, dword [esp + 0xc]
mulss xmm0, xmm4
mulss xmm6, xmm5
addss xmm1, xmm0
movss dword [esp + 0x24], xmm0
movaps xmm0, xmm4
movss dword [esp + 0x28], xmm2
mulss xmm0, xmm2
subss xmm1, dword [0x4da724]
addss xmm0, xmm6
call fcn.00419430
movss xmm1, dword [esp + 0x2c]
mulss xmm1, dword [esp + 0xc]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x1c]
movaps xmm2, xmm0
mulss xmm0, dword [esp + 0x28]
mulss xmm2, dword [esp + 0x14]
addss xmm0, dword [esp + 0x24]
addss xmm2, xmm1
jmp 0x41529d
xorps xmm0, xmm0
mulss xmm2, xmm5
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0xc]
mulss xmm7, xmm5
subss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm1
mulss xmm0, xmm4
xorps xmm2, xmm3
addss xmm0, xmm7
subss xmm0, dword [0x4da724]
movaps xmm1, xmm0
movaps xmm0, xmm2
call fcn.00419430
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x10]
call fcn.00427b40
mov ecx, dword [edi + 0x40]
movss dword [esp + 0x24], xmm0
movss xmm7, dword [esi + ecx + 0x10]
movss xmm4, dword [esi + ecx + 0xc]
movaps xmm3, xmm7
movss xmm6, dword [esi + ecx + 0x14]
addss xmm3, xmm7
movss xmm5, dword [esi + ecx + 0x18]
addss xmm4, xmm4
movaps xmm2, xmm3
movss dword [esp + 0x10], xmm3
movaps xmm0, xmm4
mulss xmm2, xmm6
mulss xmm0, xmm5
movss dword [esp + 0x1c], xmm4
subss xmm2, xmm0
xorps xmm2, xmmword [0x4da970]
movaps xmm0, xmm2
movss dword [esp + 0x28], xmm2
call fcn.00414100
movss xmm1, dword [0x4da720]
comiss xmm1, xmm0
movss xmm1, dword [0x4da970]
seta al
test al, al
je 0x4153cb
movaps xmm0, xmm5
movaps xmm2, xmm6
addss xmm0, xmm5
movaps xmm1, xmm3
addss xmm2, xmm6
mulss xmm1, xmm7
mulss xmm0, xmm5
movss dword [esp + 0xc], xmm2
addss xmm1, xmm0
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm2
movaps xmm2, xmm4
mulss xmm0, xmm5
mulss xmm2, xmm7
subss xmm1, dword [0x4da724]
addss xmm0, xmm2
call fcn.00419430
mov eax, dword [edi + 0x40]
movss xmm1, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x28]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [esi + eax + 0x18]
mulss xmm1, dword [esi + eax + 0x14]
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [esi + eax + 0x14]
addss xmm0, dword [esp + 0x2c]
jmp 0x415401
xorps xmm0, xmm0
mulss xmm3, xmm5
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm4
mulss xmm4, dword [esi + ecx + 0xc]
mulss xmm0, xmm6
subss xmm0, xmm3
xorps xmm0, xmm1
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm5
addss xmm0, xmm5
mulss xmm0, xmm5
addss xmm0, xmm4
subss xmm0, dword [0x4da724]
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm2
call fcn.00427b40
addss xmm0, dword [esp + 0x24]
movss xmm1, dword [esp + 0xc]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x10]
call fcn.00419430
movss xmm1, dword [esp + 0x14]
lea eax, [esp + 0x1b8]
addss xmm1, dword [esp + 0x18]
addss xmm0, dword [esp + 0x3c]
sub esp, 0xc
movss dword [esp + 8], xmm1
movss xmm1, dword [esp + 0x28]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXQuaternionRotationYawPitchRoll]
mov ecx, dword [edi + 0x40]
movss xmm4, dword [esp + 0x1bc]
movss xmm3, dword [esp + 0x1b8]
mulss xmm4, dword [0x4da740]
mov eax, dword [esi + ecx + 0x24]
movq xmm0, qword [esi + ecx + 0x1c]
movq qword [esp + 0xcc], xmm0
movq xmm0, xmm0
movq qword [esp + 0xc0], xmm0
movaps xmm7, xmm4
movq xmm0, qword [esi + ecx + 0x1c]
movq qword [esp + 0xb4], xmm0
movss xmm0, dword [esp + 0xb4]
mulss xmm0, dword [esp + 0x38]
mov ecx, dword [edi + 0x4c]
mulss xmm3, dword [0x4da740]
add ecx, esi
mov dword [esp + 0xd4], eax
movups xmm1, xmmword [esp + 0x120]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [esp + 0x34]
mulss xmm0, dword [esp + 0xc4]
movss xmm6, dword [esp + 0x1c0]
movss xmm5, dword [esp + 0x1c4]
movss dword [esp + 0xac], xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, dword [esp + 0xd4]
movss xmm2, dword [0x4da970]
mulss xmm7, xmm6
movss dword [esp + 0xb0], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [esp + 0x104], xmm0
movss xmm0, dword [esp + 0x20]
mov eax, dword [esp + 0x104]
unpcklps xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm5
movq qword [ecx], xmm1
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x4c]
subss xmm7, xmm0
add eax, esi
movss dword [esp + 0x1c], xmm4
mov dword [esp + 0x24], eax
movss dword [esp + 0x30], xmm3
xorps xmm7, xmm2
movaps xmm0, xmm7
movss dword [esp + 0x28], xmm7
call fcn.00414100
movss xmm1, dword [0x4da720]
comiss xmm1, xmm0
movss xmm1, dword [0x4da740]
seta al
test al, al
je 0x415651
movaps xmm0, xmm5
movaps xmm2, xmm6
mulss xmm0, xmm1
mulss xmm2, xmm1
movaps xmm1, xmm4
mulss xmm1, dword [esp + 0x1bc]
mulss xmm0, xmm5
movss dword [esp + 0xc], xmm2
addss xmm1, xmm0
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm2
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x1bc]
mulss xmm0, xmm5
subss xmm1, dword [0x4da724]
addss xmm0, xmm2
call fcn.00419430
movss xmm1, dword [esp + 0x30]
movss xmm2, dword [esp + 0x1c]
mulss xmm1, dword [esp + 0x1c0]
mulss xmm2, dword [esp + 0x1c4]
movss xmm7, dword [esp + 0x28]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0xc]
addss xmm1, xmm2
mulss xmm0, dword [esp + 0x1c0]
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x18], xmm1
jmp 0x41568a
xorps xmm0, xmm0
mulss xmm4, xmm5
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm3
mulss xmm3, dword [esp + 0x1b8]
mulss xmm0, xmm6
subss xmm0, xmm4
xorps xmm0, xmm2
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm5
addss xmm0, xmm3
subss xmm0, dword [0x4da724]
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm7
call fcn.00427b40
movss xmm1, dword [esp + 0x14]
sub esp, 8
movss dword [esp + 4], xmm1
movss xmm1, dword [esp + 0x14]
movss dword [esp], xmm0
movss xmm0, dword [esp + 0x20]
call fcn.00419430
push ecx
lea eax, [esp + 0x30c]
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXQuaternionRotationYawPitchRoll]
mov eax, dword [esp + 0x24]
movups xmm0, xmmword [esp + 0x300]
mov ecx, dword [esp + 0xb0]
movups xmmword [eax + 0xc], xmm0
mov eax, dword [edi + 0x4c]
movq xmm0, qword [esp + 0xa8]
movq qword [esi + eax + 0x1c], xmm0
mov dword [esi + eax + 0x24], ecx
jmp 0x415b2d
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
movss xmm2, dword [esp + 0x1d8]
movss xmm1, dword [esp + 0x1dc]
mov eax, dword [edi + 0x40]
movss xmm3, dword [esp + 0x1e8]
movss xmm4, dword [esp + 0x1e4]
movss xmm7, dword [esp + 0x1ec]
movq xmm0, qword [eax + edx]
mov eax, dword [eax + edx + 8]
movss xmm5, dword [esp + 0x1f0]
mov ecx, dword [edi + 0x4c]
movq qword [esp + 0x5c], xmm0
addss xmm2, dword [esp + 0x5c]
addss xmm1, dword [esp + 0x60]
movss xmm0, dword [esp + 0x1e0]
mov dword [esp + 0x64], eax
addss xmm0, dword [esp + 0x64]
unpcklps xmm2, xmm1
movss xmm1, dword [0x4da740]
mulss xmm3, xmm1
mulss xmm4, xmm1
movss dword [esp + 0x110], xmm0
movaps xmm6, xmm3
mov eax, dword [esp + 0x110]
movaps xmm0, xmm4
mulss xmm6, xmm7
mulss xmm0, xmm5
movq qword [ecx + edx], xmm2
movss xmm2, dword [0x4da970]
subss xmm6, xmm0
mov dword [ecx + edx + 8], eax
mov eax, dword [edi + 0x4c]
add eax, edx
movss dword [esp + 0x30], xmm3
mov dword [esp + 0x38], eax
movss dword [esp + 0x1c], xmm4
xorps xmm6, xmm2
movaps xmm0, xmm6
movss dword [esp + 0x24], xmm6
call fcn.00414100
movss xmm6, dword [0x4da720]
comiss xmm6, xmm0
seta al
test al, al
je 0x415890
movaps xmm0, xmm5
movaps xmm2, xmm7
mulss xmm0, xmm1
mulss xmm2, xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esp + 0x1e8]
mulss xmm0, xmm5
movss dword [esp + 0x2c], xmm2
addss xmm1, xmm0
movss dword [esp + 0x28], xmm0
movaps xmm0, xmm2
movaps xmm2, xmm4
mulss xmm2, dword [esp + 0x1e8]
mulss xmm0, xmm5
subss xmm1, dword [0x4da724]
addss xmm0, xmm2
call fcn.00419430
movss xmm2, dword [esp + 0x30]
movss xmm1, dword [esp + 0x1c]
mulss xmm2, dword [esp + 0x1f0]
mulss xmm1, dword [esp + 0x1ec]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, dword [esp + 0x1ec]
addss xmm2, xmm1
addss xmm0, dword [esp + 0x28]
jmp 0x4158c3
xorps xmm0, xmm0
mulss xmm3, xmm5
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm4
mulss xmm4, dword [esp + 0x1e4]
mulss xmm0, xmm7
subss xmm0, xmm3
xorps xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm5
addss xmm0, xmm4
subss xmm0, dword [0x4da724]
movaps xmm1, xmm0
movaps xmm0, xmm2
call fcn.00419430
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x24]
call fcn.00427b40
mov esi, dword [edi + 0x40]
add esi, dword [esp + 0x50]
movss dword [esp + 0x28], xmm0
movss xmm7, dword [esi + 0x10]
movss xmm3, dword [esi + 0xc]
movaps xmm1, xmm7
movss xmm6, dword [esi + 0x14]
addss xmm1, xmm7
movss xmm4, dword [esi + 0x18]
addss xmm3, xmm3
movaps xmm5, xmm1
movss dword [esp + 0x10], xmm1
movaps xmm0, xmm3
mulss xmm5, xmm6
mulss xmm0, xmm4
movss dword [esp + 0x30], xmm3
subss xmm5, xmm0
xorps xmm5, xmmword [0x4da970]
movaps xmm0, xmm5
movss dword [esp + 0x2c], xmm5
call fcn.00414100
movss xmm2, dword [0x4da720]
comiss xmm2, xmm0
movss xmm2, dword [0x4da970]
seta al
test al, al
je 0x4159e8
movaps xmm0, xmm4
mulss xmm1, xmm7
addss xmm0, xmm4
movaps xmm2, xmm6
addss xmm2, xmm6
mulss xmm0, xmm4
movss dword [esp + 0xc], xmm2
addss xmm1, xmm0
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm2
movaps xmm2, xmm3
mulss xmm0, xmm4
mulss xmm2, xmm7
subss xmm1, dword [0x4da724]
addss xmm0, xmm2
call fcn.00419430
movss xmm1, dword [esp + 0x30]
mulss xmm1, dword [esi + 0x14]
movss xmm5, dword [esp + 0x2c]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [esi + 0x18]
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [esi + 0x14]
addss xmm0, dword [esp + 0x1c]
jmp 0x415a1d
xorps xmm0, xmm0
mulss xmm1, xmm4
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm3
mulss xmm3, dword [esi + 0xc]
mulss xmm0, xmm6
subss xmm0, xmm1
xorps xmm0, xmm2
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm4
addss xmm0, xmm4
mulss xmm0, xmm4
addss xmm0, xmm3
subss xmm0, dword [0x4da724]
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm5
call fcn.00427b40
addss xmm0, dword [esp + 0x28]
movss xmm1, dword [esp + 0xc]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x10]
call fcn.00419430
movss xmm1, dword [esp + 0x14]
lea eax, [esp + 0x250]
addss xmm1, dword [esp + 0x18]
addss xmm0, dword [esp + 0x3c]
sub esp, 0xc
movss dword [esp + 8], xmm1
movss xmm1, dword [esp + 0x3c]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXQuaternionRotationYawPitchRoll]
mov eax, dword [esp + 0x38]
movups xmm0, xmmword [esp + 0x250]
mov esi, dword [esp + 0x50]
movss xmm1, dword [esp + 0x1f8]
movups xmmword [eax + 0xc], xmm0
mov ecx, dword [edi + 0x40]
movq xmm0, qword [esi + ecx + 0x1c]
mov eax, dword [esi + ecx + 0x24]
movq qword [esp + 0xf0], xmm0
movq xmm0, xmm0
movq qword [esp + 0xe4], xmm0
movq xmm0, qword [esi + ecx + 0x1c]
mulss xmm1, dword [esp + 0xe8]
mov ecx, dword [edi + 0x4c]
movq qword [esp + 0xd8], xmm0
movss xmm2, dword [esp + 0xd8]
movss xmm0, dword [esp + 0x1fc]
mulss xmm2, dword [esp + 0x1f4]
mov dword [esp + 0xf8], eax
mulss xmm0, dword [esp + 0xf8]
unpcklps xmm2, xmm1
movq qword [esi + ecx + 0x1c], xmm2
movss dword [esp + 0x11c], xmm0
mov eax, dword [esp + 0x11c]
mov dword [esi + ecx + 0x24], eax
inc dword [esp + 0x54]
add esi, 0x74
add dword [esp + 0x4c], 0xc
mov ecx, dword [edi + 0x5c]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x54]
cmp esi, ecx
jl 0x414a90
movss xmm3, dword [0x4da724]
movss xmm2, dword [0x4da970]
xor edx, edx
mov dword [esp + 0x18], edx
test ecx, ecx
jle 0x415d7d
xor esi, esi
mov dword [esp + 0x20], esi
mov eax, dword [edi + 0x34]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x30], eax
test eax, eax
je 0x415d56
mov eax, dword [edi + 0x4c]
movq xmm0, qword [eax + esi]
mov ecx, dword [eax + esi + 8]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov esi, dword [edi + 0x4c]
add esi, dword [esp + 0x20]
mov eax, dword [edi + 0x34]
movss xmm1, dword [esi + 0x10]
movss xmm4, dword [esi + 0xc]
addss xmm1, xmm1
movss xmm7, dword [esi + 0x14]
addss xmm4, xmm4
movss xmm5, dword [esi + 0x18]
mov eax, dword [eax + edx*4]
movaps xmm6, xmm1
movss dword [esp + 0x10], xmm1
movaps xmm0, xmm4
mulss xmm6, xmm7
mov eax, dword [eax]
mulss xmm0, xmm5
mov dword [esp + 0x28], eax
movss dword [esp + 0x30], xmm4
subss xmm6, xmm0
xorps xmm6, xmm2
movaps xmm0, xmm6
movss dword [esp + 0x2c], xmm6
call fcn.00414100
movss xmm2, dword [0x4da720]
comiss xmm2, xmm0
movss xmm2, dword [0x4da970]
seta al
test al, al
je 0x415ca1
mulss xmm1, dword [esi + 0x10]
movaps xmm0, xmm5
addss xmm0, xmm5
movaps xmm2, xmm7
addss xmm2, xmm7
mulss xmm0, xmm5
movss dword [esp + 0xc], xmm2
addss xmm1, xmm0
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm2
movaps xmm2, xmm4
mulss xmm2, dword [esi + 0x10]
mulss xmm0, xmm5
subss xmm1, xmm3
addss xmm0, xmm2
call fcn.00419430
movss xmm1, dword [esp + 0x30]
mulss xmm1, dword [esi + 0x14]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [esi + 0x18]
movss xmm6, dword [esp + 0x2c]
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [esi + 0x14]
addss xmm0, dword [esp + 0x1c]
subss xmm0, dword [0x4da724]
jmp 0x415cda
xorps xmm0, xmm0
mulss xmm1, xmm5
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm4
mulss xmm4, dword [esi + 0xc]
mulss xmm0, xmm7
subss xmm0, xmm1
xorps xmm0, xmm2
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm5
addss xmm0, xmm5
mulss xmm0, xmm5
addss xmm0, xmm4
subss xmm0, xmm3
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm6
call fcn.00427b40
movss xmm1, dword [esp + 0x14]
sub esp, 8
movss dword [esp + 4], xmm1
movss xmm1, dword [esp + 0x14]
movss dword [esp], xmm0
movss xmm0, dword [esp + 0x18]
call fcn.00419430
push ecx
lea eax, [esp + 0x25c]
movss dword [esp], xmm0
push eax
call dword [sym.imp.d3dx9_43.dll_D3DXQuaternionRotationYawPitchRoll]
mov eax, dword [esp + 0x28]
movups xmm0, xmmword [esp + 0x250]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
movups xmmword [eax + 0xc], xmm0
mov eax, dword [edi + 0x4c]
movq xmm0, qword [eax + esi + 0x1c]
mov ecx, dword [eax + esi + 0x24]
mov eax, dword [edi + 0x34]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], ecx
mov ecx, dword [edi + 0x5c]
inc edx
movss xmm3, dword [0x4da724]
add esi, 0x74
movss xmm2, dword [0x4da970]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
cmp edx, ecx
jl 0x415b70
xor esi, esi
test ecx, ecx
jle 0x415dbd
mov eax, dword [esp + 0x40]
xor edx, edx
nop dword [eax]
cmp byte [esi + eax], 0
jne 0x415db4
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x6c]
mov eax, dword [edx + eax]
mov dword [edx + ecx], eax
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x6c]
mov eax, dword [eax + edx + 4]
mov dword [ecx + edx + 4], eax
mov eax, dword [esp + 0x40]
inc esi
add edx, 0xc
cmp esi, dword [edi + 0x5c]
jl 0x415d90
push dword [esp + 0x58]
call fcn.0049c6da
add esp, 4
push dword [esp + 0x40]
call fcn.0049c6da
add esp, 4
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
xor ecx, esp
call fcn.0049c0fc
mov esp, ebp
pop ebp
ret
call fcn.004047c0
call fcn.004a1e9f
int3