
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ctype<char>::do_widen(char const*, char const*, char*) const */

char * __thiscall
std::ctype<char>::do_widen(ctype<char> *this,char *param_1,char *param_2,char *param_3)

{
  if (param_2 != param_1) {
    memcpy(param_3,param_1,(int)param_2 - (int)param_1);
  }
  return param_2;
}



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

void * FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)

{
  if (param_3 != param_2) {
    memcpy(param_4,param_2,(int)param_3 - (int)param_2);
  }
  return param_3;
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1965d9
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x18]
CMP ESI,EAX
JZ 0x001f8a51
MOV EDX,ESI
SUB ESP,0x4
SUB EDX,EAX
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x28]
CALL 0x000295c0
ADD ESP,0x10
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)\n\n{\n  if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }\n  return param_3;\n}\n\n" comment (function_definition "void * FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)\n\n{\n  if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }\n  return param_3;\n}" primitive_type (pointer_declarator "* FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)" * (function_declarator "FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)" identifier (parameter_list "(undefined4 param_1,void *param_2,void *param_3,void *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "void *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }\n  return param_3;\n}" { (if_statement "if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }" if (parenthesized_expression "(param_3 != param_2)" ( (binary_expression "param_3 != param_2" identifier != identifier) )) (compound_statement "{\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }" { (expression_statement "memcpy(param_4,param_2,(int)param_3 - (int)param_2);" (call_expression "memcpy(param_4,param_2,(int)param_3 - (int)param_2)" identifier (argument_list "(param_4,param_2,(int)param_3 - (int)param_2)" ( identifier , identifier , (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::ctype<char>::do_widen(char const*, char const*, char*) const */\n\nchar * __thiscall\nstd::ctype<char>::do_widen(ctype<char> *this,char *param_1,char *param_2,char *param_3)\n\n{\n  if (param_2 != param_1) {\n    memcpy(param_3,param_1,(int)param_2 - (int)param_1);\n  }\n  return param_2;\n}\n\n" comment comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "std::ctype<char>::do_widen(ctype<char> *this,char *param_1,char *param_2,char *param_3)" statement_identifier (ERROR "::ctype<char>:" : : (binary_expression "ctype<char" identifier < identifier) > :) : (expression_statement "do_widen(ctype<char> *this,char *param_1,char *param_2,char *param_3)" (call_expression "do_widen(ctype<char> *this,char *param_1,char *param_2,char *param_3)" identifier (argument_list "(ctype<char> *this,char *param_1,char *param_2,char *param_3)" ( (binary_expression "ctype<char> *this" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*this" * identifier)) , (binary_expression "char *param_1" identifier * identifier) , (binary_expression "char *param_2" identifier * identifier) , (binary_expression "char *param_3" identifier * identifier) ))) ;)) (compound_statement "{\n  if (param_2 != param_1) {\n    memcpy(param_3,param_1,(int)param_2 - (int)param_1);\n  }\n  return param_2;\n}" { (if_statement "if (param_2 != param_1) {\n    memcpy(param_3,param_1,(int)param_2 - (int)param_1);\n  }" if (parenthesized_expression "(param_2 != param_1)" ( (binary_expression "param_2 != param_1" identifier != identifier) )) (compound_statement "{\n    memcpy(param_3,param_1,(int)param_2 - (int)param_1);\n  }" { (expression_statement "memcpy(param_3,param_1,(int)param_2 - (int)param_1);" (call_expression "memcpy(param_3,param_1,(int)param_2 - (int)param_1)" identifier (argument_list "(param_3,param_1,(int)param_2 - (int)param_1)" ( identifier , identifier , (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })) (return_statement "return param_2;" return identifier ;) }))
(translation_unit "void * FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)\n\n{\n  if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }\n  return param_3;\n}\n\n" (function_definition "void * FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)\n\n{\n  if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }\n  return param_3;\n}" primitive_type (pointer_declarator "* FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)" * (function_declarator "FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)" identifier (parameter_list "(undefined4 param_1,void *param_2,void *param_3,void *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "void *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }\n  return param_3;\n}" { (if_statement "if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }" if (parenthesized_expression "(param_3 != param_2)" ( (binary_expression "param_3 != param_2" identifier != identifier) )) (compound_statement "{\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }" { (expression_statement "memcpy(param_4,param_2,(int)param_3 - (int)param_2);" (call_expression "memcpy(param_4,param_2,(int)param_3 - (int)param_2)" identifier (argument_list "(param_4,param_2,(int)param_3 - (int)param_2)" ( identifier , identifier , (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "void * FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)\n\n{\n  if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }\n  return param_3;\n}" (primitive_type "void") (pointer_declarator "* FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)" (* "*") (function_declarator "FUN_001f8a20(undefined4 param_1,void *param_2,void *param_3,void *param_4)" (identifier "FUN_001f8a20") (parameter_list "(undefined4 param_1,void *param_2,void *param_3,void *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "void *param_3" (primitive_type "void") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "void *param_4" (primitive_type "void") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")")))) (compound_statement "{\n  if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }\n  return param_3;\n}" ({ "{") (if_statement "if (param_3 != param_2) {\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }" (if "if") (parenthesized_expression "(param_3 != param_2)" (( "(") (binary_expression "param_3 != param_2" (identifier "param_3") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    memcpy(param_4,param_2,(int)param_3 - (int)param_2);\n  }" ({ "{") (expression_statement "memcpy(param_4,param_2,(int)param_3 - (int)param_2);" (call_expression "memcpy(param_4,param_2,(int)param_3 - (int)param_2)" (identifier "memcpy") (argument_list "(param_4,param_2,(int)param_3 - (int)param_2)" (( "(") (identifier "param_4") (, ",") (identifier "param_2") (, ",") (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")"))) (; ";")) (} "}"))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ctype<char>::do_widen(char const*, char const*, char*) const */

char * __thiscall
std::var_2<var_3>::var_1(var_2<var_3> *this,var_3 *var_4,var_3 *var_5,var_3 *var_6)

{
  if (var_5 != var_4) {
    var_7(var_6,var_4,(int)var_5 - (int)var_4);
  }
  return var_5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (return_statement (identifier)))))

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

void * MASKED(undefined4 param_1,void *param_2,void *param_3,void *param_4)

{
  if (param_3 != param_2) {
    memcpy(param_4,param_2,(int)param_3 - (int)param_2);
  }
  return param_3;
}

