
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void string_appends(string * p, string * s, string * s) */

void __regparm3 string_appends(string *p,string *s,string *s_1)

{
  size_t __n;
  
  if ((string *)s->b != s_1) {
    __n = (int)s_1 - (int)s->b;
    string_need(p,__n);
    memcpy(p->p,s->b,__n);
    p->p = p->p + __n;
  }
  return;
}



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

void __regparm3 FUN_001ce390(int param_1,int *param_2,int param_3)

{
  size_t __n;
  
  if (*param_2 != param_3) {
    __n = param_3 - *param_2;
    FUN_001ce0c0();
    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);
    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1c0c67
SUB ESP,0xc
MOV ESI,dword ptr [EDX]
CMP ESI,ECX
JZ 0x001ce3cc
SUB ECX,ESI
MOV EBP,EDX
MOV EDI,EAX
MOV EDX,ECX
MOV ESI,ECX
CALL 0x001ce0c0
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [EBP]
PUSH dword ptr [EDI + 0x4]
CALL 0x000295c0
ADD dword ptr [EDI + 0x4],ESI
ADD ESP,0x10
ADD ESP,0xc
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_001ce390(int param_1,int *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_001ce390(int param_1,int *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001ce390(int param_1,int *param_2,int param_3)" identifier (parameter_list "(int param_1,int *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  size_t __n;\n  \n  if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (if_statement "if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }" if (parenthesized_expression "(*param_2 != param_3)" ( (binary_expression "*param_2 != param_3" (pointer_expression "*param_2" * identifier) != identifier) )) (compound_statement "{\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }" { (expression_statement "__n = param_3 - *param_2;" (assignment_expression "__n = param_3 - *param_2" identifier = (binary_expression "param_3 - *param_2" identifier - (pointer_expression "*param_2" * identifier))) ;) (expression_statement "FUN_001ce0c0();" (call_expression "FUN_001ce0c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);" (call_expression "memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n)" identifier (argument_list "(*(void **)(param_1 + 4),(void *)*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) )))) , (cast_expression "(void *)*param_2" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * 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/* DWARF original prototype: void string_appends(string * p, string * s, string * s) */\n\nvoid __regparm3 string_appends(string *p,string *s,string *s_1)\n\n{\n  size_t __n;\n  \n  if ((string *)s->b != s_1) {\n    __n = (int)s_1 - (int)s->b;\n    string_need(p,__n);\n    memcpy(p->p,s->b,__n);\n    p->p = p->p + __n;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 string_appends(string *p,string *s,string *s_1)\n\n{\n  size_t __n;\n  \n  if ((string *)s->b != s_1) {\n    __n = (int)s_1 - (int)s->b;\n    string_need(p,__n);\n    memcpy(p->p,s->b,__n);\n    p->p = p->p + __n;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "string_appends(string *p,string *s,string *s_1)" identifier (parameter_list "(string *p,string *s,string *s_1)" ( (parameter_declaration "string *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "string *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "string *s_1" type_identifier (pointer_declarator "*s_1" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  \n  if ((string *)s->b != s_1) {\n    __n = (int)s_1 - (int)s->b;\n    string_need(p,__n);\n    memcpy(p->p,s->b,__n);\n    p->p = p->p + __n;\n  }\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (if_statement "if ((string *)s->b != s_1) {\n    __n = (int)s_1 - (int)s->b;\n    string_need(p,__n);\n    memcpy(p->p,s->b,__n);\n    p->p = p->p + __n;\n  }" if (parenthesized_expression "((string *)s->b != s_1)" ( (binary_expression "(string *)s->b != s_1" (cast_expression "(string *)s->b" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s->b" identifier -> field_identifier)) != identifier) )) (compound_statement "{\n    __n = (int)s_1 - (int)s->b;\n    string_need(p,__n);\n    memcpy(p->p,s->b,__n);\n    p->p = p->p + __n;\n  }" { (expression_statement "__n = (int)s_1 - (int)s->b;" (assignment_expression "__n = (int)s_1 - (int)s->b" identifier = (binary_expression "(int)s_1 - (int)s->b" (cast_expression "(int)s_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)s->b" ( (type_descriptor "int" primitive_type) ) (field_expression "s->b" identifier -> field_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->b,__n);" (call_expression "memcpy(p->p,s->b,__n)" identifier (argument_list "(p->p,s->b,__n)" ( (field_expression "p->p" identifier -> field_identifier) , (field_expression "s->b" identifier -> field_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_001ce390(int param_1,int *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_001ce390(int param_1,int *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001ce390(int param_1,int *param_2,int param_3)" identifier (parameter_list "(int param_1,int *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  size_t __n;\n  \n  if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (if_statement "if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }" if (parenthesized_expression "(*param_2 != param_3)" ( (binary_expression "*param_2 != param_3" (pointer_expression "*param_2" * identifier) != identifier) )) (compound_statement "{\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }" { (expression_statement "__n = param_3 - *param_2;" (assignment_expression "__n = param_3 - *param_2" identifier = (binary_expression "param_3 - *param_2" identifier - (pointer_expression "*param_2" * identifier))) ;) (expression_statement "FUN_001ce0c0();" (call_expression "FUN_001ce0c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);" (call_expression "memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n)" identifier (argument_list "(*(void **)(param_1 + 4),(void *)*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) )))) , (cast_expression "(void *)*param_2" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * 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)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * 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) )))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * 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_001ce390(int param_1,int *param_2,int param_3)\n\n{\n  size_t __n;\n  \n  if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001ce390(int param_1,int *param_2,int param_3)" (identifier "FUN_001ce390") (parameter_list "(int param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  size_t __n;\n  \n  if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }\n  return;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (if_statement "if (*param_2 != param_3) {\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }" (if "if") (parenthesized_expression "(*param_2 != param_3)" (( "(") (binary_expression "*param_2 != param_3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (identifier "param_3")) () ")")) (compound_statement "{\n    __n = param_3 - *param_2;\n    FUN_001ce0c0();\n    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;\n  }" ({ "{") (expression_statement "__n = param_3 - *param_2;" (assignment_expression "__n = param_3 - *param_2" (identifier "__n") (= "=") (binary_expression "param_3 - *param_2" (identifier "param_3") (- "-") (pointer_expression "*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),(void *)*param_2,__n);" (call_expression "memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n)" (identifier "memcpy") (argument_list "(*(void **)(param_1 + 4),(void *)*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")) () ")")))) (, ",") (cast_expression "(void *)*param_2" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (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 */
/* DWARF original prototype: void string_appends(string * p, string * s, string * s) */

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

{
  size_t var_4;
  
  if ((type_1 *)s->b != var_1) {
    var_4 = (int)var_1 - (int)s->b;
    var_2(p,var_4);
    var_3(p->p,s->b,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))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (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))))) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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,int *param_2,int param_3)

{
  size_t __n;
  
  if (*param_2 != param_3) {
    __n = param_3 - *param_2;
    FUN_001ce0c0();
    memcpy(*(void **)(param_1 + 4),(void *)*param_2,__n);
    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + __n;
  }
  return;
}

