A great trick I learned on this Forum: to find who flies where from each airport, look at the airport's Wikipedia page. Here's LAX: https://en.wikipedia.org/wiki/Los_Angeles_International_Airport#Passenger
Next, do look at what's involved in getting from LAX to your "middle country" to Cairo and back. Plug your dates and cities into Kayak or Google flights, looking at getting the flights as "multiple destinations" or "multi city" all on one ticket.
Thanks to airline alliances, you'll have lots of options. And since there are no nonstops from LAX to Cairo, you'd have to change planes anyway, so I like your idea of a stopover of a few days. However, I'm not sure how much shorter the flights actually are to some places. Due to curvature of the earth and the actual routes flown, sometimes "closer" places aren't that much faster to get to. For instance, New York to Tokyo is about 14 hours, and New York to Seattle is 5 hours. But, San Francisco isn't 9 hours (14 minus 5); it's 11 hours.
If you find that the times are going to be long no matter what, look at using Turkish Air with a stop in Istanbul. Istanbul is a fascinating city, Turkish Air is a nice airline (far nicer in coach than others) and there should be frequent connections from Istanbul to Cairo (other cities probably have more limited options, but I haven't researched it directly).