
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::reserve(unsigned int) */

void std::string::reserve(uint param_1)

{
}



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

void FUN_003b6310(undefined4 *param_1,uint param_2)

{
  undefined4 *__dest;
  uint uVar1;
  undefined1 *__dest_00;
  uint uVar2;
  size_t sVar3;
  undefined1 *puVar4;
  
  uVar1 = param_1[1];
  if (param_2 < uVar1) {
    param_2 = uVar1;
  }
  puVar4 = (undefined1 *)*param_1;
  __dest = param_1 + 2;
  if (__dest == (undefined4 *)puVar4) {
    uVar2 = 0xf;
  }
  else {
    uVar2 = param_1[2];
  }
  if (uVar2 != param_2) {
    if ((0xf < param_2) || (uVar2 < param_2)) {
      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);
      puVar4 = (undefined1 *)*param_1;
      sVar3 = param_1[1] + 1;
      if (sVar3 == 1) {
        *__dest_00 = *puVar4;
        puVar4 = (undefined1 *)*param_1;
      }
      else if (sVar3 != 0) {
        memcpy(__dest_00,puVar4,sVar3);
        puVar4 = (undefined1 *)*param_1;
      }
      if (__dest != (undefined4 *)puVar4) {
        FUN_003ae080(puVar4);
      }
      *param_1 = __dest_00;
      param_1[2] = param_2;
      return;
    }
    if (__dest != (undefined4 *)puVar4) {
      sVar3 = uVar1 + 1;
      if (sVar3 == 1) {
        *(undefined1 *)(param_1 + 2) = *puVar4;
      }
      else if (sVar3 != 0) {
        memcpy(__dest,puVar4,sVar3);
      }
      FUN_003ae080(puVar4);
      *param_1 = __dest;
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x233ce7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESI + 0x4]
CMP EAX,EDX
JNC 0x003b6337
MOV dword ptr [ESP + 0x24],EDX
MOV EAX,EDX
MOV EBP,dword ptr [ESI]
LEA EDI,[ESI + 0x8]
CMP EDI,EBP
JZ 0x003b63f8
MOV ECX,dword ptr [ESI + 0x8]
CMP ECX,EAX
JZ 0x003b6384
CMP EAX,0xf
JA 0x003b6390
CMP ECX,EAX
JC 0x003b6390
CMP EDI,EBP
JZ 0x003b6384
ADD EDX,0x1
CMP EDX,0x1
JZ 0x003b6418
TEST EDX,EDX
JZ 0x003b6376
SUB ESP,0x4
PUSH EDX
PUSH EBP
PUSH EDI
CALL 0x000392d0
ADD ESP,0x10
SUB ESP,0xc
PUSH EBP
CALL 0x003ae080
MOV dword ptr [ESI],EDI
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH ECX
LEA EAX,[ESP + 0x2c]
PUSH EAX
PUSH ESI
CALL 0x003b5790
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
MOV EBP,EAX
MOV EAX,dword ptr [ESI + 0x4]
ADD EAX,0x1
CMP EAX,0x1
JZ 0x003b6408
TEST EAX,EAX
JNZ 0x003b63e0
CMP EDI,EDX
JZ 0x003b63c5
SUB ESP,0xc
PUSH EDX
CALL 0x003ae080
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [ESI],EBP
MOV dword ptr [ESI + 0x8],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EAX
PUSH EDX
PUSH EBP
CALL 0x000392d0
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
JMP 0x003b63b5
MOV ECX,0xf
JMP 0x003b6347
MOVZX EAX,byte ptr [EDX]
MOV byte ptr [EBP],AL
MOV EDX,dword ptr [ESI]
JMP 0x003b63b5
MOVZX EAX,byte ptr [EBP]
MOV byte ptr [ESI + 0x8],AL
JMP 0x003b6376
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_003b6310(undefined4 *param_1,uint param_2)\n\n{\n  undefined4 *__dest;\n  uint uVar1;\n  undefined1 *__dest_00;\n  uint uVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  \n  uVar1 = param_1[1];\n  if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }\n  puVar4 = (undefined1 *)*param_1;\n  __dest = param_1 + 2;\n  if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }\n  if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_003b6310(undefined4 *param_1,uint param_2)\n\n{\n  undefined4 *__dest;\n  uint uVar1;\n  undefined1 *__dest_00;\n  uint uVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  \n  uVar1 = param_1[1];\n  if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }\n  puVar4 = (undefined1 *)*param_1;\n  __dest = param_1 + 2;\n  if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }\n  if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003b6310(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *__dest;\n  uint uVar1;\n  undefined1 *__dest_00;\n  uint uVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  \n  uVar1 = param_1[1];\n  if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }\n  puVar4 = (undefined1 *)*param_1;\n  __dest = param_1 + 2;\n  if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }\n  if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *__dest_00;" type_identifier (pointer_declarator "*__dest_00" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }" if (parenthesized_expression "(param_2 < uVar1)" ( (binary_expression "param_2 < uVar1" identifier < identifier) )) (compound_statement "{\n    param_2 = uVar1;\n  }" { (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" identifier = identifier) ;) })) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "__dest = param_1 + 2;" (assignment_expression "__dest = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (if_statement "if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }" if (parenthesized_expression "(__dest == (undefined4 *)puVar4)" ( (binary_expression "__dest == (undefined4 *)puVar4" identifier == (cast_expression "(undefined4 *)puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    uVar2 = 0xf;\n  }" { (expression_statement "uVar2 = 0xf;" (assignment_expression "uVar2 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = param_1[2];\n  }" else (compound_statement "{\n    uVar2 = param_1[2];\n  }" { (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }" if (parenthesized_expression "(uVar2 != param_2)" ( (binary_expression "uVar2 != param_2" identifier != identifier) )) (compound_statement "{\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }" { (if_statement "if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }" if (parenthesized_expression "((0xf < param_2) || (uVar2 < param_2))" ( (binary_expression "(0xf < param_2) || (uVar2 < param_2)" (parenthesized_expression "(0xf < param_2)" ( (binary_expression "0xf < param_2" number_literal < identifier) )) || (parenthesized_expression "(uVar2 < param_2)" ( (binary_expression "uVar2 < param_2" identifier < identifier) ))) )) (compound_statement "{\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }" { (expression_statement "__dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);" (assignment_expression "__dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2)" identifier = (cast_expression "(undefined1 *)FUN_003b5790(param_1,&param_2,uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003b5790(param_1,&param_2,uVar2)" identifier (argument_list "(param_1,&param_2,uVar2)" ( identifier , (pointer_expression "&param_2" & identifier) , identifier ))))) ;) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "sVar3 = param_1[1] + 1;" (assignment_expression "sVar3 = param_1[1] + 1" identifier = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" if (parenthesized_expression "(sVar3 == 1)" ( (binary_expression "sVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }" { (expression_statement "*__dest_00 = *puVar4;" (assignment_expression "*__dest_00 = *puVar4" (pointer_expression "*__dest_00" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" else (if_statement "if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" if (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" { (expression_statement "memcpy(__dest_00,puVar4,sVar3);" (call_expression "memcpy(__dest_00,puVar4,sVar3)" identifier (argument_list "(__dest_00,puVar4,sVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })))) (if_statement "if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }" if (parenthesized_expression "(__dest != (undefined4 *)puVar4)" ( (binary_expression "__dest != (undefined4 *)puVar4" identifier != (cast_expression "(undefined4 *)puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        FUN_003ae080(puVar4);\n      }" { (expression_statement "FUN_003ae080(puVar4);" (call_expression "FUN_003ae080(puVar4)" identifier (argument_list "(puVar4)" ( identifier ))) ;) })) (expression_statement "*param_1 = __dest_00;" (assignment_expression "*param_1 = __dest_00" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }" if (parenthesized_expression "(__dest != (undefined4 *)puVar4)" ( (binary_expression "__dest != (undefined4 *)puVar4" identifier != (cast_expression "(undefined4 *)puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }" { (expression_statement "sVar3 = uVar1 + 1;" (assignment_expression "sVar3 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" if (parenthesized_expression "(sVar3 == 1)" ( (binary_expression "sVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 2) = *puVar4;" (assignment_expression "*(undefined1 *)(param_1 + 2) = *puVar4" (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) )))) = (pointer_expression "*puVar4" * identifier)) ;) }) (else_clause "else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" else (if_statement "if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" if (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        memcpy(__dest,puVar4,sVar3);\n      }" { (expression_statement "memcpy(__dest,puVar4,sVar3);" (call_expression "memcpy(__dest,puVar4,sVar3)" identifier (argument_list "(__dest,puVar4,sVar3)" ( identifier , identifier , identifier ))) ;) })))) (expression_statement "FUN_003ae080(puVar4);" (call_expression "FUN_003ae080(puVar4)" identifier (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" * identifier) = identifier) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::reserve(unsigned int) */\n\nvoid std::string::reserve(uint param_1)\n\n{\n}\n\n" comment comment (function_definition "void std::string::reserve(uint param_1)\n\n{\n}" primitive_type (ERROR "std::string::" identifier : : identifier : :) (function_declarator "reserve(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_003b6310(undefined4 *param_1,uint param_2)\n\n{\n  undefined4 *__dest;\n  uint uVar1;\n  undefined1 *__dest_00;\n  uint uVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  \n  uVar1 = param_1[1];\n  if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }\n  puVar4 = (undefined1 *)*param_1;\n  __dest = param_1 + 2;\n  if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }\n  if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_003b6310(undefined4 *param_1,uint param_2)\n\n{\n  undefined4 *__dest;\n  uint uVar1;\n  undefined1 *__dest_00;\n  uint uVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  \n  uVar1 = param_1[1];\n  if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }\n  puVar4 = (undefined1 *)*param_1;\n  __dest = param_1 + 2;\n  if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }\n  if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003b6310(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *__dest;\n  uint uVar1;\n  undefined1 *__dest_00;\n  uint uVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  \n  uVar1 = param_1[1];\n  if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }\n  puVar4 = (undefined1 *)*param_1;\n  __dest = param_1 + 2;\n  if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }\n  if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *__dest_00;" type_identifier (pointer_declarator "*__dest_00" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }" if (parenthesized_expression "(param_2 < uVar1)" ( (binary_expression "param_2 < uVar1" identifier < identifier) )) (compound_statement "{\n    param_2 = uVar1;\n  }" { (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" identifier = identifier) ;) })) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "__dest = param_1 + 2;" (assignment_expression "__dest = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (if_statement "if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }" if (parenthesized_expression "(__dest == (undefined4 *)puVar4)" ( (binary_expression "__dest == (undefined4 *)puVar4" identifier == (cast_expression "(undefined4 *)puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    uVar2 = 0xf;\n  }" { (expression_statement "uVar2 = 0xf;" (assignment_expression "uVar2 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = param_1[2];\n  }" else (compound_statement "{\n    uVar2 = param_1[2];\n  }" { (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }" if (parenthesized_expression "(uVar2 != param_2)" ( (binary_expression "uVar2 != param_2" identifier != identifier) )) (compound_statement "{\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }" { (if_statement "if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }" if (parenthesized_expression "((0xf < param_2) || (uVar2 < param_2))" ( (binary_expression "(0xf < param_2) || (uVar2 < param_2)" (parenthesized_expression "(0xf < param_2)" ( (binary_expression "0xf < param_2" number_literal < identifier) )) || (parenthesized_expression "(uVar2 < param_2)" ( (binary_expression "uVar2 < param_2" identifier < identifier) ))) )) (compound_statement "{\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }" { (expression_statement "__dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);" (assignment_expression "__dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2)" identifier = (cast_expression "(undefined1 *)FUN_003b5790(param_1,&param_2,uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003b5790(param_1,&param_2,uVar2)" identifier (argument_list "(param_1,&param_2,uVar2)" ( identifier , (pointer_expression "&param_2" & identifier) , identifier ))))) ;) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "sVar3 = param_1[1] + 1;" (assignment_expression "sVar3 = param_1[1] + 1" identifier = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" if (parenthesized_expression "(sVar3 == 1)" ( (binary_expression "sVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }" { (expression_statement "*__dest_00 = *puVar4;" (assignment_expression "*__dest_00 = *puVar4" (pointer_expression "*__dest_00" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" else (if_statement "if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" if (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" { (expression_statement "memcpy(__dest_00,puVar4,sVar3);" (call_expression "memcpy(__dest_00,puVar4,sVar3)" identifier (argument_list "(__dest_00,puVar4,sVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" identifier = (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })))) (if_statement "if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }" if (parenthesized_expression "(__dest != (undefined4 *)puVar4)" ( (binary_expression "__dest != (undefined4 *)puVar4" identifier != (cast_expression "(undefined4 *)puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        FUN_003ae080(puVar4);\n      }" { (expression_statement "FUN_003ae080(puVar4);" (call_expression "FUN_003ae080(puVar4)" identifier (argument_list "(puVar4)" ( identifier ))) ;) })) (expression_statement "*param_1 = __dest_00;" (assignment_expression "*param_1 = __dest_00" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }" if (parenthesized_expression "(__dest != (undefined4 *)puVar4)" ( (binary_expression "__dest != (undefined4 *)puVar4" identifier != (cast_expression "(undefined4 *)puVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }" { (expression_statement "sVar3 = uVar1 + 1;" (assignment_expression "sVar3 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" if (parenthesized_expression "(sVar3 == 1)" ( (binary_expression "sVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 2) = *puVar4;" (assignment_expression "*(undefined1 *)(param_1 + 2) = *puVar4" (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) )))) = (pointer_expression "*puVar4" * identifier)) ;) }) (else_clause "else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" else (if_statement "if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" if (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        memcpy(__dest,puVar4,sVar3);\n      }" { (expression_statement "memcpy(__dest,puVar4,sVar3);" (call_expression "memcpy(__dest,puVar4,sVar3)" identifier (argument_list "(__dest,puVar4,sVar3)" ( identifier , identifier , identifier ))) ;) })))) (expression_statement "FUN_003ae080(puVar4);" (call_expression "FUN_003ae080(puVar4)" identifier (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" * identifier) = identifier) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) || (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , 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 != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_003b6310(undefined4 *param_1,uint param_2)\n\n{\n  undefined4 *__dest;\n  uint uVar1;\n  undefined1 *__dest_00;\n  uint uVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  \n  uVar1 = param_1[1];\n  if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }\n  puVar4 = (undefined1 *)*param_1;\n  __dest = param_1 + 2;\n  if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }\n  if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003b6310(undefined4 *param_1,uint param_2)" (identifier "FUN_003b6310") (parameter_list "(undefined4 *param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *__dest;\n  uint uVar1;\n  undefined1 *__dest_00;\n  uint uVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  \n  uVar1 = param_1[1];\n  if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }\n  puVar4 = (undefined1 *)*param_1;\n  __dest = param_1 + 2;\n  if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }\n  if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *__dest;" (type_identifier "undefined4") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined1 *__dest_00;" (type_identifier "undefined1") (pointer_declarator "*__dest_00" (* "*") (identifier "__dest_00")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_2 < uVar1) {\n    param_2 = uVar1;\n  }" (if "if") (parenthesized_expression "(param_2 < uVar1)" (( "(") (binary_expression "param_2 < uVar1" (identifier "param_2") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n    param_2 = uVar1;\n  }" ({ "{") (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" (identifier "param_2") (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)*param_1" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (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"))) (; ";")) (if_statement "if (__dest == (undefined4 *)puVar4) {\n    uVar2 = 0xf;\n  }\n  else {\n    uVar2 = param_1[2];\n  }" (if "if") (parenthesized_expression "(__dest == (undefined4 *)puVar4)" (( "(") (binary_expression "__dest == (undefined4 *)puVar4" (identifier "__dest") (== "==") (cast_expression "(undefined4 *)puVar4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (compound_statement "{\n    uVar2 = 0xf;\n  }" ({ "{") (expression_statement "uVar2 = 0xf;" (assignment_expression "uVar2 = 0xf" (identifier "uVar2") (= "=") (number_literal "0xf")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = param_1[2];\n  }" (else "else") (compound_statement "{\n    uVar2 = param_1[2];\n  }" ({ "{") (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar2 != param_2) {\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }" (if "if") (parenthesized_expression "(uVar2 != param_2)" (( "(") (binary_expression "uVar2 != param_2" (identifier "uVar2") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }\n    if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }\n  }" ({ "{") (if_statement "if ((0xf < param_2) || (uVar2 < param_2)) {\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }" (if "if") (parenthesized_expression "((0xf < param_2) || (uVar2 < param_2))" (( "(") (binary_expression "(0xf < param_2) || (uVar2 < param_2)" (parenthesized_expression "(0xf < param_2)" (( "(") (binary_expression "0xf < param_2" (number_literal "0xf") (< "<") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "(uVar2 < param_2)" (( "(") (binary_expression "uVar2 < param_2" (identifier "uVar2") (< "<") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);\n      puVar4 = (undefined1 *)*param_1;\n      sVar3 = param_1[1] + 1;\n      if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }\n      if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }\n      *param_1 = __dest_00;\n      param_1[2] = param_2;\n      return;\n    }" ({ "{") (expression_statement "__dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);" (assignment_expression "__dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2)" (identifier "__dest_00") (= "=") (cast_expression "(undefined1 *)FUN_003b5790(param_1,&param_2,uVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003b5790(param_1,&param_2,uVar2)" (identifier "FUN_003b5790") (argument_list "(param_1,&param_2,uVar2)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&param_2" (& "&") (identifier "param_2")) (, ",") (identifier "uVar2") () ")"))))) (; ";")) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)*param_1" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "sVar3 = param_1[1] + 1;" (assignment_expression "sVar3 = param_1[1] + 1" (identifier "sVar3") (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (sVar3 == 1) {\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" (if "if") (parenthesized_expression "(sVar3 == 1)" (( "(") (binary_expression "sVar3 == 1" (identifier "sVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *__dest_00 = *puVar4;\n        puVar4 = (undefined1 *)*param_1;\n      }" ({ "{") (expression_statement "*__dest_00 = *puVar4;" (assignment_expression "*__dest_00 = *puVar4" (pointer_expression "*__dest_00" (* "*") (identifier "__dest_00")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)*param_1" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" (else "else") (if_statement "if (sVar3 != 0) {\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" (if "if") (parenthesized_expression "(sVar3 != 0)" (( "(") (binary_expression "sVar3 != 0" (identifier "sVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        memcpy(__dest_00,puVar4,sVar3);\n        puVar4 = (undefined1 *)*param_1;\n      }" ({ "{") (expression_statement "memcpy(__dest_00,puVar4,sVar3);" (call_expression "memcpy(__dest_00,puVar4,sVar3)" (identifier "memcpy") (argument_list "(__dest_00,puVar4,sVar3)" (( "(") (identifier "__dest_00") (, ",") (identifier "puVar4") (, ",") (identifier "sVar3") () ")"))) (; ";")) (expression_statement "puVar4 = (undefined1 *)*param_1;" (assignment_expression "puVar4 = (undefined1 *)*param_1" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)*param_1" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))))) (if_statement "if (__dest != (undefined4 *)puVar4) {\n        FUN_003ae080(puVar4);\n      }" (if "if") (parenthesized_expression "(__dest != (undefined4 *)puVar4)" (( "(") (binary_expression "__dest != (undefined4 *)puVar4" (identifier "__dest") (!= "!=") (cast_expression "(undefined4 *)puVar4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (compound_statement "{\n        FUN_003ae080(puVar4);\n      }" ({ "{") (expression_statement "FUN_003ae080(puVar4);" (call_expression "FUN_003ae080(puVar4)" (identifier "FUN_003ae080") (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = __dest_00;" (assignment_expression "*param_1 = __dest_00" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__dest_00")) (; ";")) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (__dest != (undefined4 *)puVar4) {\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }" (if "if") (parenthesized_expression "(__dest != (undefined4 *)puVar4)" (( "(") (binary_expression "__dest != (undefined4 *)puVar4" (identifier "__dest") (!= "!=") (cast_expression "(undefined4 *)puVar4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (compound_statement "{\n      sVar3 = uVar1 + 1;\n      if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }\n      FUN_003ae080(puVar4);\n      *param_1 = __dest;\n    }" ({ "{") (expression_statement "sVar3 = uVar1 + 1;" (assignment_expression "sVar3 = uVar1 + 1" (identifier "sVar3") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (sVar3 == 1) {\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }\n      else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" (if "if") (parenthesized_expression "(sVar3 == 1)" (( "(") (binary_expression "sVar3 == 1" (identifier "sVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 2) = *puVar4;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 2) = *puVar4;" (assignment_expression "*(undefined1 *)(param_1 + 2) = *puVar4" (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")) () ")")))) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (} "}")) (else_clause "else if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" (else "else") (if_statement "if (sVar3 != 0) {\n        memcpy(__dest,puVar4,sVar3);\n      }" (if "if") (parenthesized_expression "(sVar3 != 0)" (( "(") (binary_expression "sVar3 != 0" (identifier "sVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        memcpy(__dest,puVar4,sVar3);\n      }" ({ "{") (expression_statement "memcpy(__dest,puVar4,sVar3);" (call_expression "memcpy(__dest,puVar4,sVar3)" (identifier "memcpy") (argument_list "(__dest,puVar4,sVar3)" (( "(") (identifier "__dest") (, ",") (identifier "puVar4") (, ",") (identifier "sVar3") () ")"))) (; ";")) (} "}"))))) (expression_statement "FUN_003ae080(puVar4);" (call_expression "FUN_003ae080(puVar4)" (identifier "FUN_003ae080") (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (expression_statement "*param_1 = __dest;" (assignment_expression "*param_1 = __dest" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__dest")) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::reserve(unsigned int) */

void std::string::function_1(type_1 param_1)

{
}


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

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

void MASKED(undefined4 *param_1,uint param_2)

{
  undefined4 *__dest;
  uint uVar1;
  undefined1 *__dest_00;
  uint uVar2;
  size_t sVar3;
  undefined1 *puVar4;
  
  uVar1 = param_1[1];
  if (param_2 < uVar1) {
    param_2 = uVar1;
  }
  puVar4 = (undefined1 *)*param_1;
  __dest = param_1 + 2;
  if (__dest == (undefined4 *)puVar4) {
    uVar2 = 0xf;
  }
  else {
    uVar2 = param_1[2];
  }
  if (uVar2 != param_2) {
    if ((0xf < param_2) || (uVar2 < param_2)) {
      __dest_00 = (undefined1 *)FUN_003b5790(param_1,&param_2,uVar2);
      puVar4 = (undefined1 *)*param_1;
      sVar3 = param_1[1] + 1;
      if (sVar3 == 1) {
        *__dest_00 = *puVar4;
        puVar4 = (undefined1 *)*param_1;
      }
      else if (sVar3 != 0) {
        memcpy(__dest_00,puVar4,sVar3);
        puVar4 = (undefined1 *)*param_1;
      }
      if (__dest != (undefined4 *)puVar4) {
        FUN_003ae080(puVar4);
      }
      *param_1 = __dest_00;
      param_1[2] = param_2;
      return;
    }
    if (__dest != (undefined4 *)puVar4) {
      sVar3 = uVar1 + 1;
      if (sVar3 == 1) {
        *(undefined1 *)(param_1 + 2) = *puVar4;
      }
      else if (sVar3 != 0) {
        memcpy(__dest,puVar4,sVar3);
      }
      FUN_003ae080(puVar4);
      *param_1 = __dest;
    }
  }
  return;
}

