Yes it is possible. However it would be better to use a graphic soft that allows to work with layers.. e.g .. the Photoshop. Just the soft is more accurate at editing,rotating etc...
Here you are ....
Hit the F12 key for opening of the Paint tools at the side bar. You will find there a tool for drawing of a line ( you can set its thickness , colour ) and of a couple more too. Just a matter of checking what these and how work.
Because the Irfanview is a pic broweser basically you have to make your profile in a couple of steps in order to get the final effect.
First of all you have to check if the profile is scanned vertically. If you use the drawing line tool from the bar you will notice whether it is set vertically or not. However I would suggest to mark a half of the pic with the tool for clipping that will show the current setting. As you may see your profile isn't scanned vertically because the datum line doesn't follow the right line of the marked area for cutting. It is much quicker way of finding out of that IMHO.
Using the Rotate tool from the side bar to correct that ...
then clip the pic ... and then rotate it horizontally hitting the "H" key. Both shots of profile halves save as separate files for father working on.
Now having both halves of the profile, go back to the base image and choose from the Edition menu at the top bar , the Merge image / Watermark option. In the opened new window you can find a line with name of pic/watermark you want to add to the base image. Also you can choose where the shot starts merging ( the coordinate X/Y ) and the corners. If you set coordinates at 0 it is enough to set one of corners ( e.g.. left or right ) depending of the pic half. Also please pay your attention to the setting of the transparency of merged images. It should be set at 0.
Having that done , add the left half of the profile firstly and then the right one getting the effect....
In the same way you can make the pic with the top half of the profile.
BTW.. you may find that one of a profile half can't fit the another one. It is because the profile image isn't simmetrical. In a such case you have to adjust the width of the base pic. If the half of the profile is of 450 pixels in the wdth your pic has to be of 900 ( 450x2). You may set that if you hit the CTRL+R key for changing the pic size.