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

char * __regparm3 dupvprintf_inner(char *buf,int oldlen,int *oldsize,char *fmt,va_list ap)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  int in_GS_OFFSET;
  size_t local_100;
  char str [200];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  local_100 = *oldsize;
  if ((int)local_100 < oldlen) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");
  }
  uVar3 = local_100 - oldlen;
  if (uVar3 == 0) {
    local_100 = oldlen + 0x200;
    if (-1 < (int)local_100) {
      if (buf == (char *)0x0) {
        buf = (char *)malloc(local_100);
      }
      else {
        buf = (char *)realloc(buf,local_100);
      }
      if (buf != (char *)0x0) {
        uVar3 = 0x200;
        goto LAB_0001e34e;
      }
    }
    builtin_strncpy(str,"Out of memory!",0xf);
    buf = (char *)0x0;
    uVar3 = 0x200;
    modalfatalbox("%s",str);
  }
LAB_0001e34e:
LAB_0001e368:
  uVar2 = __vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap);
  if (uVar2 < uVar3) {
    *oldsize = local_100;
    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
      return buf;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  uVar3 = uVar3 + 0x200;
  if (0 < (int)uVar2) {
    uVar3 = uVar2 + 1;
  }
  local_100 = oldlen + uVar3;
  if (-1 < (int)local_100) goto code_r0x0001e3a9;
  goto LAB_0001e3c3;
code_r0x0001e3a9:
  if (buf == (char *)0x0) {
    buf = (char *)malloc(local_100);
  }
  else {
    buf = (char *)realloc(buf,local_100);
  }
  if (buf == (char *)0x0) {
LAB_0001e3c3:
    builtin_strncpy(str,"Out of memory!",0xf);
    buf = (char *)0x0;
    modalfatalbox("%s",str);
  }
  goto LAB_0001e368;
}



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

void * __regparm3
FUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)

{
  uint uVar1;
  uint uVar2;
  int in_GS_OFFSET;
  size_t local_100;
  undefined4 local_e8;
  undefined4 local_e4;
  undefined4 local_e0;
  undefined2 local_dc;
  undefined1 local_da;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e2fb;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_100 = *param_3;
  if ((int)local_100 < param_2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");
  }
  uVar2 = local_100 - param_2;
  if (uVar2 == 0) {
    local_100 = param_2 + 0x200;
    if (-1 < (int)local_100) {
      if (param_1 == (void *)0x0) {
        param_1 = malloc(local_100);
      }
      else {
        param_1 = realloc(param_1,local_100);
      }
      if (param_1 != (void *)0x0) {
        uVar2 = 0x200;
        goto LAB_0001e34e;
      }
    }
    local_da = 0;
    param_1 = (void *)0x0;
    local_e8 = 0x2074754f;
    uVar2 = 0x200;
    local_e4 = 0x6d20666f;
    local_e0 = 0x726f6d65;
    local_dc = 0x2179;
    FUN_000812d0("%s",&local_e8);
  }
LAB_0001e34e:
LAB_0001e368:
  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);
  if (uVar1 < uVar2) {
    *param_3 = local_100;
    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
      return param_1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_00089270();
  }
  uVar2 = uVar2 + 0x200;
  if (0 < (int)uVar1) {
    uVar2 = uVar1 + 1;
  }
  local_100 = param_2 + uVar2;
  if (-1 < (int)local_100) goto code_r0x0001e3a9;
  goto LAB_0001e3c3;
code_r0x0001e3a9:
  if (param_1 == (void *)0x0) {
    param_1 = malloc(local_100);
  }
  else {
    param_1 = realloc(param_1,local_100);
  }
  if (param_1 == (void *)0x0) {
LAB_0001e3c3:
    local_da = 0;
    param_1 = (void *)0x0;
    local_e8 = 0x2074754f;
    local_e4 = 0x6d20666f;
    local_e0 = 0x726f6d65;
    local_dc = 0x2179;
    FUN_000812d0("%s",&local_e8);
  }
  goto LAB_0001e368;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00015ff0
ADD EBX,0xa8a75
SUB ESP,0xfc
MOV EAX,dword ptr [ESP + 0x110]
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0x1c],ECX
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x114]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xec],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ECX]
MOV dword ptr [ESP + 0xc],EAX
CMP EAX,EDX
JL 0x0001e4df
MOV EDI,EAX
SUB EDI,dword ptr [ESP + 0x8]
JZ 0x0001e448
LEA EAX,[EBX + 0xfffd29a9]
LEA EBP,[ESP + 0x24]
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,ESI
MOV ESI,EDI
MOV EDI,EAX
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
PUSH -0x1
PUSH 0x1
PUSH ESI
MOV EAX,dword ptr [ESP + 0x24]
ADD EAX,EDI
PUSH EAX
CALL 0x000145a0
ADD ESP,0x20
CMP ESI,EAX
JA 0x0001e418
LEA ECX,[EAX + 0x1]
ADD ESI,0x200
TEST EAX,EAX
MOV EAX,dword ptr [ESP + 0x8]
CMOVG ESI,ECX
ADD EAX,ESI
MOV dword ptr [ESP + 0xc],EAX
JS 0x0001e3c3
TEST EDI,EDI
JZ 0x0001e400
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH EDI
CALL 0x00014350
ADD ESP,0x10
MOV EDI,EAX
TEST EDI,EDI
JNZ 0x0001e368
SUB ESP,0x8
MOV EAX,0x2179
MOV byte ptr [EBP + 0xe],0x0
XOR EDI,EDI
MOV dword ptr [EBP],0x2074754f
MOV dword ptr [EBP + 0x4],0x6d20666f
MOV dword ptr [EBP + 0x8],0x726f6d65
MOV word ptr [EBP + 0xc],AX
PUSH EBP
PUSH dword ptr [ESP + 0x24]
CALL 0x000812d0
ADD ESP,0x10
JMP 0x0001e368
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x00014360
ADD ESP,0x10
MOV EDI,EAX
JMP 0x0001e3bf
MOV EAX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],EDX
MOV EAX,EDI
MOV EDX,dword ptr [ESP + 0xec]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x0001e4da
ADD ESP,0xfc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EDX
ADD EAX,0x200
MOV dword ptr [ESP + 0xc],EAX
JS 0x0001e490
TEST ESI,ESI
JZ 0x0001e479
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH ESI
CALL 0x00014350
ADD ESP,0x10
MOV ESI,EAX
TEST ESI,ESI
JZ 0x0001e490
MOV EDI,0x200
JMP 0x0001e34e
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x00014360
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0001e46b
MOV EDX,0x2179
MOV byte ptr [ESP + 0x32],0x0
LEA EAX,[ESP + 0x24]
XOR ESI,ESI
MOV dword ptr [ESP + 0x24],0x2074754f
SUB ESP,0x8
MOV EDI,0x200
MOV dword ptr [ESP + 0x30],0x6d20666f
MOV dword ptr [ESP + 0x34],0x726f6d65
MOV word ptr [ESP + 0x38],DX
PUSH EAX
LEA EAX,[EBX + 0xfffd29a9]
PUSH EAX
CALL 0x000812d0
ADD ESP,0x10
JMP 0x0001e34e
CALL 0x00089270
LEA EAX,[EBX + 0xfffc4614]
PUSH EAX
LEA EAX,[EBX + 0xfffc3317]
PUSH 0x193
PUSH EAX
LEA EAX,[EBX + 0xfffc4432]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * __regparm3\nFUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  size_t local_100;\n  undefined4 local_e8;\n  undefined4 local_e4;\n  undefined4 local_e0;\n  undefined2 local_dc;\n  undefined1 local_da;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e2fb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *param_3;\n  if ((int)local_100 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar2 = local_100 - param_2;\n  if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);\n  if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }\n  uVar2 = uVar2 + 0x200;\n  if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }\n  local_100 = param_2 + uVar2;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }\n  if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\n  goto LAB_0001e368;\n}\n\n" comment (function_definition "void * __regparm3\nFUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  size_t local_100;\n  undefined4 local_e8;\n  undefined4 local_e4;\n  undefined4 local_e0;\n  undefined2 local_dc;\n  undefined1 local_da;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e2fb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *param_3;\n  if ((int)local_100 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar2 = local_100 - param_2;\n  if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);\n  if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }\n  uVar2 = uVar2 + 0x200;\n  if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }\n  local_100 = param_2 + uVar2;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }\n  if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\n  goto LAB_0001e368;\n}" primitive_type (pointer_declarator "* __regparm3\nFUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" identifier (parameter_list "(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "size_t *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  size_t local_100;\n  undefined4 local_e8;\n  undefined4 local_e4;\n  undefined4 local_e0;\n  undefined2 local_dc;\n  undefined1 local_da;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e2fb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *param_3;\n  if ((int)local_100 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar2 = local_100 - param_2;\n  if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);\n  if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }\n  uVar2 = uVar2 + 0x200;\n  if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }\n  local_100 = param_2 + uVar2;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }\n  if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\n  goto LAB_0001e368;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t local_100;" primitive_type identifier ;) (declaration "undefined4 local_e8;" type_identifier identifier ;) (declaration "undefined4 local_e4;" type_identifier identifier ;) (declaration "undefined4 local_e0;" type_identifier identifier ;) (declaration "undefined2 local_dc;" type_identifier identifier ;) (declaration "undefined1 local_da;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e2fb;" (assignment_expression "uStack_14 = 0x1e2fb" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_100 = *param_3;" (assignment_expression "local_100 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if ((int)local_100 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }" if (parenthesized_expression "((int)local_100 < param_2)" ( (binary_expression "(int)local_100 < param_2" (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }" { comment (expression_statement "__assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");" (call_expression "__assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner")" identifier (argument_list "("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner")" ( (string_literal ""*oldsize >= oldlen"" " string_content ") , (string_literal ""misc.c"" " string_content ") , number_literal , (string_literal ""dupvprintf_inner"" " string_content ") ))) ;) })) (expression_statement "uVar2 = local_100 - param_2;" (assignment_expression "uVar2 = local_100 - param_2" identifier = (binary_expression "local_100 - param_2" identifier - identifier)) ;) (if_statement "if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" { (expression_statement "local_100 = param_2 + 0x200;" (assignment_expression "local_100 = param_2 + 0x200" identifier = (binary_expression "param_2 + 0x200" identifier + number_literal)) ;) (if_statement "if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }" if (parenthesized_expression "(-1 < (int)local_100)" ( (binary_expression "-1 < (int)local_100" number_literal < (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }" { (if_statement "if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_1 = malloc(local_100);\n      }" { (expression_statement "param_1 = malloc(local_100);" (assignment_expression "param_1 = malloc(local_100)" identifier = (call_expression "malloc(local_100)" identifier (argument_list "(local_100)" ( identifier )))) ;) }) (else_clause "else {\n        param_1 = realloc(param_1,local_100);\n      }" else (compound_statement "{\n        param_1 = realloc(param_1,local_100);\n      }" { (expression_statement "param_1 = realloc(param_1,local_100);" (assignment_expression "param_1 = realloc(param_1,local_100)" identifier = (call_expression "realloc(param_1,local_100)" identifier (argument_list "(param_1,local_100)" ( identifier , identifier )))) ;) }))) (if_statement "if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }" if (parenthesized_expression "(param_1 != (void *)0x0)" ( (binary_expression "param_1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }" { (expression_statement "uVar2 = 0x200;" (assignment_expression "uVar2 = 0x200" identifier = number_literal) ;) (goto_statement "goto LAB_0001e34e;" goto statement_identifier ;) })) })) (expression_statement "local_da = 0;" (assignment_expression "local_da = 0" identifier = number_literal) ;) (expression_statement "param_1 = (void *)0x0;" (assignment_expression "param_1 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_e8 = 0x2074754f;" (assignment_expression "local_e8 = 0x2074754f" identifier = number_literal) ;) (expression_statement "uVar2 = 0x200;" (assignment_expression "uVar2 = 0x200" identifier = number_literal) ;) (expression_statement "local_e4 = 0x6d20666f;" (assignment_expression "local_e4 = 0x6d20666f" identifier = number_literal) ;) (expression_statement "local_e0 = 0x726f6d65;" (assignment_expression "local_e0 = 0x726f6d65" identifier = number_literal) ;) (expression_statement "local_dc = 0x2179;" (assignment_expression "local_dc = 0x2179" identifier = number_literal) ;) (expression_statement "FUN_000812d0("%s",&local_e8);" (call_expression "FUN_000812d0("%s",&local_e8)" identifier (argument_list "("%s",&local_e8)" ( (string_literal ""%s"" " string_content ") , (pointer_expression "&local_e8" & identifier) ))) ;) })) (labeled_statement "LAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" statement_identifier : (labeled_statement "LAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" statement_identifier : (expression_statement "uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" (assignment_expression "uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" identifier = (call_expression "__vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" identifier (argument_list "(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" ( (binary_expression "param_2 + (int)param_1" identifier + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier , number_literal , number_literal , identifier , identifier )))) ;))) (if_statement "if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }" if (parenthesized_expression "(uVar1 < uVar2)" ( (binary_expression "uVar1 < uVar2" identifier < identifier) )) (compound_statement "{\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }" { (expression_statement "*param_3 = local_100;" (assignment_expression "*param_3 = local_100" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) comment (expression_statement "FUN_00089270();" (call_expression "FUN_00089270()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = uVar2 + 0x200;" (assignment_expression "uVar2 = uVar2 + 0x200" identifier = (binary_expression "uVar2 + 0x200" identifier + number_literal)) ;) (if_statement "if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }" if (parenthesized_expression "(0 < (int)uVar1)" ( (binary_expression "0 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar2 = uVar1 + 1;\n  }" { (expression_statement "uVar2 = uVar1 + 1;" (assignment_expression "uVar2 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "local_100 = param_2 + uVar2;" (assignment_expression "local_100 = param_2 + uVar2" identifier = (binary_expression "param_2 + uVar2" identifier + identifier)) ;) (if_statement "if (-1 < (int)local_100) goto code_r0x0001e3a9;" if (parenthesized_expression "(-1 < (int)local_100)" ( (binary_expression "-1 < (int)local_100" number_literal < (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto code_r0x0001e3a9;" goto statement_identifier ;)) (goto_statement "goto LAB_0001e3c3;" goto statement_identifier ;) (labeled_statement "code_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }" statement_identifier : (if_statement "if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = malloc(local_100);\n  }" { (expression_statement "param_1 = malloc(local_100);" (assignment_expression "param_1 = malloc(local_100)" identifier = (call_expression "malloc(local_100)" identifier (argument_list "(local_100)" ( identifier )))) ;) }) (else_clause "else {\n    param_1 = realloc(param_1,local_100);\n  }" else (compound_statement "{\n    param_1 = realloc(param_1,local_100);\n  }" { (expression_statement "param_1 = realloc(param_1,local_100);" (assignment_expression "param_1 = realloc(param_1,local_100)" identifier = (call_expression "realloc(param_1,local_100)" identifier (argument_list "(param_1,local_100)" ( identifier , identifier )))) ;) })))) (if_statement "if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" { (labeled_statement "LAB_0001e3c3:\n    local_da = 0;" statement_identifier : (expression_statement "local_da = 0;" (assignment_expression "local_da = 0" identifier = number_literal) ;)) (expression_statement "param_1 = (void *)0x0;" (assignment_expression "param_1 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_e8 = 0x2074754f;" (assignment_expression "local_e8 = 0x2074754f" identifier = number_literal) ;) (expression_statement "local_e4 = 0x6d20666f;" (assignment_expression "local_e4 = 0x6d20666f" identifier = number_literal) ;) (expression_statement "local_e0 = 0x726f6d65;" (assignment_expression "local_e0 = 0x726f6d65" identifier = number_literal) ;) (expression_statement "local_dc = 0x2179;" (assignment_expression "local_dc = 0x2179" identifier = number_literal) ;) (expression_statement "FUN_000812d0("%s",&local_e8);" (call_expression "FUN_000812d0("%s",&local_e8)" identifier (argument_list "("%s",&local_e8)" ( (string_literal ""%s"" " string_content ") , (pointer_expression "&local_e8" & identifier) ))) ;) })) (goto_statement "goto LAB_0001e368;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 dupvprintf_inner(char *buf,int oldlen,int *oldsize,char *fmt,va_list ap)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  size_t local_100;\n  char str [200];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *oldsize;\n  if ((int)local_100 < oldlen) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar3 = local_100 - oldlen;\n  if (uVar3 == 0) {\n    local_100 = oldlen + 0x200;\n    if (-1 < (int)local_100) {\n      if (buf == (char *)0x0) {\n        buf = (char *)malloc(local_100);\n      }\n      else {\n        buf = (char *)realloc(buf,local_100);\n      }\n      if (buf != (char *)0x0) {\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    uVar3 = 0x200;\n    modalfatalbox("%s",str);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar2 = __vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap);\n  if (uVar2 < uVar3) {\n    *oldsize = local_100;\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return buf;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  uVar3 = uVar3 + 0x200;\n  if (0 < (int)uVar2) {\n    uVar3 = uVar2 + 1;\n  }\n  local_100 = oldlen + uVar3;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (buf == (char *)0x0) {\n    buf = (char *)malloc(local_100);\n  }\n  else {\n    buf = (char *)realloc(buf,local_100);\n  }\n  if (buf == (char *)0x0) {\nLAB_0001e3c3:\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    modalfatalbox("%s",str);\n  }\n  goto LAB_0001e368;\n}\n\n" comment (function_definition "char * __regparm3 dupvprintf_inner(char *buf,int oldlen,int *oldsize,char *fmt,va_list ap)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  size_t local_100;\n  char str [200];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *oldsize;\n  if ((int)local_100 < oldlen) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar3 = local_100 - oldlen;\n  if (uVar3 == 0) {\n    local_100 = oldlen + 0x200;\n    if (-1 < (int)local_100) {\n      if (buf == (char *)0x0) {\n        buf = (char *)malloc(local_100);\n      }\n      else {\n        buf = (char *)realloc(buf,local_100);\n      }\n      if (buf != (char *)0x0) {\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    uVar3 = 0x200;\n    modalfatalbox("%s",str);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar2 = __vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap);\n  if (uVar2 < uVar3) {\n    *oldsize = local_100;\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return buf;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  uVar3 = uVar3 + 0x200;\n  if (0 < (int)uVar2) {\n    uVar3 = uVar2 + 1;\n  }\n  local_100 = oldlen + uVar3;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (buf == (char *)0x0) {\n    buf = (char *)malloc(local_100);\n  }\n  else {\n    buf = (char *)realloc(buf,local_100);\n  }\n  if (buf == (char *)0x0) {\nLAB_0001e3c3:\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    modalfatalbox("%s",str);\n  }\n  goto LAB_0001e368;\n}" primitive_type (pointer_declarator "* __regparm3 dupvprintf_inner(char *buf,int oldlen,int *oldsize,char *fmt,va_list ap)" * (ERROR "__regparm3" identifier) (function_declarator "dupvprintf_inner(char *buf,int oldlen,int *oldsize,char *fmt,va_list ap)" identifier (parameter_list "(char *buf,int oldlen,int *oldsize,char *fmt,va_list ap)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int oldlen" primitive_type identifier) , (parameter_declaration "int *oldsize" primitive_type (pointer_declarator "*oldsize" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (parameter_declaration "va_list ap" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  size_t local_100;\n  char str [200];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *oldsize;\n  if ((int)local_100 < oldlen) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar3 = local_100 - oldlen;\n  if (uVar3 == 0) {\n    local_100 = oldlen + 0x200;\n    if (-1 < (int)local_100) {\n      if (buf == (char *)0x0) {\n        buf = (char *)malloc(local_100);\n      }\n      else {\n        buf = (char *)realloc(buf,local_100);\n      }\n      if (buf != (char *)0x0) {\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    uVar3 = 0x200;\n    modalfatalbox("%s",str);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar2 = __vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap);\n  if (uVar2 < uVar3) {\n    *oldsize = local_100;\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return buf;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  uVar3 = uVar3 + 0x200;\n  if (0 < (int)uVar2) {\n    uVar3 = uVar2 + 1;\n  }\n  local_100 = oldlen + uVar3;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (buf == (char *)0x0) {\n    buf = (char *)malloc(local_100);\n  }\n  else {\n    buf = (char *)realloc(buf,local_100);\n  }\n  if (buf == (char *)0x0) {\nLAB_0001e3c3:\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    modalfatalbox("%s",str);\n  }\n  goto LAB_0001e368;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t local_100;" primitive_type identifier ;) (declaration "char str [200];" primitive_type (array_declarator "str [200]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_100 = *oldsize;" (assignment_expression "local_100 = *oldsize" identifier = (pointer_expression "*oldsize" * identifier)) ;) (if_statement "if ((int)local_100 < oldlen) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }" if (parenthesized_expression "((int)local_100 < oldlen)" ( (binary_expression "(int)local_100 < oldlen" (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }" { comment (expression_statement "__assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");" (call_expression "__assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner")" identifier (argument_list "("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner")" ( (string_literal ""*oldsize >= oldlen"" " string_content ") , (string_literal ""misc.c"" " string_content ") , number_literal , (string_literal ""dupvprintf_inner"" " string_content ") ))) ;) })) (expression_statement "uVar3 = local_100 - oldlen;" (assignment_expression "uVar3 = local_100 - oldlen" identifier = (binary_expression "local_100 - oldlen" identifier - identifier)) ;) (if_statement "if (uVar3 == 0) {\n    local_100 = oldlen + 0x200;\n    if (-1 < (int)local_100) {\n      if (buf == (char *)0x0) {\n        buf = (char *)malloc(local_100);\n      }\n      else {\n        buf = (char *)realloc(buf,local_100);\n      }\n      if (buf != (char *)0x0) {\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    uVar3 = 0x200;\n    modalfatalbox("%s",str);\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_100 = oldlen + 0x200;\n    if (-1 < (int)local_100) {\n      if (buf == (char *)0x0) {\n        buf = (char *)malloc(local_100);\n      }\n      else {\n        buf = (char *)realloc(buf,local_100);\n      }\n      if (buf != (char *)0x0) {\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    uVar3 = 0x200;\n    modalfatalbox("%s",str);\n  }" { (expression_statement "local_100 = oldlen + 0x200;" (assignment_expression "local_100 = oldlen + 0x200" identifier = (binary_expression "oldlen + 0x200" identifier + number_literal)) ;) (if_statement "if (-1 < (int)local_100) {\n      if (buf == (char *)0x0) {\n        buf = (char *)malloc(local_100);\n      }\n      else {\n        buf = (char *)realloc(buf,local_100);\n      }\n      if (buf != (char *)0x0) {\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }" if (parenthesized_expression "(-1 < (int)local_100)" ( (binary_expression "-1 < (int)local_100" number_literal < (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      if (buf == (char *)0x0) {\n        buf = (char *)malloc(local_100);\n      }\n      else {\n        buf = (char *)realloc(buf,local_100);\n      }\n      if (buf != (char *)0x0) {\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }" { (if_statement "if (buf == (char *)0x0) {\n        buf = (char *)malloc(local_100);\n      }\n      else {\n        buf = (char *)realloc(buf,local_100);\n      }" if (parenthesized_expression "(buf == (char *)0x0)" ( (binary_expression "buf == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        buf = (char *)malloc(local_100);\n      }" { (expression_statement "buf = (char *)malloc(local_100);" (assignment_expression "buf = (char *)malloc(local_100)" identifier = (cast_expression "(char *)malloc(local_100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(local_100)" identifier (argument_list "(local_100)" ( identifier ))))) ;) }) (else_clause "else {\n        buf = (char *)realloc(buf,local_100);\n      }" else (compound_statement "{\n        buf = (char *)realloc(buf,local_100);\n      }" { (expression_statement "buf = (char *)realloc(buf,local_100);" (assignment_expression "buf = (char *)realloc(buf,local_100)" identifier = (cast_expression "(char *)realloc(buf,local_100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(buf,local_100)" identifier (argument_list "(buf,local_100)" ( identifier , identifier ))))) ;) }))) (if_statement "if (buf != (char *)0x0) {\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }" if (parenthesized_expression "(buf != (char *)0x0)" ( (binary_expression "buf != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar3 = 0x200;\n        goto LAB_0001e34e;\n      }" { (expression_statement "uVar3 = 0x200;" (assignment_expression "uVar3 = 0x200" identifier = number_literal) ;) (goto_statement "goto LAB_0001e34e;" goto statement_identifier ;) })) })) (expression_statement "builtin_strncpy(str,"Out of memory!",0xf);" (call_expression "builtin_strncpy(str,"Out of memory!",0xf)" identifier (argument_list "(str,"Out of memory!",0xf)" ( identifier , (string_literal ""Out of memory!"" " string_content ") , number_literal ))) ;) (expression_statement "buf = (char *)0x0;" (assignment_expression "buf = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar3 = 0x200;" (assignment_expression "uVar3 = 0x200" identifier = number_literal) ;) (expression_statement "modalfatalbox("%s",str);" (call_expression "modalfatalbox("%s",str)" identifier (argument_list "("%s",str)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (labeled_statement "LAB_0001e34e:\nLAB_0001e368:\n  uVar2 = __vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap);" statement_identifier : (labeled_statement "LAB_0001e368:\n  uVar2 = __vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap);" statement_identifier : (expression_statement "uVar2 = __vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap);" (assignment_expression "uVar2 = __vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap)" identifier = (call_expression "__vsnprintf_chk(buf + oldlen,uVar3,1,0xffffffff,fmt,ap)" identifier (argument_list "(buf + oldlen,uVar3,1,0xffffffff,fmt,ap)" ( (binary_expression "buf + oldlen" identifier + identifier) , identifier , number_literal , number_literal , identifier , identifier )))) ;))) (if_statement "if (uVar2 < uVar3) {\n    *oldsize = local_100;\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return buf;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (compound_statement "{\n    *oldsize = local_100;\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return buf;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { (expression_statement "*oldsize = local_100;" (assignment_expression "*oldsize = local_100" (pointer_expression "*oldsize" * identifier) = identifier) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return buf;\n    }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return buf;\n    }" { (return_statement "return buf;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar3 = uVar3 + 0x200;" (assignment_expression "uVar3 = uVar3 + 0x200" identifier = (binary_expression "uVar3 + 0x200" identifier + number_literal)) ;) (if_statement "if (0 < (int)uVar2) {\n    uVar3 = uVar2 + 1;\n  }" if (parenthesized_expression "(0 < (int)uVar2)" ( (binary_expression "0 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar3 = uVar2 + 1;\n  }" { (expression_statement "uVar3 = uVar2 + 1;" (assignment_expression "uVar3 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "local_100 = oldlen + uVar3;" (assignment_expression "local_100 = oldlen + uVar3" identifier = (binary_expression "oldlen + uVar3" identifier + identifier)) ;) (if_statement "if (-1 < (int)local_100) goto code_r0x0001e3a9;" if (parenthesized_expression "(-1 < (int)local_100)" ( (binary_expression "-1 < (int)local_100" number_literal < (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto code_r0x0001e3a9;" goto statement_identifier ;)) (goto_statement "goto LAB_0001e3c3;" goto statement_identifier ;) (labeled_statement "code_r0x0001e3a9:\n  if (buf == (char *)0x0) {\n    buf = (char *)malloc(local_100);\n  }\n  else {\n    buf = (char *)realloc(buf,local_100);\n  }" statement_identifier : (if_statement "if (buf == (char *)0x0) {\n    buf = (char *)malloc(local_100);\n  }\n  else {\n    buf = (char *)realloc(buf,local_100);\n  }" if (parenthesized_expression "(buf == (char *)0x0)" ( (binary_expression "buf == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    buf = (char *)malloc(local_100);\n  }" { (expression_statement "buf = (char *)malloc(local_100);" (assignment_expression "buf = (char *)malloc(local_100)" identifier = (cast_expression "(char *)malloc(local_100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(local_100)" identifier (argument_list "(local_100)" ( identifier ))))) ;) }) (else_clause "else {\n    buf = (char *)realloc(buf,local_100);\n  }" else (compound_statement "{\n    buf = (char *)realloc(buf,local_100);\n  }" { (expression_statement "buf = (char *)realloc(buf,local_100);" (assignment_expression "buf = (char *)realloc(buf,local_100)" identifier = (cast_expression "(char *)realloc(buf,local_100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "realloc(buf,local_100)" identifier (argument_list "(buf,local_100)" ( identifier , identifier ))))) ;) })))) (if_statement "if (buf == (char *)0x0) {\nLAB_0001e3c3:\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    modalfatalbox("%s",str);\n  }" if (parenthesized_expression "(buf == (char *)0x0)" ( (binary_expression "buf == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0001e3c3:\n    builtin_strncpy(str,"Out of memory!",0xf);\n    buf = (char *)0x0;\n    modalfatalbox("%s",str);\n  }" { (labeled_statement "LAB_0001e3c3:\n    builtin_strncpy(str,"Out of memory!",0xf);" statement_identifier : (expression_statement "builtin_strncpy(str,"Out of memory!",0xf);" (call_expression "builtin_strncpy(str,"Out of memory!",0xf)" identifier (argument_list "(str,"Out of memory!",0xf)" ( identifier , (string_literal ""Out of memory!"" " string_content ") , number_literal ))) ;)) (expression_statement "buf = (char *)0x0;" (assignment_expression "buf = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "modalfatalbox("%s",str);" (call_expression "modalfatalbox("%s",str)" identifier (argument_list "("%s",str)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (goto_statement "goto LAB_0001e368;" goto statement_identifier ;) })))
(translation_unit "void * __regparm3\nFUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  size_t local_100;\n  undefined4 local_e8;\n  undefined4 local_e4;\n  undefined4 local_e0;\n  undefined2 local_dc;\n  undefined1 local_da;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e2fb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *param_3;\n  if ((int)local_100 < param_2) {\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar2 = local_100 - param_2;\n  if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);\n  if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }\n  uVar2 = uVar2 + 0x200;\n  if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }\n  local_100 = param_2 + uVar2;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }\n  if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\n  goto LAB_0001e368;\n}\n\n" (function_definition "void * __regparm3\nFUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  size_t local_100;\n  undefined4 local_e8;\n  undefined4 local_e4;\n  undefined4 local_e0;\n  undefined2 local_dc;\n  undefined1 local_da;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e2fb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *param_3;\n  if ((int)local_100 < param_2) {\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar2 = local_100 - param_2;\n  if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);\n  if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }\n  uVar2 = uVar2 + 0x200;\n  if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }\n  local_100 = param_2 + uVar2;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }\n  if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\n  goto LAB_0001e368;\n}" primitive_type (pointer_declarator "* __regparm3\nFUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" identifier (parameter_list "(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "size_t *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  size_t local_100;\n  undefined4 local_e8;\n  undefined4 local_e4;\n  undefined4 local_e0;\n  undefined2 local_dc;\n  undefined1 local_da;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e2fb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *param_3;\n  if ((int)local_100 < param_2) {\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar2 = local_100 - param_2;\n  if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);\n  if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }\n  uVar2 = uVar2 + 0x200;\n  if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }\n  local_100 = param_2 + uVar2;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }\n  if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\n  goto LAB_0001e368;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t local_100;" primitive_type identifier ;) (declaration "undefined4 local_e8;" type_identifier identifier ;) (declaration "undefined4 local_e4;" type_identifier identifier ;) (declaration "undefined4 local_e0;" type_identifier identifier ;) (declaration "undefined2 local_dc;" type_identifier identifier ;) (declaration "undefined1 local_da;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e2fb;" (assignment_expression "uStack_14 = 0x1e2fb" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_100 = *param_3;" (assignment_expression "local_100 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if ((int)local_100 < param_2) {\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }" if (parenthesized_expression "((int)local_100 < param_2)" ( (binary_expression "(int)local_100 < param_2" (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }" { (expression_statement "__assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");" (call_expression "__assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner")" identifier (argument_list "("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner")" ( (string_literal ""*oldsize >= oldlen"" " string_content ") , (string_literal ""misc.c"" " string_content ") , number_literal , (string_literal ""dupvprintf_inner"" " string_content ") ))) ;) })) (expression_statement "uVar2 = local_100 - param_2;" (assignment_expression "uVar2 = local_100 - param_2" identifier = (binary_expression "local_100 - param_2" identifier - identifier)) ;) (if_statement "if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" { (expression_statement "local_100 = param_2 + 0x200;" (assignment_expression "local_100 = param_2 + 0x200" identifier = (binary_expression "param_2 + 0x200" identifier + number_literal)) ;) (if_statement "if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }" if (parenthesized_expression "(-1 < (int)local_100)" ( (binary_expression "-1 < (int)local_100" number_literal < (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }" { (if_statement "if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_1 = malloc(local_100);\n      }" { (expression_statement "param_1 = malloc(local_100);" (assignment_expression "param_1 = malloc(local_100)" identifier = (call_expression "malloc(local_100)" identifier (argument_list "(local_100)" ( identifier )))) ;) }) (else_clause "else {\n        param_1 = realloc(param_1,local_100);\n      }" else (compound_statement "{\n        param_1 = realloc(param_1,local_100);\n      }" { (expression_statement "param_1 = realloc(param_1,local_100);" (assignment_expression "param_1 = realloc(param_1,local_100)" identifier = (call_expression "realloc(param_1,local_100)" identifier (argument_list "(param_1,local_100)" ( identifier , identifier )))) ;) }))) (if_statement "if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }" if (parenthesized_expression "(param_1 != (void *)0x0)" ( (binary_expression "param_1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }" { (expression_statement "uVar2 = 0x200;" (assignment_expression "uVar2 = 0x200" identifier = number_literal) ;) (goto_statement "goto LAB_0001e34e;" goto statement_identifier ;) })) })) (expression_statement "local_da = 0;" (assignment_expression "local_da = 0" identifier = number_literal) ;) (expression_statement "param_1 = (void *)0x0;" (assignment_expression "param_1 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_e8 = 0x2074754f;" (assignment_expression "local_e8 = 0x2074754f" identifier = number_literal) ;) (expression_statement "uVar2 = 0x200;" (assignment_expression "uVar2 = 0x200" identifier = number_literal) ;) (expression_statement "local_e4 = 0x6d20666f;" (assignment_expression "local_e4 = 0x6d20666f" identifier = number_literal) ;) (expression_statement "local_e0 = 0x726f6d65;" (assignment_expression "local_e0 = 0x726f6d65" identifier = number_literal) ;) (expression_statement "local_dc = 0x2179;" (assignment_expression "local_dc = 0x2179" identifier = number_literal) ;) (expression_statement "FUN_000812d0("%s",&local_e8);" (call_expression "FUN_000812d0("%s",&local_e8)" identifier (argument_list "("%s",&local_e8)" ( (string_literal ""%s"" " string_content ") , (pointer_expression "&local_e8" & identifier) ))) ;) })) (labeled_statement "LAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" statement_identifier : (labeled_statement "LAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" statement_identifier : (expression_statement "uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" (assignment_expression "uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" identifier = (call_expression "__vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" identifier (argument_list "(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" ( (binary_expression "param_2 + (int)param_1" identifier + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier , number_literal , number_literal , identifier , identifier )))) ;))) (if_statement "if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }" if (parenthesized_expression "(uVar1 < uVar2)" ( (binary_expression "uVar1 < uVar2" identifier < identifier) )) (compound_statement "{\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }" { (expression_statement "*param_3 = local_100;" (assignment_expression "*param_3 = local_100" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_00089270();" (call_expression "FUN_00089270()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = uVar2 + 0x200;" (assignment_expression "uVar2 = uVar2 + 0x200" identifier = (binary_expression "uVar2 + 0x200" identifier + number_literal)) ;) (if_statement "if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }" if (parenthesized_expression "(0 < (int)uVar1)" ( (binary_expression "0 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar2 = uVar1 + 1;\n  }" { (expression_statement "uVar2 = uVar1 + 1;" (assignment_expression "uVar2 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) })) (expression_statement "local_100 = param_2 + uVar2;" (assignment_expression "local_100 = param_2 + uVar2" identifier = (binary_expression "param_2 + uVar2" identifier + identifier)) ;) (if_statement "if (-1 < (int)local_100) goto code_r0x0001e3a9;" if (parenthesized_expression "(-1 < (int)local_100)" ( (binary_expression "-1 < (int)local_100" number_literal < (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto code_r0x0001e3a9;" goto statement_identifier ;)) (goto_statement "goto LAB_0001e3c3;" goto statement_identifier ;) (labeled_statement "code_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }" statement_identifier : (if_statement "if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = malloc(local_100);\n  }" { (expression_statement "param_1 = malloc(local_100);" (assignment_expression "param_1 = malloc(local_100)" identifier = (call_expression "malloc(local_100)" identifier (argument_list "(local_100)" ( identifier )))) ;) }) (else_clause "else {\n    param_1 = realloc(param_1,local_100);\n  }" else (compound_statement "{\n    param_1 = realloc(param_1,local_100);\n  }" { (expression_statement "param_1 = realloc(param_1,local_100);" (assignment_expression "param_1 = realloc(param_1,local_100)" identifier = (call_expression "realloc(param_1,local_100)" identifier (argument_list "(param_1,local_100)" ( identifier , identifier )))) ;) })))) (if_statement "if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" { (labeled_statement "LAB_0001e3c3:\n    local_da = 0;" statement_identifier : (expression_statement "local_da = 0;" (assignment_expression "local_da = 0" identifier = number_literal) ;)) (expression_statement "param_1 = (void *)0x0;" (assignment_expression "param_1 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_e8 = 0x2074754f;" (assignment_expression "local_e8 = 0x2074754f" identifier = number_literal) ;) (expression_statement "local_e4 = 0x6d20666f;" (assignment_expression "local_e4 = 0x6d20666f" identifier = number_literal) ;) (expression_statement "local_e0 = 0x726f6d65;" (assignment_expression "local_e0 = 0x726f6d65" identifier = number_literal) ;) (expression_statement "local_dc = 0x2179;" (assignment_expression "local_dc = 0x2179" identifier = number_literal) ;) (expression_statement "FUN_000812d0("%s",&local_e8);" (call_expression "FUN_000812d0("%s",&local_e8)" identifier (argument_list "("%s",&local_e8)" ( (string_literal ""%s"" " string_content ") , (pointer_expression "&local_e8" & identifier) ))) ;) })) (goto_statement "goto LAB_0001e368;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) 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 = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (pointer_expression & IDENT) ))) ;) })) (labeled_statement statement_identifier : (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT , LIT , LIT , IDENT , IDENT )))) ;))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (pointer_expression & IDENT) ))) ;) })) (goto_statement goto statement_identifier ;) })))
(function_definition "void * __regparm3\nFUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  size_t local_100;\n  undefined4 local_e8;\n  undefined4 local_e4;\n  undefined4 local_e0;\n  undefined2 local_dc;\n  undefined1 local_da;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e2fb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *param_3;\n  if ((int)local_100 < param_2) {\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar2 = local_100 - param_2;\n  if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);\n  if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }\n  uVar2 = uVar2 + 0x200;\n  if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }\n  local_100 = param_2 + uVar2;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }\n  if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\n  goto LAB_0001e368;\n}" (primitive_type "void") (pointer_declarator "* __regparm3\nFUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001e2f0(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" (identifier "FUN_0001e2f0") (parameter_list "(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "size_t *param_3" (primitive_type "size_t") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")")))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  size_t local_100;\n  undefined4 local_e8;\n  undefined4 local_e4;\n  undefined4 local_e0;\n  undefined2 local_dc;\n  undefined1 local_da;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e2fb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_100 = *param_3;\n  if ((int)local_100 < param_2) {\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }\n  uVar2 = local_100 - param_2;\n  if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\nLAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);\n  if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }\n  uVar2 = uVar2 + 0x200;\n  if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }\n  local_100 = param_2 + uVar2;\n  if (-1 < (int)local_100) goto code_r0x0001e3a9;\n  goto LAB_0001e3c3;\ncode_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }\n  if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }\n  goto LAB_0001e368;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "size_t local_100;" (primitive_type "size_t") (identifier "local_100") (; ";")) (declaration "undefined4 local_e8;" (type_identifier "undefined4") (identifier "local_e8") (; ";")) (declaration "undefined4 local_e4;" (type_identifier "undefined4") (identifier "local_e4") (; ";")) (declaration "undefined4 local_e0;" (type_identifier "undefined4") (identifier "local_e0") (; ";")) (declaration "undefined2 local_dc;" (type_identifier "undefined2") (identifier "local_dc") (; ";")) (declaration "undefined1 local_da;" (type_identifier "undefined1") (identifier "local_da") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1e2fb;" (assignment_expression "uStack_14 = 0x1e2fb" (identifier "uStack_14") (= "=") (number_literal "0x1e2fb")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_100 = *param_3;" (assignment_expression "local_100 = *param_3" (identifier "local_100") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if ((int)local_100 < param_2) {\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }" (if "if") (parenthesized_expression "((int)local_100 < param_2)" (( "(") (binary_expression "(int)local_100 < param_2" (cast_expression "(int)local_100" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_100")) (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");\n  }" ({ "{") (expression_statement "__assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");" (call_expression "__assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner")" (identifier "__assert_fail") (argument_list "("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner")" (( "(") (string_literal ""*oldsize >= oldlen"" (" """) (string_content "*oldsize >= oldlen") (" """)) (, ",") (string_literal ""misc.c"" (" """) (string_content "misc.c") (" """)) (, ",") (number_literal "0x193") (, ",") (string_literal ""dupvprintf_inner"" (" """) (string_content "dupvprintf_inner") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = local_100 - param_2;" (assignment_expression "uVar2 = local_100 - param_2" (identifier "uVar2") (= "=") (binary_expression "local_100 - param_2" (identifier "local_100") (- "-") (identifier "param_2"))) (; ";")) (if_statement "if (uVar2 == 0) {\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_100 = param_2 + 0x200;\n    if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    uVar2 = 0x200;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" ({ "{") (expression_statement "local_100 = param_2 + 0x200;" (assignment_expression "local_100 = param_2 + 0x200" (identifier "local_100") (= "=") (binary_expression "param_2 + 0x200" (identifier "param_2") (+ "+") (number_literal "0x200"))) (; ";")) (if_statement "if (-1 < (int)local_100) {\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }" (if "if") (parenthesized_expression "(-1 < (int)local_100)" (( "(") (binary_expression "-1 < (int)local_100" (number_literal "-1") (< "<") (cast_expression "(int)local_100" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_100"))) () ")")) (compound_statement "{\n      if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }\n      if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }\n    }" ({ "{") (if_statement "if (param_1 == (void *)0x0) {\n        param_1 = malloc(local_100);\n      }\n      else {\n        param_1 = realloc(param_1,local_100);\n      }" (if "if") (parenthesized_expression "(param_1 == (void *)0x0)" (( "(") (binary_expression "param_1 == (void *)0x0" (identifier "param_1") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        param_1 = malloc(local_100);\n      }" ({ "{") (expression_statement "param_1 = malloc(local_100);" (assignment_expression "param_1 = malloc(local_100)" (identifier "param_1") (= "=") (call_expression "malloc(local_100)" (identifier "malloc") (argument_list "(local_100)" (( "(") (identifier "local_100") () ")")))) (; ";")) (} "}")) (else_clause "else {\n        param_1 = realloc(param_1,local_100);\n      }" (else "else") (compound_statement "{\n        param_1 = realloc(param_1,local_100);\n      }" ({ "{") (expression_statement "param_1 = realloc(param_1,local_100);" (assignment_expression "param_1 = realloc(param_1,local_100)" (identifier "param_1") (= "=") (call_expression "realloc(param_1,local_100)" (identifier "realloc") (argument_list "(param_1,local_100)" (( "(") (identifier "param_1") (, ",") (identifier "local_100") () ")")))) (; ";")) (} "}")))) (if_statement "if (param_1 != (void *)0x0) {\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }" (if "if") (parenthesized_expression "(param_1 != (void *)0x0)" (( "(") (binary_expression "param_1 != (void *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        uVar2 = 0x200;\n        goto LAB_0001e34e;\n      }" ({ "{") (expression_statement "uVar2 = 0x200;" (assignment_expression "uVar2 = 0x200" (identifier "uVar2") (= "=") (number_literal "0x200")) (; ";")) (goto_statement "goto LAB_0001e34e;" (goto "goto") (statement_identifier "LAB_0001e34e") (; ";")) (} "}"))) (} "}"))) (expression_statement "local_da = 0;" (assignment_expression "local_da = 0" (identifier "local_da") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1 = (void *)0x0;" (assignment_expression "param_1 = (void *)0x0" (identifier "param_1") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_e8 = 0x2074754f;" (assignment_expression "local_e8 = 0x2074754f" (identifier "local_e8") (= "=") (number_literal "0x2074754f")) (; ";")) (expression_statement "uVar2 = 0x200;" (assignment_expression "uVar2 = 0x200" (identifier "uVar2") (= "=") (number_literal "0x200")) (; ";")) (expression_statement "local_e4 = 0x6d20666f;" (assignment_expression "local_e4 = 0x6d20666f" (identifier "local_e4") (= "=") (number_literal "0x6d20666f")) (; ";")) (expression_statement "local_e0 = 0x726f6d65;" (assignment_expression "local_e0 = 0x726f6d65" (identifier "local_e0") (= "=") (number_literal "0x726f6d65")) (; ";")) (expression_statement "local_dc = 0x2179;" (assignment_expression "local_dc = 0x2179" (identifier "local_dc") (= "=") (number_literal "0x2179")) (; ";")) (expression_statement "FUN_000812d0("%s",&local_e8);" (call_expression "FUN_000812d0("%s",&local_e8)" (identifier "FUN_000812d0") (argument_list "("%s",&local_e8)" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (pointer_expression "&local_e8" (& "&") (identifier "local_e8")) () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0001e34e:\nLAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" (statement_identifier "LAB_0001e34e") (: ":") (labeled_statement "LAB_0001e368:\n  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" (statement_identifier "LAB_0001e368") (: ":") (expression_statement "uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);" (assignment_expression "uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" (identifier "uVar1") (= "=") (call_expression "__vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" (identifier "__vsnprintf_chk") (argument_list "(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5)" (( "(") (binary_expression "param_2 + (int)param_1" (identifier "param_2") (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (, ",") (identifier "uVar2") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")))) (if_statement "if (uVar1 < uVar2) {\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }" (if "if") (parenthesized_expression "(uVar1 < uVar2)" (( "(") (binary_expression "uVar1 < uVar2" (identifier "uVar1") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    *param_3 = local_100;\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }\n                    \n    FUN_00089270();\n  }" ({ "{") (expression_statement "*param_3 = local_100;" (assignment_expression "*param_3 = local_100" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "local_100")) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_00089270();" (call_expression "FUN_00089270()" (identifier "FUN_00089270") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = uVar2 + 0x200;" (assignment_expression "uVar2 = uVar2 + 0x200" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 0x200" (identifier "uVar2") (+ "+") (number_literal "0x200"))) (; ";")) (if_statement "if (0 < (int)uVar1) {\n    uVar2 = uVar1 + 1;\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar1)" (( "(") (binary_expression "0 < (int)uVar1" (number_literal "0") (< "<") (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1"))) () ")")) (compound_statement "{\n    uVar2 = uVar1 + 1;\n  }" ({ "{") (expression_statement "uVar2 = uVar1 + 1;" (assignment_expression "uVar2 = uVar1 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_100 = param_2 + uVar2;" (assignment_expression "local_100 = param_2 + uVar2" (identifier "local_100") (= "=") (binary_expression "param_2 + uVar2" (identifier "param_2") (+ "+") (identifier "uVar2"))) (; ";")) (if_statement "if (-1 < (int)local_100) goto code_r0x0001e3a9;" (if "if") (parenthesized_expression "(-1 < (int)local_100)" (( "(") (binary_expression "-1 < (int)local_100" (number_literal "-1") (< "<") (cast_expression "(int)local_100" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_100"))) () ")")) (goto_statement "goto code_r0x0001e3a9;" (goto "goto") (statement_identifier "code_r0x0001e3a9") (; ";"))) (goto_statement "goto LAB_0001e3c3;" (goto "goto") (statement_identifier "LAB_0001e3c3") (; ";")) (labeled_statement "code_r0x0001e3a9:\n  if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }" (statement_identifier "code_r0x0001e3a9") (: ":") (if_statement "if (param_1 == (void *)0x0) {\n    param_1 = malloc(local_100);\n  }\n  else {\n    param_1 = realloc(param_1,local_100);\n  }" (if "if") (parenthesized_expression "(param_1 == (void *)0x0)" (( "(") (binary_expression "param_1 == (void *)0x0" (identifier "param_1") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_1 = malloc(local_100);\n  }" ({ "{") (expression_statement "param_1 = malloc(local_100);" (assignment_expression "param_1 = malloc(local_100)" (identifier "param_1") (= "=") (call_expression "malloc(local_100)" (identifier "malloc") (argument_list "(local_100)" (( "(") (identifier "local_100") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    param_1 = realloc(param_1,local_100);\n  }" (else "else") (compound_statement "{\n    param_1 = realloc(param_1,local_100);\n  }" ({ "{") (expression_statement "param_1 = realloc(param_1,local_100);" (assignment_expression "param_1 = realloc(param_1,local_100)" (identifier "param_1") (= "=") (call_expression "realloc(param_1,local_100)" (identifier "realloc") (argument_list "(param_1,local_100)" (( "(") (identifier "param_1") (, ",") (identifier "local_100") () ")")))) (; ";")) (} "}"))))) (if_statement "if (param_1 == (void *)0x0) {\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" (if "if") (parenthesized_expression "(param_1 == (void *)0x0)" (( "(") (binary_expression "param_1 == (void *)0x0" (identifier "param_1") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_0001e3c3:\n    local_da = 0;\n    param_1 = (void *)0x0;\n    local_e8 = 0x2074754f;\n    local_e4 = 0x6d20666f;\n    local_e0 = 0x726f6d65;\n    local_dc = 0x2179;\n    FUN_000812d0("%s",&local_e8);\n  }" ({ "{") (labeled_statement "LAB_0001e3c3:\n    local_da = 0;" (statement_identifier "LAB_0001e3c3") (: ":") (expression_statement "local_da = 0;" (assignment_expression "local_da = 0" (identifier "local_da") (= "=") (number_literal "0")) (; ";"))) (expression_statement "param_1 = (void *)0x0;" (assignment_expression "param_1 = (void *)0x0" (identifier "param_1") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_e8 = 0x2074754f;" (assignment_expression "local_e8 = 0x2074754f" (identifier "local_e8") (= "=") (number_literal "0x2074754f")) (; ";")) (expression_statement "local_e4 = 0x6d20666f;" (assignment_expression "local_e4 = 0x6d20666f" (identifier "local_e4") (= "=") (number_literal "0x6d20666f")) (; ";")) (expression_statement "local_e0 = 0x726f6d65;" (assignment_expression "local_e0 = 0x726f6d65" (identifier "local_e0") (= "=") (number_literal "0x726f6d65")) (; ";")) (expression_statement "local_dc = 0x2179;" (assignment_expression "local_dc = 0x2179" (identifier "local_dc") (= "=") (number_literal "0x2179")) (; ";")) (expression_statement "FUN_000812d0("%s",&local_e8);" (call_expression "FUN_000812d0("%s",&local_e8)" (identifier "FUN_000812d0") (argument_list "("%s",&local_e8)" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (pointer_expression "&local_e8" (& "&") (identifier "local_e8")) () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0001e368;" (goto "goto") (statement_identifier "LAB_0001e368") (; ";")) (} "}")))

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

char * __regparm3 function_1(char *var_6,int var_2,int *oldsize,char *fmt,type_1 ap)

{
  int var_13;
  type_2 var_12;
  type_2 var_5;
  int var_1;
  size_t var_4;
  char str [200];
  
  var_13 = *(int *)(var_1 + 0x14);
  var_4 = *oldsize;
  if ((int)var_4 < var_2) {
                    /* WARNING: Subroutine does not return */
    var_3("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");
  }
  var_5 = var_4 - var_2;
  if (var_5 == 0) {
    var_4 = var_2 + 0x200;
    if (-1 < (int)var_4) {
      if (var_6 == (char *)0x0) {
        var_6 = (char *)var_7(var_4);
      }
      else {
        var_6 = (char *)var_8(var_6,var_4);
      }
      if (var_6 != (char *)0x0) {
        var_5 = 0x200;
        goto LAB_0001e34e;
      }
    }
    var_9(str,"Out of memory!",0xf);
    var_6 = (char *)0x0;
    var_5 = 0x200;
    var_10("%s",str);
  }
LAB_0001e34e:
LAB_0001e368:
  var_12 = var_11(var_6 + var_2,var_5,1,0xffffffff,fmt,ap);
  if (var_12 < var_5) {
    *oldsize = var_4;
    if (var_13 == *(int *)(var_1 + 0x14)) {
      return var_6;
    }
                    /* WARNING: Subroutine does not return */
    var_14();
  }
  var_5 = var_5 + 0x200;
  if (0 < (int)var_12) {
    var_5 = var_12 + 1;
  }
  var_4 = var_2 + var_5;
  if (-1 < (int)var_4) goto code_r0x0001e3a9;
  goto LAB_0001e3c3;
code_r0x0001e3a9:
  if (var_6 == (char *)0x0) {
    var_6 = (char *)var_7(var_4);
  }
  else {
    var_6 = (char *)var_8(var_6,var_4);
  }
  if (var_6 == (char *)0x0) {
LAB_0001e3c3:
    var_9(str,"Out of memory!",0xf);
    var_6 = (char *)0x0;
    var_10("%s",str);
  }
  goto LAB_0001e368;
}


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

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

void * __regparm3
MASKED(void *param_1,int param_2,size_t *param_3,undefined4 param_4,undefined4 param_5)

{
  uint uVar1;
  uint uVar2;
  int in_GS_OFFSET;
  size_t local_100;
  undefined4 local_e8;
  undefined4 local_e4;
  undefined4 local_e0;
  undefined2 local_dc;
  undefined1 local_da;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e2fb;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_100 = *param_3;
  if ((int)local_100 < param_2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("*oldsize >= oldlen","misc.c",0x193,"dupvprintf_inner");
  }
  uVar2 = local_100 - param_2;
  if (uVar2 == 0) {
    local_100 = param_2 + 0x200;
    if (-1 < (int)local_100) {
      if (param_1 == (void *)0x0) {
        param_1 = malloc(local_100);
      }
      else {
        param_1 = realloc(param_1,local_100);
      }
      if (param_1 != (void *)0x0) {
        uVar2 = 0x200;
        goto LAB_0001e34e;
      }
    }
    local_da = 0;
    param_1 = (void *)0x0;
    local_e8 = 0x2074754f;
    uVar2 = 0x200;
    local_e4 = 0x6d20666f;
    local_e0 = 0x726f6d65;
    local_dc = 0x2179;
    FUN_000812d0("%s",&local_e8);
  }
LAB_0001e34e:
LAB_0001e368:
  uVar1 = __vsnprintf_chk(param_2 + (int)param_1,uVar2,1,0xffffffff,param_4,param_5);
  if (uVar1 < uVar2) {
    *param_3 = local_100;
    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
      return param_1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_00089270();
  }
  uVar2 = uVar2 + 0x200;
  if (0 < (int)uVar1) {
    uVar2 = uVar1 + 1;
  }
  local_100 = param_2 + uVar2;
  if (-1 < (int)local_100) goto code_r0x0001e3a9;
  goto LAB_0001e3c3;
code_r0x0001e3a9:
  if (param_1 == (void *)0x0) {
    param_1 = malloc(local_100);
  }
  else {
    param_1 = realloc(param_1,local_100);
  }
  if (param_1 == (void *)0x0) {
LAB_0001e3c3:
    local_da = 0;
    param_1 = (void *)0x0;
    local_e8 = 0x2074754f;
    local_e4 = 0x6d20666f;
    local_e0 = 0x726f6d65;
    local_dc = 0x2179;
    FUN_000812d0("%s",&local_e8);
  }
  goto LAB_0001e368;
}

