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

void __regparm3 request_dump_bynumber(Filedata *filedata,uint section,dump_type type)

{
  uint __n;
  dump_type *__src;
  dump_type *__dest;
  char *message;
  
  __n = filedata->num_dump_sects;
  if (__n <= section) {
    __dest = (dump_type *)calloc(section + 1,1);
    if (__dest != (dump_type *)0x0) {
      __src = filedata->dump_sects;
      if (__src != (dump_type *)0x0) {
        memcpy(__dest,__src,__n);
        free(__src);
      }
      filedata->dump_sects = __dest;
      filedata->num_dump_sects = section + 1;
      goto LAB_0001e6d4;
    }
    message = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(message);
  }
  __dest = filedata->dump_sects;
  if (__dest == (dump_type *)0x0) {
    return;
  }
LAB_0001e6d4:
  __dest[section] = __dest[section] | type;
  return;
}



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

void __regparm3 FUN_0001e6b0(int param_1,uint param_2,byte param_3)

{
  uint __n;
  void *__src;
  void *__dest;
  undefined4 uVar1;
  
  __n = *(uint *)(param_1 + 0x70);
  if (__n <= param_2) {
    __dest = calloc(param_2 + 1,1);
    if (__dest != (void *)0x0) {
      __src = *(void **)(param_1 + 0x6c);
      if (__src != (void *)0x0) {
        memcpy(__dest,__src,__n);
        free(__src);
      }
      *(void **)(param_1 + 0x6c) = __dest;
      *(uint *)(param_1 + 0x70) = param_2 + 1;
      goto LAB_0001e6d4;
    }
    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(uVar1);
  }
  __dest = *(void **)(param_1 + 0x6c);
  if (__dest == (void *)0x0) {
    return;
  }
LAB_0001e6d4:
  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x95943
SUB ESP,0x1c
MOV EDX,dword ptr [EAX + 0x70]
CMP EDX,EDI
JBE 0x0001e6e0
MOV ESI,dword ptr [EBP + 0x6c]
TEST ESI,ESI
JZ 0x0001e6d7
OR byte ptr [ESI + EDI*0x1],CL
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EDI + 0x1]
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0x8
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x14],EAX
PUSH 0x1
PUSH EAX
CALL 0x00013430
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ESP + 0x8]
TEST EAX,EAX
MOV ESI,EAX
JZ 0x0001e748
MOV EAX,dword ptr [EBP + 0x6c]
TEST EAX,EAX
JZ 0x0001e736
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0x4
PUSH EDX
MOV dword ptr [ESP + 0xc],EAX
PUSH EAX
PUSH ESI
CALL 0x000130c0
POP EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x000130a0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EBP + 0x6c],ESI
MOV dword ptr [EBP + 0x70],EAX
JMP 0x0001e6d4
MOV dword ptr [ESP + 0x4],ECX
LEA EAX,[EBX + 0xfffccbb0]
SUB ESP,0x4
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
MOV dword ptr [ESP],EAX
CALL 0x00066870
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x4]
JMP 0x0001e6cd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001e6b0(int param_1,uint param_2,byte param_3)\n\n{\n  uint __n;\n  void *__src;\n  void *__dest;\n  undefined4 uVar1;\n  \n  __n = *(uint *)(param_1 + 0x70);\n  if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }\n  __dest = *(void **)(param_1 + 0x6c);\n  if (__dest == (void *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001e6b0(int param_1,uint param_2,byte param_3)\n\n{\n  uint __n;\n  void *__src;\n  void *__dest;\n  undefined4 uVar1;\n  \n  __n = *(uint *)(param_1 + 0x70);\n  if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }\n  __dest = *(void **)(param_1 + 0x6c);\n  if (__dest == (void *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e6b0(int param_1,uint param_2,byte param_3)" identifier (parameter_list "(int param_1,uint param_2,byte param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "byte param_3" type_identifier identifier) ))) (compound_statement "{\n  uint __n;\n  void *__src;\n  void *__dest;\n  undefined4 uVar1;\n  \n  __n = *(uint *)(param_1 + 0x70);\n  if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }\n  __dest = *(void **)(param_1 + 0x6c);\n  if (__dest == (void *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "__n = *(uint *)(param_1 + 0x70);" (assignment_expression "__n = *(uint *)(param_1 + 0x70)" identifier = (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }" if (parenthesized_expression "(__n <= param_2)" ( (binary_expression "__n <= param_2" identifier <= identifier) )) (compound_statement "{\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }" { (expression_statement "__dest = calloc(param_2 + 1,1);" (assignment_expression "__dest = calloc(param_2 + 1,1)" identifier = (call_expression "calloc(param_2 + 1,1)" identifier (argument_list "(param_2 + 1,1)" ( (binary_expression "param_2 + 1" identifier + number_literal) , number_literal )))) ;) (if_statement "if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }" if (parenthesized_expression "(__dest != (void *)0x0)" ( (binary_expression "__dest != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }" { (expression_statement "__src = *(void **)(param_1 + 0x6c);" (assignment_expression "__src = *(void **)(param_1 + 0x6c)" identifier = (pointer_expression "*(void **)(param_1 + 0x6c)" * (cast_expression "(void **)(param_1 + 0x6c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (if_statement "if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }" if (parenthesized_expression "(__src != (void *)0x0)" ( (binary_expression "__src != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "free(__src);" (call_expression "free(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) })) (expression_statement "*(void **)(param_1 + 0x6c) = __dest;" (assignment_expression "*(void **)(param_1 + 0x6c) = __dest" (pointer_expression "*(void **)(param_1 + 0x6c)" * (cast_expression "(void **)(param_1 + 0x6c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x70) = param_2 + 1;" (assignment_expression "*(uint *)(param_1 + 0x70) = param_2 + 1" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0001e6d4;" goto statement_identifier ;) })) (expression_statement "uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5)" identifier = (call_expression "dcgettext(0,"Out of memory allocating dump request table.\n",5)" identifier (argument_list "(0,"Out of memory allocating dump request table.\n",5)" ( number_literal , (string_literal ""Out of memory allocating dump request table.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar1);" (call_expression "error(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) })) (expression_statement "__dest = *(void **)(param_1 + 0x6c);" (assignment_expression "__dest = *(void **)(param_1 + 0x6c)" identifier = (pointer_expression "*(void **)(param_1 + 0x6c)" * (cast_expression "(void **)(param_1 + 0x6c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (if_statement "if (__dest == (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;" statement_identifier : (expression_statement "*(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;" (assignment_expression "*(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3" (pointer_expression "*(byte *)((int)__dest + param_2)" * (cast_expression "(byte *)((int)__dest + param_2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2)" ( (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "*(byte *)((int)__dest + param_2) | param_3" (pointer_expression "*(byte *)((int)__dest + param_2)" * (cast_expression "(byte *)((int)__dest + param_2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2)" ( (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) | identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 request_dump_bynumber(Filedata *filedata,uint section,dump_type type)\n\n{\n  uint __n;\n  dump_type *__src;\n  dump_type *__dest;\n  char *message;\n  \n  __n = filedata->num_dump_sects;\n  if (__n <= section) {\n    __dest = (dump_type *)calloc(section + 1,1);\n    if (__dest != (dump_type *)0x0) {\n      __src = filedata->dump_sects;\n      if (__src != (dump_type *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      filedata->dump_sects = __dest;\n      filedata->num_dump_sects = section + 1;\n      goto LAB_0001e6d4;\n    }\n    message = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(message);\n  }\n  __dest = filedata->dump_sects;\n  if (__dest == (dump_type *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  __dest[section] = __dest[section] | type;\n  return;\n}\n\n" comment (function_definition "void __regparm3 request_dump_bynumber(Filedata *filedata,uint section,dump_type type)\n\n{\n  uint __n;\n  dump_type *__src;\n  dump_type *__dest;\n  char *message;\n  \n  __n = filedata->num_dump_sects;\n  if (__n <= section) {\n    __dest = (dump_type *)calloc(section + 1,1);\n    if (__dest != (dump_type *)0x0) {\n      __src = filedata->dump_sects;\n      if (__src != (dump_type *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      filedata->dump_sects = __dest;\n      filedata->num_dump_sects = section + 1;\n      goto LAB_0001e6d4;\n    }\n    message = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(message);\n  }\n  __dest = filedata->dump_sects;\n  if (__dest == (dump_type *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  __dest[section] = __dest[section] | type;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "request_dump_bynumber(Filedata *filedata,uint section,dump_type type)" identifier (parameter_list "(Filedata *filedata,uint section,dump_type type)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "uint section" type_identifier identifier) , (parameter_declaration "dump_type type" type_identifier identifier) ))) (compound_statement "{\n  uint __n;\n  dump_type *__src;\n  dump_type *__dest;\n  char *message;\n  \n  __n = filedata->num_dump_sects;\n  if (__n <= section) {\n    __dest = (dump_type *)calloc(section + 1,1);\n    if (__dest != (dump_type *)0x0) {\n      __src = filedata->dump_sects;\n      if (__src != (dump_type *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      filedata->dump_sects = __dest;\n      filedata->num_dump_sects = section + 1;\n      goto LAB_0001e6d4;\n    }\n    message = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(message);\n  }\n  __dest = filedata->dump_sects;\n  if (__dest == (dump_type *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  __dest[section] = __dest[section] | type;\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "dump_type *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "dump_type *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "char *message;" primitive_type (pointer_declarator "*message" * identifier) ;) (expression_statement "__n = filedata->num_dump_sects;" (assignment_expression "__n = filedata->num_dump_sects" identifier = (field_expression "filedata->num_dump_sects" identifier -> field_identifier)) ;) (if_statement "if (__n <= section) {\n    __dest = (dump_type *)calloc(section + 1,1);\n    if (__dest != (dump_type *)0x0) {\n      __src = filedata->dump_sects;\n      if (__src != (dump_type *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      filedata->dump_sects = __dest;\n      filedata->num_dump_sects = section + 1;\n      goto LAB_0001e6d4;\n    }\n    message = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(message);\n  }" if (parenthesized_expression "(__n <= section)" ( (binary_expression "__n <= section" identifier <= identifier) )) (compound_statement "{\n    __dest = (dump_type *)calloc(section + 1,1);\n    if (__dest != (dump_type *)0x0) {\n      __src = filedata->dump_sects;\n      if (__src != (dump_type *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      filedata->dump_sects = __dest;\n      filedata->num_dump_sects = section + 1;\n      goto LAB_0001e6d4;\n    }\n    message = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(message);\n  }" { (expression_statement "__dest = (dump_type *)calloc(section + 1,1);" (assignment_expression "__dest = (dump_type *)calloc(section + 1,1)" identifier = (cast_expression "(dump_type *)calloc(section + 1,1)" ( (type_descriptor "dump_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(section + 1,1)" identifier (argument_list "(section + 1,1)" ( (binary_expression "section + 1" identifier + number_literal) , number_literal ))))) ;) (if_statement "if (__dest != (dump_type *)0x0) {\n      __src = filedata->dump_sects;\n      if (__src != (dump_type *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      filedata->dump_sects = __dest;\n      filedata->num_dump_sects = section + 1;\n      goto LAB_0001e6d4;\n    }" if (parenthesized_expression "(__dest != (dump_type *)0x0)" ( (binary_expression "__dest != (dump_type *)0x0" identifier != (cast_expression "(dump_type *)0x0" ( (type_descriptor "dump_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      __src = filedata->dump_sects;\n      if (__src != (dump_type *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      filedata->dump_sects = __dest;\n      filedata->num_dump_sects = section + 1;\n      goto LAB_0001e6d4;\n    }" { (expression_statement "__src = filedata->dump_sects;" (assignment_expression "__src = filedata->dump_sects" identifier = (field_expression "filedata->dump_sects" identifier -> field_identifier)) ;) (if_statement "if (__src != (dump_type *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }" if (parenthesized_expression "(__src != (dump_type *)0x0)" ( (binary_expression "__src != (dump_type *)0x0" identifier != (cast_expression "(dump_type *)0x0" ( (type_descriptor "dump_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "free(__src);" (call_expression "free(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) })) (expression_statement "filedata->dump_sects = __dest;" (assignment_expression "filedata->dump_sects = __dest" (field_expression "filedata->dump_sects" identifier -> field_identifier) = identifier) ;) (expression_statement "filedata->num_dump_sects = section + 1;" (assignment_expression "filedata->num_dump_sects = section + 1" (field_expression "filedata->num_dump_sects" identifier -> field_identifier) = (binary_expression "section + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0001e6d4;" goto statement_identifier ;) })) (expression_statement "message = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "message = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Out of memory allocating dump request table.\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Out of memory allocating dump request table.\n",5)" identifier (argument_list "(0,"Out of memory allocating dump request table.\n",5)" ( number_literal , (string_literal ""Out of memory allocating dump request table.\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "error(message);" (call_expression "error(message)" identifier (argument_list "(message)" ( identifier ))) ;) })) (expression_statement "__dest = filedata->dump_sects;" (assignment_expression "__dest = filedata->dump_sects" identifier = (field_expression "filedata->dump_sects" identifier -> field_identifier)) ;) (if_statement "if (__dest == (dump_type *)0x0) {\n    return;\n  }" if (parenthesized_expression "(__dest == (dump_type *)0x0)" ( (binary_expression "__dest == (dump_type *)0x0" identifier == (cast_expression "(dump_type *)0x0" ( (type_descriptor "dump_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0001e6d4:\n  __dest[section] = __dest[section] | type;" statement_identifier : (expression_statement "__dest[section] = __dest[section] | type;" (assignment_expression "__dest[section] = __dest[section] | type" (subscript_expression "__dest[section]" identifier [ identifier ]) = (binary_expression "__dest[section] | type" (subscript_expression "__dest[section]" identifier [ identifier ]) | identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001e6b0(int param_1,uint param_2,byte param_3)\n\n{\n  uint __n;\n  void *__src;\n  void *__dest;\n  undefined4 uVar1;\n  \n  __n = *(uint *)(param_1 + 0x70);\n  if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }\n  __dest = *(void **)(param_1 + 0x6c);\n  if (__dest == (void *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001e6b0(int param_1,uint param_2,byte param_3)\n\n{\n  uint __n;\n  void *__src;\n  void *__dest;\n  undefined4 uVar1;\n  \n  __n = *(uint *)(param_1 + 0x70);\n  if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }\n  __dest = *(void **)(param_1 + 0x6c);\n  if (__dest == (void *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e6b0(int param_1,uint param_2,byte param_3)" identifier (parameter_list "(int param_1,uint param_2,byte param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "byte param_3" type_identifier identifier) ))) (compound_statement "{\n  uint __n;\n  void *__src;\n  void *__dest;\n  undefined4 uVar1;\n  \n  __n = *(uint *)(param_1 + 0x70);\n  if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }\n  __dest = *(void **)(param_1 + 0x6c);\n  if (__dest == (void *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "__n = *(uint *)(param_1 + 0x70);" (assignment_expression "__n = *(uint *)(param_1 + 0x70)" identifier = (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }" if (parenthesized_expression "(__n <= param_2)" ( (binary_expression "__n <= param_2" identifier <= identifier) )) (compound_statement "{\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }" { (expression_statement "__dest = calloc(param_2 + 1,1);" (assignment_expression "__dest = calloc(param_2 + 1,1)" identifier = (call_expression "calloc(param_2 + 1,1)" identifier (argument_list "(param_2 + 1,1)" ( (binary_expression "param_2 + 1" identifier + number_literal) , number_literal )))) ;) (if_statement "if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }" if (parenthesized_expression "(__dest != (void *)0x0)" ( (binary_expression "__dest != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }" { (expression_statement "__src = *(void **)(param_1 + 0x6c);" (assignment_expression "__src = *(void **)(param_1 + 0x6c)" identifier = (pointer_expression "*(void **)(param_1 + 0x6c)" * (cast_expression "(void **)(param_1 + 0x6c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (if_statement "if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }" if (parenthesized_expression "(__src != (void *)0x0)" ( (binary_expression "__src != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "free(__src);" (call_expression "free(__src)" identifier (argument_list "(__src)" ( identifier ))) ;) })) (expression_statement "*(void **)(param_1 + 0x6c) = __dest;" (assignment_expression "*(void **)(param_1 + 0x6c) = __dest" (pointer_expression "*(void **)(param_1 + 0x6c)" * (cast_expression "(void **)(param_1 + 0x6c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 0x70) = param_2 + 1;" (assignment_expression "*(uint *)(param_1 + 0x70) = param_2 + 1" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0001e6d4;" goto statement_identifier ;) })) (expression_statement "uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5)" identifier = (call_expression "dcgettext(0,"Out of memory allocating dump request table.\n",5)" identifier (argument_list "(0,"Out of memory allocating dump request table.\n",5)" ( number_literal , (string_literal ""Out of memory allocating dump request table.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar1);" (call_expression "error(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) })) (expression_statement "__dest = *(void **)(param_1 + 0x6c);" (assignment_expression "__dest = *(void **)(param_1 + 0x6c)" identifier = (pointer_expression "*(void **)(param_1 + 0x6c)" * (cast_expression "(void **)(param_1 + 0x6c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (if_statement "if (__dest == (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(__dest == (void *)0x0)" ( (binary_expression "__dest == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;" statement_identifier : (expression_statement "*(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;" (assignment_expression "*(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3" (pointer_expression "*(byte *)((int)__dest + param_2)" * (cast_expression "(byte *)((int)__dest + param_2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2)" ( (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "*(byte *)((int)__dest + param_2) | param_3" (pointer_expression "*(byte *)((int)__dest + param_2)" * (cast_expression "(byte *)((int)__dest + param_2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2)" ( (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) | identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) | IDENT)) ;)) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001e6b0(int param_1,uint param_2,byte param_3)\n\n{\n  uint __n;\n  void *__src;\n  void *__dest;\n  undefined4 uVar1;\n  \n  __n = *(uint *)(param_1 + 0x70);\n  if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }\n  __dest = *(void **)(param_1 + 0x6c);\n  if (__dest == (void *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001e6b0(int param_1,uint param_2,byte param_3)" (identifier "FUN_0001e6b0") (parameter_list "(int param_1,uint param_2,byte param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "byte param_3" (type_identifier "byte") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint __n;\n  void *__src;\n  void *__dest;\n  undefined4 uVar1;\n  \n  __n = *(uint *)(param_1 + 0x70);\n  if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }\n  __dest = *(void **)(param_1 + 0x6c);\n  if (__dest == (void *)0x0) {\n    return;\n  }\nLAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;\n  return;\n}" ({ "{") (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "__n = *(uint *)(param_1 + 0x70);" (assignment_expression "__n = *(uint *)(param_1 + 0x70)" (identifier "__n") (= "=") (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (if_statement "if (__n <= param_2) {\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }" (if "if") (parenthesized_expression "(__n <= param_2)" (( "(") (binary_expression "__n <= param_2" (identifier "__n") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    __dest = calloc(param_2 + 1,1);\n    if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }\n    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar1);\n  }" ({ "{") (expression_statement "__dest = calloc(param_2 + 1,1);" (assignment_expression "__dest = calloc(param_2 + 1,1)" (identifier "__dest") (= "=") (call_expression "calloc(param_2 + 1,1)" (identifier "calloc") (argument_list "(param_2 + 1,1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (__dest != (void *)0x0) {\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }" (if "if") (parenthesized_expression "(__dest != (void *)0x0)" (( "(") (binary_expression "__dest != (void *)0x0" (identifier "__dest") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      __src = *(void **)(param_1 + 0x6c);\n      if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }\n      *(void **)(param_1 + 0x6c) = __dest;\n      *(uint *)(param_1 + 0x70) = param_2 + 1;\n      goto LAB_0001e6d4;\n    }" ({ "{") (expression_statement "__src = *(void **)(param_1 + 0x6c);" (assignment_expression "__src = *(void **)(param_1 + 0x6c)" (identifier "__src") (= "=") (pointer_expression "*(void **)(param_1 + 0x6c)" (* "*") (cast_expression "(void **)(param_1 + 0x6c)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (if_statement "if (__src != (void *)0x0) {\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }" (if "if") (parenthesized_expression "(__src != (void *)0x0)" (( "(") (binary_expression "__src != (void *)0x0" (identifier "__src") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        memcpy(__dest,__src,__n);\n        free(__src);\n      }" ({ "{") (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" (identifier "memcpy") (argument_list "(__dest,__src,__n)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "free(__src);" (call_expression "free(__src)" (identifier "free") (argument_list "(__src)" (( "(") (identifier "__src") () ")"))) (; ";")) (} "}"))) (expression_statement "*(void **)(param_1 + 0x6c) = __dest;" (assignment_expression "*(void **)(param_1 + 0x6c) = __dest" (pointer_expression "*(void **)(param_1 + 0x6c)" (* "*") (cast_expression "(void **)(param_1 + 0x6c)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (identifier "__dest")) (; ";")) (expression_statement "*(uint *)(param_1 + 0x70) = param_2 + 1;" (assignment_expression "*(uint *)(param_1 + 0x70) = param_2 + 1" (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_0001e6d4;" (goto "goto") (statement_identifier "LAB_0001e6d4") (; ";")) (} "}"))) (expression_statement "uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"Out of memory allocating dump request table.\n",5)" (identifier "dcgettext") (argument_list "(0,"Out of memory allocating dump request table.\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Out of memory allocating dump request table.\n"" (" """) (string_content "Out of memory allocating dump request table.") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar1);" (call_expression "error(uVar1)" (identifier "error") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "__dest = *(void **)(param_1 + 0x6c);" (assignment_expression "__dest = *(void **)(param_1 + 0x6c)" (identifier "__dest") (= "=") (pointer_expression "*(void **)(param_1 + 0x6c)" (* "*") (cast_expression "(void **)(param_1 + 0x6c)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (if_statement "if (__dest == (void *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(__dest == (void *)0x0)" (( "(") (binary_expression "__dest == (void *)0x0" (identifier "__dest") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_0001e6d4:\n  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;" (statement_identifier "LAB_0001e6d4") (: ":") (expression_statement "*(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;" (assignment_expression "*(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3" (pointer_expression "*(byte *)((int)__dest + param_2)" (* "*") (cast_expression "(byte *)((int)__dest + param_2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + param_2)" (( "(") (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "param_2")) () ")")))) (= "=") (binary_expression "*(byte *)((int)__dest + param_2) | param_3" (pointer_expression "*(byte *)((int)__dest + param_2)" (* "*") (cast_expression "(byte *)((int)__dest + param_2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + param_2)" (( "(") (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "param_2")) () ")")))) (| "|") (identifier "param_3"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *filedata,type_2 var_2,type_3 var_10)

{
  type_2 var_1;
  type_3 *var_5;
  type_3 *var_4;
  char *message;
  
  var_1 = filedata->num_dump_sects;
  if (var_1 <= var_2) {
    var_4 = (type_3 *)var_3(var_2 + 1,1);
    if (var_4 != (type_3 *)0x0) {
      var_5 = filedata->dump_sects;
      if (var_5 != (type_3 *)0x0) {
        var_6(var_4,var_5,var_1);
        var_7(var_5);
      }
      filedata->dump_sects = var_4;
      filedata->num_dump_sects = var_2 + 1;
      goto LAB_0001e6d4;
    }
    message = (char *)var_8(0,"Out of memory allocating dump request table.\n",5);
    var_9(message);
  }
  var_4 = filedata->dump_sects;
  if (var_4 == (type_3 *)0x0) {
    return;
  }
LAB_0001e6d4:
  var_4[var_2] = var_4[var_2] | var_10;
  return;
}


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

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

void __regparm3 MASKED(int param_1,uint param_2,byte param_3)

{
  uint __n;
  void *__src;
  void *__dest;
  undefined4 uVar1;
  
  __n = *(uint *)(param_1 + 0x70);
  if (__n <= param_2) {
    __dest = calloc(param_2 + 1,1);
    if (__dest != (void *)0x0) {
      __src = *(void **)(param_1 + 0x6c);
      if (__src != (void *)0x0) {
        memcpy(__dest,__src,__n);
        free(__src);
      }
      *(void **)(param_1 + 0x6c) = __dest;
      *(uint *)(param_1 + 0x70) = param_2 + 1;
      goto LAB_0001e6d4;
    }
    uVar1 = dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(uVar1);
  }
  __dest = *(void **)(param_1 + 0x6c);
  if (__dest == (void *)0x0) {
    return;
  }
LAB_0001e6d4:
  *(byte *)((int)__dest + param_2) = *(byte *)((int)__dest + param_2) | param_3;
  return;
}

