
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void reserve(vector<unsigned_char,_std::allocator<unsigned_char>_> *
   this, size_type __n) */

void __thiscall
std::vector<unsigned_char,_std::allocator<unsigned_char>_>::reserve
          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)

{
  pointer puVar1;
  pointer __dest;
  size_t __n_00;
  
  puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
           _M_start;
  if (__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).
                         _M_impl._M_end_of_storage - (int)puVar1)) {
    return;
  }
  __n_00 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
                _M_finish - (int)puVar1;
  __dest = (pointer)operator_new(__n);
  if (__n_00 != 0) {
    memcpy(__dest,puVar1,__n_00);
  }
  puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
           _M_start;
  if (puVar1 != (pointer)0x0) {
    operator_delete(puVar1);
  }
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =
       __dest;
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =
       __dest + __n_00;
  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.
  _M_end_of_storage = __dest + __n;
  return;
}



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

void FUN_00149240(int *param_1,uint param_2)

{
  void *__src;
  void *__dest;
  size_t __n;
  
  __src = (void *)*param_1;
  if (param_2 <= (uint)(param_1[2] - (int)__src)) {
    return;
  }
  __n = param_1[1] - (int)__src;
  __dest = (void *)FUN_001e5200(param_2);
  if (__n != 0) {
    memcpy(__dest,__src,__n);
  }
  if (*param_1 != 0) {
    FUN_001e6db0(*param_1);
  }
  *param_1 = (int)__dest;
  param_1[1] = __n + (int)__dest;
  param_1[2] = (int)__dest + param_2;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x245db7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESI]
MOV EAX,dword ptr [ESI + 0x8]
SUB EAX,EDX
CMP dword ptr [ESP + 0x34],EAX
JA 0x00149270
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
MOV EBP,dword ptr [ESI + 0x4]
PUSH dword ptr [ESP + 0x40]
SUB EBP,EDX
CALL 0x001e5200
ADD ESP,0x10
TEST EBP,EBP
MOV EDX,dword ptr [ESP + 0xc]
MOV EDI,EAX
JNZ 0x001492c0
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x001492a4
SUB ESP,0xc
PUSH EAX
CALL 0x001e6db0
ADD ESP,0x10
MOV dword ptr [ESI],EDI
ADD EBP,EDI
ADD EDI,dword ptr [ESP + 0x34]
MOV dword ptr [ESI + 0x4],EBP
MOV dword ptr [ESI + 0x8],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EBP
PUSH EDX
PUSH EAX
CALL 0x000295c0
ADD ESP,0x10
JMP 0x00149292
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00149240(int *param_1,uint param_2)\n\n{\n  void *__src;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }\n  __n = param_1[1] - (int)__src;\n  __dest = (void *)FUN_001e5200(param_2);\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }\n  *param_1 = (int)__dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (int)__dest + param_2;\n  return;\n}\n\n" comment (function_definition "void FUN_00149240(int *param_1,uint param_2)\n\n{\n  void *__src;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }\n  __n = param_1[1] - (int)__src;\n  __dest = (void *)FUN_001e5200(param_2);\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }\n  *param_1 = (int)__dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (int)__dest + param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00149240(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  void *__src;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }\n  __n = param_1[1] - (int)__src;\n  __dest = (void *)FUN_001e5200(param_2);\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }\n  *param_1 = (int)__dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (int)__dest + param_2;\n  return;\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)__src))" ( (binary_expression "param_2 <= (uint)(param_1[2] - (int)__src)" identifier <= (call_expression "(uint)(param_1[2] - (int)__src)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[2] - (int)__src)" ( (binary_expression "param_1[2] - (int)__src" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__n = param_1[1] - (int)__src;" (assignment_expression "__n = param_1[1] - (int)__src" identifier = (binary_expression "param_1[1] - (int)__src" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__dest = (void *)FUN_001e5200(param_2);" (assignment_expression "__dest = (void *)FUN_001e5200(param_2)" identifier = (cast_expression "(void *)FUN_001e5200(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (if_statement "if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy(__dest,__src,__n);\n  }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    FUN_001e6db0(*param_1);\n  }" { (expression_statement "FUN_001e6db0(*param_1);" (call_expression "FUN_001e6db0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * 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[1] = __n + (int)__dest;" (assignment_expression "param_1[1] = __n + (int)__dest" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "__n + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_1[2] = (int)__dest + param_2;" (assignment_expression "param_1[2] = (int)__dest + param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (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 reserve(vector<unsigned_char,_std::allocator<unsigned_char>_> *\n   this, size_type __n) */\n\nvoid __thiscall\nstd::vector<unsigned_char,_std::allocator<unsigned_char>_>::reserve\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  pointer puVar1;\n  pointer __dest;\n  size_t __n_00;\n  \n  puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start;\n  if (__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar1)) {\n    return;\n  }\n  __n_00 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                _M_finish - (int)puVar1;\n  __dest = (pointer)operator_new(__n);\n  if (__n_00 != 0) {\n    memcpy(__dest,puVar1,__n_00);\n  }\n  puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start;\n  if (puVar1 != (pointer)0x0) {\n    operator_delete(puVar1);\n  }\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       __dest;\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n       __dest + __n_00;\n  (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = __dest + __n;\n  return;\n}\n\n" comment comment (declaration "void __thiscall\nstd::vector<unsigned_char,_std::allocator<unsigned_char>_>::reserve\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  pointer puVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::vector<" identifier : : identifier <) identifier , (ERROR "_std::allocator<unsigned_char>_>::reserve\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)\n\n{\n  pointer" identifier : : identifier < identifier > identifier > : : (function_declarator "reserve\n          (vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)" identifier (parameter_list "(vector<unsigned_char,_std::allocator<unsigned_char>_> *this,size_type __n)" ( (parameter_declaration "vector<unsigned_char" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "_std::allocator<unsigned_char>_> *this" type_identifier (ERROR "::allocator<unsigned_char>_>" : : identifier < identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "size_type __n" type_identifier identifier) ))) { identifier) identifier ;) (declaration "pointer __dest;" type_identifier identifier ;) (declaration "size_t __n_00;" primitive_type identifier ;) (expression_statement "puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start;" (assignment_expression "puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start" identifier = (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar1)) {\n    return;\n  }" if (parenthesized_expression "(__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar1))" ( (binary_expression "__n <= (uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar1)" identifier <= (call_expression "(uint)((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar1)" ( (binary_expression "(int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage - (int)puVar1" (cast_expression "(int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl._M_end_of_storage" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>).\n                         _M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) - (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__n_00 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                _M_finish - (int)puVar1;" (assignment_expression "__n_00 = (int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                _M_finish - (int)puVar1" identifier = (binary_expression "(int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                _M_finish - (int)puVar1" (cast_expression "(int)(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                _M_finish" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n                _M_finish" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) - (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__dest = (pointer)operator_new(__n);" (assignment_expression "__dest = (pointer)operator_new(__n)" identifier = (cast_expression "(pointer)operator_new(__n)" ( (type_descriptor "pointer" type_identifier) ) (call_expression "operator_new(__n)" identifier (argument_list "(__n)" ( identifier ))))) ;) (if_statement "if (__n_00 != 0) {\n    memcpy(__dest,puVar1,__n_00);\n  }" if (parenthesized_expression "(__n_00 != 0)" ( (binary_expression "__n_00 != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy(__dest,puVar1,__n_00);\n  }" { (expression_statement "memcpy(__dest,puVar1,__n_00);" (call_expression "memcpy(__dest,puVar1,__n_00)" identifier (argument_list "(__dest,puVar1,__n_00)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start;" (assignment_expression "puVar1 = (this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start" identifier = (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n           _M_start" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (puVar1 != (pointer)0x0) {\n    operator_delete(puVar1);\n  }" if (parenthesized_expression "(puVar1 != (pointer)0x0)" ( (binary_expression "puVar1 != (pointer)0x0" identifier != (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) )) (compound_statement "{\n    operator_delete(puVar1);\n  }" { (expression_statement "operator_delete(puVar1);" (call_expression "operator_delete(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) })) (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       __dest;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start =\n       __dest" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_start" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n       __dest + __n_00;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish =\n       __dest + __n_00" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl._M_finish" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "__dest + __n_00" identifier + identifier)) ;) (expression_statement "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = __dest + __n;" (assignment_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage = __dest + __n" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl.\n  _M_end_of_storage" (field_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)._M_impl" (parenthesized_expression "(this->super__Vector_base<unsigned_char,_std::allocator<unsigned_char>_>)" ( (ERROR "this->super__Vector_base<unsigned_char,_std::" (comma_expression "this->super__Vector_base<unsigned_char,_std" (binary_expression "this->super__Vector_base<unsigned_char" (field_expression "this->super__Vector_base" identifier -> field_identifier) < identifier) , identifier) : :) (binary_expression "allocator<unsigned_char>_>" (binary_expression "allocator<unsigned_char>_" (binary_expression "allocator<unsigned_char" identifier < identifier) > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "__dest + __n" identifier + identifier)) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00149240(int *param_1,uint param_2)\n\n{\n  void *__src;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }\n  __n = param_1[1] - (int)__src;\n  __dest = (void *)FUN_001e5200(param_2);\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }\n  *param_1 = (int)__dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (int)__dest + param_2;\n  return;\n}\n\n" (function_definition "void FUN_00149240(int *param_1,uint param_2)\n\n{\n  void *__src;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }\n  __n = param_1[1] - (int)__src;\n  __dest = (void *)FUN_001e5200(param_2);\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }\n  *param_1 = (int)__dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (int)__dest + param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00149240(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  void *__src;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }\n  __n = param_1[1] - (int)__src;\n  __dest = (void *)FUN_001e5200(param_2);\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }\n  *param_1 = (int)__dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (int)__dest + param_2;\n  return;\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }" if (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)__src))" ( (binary_expression "param_2 <= (uint)(param_1[2] - (int)__src)" identifier <= (call_expression "(uint)(param_1[2] - (int)__src)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[2] - (int)__src)" ( (binary_expression "param_1[2] - (int)__src" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__n = param_1[1] - (int)__src;" (assignment_expression "__n = param_1[1] - (int)__src" identifier = (binary_expression "param_1[1] - (int)__src" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__dest = (void *)FUN_001e5200(param_2);" (assignment_expression "__dest = (void *)FUN_001e5200(param_2)" identifier = (cast_expression "(void *)FUN_001e5200(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (if_statement "if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n    memcpy(__dest,__src,__n);\n  }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    FUN_001e6db0(*param_1);\n  }" { (expression_statement "FUN_001e6db0(*param_1);" (call_expression "FUN_001e6db0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * 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[1] = __n + (int)__dest;" (assignment_expression "param_1[1] = __n + (int)__dest" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "__n + (int)__dest" identifier + (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_1[2] = (int)__dest + param_2;" (assignment_expression "param_1[2] = (int)__dest + param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) 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 IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00149240(int *param_1,uint param_2)\n\n{\n  void *__src;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }\n  __n = param_1[1] - (int)__src;\n  __dest = (void *)FUN_001e5200(param_2);\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }\n  *param_1 = (int)__dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (int)__dest + param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00149240(int *param_1,uint param_2)" (identifier "FUN_00149240") (parameter_list "(int *param_1,uint param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  void *__src;\n  void *__dest;\n  size_t __n;\n  \n  __src = (void *)*param_1;\n  if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }\n  __n = param_1[1] - (int)__src;\n  __dest = (void *)FUN_001e5200(param_2);\n  if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }\n  if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }\n  *param_1 = (int)__dest;\n  param_1[1] = __n + (int)__dest;\n  param_1[2] = (int)__dest + param_2;\n  return;\n}" ({ "{") (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "__src = (void *)*param_1;" (assignment_expression "__src = (void *)*param_1" (identifier "__src") (= "=") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (param_2 <= (uint)(param_1[2] - (int)__src)) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 <= (uint)(param_1[2] - (int)__src))" (( "(") (binary_expression "param_2 <= (uint)(param_1[2] - (int)__src)" (identifier "param_2") (<= "<=") (call_expression "(uint)(param_1[2] - (int)__src)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[2] - (int)__src)" (( "(") (binary_expression "param_1[2] - (int)__src" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src"))) () ")")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__n = param_1[1] - (int)__src;" (assignment_expression "__n = param_1[1] - (int)__src" (identifier "__n") (= "=") (binary_expression "param_1[1] - (int)__src" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")))) (; ";")) (expression_statement "__dest = (void *)FUN_001e5200(param_2);" (assignment_expression "__dest = (void *)FUN_001e5200(param_2)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_001e5200(param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5200(param_2)" (identifier "FUN_001e5200") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (if_statement "if (__n != 0) {\n    memcpy(__dest,__src,__n);\n  }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    memcpy(__dest,__src,__n);\n  }" ({ "{") (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" (identifier "memcpy") (argument_list "(__dest,__src,__n)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (if_statement "if (*param_1 != 0) {\n    FUN_001e6db0(*param_1);\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_001e6db0(*param_1);\n  }" ({ "{") (expression_statement "FUN_001e6db0(*param_1);" (call_expression "FUN_001e6db0(*param_1)" (identifier "FUN_001e6db0") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}"))) (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[1] = __n + (int)__dest;" (assignment_expression "param_1[1] = __n + (int)__dest" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "__n + (int)__dest" (identifier "__n") (+ "+") (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")))) (; ";")) (expression_statement "param_1[2] = (int)__dest + param_2;" (assignment_expression "param_1[2] = (int)__dest + param_2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "param_2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void reserve(vector<unsigned_char,_std::allocator<unsigned_char>_> *
   this, size_type __n) */

void __thiscall
std::vector<var_2,_std::var_1<var_2>var_3>::reserve
          (vector<var_2,_std::var_1<var_2>var_3> *this,size_type var_5)

{
  type_1 var_9;
  type_1 var_11;
  size_t var_7;
  
  var_9 = (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl.
           _M_start;
  if (var_5 <= (uint)((int)(this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4).
                         _M_impl._M_end_of_storage - (int)var_9)) {
    return;
  }
  var_7 = (int)(this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl.
                _M_finish - (int)var_9;
  var_11 = (type_1)var_6(var_5);
  if (var_7 != 0) {
    var_8(var_11,var_9,var_7);
  }
  var_9 = (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl.
           _M_start;
  if (var_9 != (type_1)0x0) {
    var_10(var_9);
  }
  (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl._M_start =
       var_11;
  (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl._M_finish =
       var_11 + var_7;
  (this->super__Vector_base<var_2,_std::var_1<var_2>var_3>var_4)._M_impl.
  _M_end_of_storage = var_11 + var_5;
  return;
}


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

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

void MASKED(int *param_1,uint param_2)

{
  void *__src;
  void *__dest;
  size_t __n;
  
  __src = (void *)*param_1;
  if (param_2 <= (uint)(param_1[2] - (int)__src)) {
    return;
  }
  __n = param_1[1] - (int)__src;
  __dest = (void *)FUN_001e5200(param_2);
  if (__n != 0) {
    memcpy(__dest,__src,__n);
  }
  if (*param_1 != 0) {
    FUN_001e6db0(*param_1);
  }
  *param_1 = (int)__dest;
  param_1[1] = __n + (int)__dest;
  param_1[2] = (int)__dest + param_2;
  return;
}

