Function at 0x5a937b
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 + 0x2c]
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
mov edi, dword [edi]
movsd xmm1, qword [ecx]
mov ebx, dword [ebp + 0x3c]
movsd xmm0, qword [ebx]
movsd xmm2, qword [edx]
mov edx, dword [ebp + 0x20]
movsd xmm4, qword [esi]
mov ecx, dword [edx]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov esi, dword [esi]
mov ebx, dword [edx]
movsd qword [esp + 0x78], xmm0
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x80], xmm2
movsd qword [esp + 0x88], xmm4
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x30]
movsd xmm3, qword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
movsd qword [esp + 0x28], xmm3
cmp eax, ebx
mov dword [esp + 0x58], ecx
jge 0x5a965f
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], eax
dec ebx
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x44]
mov eax, 1
mov dword [esp + 0x44], eax
push eax
push eax
push edx
push ecx
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x54]
push edx
push 0x22
push edi
push 0xb8ffe4
call fcn.00610460
add esp, 0x24
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp eax, ebx
jg 0x5a9651
movsd xmm0, qword [0xb21ab8]
movsd xmm1, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x20]
mov dword [esp + 0x48], esi
cmp ebx, edx
cmovl edx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x4c], edx
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
mov ebx, dword [esi]
mov esi, dword [ebx]
mov edi, dword [ebx + 8]
mov ecx, esi
mov dword [esp + 0x98], 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 + 0x50], 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 + 0x58], 0
je 0x5a94d7
mov ecx, dword [esp + 0x58]
mov edi, eax
imul edi, dword [ecx + 0x10]
add edi, dword [ecx + 4]
add edi, dword [esp + 0x50]
mov dword [esp + 0x34], edi
jmp 0x5a94db
mov dword [esp + 0x34], ebx
cmp esi, dword [esp + 0x98]
jge 0x5a9642
mov edi, dword [esp + 0x34]
cvtsi2sd xmm0, eax
mov dword [esp + 0x5c], edx
subsd xmm0, xmm1
mulsd xmm0, xmm2
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x30], eax
cvtsi2sd xmm1, esi
subsd xmm1, qword [esp + 0x88]
mulsd xmm1, qword [esp + 0x80]
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x68], xmm1
addsd xmm0, xmm1
movsd qword [esp], xmm0
pxor xmm2, xmm2
subsd xmm2, xmm0
movsd qword [esp + 8], xmm2
call fcn.00613b70
fstp qword [esp + 0x90]
movsd xmm1, qword [esp + 0x90]
movsd xmm0, qword [esp + 0x78]
subsd xmm0, xmm1
movsd xmm1, qword [esp + 0x60]
subsd xmm1, qword [esp + 0x68]
movsd qword [esp], xmm1
movsd qword [esp + 0x70], xmm0
pxor xmm2, xmm2
subsd xmm2, xmm1
movsd qword [esp + 8], xmm2
call fcn.00613b70
fstp qword [esp + 0x90]
movsd xmm2, qword [esp + 0x90]
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x78]
movsd qword [esp], xmm0
subsd xmm1, xmm2
movsd qword [esp + 8], xmm1
call fcn.00613b70
fstp qword [esp]
pxor xmm0, xmm0
movsd qword [esp + 8], xmm0
call fcn.00613b70
movsd xmm0, qword [0xb21ab8]
fstp qword [esp]
movsd qword [esp + 8], xmm0
call fcn.00613ba0
fstp qword [esp + 0x90]
movsd xmm0, qword [esp + 0x90]
cvtsd2ss xmm0, xmm0
movaps xmm2, xmmword [edi]
subps xmm2, xmmword [ebx]
inc esi
movss xmm1, dword [0xb21f6c]
mov eax, dword [esp + 0x5c]
subss xmm1, xmm0
add edi, 0x10
shufps xmm1, xmm1, 0
mulps xmm2, xmm1
addps xmm2, xmmword [ebx]
movaps xmmword [eax], xmm2
add ebx, 0x10
add eax, 0x10
cmp esi, dword [esp + 0x98]
mov dword [esp + 0x5c], eax
jl 0x5a9506
movsd xmm1, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x20]
mov eax, dword [esp + 0x30]
inc eax
cmp eax, dword [esp + 0x4c]
jle 0x5a947b
mov edi, dword [esp + 0x10]
push edi
push 0xb8ffe4
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