そんなトコで何{なん}ばしよる。
I'm reading a manga and from the context of the pictures I think this sentence reads, "What are you doing up there," but I have no idea what part ば plays. The character speaks in a dialect so my confusion could be a result of that, but any help would be much appreciated.