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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
push esi
mov esi, ecx
movaps xmm0, xmm1
push edi
movss dword [ebp - 0x14], xmm0
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0xf4]
mov edi, dword [esi + 0xf0]
cmp edi, eax
je 0x518e3c
mov esi, eax
nop word [eax + eax]
mov ecx, dword [edi]
push ecx
movss dword [esp], xmm0
mov eax, dword [ecx]
call dword [eax + 0x24]
movss xmm0, dword [ebp - 0x14]
add edi, 4
cmp edi, esi
jne 0x518e20
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0x144]
xor edi, edi
mov eax, dword [esi + 0x140]
cmp edx, eax
je 0x518e7e
nop
mov edi, dword [edx - 4]
add edx, 0xfffffffc
test byte [edi + 0xb8], 1
je 0x518e78
mov ecx, dword [edi + 0x134]
test ecx, ecx
je 0x518e7e
call fcn.00516a20
test al, al
jne 0x518e7e
mov eax, dword [esi + 0x140]
cmp edx, eax
jne 0x518e50
xor edi, edi
mov edx, dword [esi + 0x1c4]
cmp edx, dword [esi + 0x1c8]
je 0x518e97
mov eax, dword [edx]
mov byte [ebp - 1], 0
cmp eax, dword [edx + 4]
jne 0x518e9b
mov byte [ebp - 1], 1
mov ecx, dword [esi + 0x78]
mov eax, ecx
shr eax, 3
mov dword [ebp - 0x1c], ecx
test al, 1
je 0x518eb4
movss xmm0, dword [esi + 0xdc]
jmp 0x518ebc
movss xmm0, dword [esi + 0xd8]
movss xmm6, dword [0x739900]
xorps xmm7, xmm7
movss dword [esi + 0xe0], xmm0
test edi, edi
je 0x519044
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x40]
call eax
mov ecx, edi
movups xmm2, xmmword [eax + 0x30]
movaps xmm1, xmm2
movaps xmm0, xmm2
shufps xmm1, xmm2, 0x55
shufps xmm0, xmm2, 0xaa
unpcklps xmm2, xmm1
movss dword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x1c]
movq qword [esi + 0x88], xmm2
mov dword [esi + 0x90], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
call eax
mov ecx, edi
movups xmm4, xmmword [eax + 0x20]
movups xmm2, xmmword [eax + 0x30]
movaps xmm0, xmm4
movaps xmm3, xmm2
shufps xmm0, xmm4, 0x55
movaps xmm1, xmm2
subss xmm3, xmm4
shufps xmm1, xmm2, 0x55
shufps xmm2, xmm2, 0xaa
subss xmm1, xmm0
shufps xmm4, xmm4, 0xaa
subss xmm2, xmm4
unpcklps xmm3, xmm1
movq qword [esi + 0x94], xmm3
movss dword [ebp - 0x1c], xmm2
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x9c], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
call eax
movups xmm2, xmmword [eax + 0x10]
movaps xmm1, xmm2
movaps xmm0, xmm2
shufps xmm1, xmm2, 0x55
shufps xmm0, xmm2, 0xaa
unpcklps xmm2, xmm1
movss dword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x1c]
movq qword [esi + 0xa0], xmm2
mov dword [esi + 0xa8], eax
mov edx, dword [edi + 0x1f4]
test edx, edx
js 0x518fbe
mov eax, dword [edi + 0x1e4]
mov ecx, dword [edi + 0x1e0]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x518fbe
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x518fbe
movss xmm0, dword [eax + 0x1b8]
jmp 0x518fc6
movss xmm0, dword [edi + 0x1f0]
mov ecx, dword [esi + 0x78]
mov eax, ecx
shr eax, 3
movss dword [esi + 0xac], xmm0
test al, 1
jne 0x51901e
mov edx, dword [edi + 0x1f4]
test edx, edx
js 0x51900e
mov eax, dword [edi + 0x1e4]
sub eax, dword [edi + 0x1e0]
sar eax, 2
cmp edx, eax
jae 0x51900e
mov eax, dword [edi + 0x1e0]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x51900e
movss xmm0, dword [eax + 0x1bc]
jmp 0x519016
movss xmm0, dword [edi + 0x1ec]
movss dword [esi + 0xe0], xmm0
shr ecx, 7
test cl, 1
je 0x5193de
lea eax, [esi + 0x94]
lea ecx, [esi + 0x88]
push eax
push ecx
mov ecx, esi
call fcn.00520a60
jmp 0x5193de
cmp byte [ebp - 1], 0
je 0x5190c2
movq xmm0, qword [esi + 0xb0]
lea edx, [esi + 0x88]
mov eax, dword [esi + 0xb8]
lea edi, [esi + 0x94]
movq qword [edx], xmm0
movq xmm0, qword [esi + 0xbc]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc4]
movq qword [edi], xmm0
movq xmm0, qword [esi + 0xc8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xd0]
movq qword [esi + 0xa0], xmm0
shr ecx, 7
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xd4]
mov dword [esi + 0xac], eax
test cl, 1
je 0x5193e9
push edi
push edx
mov ecx, esi
call fcn.00520a60
jmp 0x5193de
mov eax, dword [esi + 0x7c]
imul ecx, dword [esi + 0x80], 0x2c
movss xmm1, dword [esi + 0x84]
shl eax, 4
add eax, edx
mov edx, dword [esi + 0x80]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ecx
mov edi, dword [eax]
mov eax, dword [eax + 4]
movss xmm2, dword [ecx + edi]
comiss xmm1, xmm2
setae cl
sub eax, edi
sar eax, 2
inc edx
imul eax, eax, 0xba2e8ba3
test cl, cl
je 0x5192b1
cmp edx, eax
jae 0x51929e
mov ecx, dword [ebp - 8]
subss xmm1, xmm2
movss xmm0, dword [ecx + edi + 0x2c]
lea eax, [ecx + 0x30]
movss dword [ebp - 0x10], xmm0
lea edx, [ecx + 4]
subss xmm0, xmm2
add eax, edi
push eax
add edx, edi
lea ecx, [ebp - 0x30]
divss xmm1, xmm0
movaps xmm3, xmm1
movss dword [ebp - 0xc], xmm1
call fcn.00515e40
mov ecx, dword [ebp - 8]
add esp, 4
movss xmm3, dword [ebp - 0xc]
movq xmm0, qword [eax]
movq qword [esi + 0x88], xmm0
lea edx, [ecx + 0x10]
mov eax, dword [eax + 8]
add edx, edi
mov dword [esi + 0x90], eax
lea eax, [ecx + 0x3c]
add eax, edi
lea ecx, [ebp - 0x30]
push eax
call fcn.00515e40
mov ecx, dword [ebp - 8]
add esp, 4
movss xmm3, dword [ebp - 0xc]
movq xmm0, qword [eax]
movq qword [esi + 0x94], xmm0
lea edx, [ecx + 0x1c]
mov eax, dword [eax + 8]
add edx, edi
mov dword [esi + 0x9c], eax
lea eax, [ecx + 0x48]
add eax, edi
lea ecx, [ebp - 0x30]
push eax
call fcn.00515e40
add esp, 4
movq xmm0, qword [eax]
movq qword [esi + 0xa0], xmm0
movss xmm0, dword [ebp - 0xc]
movaps xmm5, xmm0
mov eax, dword [eax + 8]
mulss xmm5, xmm0
mov dword [esi + 0xa8], eax
mov eax, dword [ebp - 8]
movaps xmm4, xmm5
movaps xmm2, xmm5
mulss xmm4, xmm0
movaps xmm0, xmm5
movss xmm6, dword [eax + edi + 0x28]
addss xmm0, xmm5
movss xmm1, dword [eax + edi + 0x54]
movaps xmm7, xmm4
mulss xmm2, dword [0x739990]
subss xmm1, xmm6
movaps xmm3, xmm4
subss xmm7, xmm0
addss xmm3, xmm4
mulss xmm1, dword [0x7398c0]
movaps xmm0, xmm7
movss dword [ebp - 8], xmm7
addss xmm0, dword [ebp - 0xc]
movss dword [ebp - 8], xmm0
movaps xmm0, xmm6
movss xmm7, dword [ebp - 8]
subss xmm0, xmm6
mulss xmm0, dword [0x7398c0]
addss xmm0, xmm1
mulss xmm7, xmm0
movaps xmm0, xmm3
subss xmm0, xmm2
movss dword [ebp - 8], xmm7
addss xmm0, dword [0x739900]
mulss xmm0, xmm6
movaps xmm6, xmm7
subss xmm4, xmm5
movss xmm7, dword [eax + edi + 0x54]
addss xmm6, xmm0
movaps xmm0, xmm7
subss xmm2, xmm3
subss xmm0, xmm7
lea edx, [esi + 0x84]
mov dword [ebp - 0xc], edx
mulss xmm2, xmm7
mulss xmm0, dword [0x7398c0]
addss xmm0, xmm1
mulss xmm0, xmm4
addss xmm6, xmm0
addss xmm6, xmm2
jmp 0x51932a
mov eax, dword [ebp - 0x18]
movss xmm1, dword [eax + 0xc]
subss xmm1, xmm2
movss dword [ebp - 0x10], xmm1
jmp 0x5192ca
cmp edx, eax
jae 0x5192be
mov ecx, dword [ebp - 8]
movss xmm7, dword [ecx + edi + 0x2c]
movaps xmm0, xmm2
addss xmm0, xmm7
movss dword [ebp - 0x10], xmm0
mov ecx, dword [ebp - 8]
lea edx, [esi + 0x84]
movq xmm0, qword [ecx + edi + 4]
movq qword [esi + 0x88], xmm0
mov eax, dword [ecx + edi + 0xc]
mov dword [esi + 0x90], eax
movq xmm0, qword [ecx + edi + 0x10]
movq qword [esi + 0x94], xmm0
mov eax, dword [ecx + edi + 0x18]
mov dword [esi + 0x9c], eax
movq xmm0, qword [ecx + edi + 0x1c]
movq qword [esi + 0xa0], xmm0
mov eax, dword [ecx + edi + 0x24]
mov dword [esi + 0xa8], eax
lea eax, [esi + 0x84]
movss xmm6, dword [ecx + edi + 0x28]
mov dword [ebp - 0xc], eax
mov eax, esi
movss dword [esi + 0xac], xmm6
mov ecx, 0x1c4
lea edi, [ecx + eax]
mov eax, dword [ebp - 0x1c]
shr eax, 7
test al, 1
je 0x51935e
lea eax, [esi + 0x94]
mov ecx, esi
push eax
lea eax, [esi + 0x88]
push eax
call fcn.00520a60
mov edx, dword [ebp - 0xc]
movss xmm0, dword [ebp - 0x14]
addss xmm0, dword [edx]
comiss xmm0, dword [ebp - 0x10]
movss dword [edx], xmm0
jbe 0x5193de
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x80]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
imul eax, eax, 0xba2e8ba3
cmp dword [ebp - 0x18], eax
jae 0x5193b9
mov eax, dword [esi + 0x80]
movss xmm0, dword [ecx + 0xc]
inc eax
mov ecx, dword [ecx]
imul eax, eax, 0x2c
comiss xmm0, dword [eax + ecx]
jbe 0x5193b3
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x80], eax
jmp 0x5193de
lea edi, [esi + 0x1c4]
mov ecx, dword [esi + 0x7c]
mov dword [edx], 0
inc ecx
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 4
cmp ecx, eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], 0
movss xmm6, dword [0x739900]
xorps xmm7, xmm7
movss xmm0, dword [esi + 0xe0]
minss xmm0, dword [0x739a38]
movss xmm1, dword [0x739878]
comiss xmm1, xmm0
ja 0x519409
movaps xmm1, xmm0
mov eax, dword [esi + 0x78]
shr eax, 8
movss dword [esi + 0xe0], xmm1
test al, 1
je 0x5195cb
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + 0xd0]
test eax, 0x200200
jne 0x51943e
movss xmm2, dword [esi + 0x1e4]
movss dword [ebp - 0x10], xmm2
jmp 0x519446
xorps xmm0, xmm0
movss dword [ebp - 0x10], xmm0
movaps xmm0, xmm6
shr eax, 0xb
xorps xmm1, xmm1
movaps xmm5, xmm6
movaps xmm4, xmm6
subss xmm0, dword [ecx + 0x48]
maxss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, dword [ecx + 0x44]
minss xmm5, xmm1
minss xmm4, xmm0
test al, 1
je 0x51947c
movaps xmm0, xmm6
subss xmm0, xmm4
movaps xmm4, xmm0
movss xmm2, dword [esi + 0x1f8]
movaps xmm1, xmm6
movss xmm3, dword [esi + 0x1fc]
subss xmm1, dword [ebp - 0x10]
mulss xmm4, xmm2
mulss xmm2, dword [0x7398c0]
mulss xmm4, dword [ebp - 0x10]
movaps xmm0, xmm1
mulss xmm5, xmm3
mulss xmm3, dword [0x7398c0]
mulss xmm5, dword [ebp - 0x10]
mulss xmm0, xmm2
mulss xmm1, xmm3
addss xmm4, xmm0
movss xmm0, dword [esi + 0x1e0]
comiss xmm0, xmm7
addss xmm4, dword [esi + 0x88]
addss xmm5, xmm1
movss dword [ebp - 0x20], xmm4
addss xmm5, dword [esi + 0x8c]
movss dword [ebp - 0x1c], xmm5
jbe 0x51954e
divss xmm0, dword [0x739990]
movaps xmm2, xmm6
subss xmm2, xmm0
mulss xmm2, dword [0x7399bc]
mulss xmm2, dword [ebp - 0x14]
comiss xmm6, xmm2
ja 0x519514
movaps xmm2, xmm6
movss xmm1, dword [esi + 0x1e8]
subss xmm4, xmm1
mulss xmm4, xmm2
addss xmm4, xmm1
movss dword [esi + 0x1e8], xmm4
subss xmm5, dword [esi + 0x1ec]
mulss xmm5, xmm2
addss xmm5, dword [esi + 0x1ec]
movss dword [esi + 0x1ec], xmm5
jmp 0x519560
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x1e8], eax
mov dword [esi + 0x1ec], ecx
movss xmm0, dword [esi + 0x1ec]
xorps xmm2, xmm2
divss xmm0, dword [esi + 0x1fc]
mov eax, dword [esi + 0x74]
movaps xmm1, xmm6
maxss xmm2, xmm0
movss xmm0, dword [esi + 0x1e8]
divss xmm0, dword [esi + 0x1f8]
minss xmm1, xmm2
maxss xmm7, xmm0
movaps xmm0, xmm6
movss dword [ebp - 0x1c], xmm1
mov edx, dword [ebp - 0x1c]
minss xmm0, xmm7
movss dword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], edx
mov eax, dword [esi + 0x74]
test dword [eax + 0xd0], 0x800
je 0x5195cb
subss xmm6, dword [eax + 0x54]
movss dword [eax + 0x54], xmm6
mov eax, dword [esi + 0x74]
movq xmm0, qword [esi + 0x88]
mov ecx, dword [esi + 0x90]
movq qword [eax + 0x18], xmm0
mov dword [eax + 0x20], ecx
lea eax, [esi + 0xa0]
mov edx, dword [esi + 0x74]
lea ecx, [esi + 0x94]
push eax
push ecx
add edx, 0x18
lea ecx, [ebp - 0x70]
call fcn.00524d90
mov eax, dword [esi + 0x74]
add esp, 8
movups xmm0, xmmword [ebp - 0x70]
mov eax, dword [eax + 4]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [eax + 0x30], xmm0
mov eax, dword [esi + 0x78]
shr eax, 3
test al, 1
je 0x519676
mov eax, dword [esi + 0x74]
movd xmm0, dword [eax + 0x34]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x7398c0]
addss xmm0, dword [eax + 0x18]
movss dword [eax + 0x18], xmm0
mov eax, dword [esi + 0x74]
movd xmm0, dword [eax + 0x38]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x7398c0]
addss xmm0, dword [eax + 0x1c]
movss dword [eax + 0x1c], xmm0
mov eax, dword [esi + 0x74]
mov dword [eax + 0x20], 0x447a0000
mov eax, dword [esi + 0x78]
shr eax, 4
test al, 1
je 0x519687
mov ecx, esi
call fcn.0051aa50
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret