Statistical mechanics approach to a general hyperbranched polymer system consisting of ABg monomers and Cf cores