I think you'll be needing to do stuff along these lines:
first, your curvy line becomes 2- a line from the blue circle to the hand, and a line from the hand to the safe. The end of the first line and the start of the second become the left and right sides of the hand. The start of the first line is the centre of the blue circle.
The end of the second line will be the centre of the safe, plus a radius from it, at the angle between the it and the hand.
From there, you'll need a bezier line function (or whatever else suitable for curvy lines), to draw the two lines.
Hope that helps.
EBA;
FUI; Mario Land Ripoff.
Every time you post a joke in the form of code, mace yourself.