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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x48]
dec eax
cmp dword [ebp + 0x40], eax
jne 0x5150cd
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x120], 0
je 0x5150cd
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x9c]
push dword [ebp + 0x18]
push eax
mov ecx, dword [ecx + 0x2ac]
call fcn.004ddbb3
cmp dword [esp + 0xa0], 0
je 0x5150cd
lea eax, [esp + 0x9c]
push eax
push dword [esi + 0x124]
push esi
call fcn.0051b2a2
add esp, 0xc
test al, al
je 0x5150cd
mov eax, dword [esp + 0xa0]
lea edi, [esp + 0x78]
mov dword [esp + 0x2c], eax
xorps xmm0, xmm0
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x124]
lea esi, [ebp + 0x20]
add eax, dword [esp + 0xa8]
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x10]
imul ecx, eax, 0x78
mov dword [esp + 0x34], eax
movsd qword [esp + 0x38], xmm0
mov eax, dword [edi + 0x14]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0x4c], ecx
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x20], xmm0
mov eax, dword [eax + ecx + 0x70]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x120]
movzx edx, al
mov ecx, edx
mov dword [esp + 0x18], edx
and ecx, 0xf0
cmp eax, 2
jl 0x514c5a
movsd xmm2, qword [0x560648]
movaps xmm0, xmm2
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x10], xmm0
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x20], xmm0
je 0x514c5a
movsd xmm0, qword [ebp + 0x38]
mov eax, edx
movsd xmm3, qword [ebp + 0x28]
and eax, 0xf
movsd xmm4, qword [0x560670]
movsd xmm5, qword [0x5607f0]
sub eax, 0
je 0x514c0c
sub eax, 1
je 0x514c01
sub eax, 1
jne 0x514c0c
movaps xmm1, xmm0
subsd xmm1, xmm3
mulsd xmm1, xmm4
jmp 0x514c17
movaps xmm1, xmm2
movsd qword [esp + 0x38], xmm2
jmp 0x514c1d
movaps xmm1, xmm0
subsd xmm1, xmm3
divsd xmm1, xmm5
movsd qword [esp + 0x38], xmm1
movsd qword [esp + 0x10], xmm1
test ecx, ecx
je 0x514c46
cmp ecx, 0x10
je 0x514c3b
cmp ecx, 0x20
jne 0x514c46
subsd xmm0, xmm3
mulsd xmm0, xmm4
jmp 0x514c4e
movaps xmm0, xmm2
movsd qword [esp + 0x40], xmm2
jmp 0x514c54
subsd xmm0, xmm3
divsd xmm0, xmm5
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x20], xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
push dword [esp + 0x28]
push dword [esp + 0x30]
mov eax, dword [esi]
push dword [esp + 0x38]
mov eax, dword [eax + 0x90]
mov dword [esp + 0x18], eax
call dword [esp + 0x18]
fadd qword [esp + 0x10]
mov ecx, dword [ebp + 0x14]
fadd qword [esp + 0x20]
fstp qword [esp + 0x10]
call fcn.0050f6f5
push dword [ebp + 0x18]
imul ecx, eax, 0x78
mov eax, dword [edi + 0x14]
movsd xmm0, qword [ecx + eax + 0x48]
mov eax, dword [ebp + 0xc]
movsd qword [esp + 0x24], xmm0
mov ecx, dword [eax + 0x2ac]
add ecx, 4
push ecx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [ebp + 0xc]
push eax
lea ecx, [ecx + 0x244]
call fcn.004ea479
movd xmm0, dword [ebp + 0x1c]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x18]
cvtdq2pd xmm1, xmm1
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x38]
addsd xmm0, qword [eax + ecx*8]
mulsd xmm1, qword [esp + 0x24]
mov ecx, dword [ebp + 0xc]
subsd xmm0, qword [ebp + 0x44]
addsd xmm0, xmm1
addsd xmm0, qword [edi + 0x60]
movsd qword [esp + 0x7c], xmm0
call fcn.004ea895
mov edx, eax
test edx, edx
je 0x514d62
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x514d18
mov eax, dword [esi]
sub ecx, dword [esp + 0xc]
push ecx
push edx
mov eax, dword [eax + 0x7c]
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x14]
push dword [eax + 0x12b8]
call dword [esp + 0x18]
fstp qword [esp + 0x20]
cvttsd2si eax, qword [esp + 0x20]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [edi + 0x60]
addsd xmm1, qword [esp + 0x78]
movsd qword [esp + 0x78], xmm1
jmp 0x514d68
movsd xmm1, qword [esp + 0x78]
cvttsd2si eax, qword [esp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x18]
movd xmm0, eax
mov eax, dword [ebp + 0x14]
cvtdq2pd xmm0, xmm0
mov al, byte [eax + 0x29]
mov dword [esp + 0x10], eax
mov al, byte [esi + 0x220]
mov dword [esp + 0x14], eax
addsd xmm0, xmm1
movsd qword [esp + 0x8c], xmm0
call fcn.004ea8d7
push dword [esp + 0xc]
mov ecx, edi
push dword [esp + 0x14]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004d622a
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x4c]
push 0xffffffffffffffff
push dword [esp + 0x38]
mov eax, dword [eax + ecx + 0x58]
push 0
push 0
push dword [esp + 0x84]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push dword [esp + 0x84]
push dword [ebp + 0x14]
push edi
push esi
push eax
call fcn.0051b0ed
add esp, 0x28
cmp byte [esi + 0xc], 0
je 0x514e23
mov ecx, dword [esp + 0x1c]
movsd xmm1, qword [esp + 0x88]
addsd xmm1, qword [0x560648]
movd xmm0, dword [ecx + 0x20]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x514e23
cvttsd2si eax, xmm1
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x4c]
test al, 1
je 0x514e76
push 8
pop ecx
push dword [ebp + 0x40]
movsd xmm0, qword [ebp + 0x30]
lea esi, [esp + 0x7c]
sub esp, 0x20
lea edi, [esp + 0xd4]
rep movsd dword es:[edi], dword [esi]
movsd qword [esp + 0xe4], xmm0
lea esi, [esp + 0xd4]
push 8
pop ecx
mov edi, esp
push dword [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0051878d
mov eax, dword [ebp + 0x4c]
add esp, 0x38
movsd xmm0, qword [esp + 0x78]
lea esi, [esp + 0x78]
addsd xmm0, qword [esp + 0x38]
push 8
pop ecx
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
mov ecx, eax
movsd qword [esp + 0xd0], xmm0
movsd xmm0, qword [esp + 0xe0]
subsd xmm0, qword [esp + 0x40]
shr ecx, 2
and cl, 1
mov dword [esp + 0x34], ecx
movsd qword [esp + 0xe0], xmm0
je 0x514f22
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x1c], 0
jne 0x514f22
mov ecx, dword [ebp + 0x10]
movsd xmm0, qword [esp + 0xd8]
push esi
push dword [esp + 0x14]
addsd xmm0, qword [ecx + 0x50]
push dword [esp + 0x30]
mov eax, dword [ebp + 8]
lea esi, [esp + 0xdc]
push dword [esp + 0x38]
push ecx
mov eax, dword [eax]
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x48]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [eax + 0x80]
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 0x4c]
jmp 0x514f25
mov edi, dword [ebp + 8]
shr eax, 1
test al, 1
je 0x515076
push 1
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00504745
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x120]
sub eax, 1
je 0x515041
movsd xmm0, qword [0x560648]
sub eax, 1
mov eax, dword [edi]
je 0x514fc6
push dword [esp + 0x18]
mov eax, dword [eax + 0x60]
sub esp, 0x18
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
movsd qword [esp + 0x7c], xmm0
push 6
pop ecx
mov edi, esp
sub esp, 0x20
push 8
test edx, edx
jne 0x514f9e
and esi, 0xffffff
mov dword [esp + 0x90], esi
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov edi, esp
lea esi, [esp + 0xec]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call dword [esp + 0x48]
jmp 0x515076
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
test edx, edx
jne 0x515008
push 8
pop ecx
sub esp, 0x10
lea esi, [esp + 0xc0]
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, esp
lea esi, [esp + 0x60]
sub esp, 0x20
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
movsd qword [ecx + 8], xmm0
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call dword [eax + 0x3c]
jmp 0x515076
sub esp, 0x18
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], eax
lea esi, [esp + 0x68]
mov eax, dword [esp + 0x30]
movsd qword [esp + 0x78], xmm0
push 6
pop ecx
mov edi, esp
sub esp, 0x20
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
mov edi, esp
lea esi, [esp + 0xe8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call dword [eax + 0x38]
jmp 0x515076
test edx, edx
je 0x515079
mov eax, dword [edi]
lea esi, [esp + 0xb0]
push 8
pop ecx
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x44]
lea esi, [esp + 0x50]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, esp
sub esp, 0x20
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call edx
mov ecx, dword [ebp + 0x10]
cmp byte [esp + 0x34], 0
je 0x5150cd
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x5150cd
push dword [esp + 0x10]
movsd xmm0, qword [esp + 0xdc]
lea esi, [esp + 0xd4]
push dword [esp + 0x2c]
addsd xmm0, qword [ecx + 0x50]
push dword [esp + 0x34]
mov edx, dword [ebp + 8]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x44]
mov eax, dword [edx]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [eax + 0x88]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x48