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

char * concat(char *first,...)

{
  size_t sVar1;
  char *pcVar2;
  int iVar3;
  int *piVar4;
  char *pcVar5;
  
  if (first != (char *)0x0) {
    iVar3 = 0;
    pcVar5 = first;
    piVar4 = (int *)&stack0x00000008;
    do {
      sVar1 = strlen(pcVar5);
      iVar3 = iVar3 + sVar1;
      pcVar5 = (char *)*piVar4;
      piVar4 = piVar4 + 1;
    } while (pcVar5 != (char *)0x0);
    pcVar2 = (char *)xmalloc(iVar3 + 1);
    piVar4 = (int *)&stack0x00000008;
    pcVar5 = pcVar2;
    do {
      sVar1 = strlen(first);
      memcpy(pcVar5,first,sVar1);
      first = (char *)*piVar4;
      pcVar5 = pcVar5 + sVar1;
      piVar4 = piVar4 + 1;
    } while (first != (char *)0x0);
    *pcVar5 = '\0';
    return pcVar2;
  }
  pcVar5 = (char *)xmalloc(1);
  *pcVar5 = '\0';
  return pcVar5;
}



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

undefined1 * FUN_00068570(char *param_1)

{
  char *__s;
  size_t sVar1;
  undefined1 *puVar2;
  int iVar3;
  int *piVar4;
  undefined1 *puVar5;
  
  if (param_1 != (char *)0x0) {
    iVar3 = 0;
    __s = param_1;
    piVar4 = (int *)&stack0x00000008;
    do {
      sVar1 = strlen(__s);
      iVar3 = iVar3 + sVar1;
      __s = (char *)*piVar4;
      piVar4 = piVar4 + 1;
    } while (__s != (char *)0x0);
    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);
    piVar4 = (int *)&stack0x00000008;
    puVar5 = puVar2;
    do {
      sVar1 = strlen(param_1);
      memcpy(puVar5,param_1,sVar1);
      param_1 = (char *)*piVar4;
      puVar5 = puVar5 + sVar1;
      piVar4 = piVar4 + 1;
    } while (param_1 != (char *)0x0);
    *puVar5 = 0;
    return puVar2;
  }
  puVar5 = (undefined1 *)FUN_0006b190(1);
  *puVar5 = 0;
  return puVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x4ba87
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
LEA EAX,[ESP + 0x34]
MOV dword ptr [ESP + 0x8],EAX
TEST ESI,ESI
JZ 0x00068618
MOV EDI,EAX
XOR EBP,EBP
MOV EAX,ESI
LEA ESI,[ESI]
SUB ESP,0xc
ADD EDI,0x4
PUSH EAX
CALL 0x00013260
ADD ESP,0x10
ADD EBP,EAX
MOV EAX,dword ptr [EDI + -0x4]
TEST EAX,EAX
JNZ 0x000685a0
SUB ESP,0xc
ADD EBP,0x1
PUSH EBP
CALL 0x0006b190
MOV EBP,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x1c],EAX
MOV EDI,EAX
ADD ESP,0x10
LEA ESI,[ESI]
SUB ESP,0xc
ADD EBP,0x4
PUSH ESI
CALL 0x00013260
ADD ESP,0xc
PUSH EAX
MOV dword ptr [ESP + 0x10],EAX
PUSH ESI
PUSH EDI
CALL 0x000130c0
MOV ECX,dword ptr [ESP + 0x18]
MOV ESI,dword ptr [EBP + -0x4]
ADD ESP,0x10
ADD EDI,ECX
TEST ESI,ESI
JNZ 0x000685d8
MOV byte ptr [EDI],0x0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x1
CALL 0x0006b190
ADD ESP,0x10
MOV EDI,EAX
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV byte ptr [EDI],0x0
ADD ESP,0x1c
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\nundefined1 * FUN_00068570(char *param_1)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }\n  puVar5 = (undefined1 *)FUN_0006b190(1);\n  *puVar5 = 0;\n  return puVar5;\n}\n\n" comment (function_definition "undefined1 * FUN_00068570(char *param_1)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }\n  puVar5 = (undefined1 *)FUN_0006b190(1);\n  *puVar5 = 0;\n  return puVar5;\n}" type_identifier (pointer_declarator "* FUN_00068570(char *param_1)" * (function_declarator "FUN_00068570(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }\n  puVar5 = (undefined1 *)FUN_0006b190(1);\n  *puVar5 = 0;\n  return puVar5;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" identifier = identifier) ;) (expression_statement "piVar4 = (int *)&stack0x00000008;" (assignment_expression "piVar4 = (int *)&stack0x00000008" identifier = (cast_expression "(int *)&stack0x00000008" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (do_statement "do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar3 = iVar3 + sVar1;" (assignment_expression "iVar3 = iVar3 + sVar1" identifier = (binary_expression "iVar3 + sVar1" identifier + identifier)) ;) (expression_statement "__s = (char *)*piVar4;" (assignment_expression "__s = (char *)*piVar4" identifier = (cast_expression "(char *)*piVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);" (assignment_expression "puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1)" identifier = (cast_expression "(undefined1 *)FUN_0006b190(iVar3 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006b190(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)&stack0x00000008;" (assignment_expression "piVar4 = (int *)&stack0x00000008" identifier = (cast_expression "(int *)&stack0x00000008" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (do_statement "do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "memcpy(puVar5,param_1,sVar1);" (call_expression "memcpy(puVar5,param_1,sVar1)" identifier (argument_list "(puVar5,param_1,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_1 = (char *)*piVar4;" (assignment_expression "param_1 = (char *)*piVar4" identifier = (cast_expression "(char *)*piVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "puVar5 = puVar5 + sVar1;" (assignment_expression "puVar5 = puVar5 + sVar1" identifier = (binary_expression "puVar5 + sVar1" identifier + identifier)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar5 = (undefined1 *)FUN_0006b190(1);" (assignment_expression "puVar5 = (undefined1 *)FUN_0006b190(1)" identifier = (cast_expression "(undefined1 *)FUN_0006b190(1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006b190(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * concat(char *first,...)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  \n  if (first != (char *)0x0) {\n    iVar3 = 0;\n    pcVar5 = first;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(pcVar5);\n      iVar3 = iVar3 + sVar1;\n      pcVar5 = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (pcVar5 != (char *)0x0);\n    pcVar2 = (char *)xmalloc(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    pcVar5 = pcVar2;\n    do {\n      sVar1 = strlen(first);\n      memcpy(pcVar5,first,sVar1);\n      first = (char *)*piVar4;\n      pcVar5 = pcVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (first != (char *)0x0);\n    *pcVar5 = '\0';\n    return pcVar2;\n  }\n  pcVar5 = (char *)xmalloc(1);\n  *pcVar5 = '\0';\n  return pcVar5;\n}\n\n" comment comment (function_definition "char * concat(char *first,...)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  \n  if (first != (char *)0x0) {\n    iVar3 = 0;\n    pcVar5 = first;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(pcVar5);\n      iVar3 = iVar3 + sVar1;\n      pcVar5 = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (pcVar5 != (char *)0x0);\n    pcVar2 = (char *)xmalloc(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    pcVar5 = pcVar2;\n    do {\n      sVar1 = strlen(first);\n      memcpy(pcVar5,first,sVar1);\n      first = (char *)*piVar4;\n      pcVar5 = pcVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (first != (char *)0x0);\n    *pcVar5 = '\0';\n    return pcVar2;\n  }\n  pcVar5 = (char *)xmalloc(1);\n  *pcVar5 = '\0';\n  return pcVar5;\n}" primitive_type (pointer_declarator "* concat(char *first,...)" * (function_declarator "concat(char *first,...)" identifier (parameter_list "(char *first,...)" ( (parameter_declaration "char *first" primitive_type (pointer_declarator "*first" * identifier)) , (variadic_parameter "..." ...) )))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  \n  if (first != (char *)0x0) {\n    iVar3 = 0;\n    pcVar5 = first;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(pcVar5);\n      iVar3 = iVar3 + sVar1;\n      pcVar5 = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (pcVar5 != (char *)0x0);\n    pcVar2 = (char *)xmalloc(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    pcVar5 = pcVar2;\n    do {\n      sVar1 = strlen(first);\n      memcpy(pcVar5,first,sVar1);\n      first = (char *)*piVar4;\n      pcVar5 = pcVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (first != (char *)0x0);\n    *pcVar5 = '\0';\n    return pcVar2;\n  }\n  pcVar5 = (char *)xmalloc(1);\n  *pcVar5 = '\0';\n  return pcVar5;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (first != (char *)0x0) {\n    iVar3 = 0;\n    pcVar5 = first;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(pcVar5);\n      iVar3 = iVar3 + sVar1;\n      pcVar5 = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (pcVar5 != (char *)0x0);\n    pcVar2 = (char *)xmalloc(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    pcVar5 = pcVar2;\n    do {\n      sVar1 = strlen(first);\n      memcpy(pcVar5,first,sVar1);\n      first = (char *)*piVar4;\n      pcVar5 = pcVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (first != (char *)0x0);\n    *pcVar5 = '\0';\n    return pcVar2;\n  }" if (parenthesized_expression "(first != (char *)0x0)" ( (binary_expression "first != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = 0;\n    pcVar5 = first;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(pcVar5);\n      iVar3 = iVar3 + sVar1;\n      pcVar5 = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (pcVar5 != (char *)0x0);\n    pcVar2 = (char *)xmalloc(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    pcVar5 = pcVar2;\n    do {\n      sVar1 = strlen(first);\n      memcpy(pcVar5,first,sVar1);\n      first = (char *)*piVar4;\n      pcVar5 = pcVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (first != (char *)0x0);\n    *pcVar5 = '\0';\n    return pcVar2;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "pcVar5 = first;" (assignment_expression "pcVar5 = first" identifier = identifier) ;) (expression_statement "piVar4 = (int *)&stack0x00000008;" (assignment_expression "piVar4 = (int *)&stack0x00000008" identifier = (cast_expression "(int *)&stack0x00000008" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (do_statement "do {\n      sVar1 = strlen(pcVar5);\n      iVar3 = iVar3 + sVar1;\n      pcVar5 = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (pcVar5 != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(pcVar5);\n      iVar3 = iVar3 + sVar1;\n      pcVar5 = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "sVar1 = strlen(pcVar5);" (assignment_expression "sVar1 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "iVar3 = iVar3 + sVar1;" (assignment_expression "iVar3 = iVar3 + sVar1" identifier = (binary_expression "iVar3 + sVar1" identifier + identifier)) ;) (expression_statement "pcVar5 = (char *)*piVar4;" (assignment_expression "pcVar5 = (char *)*piVar4" identifier = (cast_expression "(char *)*piVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (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)) )) ;) (expression_statement "pcVar2 = (char *)xmalloc(iVar3 + 1);" (assignment_expression "pcVar2 = (char *)xmalloc(iVar3 + 1)" identifier = (cast_expression "(char *)xmalloc(iVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)&stack0x00000008;" (assignment_expression "piVar4 = (int *)&stack0x00000008" identifier = (cast_expression "(int *)&stack0x00000008" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (expression_statement "pcVar5 = pcVar2;" (assignment_expression "pcVar5 = pcVar2" identifier = identifier) ;) (do_statement "do {\n      sVar1 = strlen(first);\n      memcpy(pcVar5,first,sVar1);\n      first = (char *)*piVar4;\n      pcVar5 = pcVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (first != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(first);\n      memcpy(pcVar5,first,sVar1);\n      first = (char *)*piVar4;\n      pcVar5 = pcVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "sVar1 = strlen(first);" (assignment_expression "sVar1 = strlen(first)" identifier = (call_expression "strlen(first)" identifier (argument_list "(first)" ( identifier )))) ;) (expression_statement "memcpy(pcVar5,first,sVar1);" (call_expression "memcpy(pcVar5,first,sVar1)" identifier (argument_list "(pcVar5,first,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "first = (char *)*piVar4;" (assignment_expression "first = (char *)*piVar4" identifier = (cast_expression "(char *)*piVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "pcVar5 = pcVar5 + sVar1;" (assignment_expression "pcVar5 = pcVar5 + sVar1" identifier = (binary_expression "pcVar5 + sVar1" identifier + identifier)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(first != (char *)0x0)" ( (binary_expression "first != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar5 = (char *)xmalloc(1);" (assignment_expression "pcVar5 = (char *)xmalloc(1)" identifier = (cast_expression "(char *)xmalloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar5;" return identifier ;) })))
(translation_unit "undefined1 * FUN_00068570(char *param_1)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }\n  puVar5 = (undefined1 *)FUN_0006b190(1);\n  *puVar5 = 0;\n  return puVar5;\n}\n\n" (function_definition "undefined1 * FUN_00068570(char *param_1)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }\n  puVar5 = (undefined1 *)FUN_0006b190(1);\n  *puVar5 = 0;\n  return puVar5;\n}" type_identifier (pointer_declarator "* FUN_00068570(char *param_1)" * (function_declarator "FUN_00068570(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }\n  puVar5 = (undefined1 *)FUN_0006b190(1);\n  *puVar5 = 0;\n  return puVar5;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" identifier = identifier) ;) (expression_statement "piVar4 = (int *)&stack0x00000008;" (assignment_expression "piVar4 = (int *)&stack0x00000008" identifier = (cast_expression "(int *)&stack0x00000008" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (do_statement "do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar3 = iVar3 + sVar1;" (assignment_expression "iVar3 = iVar3 + sVar1" identifier = (binary_expression "iVar3 + sVar1" identifier + identifier)) ;) (expression_statement "__s = (char *)*piVar4;" (assignment_expression "__s = (char *)*piVar4" identifier = (cast_expression "(char *)*piVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);" (assignment_expression "puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1)" identifier = (cast_expression "(undefined1 *)FUN_0006b190(iVar3 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006b190(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)&stack0x00000008;" (assignment_expression "piVar4 = (int *)&stack0x00000008" identifier = (cast_expression "(int *)&stack0x00000008" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000008" & identifier))) ;) (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (do_statement "do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "memcpy(puVar5,param_1,sVar1);" (call_expression "memcpy(puVar5,param_1,sVar1)" identifier (argument_list "(puVar5,param_1,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_1 = (char *)*piVar4;" (assignment_expression "param_1 = (char *)*piVar4" identifier = (cast_expression "(char *)*piVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) (expression_statement "puVar5 = puVar5 + sVar1;" (assignment_expression "puVar5 = puVar5 + sVar1" identifier = (binary_expression "puVar5 + sVar1" identifier + identifier)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar5 = (undefined1 *)FUN_0006b190(1);" (assignment_expression "puVar5 = (undefined1 *)FUN_0006b190(1)" identifier = (cast_expression "(undefined1 *)FUN_0006b190(1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006b190(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return puVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined1 * FUN_00068570(char *param_1)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }\n  puVar5 = (undefined1 *)FUN_0006b190(1);\n  *puVar5 = 0;\n  return puVar5;\n}" (type_identifier "undefined1") (pointer_declarator "* FUN_00068570(char *param_1)" (* "*") (function_declarator "FUN_00068570(char *param_1)" (identifier "FUN_00068570") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined1 *puVar5;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }\n  puVar5 = (undefined1 *)FUN_0006b190(1);\n  *puVar5 = 0;\n  return puVar5;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (if_statement "if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar3 = 0;\n    __s = param_1;\n    piVar4 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);\n    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);\n    piVar4 = (int *)&stack0x00000008;\n    puVar5 = puVar2;\n    do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);\n    *puVar5 = 0;\n    return puVar2;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" (identifier "__s") (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar4 = (int *)&stack0x00000008;" (assignment_expression "piVar4 = (int *)&stack0x00000008" (identifier "piVar4") (= "=") (cast_expression "(int *)&stack0x00000008" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008")))) (; ";")) (do_statement "do {\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    } while (__s != (char *)0x0);" (do "do") (compound_statement "{\n      sVar1 = strlen(__s);\n      iVar3 = iVar3 + sVar1;\n      __s = (char *)*piVar4;\n      piVar4 = piVar4 + 1;\n    }" ({ "{") (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" (identifier "sVar1") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "iVar3 = iVar3 + sVar1;" (assignment_expression "iVar3 = iVar3 + sVar1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + sVar1" (identifier "iVar3") (+ "+") (identifier "sVar1"))) (; ";")) (expression_statement "__s = (char *)*piVar4;" (assignment_expression "__s = (char *)*piVar4" (identifier "__s") (= "=") (cast_expression "(char *)*piVar4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);" (assignment_expression "puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)FUN_0006b190(iVar3 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0006b190(iVar3 + 1)" (identifier "FUN_0006b190") (argument_list "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "piVar4 = (int *)&stack0x00000008;" (assignment_expression "piVar4 = (int *)&stack0x00000008" (identifier "piVar4") (= "=") (cast_expression "(int *)&stack0x00000008" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008")))) (; ";")) (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" (identifier "puVar5") (= "=") (identifier "puVar2")) (; ";")) (do_statement "do {\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    } while (param_1 != (char *)0x0);" (do "do") (compound_statement "{\n      sVar1 = strlen(param_1);\n      memcpy(puVar5,param_1,sVar1);\n      param_1 = (char *)*piVar4;\n      puVar5 = puVar5 + sVar1;\n      piVar4 = piVar4 + 1;\n    }" ({ "{") (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" (identifier "sVar1") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "memcpy(puVar5,param_1,sVar1);" (call_expression "memcpy(puVar5,param_1,sVar1)" (identifier "memcpy") (argument_list "(puVar5,param_1,sVar1)" (( "(") (identifier "puVar5") (, ",") (identifier "param_1") (, ",") (identifier "sVar1") () ")"))) (; ";")) (expression_statement "param_1 = (char *)*piVar4;" (assignment_expression "param_1 = (char *)*piVar4" (identifier "param_1") (= "=") (cast_expression "(char *)*piVar4" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (expression_statement "puVar5 = puVar5 + sVar1;" (assignment_expression "puVar5 = puVar5 + sVar1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + sVar1" (identifier "puVar5") (+ "+") (identifier "sVar1"))) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined1 *)FUN_0006b190(1);" (assignment_expression "puVar5 = (undefined1 *)FUN_0006b190(1)" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)FUN_0006b190(1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0006b190(1)" (identifier "FUN_0006b190") (argument_list "(1)" (( "(") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar5;" (return "return") (identifier "puVar5") (; ";")) (} "}")))

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

char * function_1(char *var_1,...)

{
  size_t var_4;
  char *pcVar2;
  int var_3;
  int *var_5;
  char *var_6;
  
  if (var_1 != (char *)0x0) {
    var_3 = 0;
    var_6 = var_1;
    var_5 = (int *)&stack0x00000008;
    do {
      var_4 = var_2(var_6);
      var_3 = var_3 + var_4;
      var_6 = (char *)*var_5;
      var_5 = var_5 + 1;
    } while (var_6 != (char *)0x0);
    pcVar2 = (char *)var_7(var_3 + 1);
    var_5 = (int *)&stack0x00000008;
    var_6 = pcVar2;
    do {
      var_4 = var_2(var_1);
      var_8(var_6,var_1,var_4);
      var_1 = (char *)*var_5;
      var_6 = var_6 + var_4;
      var_5 = var_5 + 1;
    } while (var_1 != (char *)0x0);
    *var_6 = '\0';
    return pcVar2;
  }
  var_6 = (char *)var_7(1);
  *var_6 = '\0';
  return var_6;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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: (pointer_declarator declarator: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))))

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

undefined1 * MASKED(char *param_1)

{
  char *__s;
  size_t sVar1;
  undefined1 *puVar2;
  int iVar3;
  int *piVar4;
  undefined1 *puVar5;
  
  if (param_1 != (char *)0x0) {
    iVar3 = 0;
    __s = param_1;
    piVar4 = (int *)&stack0x00000008;
    do {
      sVar1 = strlen(__s);
      iVar3 = iVar3 + sVar1;
      __s = (char *)*piVar4;
      piVar4 = piVar4 + 1;
    } while (__s != (char *)0x0);
    puVar2 = (undefined1 *)FUN_0006b190(iVar3 + 1);
    piVar4 = (int *)&stack0x00000008;
    puVar5 = puVar2;
    do {
      sVar1 = strlen(param_1);
      memcpy(puVar5,param_1,sVar1);
      param_1 = (char *)*piVar4;
      puVar5 = puVar5 + sVar1;
      piVar4 = piVar4 + 1;
    } while (param_1 != (char *)0x0);
    *puVar5 = 0;
    return puVar2;
  }
  puVar5 = (undefined1 *)FUN_0006b190(1);
  *puVar5 = 0;
  return puVar5;
}

