
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DWARF original name: operator+<char, std::char_traits<char>, std::allocator<char> > */

basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *
std::operator+<char,_std::char_traits<char>,_std::allocator<char>_>
          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__return_storage_ptr__
          ,char *__lhs,basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__rhs)

{
  size_t sVar1;
  int unaff_EDI;
  __string_type *__str;
  
  __x86_get_pc_thunk_di();
  sVar1 = strlen(__lhs);
  (__str->_M_dataplus)._M_p = (pointer)&__str->field_2;
  __str->_M_string_length = 0;
  (__str->field_2)._M_local_buf[0] = '\0';
                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */
  string::reserve((string *)__str,sVar1 + __rhs->_M_string_length);
  if (sVar1 <= 0x7fffffff - __str->_M_string_length) {
    string::_M_append((string *)__str,__lhs,sVar1);
    string::_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);
    return __str;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error((char *)(unaff_EDI + 0x1e1389));
}



int * FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)

{
  size_t sVar1;
  int unaff_EDI;
  
  FUN_000559ee();
  sVar1 = strlen(param_2);
  *param_1 = (int)(param_1 + 2);
  param_1[1] = 0;
  *(undefined1 *)(param_1 + 2) = 0;
                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */
  FUN_001ef040(param_1,sVar1 + param_3[1]);
  if (sVar1 <= 0x7fffffffU - param_1[1]) {
    FUN_001f05c0(param_1,param_2,sVar1);
    FUN_001f05c0(param_1,*param_3,param_3[1]);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c7a0(unaff_EDI + 0x1e1389);
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x2e97a7
PUSH ESI
PUSH EBX
SUB ESP,0x28
PUSH dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
MOV EBX,EDI
CALL 0x000295f0
MOV EBX,dword ptr [EBP + 0x10]
POP EDX
LEA EDX,[ESI + 0x8]
POP ECX
MOV dword ptr [EBP + -0x1c],EAX
MOV dword ptr [ESI],EDX
MOV dword ptr [ESI + 0x4],0x0
MOV byte ptr [ESI + 0x8],0x0
ADD EAX,dword ptr [EBX + 0x4]
MOV EBX,EDI
PUSH EAX
PUSH ESI
MOV dword ptr [EBP + -0x20],EDX
CALL 0x001ef040
MOV EAX,0x7fffffff
ADD ESP,0x10
SUB EAX,dword ptr [ESI + 0x4]
CMP dword ptr [EBP + -0x1c],EAX
JA 0x000a58d7
SUB ESP,0x4
PUSH dword ptr [EBP + -0x1c]
PUSH dword ptr [EBP + 0xc]
PUSH ESI
CALL 0x001f05c0
MOV EAX,dword ptr [EBP + 0x10]
ADD ESP,0xc
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
PUSH ESI
CALL 0x001f05c0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
SUB ESP,0xc
LEA EAX,[EDI + 0xffef7be2]
PUSH EAX
CALL 0x0022c7a0
(translation_unit "int * FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)\n\n{\n  size_t sVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  sVar1 = strlen(param_2);\n  *param_1 = (int)(param_1 + 2);\n  param_1[1] = 0;\n  *(undefined1 *)(param_1 + 2) = 0;\n                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */\n  FUN_001ef040(param_1,sVar1 + param_3[1]);\n  if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7a0(unaff_EDI + 0x1e1389);\n}\n\n" (function_definition "int * FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)\n\n{\n  size_t sVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  sVar1 = strlen(param_2);\n  *param_1 = (int)(param_1 + 2);\n  param_1[1] = 0;\n  *(undefined1 *)(param_1 + 2) = 0;\n                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */\n  FUN_001ef040(param_1,sVar1 + param_3[1]);\n  if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7a0(unaff_EDI + 0x1e1389);\n}" primitive_type (pointer_declarator "* FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)" * (function_declarator "FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,char *param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  sVar1 = strlen(param_2);\n  *param_1 = (int)(param_1 + 2);\n  param_1[1] = 0;\n  *(undefined1 *)(param_1 + 2) = 0;\n                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */\n  FUN_001ef040(param_1,sVar1 + param_3[1]);\n  if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7a0(unaff_EDI + 0x1e1389);\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( 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 "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 0" (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) comment (expression_statement "FUN_001ef040(param_1,sVar1 + param_3[1]);" (call_expression "FUN_001ef040(param_1,sVar1 + param_3[1])" identifier (argument_list "(param_1,sVar1 + param_3[1])" ( identifier , (binary_expression "sVar1 + param_3[1]" identifier + (subscript_expression "param_3[1]" identifier [ number_literal ])) ))) ;) (if_statement "if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" if (parenthesized_expression "(sVar1 <= 0x7fffffffU - param_1[1])" ( (binary_expression "sVar1 <= 0x7fffffffU - param_1[1]" identifier <= (binary_expression "0x7fffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" { (expression_statement "FUN_001f05c0(param_1,param_2,sVar1);" (call_expression "FUN_001f05c0(param_1,param_2,sVar1)" identifier (argument_list "(param_1,param_2,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_001f05c0(param_1,*param_3,param_3[1]);" (call_expression "FUN_001f05c0(param_1,*param_3,param_3[1])" identifier (argument_list "(param_1,*param_3,param_3[1])" ( identifier , (pointer_expression "*param_3" * identifier) , (subscript_expression "param_3[1]" identifier [ number_literal ]) ))) ;) (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "FUN_0022c7a0(unaff_EDI + 0x1e1389);" (call_expression "FUN_0022c7a0(unaff_EDI + 0x1e1389)" identifier (argument_list "(unaff_EDI + 0x1e1389)" ( (binary_expression "unaff_EDI + 0x1e1389" identifier + number_literal) ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* DWARF original name: operator+<char, std::char_traits<char>, std::allocator<char> > */\n\nbasic_string<char,_std::char_traits<char>,_std::allocator<char>_> *\nstd::operator+<char,_std::char_traits<char>,_std::allocator<char>_>\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__return_storage_ptr__\n          ,char *__lhs,basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__rhs)\n\n{\n  size_t sVar1;\n  int unaff_EDI;\n  __string_type *__str;\n  \n  __x86_get_pc_thunk_di();\n  sVar1 = strlen(__lhs);\n  (__str->_M_dataplus)._M_p = (pointer)&__str->field_2;\n  __str->_M_string_length = 0;\n  (__str->field_2)._M_local_buf[0] = '\0';\n                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */\n  string::reserve((string *)__str,sVar1 + __rhs->_M_string_length);\n  if (sVar1 <= 0x7fffffff - __str->_M_string_length) {\n    string::_M_append((string *)__str,__lhs,sVar1);\n    string::_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);\n    return __str;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error((char *)(unaff_EDI + 0x1e1389));\n}\n\n" comment comment (ERROR "basic_string<char," (binary_expression "basic_string<char" identifier < identifier) ,) (labeled_statement "_std::char_traits<char>,_std::allocator<char>_> *\nstd::operator+<char,_std::char_traits<char>,_std::allocator<char>_>\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__return_storage_ptr__\n          ,char *__lhs,basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__rhs)\n\n{\n  size_t sVar1;\n  int unaff_EDI;\n  __string_type *__str;\n  \n  __x86_get_pc_thunk_di();\n  sVar1 = strlen(__lhs);\n  (__str->_M_dataplus)._M_p = (pointer)&__str->field_2;\n  __str->_M_string_length = 0;\n  (__str->field_2)._M_local_buf[0] = '\0';\n                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */\n  string::reserve((string *)__str,sVar1 + __rhs->_M_string_length);\n  if (sVar1 <= 0x7fffffff - __str->_M_string_length) {\n    string::_M_append((string *)__str,__lhs,sVar1);\n    string::_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);\n    return __str;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error((char *)(unaff_EDI + 0x1e1389));\n}" statement_identifier (ERROR "::char_traits<char>,_std::allocator<char>_> *\nstd::operator+<char,_std::char_traits<char>,_std::allocator<char>_>\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__return_storage_ptr__\n          ,char *__lhs,basic_string<char,_std::char_traits<char>,_std:" : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : : (binary_expression "allocator<char>_> *\nstd" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (pointer_expression "*\nstd" * identifier)) : : (comma_expression "operator+<char,_std" (binary_expression "operator+<char" (binary_expression "operator+" identifier + identifier) < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > ( (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : : (comma_expression "allocator<char>_> *__return_storage_ptr__\n          ,char *__lhs,basic_string<char,_std" (binary_expression "allocator<char>_> *__return_storage_ptr__" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (pointer_expression "*__return_storage_ptr__" * identifier)) , (comma_expression "char *__lhs,basic_string<char,_std" (binary_expression "char *__lhs" identifier * identifier) , (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier))) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) :) : (ERROR "allocator<char>_> *__rhs)" (binary_expression "allocator<char>_> *__rhs" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (pointer_expression "*__rhs" * identifier)) )) (compound_statement "{\n  size_t sVar1;\n  int unaff_EDI;\n  __string_type *__str;\n  \n  __x86_get_pc_thunk_di();\n  sVar1 = strlen(__lhs);\n  (__str->_M_dataplus)._M_p = (pointer)&__str->field_2;\n  __str->_M_string_length = 0;\n  (__str->field_2)._M_local_buf[0] = '\0';\n                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */\n  string::reserve((string *)__str,sVar1 + __rhs->_M_string_length);\n  if (sVar1 <= 0x7fffffff - __str->_M_string_length) {\n    string::_M_append((string *)__str,__lhs,sVar1);\n    string::_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);\n    return __str;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error((char *)(unaff_EDI + 0x1e1389));\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "__string_type *__str;" type_identifier (pointer_declarator "*__str" * identifier) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar1 = strlen(__lhs);" (assignment_expression "sVar1 = strlen(__lhs)" identifier = (call_expression "strlen(__lhs)" identifier (argument_list "(__lhs)" ( identifier )))) ;) (expression_statement "(__str->_M_dataplus)._M_p = (pointer)&__str->field_2;" (assignment_expression "(__str->_M_dataplus)._M_p = (pointer)&__str->field_2" (field_expression "(__str->_M_dataplus)._M_p" (parenthesized_expression "(__str->_M_dataplus)" ( (field_expression "__str->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(pointer)&__str->field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "__str->field_2" identifier -> field_identifier))) ;) (expression_statement "__str->_M_string_length = 0;" (assignment_expression "__str->_M_string_length = 0" (field_expression "__str->_M_string_length" identifier -> field_identifier) = number_literal) ;) (expression_statement "(__str->field_2)._M_local_buf[0] = '\0';" (assignment_expression "(__str->field_2)._M_local_buf[0] = '\0'" (subscript_expression "(__str->field_2)._M_local_buf[0]" (field_expression "(__str->field_2)._M_local_buf" (parenthesized_expression "(__str->field_2)" ( (field_expression "__str->field_2" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) comment (labeled_statement "string::reserve((string *)__str,sVar1 + __rhs->_M_string_length);" statement_identifier : (ERROR ":" :) (expression_statement "reserve((string *)__str,sVar1 + __rhs->_M_string_length);" (call_expression "reserve((string *)__str,sVar1 + __rhs->_M_string_length)" identifier (argument_list "((string *)__str,sVar1 + __rhs->_M_string_length)" ( (cast_expression "(string *)__str" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "sVar1 + __rhs->_M_string_length" identifier + (field_expression "__rhs->_M_string_length" identifier -> field_identifier)) ))) ;)) (if_statement "if (sVar1 <= 0x7fffffff - __str->_M_string_length) {\n    string::_M_append((string *)__str,__lhs,sVar1);\n    string::_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);\n    return __str;\n  }" if (parenthesized_expression "(sVar1 <= 0x7fffffff - __str->_M_string_length)" ( (binary_expression "sVar1 <= 0x7fffffff - __str->_M_string_length" identifier <= (binary_expression "0x7fffffff - __str->_M_string_length" number_literal - (field_expression "__str->_M_string_length" identifier -> field_identifier))) )) (compound_statement "{\n    string::_M_append((string *)__str,__lhs,sVar1);\n    string::_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);\n    return __str;\n  }" { (labeled_statement "string::_M_append((string *)__str,__lhs,sVar1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)__str,__lhs,sVar1);" (call_expression "_M_append((string *)__str,__lhs,sVar1)" identifier (argument_list "((string *)__str,__lhs,sVar1)" ( (cast_expression "(string *)__str" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;)) (labeled_statement "string::_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);" (call_expression "_M_append((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length)" identifier (argument_list "((string *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length)" ( (cast_expression "(string *)__str" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (field_expression "(__rhs->_M_dataplus)._M_p" (parenthesized_expression "(__rhs->_M_dataplus)" ( (field_expression "__rhs->_M_dataplus" identifier -> field_identifier) )) . field_identifier) , (field_expression "__rhs->_M_string_length" identifier -> field_identifier) ))) ;)) (return_statement "return __str;" return identifier ;) })) comment (expression_statement "__throw_length_error((char *)(unaff_EDI + 0x1e1389));" (call_expression "__throw_length_error((char *)(unaff_EDI + 0x1e1389))" identifier (argument_list "((char *)(unaff_EDI + 0x1e1389))" ( (cast_expression "(char *)(unaff_EDI + 0x1e1389)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1e1389)" ( (binary_expression "unaff_EDI + 0x1e1389" identifier + number_literal) ))) ))) ;) })))
(translation_unit "int * FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)\n\n{\n  size_t sVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  sVar1 = strlen(param_2);\n  *param_1 = (int)(param_1 + 2);\n  param_1[1] = 0;\n  *(undefined1 *)(param_1 + 2) = 0;\n                    \n  FUN_001ef040(param_1,sVar1 + param_3[1]);\n  if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_0022c7a0(unaff_EDI + 0x1e1389);\n}\n\n" (function_definition "int * FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)\n\n{\n  size_t sVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  sVar1 = strlen(param_2);\n  *param_1 = (int)(param_1 + 2);\n  param_1[1] = 0;\n  *(undefined1 *)(param_1 + 2) = 0;\n                    \n  FUN_001ef040(param_1,sVar1 + param_3[1]);\n  if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_0022c7a0(unaff_EDI + 0x1e1389);\n}" primitive_type (pointer_declarator "* FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)" * (function_declarator "FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)" identifier (parameter_list "(int *param_1,char *param_2,undefined4 *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  sVar1 = strlen(param_2);\n  *param_1 = (int)(param_1 + 2);\n  param_1[1] = 0;\n  *(undefined1 *)(param_1 + 2) = 0;\n                    \n  FUN_001ef040(param_1,sVar1 + param_3[1]);\n  if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_0022c7a0(unaff_EDI + 0x1e1389);\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( 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 "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 0" (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_001ef040(param_1,sVar1 + param_3[1]);" (call_expression "FUN_001ef040(param_1,sVar1 + param_3[1])" identifier (argument_list "(param_1,sVar1 + param_3[1])" ( identifier , (binary_expression "sVar1 + param_3[1]" identifier + (subscript_expression "param_3[1]" identifier [ number_literal ])) ))) ;) (if_statement "if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" if (parenthesized_expression "(sVar1 <= 0x7fffffffU - param_1[1])" ( (binary_expression "sVar1 <= 0x7fffffffU - param_1[1]" identifier <= (binary_expression "0x7fffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" { (expression_statement "FUN_001f05c0(param_1,param_2,sVar1);" (call_expression "FUN_001f05c0(param_1,param_2,sVar1)" identifier (argument_list "(param_1,param_2,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_001f05c0(param_1,*param_3,param_3[1]);" (call_expression "FUN_001f05c0(param_1,*param_3,param_3[1])" identifier (argument_list "(param_1,*param_3,param_3[1])" ( identifier , (pointer_expression "*param_3" * identifier) , (subscript_expression "param_3[1]" identifier [ number_literal ]) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_0022c7a0(unaff_EDI + 0x1e1389);" (call_expression "FUN_0022c7a0(unaff_EDI + 0x1e1389)" identifier (argument_list "(unaff_EDI + 0x1e1389)" ( (binary_expression "unaff_EDI + 0x1e1389" identifier + number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression LIT - (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })))
(function_definition "int * FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)\n\n{\n  size_t sVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  sVar1 = strlen(param_2);\n  *param_1 = (int)(param_1 + 2);\n  param_1[1] = 0;\n  *(undefined1 *)(param_1 + 2) = 0;\n                    \n  FUN_001ef040(param_1,sVar1 + param_3[1]);\n  if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_0022c7a0(unaff_EDI + 0x1e1389);\n}" (primitive_type "int") (pointer_declarator "* FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)" (* "*") (function_declarator "FUN_000a5850(int *param_1,char *param_2,undefined4 *param_3)" (identifier "FUN_000a5850") (parameter_list "(int *param_1,char *param_2,undefined4 *param_3)" (( "(") (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"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  size_t sVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  sVar1 = strlen(param_2);\n  *param_1 = (int)(param_1 + 2);\n  param_1[1] = 0;\n  *(undefined1 *)(param_1 + 2) = 0;\n                    \n  FUN_001ef040(param_1,sVar1 + param_3[1]);\n  if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }\n                    \n  FUN_0022c7a0(unaff_EDI + 0x1e1389);\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (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 "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 0" (pointer_expression "*(undefined1 *)(param_1 + 2)" (* "*") (cast_expression "(undefined1 *)(param_1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001ef040(param_1,sVar1 + param_3[1]);" (call_expression "FUN_001ef040(param_1,sVar1 + param_3[1])" (identifier "FUN_001ef040") (argument_list "(param_1,sVar1 + param_3[1])" (( "(") (identifier "param_1") (, ",") (binary_expression "sVar1 + param_3[1]" (identifier "sVar1") (+ "+") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) () ")"))) (; ";")) (if_statement "if (sVar1 <= 0x7fffffffU - param_1[1]) {\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(sVar1 <= 0x7fffffffU - param_1[1])" (( "(") (binary_expression "sVar1 <= 0x7fffffffU - param_1[1]" (identifier "sVar1") (<= "<=") (binary_expression "0x7fffffffU - param_1[1]" (number_literal "0x7fffffffU") (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    FUN_001f05c0(param_1,param_2,sVar1);\n    FUN_001f05c0(param_1,*param_3,param_3[1]);\n    return param_1;\n  }" ({ "{") (expression_statement "FUN_001f05c0(param_1,param_2,sVar1);" (call_expression "FUN_001f05c0(param_1,param_2,sVar1)" (identifier "FUN_001f05c0") (argument_list "(param_1,param_2,sVar1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "sVar1") () ")"))) (; ";")) (expression_statement "FUN_001f05c0(param_1,*param_3,param_3[1]);" (call_expression "FUN_001f05c0(param_1,*param_3,param_3[1])" (identifier "FUN_001f05c0") (argument_list "(param_1,*param_3,param_3[1])" (( "(") (identifier "param_1") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_0022c7a0(unaff_EDI + 0x1e1389);" (call_expression "FUN_0022c7a0(unaff_EDI + 0x1e1389)" (identifier "FUN_0022c7a0") (argument_list "(unaff_EDI + 0x1e1389)" (( "(") (binary_expression "unaff_EDI + 0x1e1389" (identifier "unaff_EDI") (+ "+") (number_literal "0x1e1389")) () ")"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* DWARF original name: operator+<char, std::char_traits<char>, std::allocator<char> > */

basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *
std::operator+<char,_std::char_traits<char>,_std::allocator<char>_>
          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__return_storage_ptr__
          ,char *__lhs,basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *__rhs)

{
  size_t var_4;
  int var_7;
  type_1 *__str;
  
  var_1();
  var_4 = var_2(__lhs);
  (__str->_M_dataplus)._M_p = (pointer)&__str->field_2;
  __str->_M_string_length = 0;
  (__str->field_2)._M_local_buf[0] = '\0';
                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */
  string::var_3((type_2 *)__str,var_4 + __rhs->_M_string_length);
  if (var_4 <= 0x7fffffff - __str->_M_string_length) {
    string::var_5((type_2 *)__str,__lhs,var_4);
    string::var_5((type_2 *)__str,(__rhs->_M_dataplus)._M_p,__rhs->_M_string_length);
    return __str;
  }
                    /* WARNING: Subroutine does not return */
  var_6((char *)(var_7 + 0x1e1389));
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator 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))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))

int * MASKED(int *param_1,char *param_2,undefined4 *param_3)

{
  size_t sVar1;
  int unaff_EDI;
  
  FUN_000559ee();
  sVar1 = strlen(param_2);
  *param_1 = (int)(param_1 + 2);
  param_1[1] = 0;
  *(undefined1 *)(param_1 + 2) = 0;
                    /* try { // try from 000a5893 to 000a58e5 has its CatchHandler @ 000a58e6 */
  FUN_001ef040(param_1,sVar1 + param_3[1]);
  if (sVar1 <= 0x7fffffffU - param_1[1]) {
    FUN_001f05c0(param_1,param_2,sVar1);
    FUN_001f05c0(param_1,*param_3,param_3[1]);
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c7a0(unaff_EDI + 0x1e1389);
}

