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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f661c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp edi, ebx
jle 0x57c7e1
mov edi, ebx
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
shr eax, 2
and al, 1
lea ecx, [edi - 3]
mov byte [esp + 0x18], al
cmp ecx, 1
ja 0x57cdd4
cmp ebx, 0x32
jle 0x57c80a
cmp byte [ebp + 0x24], 0
jne 0x57cdd4
xorps xmm0, xmm0
mov esi, 1
cmp ebx, esi
jle 0x57c8ad
mov edi, 0x18
nop
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
lea eax, [edi + edx]
movsd qword [esp + 0xa4], xmm0
movsd qword [esp + 0x9c], xmm0
movsd qword [esp + 0x94], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [eax - 0x18]
movsd qword [esp + 0x94], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [eax - 0x10]
movsd qword [esp + 0x9c], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [eax - 8]
lea ecx, [esp + 0x94]
movsd qword [esp + 0xa4], xmm0
call fcn.004a88b0
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
ja 0x57c9df
xorps xmm0, xmm0
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x57c820
mov al, byte [esp + 0x18]
mov edi, dword [ebp + 0xc]
test al, al
je 0x57c924
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
movsd qword [esp + 0x8c], xmm0
movsd qword [esp + 0x84], xmm0
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [eax]
lea ecx, [ebx + ebx*2]
subsd xmm0, qword [eax + ecx*8 - 0x18]
lea ecx, [eax + ecx*8 - 0x18]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [ecx + 8]
movsd qword [esp + 0x84], xmm0
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [ecx + 0x10]
lea ecx, [esp + 0x7c]
movsd qword [esp + 0x8c], xmm0
call fcn.004a88b0
fld qword [0x5ff758]
fcompi st(1)
fstp st(0)
ja 0x57c9df
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov esi, dword [ebp + 0x14]
shr eax, 3
and al, 1
cmp byte [ebp + 0x24], 0
mov byte [esp + 0x20], al
push 0xe0
je 0x57c983
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x100], 0
test eax, eax
je 0x57c979
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push edi
push ebx
mov ecx, eax
call fcn.00508640
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x57c9c4
xor eax, eax
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x57c9c4
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x100], 1
test eax, eax
je 0x57c9bc
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push esi
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push edi
push ebx
mov ecx, eax
call fcn.00513430
jmp 0x57c9be
xor eax, eax
mov edi, eax
mov dword [esp + 0x1c], eax
cmp byte [edi + 4], 0
mov dword [esp + 0x100], 0xffffffff
jne 0x57c9f7
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
xor al, al
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.005062f0
mov eax, dword [edi + 0x94]
cmp dword [edi + 0xbc], eax
jl 0x57ca1f
mov edx, dword [edi + 0xb4]
movsd xmm0, qword [edx + eax*8 - 8]
jmp 0x57ca22
xorps xmm0, xmm0
mov ecx, edi
movsd qword [esp + 0x44], xmm0
call fcn.00459f30
fst qword [esp + 0x6c]
cmp byte [ebp + 0x24], 0
fsub qword [esp + 0x44]
fstp qword [esp + 0x54]
movsd xmm0, qword [esp + 0x54]
je 0x57ca9c
mov eax, dword [ebp + 0xc]
lea edi, [ebx + eax]
cmp dword [esi + 8], edi
jge 0x57ca5a
push edi
mov ecx, esi
call fcn.00412880
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push ebx
push esi
call fcn.004fbf60
movsd xmm0, qword [esp + 0x64]
add esp, 0x10
xor eax, eax
test edi, edi
jle 0x57ca9c
lea esp, [esp]
mov ecx, dword [esi]
lea ecx, [ecx + eax*8]
movapd xmm1, xmm0
mulsd xmm1, qword [ecx]
addsd xmm1, qword [esp + 0x44]
inc eax
cmp eax, edi
movsd qword [ecx], xmm1
jl 0x57ca80
cmp byte [esp + 0x18], 0
xorps xmm1, xmm1
mov edi, dword [ebp + 0x18]
lea ecx, [ebx - 1]
movsd qword [esp + 0xbc], xmm1
movsd qword [esp + 0xb4], xmm1
movsd qword [esp + 0xac], xmm1
cvtsi2sd xmm1, ecx
divsd xmm0, xmm1
mov byte [esp + 0x27], 1
mov byte [esp + 0x34], 0
movsd qword [esp + 0x54], xmm0
jne 0x57cb0f
mov edx, dword [edi]
movsd xmm1, qword [esp + 0x44]
movsd qword [edx], xmm1
mov eax, dword [edi]
movsd xmm1, qword [esp + 0x6c]
movsd qword [eax + ebx*8 - 8], xmm1
mov edx, dword [edi]
mov eax, 1
mov dword [esp + 0x28], ecx
mov byte [esp + 0x34], al
movsd qword [edx + 8], xmm0
jmp 0x57cb17
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x28], ebx
cmp eax, ecx
mov dword [esp + 0x2c], eax
jge 0x57cbf0
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x2c]
fld qword [0x5ff758]
mov ecx, dword [edi]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
add eax, dword [esp + 0x30]
add edx, edx
add edx, edx
add edx, edx
add ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x34]
mov edx, dword [edx + 0x78]
sub esp, 8
fstp qword [esp]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xbc]
push eax
push ecx
mov ecx, dword [esp + 0x34]
call edx
mov byte [esp + 0x27], al
test al, al
je 0x57cbf0
cmp byte [esp + 0x18], 0
mov eax, dword [esp + 0x2c]
jne 0x57cbd5
test eax, eax
je 0x57cba2
mov ecx, dword [edi]
movsd xmm0, qword [ecx + eax*8 - 8]
comisd xmm0, xmmword [ecx + eax*8]
lea ecx, [ecx + eax*8]
ja 0x57cbeb
mov edx, dword [esp + 0x28]
dec edx
cmp eax, edx
jge 0x57cbd5
mov ecx, dword [edi]
movsd xmm0, qword [esp + 0x54]
addsd xmm0, qword [ecx + eax*8]
movsd xmm1, qword [esp + 0x6c]
comisd xmm1, xmm0
lea ecx, [ecx + eax*8]
mov byte [esp + 0x34], 1
ja 0x57cbd0
movapd xmm0, xmm1
movsd qword [ecx + 8], xmm0
add dword [esp + 0x30], 0x18
inc eax
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
jl 0x57cb30
jmp 0x57cbf0
mov byte [esp + 0x27], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp byte [esp + 0x27], 0
jne 0x57d42f
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push ecx
push edi
push edx
push eax
push ebx
call fcn.0057c4c0
add esp, 0x14
test al, al
je 0x57c9df
cmp byte [ebp + 0x24], 0
je 0x57d42f
cmp byte [esp + 0x18], 0
jne 0x57d42f
mov eax, dword [ebp + 0x10]
and dword [eax], 0xfffffff7
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
xor eax, eax
cmp edx, 4
jl 0x57cc7c
mov edi, edi
mov ecx, dword [esi]
movsd qword [ecx + eax*8], xmm0
mov edx, dword [esi]
movsd qword [edx + eax*8 + 8], xmm0
mov ecx, dword [esi]
movsd qword [ecx + eax*8 + 0x10], xmm0
mov edx, dword [esi]
movsd qword [edx + eax*8 + 0x18], xmm0
mov edx, dword [ebp + 0xc]
add eax, 4
lea ecx, [edx - 3]
cmp eax, ecx
jl 0x57cc50
cmp eax, edx
jge 0x57cc8c
mov ecx, dword [esi]
movsd qword [ecx + eax*8], xmm0
inc eax
cmp eax, edx
jl 0x57cc80
cmp edx, ebx
mov dword [esp + 0x1c], edx
jge 0x57cd95
mov eax, dword [ebp + 0xc]
lea edx, [eax - 1]
cvtsi2sd xmm1, edx
mov edx, 1
sub edx, eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
lea ecx, [eax*8]
mov eax, dword [esi]
movsd qword [ecx + eax], xmm0
mov eax, dword [esp + 0x2c]
add eax, edx
cmp eax, edx
jge 0x57cd74
sub edx, eax
cmp edx, 4
jl 0x57cd41
mov edx, dword [ebp + 0xc]
lea edx, [eax + edx - 4]
mov dword [esp + 0x20], edx
nop
mov edx, dword [esi]
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edx + ecx]
movsd qword [edx + ecx], xmm2
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 8]
add edx, ecx
mov edx, dword [esi]
addsd xmm2, qword [edx + ecx]
movsd qword [edx + ecx], xmm2
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 0x10]
add edx, ecx
mov edx, dword [esi]
addsd xmm2, qword [edx + ecx]
add edx, ecx
movsd qword [edx], xmm2
mov ebx, dword [edi]
mov edx, dword [esi]
movsd xmm2, qword [ebx + eax*8 + 0x18]
addsd xmm2, qword [edx + ecx]
add edx, ecx
add eax, 4
cmp eax, dword [esp + 0x20]
movsd qword [edx], xmm2
jl 0x57cce0
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
cmp eax, edx
jge 0x57cd74
lea esp, [esp]
mov edx, dword [esi]
add edx, ecx
mov dword [esp + 0x20], edx
mov edx, dword [edi]
movsd xmm2, qword [edx + eax*8]
mov edx, dword [esp + 0x20]
addsd xmm2, qword [edx]
movsd qword [edx], xmm2
mov edx, dword [esp + 0x1c]
inc eax
cmp eax, edx
jl 0x57cd50
mov eax, dword [esi]
movsd xmm2, qword [eax + ecx]
add eax, ecx
inc edx
add ecx, 8
cmp edx, ebx
divsd xmm2, xmm1
movsd qword [eax], xmm2
mov dword [esp + 0x1c], edx
jl 0x57ccb8
mov ecx, dword [ebp + 0xc]
add ecx, ebx
cmp ebx, ecx
mov eax, ebx
jge 0x57d42f
movsd xmm0, qword [0x5fb270]
lea esp, [esp]
mov edx, dword [esi]
movsd qword [edx + eax*8], xmm0
inc eax
cmp eax, ecx
jl 0x57cdb0
mov al, 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
push eax
push edi
push ecx
push edx
push ebx
call fcn.0057c4c0
add esp, 0x14
test al, al
je 0x57c9df
cmp byte [ebp + 0x24], 0
je 0x57d42f
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebx + ecx]
cmp dword [esi + 8], eax
mov dword [esp + 0x34], eax
jge 0x57ce1d
push eax
mov ecx, esi
call fcn.00412880
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
and dword [eax], 0xfffffff7
cmp byte [esp + 0x18], 0
jne 0x57cfc4
xorps xmm0, xmm0
xor eax, eax
cmp ecx, 4
jl 0x57ce6c
jmp 0x57ce40
mov ecx, dword [esi]
movsd qword [ecx + eax*8], xmm0
mov edx, dword [esi]
movsd qword [edx + eax*8 + 8], xmm0
mov ecx, dword [esi]
movsd qword [ecx + eax*8 + 0x10], xmm0
mov edx, dword [esi]
mov ecx, dword [ebp + 0xc]
movsd qword [edx + eax*8 + 0x18], xmm0
add eax, 4
lea edx, [ecx - 3]
cmp eax, edx
jl 0x57ce40
cmp eax, ecx
jge 0x57ce7c
mov edx, dword [esi]
movsd qword [edx + eax*8], xmm0
inc eax
cmp eax, ecx
jl 0x57ce70
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
jge 0x57cf85
mov eax, dword [ebp + 0xc]
mov edx, 1
lea ecx, [eax - 1]
sub edx, eax
cvtsi2sd xmm1, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
lea ecx, [eax*8]
mov eax, dword [esi]
movsd qword [ecx + eax], xmm0
mov eax, dword [esp + 0x2c]
add eax, edx
cmp eax, edx
jge 0x57cf64
sub edx, eax
cmp edx, 4
jl 0x57cf31
mov edx, dword [ebp + 0xc]
lea edx, [edx + eax - 4]
mov dword [esp + 0x20], edx
nop
mov edx, dword [esi]
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edx + ecx]
movsd qword [edx + ecx], xmm2
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 8]
add edx, ecx
mov edx, dword [esi]
addsd xmm2, qword [edx + ecx]
movsd qword [edx + ecx], xmm2
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 0x10]
add edx, ecx
mov edx, dword [esi]
addsd xmm2, qword [edx + ecx]
add edx, ecx
movsd qword [edx], xmm2
mov ebx, dword [edi]
mov edx, dword [esi]
movsd xmm2, qword [ebx + eax*8 + 0x18]
addsd xmm2, qword [edx + ecx]
add edx, ecx
add eax, 4
cmp eax, dword [esp + 0x20]
movsd qword [edx], xmm2
jl 0x57ced0
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
cmp eax, edx
jge 0x57cf64
lea esp, [esp]
mov edx, dword [esi]
add edx, ecx
mov dword [esp + 0x20], edx
mov edx, dword [edi]
movsd xmm2, qword [edx + eax*8]
mov edx, dword [esp + 0x20]
addsd xmm2, qword [edx]
movsd qword [edx], xmm2
mov edx, dword [esp + 0x1c]
inc eax
cmp eax, edx
jl 0x57cf40
mov eax, dword [esi]
movsd xmm2, qword [eax + ecx]
add eax, ecx
inc edx
add ecx, 8
cmp edx, ebx
divsd xmm2, xmm1
movsd qword [eax], xmm2
mov dword [esp + 0x1c], edx
jl 0x57cea8
mov eax, dword [esp + 0x34]
cmp ebx, eax
jge 0x57d42f
movsd xmm0, qword [0x5fb270]
lea esp, [esp]
mov ecx, dword [esi]
movsd qword [ecx + ebx*8], xmm0
inc ebx
cmp ebx, eax
jl 0x57cfa0
mov al, 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsd xmm2, qword [0x5fb270]
xor edx, edx
cvtsi2sd xmm0, ecx
subsd xmm0, xmm2
movapd xmm4, xmm2
divsd xmm4, xmm0
mov dword [esp + 0x50], edx
test ebx, ebx
jle 0x57d350
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub eax, dword [ebp + 0xc]
xorps xmm1, xmm1
mov dword [esp + 0x20], eax
lea eax, [eax*8 + 8]
mov dword [esp + 0x60], eax
lea eax, [ecx*8]
mov ecx, eax
movsd xmm3, qword [0x5fc888]
mov eax, 8
sub eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
mov eax, 3
sub eax, ecx
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x20]
add eax, 3
mov dword [esp + 0x20], eax
mov eax, 2
sub eax, ebx
mov dword [esp + 0x78], eax
mov eax, 1
sub eax, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
movsd qword [eax + ecx], xmm1
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + edx]
cmp eax, edx
jge 0x57d315
mov ecx, edx
sub ecx, eax
cmp ecx, 4
jl 0x57d287
mov edx, dword [ebp + 0xc]
lea ecx, [edx + eax - 4]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x44], ecx
lea ecx, [eax + edx]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x40], edx
or edx, 0xffffffff
sub edx, ebx
mov dword [esp + 0x6c], edx
mov edx, 1
sub edx, ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], edx
jmp 0x57d0d0
lea edx, [ecx - 0x10]
movapd xmm0, xmm1
mov dword [esp + 0x18], edx
test eax, eax
jge 0x57d0e9
mov edx, dword [esp + 0x40]
movapd xmm0, xmm3
jmp 0x57d0f6
dec ebx
cmp eax, ebx
jle 0x57d0fa
mov edx, dword [esp + 0x3c]
movapd xmm0, xmm2
mov dword [esp + 0x18], edx
mov edx, dword [esi]
mov ebx, dword [esp + 0x28]
add edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [edi]
movsd xmm5, qword [edx + ebx]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
addsd xmm5, xmm0
addsd xmm5, qword [edx]
movsd qword [edx], xmm5
lea edx, [ecx - 8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
add edx, ebx
movapd xmm0, xmm1
jns 0x57d14b
mov edx, dword [ebp + 8]
add edx, edx
add edx, edx
add edx, edx
add dword [esp + 0x18], edx
movapd xmm0, xmm3
jmp 0x57d164
mov ebx, dword [ebp + 8]
dec ebx
cmp edx, ebx
jle 0x57d164
mov edx, dword [ebp + 8]
add edx, edx
add edx, edx
add edx, edx
sub dword [esp + 0x18], edx
movapd xmm0, xmm2
mov edx, dword [esi]
mov ebx, dword [esp + 0x28]
add edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [edi]
movsd xmm5, qword [edx + ebx]
mov edx, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
addsd xmm5, xmm0
addsd xmm5, qword [edx]
movsd qword [edx], xmm5
mov edx, dword [esp + 0x38]
add edx, ebx
movapd xmm0, xmm1
mov dword [esp + 0x18], ecx
jns 0x57d1ad
lea edx, [ebx*8]
add edx, ecx
movapd xmm0, xmm3
jmp 0x57d1c3
dec ebx
cmp edx, ebx
jle 0x57d1c7
mov ebx, dword [ebp + 8]
add ebx, ebx
add ebx, ebx
mov edx, ecx
add ebx, ebx
sub edx, ebx
movapd xmm0, xmm2
mov dword [esp + 0x18], edx
mov edx, dword [esi]
mov ebx, dword [esp + 0x28]
add edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [edi]
movsd xmm5, qword [edx + ebx]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
addsd xmm5, xmm0
addsd xmm5, qword [edx]
movsd qword [edx], xmm5
lea edx, [ecx + 8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x54]
add edx, ebx
movapd xmm0, xmm1
jns 0x57d218
mov edx, dword [ebp + 8]
add edx, edx
add edx, edx
add edx, edx
add dword [esp + 0x18], edx
movapd xmm0, xmm3
jmp 0x57d231
mov ebx, dword [ebp + 8]
dec ebx
cmp edx, ebx
jle 0x57d231
mov edx, dword [ebp + 8]
add edx, edx
add edx, edx
add edx, edx
sub dword [esp + 0x18], edx
movapd xmm0, xmm2
mov edx, dword [esi]
mov ebx, dword [esp + 0x28]
add edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [edi]
movsd xmm5, qword [edx + ebx]
mov edx, dword [esp + 0x1c]
addsd xmm5, xmm0
addsd xmm5, qword [edx]
mov ebx, 0x20
add dword [esp + 0x40], ebx
add dword [esp + 0x3c], ebx
movsd qword [edx], xmm5
mov edx, 4
add dword [esp + 0x30], edx
add dword [esp + 0x38], edx
add eax, edx
add ecx, ebx
cmp eax, dword [esp + 0x44]
mov ebx, dword [ebp + 8]
jl 0x57d0d0
mov edx, dword [esp + 0x50]
cmp eax, edx
jge 0x57d315
mov ecx, eax
sub ecx, ebx
add ecx, ecx
lea edx, [eax + ebx]
add edx, edx
add ecx, ecx
add ecx, ecx
add edx, edx
add edx, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
lea ebx, [ebx]
lea edx, [eax*8]
movapd xmm0, xmm1
mov dword [esp + 0x38], edx
test eax, eax
jge 0x57d2cd
mov ecx, dword [esp + 0x3c]
movapd xmm0, xmm3
jmp 0x57d2d6
dec ebx
cmp eax, ebx
jle 0x57d2da
movapd xmm0, xmm2
mov dword [esp + 0x38], ecx
mov edx, dword [esi]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
add dword [esp + 0x3c], 8
add edx, ecx
mov ecx, dword [edi]
movsd xmm5, qword [ebx + ecx]
mov ecx, dword [esp + 0x40]
mov ebx, dword [ebp + 8]
addsd xmm5, xmm0
addsd xmm5, qword [edx]
movsd qword [edx], xmm5
mov edx, dword [esp + 0x50]
inc eax
add ecx, 8
cmp eax, edx
mov dword [esp + 0x40], ecx
jl 0x57d2b0
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
add dword [esp + 0x68], 8
add dword [esp + 0x64], 8
add dword [esp + 0x60], 8
inc dword [esp + 0x20]
add eax, ecx
inc edx
add ecx, 8
cmp edx, ebx
movapd xmm0, xmm4
mulsd xmm0, qword [eax]
movsd qword [eax], xmm0
mov dword [esp + 0x50], edx
mov dword [esp + 0x28], ecx
jl 0x57d05a
mov ecx, dword [esi]
mov edx, dword [ebp + 0xc]
movsd xmm0, qword [ecx + edx*8 - 8]
xor eax, eax
cmp ebx, 4
jl 0x57d3ba
lea edx, [ebx - 3]
mov ecx, dword [esi]
movsd xmm1, qword [ecx + eax*8]
lea ecx, [ecx + eax*8]
subsd xmm1, xmm0
movsd qword [ecx], xmm1
mov ecx, dword [esi]
movsd xmm1, qword [ecx + eax*8 + 8]
lea ecx, [ecx + eax*8 + 8]
subsd xmm1, xmm0
movsd qword [ecx], xmm1
mov ecx, dword [esi]
movsd xmm1, qword [ecx + eax*8 + 0x10]
lea ecx, [ecx + eax*8 + 0x10]
subsd xmm1, xmm0
movsd qword [ecx], xmm1
mov ecx, dword [esi]
movsd xmm1, qword [ecx + eax*8 + 0x18]
lea ecx, [ecx + eax*8 + 0x18]
add eax, 4
cmp eax, edx
subsd xmm1, xmm0
movsd qword [ecx], xmm1
jl 0x57d365
cmp eax, ebx
jge 0x57d3d7
mov edi, edi
mov edx, dword [esi]
movsd xmm1, qword [edx + eax*8]
lea ecx, [edx + eax*8]
inc eax
cmp eax, ebx
subsd xmm1, xmm0
movsd qword [ecx], xmm1
jl 0x57d3c0
mov ecx, dword [esp + 0x34]
cmp ebx, ecx
jge 0x57d3f9
xor edx, edx
mov eax, dword [esi]
movsd xmm0, qword [edx + eax]
addsd xmm0, xmm2
movsd qword [eax + ebx*8], xmm0
inc ebx
add edx, 8
cmp ebx, ecx
jl 0x57d3e1
mov eax, dword [esi]
movapd xmm0, xmm2
divsd xmm0, qword [eax + ecx*8 - 8]
xor eax, eax
test ecx, ecx
jle 0x57d427
jmp 0x57d410
mov edx, dword [esi]
movsd xmm1, qword [edx + eax*8]
lea edx, [edx + eax*8]
inc eax
cmp eax, ecx
mulsd xmm1, xmm0
movsd qword [edx], xmm1
jl 0x57d410
mov eax, dword [esi]
movsd qword [eax + ecx*8 - 8], xmm2
mov al, 1
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret