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

ulong concat_length(char *first,...)

{
  size_t sVar1;
  int *piVar2;
  ulong uVar3;
  
  if (first != (char *)0x0) {
    uVar3 = 0;
    piVar2 = (int *)&stack0x00000008;
    do {
      sVar1 = strlen(first);
      uVar3 = uVar3 + sVar1;
      first = (char *)*piVar2;
      piVar2 = piVar2 + 1;
    } while (first != (char *)0x0);
    return uVar3;
  }
  return 0;
}



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

int FUN_00068430(char *param_1)

{
  size_t sVar1;
  int *piVar2;
  int iVar3;
  
  if (param_1 != (char *)0x0) {
    iVar3 = 0;
    piVar2 = (int *)&stack0x00000008;
    do {
      sVar1 = strlen(param_1);
      iVar3 = iVar3 + sVar1;
      param_1 = (char *)*piVar2;
      piVar2 = piVar2 + 1;
    } while (param_1 != (char *)0x0);
    return iVar3;
  }
  return 0;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x00013f70
ADD EBX,0x4bbc4
TEST EAX,EAX
JZ 0x00068470
LEA ESI,[ESP + 0x14]
XOR EDI,EDI
LEA ESI,[ESI]
SUB ESP,0xc
ADD ESI,0x4
PUSH EAX
CALL 0x00013260
ADD ESP,0x10
ADD EDI,EAX
MOV EAX,dword ptr [ESI + -0x4]
TEST EAX,EAX
JNZ 0x00068450
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
XOR EDI,EDI
POP EBX
POP ESI
MOV EAX,EDI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00068430(char *param_1)\n\n{\n  size_t sVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }\n  return 0;\n}\n\n" comment (function_definition "int FUN_00068430(char *param_1)\n\n{\n  size_t sVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_00068430(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }\n  return 0;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\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    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = (int *)&stack0x00000008;" (assignment_expression "piVar2 = (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(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 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 "iVar3 = iVar3 + sVar1;" (assignment_expression "iVar3 = iVar3 + sVar1" identifier = (binary_expression "iVar3 + sVar1" identifier + identifier)) ;) (expression_statement "param_1 = (char *)*piVar2;" (assignment_expression "param_1 = (char *)*piVar2" identifier = (cast_expression "(char *)*piVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 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)) )) ;) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nulong concat_length(char *first,...)\n\n{\n  size_t sVar1;\n  int *piVar2;\n  ulong uVar3;\n  \n  if (first != (char *)0x0) {\n    uVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(first);\n      uVar3 = uVar3 + sVar1;\n      first = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (first != (char *)0x0);\n    return uVar3;\n  }\n  return 0;\n}\n\n" comment (function_definition "ulong concat_length(char *first,...)\n\n{\n  size_t sVar1;\n  int *piVar2;\n  ulong uVar3;\n  \n  if (first != (char *)0x0) {\n    uVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(first);\n      uVar3 = uVar3 + sVar1;\n      first = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (first != (char *)0x0);\n    return uVar3;\n  }\n  return 0;\n}" type_identifier (function_declarator "concat_length(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  int *piVar2;\n  ulong uVar3;\n  \n  if (first != (char *)0x0) {\n    uVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(first);\n      uVar3 = uVar3 + sVar1;\n      first = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (first != (char *)0x0);\n    return uVar3;\n  }\n  return 0;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (if_statement "if (first != (char *)0x0) {\n    uVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(first);\n      uVar3 = uVar3 + sVar1;\n      first = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (first != (char *)0x0);\n    return uVar3;\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    uVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(first);\n      uVar3 = uVar3 + sVar1;\n      first = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (first != (char *)0x0);\n    return uVar3;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = (int *)&stack0x00000008;" (assignment_expression "piVar2 = (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(first);\n      uVar3 = uVar3 + sVar1;\n      first = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (first != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(first);\n      uVar3 = uVar3 + sVar1;\n      first = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    }" { (expression_statement "sVar1 = strlen(first);" (assignment_expression "sVar1 = strlen(first)" identifier = (call_expression "strlen(first)" identifier (argument_list "(first)" ( identifier )))) ;) (expression_statement "uVar3 = uVar3 + sVar1;" (assignment_expression "uVar3 = uVar3 + sVar1" identifier = (binary_expression "uVar3 + sVar1" identifier + identifier)) ;) (expression_statement "first = (char *)*piVar2;" (assignment_expression "first = (char *)*piVar2" identifier = (cast_expression "(char *)*piVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 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)) )) ;) (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_00068430(char *param_1)\n\n{\n  size_t sVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_00068430(char *param_1)\n\n{\n  size_t sVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_00068430(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }\n  return 0;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\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    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = (int *)&stack0x00000008;" (assignment_expression "piVar2 = (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(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);" do (compound_statement "{\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 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 "iVar3 = iVar3 + sVar1;" (assignment_expression "iVar3 = iVar3 + sVar1" identifier = (binary_expression "iVar3 + sVar1" identifier + identifier)) ;) (expression_statement "param_1 = (char *)*piVar2;" (assignment_expression "param_1 = (char *)*piVar2" identifier = (cast_expression "(char *)*piVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 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)) )) ;) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 = (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)) )) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_00068430(char *param_1)\n\n{\n  size_t sVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00068430(char *param_1)" (identifier "FUN_00068430") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  int *piVar2;\n  int iVar3;\n  \n  if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }\n  return 0;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_1 != (char *)0x0) {\n    iVar3 = 0;\n    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\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    piVar2 = (int *)&stack0x00000008;\n    do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);\n    return iVar3;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = (int *)&stack0x00000008;" (assignment_expression "piVar2 = (int *)&stack0x00000008" (identifier "piVar2") (= "=") (cast_expression "(int *)&stack0x00000008" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008")))) (; ";")) (do_statement "do {\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 1;\n    } while (param_1 != (char *)0x0);" (do "do") (compound_statement "{\n      sVar1 = strlen(param_1);\n      iVar3 = iVar3 + sVar1;\n      param_1 = (char *)*piVar2;\n      piVar2 = piVar2 + 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 "iVar3 = iVar3 + sVar1;" (assignment_expression "iVar3 = iVar3 + sVar1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + sVar1" (identifier "iVar3") (+ "+") (identifier "sVar1"))) (; ";")) (expression_statement "param_1 = (char *)*piVar2;" (assignment_expression "param_1 = (char *)*piVar2" (identifier "param_1") (= "=") (cast_expression "(char *)*piVar2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (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"))) () ")")) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(char *var_1,...)

{
  size_t var_4;
  int *var_5;
  type_1 var_3;
  
  if (var_1 != (char *)0x0) {
    var_3 = 0;
    var_5 = (int *)&stack0x00000008;
    do {
      var_4 = var_2(var_1);
      var_3 = var_3 + var_4;
      var_1 = (char *)*var_5;
      var_5 = var_5 + 1;
    } while (var_1 != (char *)0x0);
    return var_3;
  }
  return 0;
}


(translation_unit (function_definition type: (primitive_type) 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: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (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))))) (return_statement (identifier)))) (return_statement (number_literal)))))

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

int MASKED(char *param_1)

{
  size_t sVar1;
  int *piVar2;
  int iVar3;
  
  if (param_1 != (char *)0x0) {
    iVar3 = 0;
    piVar2 = (int *)&stack0x00000008;
    do {
      sVar1 = strlen(param_1);
      iVar3 = iVar3 + sVar1;
      param_1 = (char *)*piVar2;
      piVar2 = piVar2 + 1;
    } while (param_1 != (char *)0x0);
    return iVar3;
  }
  return 0;
}

