
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Restarted to delay deadcode elimination for space: register */
/* 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;
  
  if (param_1 != (wchar_t *)0x0) {
    wcslen(param_1);
  }
  pwVar1 = _S_construct<wchar_t_const*>();
  *(wchar_t **)this = pwVar1;
  return;
}



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

void FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)

{
  wchar_t *pwVar1;
  size_t sVar2;
  undefined4 uVar3;
  
  pwVar1 = (wchar_t *)0xfffffffc;
  uVar3 = 0x26c11c;
  if (param_2 != (wchar_t *)0x0) {
    sVar2 = wcslen(param_2);
    pwVar1 = param_2 + sVar2;
  }
  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);
  *param_1 = uVar3;
  return;
}


PUSH ESI
MOV EAX,0xfffffffc
PUSH EBX
CALL 0x00035840
ADD EBX,0x122ee4
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x14]
TEST ESI,ESI
JZ 0x0026c13c
SUB ESP,0xc
PUSH ESI
CALL 0x00029270
ADD ESP,0x10
LEA EAX,[ESI + EAX*0x4]
PUSH 0x0
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
PUSH ESI
CALL 0x0026bb30
MOV EDX,dword ptr [ESP + 0x20]
MOV dword ptr [EDX],EAX
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  pwVar1 = (wchar_t *)0xfffffffc;\n  uVar3 = 0x26c11c;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);\n  *param_1 = uVar3;\n  return;\n}\n\n" comment (function_definition "void FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  pwVar1 = (wchar_t *)0xfffffffc;\n  uVar3 = 0x26c11c;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);\n  *param_1 = uVar3;\n  return;\n}" primitive_type (function_declarator "FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  pwVar1 = (wchar_t *)0xfffffffc;\n  uVar3 = 0x26c11c;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);\n  *param_1 = uVar3;\n  return;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (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)) ;) (expression_statement "uVar3 = 0x26c11c;" (assignment_expression "uVar3 = 0x26c11c" identifier = 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 "uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);" (assignment_expression "uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3)" identifier = (call_expression "FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3)" identifier (argument_list "(param_2,pwVar1,param_3,0,uVar3)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (expression_statement "*param_1 = uVar3;" (assignment_expression "*param_1 = uVar3" (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: Restarted to delay deadcode elimination for space: register */\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  \n  if (param_1 != (wchar_t *)0x0) {\n    wcslen(param_1);\n  }\n  pwVar1 = _S_construct<wchar_t_const*>();\n  *(wchar_t **)this = pwVar1;\n  return;\n}\n\n" comment 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  \n  if (param_1 != (wchar_t *)0x0) {\n    wcslen(param_1);\n  }\n  pwVar1 = _S_construct<wchar_t_const*>();\n  *(wchar_t **)this = pwVar1;\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  \n  if (param_1 != (wchar_t *)0x0) {\n    wcslen(param_1);\n  }\n  pwVar1 = _S_construct<wchar_t_const*>();\n  *(wchar_t **)this = pwVar1;\n  return;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (if_statement "if (param_1 != (wchar_t *)0x0) {\n    wcslen(param_1);\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    wcslen(param_1);\n  }" { (expression_statement "wcslen(param_1);" (call_expression "wcslen(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "pwVar1 = _S_construct<wchar_t_const*>();" (assignment_expression "pwVar1 = _S_construct<wchar_t_const" identifier = (binary_expression "_S_construct<wchar_t_const" identifier < identifier)) (ERROR "*>()" * > ( )) ;) (expression_statement "*(wchar_t **)this = pwVar1;" (assignment_expression "*(wchar_t **)this = pwVar1" (pointer_expression "*(wchar_t **)this" * (cast_expression "(wchar_t **)this" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  pwVar1 = (wchar_t *)0xfffffffc;\n  uVar3 = 0x26c11c;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);\n  *param_1 = uVar3;\n  return;\n}\n\n" (function_definition "void FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  pwVar1 = (wchar_t *)0xfffffffc;\n  uVar3 = 0x26c11c;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);\n  *param_1 = uVar3;\n  return;\n}" primitive_type (function_declarator "FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  pwVar1 = (wchar_t *)0xfffffffc;\n  uVar3 = 0x26c11c;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);\n  *param_1 = uVar3;\n  return;\n}" { (declaration "wchar_t *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (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)) ;) (expression_statement "uVar3 = 0x26c11c;" (assignment_expression "uVar3 = 0x26c11c" identifier = 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 "uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);" (assignment_expression "uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3)" identifier = (call_expression "FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3)" identifier (argument_list "(param_2,pwVar1,param_3,0,uVar3)" ( identifier , identifier , identifier , number_literal , identifier )))) ;) (expression_statement "*param_1 = uVar3;" (assignment_expression "*param_1 = uVar3" (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 { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = 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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)\n\n{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  pwVar1 = (wchar_t *)0xfffffffc;\n  uVar3 = 0x26c11c;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);\n  *param_1 = uVar3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0026c110(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)" (identifier "FUN_0026c110") (parameter_list "(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "wchar_t *param_2" (type_identifier "wchar_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  wchar_t *pwVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  pwVar1 = (wchar_t *)0xfffffffc;\n  uVar3 = 0x26c11c;\n  if (param_2 != (wchar_t *)0x0) {\n    sVar2 = wcslen(param_2);\n    pwVar1 = param_2 + sVar2;\n  }\n  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);\n  *param_1 = uVar3;\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") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (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"))) (; ";")) (expression_statement "uVar3 = 0x26c11c;" (assignment_expression "uVar3 = 0x26c11c" (identifier "uVar3") (= "=") (number_literal "0x26c11c")) (; ";")) (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 "uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);" (assignment_expression "uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3)" (identifier "uVar3") (= "=") (call_expression "FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3)" (identifier "FUN_0026bb30") (argument_list "(param_2,pwVar1,param_3,0,uVar3)" (( "(") (identifier "param_2") (, ",") (identifier "pwVar1") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "*param_1 = uVar3;" (assignment_expression "*param_1 = uVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Restarted to delay deadcode elimination for space: register */
/* std::wstring::wstring(wchar_t const*, std::allocator<wchar_t> const&) */

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

{
  type_1 *pwVar1;
  
  if (var_1 != (type_1 *)0x0) {
    var_2(var_1);
  }
  pwVar1 = var_3<var_4*>();
  *(type_1 **)this = pwVar1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal) (identifier))))) (expression_statement (assignment_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(undefined4 *param_1,wchar_t *param_2,undefined4 param_3)

{
  wchar_t *pwVar1;
  size_t sVar2;
  undefined4 uVar3;
  
  pwVar1 = (wchar_t *)0xfffffffc;
  uVar3 = 0x26c11c;
  if (param_2 != (wchar_t *)0x0) {
    sVar2 = wcslen(param_2);
    pwVar1 = param_2 + sVar2;
  }
  uVar3 = FUN_0026bb30(param_2,pwVar1,param_3,0,uVar3);
  *param_1 = uVar3;
  return;
}

