Hello good person... :-)
I spent some insane time on Windows to get you this..
(I run Kubuntu (Linux) and try to stay away from Microsoft as much as possible)
kiatechinfo.com ONLY likes Windows and Internet Explorer so I'm forced to use the software.
Your wiring for headlights is fairly simple and I captured the schematic diagrams for you..
The wiring is the same for 2005~2010..
Looks like you may have a bad multi-function light switch causing your problems..
that's where your low and high beams go through...
Here's the diagrams. I put them on my google drive..
Here's an ebay listing...
SM1221 93410 1G000 Headlight Turn Signal Dimmer Switch OEM Hyundia KIA | eBay
Hope this gets you back on the road at night...
Now back to Linux...