Iphone 5 with 4013 and other errors

Hello everybody!
The iphone 5 is stuck with the itunes symbol. If I try to restore I get random errors, mostly 4013, but also 19,21 and 2009 (those two last while feeding the board from the lightning connector, no battery).

I pretty much disconnected everything, I’m trying to restore just the motherboard hooked to the dock.

Read about different situations of the 4013, how do you guys think should i proceed?

Thanks a lot.