The generalized Riemann boundary value problem for analytic functions is considered, where the unknown function may have branch points of the second order. Under certain assumptions, its general solution as well as the condition of solvability is obtained when the solution is required to be of finite order at infinity.