Harmonic analysis


Hi all,

Would someone be able to help me analyse Bar 14,
C# dim 7 how is it derived ?

Is it from E Dorian or second chord of B minor ?

Thanks