
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void
   basic_string(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> * this, char *
   __s, allocator<char> * __a) */

void __thiscall
std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::basic_string
          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__s,
          allocator<char> *__a)

{
  int *in_EAX;
  char *in_EDX;
  
  *in_EAX = (int)(in_EAX + 2);
  if (in_EDX != (char *)0x0) {
    strlen(in_EDX);
  }
  _M_construct<char_const*>();
  return;
}



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

void __regparm3 FUN_000926b0(int *param_1,char *param_2)

{
  char *pcVar1;
  size_t sVar2;
  
  *param_1 = (int)(param_1 + 2);
  pcVar1 = (char *)0xffffffff;
  if (param_2 != (char *)0x0) {
    sVar2 = strlen(param_2);
    pcVar1 = param_2 + sVar2;
  }
  FUN_0004cf80(param_1,param_2,pcVar1,0);
  return;
}


PUSH EDI
MOV EDI,EAX
ADD EAX,0x8
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00032730
ADD EBX,0x26f941
MOV dword ptr [EDI],EAX
MOV EAX,0xffffffff
TEST EDX,EDX
JZ 0x000926de
SUB ESP,0xc
PUSH EDX
CALL 0x000265f0
ADD ESP,0x10
ADD EAX,ESI
PUSH 0x0
PUSH EAX
PUSH ESI
PUSH EDI
CALL 0x0004cf80
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 __regparm3 FUN_000926b0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000926b0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000926b0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "pcVar1 = (char *)0xffffffff;" (assignment_expression "pcVar1 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar1 = param_2 + sVar2;" (assignment_expression "pcVar1 = param_2 + sVar2" identifier = (binary_expression "param_2 + sVar2" identifier + identifier)) ;) })) (expression_statement "FUN_0004cf80(param_1,param_2,pcVar1,0);" (call_expression "FUN_0004cf80(param_1,param_2,pcVar1,0)" identifier (argument_list "(param_1,param_2,pcVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (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\n   basic_string(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> * this, char *\n   __s, allocator<char> * __a) */\n\nvoid __thiscall\nstd::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::basic_string\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__s,\n          allocator<char> *__a)\n\n{\n  int *in_EAX;\n  char *in_EDX;\n  \n  *in_EAX = (int)(in_EAX + 2);\n  if (in_EDX != (char *)0x0) {\n    strlen(in_EDX);\n  }\n  _M_construct<char_const*>();\n  return;\n}\n\n" comment comment (declaration "void __thiscall\nstd::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::basic_string\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__s,\n          allocator<char> *__a)\n\n{\n  int *in_EAX;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__cxx11::" identifier : : identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "_std::" identifier : :) identifier (ERROR "<char>" < primitive_type >) , (ERROR "_std::allocator<char>_>::basic_string\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__s,\n          allocator<char> *__a)\n\n{\n  int" identifier : : identifier < primitive_type > identifier > : : (function_declarator "basic_string\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__s,\n          allocator<char> *__a)" identifier (parameter_list "(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__s,\n          allocator<char> *__a)" ( (parameter_declaration "basic_string" type_identifier) (ERROR "<char" < primitive_type) , (parameter_declaration "_std::char_traits" type_identifier (ERROR "::" : :) identifier) (ERROR "<char>" < primitive_type >) , (parameter_declaration "_std::allocator<char>_> *this" type_identifier (ERROR "::allocator<char>_>" : : identifier < primitive_type > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *__s" primitive_type (pointer_declarator "*__s" * identifier)) , (parameter_declaration "allocator<char> *__a" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*__a" * identifier)) ))) { primitive_type) (pointer_declarator "*in_EAX" * identifier) ;) (declaration "char *in_EDX;" primitive_type (pointer_declarator "*in_EDX" * identifier) ;) (expression_statement "*in_EAX = (int)(in_EAX + 2);" (assignment_expression "*in_EAX = (int)(in_EAX + 2)" (pointer_expression "*in_EAX" * identifier) = (cast_expression "(int)(in_EAX + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(in_EAX + 2)" ( (binary_expression "in_EAX + 2" identifier + number_literal) )))) ;) (if_statement "if (in_EDX != (char *)0x0) {\n    strlen(in_EDX);\n  }" if (parenthesized_expression "(in_EDX != (char *)0x0)" ( (binary_expression "in_EDX != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    strlen(in_EDX);\n  }" { (expression_statement "strlen(in_EDX);" (call_expression "strlen(in_EDX)" identifier (argument_list "(in_EDX)" ( identifier ))) ;) })) (ERROR "_M_construct<char_const*>()" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > ( )) (expression_statement ";" ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void __regparm3 FUN_000926b0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000926b0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000926b0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "pcVar1 = (char *)0xffffffff;" (assignment_expression "pcVar1 = (char *)0xffffffff" identifier = (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar1 = param_2 + sVar2;" (assignment_expression "pcVar1 = param_2 + sVar2" identifier = (binary_expression "param_2 + sVar2" identifier + identifier)) ;) })) (expression_statement "FUN_0004cf80(param_1,param_2,pcVar1,0);" (call_expression "FUN_0004cf80(param_1,param_2,pcVar1,0)" identifier (argument_list "(param_1,param_2,pcVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000926b0(int *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000926b0(int *param_1,char *param_2)" (identifier "FUN_000926b0") (parameter_list "(int *param_1,char *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pcVar1 = (char *)0xffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }\n  FUN_0004cf80(param_1,param_2,pcVar1,0);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "pcVar1 = (char *)0xffffffff;" (assignment_expression "pcVar1 = (char *)0xffffffff" (identifier "pcVar1") (= "=") (cast_expression "(char *)0xffffffff" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (if_statement "if (param_2 != (char *)0x0) {\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" (if "if") (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar2 = strlen(param_2);\n    pcVar1 = param_2 + sVar2;\n  }" ({ "{") (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" (identifier "sVar2") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pcVar1 = param_2 + sVar2;" (assignment_expression "pcVar1 = param_2 + sVar2" (identifier "pcVar1") (= "=") (binary_expression "param_2 + sVar2" (identifier "param_2") (+ "+") (identifier "sVar2"))) (; ";")) (} "}"))) (expression_statement "FUN_0004cf80(param_1,param_2,pcVar1,0);" (call_expression "FUN_0004cf80(param_1,param_2,pcVar1,0)" (identifier "FUN_0004cf80") (argument_list "(param_1,param_2,pcVar1,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "pcVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void
   basic_string(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> * this, char *
   __s, allocator<char> * __a) */

void __thiscall
std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::basic_string
          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__s,
          allocator<char> *__a)

{
  int *var_1;
  char *var_2;
  
  *var_1 = (int)(var_1 + 2);
  if (var_2 != (char *)0x0) {
    var_3(var_2);
  }
  _M_construct<char_const*>();
  return;
}


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

{
  char *pcVar1;
  size_t sVar2;
  
  *param_1 = (int)(param_1 + 2);
  pcVar1 = (char *)0xffffffff;
  if (param_2 != (char *)0x0) {
    sVar2 = strlen(param_2);
    pcVar1 = param_2 + sVar2;
  }
  FUN_0004cf80(param_1,param_2,pcVar1,0);
  return;
}

