We suggest and analyze a compact nonreciprocal optical four-port based on a magneto-optical resonator in two-dimensional photonic crystal, which can fulfill many functions. This component can be used in three regimes: first, with magnetization by a direct current (DC) magnetic field +H0, second, with magnetization by the DC magnetic field −H0, and finally, with magnetization by the DC magnetic field +H1. In the first regime, the four-port ensures equal division of the input signal between two output ones simultaneously providing protection of the generator in the input port from harmful reflected signals in the output ports; this can also be used as a switch by reversing +H0 to −H0. In the second regime, the same four-port fulfills 120-deg bending and it provides protection of the generator in the input port from reflected signals; it can also be used as a switch by reversing −H0 to +H0. In the third regime, with DC magnetic field +H1, the device can be used as a three-way divider with equal division to the output ports. We analyze the scattering matrix of this component and discuss the physical mechanisms of its functioning. In addition, computational simulations were performed and their results confirm our theoretical predictions.