
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: char * add_string(Stringpool_template<char> * this, char * s, size_t
   len) */

char * __thiscall
gold::Stringpool_template<char>::add_string(Stringpool_template<char> *this,char *s,size_t len)

{
}



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

uint * FUN_00346ab0(int param_1,void *param_2,size_t param_3)

{
  uint uVar1;
  uint *puVar2;
  int *piVar3;
  undefined4 uVar4;
  uint *puVar5;
  int iVar6;
  undefined4 in_ECX;
  
  if (*(int *)(param_1 + 0x38) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);
  }
  uVar1 = param_3 + 1;
  if (uVar1 < 0x3e9) {
    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {
      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);
      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {
        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);
        memcpy(puVar2,param_2,param_3);
        *(undefined1 *)((int)puVar2 + param_3) = 0;
        *piVar3 = *piVar3 + uVar1;
        return puVar2;
      }
    }
    puVar5 = (uint *)FUN_003ac450(0x3f4);
    puVar2 = puVar5 + 2;
    puVar5[1] = 1000;
    memcpy(puVar2,param_2,param_3);
    *(undefined1 *)((int)puVar2 + param_3) = 0;
    *puVar5 = uVar1;
    uVar4 = *(undefined4 *)(param_1 + 0x2c);
    iVar6 = FUN_003ac4d0(0xc);
    *(uint **)(iVar6 + 8) = puVar5;
    FUN_003b1240(iVar6,uVar4);
    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;
    return puVar2;
  }
  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);
  puVar2 = puVar5 + 2;
  puVar5[1] = uVar1;
  memcpy(puVar2,param_2,param_3);
  *(undefined1 *)((int)puVar2 + param_3) = 0;
  *puVar5 = uVar1;
  iVar6 = FUN_003ac4d0(0xc);
  *(uint **)(iVar6 + 8) = puVar5;
  FUN_003b1240(iVar6,param_1 + 0x2c);
  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;
  return puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x2a3547
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESI + 0x38]
TEST EDI,EDI
JNZ 0x00346c10
MOV EAX,dword ptr [ESP + 0x38]
LEA EDX,[ESI + 0x2c]
LEA EDI,[EAX + 0x1]
CMP EDI,0x3e8
JA 0x00346b70
MOV EAX,dword ptr [ESI + 0x2c]
CMP EAX,EDX
JZ 0x00346b00
MOV ECX,dword ptr [EAX + 0x8]
MOV EBP,dword ptr [ECX]
MOV EAX,dword ptr [ECX + 0x4]
SUB EAX,EBP
CMP EAX,EDI
JNC 0x00346be0
SUB ESP,0xc
PUSH 0x3f4
CALL 0x003ac450
MOV dword ptr [ESP + 0x18],EAX
LEA EBP,[EAX + 0x8]
ADD ESP,0xc
MOV dword ptr [EAX + 0x4],0x3e8
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
CALL 0x000392d0
MOV ECX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x48]
MOV byte ptr [EBP + EAX*0x1],0x0
MOV dword ptr [ECX],EDI
MOV EDI,dword ptr [ESI + 0x2c]
MOV dword ptr [ESP],0xc
CALL 0x003ac4d0
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX + 0x8],ECX
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x003b1240
ADD dword ptr [ESI + 0x34],0x1
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x44]
ADD EAX,0xd
PUSH EAX
CALL 0x003ac450
MOV dword ptr [ESP + 0x18],EAX
LEA EBP,[EAX + 0x8]
ADD ESP,0xc
MOV dword ptr [EAX + 0x4],EDI
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
CALL 0x000392d0
MOV ECX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x48]
MOV byte ptr [EBP + EAX*0x1],0x0
MOV dword ptr [ECX],EDI
MOV dword ptr [ESP],0xc
CALL 0x003ac4d0
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX + 0x8],ECX
POP EDI
POP EDX
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH EAX
CALL 0x003b1240
ADD ESP,0x10
ADD dword ptr [ESI + 0x34],0x1
MOV EAX,EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],ECX
LEA EBP,[ECX + EBP*0x1 + 0x8]
SUB ESP,0x4
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
CALL 0x000392d0
MOV EAX,dword ptr [ESP + 0x48]
MOV ECX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV byte ptr [EBP + EAX*0x1],0x0
ADD dword ptr [ECX],EDI
JMP 0x00346b61
LEA EAX,[EBX + 0xffeaf29c]
PUSH ECX
PUSH EAX
LEA EAX,[EBX + 0xffeaf132]
PUSH 0x9a
PUSH EAX
CALL 0x002446e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint * FUN_00346ab0(int param_1,void *param_2,size_t param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 in_ECX;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }\n  uVar1 = param_3 + 1;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,param_3);\n  *(undefined1 *)((int)puVar2 + param_3) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_003ac4d0(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_003b1240(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}\n\n" comment (function_definition "uint * FUN_00346ab0(int param_1,void *param_2,size_t param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 in_ECX;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }\n  uVar1 = param_3 + 1;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,param_3);\n  *(undefined1 *)((int)puVar2 + param_3) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_003ac4d0(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_003b1240(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00346ab0(int param_1,void *param_2,size_t param_3)" * (function_declarator "FUN_00346ab0(int param_1,void *param_2,size_t param_3)" identifier (parameter_list "(int param_1,void *param_2,size_t param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 in_ECX;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }\n  uVar1 = param_3 + 1;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,param_3);\n  *(undefined1 *)((int)puVar2 + param_3) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_003ac4d0(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_003b1240(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" ( (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }" { comment (expression_statement "FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);" (call_expression "FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX)" identifier (argument_list "("../../gold/stringpool.cc",0x9a,"add_string",in_ECX)" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""add_string"" " string_content ") , identifier ))) ;) })) (expression_statement "uVar1 = param_3 + 1;" (assignment_expression "uVar1 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" if (parenthesized_expression "(uVar1 < 0x3e9)" ( (binary_expression "uVar1 < 0x3e9" identifier < number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" { (if_statement "if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x2c) != param_1 + 0x2c)" ( (binary_expression "*(int *)(param_1 + 0x2c) != param_1 + 0x2c" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) != (binary_expression "param_1 + 0x2c" identifier + number_literal)) )) (compound_statement "{\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" { (expression_statement "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);" (assignment_expression "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x2c) + 8)" * (cast_expression "(int **)(*(int *)(param_1 + 0x2c) + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x2c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x2c) + 8" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" if (parenthesized_expression "(uVar1 <= (uint)(piVar3[1] - *piVar3))" ( (binary_expression "uVar1 <= (uint)(piVar3[1] - *piVar3)" identifier <= (call_expression "(uint)(piVar3[1] - *piVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar3[1] - *piVar3)" ( (binary_expression "piVar3[1] - *piVar3" (subscript_expression "piVar3[1]" identifier [ number_literal ]) - (pointer_expression "*piVar3" * identifier)) )))) )) (compound_statement "{\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" { (expression_statement "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);" (assignment_expression "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8)" identifier = (cast_expression "(uint *)((int)piVar3 + *piVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar3 + *piVar3 + 8)" ( (binary_expression "(int)piVar3 + *piVar3 + 8" (binary_expression "(int)piVar3 + *piVar3" (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*piVar3" * identifier)) + number_literal) )))) ;) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" identifier (argument_list "(puVar2,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" * (cast_expression "(undefined1 *)((int)puVar2 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + param_3)" ( (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*piVar3 = *piVar3 + uVar1;" (assignment_expression "*piVar3 = *piVar3 + uVar1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + uVar1" (pointer_expression "*piVar3" * identifier) + identifier)) ;) (return_statement "return puVar2;" return identifier ;) })) })) (expression_statement "puVar5 = (uint *)FUN_003ac450(0x3f4);" (assignment_expression "puVar5 = (uint *)FUN_003ac450(0x3f4)" identifier = (cast_expression "(uint *)FUN_003ac450(0x3f4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac450(0x3f4)" identifier (argument_list "(0x3f4)" ( number_literal ))))) ;) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "puVar5[1] = 1000;" (assignment_expression "puVar5[1] = 1000" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" identifier (argument_list "(puVar2,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" * (cast_expression "(undefined1 *)((int)puVar2 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + param_3)" ( (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x2c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = FUN_003ac4d0(0xc);" (assignment_expression "iVar6 = FUN_003ac4d0(0xc)" identifier = (call_expression "FUN_003ac4d0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" * (cast_expression "(uint **)(iVar6 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_003b1240(iVar6,uVar4);" (call_expression "FUN_003b1240(iVar6,uVar4)" identifier (argument_list "(iVar6,uVar4)" ( identifier , identifier ))) ;) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);" (assignment_expression "puVar5 = (uint *)FUN_003ac450(param_3 + 0xd)" identifier = (cast_expression "(uint *)FUN_003ac450(param_3 + 0xd)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac450(param_3 + 0xd)" identifier (argument_list "(param_3 + 0xd)" ( (binary_expression "param_3 + 0xd" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "puVar5[1] = uVar1;" (assignment_expression "puVar5[1] = uVar1" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" identifier (argument_list "(puVar2,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" * (cast_expression "(undefined1 *)((int)puVar2 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + param_3)" ( (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar6 = FUN_003ac4d0(0xc);" (assignment_expression "iVar6 = FUN_003ac4d0(0xc)" identifier = (call_expression "FUN_003ac4d0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" * (cast_expression "(uint **)(iVar6 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_003b1240(iVar6,param_1 + 0x2c);" (call_expression "FUN_003b1240(iVar6,param_1 + 0x2c)" identifier (argument_list "(iVar6,param_1 + 0x2c)" ( identifier , (binary_expression "param_1 + 0x2c" identifier + number_literal) ))) ;) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: char * add_string(Stringpool_template<char> * this, char * s, size_t\n   len) */\n\nchar * __thiscall\ngold::Stringpool_template<char>::add_string(Stringpool_template<char> *this,char *s,size_t len)\n\n{\n}\n\n" comment comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "gold::Stringpool_template<char>::add_string(Stringpool_template<char> *this,char *s,size_t len)" statement_identifier (ERROR "::Stringpool_template<char>:" : : (binary_expression "Stringpool_template<char" identifier < identifier) > :) : (expression_statement "add_string(Stringpool_template<char> *this,char *s,size_t len)" (call_expression "add_string(Stringpool_template<char> *this,char *s,size_t len)" identifier (argument_list "(Stringpool_template<char> *this,char *s,size_t len)" ( (binary_expression "Stringpool_template<char> *this" (binary_expression "Stringpool_template<char" identifier < identifier) > (pointer_expression "*this" * identifier)) , (binary_expression "char *s" identifier * identifier) , identifier (ERROR "len" identifier) ))) ;)) (compound_statement "{\n}" { }))
(translation_unit "uint * FUN_00346ab0(int param_1,void *param_2,size_t param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 in_ECX;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }\n  uVar1 = param_3 + 1;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,param_3);\n  *(undefined1 *)((int)puVar2 + param_3) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_003ac4d0(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_003b1240(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}\n\n" (function_definition "uint * FUN_00346ab0(int param_1,void *param_2,size_t param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 in_ECX;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }\n  uVar1 = param_3 + 1;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,param_3);\n  *(undefined1 *)((int)puVar2 + param_3) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_003ac4d0(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_003b1240(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00346ab0(int param_1,void *param_2,size_t param_3)" * (function_declarator "FUN_00346ab0(int param_1,void *param_2,size_t param_3)" identifier (parameter_list "(int param_1,void *param_2,size_t param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 in_ECX;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }\n  uVar1 = param_3 + 1;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,param_3);\n  *(undefined1 *)((int)puVar2 + param_3) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_003ac4d0(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_003b1240(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" ( (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }" { (expression_statement "FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);" (call_expression "FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX)" identifier (argument_list "("../../gold/stringpool.cc",0x9a,"add_string",in_ECX)" ( (string_literal ""../../gold/stringpool.cc"" " string_content ") , number_literal , (string_literal ""add_string"" " string_content ") , identifier ))) ;) })) (expression_statement "uVar1 = param_3 + 1;" (assignment_expression "uVar1 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" if (parenthesized_expression "(uVar1 < 0x3e9)" ( (binary_expression "uVar1 < 0x3e9" identifier < number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" { (if_statement "if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x2c) != param_1 + 0x2c)" ( (binary_expression "*(int *)(param_1 + 0x2c) != param_1 + 0x2c" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) != (binary_expression "param_1 + 0x2c" identifier + number_literal)) )) (compound_statement "{\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" { (expression_statement "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);" (assignment_expression "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 0x2c) + 8)" * (cast_expression "(int **)(*(int *)(param_1 + 0x2c) + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x2c) + 8)" ( (binary_expression "*(int *)(param_1 + 0x2c) + 8" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" if (parenthesized_expression "(uVar1 <= (uint)(piVar3[1] - *piVar3))" ( (binary_expression "uVar1 <= (uint)(piVar3[1] - *piVar3)" identifier <= (call_expression "(uint)(piVar3[1] - *piVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar3[1] - *piVar3)" ( (binary_expression "piVar3[1] - *piVar3" (subscript_expression "piVar3[1]" identifier [ number_literal ]) - (pointer_expression "*piVar3" * identifier)) )))) )) (compound_statement "{\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" { (expression_statement "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);" (assignment_expression "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8)" identifier = (cast_expression "(uint *)((int)piVar3 + *piVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar3 + *piVar3 + 8)" ( (binary_expression "(int)piVar3 + *piVar3 + 8" (binary_expression "(int)piVar3 + *piVar3" (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*piVar3" * identifier)) + number_literal) )))) ;) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" identifier (argument_list "(puVar2,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" * (cast_expression "(undefined1 *)((int)puVar2 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + param_3)" ( (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*piVar3 = *piVar3 + uVar1;" (assignment_expression "*piVar3 = *piVar3 + uVar1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + uVar1" (pointer_expression "*piVar3" * identifier) + identifier)) ;) (return_statement "return puVar2;" return identifier ;) })) })) (expression_statement "puVar5 = (uint *)FUN_003ac450(0x3f4);" (assignment_expression "puVar5 = (uint *)FUN_003ac450(0x3f4)" identifier = (cast_expression "(uint *)FUN_003ac450(0x3f4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac450(0x3f4)" identifier (argument_list "(0x3f4)" ( number_literal ))))) ;) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "puVar5[1] = 1000;" (assignment_expression "puVar5[1] = 1000" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" identifier (argument_list "(puVar2,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" * (cast_expression "(undefined1 *)((int)puVar2 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + param_3)" ( (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x2c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = FUN_003ac4d0(0xc);" (assignment_expression "iVar6 = FUN_003ac4d0(0xc)" identifier = (call_expression "FUN_003ac4d0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" * (cast_expression "(uint **)(iVar6 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_003b1240(iVar6,uVar4);" (call_expression "FUN_003b1240(iVar6,uVar4)" identifier (argument_list "(iVar6,uVar4)" ( identifier , identifier ))) ;) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);" (assignment_expression "puVar5 = (uint *)FUN_003ac450(param_3 + 0xd)" identifier = (cast_expression "(uint *)FUN_003ac450(param_3 + 0xd)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac450(param_3 + 0xd)" identifier (argument_list "(param_3 + 0xd)" ( (binary_expression "param_3 + 0xd" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" identifier = (binary_expression "puVar5 + 2" identifier + number_literal)) ;) (expression_statement "puVar5[1] = uVar1;" (assignment_expression "puVar5[1] = uVar1" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" identifier (argument_list "(puVar2,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" * (cast_expression "(undefined1 *)((int)puVar2 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + param_3)" ( (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar6 = FUN_003ac4d0(0xc);" (assignment_expression "iVar6 = FUN_003ac4d0(0xc)" identifier = (call_expression "FUN_003ac4d0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" * (cast_expression "(uint **)(iVar6 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_003b1240(iVar6,param_1 + 0x2c);" (call_expression "FUN_003b1240(iVar6,param_1 + 0x2c)" identifier (argument_list "(iVar6,param_1 + 0x2c)" ( identifier , (binary_expression "param_1 + 0x2c" identifier + number_literal) ))) ;) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (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) )))) != (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * IDENT)) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * IDENT)) + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return IDENT ;) })))
(function_definition "uint * FUN_00346ab0(int param_1,void *param_2,size_t param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 in_ECX;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }\n  uVar1 = param_3 + 1;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,param_3);\n  *(undefined1 *)((int)puVar2 + param_3) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_003ac4d0(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_003b1240(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" (type_identifier "uint") (pointer_declarator "* FUN_00346ab0(int param_1,void *param_2,size_t param_3)" (* "*") (function_declarator "FUN_00346ab0(int param_1,void *param_2,size_t param_3)" (identifier "FUN_00346ab0") (parameter_list "(int param_1,void *param_2,size_t param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) () ")")))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 in_ECX;\n  \n  if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }\n  uVar1 = param_3 + 1;\n  if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }\n  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);\n  puVar2 = puVar5 + 2;\n  puVar5[1] = uVar1;\n  memcpy(puVar2,param_2,param_3);\n  *(undefined1 *)((int)puVar2 + param_3) = 0;\n  *puVar5 = uVar1;\n  iVar6 = FUN_003ac4d0(0xc);\n  *(uint **)(iVar6 + 8) = puVar5;\n  FUN_003b1240(iVar6,param_1 + 0x2c);\n  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n  return puVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 in_ECX;" (type_identifier "undefined4") (identifier "in_ECX") (; ";")) (if_statement "if (*(int *)(param_1 + 0x38) != 0) {\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x38) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) != 0" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);\n  }" ({ "{") (expression_statement "FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);" (call_expression "FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX)" (identifier "FUN_002446e0") (argument_list "("../../gold/stringpool.cc",0x9a,"add_string",in_ECX)" (( "(") (string_literal ""../../gold/stringpool.cc"" (" """) (string_content "../../gold/stringpool.cc") (" """)) (, ",") (number_literal "0x9a") (, ",") (string_literal ""add_string"" (" """) (string_content "add_string") (" """)) (, ",") (identifier "in_ECX") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = param_3 + 1;" (assignment_expression "uVar1 = param_3 + 1" (identifier "uVar1") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar1 < 0x3e9) {\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(uVar1 < 0x3e9)" (( "(") (binary_expression "uVar1 < 0x3e9" (identifier "uVar1") (< "<") (number_literal "0x3e9")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }\n    puVar5 = (uint *)FUN_003ac450(0x3f4);\n    puVar2 = puVar5 + 2;\n    puVar5[1] = 1000;\n    memcpy(puVar2,param_2,param_3);\n    *(undefined1 *)((int)puVar2 + param_3) = 0;\n    *puVar5 = uVar1;\n    uVar4 = *(undefined4 *)(param_1 + 0x2c);\n    iVar6 = FUN_003ac4d0(0xc);\n    *(uint **)(iVar6 + 8) = puVar5;\n    FUN_003b1240(iVar6,uVar4);\n    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;\n    return puVar2;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x2c) != param_1 + 0x2c)" (( "(") (binary_expression "*(int *)(param_1 + 0x2c) != param_1 + 0x2c" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (!= "!=") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c"))) () ")")) (compound_statement "{\n      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);\n      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }\n    }" ({ "{") (expression_statement "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);" (assignment_expression "piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 0x2c) + 8)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 0x2c) + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x2c) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x2c) + 8" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" (if "if") (parenthesized_expression "(uVar1 <= (uint)(piVar3[1] - *piVar3))" (( "(") (binary_expression "uVar1 <= (uint)(piVar3[1] - *piVar3)" (identifier "uVar1") (<= "<=") (call_expression "(uint)(piVar3[1] - *piVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar3[1] - *piVar3)" (( "(") (binary_expression "piVar3[1] - *piVar3" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (- "-") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")))) () ")")) (compound_statement "{\n        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);\n        memcpy(puVar2,param_2,param_3);\n        *(undefined1 *)((int)puVar2 + param_3) = 0;\n        *piVar3 = *piVar3 + uVar1;\n        return puVar2;\n      }" ({ "{") (expression_statement "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);" (assignment_expression "puVar2 = (uint *)((int)piVar3 + *piVar3 + 8)" (identifier "puVar2") (= "=") (cast_expression "(uint *)((int)piVar3 + *piVar3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar3 + *piVar3 + 8)" (( "(") (binary_expression "(int)piVar3 + *piVar3 + 8" (binary_expression "(int)piVar3 + *piVar3" (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3")) (+ "+") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" (identifier "memcpy") (argument_list "(puVar2,param_2,param_3)" (( "(") (identifier "puVar2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" (* "*") (cast_expression "(undefined1 *)((int)puVar2 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + param_3)" (( "(") (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (identifier "param_3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar3 = *piVar3 + uVar1;" (assignment_expression "*piVar3 = *piVar3 + uVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (binary_expression "*piVar3 + uVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (identifier "uVar1"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar5 = (uint *)FUN_003ac450(0x3f4);" (assignment_expression "puVar5 = (uint *)FUN_003ac450(0x3f4)" (identifier "puVar5") (= "=") (cast_expression "(uint *)FUN_003ac450(0x3f4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003ac450(0x3f4)" (identifier "FUN_003ac450") (argument_list "(0x3f4)" (( "(") (number_literal "0x3f4") () ")"))))) (; ";")) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" (identifier "puVar2") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar5[1] = 1000;" (assignment_expression "puVar5[1] = 1000" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1000")) (; ";")) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" (identifier "memcpy") (argument_list "(puVar2,param_2,param_3)" (( "(") (identifier "puVar2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" (* "*") (cast_expression "(undefined1 *)((int)puVar2 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + param_3)" (( "(") (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (identifier "param_3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(param_1 + 0x2c);" (assignment_expression "uVar4 = *(undefined4 *)(param_1 + 0x2c)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "iVar6 = FUN_003ac4d0(0xc);" (assignment_expression "iVar6 = FUN_003ac4d0(0xc)" (identifier "iVar6") (= "=") (call_expression "FUN_003ac4d0(0xc)" (identifier "FUN_003ac4d0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" (* "*") (cast_expression "(uint **)(iVar6 + 8)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "FUN_003b1240(iVar6,uVar4);" (call_expression "FUN_003b1240(iVar6,uVar4)" (identifier "FUN_003b1240") (argument_list "(iVar6,uVar4)" (( "(") (identifier "iVar6") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);" (assignment_expression "puVar5 = (uint *)FUN_003ac450(param_3 + 0xd)" (identifier "puVar5") (= "=") (cast_expression "(uint *)FUN_003ac450(param_3 + 0xd)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003ac450(param_3 + 0xd)" (identifier "FUN_003ac450") (argument_list "(param_3 + 0xd)" (( "(") (binary_expression "param_3 + 0xd" (identifier "param_3") (+ "+") (number_literal "0xd")) () ")"))))) (; ";")) (expression_statement "puVar2 = puVar5 + 2;" (assignment_expression "puVar2 = puVar5 + 2" (identifier "puVar2") (= "=") (binary_expression "puVar5 + 2" (identifier "puVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar5[1] = uVar1;" (assignment_expression "puVar5[1] = uVar1" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "memcpy(puVar2,param_2,param_3);" (call_expression "memcpy(puVar2,param_2,param_3)" (identifier "memcpy") (argument_list "(puVar2,param_2,param_3)" (( "(") (identifier "puVar2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "*(undefined1 *)((int)puVar2 + param_3) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + param_3) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + param_3)" (* "*") (cast_expression "(undefined1 *)((int)puVar2 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + param_3)" (( "(") (binary_expression "(int)puVar2 + param_3" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (identifier "param_3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar6 = FUN_003ac4d0(0xc);" (assignment_expression "iVar6 = FUN_003ac4d0(0xc)" (identifier "iVar6") (= "=") (call_expression "FUN_003ac4d0(0xc)" (identifier "FUN_003ac4d0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(uint **)(iVar6 + 8) = puVar5;" (assignment_expression "*(uint **)(iVar6 + 8) = puVar5" (pointer_expression "*(uint **)(iVar6 + 8)" (* "*") (cast_expression "(uint **)(iVar6 + 8)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "FUN_003b1240(iVar6,param_1 + 0x2c);" (call_expression "FUN_003b1240(iVar6,param_1 + 0x2c)" (identifier "FUN_003b1240") (argument_list "(iVar6,param_1 + 0x2c)" (( "(") (identifier "iVar6") (, ",") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;" (assignment_expression "*(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x34) + 1" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: char * add_string(Stringpool_template<char> * this, char * s, size_t
   len) */

char * __thiscall
gold::var_2<var_3>::var_1(var_2<var_3> *this,var_3 *var_4,size_t len)

{
}


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

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

uint * MASKED(int param_1,void *param_2,size_t param_3)

{
  uint uVar1;
  uint *puVar2;
  int *piVar3;
  undefined4 uVar4;
  uint *puVar5;
  int iVar6;
  undefined4 in_ECX;
  
  if (*(int *)(param_1 + 0x38) != 0) {
                    /* WARNING: Subroutine does not return */
    FUN_002446e0("../../gold/stringpool.cc",0x9a,"add_string",in_ECX);
  }
  uVar1 = param_3 + 1;
  if (uVar1 < 0x3e9) {
    if (*(int *)(param_1 + 0x2c) != param_1 + 0x2c) {
      piVar3 = *(int **)(*(int *)(param_1 + 0x2c) + 8);
      if (uVar1 <= (uint)(piVar3[1] - *piVar3)) {
        puVar2 = (uint *)((int)piVar3 + *piVar3 + 8);
        memcpy(puVar2,param_2,param_3);
        *(undefined1 *)((int)puVar2 + param_3) = 0;
        *piVar3 = *piVar3 + uVar1;
        return puVar2;
      }
    }
    puVar5 = (uint *)FUN_003ac450(0x3f4);
    puVar2 = puVar5 + 2;
    puVar5[1] = 1000;
    memcpy(puVar2,param_2,param_3);
    *(undefined1 *)((int)puVar2 + param_3) = 0;
    *puVar5 = uVar1;
    uVar4 = *(undefined4 *)(param_1 + 0x2c);
    iVar6 = FUN_003ac4d0(0xc);
    *(uint **)(iVar6 + 8) = puVar5;
    FUN_003b1240(iVar6,uVar4);
    *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;
    return puVar2;
  }
  puVar5 = (uint *)FUN_003ac450(param_3 + 0xd);
  puVar2 = puVar5 + 2;
  puVar5[1] = uVar1;
  memcpy(puVar2,param_2,param_3);
  *(undefined1 *)((int)puVar2 + param_3) = 0;
  *puVar5 = uVar1;
  iVar6 = FUN_003ac4d0(0xc);
  *(uint **)(iVar6 + 8) = puVar5;
  FUN_003b1240(iVar6,param_1 + 0x2c);
  *(int *)(param_1 + 0x34) = *(int *)(param_1 + 0x34) + 1;
  return puVar2;
}

