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

char ** __regparm3 addlists(char **old,char **new)

{
  char *__s;
  size_t len;
  
  __s = *new;
  while (__s != (char *)0x0) {
    new = new + 1;
    len = strlen(__s);
    old = enlist(old,__s,len);
    __s = *new;
  }
  return old;
}



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

undefined4 __regparm3 FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)

{
  char *__s;
  
  __s = (char *)*param_2;
  while (__s != (char *)0x0) {
    param_2 = param_2 + 1;
    strlen(__s);
    param_1 = FUN_0001b850();
    __s = (char *)*param_2;
  }
  return param_1;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012c30
ADD EBX,0x15645
SUB ESP,0xc
MOV ESI,dword ptr [EDX]
TEST ESI,ESI
JZ 0x0001b9f2
MOV EDI,EDX
LEA ESI,[ESI]
SUB ESP,0xc
ADD EDI,0x4
PUSH ESI
CALL 0x000123e0
MOV EDX,ESI
ADD ESP,0x10
MOV ECX,EAX
MOV EAX,EBP
CALL 0x0001b850
MOV ESI,dword ptr [EDI]
MOV EBP,EAX
TEST ESI,ESI
JNZ 0x0001b9d0
ADD ESP,0xc
MOV EAX,EBP
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\nundefined4 __regparm3 FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  \n  __s = (char *)*param_2;\n  while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }\n  return param_1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  \n  __s = (char *)*param_2;\n  while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }\n  return param_1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__s;\n  \n  __s = (char *)*param_2;\n  while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }\n  return param_1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }" 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)) )) (compound_statement "{\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "strlen(__s);" (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "param_1 = FUN_0001b850();" (assignment_expression "param_1 = FUN_0001b850()" identifier = (call_expression "FUN_0001b850()" identifier (argument_list "()" ( )))) ;) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar ** __regparm3 addlists(char **old,char **new)\n\n{\n  char *__s;\n  size_t len;\n  \n  __s = *new;\n  while (__s != (char *)0x0) {\n    new = new + 1;\n    len = strlen(__s);\n    old = enlist(old,__s,len);\n    __s = *new;\n  }\n  return old;\n}\n\n" comment (function_definition "char ** __regparm3 addlists(char **old,char **new)\n\n{\n  char *__s;\n  size_t len;\n  \n  __s = *new;\n  while (__s != (char *)0x0) {\n    new = new + 1;\n    len = strlen(__s);\n    old = enlist(old,__s,len);\n    __s = *new;\n  }\n  return old;\n}" primitive_type (pointer_declarator "** __regparm3 addlists(char **old,char **new)" * (pointer_declarator "* __regparm3 addlists(char **old,char **new)" * (ERROR "__regparm3" identifier) (function_declarator "addlists(char **old,char **new)" identifier (parameter_list "(char **old,char **new)" ( (parameter_declaration "char **old" primitive_type (pointer_declarator "**old" * (pointer_declarator "*old" * identifier))) , (parameter_declaration "char **new" primitive_type (pointer_declarator "**new" * (pointer_declarator "*new" * identifier))) ))))) (compound_statement "{\n  char *__s;\n  size_t len;\n  \n  __s = *new;\n  while (__s != (char *)0x0) {\n    new = new + 1;\n    len = strlen(__s);\n    old = enlist(old,__s,len);\n    __s = *new;\n  }\n  return old;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t len;" primitive_type identifier ;) (expression_statement "__s = *new;" (assignment_expression "__s = *new" identifier = (pointer_expression "*new" * identifier)) ;) (while_statement "while (__s != (char *)0x0) {\n    new = new + 1;\n    len = strlen(__s);\n    old = enlist(old,__s,len);\n    __s = *new;\n  }" 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)) )) (compound_statement "{\n    new = new + 1;\n    len = strlen(__s);\n    old = enlist(old,__s,len);\n    __s = *new;\n  }" { (expression_statement "new = new + 1;" (assignment_expression "new = new + 1" identifier = (binary_expression "new + 1" identifier + number_literal)) ;) (expression_statement "len = strlen(__s);" (assignment_expression "len = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "old = enlist(old,__s,len);" (assignment_expression "old = enlist(old,__s,len)" identifier = (call_expression "enlist(old,__s,len)" identifier (argument_list "(old,__s,len)" ( identifier , identifier , identifier )))) ;) (expression_statement "__s = *new;" (assignment_expression "__s = *new" identifier = (pointer_expression "*new" * identifier)) ;) })) (return_statement "return old;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  \n  __s = (char *)*param_2;\n  while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }\n  return param_1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  \n  __s = (char *)*param_2;\n  while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }\n  return param_1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__s;\n  \n  __s = (char *)*param_2;\n  while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }\n  return param_1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }" 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)) )) (compound_statement "{\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "strlen(__s);" (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "param_1 = FUN_0001b850();" (assignment_expression "param_1 = FUN_0001b850()" identifier = (call_expression "FUN_0001b850()" identifier (argument_list "()" ( )))) ;) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__s;\n  \n  __s = (char *)*param_2;\n  while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }\n  return param_1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001b9b0(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_0001b9b0") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *__s;\n  \n  __s = (char *)*param_2;\n  while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }\n  return param_1;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" (identifier "__s") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (while_statement "while (__s != (char *)0x0) {\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }" (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"))) () ")")) (compound_statement "{\n    param_2 = param_2 + 1;\n    strlen(__s);\n    param_1 = FUN_0001b850();\n    __s = (char *)*param_2;\n  }" ({ "{") (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "strlen(__s);" (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "param_1 = FUN_0001b850();" (assignment_expression "param_1 = FUN_0001b850()" (identifier "param_1") (= "=") (call_expression "FUN_0001b850()" (identifier "FUN_0001b850") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__s = (char *)*param_2;" (assignment_expression "__s = (char *)*param_2" (identifier "__s") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

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

char ** __regparm3 function_1(char **old,char **var_2)

{
  char *var_1;
  size_t len;
  
  var_1 = *var_2;
  while (var_1 != (char *)0x0) {
    var_2 = var_2 + 1;
    len = var_3(var_1);
    old = var_4(old,var_1,len);
    var_1 = *var_2;
  }
  return old;
}


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

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

undefined4 __regparm3 MASKED(undefined4 param_1,undefined4 *param_2)

{
  char *__s;
  
  __s = (char *)*param_2;
  while (__s != (char *)0x0) {
    param_2 = param_2 + 1;
    strlen(__s);
    param_1 = FUN_0001b850();
    __s = (char *)*param_2;
  }
  return param_1;
}

