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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xc0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x38]
mov edi, dword [edi]
movsd xmm0, qword [ecx]
mov ebx, dword [ebp + 0x3c]
movzx ebx, byte [ebx]
mov esi, dword [esi]
movsd qword [esp + 0x70], xmm0
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x94], edx
mov edx, dword [ebp + 0x34]
movsd xmm1, qword [edx]
mov edx, dword [ebp + 0x10]
movsd qword [esp + 0x78], xmm1
mov dword [esp + 0x98], ebx
mov ebx, dword [edx]
mov dword [esp + 0x48], ecx
cmp eax, ebx
jge 0x5a7f9c
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], eax
dec ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x34]
mov eax, 1
mov dword [esp + 0x34], eax
push eax
push eax
push edx
push ecx
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x44]
push edx
push 0x22
push edi
push 0xb8f8dc
call fcn.00610460
add esp, 0x24
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp eax, ebx
jg 0x5a7f8e
movsd xmm2, qword [0xb21a88]
movsd xmm0, qword [esp + 0x78]
subsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [0xb21a80]
movsd qword [esp + 0x50], xmm0
cmp ebx, edx
cmovl edx, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], edx
pxor xmm3, xmm3
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov ebx, dword [esi]
mov esi, dword [ebx]
mov edi, dword [ebx + 8]
mov ecx, esi
mov dword [esp + 0x90], edi
mov edi, dword [edx]
mov ebx, dword [edi + 4]
mov edi, dword [edi + 0x10]
imul edi, eax
shl ecx, 4
add ebx, ecx
mov dword [esp + 0x40], ecx
add ebx, edi
mov edi, dword [edx + 4]
mov edx, dword [edi + 4]
add edx, ecx
mov ecx, dword [edi + 0x10]
imul ecx, eax
add edx, ecx
cmp dword [esp + 0x48], 0
je 0x5a7d35
mov ecx, dword [esp + 0x48]
mov edi, eax
imul edi, dword [ecx + 0x10]
add edi, dword [ecx + 4]
add edi, dword [esp + 0x40]
mov dword [esp + 0x24], edi
jmp 0x5a7d39
mov dword [esp + 0x24], ebx
cmp esi, dword [esp + 0x90]
jge 0x5a7f7f
mov edi, dword [esp + 0x24]
cvtsi2sd xmm0, eax
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x20], eax
cvtsi2sd xmm3, esi
mov eax, dword [esp + 0x94]
movsd xmm0, qword [eax + 0x20]
movsd xmm1, qword [eax]
mulsd xmm1, xmm3
movsd xmm2, qword [esp + 0x60]
mulsd xmm0, xmm2
addsd xmm0, qword [eax + 0x60]
movsd xmm4, qword [eax + 8]
mulsd xmm4, xmm3
movsd xmm7, qword [esp + 0x70]
comisd xmm7, xmmword [esp + 0x78]
addsd xmm0, xmm1
mulsd xmm0, xmm0
movaps xmm5, xmm0
movsd xmm1, qword [eax + 0x28]
mulsd xmm1, xmm2
addsd xmm1, qword [eax + 0x68]
addsd xmm1, xmm4
mulsd xmm1, xmm1
addsd xmm5, xmm1
sqrtsd xmm6, xmm5
movsd qword [esp + 0x68], xmm6
jb 0x5a7e19
movsd qword [esp], xmm0
pxor xmm0, xmm0
movsd qword [esp + 8], xmm0
call fcn.00613b70
movsd xmm0, qword [0xb21a88]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x88]
movsd xmm1, qword [esp + 0x88]
mulsd xmm1, qword [esp + 0x50]
pxor xmm0, xmm0
subsd xmm0, xmm1
addsd xmm0, qword [esp + 0x78]
jmp 0x5a7e5f
movsd qword [esp], xmm1
pxor xmm0, xmm0
movsd qword [esp + 8], xmm0
call fcn.00613b70
movsd xmm0, qword [0xb21a88]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x88]
movsd xmm0, qword [esp + 0x88]
mulsd xmm0, qword [esp + 0x50]
addsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x68]
movsd qword [esp + 0x80], xmm0
subsd xmm1, xmm0
movsd qword [esp], xmm1
pxor xmm2, xmm2
movsd qword [esp + 8], xmm2
call fcn.00613b70
movsd xmm0, qword [esp + 0x80]
fstp qword [esp + 0x58]
movsd qword [esp], xmm0
movsd xmm0, qword [0xb21a80]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x88]
movsd xmm1, qword [esp + 0x88]
movsd xmm0, qword [0xb21a88]
subsd xmm0, xmm1
movsd xmm1, qword [esp + 0x58]
divsd xmm1, xmm0
movsd qword [esp], xmm1
pxor xmm2, xmm2
movsd qword [esp + 8], xmm2
call fcn.00613b70
movsd xmm0, qword [0xb21a88]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x88]
movsd xmm2, qword [esp + 0x88]
cmp dword [esp + 0x98], 0
movsd xmm0, qword [0xb21a88]
movaps xmm1, xmm0
subsd xmm1, xmm2
jne 0x5a7f27
movaps xmm1, xmm2
subsd xmm0, xmm1
addsd xmm1, xmm1
call fcn.00611fc0
cvtsd2ss xmm1, xmm0
movaps xmm3, xmmword [edi]
subps xmm3, xmmword [ebx]
inc esi
movss xmm2, dword [0xb21f64]
mov eax, dword [esp + 0x4c]
subss xmm2, xmm1
add edi, 0x10
shufps xmm2, xmm2, 0
mulps xmm3, xmm2
addps xmm3, xmmword [ebx]
movaps xmmword [eax], xmm3
add ebx, 0x10
add eax, 0x10
cmp esi, dword [esp + 0x90]
mov dword [esp + 0x4c], eax
jl 0x5a7d5c
nop
lea esi, [esi]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x3c]
jle 0x5a7cd9
mov edi, dword [esp + 0x10]
push edi
push 0xb8f8dc
call fcn.00610958
add esp, 8
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esp, ebp
pop ebp
ret