
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 gldelf32_x86_64_append_to_separated_string(char **to,char *op_arg)

{
  char cVar1;
  size_t __n;
  int __c;
  int iVar2;
  char *pcVar3;
  size_t sVar4;
  char *pcVar5;
  
  pcVar5 = *to;
  if (pcVar5 == (char *)0x0) {
    pcVar5 = (char *)xstrdup(op_arg);
    *to = pcVar5;
    return;
  }
  __n = strlen(op_arg);
  cVar1 = config.rpath_separator;
  __c = (int)config.rpath_separator;
  pcVar3 = pcVar5;
  do {
    iVar2 = strncmp(op_arg,pcVar3,__n);
    if (iVar2 == 0) {
      if (pcVar3[__n] == '\0') {
        return;
      }
      if (pcVar3[__n] == cVar1) {
        return;
      }
    }
    pcVar3 = strchr(pcVar3,__c);
    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {
      sVar4 = strlen(pcVar5);
      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);
      sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);
      free(*to);
      *to = pcVar5;
      return;
    }
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_0003d400(undefined4 *param_1,char *param_2)

{
  char cVar1;
  size_t __n;
  int __c;
  int iVar2;
  char *pcVar3;
  size_t sVar4;
  char *pcVar5;
  undefined4 uVar6;
  
  pcVar5 = (char *)*param_1;
  if (pcVar5 == (char *)0x0) {
    uVar6 = xstrdup(param_2);
    *param_1 = uVar6;
    return;
  }
  __n = strlen(param_2);
  cVar1 = DAT_001d0528;
  __c = (int)DAT_001d0528;
  pcVar3 = pcVar5;
  do {
    iVar2 = strncmp(param_2,pcVar3,__n);
    if (iVar2 == 0) {
      if (pcVar3[__n] == '\0') {
        return;
      }
      if (pcVar3[__n] == cVar1) {
        return;
      }
    }
    pcVar3 = strchr(pcVar3,__c);
    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {
      sVar4 = strlen(pcVar5);
      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);
      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);
      free((void *)*param_1);
      *param_1 = pcVar5;
      return;
    }
  } while( true );
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x190bf5
SUB ESP,0x2c
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x14],EAX
TEST EAX,EAX
JZ 0x0003d4e0
SUB ESP,0xc
PUSH EDX
CALL 0x00016760
ADD ESP,0x10
MOV EBP,dword ptr [ESP + 0x14]
MOV ESI,EAX
LEA EAX,[EBX + 0x24e0]
MOV dword ptr [ESP + 0x1c],EAX
MOVSX EAX,byte ptr [EAX + 0x48]
MOV byte ptr [ESP + 0x13],AL
MOV dword ptr [ESP + 0xc],EAX
JMP 0x0003d457
ADD EAX,0x1
MOV EBP,EAX
JZ 0x0003d48c
SUB ESP,0x4
PUSH ESI
PUSH EBP
PUSH EDI
CALL 0x00016c00
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0003d478
MOVZX EAX,byte ptr [EBP + ESI*0x1]
TEST AL,AL
JZ 0x0003d4d4
CMP AL,byte ptr [ESP + 0x13]
JZ 0x0003d4d4
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH EBP
CALL 0x00016730
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0003d450
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
CALL 0x00016760
LEA EAX,[ESI + EAX*0x1 + 0x2]
MOV dword ptr [ESP],EAX
CALL 0x00016dc8
MOV dword ptr [ESP],EDI
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x2c]
MOVSX EAX,byte ptr [EAX + 0x48]
PUSH EAX
MOV EDI,dword ptr [ESP + 0x2c]
LEA EAX,[EBX + 0xffeab77e]
PUSH dword ptr [EDI]
PUSH EAX
PUSH ESI
CALL 0x00016af0
ADD ESP,0x14
PUSH dword ptr [EDI]
CALL 0x00016db0
MOV dword ptr [EDI],ESI
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDX
CALL 0x000164f0
MOV EDX,dword ptr [ESP + 0x28]
ADD ESP,0x10
MOV dword ptr [EDX],EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0003d400(undefined4 *param_1,char *param_2)\n\n{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  pcVar5 = (char *)*param_1;\n  if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }\n  __n = strlen(param_2);\n  cVar1 = DAT_001d0528;\n  __c = (int)DAT_001d0528;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 FUN_0003d400(undefined4 *param_1,char *param_2)\n\n{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  pcVar5 = (char *)*param_1;\n  if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }\n  __n = strlen(param_2);\n  cVar1 = DAT_001d0528;\n  __c = (int)DAT_001d0528;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003d400(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  pcVar5 = (char *)*param_1;\n  if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }\n  __n = strlen(param_2);\n  cVar1 = DAT_001d0528;\n  __c = (int)DAT_001d0528;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int __c;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pcVar5 = (char *)*param_1;" (assignment_expression "pcVar5 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }" { (expression_statement "uVar6 = xstrdup(param_2);" (assignment_expression "uVar6 = xstrdup(param_2)" identifier = (call_expression "xstrdup(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*param_1 = uVar6;" (assignment_expression "*param_1 = uVar6" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "cVar1 = DAT_001d0528;" (assignment_expression "cVar1 = DAT_001d0528" identifier = identifier) ;) (expression_statement "__c = (int)DAT_001d0528;" (assignment_expression "__c = (int)DAT_001d0528" identifier = (cast_expression "(int)DAT_001d0528" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" identifier = identifier) ;) (do_statement "do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  }" { (expression_statement "iVar2 = strncmp(param_2,pcVar3,__n);" (assignment_expression "iVar2 = strncmp(param_2,pcVar3,__n)" identifier = (call_expression "strncmp(param_2,pcVar3,__n)" identifier (argument_list "(param_2,pcVar3,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }" { (if_statement "if (pcVar3[__n] == '\0') {\n        return;\n      }" if (parenthesized_expression "(pcVar3[__n] == '\0')" ( (binary_expression "pcVar3[__n] == '\0'" (subscript_expression "pcVar3[__n]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (pcVar3[__n] == cVar1) {\n        return;\n      }" if (parenthesized_expression "(pcVar3[__n] == cVar1)" ( (binary_expression "pcVar3[__n] == cVar1" (subscript_expression "pcVar3[__n]" identifier [ identifier ]) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "pcVar3 = strchr(pcVar3,__c);" (assignment_expression "pcVar3 = strchr(pcVar3,__c)" identifier = (call_expression "strchr(pcVar3,__c)" identifier (argument_list "(pcVar3,__c)" ( identifier , identifier )))) ;) (if_statement "if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }" if (parenthesized_expression "((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0))" ( (binary_expression "(pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)" (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)" ( (comma_expression "pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) , (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }" { (expression_statement "sVar4 = strlen(pcVar5);" (assignment_expression "sVar4 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)xmalloc(__n + 2 + sVar4);" (assignment_expression "pcVar5 = (char *)xmalloc(__n + 2 + sVar4)" identifier = (cast_expression "(char *)xmalloc(__n + 2 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(__n + 2 + sVar4)" identifier (argument_list "(__n + 2 + sVar4)" ( (binary_expression "__n + 2 + sVar4" (binary_expression "__n + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);" (call_expression "sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2)" identifier (argument_list "(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2)" ( identifier , (string_literal ""%s%c%s"" " string_content ") , (pointer_expression "*param_1" * identifier) , (cast_expression "(int)DAT_001d0528" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "*param_1 = pcVar5;" (assignment_expression "*param_1 = pcVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 gldelf32_x86_64_append_to_separated_string(char **to,char *op_arg)\n\n{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  pcVar5 = *to;\n  if (pcVar5 == (char *)0x0) {\n    pcVar5 = (char *)xstrdup(op_arg);\n    *to = pcVar5;\n    return;\n  }\n  __n = strlen(op_arg);\n  cVar1 = config.rpath_separator;\n  __c = (int)config.rpath_separator;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(op_arg,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);\n      free(*to);\n      *to = pcVar5;\n      return;\n    }\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 gldelf32_x86_64_append_to_separated_string(char **to,char *op_arg)\n\n{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  pcVar5 = *to;\n  if (pcVar5 == (char *)0x0) {\n    pcVar5 = (char *)xstrdup(op_arg);\n    *to = pcVar5;\n    return;\n  }\n  __n = strlen(op_arg);\n  cVar1 = config.rpath_separator;\n  __c = (int)config.rpath_separator;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(op_arg,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);\n      free(*to);\n      *to = pcVar5;\n      return;\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "gldelf32_x86_64_append_to_separated_string(char **to,char *op_arg)" identifier (parameter_list "(char **to,char *op_arg)" ( (parameter_declaration "char **to" primitive_type (pointer_declarator "**to" * (pointer_declarator "*to" * identifier))) , (parameter_declaration "char *op_arg" primitive_type (pointer_declarator "*op_arg" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  \n  pcVar5 = *to;\n  if (pcVar5 == (char *)0x0) {\n    pcVar5 = (char *)xstrdup(op_arg);\n    *to = pcVar5;\n    return;\n  }\n  __n = strlen(op_arg);\n  cVar1 = config.rpath_separator;\n  __c = (int)config.rpath_separator;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(op_arg,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);\n      free(*to);\n      *to = pcVar5;\n      return;\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int __c;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pcVar5 = *to;" (assignment_expression "pcVar5 = *to" identifier = (pointer_expression "*to" * identifier)) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n    pcVar5 = (char *)xstrdup(op_arg);\n    *to = pcVar5;\n    return;\n  }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar5 = (char *)xstrdup(op_arg);\n    *to = pcVar5;\n    return;\n  }" { (expression_statement "pcVar5 = (char *)xstrdup(op_arg);" (assignment_expression "pcVar5 = (char *)xstrdup(op_arg)" identifier = (cast_expression "(char *)xstrdup(op_arg)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(op_arg)" identifier (argument_list "(op_arg)" ( identifier ))))) ;) (expression_statement "*to = pcVar5;" (assignment_expression "*to = pcVar5" (pointer_expression "*to" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "__n = strlen(op_arg);" (assignment_expression "__n = strlen(op_arg)" identifier = (call_expression "strlen(op_arg)" identifier (argument_list "(op_arg)" ( identifier )))) ;) (expression_statement "cVar1 = config.rpath_separator;" (assignment_expression "cVar1 = config.rpath_separator" identifier = (field_expression "config.rpath_separator" identifier . field_identifier)) ;) (expression_statement "__c = (int)config.rpath_separator;" (assignment_expression "__c = (int)config.rpath_separator" identifier = (cast_expression "(int)config.rpath_separator" ( (type_descriptor "int" primitive_type) ) (field_expression "config.rpath_separator" identifier . field_identifier))) ;) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" identifier = identifier) ;) (do_statement "do {\n    iVar2 = strncmp(op_arg,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);\n      free(*to);\n      *to = pcVar5;\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = strncmp(op_arg,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);\n      free(*to);\n      *to = pcVar5;\n      return;\n    }\n  }" { (expression_statement "iVar2 = strncmp(op_arg,pcVar3,__n);" (assignment_expression "iVar2 = strncmp(op_arg,pcVar3,__n)" identifier = (call_expression "strncmp(op_arg,pcVar3,__n)" identifier (argument_list "(op_arg,pcVar3,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }" { (if_statement "if (pcVar3[__n] == '\0') {\n        return;\n      }" if (parenthesized_expression "(pcVar3[__n] == '\0')" ( (binary_expression "pcVar3[__n] == '\0'" (subscript_expression "pcVar3[__n]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (pcVar3[__n] == cVar1) {\n        return;\n      }" if (parenthesized_expression "(pcVar3[__n] == cVar1)" ( (binary_expression "pcVar3[__n] == cVar1" (subscript_expression "pcVar3[__n]" identifier [ identifier ]) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "pcVar3 = strchr(pcVar3,__c);" (assignment_expression "pcVar3 = strchr(pcVar3,__c)" identifier = (call_expression "strchr(pcVar3,__c)" identifier (argument_list "(pcVar3,__c)" ( identifier , identifier )))) ;) (if_statement "if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);\n      free(*to);\n      *to = pcVar5;\n      return;\n    }" if (parenthesized_expression "((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0))" ( (binary_expression "(pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)" (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)" ( (comma_expression "pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) , (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);\n      free(*to);\n      *to = pcVar5;\n      return;\n    }" { (expression_statement "sVar4 = strlen(pcVar5);" (assignment_expression "sVar4 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)xmalloc(__n + 2 + sVar4);" (assignment_expression "pcVar5 = (char *)xmalloc(__n + 2 + sVar4)" identifier = (cast_expression "(char *)xmalloc(__n + 2 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(__n + 2 + sVar4)" identifier (argument_list "(__n + 2 + sVar4)" ( (binary_expression "__n + 2 + sVar4" (binary_expression "__n + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg);" (call_expression "sprintf(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg)" identifier (argument_list "(pcVar5,"%s%c%s",*to,(int)config.rpath_separator,op_arg)" ( identifier , (string_literal ""%s%c%s"" " string_content ") , (pointer_expression "*to" * identifier) , (cast_expression "(int)config.rpath_separator" ( (type_descriptor "int" primitive_type) ) (field_expression "config.rpath_separator" identifier . field_identifier)) , identifier ))) ;) (expression_statement "free(*to);" (call_expression "free(*to)" identifier (argument_list "(*to)" ( (pointer_expression "*to" * identifier) ))) ;) (expression_statement "*to = pcVar5;" (assignment_expression "*to = pcVar5" (pointer_expression "*to" * identifier) = identifier) ;) (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __regparm3 FUN_0003d400(undefined4 *param_1,char *param_2)\n\n{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  pcVar5 = (char *)*param_1;\n  if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }\n  __n = strlen(param_2);\n  cVar1 = DAT_001d0528;\n  __c = (int)DAT_001d0528;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );\n}\n\n" (function_definition "void __regparm3 FUN_0003d400(undefined4 *param_1,char *param_2)\n\n{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  pcVar5 = (char *)*param_1;\n  if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }\n  __n = strlen(param_2);\n  cVar1 = DAT_001d0528;\n  __c = (int)DAT_001d0528;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003d400(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  pcVar5 = (char *)*param_1;\n  if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }\n  __n = strlen(param_2);\n  cVar1 = DAT_001d0528;\n  __c = (int)DAT_001d0528;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int __c;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "pcVar5 = (char *)*param_1;" (assignment_expression "pcVar5 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }" { (expression_statement "uVar6 = xstrdup(param_2);" (assignment_expression "uVar6 = xstrdup(param_2)" identifier = (call_expression "xstrdup(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*param_1 = uVar6;" (assignment_expression "*param_1 = uVar6" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "cVar1 = DAT_001d0528;" (assignment_expression "cVar1 = DAT_001d0528" identifier = identifier) ;) (expression_statement "__c = (int)DAT_001d0528;" (assignment_expression "__c = (int)DAT_001d0528" identifier = (cast_expression "(int)DAT_001d0528" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" identifier = identifier) ;) (do_statement "do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  }" { (expression_statement "iVar2 = strncmp(param_2,pcVar3,__n);" (assignment_expression "iVar2 = strncmp(param_2,pcVar3,__n)" identifier = (call_expression "strncmp(param_2,pcVar3,__n)" identifier (argument_list "(param_2,pcVar3,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }" { (if_statement "if (pcVar3[__n] == '\0') {\n        return;\n      }" if (parenthesized_expression "(pcVar3[__n] == '\0')" ( (binary_expression "pcVar3[__n] == '\0'" (subscript_expression "pcVar3[__n]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (pcVar3[__n] == cVar1) {\n        return;\n      }" if (parenthesized_expression "(pcVar3[__n] == cVar1)" ( (binary_expression "pcVar3[__n] == cVar1" (subscript_expression "pcVar3[__n]" identifier [ identifier ]) == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "pcVar3 = strchr(pcVar3,__c);" (assignment_expression "pcVar3 = strchr(pcVar3,__c)" identifier = (call_expression "strchr(pcVar3,__c)" identifier (argument_list "(pcVar3,__c)" ( identifier , identifier )))) ;) (if_statement "if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }" if (parenthesized_expression "((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0))" ( (binary_expression "(pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)" (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)" ( (comma_expression "pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) , (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }" { (expression_statement "sVar4 = strlen(pcVar5);" (assignment_expression "sVar4 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)xmalloc(__n + 2 + sVar4);" (assignment_expression "pcVar5 = (char *)xmalloc(__n + 2 + sVar4)" identifier = (cast_expression "(char *)xmalloc(__n + 2 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(__n + 2 + sVar4)" identifier (argument_list "(__n + 2 + sVar4)" ( (binary_expression "__n + 2 + sVar4" (binary_expression "__n + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);" (call_expression "sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2)" identifier (argument_list "(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2)" ( identifier , (string_literal ""%s%c%s"" " string_content ") , (pointer_expression "*param_1" * identifier) , (cast_expression "(int)DAT_001d0528" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "*param_1 = pcVar5;" (assignment_expression "*param_1 = pcVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == IDENT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression * IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3 FUN_0003d400(undefined4 *param_1,char *param_2)\n\n{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  pcVar5 = (char *)*param_1;\n  if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }\n  __n = strlen(param_2);\n  cVar1 = DAT_001d0528;\n  __c = (int)DAT_001d0528;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003d400(undefined4 *param_1,char *param_2)" (identifier "FUN_0003d400") (parameter_list "(undefined4 *param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  size_t __n;\n  int __c;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  \n  pcVar5 = (char *)*param_1;\n  if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }\n  __n = strlen(param_2);\n  cVar1 = DAT_001d0528;\n  __c = (int)DAT_001d0528;\n  pcVar3 = pcVar5;\n  do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int __c;" (primitive_type "int") (identifier "__c") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "pcVar5 = (char *)*param_1;" (assignment_expression "pcVar5 = (char *)*param_1" (identifier "pcVar5") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (pcVar5 == (char *)0x0) {\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }" (if "if") (parenthesized_expression "(pcVar5 == (char *)0x0)" (( "(") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar6 = xstrdup(param_2);\n    *param_1 = uVar6;\n    return;\n  }" ({ "{") (expression_statement "uVar6 = xstrdup(param_2);" (assignment_expression "uVar6 = xstrdup(param_2)" (identifier "uVar6") (= "=") (call_expression "xstrdup(param_2)" (identifier "xstrdup") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*param_1 = uVar6;" (assignment_expression "*param_1 = uVar6" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar6")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" (identifier "__n") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "cVar1 = DAT_001d0528;" (assignment_expression "cVar1 = DAT_001d0528" (identifier "cVar1") (= "=") (identifier "DAT_001d0528")) (; ";")) (expression_statement "__c = (int)DAT_001d0528;" (assignment_expression "__c = (int)DAT_001d0528" (identifier "__c") (= "=") (cast_expression "(int)DAT_001d0528" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_001d0528"))) (; ";")) (expression_statement "pcVar3 = pcVar5;" (assignment_expression "pcVar3 = pcVar5" (identifier "pcVar3") (= "=") (identifier "pcVar5")) (; ";")) (do_statement "do {\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    iVar2 = strncmp(param_2,pcVar3,__n);\n    if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }\n    pcVar3 = strchr(pcVar3,__c);\n    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar2 = strncmp(param_2,pcVar3,__n);" (assignment_expression "iVar2 = strncmp(param_2,pcVar3,__n)" (identifier "iVar2") (= "=") (call_expression "strncmp(param_2,pcVar3,__n)" (identifier "strncmp") (argument_list "(param_2,pcVar3,__n)" (( "(") (identifier "param_2") (, ",") (identifier "pcVar3") (, ",") (identifier "__n") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (pcVar3[__n] == '\0') {\n        return;\n      }\n      if (pcVar3[__n] == cVar1) {\n        return;\n      }\n    }" ({ "{") (if_statement "if (pcVar3[__n] == '\0') {\n        return;\n      }" (if "if") (parenthesized_expression "(pcVar3[__n] == '\0')" (( "(") (binary_expression "pcVar3[__n] == '\0'" (subscript_expression "pcVar3[__n]" (identifier "pcVar3") ([ "[") (identifier "__n") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (pcVar3[__n] == cVar1) {\n        return;\n      }" (if "if") (parenthesized_expression "(pcVar3[__n] == cVar1)" (( "(") (binary_expression "pcVar3[__n] == cVar1" (subscript_expression "pcVar3[__n]" (identifier "pcVar3") ([ "[") (identifier "__n") (] "]")) (== "==") (identifier "cVar1")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar3 = strchr(pcVar3,__c);" (assignment_expression "pcVar3 = strchr(pcVar3,__c)" (identifier "pcVar3") (= "=") (call_expression "strchr(pcVar3,__c)" (identifier "strchr") (argument_list "(pcVar3,__c)" (( "(") (identifier "pcVar3") (, ",") (identifier "__c") () ")")))) (; ";")) (if_statement "if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }" (if "if") (parenthesized_expression "((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0))" (( "(") (binary_expression "(pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)" (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)" (( "(") (comma_expression "pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0" (assignment_expression "pcVar3 = pcVar3 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (, ",") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n      sVar4 = strlen(pcVar5);\n      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);\n      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);\n      free((void *)*param_1);\n      *param_1 = pcVar5;\n      return;\n    }" ({ "{") (expression_statement "sVar4 = strlen(pcVar5);" (assignment_expression "sVar4 = strlen(pcVar5)" (identifier "sVar4") (= "=") (call_expression "strlen(pcVar5)" (identifier "strlen") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (expression_statement "pcVar5 = (char *)xmalloc(__n + 2 + sVar4);" (assignment_expression "pcVar5 = (char *)xmalloc(__n + 2 + sVar4)" (identifier "pcVar5") (= "=") (cast_expression "(char *)xmalloc(__n + 2 + sVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(__n + 2 + sVar4)" (identifier "xmalloc") (argument_list "(__n + 2 + sVar4)" (( "(") (binary_expression "__n + 2 + sVar4" (binary_expression "__n + 2" (identifier "__n") (+ "+") (number_literal "2")) (+ "+") (identifier "sVar4")) () ")"))))) (; ";")) (expression_statement "sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);" (call_expression "sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2)" (identifier "sprintf") (argument_list "(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2)" (( "(") (identifier "pcVar5") (, ",") (string_literal ""%s%c%s"" (" """) (string_content "%s%c%s") (" """)) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (cast_expression "(int)DAT_001d0528" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_001d0528")) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" (identifier "free") (argument_list "((void *)*param_1)" (( "(") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (expression_statement "*param_1 = pcVar5;" (assignment_expression "*param_1 = pcVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "pcVar5")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(char **to,char *op_arg)

{
  char var_6;
  size_t var_10;
  int __c;
  int var_5;
  char *var_8;
  size_t var_11;
  char *var_1;
  
  var_1 = *to;
  if (var_1 == (char *)0x0) {
    var_1 = (char *)var_2(op_arg);
    *to = var_1;
    return;
  }
  var_10 = var_3(op_arg);
  var_6 = config.rpath_separator;
  __c = (int)config.rpath_separator;
  var_8 = var_1;
  do {
    var_5 = var_4(op_arg,var_8,var_10);
    if (var_5 == 0) {
      if (var_8[var_10] == '\0') {
        return;
      }
      if (var_8[var_10] == var_6) {
        return;
      }
    }
    var_8 = var_7(var_8,__c);
    if ((var_8 == (char *)0x0) || (var_8 = var_8 + 1, var_8 == (char *)0x0)) {
      var_11 = var_3(var_1);
      var_1 = (char *)var_9(var_10 + 2 + var_11);
      var_12(var_1,"%s%c%s",*to,(int)config.rpath_separator,op_arg);
      var_13(*to);
      *to = var_1;
      return;
    }
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (pointer_expression argument: (identifier)) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement)))) condition: (parenthesized_expression (true))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(undefined4 *param_1,char *param_2)

{
  char cVar1;
  size_t __n;
  int __c;
  int iVar2;
  char *pcVar3;
  size_t sVar4;
  char *pcVar5;
  undefined4 uVar6;
  
  pcVar5 = (char *)*param_1;
  if (pcVar5 == (char *)0x0) {
    uVar6 = xstrdup(param_2);
    *param_1 = uVar6;
    return;
  }
  __n = strlen(param_2);
  cVar1 = DAT_001d0528;
  __c = (int)DAT_001d0528;
  pcVar3 = pcVar5;
  do {
    iVar2 = strncmp(param_2,pcVar3,__n);
    if (iVar2 == 0) {
      if (pcVar3[__n] == '\0') {
        return;
      }
      if (pcVar3[__n] == cVar1) {
        return;
      }
    }
    pcVar3 = strchr(pcVar3,__c);
    if ((pcVar3 == (char *)0x0) || (pcVar3 = pcVar3 + 1, pcVar3 == (char *)0x0)) {
      sVar4 = strlen(pcVar5);
      pcVar5 = (char *)xmalloc(__n + 2 + sVar4);
      sprintf(pcVar5,"%s%c%s",*param_1,(int)DAT_001d0528,param_2);
      free((void *)*param_1);
      *param_1 = pcVar5;
      return;
    }
  } while( true );
}

