A derelict former pub could be transformed into housing if planning permission can be agreed.