I am not sure what the most convenient fingering is for the first three notes (D-E-A) in the above measure. The shown fingering (5-4-5) is the only one I have found that makes the legato on top possible, but it feels awkward to cross the fourth finger over the fifth for the chord. Would you go with this or rather something like 4-5-5 and rely on the pedal for the legato?
EDIT: the piece is in C major.