Any abdominal related pain will become more painful specially on coughing since more strain and pressure is put upon abdominal muscles. Since you mentioned that it hurts more when you go to urinate, this could very well be related with any infection or other changes in the urogenital system. You should consult with your physician so that urine investigation along with abdominal sonography
can be done. Hope this helps. Regards.