Looking for a story - eviltoast

I’m looking for a story, it was like a scifi setting with some space bandits or something similar. The main character was in a rivalry with like a space officer woman or something like that I can’t for the life of me remember it