
/* 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)

{
  size_type __dnew;
  
}



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

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

{
  size_t __n;
  int *__dest;
  size_t local_20 [3];
  undefined4 uStack_14;
  
  __dest = param_1 + 2;
  uStack_14 = 0x50c9e;
  *param_1 = (int)__dest;
  if (param_2 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_003f3980("basic_string::_M_construct null not valid");
  }
  __n = strlen(param_2);
  local_20[0] = __n;
  if (__n < 0x10) {
    if (__n == 1) {
      *(char *)(param_1 + 2) = *param_2;
      goto LAB_00050cda;
    }
    if (__n == 0) goto LAB_00050cda;
  }
  else {
    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);
    *param_1 = (int)__dest;
    param_1[2] = local_20[0];
  }
  memcpy(__dest,param_2,__n);
LAB_00050cda:
  param_1[1] = local_20[0];
  *(undefined1 *)(*param_1 + local_20[0]) = 0;
  return;
}


PUSH EBP
MOV EBP,EDX
LEA EDX,[EAX + 0x8]
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x599362
SUB ESP,0x2c
MOV dword ptr [EAX],EDX
TEST EBP,EBP
JZ 0x00050d1f
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
MOV ESI,EAX
PUSH EBP
CALL 0x00039330
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
CMP EAX,0xf
MOV EDI,EAX
MOV dword ptr [ESP + 0x1c],EAX
JA 0x00050cf5
CMP EAX,0x1
JNZ 0x00050cef
MOVZX EAX,byte ptr [EBP]
MOV byte ptr [ESI + 0x8],AL
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESI]
MOV dword ptr [ESI + 0x4],EAX
MOV byte ptr [EDX + EAX*0x1],0x0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EAX,EAX
JZ 0x00050cda
JMP 0x00050d11
PUSH EDX
PUSH 0x0
LEA EAX,[ESP + 0x24]
PUSH EAX
PUSH ESI
CALL 0x003b5790
MOV EDX,EAX
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
PUSH EAX
PUSH EDI
PUSH EBP
PUSH EDX
CALL 0x000392d0
ADD ESP,0x10
JMP 0x00050cda
SUB ESP,0xc
LEA EAX,[EBX + 0xffe5e0a0]
PUSH EAX
CALL 0x003f3980
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00050c90(int *param_1,char *param_2)\n\n{\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  __dest = param_1 + 2;\n  uStack_14 = 0x50c9e;\n  *param_1 = (int)__dest;\n  if (param_2 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(param_2);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\nLAB_00050cda:\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00050c90(int *param_1,char *param_2)\n\n{\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  __dest = param_1 + 2;\n  uStack_14 = 0x50c9e;\n  *param_1 = (int)__dest;\n  if (param_2 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(param_2);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\nLAB_00050cda:\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00050c90(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  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  __dest = param_1 + 2;\n  uStack_14 = 0x50c9e;\n  *param_1 = (int)__dest;\n  if (param_2 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(param_2);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\nLAB_00050cda:\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "__dest = param_1 + 2;" (assignment_expression "__dest = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "uStack_14 = 0x50c9e;" (assignment_expression "uStack_14 = 0x50c9e" identifier = number_literal) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (param_2 == (char *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_003f3980("basic_string::_M_construct null not valid");\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                    /* WARNING: Subroutine does not return */\n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }" { comment (expression_statement "FUN_003f3980("basic_string::_M_construct null not valid");" (call_expression "FUN_003f3980("basic_string::_M_construct null not valid")" identifier (argument_list "("basic_string::_M_construct null not valid")" ( (string_literal ""basic_string::_M_construct null not valid"" " string_content ") ))) ;) })) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" if (parenthesized_expression "(__n < 0x10)" ( (binary_expression "__n < 0x10" identifier < number_literal) )) (compound_statement "{\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }" { (if_statement "if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }" { (expression_statement "*(char *)(param_1 + 2) = *param_2;" (assignment_expression "*(char *)(param_1 + 2) = *param_2" (pointer_expression "*(char *)(param_1 + 2)" * (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (goto_statement "goto LAB_00050cda;" goto statement_identifier ;) })) (if_statement "if (__n == 0) goto LAB_00050cda;" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (goto_statement "goto LAB_00050cda;" goto statement_identifier ;)) }) (else_clause "else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" else (compound_statement "{\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" { (expression_statement "__dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);" (assignment_expression "__dest = (int *)FUN_003b5790(param_1,local_20,0,__dest)" identifier = (cast_expression "(int *)FUN_003b5790(param_1,local_20,0,__dest)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003b5790(param_1,local_20,0,__dest)" identifier (argument_list "(param_1,local_20,0,__dest)" ( identifier , identifier , number_literal , identifier ))))) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) }))) (expression_statement "memcpy(__dest,param_2,__n);" (call_expression "memcpy(__dest,param_2,__n)" identifier (argument_list "(__dest,param_2,__n)" ( identifier , identifier , identifier ))) ;) (labeled_statement "LAB_00050cda:\n  param_1[1] = local_20[0];" statement_identifier : (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;)) (expression_statement "*(undefined1 *)(*param_1 + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + local_20[0]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + local_20[0])" * (cast_expression "(undefined1 *)(*param_1 + local_20[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + local_20[0])" ( (binary_expression "*param_1 + local_20[0]" (pointer_expression "*param_1" * identifier) + (subscript_expression "local_20[0]" identifier [ number_literal ])) )))) = 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  size_type __dnew;\n  \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  size_type __dnew;" 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  size_type" 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)) ))) { identifier) identifier ;) (ERROR "}" }))
(translation_unit "void __regparm3 FUN_00050c90(int *param_1,char *param_2)\n\n{\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  __dest = param_1 + 2;\n  uStack_14 = 0x50c9e;\n  *param_1 = (int)__dest;\n  if (param_2 == (char *)0x0) {\n                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(param_2);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\nLAB_00050cda:\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00050c90(int *param_1,char *param_2)\n\n{\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  __dest = param_1 + 2;\n  uStack_14 = 0x50c9e;\n  *param_1 = (int)__dest;\n  if (param_2 == (char *)0x0) {\n                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(param_2);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\nLAB_00050cda:\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00050c90(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  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  __dest = param_1 + 2;\n  uStack_14 = 0x50c9e;\n  *param_1 = (int)__dest;\n  if (param_2 == (char *)0x0) {\n                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(param_2);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\nLAB_00050cda:\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "__dest = param_1 + 2;" (assignment_expression "__dest = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "uStack_14 = 0x50c9e;" (assignment_expression "uStack_14 = 0x50c9e" identifier = number_literal) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (param_2 == (char *)0x0) {\n                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\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                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }" { (expression_statement "FUN_003f3980("basic_string::_M_construct null not valid");" (call_expression "FUN_003f3980("basic_string::_M_construct null not valid")" identifier (argument_list "("basic_string::_M_construct null not valid")" ( (string_literal ""basic_string::_M_construct null not valid"" " string_content ") ))) ;) })) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" if (parenthesized_expression "(__n < 0x10)" ( (binary_expression "__n < 0x10" identifier < number_literal) )) (compound_statement "{\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }" { (if_statement "if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }" { (expression_statement "*(char *)(param_1 + 2) = *param_2;" (assignment_expression "*(char *)(param_1 + 2) = *param_2" (pointer_expression "*(char *)(param_1 + 2)" * (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (goto_statement "goto LAB_00050cda;" goto statement_identifier ;) })) (if_statement "if (__n == 0) goto LAB_00050cda;" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (goto_statement "goto LAB_00050cda;" goto statement_identifier ;)) }) (else_clause "else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" else (compound_statement "{\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" { (expression_statement "__dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);" (assignment_expression "__dest = (int *)FUN_003b5790(param_1,local_20,0,__dest)" identifier = (cast_expression "(int *)FUN_003b5790(param_1,local_20,0,__dest)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003b5790(param_1,local_20,0,__dest)" identifier (argument_list "(param_1,local_20,0,__dest)" ( identifier , identifier , number_literal , identifier ))))) ;) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) }))) (expression_statement "memcpy(__dest,param_2,__n);" (call_expression "memcpy(__dest,param_2,__n)" identifier (argument_list "(__dest,param_2,__n)" ( identifier , identifier , identifier ))) ;) (labeled_statement "LAB_00050cda:\n  param_1[1] = local_20[0];" statement_identifier : (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;)) (expression_statement "*(undefined1 *)(*param_1 + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + local_20[0]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + local_20[0])" * (cast_expression "(undefined1 *)(*param_1 + local_20[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + local_20[0])" ( (binary_expression "*param_1 + local_20[0]" (pointer_expression "*param_1" * identifier) + (subscript_expression "local_20[0]" identifier [ number_literal ])) )))) = 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ])) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00050c90(int *param_1,char *param_2)\n\n{\n  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  __dest = param_1 + 2;\n  uStack_14 = 0x50c9e;\n  *param_1 = (int)__dest;\n  if (param_2 == (char *)0x0) {\n                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(param_2);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\nLAB_00050cda:\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00050c90(int *param_1,char *param_2)" (identifier "FUN_00050c90") (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  size_t __n;\n  int *__dest;\n  size_t local_20 [3];\n  undefined4 uStack_14;\n  \n  __dest = param_1 + 2;\n  uStack_14 = 0x50c9e;\n  *param_1 = (int)__dest;\n  if (param_2 == (char *)0x0) {\n                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }\n  __n = strlen(param_2);\n  local_20[0] = __n;\n  if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }\n  memcpy(__dest,param_2,__n);\nLAB_00050cda:\n  param_1[1] = local_20[0];\n  *(undefined1 *)(*param_1 + local_20[0]) = 0;\n  return;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int *__dest;" (primitive_type "int") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "size_t local_20 [3];" (primitive_type "size_t") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "__dest = param_1 + 2;" (assignment_expression "__dest = param_1 + 2" (identifier "__dest") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uStack_14 = 0x50c9e;" (assignment_expression "uStack_14 = 0x50c9e" (identifier "uStack_14") (= "=") (number_literal "0x50c9e")) (; ";")) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) (; ";")) (if_statement "if (param_2 == (char *)0x0) {\n                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\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                    \n    FUN_003f3980("basic_string::_M_construct null not valid");\n  }" ({ "{") (expression_statement "FUN_003f3980("basic_string::_M_construct null not valid");" (call_expression "FUN_003f3980("basic_string::_M_construct null not valid")" (identifier "FUN_003f3980") (argument_list "("basic_string::_M_construct null not valid")" (( "(") (string_literal ""basic_string::_M_construct null not valid"" (" """) (string_content "basic_string::_M_construct null not valid") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" (identifier "__n") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "local_20[0] = __n;" (assignment_expression "local_20[0] = __n" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "__n")) (; ";")) (if_statement "if (__n < 0x10) {\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }\n  else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" (if "if") (parenthesized_expression "(__n < 0x10)" (( "(") (binary_expression "__n < 0x10" (identifier "__n") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n    if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }\n    if (__n == 0) goto LAB_00050cda;\n  }" ({ "{") (if_statement "if (__n == 1) {\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *(char *)(param_1 + 2) = *param_2;\n      goto LAB_00050cda;\n    }" ({ "{") (expression_statement "*(char *)(param_1 + 2) = *param_2;" (assignment_expression "*(char *)(param_1 + 2) = *param_2" (pointer_expression "*(char *)(param_1 + 2)" (* "*") (cast_expression "(char *)(param_1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (goto_statement "goto LAB_00050cda;" (goto "goto") (statement_identifier "LAB_00050cda") (; ";")) (} "}"))) (if_statement "if (__n == 0) goto LAB_00050cda;" (if "if") (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00050cda;" (goto "goto") (statement_identifier "LAB_00050cda") (; ";"))) (} "}")) (else_clause "else {\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" (else "else") (compound_statement "{\n    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);\n    *param_1 = (int)__dest;\n    param_1[2] = local_20[0];\n  }" ({ "{") (expression_statement "__dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);" (assignment_expression "__dest = (int *)FUN_003b5790(param_1,local_20,0,__dest)" (identifier "__dest") (= "=") (cast_expression "(int *)FUN_003b5790(param_1,local_20,0,__dest)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003b5790(param_1,local_20,0,__dest)" (identifier "FUN_003b5790") (argument_list "(param_1,local_20,0,__dest)" (( "(") (identifier "param_1") (, ",") (identifier "local_20") (, ",") (number_literal "0") (, ",") (identifier "__dest") () ")"))))) (; ";")) (expression_statement "*param_1 = (int)__dest;" (assignment_expression "*param_1 = (int)__dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest"))) (; ";")) (expression_statement "param_1[2] = local_20[0];" (assignment_expression "param_1[2] = local_20[0]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")))) (expression_statement "memcpy(__dest,param_2,__n);" (call_expression "memcpy(__dest,param_2,__n)" (identifier "memcpy") (argument_list "(__dest,param_2,__n)" (( "(") (identifier "__dest") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (labeled_statement "LAB_00050cda:\n  param_1[1] = local_20[0];" (statement_identifier "LAB_00050cda") (: ":") (expression_statement "param_1[1] = local_20[0];" (assignment_expression "param_1[1] = local_20[0]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";"))) (expression_statement "*(undefined1 *)(*param_1 + local_20[0]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + local_20[0]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + local_20[0])" (* "*") (cast_expression "(undefined1 *)(*param_1 + local_20[0])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + local_20[0])" (( "(") (binary_expression "*param_1 + local_20[0]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) () ")")))) (= "=") (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)

{
  size_type __dnew;
  
}


(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: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (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 (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))))) right: (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)

{
  size_t __n;
  int *__dest;
  size_t local_20 [3];
  undefined4 uStack_14;
  
  __dest = param_1 + 2;
  uStack_14 = 0x50c9e;
  *param_1 = (int)__dest;
  if (param_2 == (char *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_003f3980("basic_string::_M_construct null not valid");
  }
  __n = strlen(param_2);
  local_20[0] = __n;
  if (__n < 0x10) {
    if (__n == 1) {
      *(char *)(param_1 + 2) = *param_2;
      goto LAB_00050cda;
    }
    if (__n == 0) goto LAB_00050cda;
  }
  else {
    __dest = (int *)FUN_003b5790(param_1,local_20,0,__dest);
    *param_1 = (int)__dest;
    param_1[2] = local_20[0];
  }
  memcpy(__dest,param_2,__n);
LAB_00050cda:
  param_1[1] = local_20[0];
  *(undefined1 *)(*param_1 + local_20[0]) = 0;
  return;
}

