arg1 - Root Key.
arg2 - Sub Key below the Root Key.
arg3 - Value to retrieve data from.
arg4 - Output data.
Note you can check the arguments to all functions by selecting F7 in WR (this loads the function generator) and selecting the function your interested in, you then get a description and an 'Args>>' button which will expand and display the functions arguments.