
/* 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_00280ed0(int *param_1,uint param_2)

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x280ed9;
  iVar4 = *param_1;
  if (param_2 == *(uint *)(iVar4 + -8)) {
    if (*(int *)(iVar4 + -4) < 1) {
      return;
    }
    iVar4 = *param_1;
  }
  uVar2 = *(uint *)(iVar4 + -0xc);
  if (param_2 < uVar2) {
    param_2 = uVar2;
  }
  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);
  iVar4 = *param_1;
  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {
    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {
      iVar5 = *(int *)(iVar4 + -4);
      *(int *)(iVar4 + -4) = iVar5 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(iVar4 + -4);
      iVar5 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar5 < 1) {
      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);
    }
  }
  *param_1 = iVar3;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x193127
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESI]
CMP EAX,dword ptr [EDX + -0x8]
JZ 0x00280f30
MOV ECX,dword ptr [EDX + -0xc]
SUB ESP,0x4
CMP EAX,ECX
CMOVC EAX,ECX
SUB EDX,0xc
SUB EAX,ECX
PUSH EAX
LEA EDI,[ESP + 0x27]
PUSH EDI
PUSH EDX
CALL 0x00280e40
MOV EDX,dword ptr [ESI]
LEA ECX,[EDX + -0xc]
MOV dword ptr [ESP + 0x18],ECX
ADD ESP,0x10
CMP ECX,dword ptr [EBX + 0xfffffffc]
JNZ 0x00280f40
MOV dword ptr [ESI],EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EDX + -0x4]
TEST EDX,EDX
JLE 0x00280f23
MOV EDX,dword ptr [ESI]
JMP 0x00280ef1
MOV ECX,dword ptr [EBX + 0xfffffff8]
TEST ECX,ECX
JZ 0x00280f78
MOV EBP,0xffffffff
XADD.LOCK dword ptr [EDX + -0x4],EBP
TEST EBP,EBP
JG 0x00280f21
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESP + 0x14]
CALL 0x0027fe20
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
JMP 0x00280f21
MOV EBP,dword ptr [EDX + -0x4]
LEA ECX,[EBP + -0x1]
MOV dword ptr [EDX + -0x4],ECX
JMP 0x00280f54
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00280ed0(int *param_1,uint param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280ed9;\n  iVar4 = *param_1;\n  if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }\n  uVar2 = *(uint *)(iVar4 + -0xc);\n  if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }\n  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);\n  iVar4 = *param_1;\n  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }\n  *param_1 = iVar3;\n  return;\n}\n\n" comment (function_definition "void FUN_00280ed0(int *param_1,uint param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280ed9;\n  iVar4 = *param_1;\n  if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }\n  uVar2 = *(uint *)(iVar4 + -0xc);\n  if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }\n  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);\n  iVar4 = *param_1;\n  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }\n  *param_1 = iVar3;\n  return;\n}" primitive_type (function_declarator "FUN_00280ed0(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  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280ed9;\n  iVar4 = *param_1;\n  if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }\n  uVar2 = *(uint *)(iVar4 + -0xc);\n  if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }\n  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);\n  iVar4 = *param_1;\n  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }\n  *param_1 = iVar3;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x280ed9;" (assignment_expression "uStack_14 = 0x280ed9" identifier = number_literal) ;) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }" if (parenthesized_expression "(param_2 == *(uint *)(iVar4 + -8))" ( (binary_expression "param_2 == *(uint *)(iVar4 + -8)" identifier == (pointer_expression "*(uint *)(iVar4 + -8)" * (cast_expression "(uint *)(iVar4 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -8)" ( (binary_expression "iVar4 + -8" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }" { (if_statement "if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(iVar4 + -4) < 1)" ( (binary_expression "*(int *)(iVar4 + -4) < 1" (pointer_expression "*(int *)(iVar4 + -4)" * (cast_expression "(int *)(iVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4)" ( (binary_expression "iVar4 + -4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "uVar2 = *(uint *)(iVar4 + -0xc);" (assignment_expression "uVar2 = *(uint *)(iVar4 + -0xc)" identifier = (pointer_expression "*(uint *)(iVar4 + -0xc)" * (cast_expression "(uint *)(iVar4 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xc)" ( (binary_expression "iVar4 + -0xc" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n    param_2 = uVar2;\n  }" { (expression_statement "param_2 = uVar2;" (assignment_expression "param_2 = uVar2" identifier = identifier) ;) })) (expression_statement "iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);" (assignment_expression "iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2)" identifier = (call_expression "FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2)" identifier (argument_list "(iVar4 + -0xc,local_1d,param_2 - uVar2)" ( (binary_expression "iVar4 + -0xc" identifier + number_literal) , identifier , (binary_expression "param_2 - uVar2" identifier - identifier) )))) ;) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }" if (parenthesized_expression "((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc)" ( (binary_expression "(undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc" (cast_expression "(undefined *)(iVar4 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xc)" ( (binary_expression "iVar4 + -0xc" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }" { (expression_statement "iVar5 = *(int *)(iVar4 + -4);" (assignment_expression "iVar5 = *(int *)(iVar4 + -4)" identifier = (pointer_expression "*(int *)(iVar4 + -4)" * (cast_expression "(int *)(iVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4)" ( (binary_expression "iVar4 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar4 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar4 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar4 + -4)" * (cast_expression "(int *)(iVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4)" ( (binary_expression "iVar4 + -4" identifier + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar4 + -4);" (assignment_expression "piVar1 = (int *)(iVar4 + -4)" identifier = (cast_expression "(int *)(iVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4)" ( (binary_expression "iVar4 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }" { (expression_statement "FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);" (call_expression "FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d)" identifier (argument_list "((undefined *)(iVar4 + -0xc),local_1d)" ( (cast_expression "(undefined *)(iVar4 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xc)" ( (binary_expression "iVar4 + -0xc" identifier + number_literal) ))) , identifier ))) ;) })) })) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (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_00280ed0(int *param_1,uint param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280ed9;\n  iVar4 = *param_1;\n  if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }\n  uVar2 = *(uint *)(iVar4 + -0xc);\n  if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }\n  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);\n  iVar4 = *param_1;\n  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }\n  *param_1 = iVar3;\n  return;\n}\n\n" (function_definition "void FUN_00280ed0(int *param_1,uint param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280ed9;\n  iVar4 = *param_1;\n  if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }\n  uVar2 = *(uint *)(iVar4 + -0xc);\n  if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }\n  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);\n  iVar4 = *param_1;\n  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }\n  *param_1 = iVar3;\n  return;\n}" primitive_type (function_declarator "FUN_00280ed0(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  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280ed9;\n  iVar4 = *param_1;\n  if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }\n  uVar2 = *(uint *)(iVar4 + -0xc);\n  if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }\n  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);\n  iVar4 = *param_1;\n  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }\n  *param_1 = iVar3;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x280ed9;" (assignment_expression "uStack_14 = 0x280ed9" identifier = number_literal) ;) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }" if (parenthesized_expression "(param_2 == *(uint *)(iVar4 + -8))" ( (binary_expression "param_2 == *(uint *)(iVar4 + -8)" identifier == (pointer_expression "*(uint *)(iVar4 + -8)" * (cast_expression "(uint *)(iVar4 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -8)" ( (binary_expression "iVar4 + -8" identifier + number_literal) ))))) )) (compound_statement "{\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }" { (if_statement "if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(iVar4 + -4) < 1)" ( (binary_expression "*(int *)(iVar4 + -4) < 1" (pointer_expression "*(int *)(iVar4 + -4)" * (cast_expression "(int *)(iVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4)" ( (binary_expression "iVar4 + -4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "uVar2 = *(uint *)(iVar4 + -0xc);" (assignment_expression "uVar2 = *(uint *)(iVar4 + -0xc)" identifier = (pointer_expression "*(uint *)(iVar4 + -0xc)" * (cast_expression "(uint *)(iVar4 + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xc)" ( (binary_expression "iVar4 + -0xc" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n    param_2 = uVar2;\n  }" { (expression_statement "param_2 = uVar2;" (assignment_expression "param_2 = uVar2" identifier = identifier) ;) })) (expression_statement "iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);" (assignment_expression "iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2)" identifier = (call_expression "FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2)" identifier (argument_list "(iVar4 + -0xc,local_1d,param_2 - uVar2)" ( (binary_expression "iVar4 + -0xc" identifier + number_literal) , identifier , (binary_expression "param_2 - uVar2" identifier - identifier) )))) ;) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }" if (parenthesized_expression "((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc)" ( (binary_expression "(undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc" (cast_expression "(undefined *)(iVar4 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xc)" ( (binary_expression "iVar4 + -0xc" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }" { (expression_statement "iVar5 = *(int *)(iVar4 + -4);" (assignment_expression "iVar5 = *(int *)(iVar4 + -4)" identifier = (pointer_expression "*(int *)(iVar4 + -4)" * (cast_expression "(int *)(iVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4)" ( (binary_expression "iVar4 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar4 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar4 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar4 + -4)" * (cast_expression "(int *)(iVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4)" ( (binary_expression "iVar4 + -4" identifier + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar4 + -4);" (assignment_expression "piVar1 = (int *)(iVar4 + -4)" identifier = (cast_expression "(int *)(iVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4)" ( (binary_expression "iVar4 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }" { (expression_statement "FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);" (call_expression "FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d)" identifier (argument_list "((undefined *)(iVar4 + -0xc),local_1d)" ( (cast_expression "(undefined *)(iVar4 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xc)" ( (binary_expression "iVar4 + -0xc" identifier + number_literal) ))) , identifier ))) ;) })) })) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT ))) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00280ed0(int *param_1,uint param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280ed9;\n  iVar4 = *param_1;\n  if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }\n  uVar2 = *(uint *)(iVar4 + -0xc);\n  if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }\n  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);\n  iVar4 = *param_1;\n  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }\n  *param_1 = iVar3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00280ed0(int *param_1,uint param_2)" (identifier "FUN_00280ed0") (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  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280ed9;\n  iVar4 = *param_1;\n  if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }\n  uVar2 = *(uint *)(iVar4 + -0xc);\n  if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }\n  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);\n  iVar4 = *param_1;\n  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }\n  *param_1 = iVar3;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined1 local_1d [9];" (type_identifier "undefined1") (array_declarator "local_1d [9]" (identifier "local_1d") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x280ed9;" (assignment_expression "uStack_14 = 0x280ed9" (identifier "uStack_14") (= "=") (number_literal "0x280ed9")) (; ";")) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" (identifier "iVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (param_2 == *(uint *)(iVar4 + -8)) {\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }" (if "if") (parenthesized_expression "(param_2 == *(uint *)(iVar4 + -8))" (( "(") (binary_expression "param_2 == *(uint *)(iVar4 + -8)" (identifier "param_2") (== "==") (pointer_expression "*(uint *)(iVar4 + -8)" (* "*") (cast_expression "(uint *)(iVar4 + -8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -8)" (( "(") (binary_expression "iVar4 + -8" (identifier "iVar4") (+ "+") (number_literal "-8")) () ")"))))) () ")")) (compound_statement "{\n    if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }\n    iVar4 = *param_1;\n  }" ({ "{") (if_statement "if (*(int *)(iVar4 + -4) < 1) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + -4) < 1)" (( "(") (binary_expression "*(int *)(iVar4 + -4) < 1" (pointer_expression "*(int *)(iVar4 + -4)" (* "*") (cast_expression "(int *)(iVar4 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -4)" (( "(") (binary_expression "iVar4 + -4" (identifier "iVar4") (+ "+") (number_literal "-4")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" (identifier "iVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "uVar2 = *(uint *)(iVar4 + -0xc);" (assignment_expression "uVar2 = *(uint *)(iVar4 + -0xc)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar4 + -0xc)" (* "*") (cast_expression "(uint *)(iVar4 + -0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -0xc)" (( "(") (binary_expression "iVar4 + -0xc" (identifier "iVar4") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (if_statement "if (param_2 < uVar2) {\n    param_2 = uVar2;\n  }" (if "if") (parenthesized_expression "(param_2 < uVar2)" (( "(") (binary_expression "param_2 < uVar2" (identifier "param_2") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    param_2 = uVar2;\n  }" ({ "{") (expression_statement "param_2 = uVar2;" (assignment_expression "param_2 = uVar2" (identifier "param_2") (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);" (assignment_expression "iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2)" (identifier "iVar3") (= "=") (call_expression "FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2)" (identifier "FUN_00280e40") (argument_list "(iVar4 + -0xc,local_1d,param_2 - uVar2)" (( "(") (binary_expression "iVar4 + -0xc" (identifier "iVar4") (+ "+") (number_literal "-0xc")) (, ",") (identifier "local_1d") (, ",") (binary_expression "param_2 - uVar2" (identifier "param_2") (- "-") (identifier "uVar2")) () ")")))) (; ";")) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" (identifier "iVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }" (if "if") (parenthesized_expression "((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc)" (( "(") (binary_expression "(undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc" (cast_expression "(undefined *)(iVar4 + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -0xc)" (( "(") (binary_expression "iVar4 + -0xc" (identifier "iVar4") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (identifier "PTR_DAT_00413ffc")) () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_00413ff8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_00413ff8") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar5 = *(int *)(iVar4 + -4);\n      *(int *)(iVar4 + -4) = iVar5 + -1;\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(iVar4 + -4);" (assignment_expression "iVar5 = *(int *)(iVar4 + -4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar4 + -4)" (* "*") (cast_expression "(int *)(iVar4 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -4)" (( "(") (binary_expression "iVar4 + -4" (identifier "iVar4") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar4 + -4) = iVar5 + -1;" (assignment_expression "*(int *)(iVar4 + -4) = iVar5 + -1" (pointer_expression "*(int *)(iVar4 + -4)" (* "*") (cast_expression "(int *)(iVar4 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -4)" (( "(") (binary_expression "iVar4 + -4" (identifier "iVar4") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (else "else") (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar4 + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(iVar4 + -4);" (assignment_expression "piVar1 = (int *)(iVar4 + -4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar4 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -4)" (( "(") (binary_expression "iVar4 + -4" (identifier "iVar4") (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar5 < 1) {\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }" (if "if") (parenthesized_expression "(iVar5 < 1)" (( "(") (binary_expression "iVar5 < 1" (identifier "iVar5") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);\n    }" ({ "{") (expression_statement "FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);" (call_expression "FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d)" (identifier "FUN_0027fe20") (argument_list "((undefined *)(iVar4 + -0xc),local_1d)" (( "(") (cast_expression "(undefined *)(iVar4 + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -0xc)" (( "(") (binary_expression "iVar4 + -0xc" (identifier "iVar4") (+ "+") (number_literal "-0xc")) () ")"))) (, ",") (identifier "local_1d") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (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: (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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

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

void MASKED(int *param_1,uint param_2)

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x280ed9;
  iVar4 = *param_1;
  if (param_2 == *(uint *)(iVar4 + -8)) {
    if (*(int *)(iVar4 + -4) < 1) {
      return;
    }
    iVar4 = *param_1;
  }
  uVar2 = *(uint *)(iVar4 + -0xc);
  if (param_2 < uVar2) {
    param_2 = uVar2;
  }
  iVar3 = FUN_00280e40(iVar4 + -0xc,local_1d,param_2 - uVar2);
  iVar4 = *param_1;
  if ((undefined *)(iVar4 + -0xc) != PTR_DAT_00413ffc) {
    if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {
      iVar5 = *(int *)(iVar4 + -4);
      *(int *)(iVar4 + -4) = iVar5 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(iVar4 + -4);
      iVar5 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar5 < 1) {
      FUN_0027fe20((undefined *)(iVar4 + -0xc),local_1d);
    }
  }
  *param_1 = iVar3;
  return;
}

