How does this mosquito zapper circuit work?
Looks like a self-oscillating converter, probably a primary winding, a feedback winding and a secondary winding (6 pins). It would be similar to this, but with many more turns on the secondary:
I think this is a blocking oscillator with the transformer primary in the emitter of the transistor and the feedback winding blocking the base voltage.
The transistor is probably a cheap high-current BJT such as an 8550 with a base resistor and nothing else. The blue capacitor and the brown film capacitor form a voltage doubler (there is room for parts for more multiplication, but they're not populated). The two resistors are to discharge the capacitor- one is a 22M and the other is a 20K. When they use the tripler configuration they probably use two 22M or a 22M and a 10M resistor. Th
The LED is just across the input power (after the tact switch) with a resistor in series.
These things have to make with BOM adding up to not many pennies, so everything is minimized. The output capacitor is probably being run at way over rated voltage, the transistor will probably burn out if you hold the switch down, the transformer insulation is unsuitable for anything but brief momentary operation. Minimalist, fully Muntzed, design philosophy.
It's most likely using the transformer in flyback mode to make high voltage pulses. With 6 leads, it is probably a true transformer. This sort of thing can be done with a auto-transformer too. It's probably as simple as driving the primary with pre-determined fixed-length pulses.
To get more detailed answers about this particular circuit, trace out the connections and show us the schematic. The first schematic you create will be a mess as you draw parts someplace on the paper then draw connections as you discover them on the board. We don't want to see that one. Redraw it with logical layout. Try to put high voltages at top, low votlages as bottom, and logical flow left to right as much as this is reasonable to do.
Since the transformer has 6 pins, it probably has a center-tapped primary and secondary. That may be a generic transformer used by that manufacturer in other products. It may not be optimal for any one product, but useable in all and cheaper at the higher volume.