Your pic appears to be upside-down, but I think I see what you want to do. You need a boot adapter to go from the rectangular opening to 4" or whatever size the round is, and then an adjustable elbow to the pipe from the wall. You may have to cheat and custom adapt your boot to the round in a more creative way, but it can be done with stock parts, tin snips, sheet metal screws and aluminum tape.