Function at 0x5a6e4d
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x38]
mov ebx, dword [ebx]
movsd xmm0, qword [edi]
mov esi, dword [ebp + 0x3c]
movzx esi, byte [esi]
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 0x1c]
mov edx, dword [edx]
mov dword [esp + 0x84], ecx
mov ecx, dword [ebp + 0x34]
movsd xmm1, qword [ecx]
movsd qword [esp + 0x68], xmm1
mov dword [esp + 0x88], esi
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
cmp edx, esi
jge 0x5a7195
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], edx
dec esi
mov dword [esp + 0x28], esi
lea edi, [esp + 0x24]
lea ecx, [esp + 0x28]
mov eax, 1
mov dword [esp + 0x30], eax
lea edx, [esp + 0x30]
push eax
push eax
push edx
push ecx
push edi
lea eax, [esp + 0x40]
push eax
push 0x22
push ebx
push 0xb8f4a4
call fcn.00610460
add esp, 0x24
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
cmp eax, esi
jg 0x5a7187
movsd xmm2, qword [0xb21a58]
movsd xmm0, qword [esp + 0x68]
subsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [0xb21a50]
movsd qword [esp + 0x40], xmm0
cmp esi, edx
cmovl edx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], edx
pxor xmm3, xmm3
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esi]
mov esi, dword [ebx]
mov edi, dword [ebx + 8]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x80], edi
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 0x10]
imul ecx, eax
mov ebx, esi
shl ebx, 4
add edi, ebx
add ebx, dword [edx + 4]
add edi, ecx
mov ecx, dword [edx + 0x10]
imul ecx, eax
add ebx, ecx
cmp esi, dword [esp + 0x80]
jge 0x5a7178
cvtsi2sd xmm0, eax
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x20], eax
cvtsi2sd xmm3, esi
mov eax, dword [esp + 0x84]
movsd xmm0, qword [eax + 0x20]
movsd xmm1, qword [eax]
mulsd xmm1, xmm3
movsd xmm2, qword [esp + 0x50]
mulsd xmm0, xmm2
addsd xmm0, qword [eax + 0x60]
movsd xmm4, qword [eax + 8]
mulsd xmm4, xmm3
movsd xmm7, qword [esp + 0x60]
comisd xmm7, xmmword [esp + 0x68]
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 + 0x58], xmm6
jb 0x5a704a
movsd qword [esp], xmm0
pxor xmm0, xmm0
movsd qword [esp + 8], xmm0
call fcn.00613b70
movsd xmm0, qword [0xb21a58]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x78]
movsd xmm1, qword [esp + 0x78]
mulsd xmm1, qword [esp + 0x40]
pxor xmm0, xmm0
subsd xmm0, xmm1
addsd xmm0, qword [esp + 0x68]
jmp 0x5a708a
movsd qword [esp], xmm1
pxor xmm0, xmm0
movsd qword [esp + 8], xmm0
call fcn.00613b70
movsd xmm0, qword [0xb21a58]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x78]
movsd xmm0, qword [esp + 0x78]
mulsd xmm0, qword [esp + 0x40]
addsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x58]
movsd qword [esp + 0x70], xmm0
subsd xmm1, xmm0
movsd qword [esp], xmm1
pxor xmm2, xmm2
movsd qword [esp + 8], xmm2
call fcn.00613b70
movsd xmm0, qword [esp + 0x70]
fstp qword [esp + 0x48]
movsd qword [esp], xmm0
movsd xmm0, qword [0xb21a50]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x78]
movsd xmm1, qword [esp + 0x78]
movsd xmm0, qword [0xb21a58]
subsd xmm0, xmm1
movsd xmm1, qword [esp + 0x48]
divsd xmm1, xmm0
movsd qword [esp], xmm1
pxor xmm2, xmm2
movsd qword [esp + 8], xmm2
call fcn.00613b70
movsd xmm0, qword [0xb21a58]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x78]
movsd xmm2, qword [esp + 0x78]
cmp dword [esp + 0x88], 0
movsd xmm0, qword [0xb21a58]
movaps xmm1, xmm0
subsd xmm1, xmm2
jne 0x5a7140
movaps xmm1, xmm2
subsd xmm0, xmm1
addsd xmm1, xmm1
call fcn.00611fc0
cvtsd2ss xmm1, xmm0
inc esi
shufps xmm1, xmm1, 0
mulps xmm1, xmmword [edi]
movaps xmmword [ebx], xmm1
add edi, 0x10
add ebx, 0x10
cmp esi, dword [esp + 0x80]
jl 0x5a6f93
nop
lea esi, [esi]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x34]
jle 0x5a6f40
mov ebx, dword [esp + 0x10]
push ebx
push 0xb8f4a4
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