'Get the guessed arguments passed to a function when stopped at a call instruction
Args:
- argc: force to get specific number of arguments (Int)
Returns:
- list of arguments (List)'

def get_function_args(self, argc=None):

    args = []
    regs = self.getregs()
    if (regs is None):
        return []
    (arch, bits) = self.getarch()
    pc = self.getreg('pc')
    prev_insts = self.prev_inst(pc, 12)
    code = ''
    if (not prev_insts):
        return []
    for (addr, inst) in prev_insts[::(-1)]:
        if ('call' in inst.strip().split()[0]):
            break
        code = (('0x%x:%s\n' % (addr, inst)) + code)
    if ('i386' in arch):
        args = self._get_function_args_32(code, argc)
    if ('64' in arch):
        args = self._get_function_args_64(code, argc)
    return args
