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

void __regparm3 string_append(string *p,char *s)

{
  size_t __n;
  
  __n = strlen(s);
  string_need(p,__n);
  memcpy(p->p,s,__n);
  p->p = p->p + __n;
  return;
}



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

void __regparm3 FUN_001ce240(int param_1,char *param_2)

{
  size_t __n;
  
  __n = strlen(param_2);
  FUN_001ce0c0();
  memcpy(*(void **)(param_1 + 4),param_2,__n);
  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;
  return;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00035840
ADD EBX,0x1c0db3
SUB ESP,0x18
PUSH EDX
CALL 0x000295f0
ADD ESP,0x10
MOV EDI,EAX
MOV EDX,EAX
MOV EAX,ESI
CALL 0x001ce0c0
SUB ESP,0x4
PUSH EDI
PUSH EBP
PUSH dword ptr [ESI + 0x4]
CALL 0x000295c0
ADD dword ptr [ESI + 0x4],EDI
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\nvoid __regparm3 FUN_001ce240(int param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001ce0c0();\n  memcpy(*(void **)(param_1 + 4),param_2,__n);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_001ce240(int param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001ce0c0();\n  memcpy(*(void **)(param_1 + 4),param_2,__n);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001ce240(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001ce0c0();\n  memcpy(*(void **)(param_1 + 4),param_2,__n);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "FUN_001ce0c0();" (call_expression "FUN_001ce0c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "memcpy(*(void **)(param_1 + 4),param_2,__n);" (call_expression "memcpy(*(void **)(param_1 + 4),param_2,__n)" identifier (argument_list "(*(void **)(param_1 + 4),param_2,__n)" ( (pointer_expression "*(void **)(param_1 + 4)" * (cast_expression "(void **)(param_1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + __n" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 string_append(string *p,char *s)\n\n{\n  size_t __n;\n  \n  __n = strlen(s);\n  string_need(p,__n);\n  memcpy(p->p,s,__n);\n  p->p = p->p + __n;\n  return;\n}\n\n" comment (function_definition "void __regparm3 string_append(string *p,char *s)\n\n{\n  size_t __n;\n  \n  __n = strlen(s);\n  string_need(p,__n);\n  memcpy(p->p,s,__n);\n  p->p = p->p + __n;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "string_append(string *p,char *s)" identifier (parameter_list "(string *p,char *s)" ( (parameter_declaration "string *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  \n  __n = strlen(s);\n  string_need(p,__n);\n  memcpy(p->p,s,__n);\n  p->p = p->p + __n;\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = strlen(s);" (assignment_expression "__n = strlen(s)" identifier = (call_expression "strlen(s)" identifier (argument_list "(s)" ( identifier )))) ;) (expression_statement "string_need(p,__n);" (call_expression "string_need(p,__n)" identifier (argument_list "(p,__n)" ( identifier , identifier ))) ;) (expression_statement "memcpy(p->p,s,__n);" (call_expression "memcpy(p->p,s,__n)" identifier (argument_list "(p->p,s,__n)" ( (field_expression "p->p" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "p->p = p->p + __n;" (assignment_expression "p->p = p->p + __n" (field_expression "p->p" identifier -> field_identifier) = (binary_expression "p->p + __n" (field_expression "p->p" identifier -> field_identifier) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_001ce240(int param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001ce0c0();\n  memcpy(*(void **)(param_1 + 4),param_2,__n);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_001ce240(int param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001ce0c0();\n  memcpy(*(void **)(param_1 + 4),param_2,__n);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001ce240(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001ce0c0();\n  memcpy(*(void **)(param_1 + 4),param_2,__n);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "FUN_001ce0c0();" (call_expression "FUN_001ce0c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "memcpy(*(void **)(param_1 + 4),param_2,__n);" (call_expression "memcpy(*(void **)(param_1 + 4),param_2,__n)" identifier (argument_list "(*(void **)(param_1 + 4),param_2,__n)" ( (pointer_expression "*(void **)(param_1 + 4)" * (cast_expression "(void **)(param_1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + __n" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier)) ;) (return_statement "return;" return ;) })))
(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 IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_001ce240(int param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001ce0c0();\n  memcpy(*(void **)(param_1 + 4),param_2,__n);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001ce240(int param_1,char *param_2)" (identifier "FUN_001ce240") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001ce0c0();\n  memcpy(*(void **)(param_1 + 4),param_2,__n);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  return;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" (identifier "__n") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "FUN_001ce0c0();" (call_expression "FUN_001ce0c0()" (identifier "FUN_001ce0c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "memcpy(*(void **)(param_1 + 4),param_2,__n);" (call_expression "memcpy(*(void **)(param_1 + 4),param_2,__n)" (identifier "memcpy") (argument_list "(*(void **)(param_1 + 4),param_2,__n)" (( "(") (pointer_expression "*(void **)(param_1 + 4)" (* "*") (cast_expression "(void **)(param_1 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 4) + __n" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (identifier "__n"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *p,char *s)

{
  size_t var_4;
  
  var_4 = var_1(s);
  var_2(p,var_4);
  var_3(p->p,s,var_4);
  p->p = p->p + var_4;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (return_statement))))

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

void __regparm3 MASKED(int param_1,char *param_2)

{
  size_t __n;
  
  __n = strlen(param_2);
  FUN_001ce0c0();
  memcpy(*(void **)(param_1 + 4),param_2,__n);
  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;
  return;
}

