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

void append(char **charPP,char *fromP,ulong length)

{
  if (length != 0) {
    memcpy(*charPP,fromP,length);
    *charPP = *charPP + length;
  }
  return;
}



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

void FUN_00041ea0(int *param_1,void *param_2,size_t param_3)

{
  if (param_3 != 0) {
    memcpy((void *)*param_1,param_2,param_3);
    *param_1 = *param_1 + param_3;
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x18]
CALL 0x00018ff0
ADD EBX,0x3e154
MOV EDI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x00041ece
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [EDI]
CALL 0x000170f0
ADD dword ptr [EDI],ESI
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00041ea0(int *param_1,void *param_2,size_t param_3)\n\n{\n  if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00041ea0(int *param_1,void *param_2,size_t param_3)\n\n{\n  if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00041ea0(int *param_1,void *param_2,size_t param_3)" identifier (parameter_list "(int *param_1,void *param_2,size_t param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }\n  return;\n}" { (if_statement "if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }" { (expression_statement "memcpy((void *)*param_1,param_2,param_3);" (call_expression "memcpy((void *)*param_1,param_2,param_3)" identifier (argument_list "((void *)*param_1,param_2,param_3)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier , identifier ))) ;) (expression_statement "*param_1 = *param_1 + param_3;" (assignment_expression "*param_1 = *param_1 + param_3" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + param_3" (pointer_expression "*param_1" * identifier) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid append(char **charPP,char *fromP,ulong length)\n\n{\n  if (length != 0) {\n    memcpy(*charPP,fromP,length);\n    *charPP = *charPP + length;\n  }\n  return;\n}\n\n" comment comment (function_definition "void append(char **charPP,char *fromP,ulong length)\n\n{\n  if (length != 0) {\n    memcpy(*charPP,fromP,length);\n    *charPP = *charPP + length;\n  }\n  return;\n}" primitive_type (function_declarator "append(char **charPP,char *fromP,ulong length)" identifier (parameter_list "(char **charPP,char *fromP,ulong length)" ( (parameter_declaration "char **charPP" primitive_type (pointer_declarator "**charPP" * (pointer_declarator "*charPP" * identifier))) , (parameter_declaration "char *fromP" primitive_type (pointer_declarator "*fromP" * identifier)) , (parameter_declaration "ulong length" type_identifier identifier) ))) (compound_statement "{\n  if (length != 0) {\n    memcpy(*charPP,fromP,length);\n    *charPP = *charPP + length;\n  }\n  return;\n}" { (if_statement "if (length != 0) {\n    memcpy(*charPP,fromP,length);\n    *charPP = *charPP + length;\n  }" if (parenthesized_expression "(length != 0)" ( (binary_expression "length != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy(*charPP,fromP,length);\n    *charPP = *charPP + length;\n  }" { (expression_statement "memcpy(*charPP,fromP,length);" (call_expression "memcpy(*charPP,fromP,length)" identifier (argument_list "(*charPP,fromP,length)" ( (pointer_expression "*charPP" * identifier) , identifier , identifier ))) ;) (expression_statement "*charPP = *charPP + length;" (assignment_expression "*charPP = *charPP + length" (pointer_expression "*charPP" * identifier) = (binary_expression "*charPP + length" (pointer_expression "*charPP" * identifier) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00041ea0(int *param_1,void *param_2,size_t param_3)\n\n{\n  if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00041ea0(int *param_1,void *param_2,size_t param_3)\n\n{\n  if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00041ea0(int *param_1,void *param_2,size_t param_3)" identifier (parameter_list "(int *param_1,void *param_2,size_t param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }\n  return;\n}" { (if_statement "if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }" { (expression_statement "memcpy((void *)*param_1,param_2,param_3);" (call_expression "memcpy((void *)*param_1,param_2,param_3)" identifier (argument_list "((void *)*param_1,param_2,param_3)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier , identifier ))) ;) (expression_statement "*param_1 = *param_1 + param_3;" (assignment_expression "*param_1 = *param_1 + param_3" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + param_3" (pointer_expression "*param_1" * identifier) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00041ea0(int *param_1,void *param_2,size_t param_3)\n\n{\n  if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00041ea0(int *param_1,void *param_2,size_t param_3)" (identifier "FUN_00041ea0") (parameter_list "(int *param_1,void *param_2,size_t param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }\n  return;\n}" ({ "{") (if_statement "if (param_3 != 0) {\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    memcpy((void *)*param_1,param_2,param_3);\n    *param_1 = *param_1 + param_3;\n  }" ({ "{") (expression_statement "memcpy((void *)*param_1,param_2,param_3);" (call_expression "memcpy((void *)*param_1,param_2,param_3)" (identifier "memcpy") (argument_list "((void *)*param_1,param_2,param_3)" (( "(") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "*param_1 = *param_1 + param_3;" (assignment_expression "*param_1 = *param_1 + param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 + param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "param_3"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char **charPP,char *fromP,type_1 var_1)

{
  if (var_1 != 0) {
    var_2(*charPP,fromP,var_1);
    *charPP = *charPP + var_1;
  }
  return;
}


(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))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (return_statement))))

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

void MASKED(int *param_1,void *param_2,size_t param_3)

{
  if (param_3 != 0) {
    memcpy((void *)*param_1,param_2,param_3);
    *param_1 = *param_1 + param_3;
  }
  return;
}

