
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */

void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)

{
  wchar_t *pwVar1;
  size_t sVar2;
  
  *(wstring **)this = this + 8;
  pwVar1 = (wchar_t *)0xfffffffc;
  if (param_1 != (wchar_t *)0x0) {
    sVar2 = wcslen(param_1);
    pwVar1 = param_1 + sVar2;
  }
  _M_construct<wchar_t_const*>(this,param_1,pwVar1,0);
  return;
}



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

void FUN_00187cd0(int *param_1,wchar_t *param_2)

{
  wchar_t *pwVar1;
  size_t sVar2;
  
  *param_1 = (int)(param_1 + 2);
  pwVar1 = (wchar_t *)0xfffffffc;
  if (param_2 != (wchar_t *)0x0) {
    sVar2 = wcslen(param_2);
    pwVar1 = param_2 + sVar2;
  }
  FUN_00187ac0(param_1,param_2,pwVar1,0);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00032730
ADD EBX,0x17a324
MOV ESI,dword ptr [ESP + 0x14]
LEA EAX,[EDI + 0x8]
MOV dword ptr [EDI],EAX
MOV EAX,0xfffffffc
TEST ESI,ESI
JZ 0x00187d03
SUB ESP,0xc
PUSH ESI
CALL 0x00026270
ADD ESP,0x10
LEA EAX,[ESI + EAX*0x4]
PUSH 0x0
PUSH EAX
PUSH ESI
PUSH EDI
CALL 0x00187ac0
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_00187cd0(int *param_1,wchar_t *param_2)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  FUN_00187ac0(param_1,param_2,pwVar1,0);\n  return;\n}\n\n" comment (function_definition "void FUN_00187cd0(int *param_1,wchar_t *param_2)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  FUN_00187ac0(param_1,param_2,pwVar1,0);\n  return;\n}" primitive_type (function_declarator "FUN_00187cd0(int *param_1,wchar_t *param_2)" identifier (parameter_list "(int *param_1,wchar_t *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  FUN_00187ac0(param_1,param_2,pwVar1,0);\n  return;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * 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 "pwVar1 = (wchar_t *)0xfffffffc;" (assignment_expression "pwVar1 = (wchar_t *)0xfffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }" if (parenthesized_expression "(param_2 != (wchar_t *)0x0)" ( (binary_expression "param_2 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }" { (expression_statement "sVar2 = wcslen(param_2);" (assignment_expression "sVar2 = wcslen(param_2)" identifier = (call_expression "wcslen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pwVar1 = param_2 + sVar2;" (assignment_expression "pwVar1 = param_2 + sVar2" identifier = (binary_expression "param_2 + sVar2" identifier + identifier)) ;) })) (expression_statement "FUN_00187ac0(param_1,param_2,pwVar1,0);" (call_expression "FUN_00187ac0(param_1,param_2,pwVar1,0)" identifier (argument_list "(param_1,param_2,pwVar1,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/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */\n\nvoid __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *(wstring **)this = this + 8;\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_1 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_1);\n    pwVar1 = param_1 + sVar2;\n  }\n  _M_construct<wchar_t_const*>(this,param_1,pwVar1,0);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wstring::wstring(wstring *this,wchar_t *param_1,allocator *param_2)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *(wstring **)this = this + 8;\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_1 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_1);\n    pwVar1 = param_1 + sVar2;\n  }\n  _M_construct<wchar_t_const*>(this,param_1,pwVar1,0);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "wstring(wstring *this,wchar_t *param_1,allocator *param_2)" identifier (parameter_list "(wstring *this,wchar_t *param_1,allocator *param_2)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "allocator *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *(wstring **)this = this + 8;\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_1 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_1);\n    pwVar1 = param_1 + sVar2;\n  }\n  _M_construct<wchar_t_const*>(this,param_1,pwVar1,0);\n  return;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "*(wstring **)this = this + 8;" (assignment_expression "*(wstring **)this = this + 8" (pointer_expression "*(wstring **)this" * (cast_expression "(wstring **)this" ( (type_descriptor "wstring **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "this + 8" identifier + number_literal)) ;) (expression_statement "pwVar1 = (wchar_t *)0xfffffffc;" (assignment_expression "pwVar1 = (wchar_t *)0xfffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_1 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_1);\n    pwVar1 = param_1 + sVar2;\n  }" if (parenthesized_expression "(param_1 != (wchar_t *)0x0)" ( (binary_expression "param_1 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = wcslen(param_1);\n    pwVar1 = param_1 + sVar2;\n  }" { (expression_statement "sVar2 = wcslen(param_1);" (assignment_expression "sVar2 = wcslen(param_1)" identifier = (call_expression "wcslen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pwVar1 = param_1 + sVar2;" (assignment_expression "pwVar1 = param_1 + sVar2" identifier = (binary_expression "param_1 + sVar2" identifier + identifier)) ;) })) (expression_statement "_M_construct<wchar_t_const*>(this,param_1,pwVar1,0);" (binary_expression "_M_construct<wchar_t_const*>(this,param_1,pwVar1,0)" (binary_expression "_M_construct<wchar_t_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(this,param_1,pwVar1,0)" ( (comma_expression "this,param_1,pwVar1,0" identifier , (comma_expression "param_1,pwVar1,0" identifier , (comma_expression "pwVar1,0" identifier , number_literal))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00187cd0(int *param_1,wchar_t *param_2)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  FUN_00187ac0(param_1,param_2,pwVar1,0);\n  return;\n}\n\n" (function_definition "void FUN_00187cd0(int *param_1,wchar_t *param_2)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  FUN_00187ac0(param_1,param_2,pwVar1,0);\n  return;\n}" primitive_type (function_declarator "FUN_00187cd0(int *param_1,wchar_t *param_2)" identifier (parameter_list "(int *param_1,wchar_t *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  FUN_00187ac0(param_1,param_2,pwVar1,0);\n  return;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * 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 "pwVar1 = (wchar_t *)0xfffffffc;" (assignment_expression "pwVar1 = (wchar_t *)0xfffffffc" identifier = (cast_expression "(wchar_t *)0xfffffffc" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }" if (parenthesized_expression "(param_2 != (wchar_t *)0x0)" ( (binary_expression "param_2 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }" { (expression_statement "sVar2 = wcslen(param_2);" (assignment_expression "sVar2 = wcslen(param_2)" identifier = (call_expression "wcslen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pwVar1 = param_2 + sVar2;" (assignment_expression "pwVar1 = param_2 + sVar2" identifier = (binary_expression "param_2 + sVar2" identifier + identifier)) ;) })) (expression_statement "FUN_00187ac0(param_1,param_2,pwVar1,0);" (call_expression "FUN_00187ac0(param_1,param_2,pwVar1,0)" identifier (argument_list "(param_1,param_2,pwVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (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)) ))) (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 FUN_00187cd0(int *param_1,wchar_t *param_2)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  FUN_00187ac0(param_1,param_2,pwVar1,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00187cd0(int *param_1,wchar_t *param_2)" (identifier "FUN_00187cd0") (parameter_list "(int *param_1,wchar_t *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "wchar_t *param_2" (type_identifier "wchar_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  \n  *param_1 = (int)(param_1 + 2);\n  pwVar1 = (wchar_t *)0xfffffffc;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  FUN_00187ac0(param_1,param_2,pwVar1,0);\n  return;\n}" ({ "{") (declaration "wchar_t *pwVar1;" (type_identifier "wchar_t") (pointer_declarator "*pwVar1" (* "*") (identifier "pwVar1")) (; ";")) (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 "pwVar1 = (wchar_t *)0xfffffffc;" (assignment_expression "pwVar1 = (wchar_t *)0xfffffffc" (identifier "pwVar1") (= "=") (cast_expression "(wchar_t *)0xfffffffc" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xfffffffc"))) (; ";")) (if_statement "if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }" (if "if") (parenthesized_expression "(param_2 != (wchar_t *)0x0)" (( "(") (binary_expression "param_2 != (wchar_t *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(wchar_t *)0x0" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }" ({ "{") (expression_statement "sVar2 = wcslen(param_2);" (assignment_expression "sVar2 = wcslen(param_2)" (identifier "sVar2") (= "=") (call_expression "wcslen(param_2)" (identifier "wcslen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pwVar1 = param_2 + sVar2;" (assignment_expression "pwVar1 = param_2 + sVar2" (identifier "pwVar1") (= "=") (binary_expression "param_2 + sVar2" (identifier "param_2") (+ "+") (identifier "sVar2"))) (; ";")) (} "}"))) (expression_statement "FUN_00187ac0(param_1,param_2,pwVar1,0);" (call_expression "FUN_00187ac0(param_1,param_2,pwVar1,0)" (identifier "FUN_00187ac0") (argument_list "(param_1,param_2,pwVar1,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "pwVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */

void __thiscall std::function_1::function_1(function_1 *var_1,type_1 *var_2,type_2 *param_2)

{
  type_1 *pwVar1;
  size_t var_4;
  
  *(function_1 **)var_1 = var_1 + 8;
  pwVar1 = (type_1 *)0xfffffffc;
  if (var_2 != (type_1 *)0x0) {
    var_4 = var_3(var_2);
    pwVar1 = var_2 + var_4;
  }
  var_5<var_6*>(var_1,var_2,pwVar1,0);
  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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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 MASKED(int *param_1,wchar_t *param_2)

{
  wchar_t *pwVar1;
  size_t sVar2;
  
  *param_1 = (int)(param_1 + 2);
  pwVar1 = (wchar_t *)0xfffffffc;
  if (param_2 != (wchar_t *)0x0) {
    sVar2 = wcslen(param_2);
    pwVar1 = param_2 + sVar2;
  }
  FUN_00187ac0(param_1,param_2,pwVar1,0);
  return;
}

