def getVarContent(jsCode, varContent):
 clearBytes = ''
 varContent = varContent.replace('\n', '')
 varContent = varContent.replace('\r', '')
 varContent = varContent.replace(' DCTB ', '')
 varContent = varContent.replace(' ', '')
 parts = varContent.split('+')
 for part in parts:
  if re.match('["\'].*?["\']', part, re.DOTALL):
   clearBytes += part[1:(-1)]
  else:
   part = escapeString(part)
   varContent = re.findall((part + '\\s*?=\\s*?(.*?)[,;]'), jsCode, re.DOTALL)
   if (varContent != []):
    clearBytes += getVarContent(jsCode, varContent[0])
 return clearBytes

def getVarContent ( jsCode , varContent ) : clearBytes = '' varContent = varContent . replace ( '\n' , '' ) varContent = varContent . replace ( '\r' , '' ) varContent = varContent . replace ( ' DCTB ' , '' ) varContent = varContent . replace ( ' ' , '' ) parts = varContent . split ( '+' ) for part in parts : if re . match ( '["\'].*?["\']' , part , re . DOTALL ) : clearBytes += part [ 1 : ( - 1 ) ] else : part = escapeString ( part ) varContent = re . findall ( ( part + '\\s*?=\\s*?(.*?)[,;]' ) , jsCode , re . DOTALL ) if ( varContent != [ ] ) : clearBytes += getVarContent ( jsCode , varContent [ 0 ] ) return clearBytes
given the javascript code and the content of a variable this method tries to obtain the real value of the variable .