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

void __regparm3 request_dump_byname(char *section,dump_type type)

{
  dump_list_entry *pdVar1;
  char *pcVar2;
  
  pdVar1 = (dump_list_entry *)malloc(0xc);
  if (pdVar1 == (dump_list_entry *)0x0) {
    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(pcVar2);
  }
  pcVar2 = strdup(section);
  pdVar1->name = pcVar2;
  if (pcVar2 == (char *)0x0) {
    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(pcVar2);
  }
  pdVar1->type = type;
  pdVar1->next = dump_sects_byname;
  dump_sects_byname = pdVar1;
  return;
}



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

void __regparm3 FUN_0001e780(char *param_1,undefined1 param_2)

{
  undefined4 *puVar1;
  char *pcVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)malloc(0xc);
  if (puVar1 == (undefined4 *)0x0) {
    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(uVar3);
  }
  pcVar2 = strdup(param_1);
  *puVar1 = pcVar2;
  if (pcVar2 == (char *)0x0) {
    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(uVar3);
  }
  *(undefined1 *)(puVar1 + 1) = param_2;
  puVar1[2] = DAT_000b6280;
  DAT_000b6280 = puVar1;
  return;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00013f70
ADD EBX,0x95873
SUB ESP,0x18
PUSH 0xc
CALL 0x000131c0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0001e7d8
SUB ESP,0xc
PUSH EDI
CALL 0x000130b0
ADD ESP,0x10
MOV dword ptr [EBP],EAX
TEST EAX,EAX
JZ 0x0001e800
MOV EAX,ESI
MOV byte ptr [EBP + 0x4],AL
MOV EAX,dword ptr [EBX + 0x2280]
MOV dword ptr [EBX + 0x2280],EBP
MOV dword ptr [EBP + 0x8],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffccbb0]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
MOV dword ptr [ESP],EAX
CALL 0x00066870
ADD ESP,0x10
JMP 0x0001e7a6
SUB ESP,0x4
LEA EAX,[EBX + 0xfffccbb0]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
MOV dword ptr [ESP],EAX
CALL 0x00066870
ADD ESP,0x10
JMP 0x0001e7b9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001e780(char *param_1,undefined1 param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)malloc(0xc);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  pcVar2 = strdup(param_1);\n  *puVar1 = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  *(undefined1 *)(puVar1 + 1) = param_2;\n  puVar1[2] = DAT_000b6280;\n  DAT_000b6280 = puVar1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001e780(char *param_1,undefined1 param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)malloc(0xc);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  pcVar2 = strdup(param_1);\n  *puVar1 = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  *(undefined1 *)(puVar1 + 1) = param_2;\n  puVar1[2] = DAT_000b6280;\n  DAT_000b6280 = puVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e780(char *param_1,undefined1 param_2)" identifier (parameter_list "(char *param_1,undefined1 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)malloc(0xc);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  pcVar2 = strdup(param_1);\n  *puVar1 = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  *(undefined1 *)(puVar1 + 1) = param_2;\n  puVar1[2] = DAT_000b6280;\n  DAT_000b6280 = puVar1;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)malloc(0xc);" (assignment_expression "puVar1 = (undefined4 *)malloc(0xc)" identifier = (cast_expression "(undefined4 *)malloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" { (expression_statement "uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar3 = 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(uVar3);" (call_expression "error(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "pcVar2 = strdup(param_1);" (assignment_expression "pcVar2 = strdup(param_1)" identifier = (call_expression "strdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" { (expression_statement "uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar3 = 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(uVar3);" (call_expression "error(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "*(undefined1 *)(puVar1 + 1) = param_2;" (assignment_expression "*(undefined1 *)(puVar1 + 1) = param_2" (pointer_expression "*(undefined1 *)(puVar1 + 1)" * (cast_expression "(undefined1 *)(puVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1[2] = DAT_000b6280;" (assignment_expression "puVar1[2] = DAT_000b6280" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_000b6280 = puVar1;" (assignment_expression "DAT_000b6280 = puVar1" 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_byname(char *section,dump_type type)\n\n{\n  dump_list_entry *pdVar1;\n  char *pcVar2;\n  \n  pdVar1 = (dump_list_entry *)malloc(0xc);\n  if (pdVar1 == (dump_list_entry *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }\n  pcVar2 = strdup(section);\n  pdVar1->name = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }\n  pdVar1->type = type;\n  pdVar1->next = dump_sects_byname;\n  dump_sects_byname = pdVar1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 request_dump_byname(char *section,dump_type type)\n\n{\n  dump_list_entry *pdVar1;\n  char *pcVar2;\n  \n  pdVar1 = (dump_list_entry *)malloc(0xc);\n  if (pdVar1 == (dump_list_entry *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }\n  pcVar2 = strdup(section);\n  pdVar1->name = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }\n  pdVar1->type = type;\n  pdVar1->next = dump_sects_byname;\n  dump_sects_byname = pdVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "request_dump_byname(char *section,dump_type type)" identifier (parameter_list "(char *section,dump_type type)" ( (parameter_declaration "char *section" primitive_type (pointer_declarator "*section" * identifier)) , (parameter_declaration "dump_type type" type_identifier identifier) ))) (compound_statement "{\n  dump_list_entry *pdVar1;\n  char *pcVar2;\n  \n  pdVar1 = (dump_list_entry *)malloc(0xc);\n  if (pdVar1 == (dump_list_entry *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }\n  pcVar2 = strdup(section);\n  pdVar1->name = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }\n  pdVar1->type = type;\n  pdVar1->next = dump_sects_byname;\n  dump_sects_byname = pdVar1;\n  return;\n}" { (declaration "dump_list_entry *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pdVar1 = (dump_list_entry *)malloc(0xc);" (assignment_expression "pdVar1 = (dump_list_entry *)malloc(0xc)" identifier = (cast_expression "(dump_list_entry *)malloc(0xc)" ( (type_descriptor "dump_list_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (if_statement "if (pdVar1 == (dump_list_entry *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }" if (parenthesized_expression "(pdVar1 == (dump_list_entry *)0x0)" ( (binary_expression "pdVar1 == (dump_list_entry *)0x0" identifier == (cast_expression "(dump_list_entry *)0x0" ( (type_descriptor "dump_list_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "pcVar2 = (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(pcVar2);" (call_expression "error(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) })) (expression_statement "pcVar2 = strdup(section);" (assignment_expression "pcVar2 = strdup(section)" identifier = (call_expression "strdup(section)" identifier (argument_list "(section)" ( identifier )))) ;) (expression_statement "pdVar1->name = pcVar2;" (assignment_expression "pdVar1->name = pcVar2" (field_expression "pdVar1->name" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(pcVar2);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "pcVar2 = (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(pcVar2);" (call_expression "error(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) })) (expression_statement "pdVar1->type = type;" (assignment_expression "pdVar1->type = type" (field_expression "pdVar1->type" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar1->next = dump_sects_byname;" (assignment_expression "pdVar1->next = dump_sects_byname" (field_expression "pdVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "dump_sects_byname = pdVar1;" (assignment_expression "dump_sects_byname = pdVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001e780(char *param_1,undefined1 param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)malloc(0xc);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  pcVar2 = strdup(param_1);\n  *puVar1 = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  *(undefined1 *)(puVar1 + 1) = param_2;\n  puVar1[2] = DAT_000b6280;\n  DAT_000b6280 = puVar1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001e780(char *param_1,undefined1 param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)malloc(0xc);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  pcVar2 = strdup(param_1);\n  *puVar1 = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  *(undefined1 *)(puVar1 + 1) = param_2;\n  puVar1[2] = DAT_000b6280;\n  DAT_000b6280 = puVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e780(char *param_1,undefined1 param_2)" identifier (parameter_list "(char *param_1,undefined1 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)malloc(0xc);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  pcVar2 = strdup(param_1);\n  *puVar1 = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  *(undefined1 *)(puVar1 + 1) = param_2;\n  puVar1[2] = DAT_000b6280;\n  DAT_000b6280 = puVar1;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)malloc(0xc);" (assignment_expression "puVar1 = (undefined4 *)malloc(0xc)" identifier = (cast_expression "(undefined4 *)malloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" { (expression_statement "uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar3 = 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(uVar3);" (call_expression "error(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "pcVar2 = strdup(param_1);" (assignment_expression "pcVar2 = strdup(param_1)" identifier = (call_expression "strdup(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" { (expression_statement "uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar3 = 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(uVar3);" (call_expression "error(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "*(undefined1 *)(puVar1 + 1) = param_2;" (assignment_expression "*(undefined1 *)(puVar1 + 1) = param_2" (pointer_expression "*(undefined1 *)(puVar1 + 1)" * (cast_expression "(undefined1 *)(puVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1[2] = DAT_000b6280;" (assignment_expression "puVar1[2] = DAT_000b6280" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_000b6280 = puVar1;" (assignment_expression "DAT_000b6280 = puVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 = (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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * 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 = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001e780(char *param_1,undefined1 param_2)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)malloc(0xc);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  pcVar2 = strdup(param_1);\n  *puVar1 = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  *(undefined1 *)(puVar1 + 1) = param_2;\n  puVar1[2] = DAT_000b6280;\n  DAT_000b6280 = puVar1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001e780(char *param_1,undefined1 param_2)" (identifier "FUN_0001e780") (parameter_list "(char *param_1,undefined1 param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)malloc(0xc);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  pcVar2 = strdup(param_1);\n  *puVar1 = pcVar2;\n  if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }\n  *(undefined1 *)(puVar1 + 1) = param_2;\n  puVar1[2] = DAT_000b6280;\n  DAT_000b6280 = puVar1;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = (undefined4 *)malloc(0xc);" (assignment_expression "puVar1 = (undefined4 *)malloc(0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)malloc(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0xc)" (identifier "malloc") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5)" (identifier "uVar3") (= "=") (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(uVar3);" (call_expression "error(uVar3)" (identifier "error") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar2 = strdup(param_1);" (assignment_expression "pcVar2 = strdup(param_1)" (identifier "pcVar2") (= "=") (call_expression "strdup(param_1)" (identifier "strdup") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*puVar1 = pcVar2;" (assignment_expression "*puVar1 = pcVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "pcVar2")) (; ";")) (if_statement "if (pcVar2 == (char *)0x0) {\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" (if "if") (parenthesized_expression "(pcVar2 == (char *)0x0)" (( "(") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);\n    error(uVar3);\n  }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5)" (identifier "uVar3") (= "=") (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(uVar3);" (call_expression "error(uVar3)" (identifier "error") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(puVar1 + 1) = param_2;" (assignment_expression "*(undefined1 *)(puVar1 + 1) = param_2" (pointer_expression "*(undefined1 *)(puVar1 + 1)" (* "*") (cast_expression "(undefined1 *)(puVar1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1[2] = DAT_000b6280;" (assignment_expression "puVar1[2] = DAT_000b6280" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "DAT_000b6280")) (; ";")) (expression_statement "DAT_000b6280 = puVar1;" (assignment_expression "DAT_000b6280 = puVar1" (identifier "DAT_000b6280") (= "=") (identifier "puVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *section,type_1 type)

{
  type_2 *var_2;
  char *var_6;
  
  var_2 = (type_2 *)var_1(0xc);
  if (var_2 == (type_2 *)0x0) {
    var_6 = (char *)var_3(0,"Out of memory allocating dump request table.\n",5);
    var_4(var_6);
  }
  var_6 = var_5(section);
  var_2->name = var_6;
  if (var_6 == (char *)0x0) {
    var_6 = (char *)var_3(0,"Out of memory allocating dump request table.\n",5);
    var_4(var_6);
  }
  var_2->type = type;
  var_2->next = dump_sects_byname;
  dump_sects_byname = var_2;
  return;
}


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

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

void __regparm3 MASKED(char *param_1,undefined1 param_2)

{
  undefined4 *puVar1;
  char *pcVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)malloc(0xc);
  if (puVar1 == (undefined4 *)0x0) {
    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(uVar3);
  }
  pcVar2 = strdup(param_1);
  *puVar1 = pcVar2;
  if (pcVar2 == (char *)0x0) {
    uVar3 = dcgettext(0,"Out of memory allocating dump request table.\n",5);
    error(uVar3);
  }
  *(undefined1 *)(puVar1 + 1) = param_2;
  puVar1[2] = DAT_000b6280;
  DAT_000b6280 = puVar1;
  return;
}

