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

void xmalloc_failed(size_t size)

{
  void *pvVar1;
  int iVar2;
  char *pcVar3;
  
  pcVar3 = first_break;
  if (first_break == (char *)0x0) {
    pvVar1 = sbrk(0);
    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;
  }
  else {
    pvVar1 = sbrk(0);
    iVar2 = (int)pvVar1 - (int)pcVar3;
  }
  pcVar3 = ": ";
  if (*name == '\0') {
    pcVar3 = "";
  }
  fprintf(*(FILE **)PTR_stderr_000b3fc4,
          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3,size,
          iVar2);
                    /* WARNING: Subroutine does not return */
  xexit(1);
}



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

void FUN_0006af50(undefined4 param_1)

{
  void *pvVar1;
  int iVar2;
  char *pcVar3;
  
  iVar2 = DAT_000b9d74;
  if (DAT_000b9d74 == 0) {
    pvVar1 = sbrk(0);
    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;
  }
  else {
    pvVar1 = sbrk(0);
    iVar2 = (int)pvVar1 - iVar2;
  }
  pcVar3 = ": ";
  if (*PTR_DAT_000b5300 == '\0') {
    pcVar3 = "";
  }
  fprintf(*(FILE **)PTR_stderr_000b3fc4,
          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,
          pcVar3,param_1,iVar2);
                    /* WARNING: Subroutine does not return */
  FUN_0006aed0(1);
}


PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x490a9
SUB ESP,0x4
MOV ESI,dword ptr [EBX + 0x5d74]
TEST ESI,ESI
JZ 0x0006afb9
SUB ESP,0xc
PUSH 0x0
CALL 0x00013390
ADD ESP,0x10
SUB EAX,ESI
MOV ECX,dword ptr [EBX + 0x1300]
LEA EDX,[EBX + 0xfffc94a1]
LEA ESI,[EBX + 0xfffc7c5a]
CMP byte ptr [ECX],0x0
CMOVZ EDX,ESI
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfffe57c0]
PUSH dword ptr [ESP + 0x1c]
PUSH EDX
PUSH ECX
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffc4]
PUSH dword ptr [EAX]
CALL 0x00013280
ADD ESP,0x14
PUSH 0x1
CALL 0x0006aed0
SUB ESP,0xc
PUSH 0x0
CALL 0x00013390
ADD ESP,0x10
SUB EAX,dword ptr [EBX + 0xffffffe4]
JMP 0x0006af79
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0006af50(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  iVar2 = DAT_000b9d74;\n  if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }\n  pcVar3 = ": ";\n  if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0006aed0(1);\n}\n\n" comment (function_definition "void FUN_0006af50(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  iVar2 = DAT_000b9d74;\n  if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }\n  pcVar3 = ": ";\n  if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0006aed0(1);\n}" primitive_type (function_declarator "FUN_0006af50(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  iVar2 = DAT_000b9d74;\n  if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }\n  pcVar3 = ": ";\n  if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0006aed0(1);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "iVar2 = DAT_000b9d74;" (assignment_expression "iVar2 = DAT_000b9d74" identifier = identifier) ;) (if_statement "if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" if (parenthesized_expression "(DAT_000b9d74 == 0)" ( (binary_expression "DAT_000b9d74 == 0" identifier == number_literal) )) (compound_statement "{\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }" { (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;" (assignment_expression "iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4" identifier = (binary_expression "(int)pvVar1 - (int)PTR_environ_000b3fe4" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)PTR_environ_000b3fe4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" else (compound_statement "{\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" { (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "iVar2 = (int)pvVar1 - iVar2;" (assignment_expression "iVar2 = (int)pvVar1 - iVar2" identifier = (binary_expression "(int)pvVar1 - iVar2" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) }))) (expression_statement "pcVar3 = ": ";" (assignment_expression "pcVar3 = ": "" identifier = (string_literal "": "" " string_content ")) ;) (if_statement "if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }" if (parenthesized_expression "(*PTR_DAT_000b5300 == '\0')" ( (binary_expression "*PTR_DAT_000b5300 == '\0'" (pointer_expression "*PTR_DAT_000b5300" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar3 = "";\n  }" { (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);" (call_expression "fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2)" identifier (argument_list "(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2)" ( (pointer_expression "*(FILE **)PTR_stderr_000b3fc4" * (cast_expression "(FILE **)PTR_stderr_000b3fc4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier ))) ;) comment (expression_statement "FUN_0006aed0(1);" (call_expression "FUN_0006aed0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid xmalloc_failed(size_t size)\n\n{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  pcVar3 = first_break;\n  if (first_break == (char *)0x0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)pcVar3;\n  }\n  pcVar3 = ": ";\n  if (*name == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3,size,\n          iVar2);\n                    /* WARNING: Subroutine does not return */\n  xexit(1);\n}\n\n" comment comment (function_definition "void xmalloc_failed(size_t size)\n\n{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  pcVar3 = first_break;\n  if (first_break == (char *)0x0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)pcVar3;\n  }\n  pcVar3 = ": ";\n  if (*name == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3,size,\n          iVar2);\n                    /* WARNING: Subroutine does not return */\n  xexit(1);\n}" primitive_type (function_declarator "xmalloc_failed(size_t size)" identifier (parameter_list "(size_t size)" ( (parameter_declaration "size_t size" primitive_type identifier) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  pcVar3 = first_break;\n  if (first_break == (char *)0x0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)pcVar3;\n  }\n  pcVar3 = ": ";\n  if (*name == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3,size,\n          iVar2);\n                    /* WARNING: Subroutine does not return */\n  xexit(1);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = first_break;" (assignment_expression "pcVar3 = first_break" identifier = identifier) ;) (if_statement "if (first_break == (char *)0x0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)pcVar3;\n  }" if (parenthesized_expression "(first_break == (char *)0x0)" ( (binary_expression "first_break == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }" { (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;" (assignment_expression "iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4" identifier = (binary_expression "(int)pvVar1 - (int)PTR_environ_000b3fe4" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)PTR_environ_000b3fe4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)pcVar3;\n  }" else (compound_statement "{\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)pcVar3;\n  }" { (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "iVar2 = (int)pvVar1 - (int)pcVar3;" (assignment_expression "iVar2 = (int)pvVar1 - (int)pcVar3" identifier = (binary_expression "(int)pvVar1 - (int)pcVar3" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "pcVar3 = ": ";" (assignment_expression "pcVar3 = ": "" identifier = (string_literal "": "" " string_content ")) ;) (if_statement "if (*name == '\0') {\n    pcVar3 = "";\n  }" if (parenthesized_expression "(*name == '\0')" ( (binary_expression "*name == '\0'" (pointer_expression "*name" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar3 = "";\n  }" { (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3,size,\n          iVar2);" (call_expression "fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3,size,\n          iVar2)" identifier (argument_list "(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3,size,\n          iVar2)" ( (pointer_expression "*(FILE **)PTR_stderr_000b3fc4" * (cast_expression "(FILE **)PTR_stderr_000b3fc4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier ))) ;) comment (expression_statement "xexit(1);" (call_expression "xexit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit "void FUN_0006af50(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  iVar2 = DAT_000b9d74;\n  if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }\n  pcVar3 = ": ";\n  if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);\n                    \n  FUN_0006aed0(1);\n}\n\n" (function_definition "void FUN_0006af50(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  iVar2 = DAT_000b9d74;\n  if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }\n  pcVar3 = ": ";\n  if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);\n                    \n  FUN_0006aed0(1);\n}" primitive_type (function_declarator "FUN_0006af50(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  iVar2 = DAT_000b9d74;\n  if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }\n  pcVar3 = ": ";\n  if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);\n                    \n  FUN_0006aed0(1);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "iVar2 = DAT_000b9d74;" (assignment_expression "iVar2 = DAT_000b9d74" identifier = identifier) ;) (if_statement "if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" if (parenthesized_expression "(DAT_000b9d74 == 0)" ( (binary_expression "DAT_000b9d74 == 0" identifier == number_literal) )) (compound_statement "{\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }" { (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;" (assignment_expression "iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4" identifier = (binary_expression "(int)pvVar1 - (int)PTR_environ_000b3fe4" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)PTR_environ_000b3fe4" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" else (compound_statement "{\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" { (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" identifier = (call_expression "sbrk(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "iVar2 = (int)pvVar1 - iVar2;" (assignment_expression "iVar2 = (int)pvVar1 - iVar2" identifier = (binary_expression "(int)pvVar1 - iVar2" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) }))) (expression_statement "pcVar3 = ": ";" (assignment_expression "pcVar3 = ": "" identifier = (string_literal "": "" " string_content ")) ;) (if_statement "if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }" if (parenthesized_expression "(*PTR_DAT_000b5300 == '\0')" ( (binary_expression "*PTR_DAT_000b5300 == '\0'" (pointer_expression "*PTR_DAT_000b5300" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar3 = "";\n  }" { (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);" (call_expression "fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2)" identifier (argument_list "(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2)" ( (pointer_expression "*(FILE **)PTR_stderr_000b3fc4" * (cast_expression "(FILE **)PTR_stderr_000b3fc4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0006aed0(1);" (call_expression "FUN_0006aed0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " escape_sequence string_content escape_sequence ") , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })))
(function_definition "void FUN_0006af50(undefined4 param_1)\n\n{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  iVar2 = DAT_000b9d74;\n  if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }\n  pcVar3 = ": ";\n  if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);\n                    \n  FUN_0006aed0(1);\n}" (primitive_type "void") (function_declarator "FUN_0006af50(undefined4 param_1)" (identifier "FUN_0006af50") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  iVar2 = DAT_000b9d74;\n  if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }\n  pcVar3 = ": ";\n  if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }\n  fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);\n                    \n  FUN_0006aed0(1);\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "iVar2 = DAT_000b9d74;" (assignment_expression "iVar2 = DAT_000b9d74" (identifier "iVar2") (= "=") (identifier "DAT_000b9d74")) (; ";")) (if_statement "if (DAT_000b9d74 == 0) {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }\n  else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" (if "if") (parenthesized_expression "(DAT_000b9d74 == 0)" (( "(") (binary_expression "DAT_000b9d74 == 0" (identifier "DAT_000b9d74") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;\n  }" ({ "{") (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" (identifier "pvVar1") (= "=") (call_expression "sbrk(0)" (identifier "sbrk") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;" (assignment_expression "iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4" (identifier "iVar2") (= "=") (binary_expression "(int)pvVar1 - (int)PTR_environ_000b3fe4" (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")) (- "-") (cast_expression "(int)PTR_environ_000b3fe4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "PTR_environ_000b3fe4")))) (; ";")) (} "}")) (else_clause "else {\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" (else "else") (compound_statement "{\n    pvVar1 = sbrk(0);\n    iVar2 = (int)pvVar1 - iVar2;\n  }" ({ "{") (expression_statement "pvVar1 = sbrk(0);" (assignment_expression "pvVar1 = sbrk(0)" (identifier "pvVar1") (= "=") (call_expression "sbrk(0)" (identifier "sbrk") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar2 = (int)pvVar1 - iVar2;" (assignment_expression "iVar2 = (int)pvVar1 - iVar2" (identifier "iVar2") (= "=") (binary_expression "(int)pvVar1 - iVar2" (cast_expression "(int)pvVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar1")) (- "-") (identifier "iVar2"))) (; ";")) (} "}")))) (expression_statement "pcVar3 = ": ";" (assignment_expression "pcVar3 = ": "" (identifier "pcVar3") (= "=") (string_literal "": "" (" """) (string_content ": ") (" """))) (; ";")) (if_statement "if (*PTR_DAT_000b5300 == '\0') {\n    pcVar3 = "";\n  }" (if "if") (parenthesized_expression "(*PTR_DAT_000b5300 == '\0')" (( "(") (binary_expression "*PTR_DAT_000b5300 == '\0'" (pointer_expression "*PTR_DAT_000b5300" (* "*") (identifier "PTR_DAT_000b5300")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    pcVar3 = "";\n  }" ({ "{") (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ (identifier "pcVar3") (= "=") (string_literal """" (" """) (" """))) (; ";")) (} "}"))) (expression_statement "fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2);" (call_expression "fprintf(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_000b3fc4,\n          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,\n          pcVar3,param_1,iVar2)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_000b3fc4" (* "*") (cast_expression "(FILE **)PTR_stderr_000b3fc4" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_000b3fc4"))) (, ",") (string_literal ""\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n"" (" """) (escape_sequence "\n") (string_content "%s%sout of memory allocating %lu bytes after a total of %lu bytes") (escape_sequence "\n") (" """)) (, ",") (identifier "PTR_DAT_000b5300") (, ",") (identifier "pcVar3") (, ",") (identifier "param_1") (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "FUN_0006aed0(1);" (call_expression "FUN_0006aed0(1)" (identifier "FUN_0006aed0") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}")))

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

void function_1(size_t size)

{
  void *pvVar1;
  int iVar2;
  char *pcVar3;
  
  pcVar3 = var_1;
  if (var_1 == (char *)0x0) {
    pvVar1 = var_2(0);
    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;
  }
  else {
    pvVar1 = var_2(0);
    iVar2 = (int)pvVar1 - (int)pcVar3;
  }
  pcVar3 = ": ";
  if (*name == '\0') {
    pcVar3 = "";
  }
  var_3(*(type_1 **)PTR_stderr_000b3fc4,
          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",name,pcVar3,size,
          iVar2);
                    /* WARNING: Subroutine does not return */
  var_4(1);
}


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

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

void MASKED(undefined4 param_1)

{
  void *pvVar1;
  int iVar2;
  char *pcVar3;
  
  iVar2 = DAT_000b9d74;
  if (DAT_000b9d74 == 0) {
    pvVar1 = sbrk(0);
    iVar2 = (int)pvVar1 - (int)PTR_environ_000b3fe4;
  }
  else {
    pvVar1 = sbrk(0);
    iVar2 = (int)pvVar1 - iVar2;
  }
  pcVar3 = ": ";
  if (*PTR_DAT_000b5300 == '\0') {
    pcVar3 = "";
  }
  fprintf(*(FILE **)PTR_stderr_000b3fc4,
          "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",PTR_DAT_000b5300,
          pcVar3,param_1,iVar2);
                    /* WARNING: Subroutine does not return */
  FUN_0006aed0(1);
}

