In a medium bowl, combine the star anise, soy sauce, vinegar, sugar, and rice wine. Set aside.
Heat a 14-inch flat-bottomed wok over high heat until a bead of water vaporizes with 1 to 2 seconds of contact. Swirl in the oil and carefully add the chicken skin side down, spreading it in the wok. Cook, undisturbed 3 to 4 minutes, adjusting the heat between medium and medium-high to let the chicken brown.
Add the garlic and ginger. Then, using a metal spatula, turn the chicken over, and pan-fry 3 to 4 minutes, or until the chicken is browned but not cooked through. Stir the soy sauce mixture, and swirl it into the wok. Turn the chicken over. It should be golden brown. Swirl the broth into the wok, cover, reduce the heat to low, and cook 8 minutes for the legs or 5 minutes for the breast.
Recipe courtesy Grace Young and Alan Richardson, The Breath of a Wok: Unlocking the Secrets of Chinese Wok Cooking Through Recipes and Lore, Simon and Schuster, 2004