
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void print(Phdrs_element * this, FILE * f) */

void __thiscall gold::Phdrs_element::print(Phdrs_element *this,FILE *f)

{
  char cVar1;
  FILE *pFVar2;
  
  pFVar2 = (FILE *)this->type_;
  fprintf((FILE *)f,"  %s 0x%x",(this->name_)._M_dataplus._M_p,pFVar2);
  if (this->includes_filehdr_ == false) {
    cVar1 = this->includes_phdrs_;
  }
  else {
    pFVar2 = f;
    fwrite(&DAT_002601a5,1,8,(FILE *)f);
    cVar1 = this->includes_phdrs_;
  }
  if (cVar1 == '\0') {
    cVar1 = this->is_flags_valid_;
  }
  else {
    pFVar2 = f;
    fwrite(&DAT_002601ae,1,6,(FILE *)f);
    cVar1 = this->is_flags_valid_;
  }
  if (cVar1 != '\0') {
    fprintf((FILE *)f," FLAGS(%u)",this->flags_,pFVar2);
  }
  if (this->load_address_ != (Expression *)0x0) {
    fwrite(&DAT_002601c0,1,4,(FILE *)f);
    (*this->load_address_->_vptr_Expression[2])(this->load_address_,f);
    fputc(0x29,(FILE *)f);
  }
  fwrite(&DAT_002601c5,1,2,(FILE *)f);
  return;
}



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

void FUN_00133450(undefined4 *param_1,FILE *param_2)

{
  char cVar1;
  FILE *pFVar2;
  
  pFVar2 = (FILE *)param_1[6];
  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);
  if (*(char *)(param_1 + 7) == '\0') {
    cVar1 = *(char *)((int)param_1 + 0x1d);
  }
  else {
    pFVar2 = param_2;
    fwrite(" FILEHDR",1,8,param_2);
    cVar1 = *(char *)((int)param_1 + 0x1d);
  }
  if (cVar1 == '\0') {
    cVar1 = *(char *)((int)param_1 + 0x1e);
  }
  else {
    pFVar2 = param_2;
    fwrite(" PHDRS",1,6,param_2);
    cVar1 = *(char *)((int)param_1 + 0x1e);
  }
  if (cVar1 != '\0') {
    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);
  }
  if (param_1[9] != 0) {
    fwrite(&DAT_002601c0,1,4,param_2);
    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);
    fputc(0x29,param_2);
  }
  fwrite(&DAT_002601c5,1,2,param_2);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00035680
ADD EBX,0x20bba4
MOV EDI,dword ptr [ESP + 0x14]
PUSH dword ptr [ESI + 0x18]
PUSH dword ptr [ESI]
LEA EAX,[EBX + 0xfff2119b]
PUSH EAX
PUSH EDI
CALL 0x00028750
ADD ESP,0x10
CMP byte ptr [ESI + 0x1c],0x0
JNZ 0x001334e0
CMP byte ptr [ESI + 0x1d],0x0
JNZ 0x001334fa
CMP byte ptr [ESI + 0x1e],0x0
JNZ 0x00133518
MOV EAX,dword ptr [ESI + 0x24]
TEST EAX,EAX
JZ 0x001334c2
LEA EAX,[EBX + 0xfff211c0]
PUSH EDI
PUSH 0x4
PUSH 0x1
PUSH EAX
CALL 0x00028730
MOV EAX,dword ptr [ESI + 0x24]
POP EDX
POP ECX
MOV EDX,dword ptr [EAX]
PUSH EDI
PUSH EAX
CALL dword ptr [EDX + 0x8]
POP ESI
POP EAX
PUSH EDI
PUSH 0x29
CALL 0x00028800
ADD ESP,0x10
LEA EAX,[EBX + 0xfff211c5]
PUSH EDI
PUSH 0x2
PUSH 0x1
PUSH EAX
CALL 0x00028730
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xfff211a5]
PUSH EDI
PUSH 0x8
PUSH 0x1
PUSH EAX
CALL 0x00028730
ADD ESP,0x10
CMP byte ptr [ESI + 0x1d],0x0
JZ 0x00133487
LEA EAX,[EBX + 0xfff211ae]
PUSH EDI
PUSH 0x6
PUSH 0x1
PUSH EAX
CALL 0x00028730
ADD ESP,0x10
CMP byte ptr [ESI + 0x1e],0x0
JZ 0x00133491
SUB ESP,0x4
LEA EAX,[EBX + 0xfff211b5]
PUSH dword ptr [ESI + 0x20]
PUSH EAX
PUSH EDI
CALL 0x00028750
ADD ESP,0x10
JMP 0x00133491
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00133450(undefined4 *param_1,FILE *param_2)\n\n{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)param_1[6];\n  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);\n  if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }\n  if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }\n  fwrite(&DAT_002601c5,1,2,param_2);\n  return;\n}\n\n" comment (function_definition "void FUN_00133450(undefined4 *param_1,FILE *param_2)\n\n{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)param_1[6];\n  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);\n  if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }\n  if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }\n  fwrite(&DAT_002601c5,1,2,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00133450(undefined4 *param_1,FILE *param_2)" identifier (parameter_list "(undefined4 *param_1,FILE *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)param_1[6];\n  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);\n  if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }\n  if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }\n  fwrite(&DAT_002601c5,1,2,param_2);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "FILE *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (expression_statement "pFVar2 = (FILE *)param_1[6];" (assignment_expression "pFVar2 = (FILE *)param_1[6]" identifier = (cast_expression "(FILE *)param_1[6]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) ;) (expression_statement "fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);" (call_expression "fprintf(param_2,"  %s 0x%x",*param_1,pFVar2)" identifier (argument_list "(param_2,"  %s 0x%x",*param_1,pFVar2)" ( identifier , (string_literal ""  %s 0x%x"" " string_content ") , (pointer_expression "*param_1" * identifier) , identifier ))) ;) (if_statement "if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" ( (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" * (cast_expression "(char *)(param_1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" { (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1d);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1d)" identifier = (pointer_expression "*(char *)((int)param_1 + 0x1d)" * (cast_expression "(char *)((int)param_1 + 0x1d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1d)" ( (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" else (compound_statement "{\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" { (expression_statement "pFVar2 = param_2;" (assignment_expression "pFVar2 = param_2" identifier = identifier) ;) (expression_statement "fwrite(" FILEHDR",1,8,param_2);" (call_expression "fwrite(" FILEHDR",1,8,param_2)" identifier (argument_list "(" FILEHDR",1,8,param_2)" ( (string_literal "" FILEHDR"" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1d);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1d)" identifier = (pointer_expression "*(char *)((int)param_1 + 0x1d)" * (cast_expression "(char *)((int)param_1 + 0x1d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1d)" ( (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" { (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1e);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1e)" identifier = (pointer_expression "*(char *)((int)param_1 + 0x1e)" * (cast_expression "(char *)((int)param_1 + 0x1e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1e)" ( (binary_expression "(int)param_1 + 0x1e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" else (compound_statement "{\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" { (expression_statement "pFVar2 = param_2;" (assignment_expression "pFVar2 = param_2" identifier = identifier) ;) (expression_statement "fwrite(" PHDRS",1,6,param_2);" (call_expression "fwrite(" PHDRS",1,6,param_2)" identifier (argument_list "(" PHDRS",1,6,param_2)" ( (string_literal "" PHDRS"" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1e);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1e)" identifier = (pointer_expression "*(char *)((int)param_1 + 0x1e)" * (cast_expression "(char *)((int)param_1 + 0x1e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1e)" ( (binary_expression "(int)param_1 + 0x1e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (if_statement "if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }" { (expression_statement "fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);" (call_expression "fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2)" identifier (argument_list "(param_2," FLAGS(%u)",param_1[8],pFVar2)" ( identifier , (string_literal "" FLAGS(%u)"" " string_content ") , (subscript_expression "param_1[8]" identifier [ number_literal ]) , identifier ))) ;) })) (if_statement "if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }" { (expression_statement "fwrite(&DAT_002601c0,1,4,param_2);" (call_expression "fwrite(&DAT_002601c0,1,4,param_2)" identifier (argument_list "(&DAT_002601c0,1,4,param_2)" ( (pointer_expression "&DAT_002601c0" & identifier) , number_literal , number_literal , identifier ))) ;) (expression_statement "(**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);" (call_expression "(**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2)" (parenthesized_expression "(**(code **)(*(int *)param_1[9] + 8))" ( (pointer_expression "**(code **)(*(int *)param_1[9] + 8)" * (pointer_expression "*(code **)(*(int *)param_1[9] + 8)" * (cast_expression "(code **)(*(int *)param_1[9] + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1[9] + 8)" ( (binary_expression "*(int *)param_1[9] + 8" (pointer_expression "*(int *)param_1[9]" * (cast_expression "(int *)param_1[9]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((int *)param_1[9],param_2)" ( (cast_expression "(int *)param_1[9]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "fputc(0x29,param_2);" (call_expression "fputc(0x29,param_2)" identifier (argument_list "(0x29,param_2)" ( number_literal , identifier ))) ;) })) (expression_statement "fwrite(&DAT_002601c5,1,2,param_2);" (call_expression "fwrite(&DAT_002601c5,1,2,param_2)" identifier (argument_list "(&DAT_002601c5,1,2,param_2)" ( (pointer_expression "&DAT_002601c5" & identifier) , number_literal , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void print(Phdrs_element * this, FILE * f) */\n\nvoid __thiscall gold::Phdrs_element::print(Phdrs_element *this,FILE *f)\n\n{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)this->type_;\n  fprintf((FILE *)f,"  %s 0x%x",(this->name_)._M_dataplus._M_p,pFVar2);\n  if (this->includes_filehdr_ == false) {\n    cVar1 = this->includes_phdrs_;\n  }\n  else {\n    pFVar2 = f;\n    fwrite(&DAT_002601a5,1,8,(FILE *)f);\n    cVar1 = this->includes_phdrs_;\n  }\n  if (cVar1 == '\0') {\n    cVar1 = this->is_flags_valid_;\n  }\n  else {\n    pFVar2 = f;\n    fwrite(&DAT_002601ae,1,6,(FILE *)f);\n    cVar1 = this->is_flags_valid_;\n  }\n  if (cVar1 != '\0') {\n    fprintf((FILE *)f," FLAGS(%u)",this->flags_,pFVar2);\n  }\n  if (this->load_address_ != (Expression *)0x0) {\n    fwrite(&DAT_002601c0,1,4,(FILE *)f);\n    (*this->load_address_->_vptr_Expression[2])(this->load_address_,f);\n    fputc(0x29,(FILE *)f);\n  }\n  fwrite(&DAT_002601c5,1,2,(FILE *)f);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Phdrs_element::print(Phdrs_element *this,FILE *f)\n\n{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)this->type_;\n  fprintf((FILE *)f,"  %s 0x%x",(this->name_)._M_dataplus._M_p,pFVar2);\n  if (this->includes_filehdr_ == false) {\n    cVar1 = this->includes_phdrs_;\n  }\n  else {\n    pFVar2 = f;\n    fwrite(&DAT_002601a5,1,8,(FILE *)f);\n    cVar1 = this->includes_phdrs_;\n  }\n  if (cVar1 == '\0') {\n    cVar1 = this->is_flags_valid_;\n  }\n  else {\n    pFVar2 = f;\n    fwrite(&DAT_002601ae,1,6,(FILE *)f);\n    cVar1 = this->is_flags_valid_;\n  }\n  if (cVar1 != '\0') {\n    fprintf((FILE *)f," FLAGS(%u)",this->flags_,pFVar2);\n  }\n  if (this->load_address_ != (Expression *)0x0) {\n    fwrite(&DAT_002601c0,1,4,(FILE *)f);\n    (*this->load_address_->_vptr_Expression[2])(this->load_address_,f);\n    fputc(0x29,(FILE *)f);\n  }\n  fwrite(&DAT_002601c5,1,2,(FILE *)f);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Phdrs_element::" identifier : : identifier : :) (function_declarator "print(Phdrs_element *this,FILE *f)" identifier (parameter_list "(Phdrs_element *this,FILE *f)" ( (parameter_declaration "Phdrs_element *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "FILE *f" type_identifier (pointer_declarator "*f" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)this->type_;\n  fprintf((FILE *)f,"  %s 0x%x",(this->name_)._M_dataplus._M_p,pFVar2);\n  if (this->includes_filehdr_ == false) {\n    cVar1 = this->includes_phdrs_;\n  }\n  else {\n    pFVar2 = f;\n    fwrite(&DAT_002601a5,1,8,(FILE *)f);\n    cVar1 = this->includes_phdrs_;\n  }\n  if (cVar1 == '\0') {\n    cVar1 = this->is_flags_valid_;\n  }\n  else {\n    pFVar2 = f;\n    fwrite(&DAT_002601ae,1,6,(FILE *)f);\n    cVar1 = this->is_flags_valid_;\n  }\n  if (cVar1 != '\0') {\n    fprintf((FILE *)f," FLAGS(%u)",this->flags_,pFVar2);\n  }\n  if (this->load_address_ != (Expression *)0x0) {\n    fwrite(&DAT_002601c0,1,4,(FILE *)f);\n    (*this->load_address_->_vptr_Expression[2])(this->load_address_,f);\n    fputc(0x29,(FILE *)f);\n  }\n  fwrite(&DAT_002601c5,1,2,(FILE *)f);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "FILE *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (expression_statement "pFVar2 = (FILE *)this->type_;" (assignment_expression "pFVar2 = (FILE *)this->type_" identifier = (cast_expression "(FILE *)this->type_" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "this->type_" identifier -> field_identifier))) ;) (expression_statement "fprintf((FILE *)f,"  %s 0x%x",(this->name_)._M_dataplus._M_p,pFVar2);" (call_expression "fprintf((FILE *)f,"  %s 0x%x",(this->name_)._M_dataplus._M_p,pFVar2)" identifier (argument_list "((FILE *)f,"  %s 0x%x",(this->name_)._M_dataplus._M_p,pFVar2)" ( (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""  %s 0x%x"" " string_content ") , (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) , identifier ))) ;) (if_statement "if (this->includes_filehdr_ == false) {\n    cVar1 = this->includes_phdrs_;\n  }\n  else {\n    pFVar2 = f;\n    fwrite(&DAT_002601a5,1,8,(FILE *)f);\n    cVar1 = this->includes_phdrs_;\n  }" if (parenthesized_expression "(this->includes_filehdr_ == false)" ( (binary_expression "this->includes_filehdr_ == false" (field_expression "this->includes_filehdr_" identifier -> field_identifier) == false) )) (compound_statement "{\n    cVar1 = this->includes_phdrs_;\n  }" { (expression_statement "cVar1 = this->includes_phdrs_;" (assignment_expression "cVar1 = this->includes_phdrs_" identifier = (field_expression "this->includes_phdrs_" identifier -> field_identifier)) ;) }) (else_clause "else {\n    pFVar2 = f;\n    fwrite(&DAT_002601a5,1,8,(FILE *)f);\n    cVar1 = this->includes_phdrs_;\n  }" else (compound_statement "{\n    pFVar2 = f;\n    fwrite(&DAT_002601a5,1,8,(FILE *)f);\n    cVar1 = this->includes_phdrs_;\n  }" { (expression_statement "pFVar2 = f;" (assignment_expression "pFVar2 = f" identifier = identifier) ;) (expression_statement "fwrite(&DAT_002601a5,1,8,(FILE *)f);" (call_expression "fwrite(&DAT_002601a5,1,8,(FILE *)f)" identifier (argument_list "(&DAT_002601a5,1,8,(FILE *)f)" ( (pointer_expression "&DAT_002601a5" & identifier) , number_literal , number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "cVar1 = this->includes_phdrs_;" (assignment_expression "cVar1 = this->includes_phdrs_" identifier = (field_expression "this->includes_phdrs_" identifier -> field_identifier)) ;) }))) (if_statement "if (cVar1 == '\0') {\n    cVar1 = this->is_flags_valid_;\n  }\n  else {\n    pFVar2 = f;\n    fwrite(&DAT_002601ae,1,6,(FILE *)f);\n    cVar1 = this->is_flags_valid_;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = this->is_flags_valid_;\n  }" { (expression_statement "cVar1 = this->is_flags_valid_;" (assignment_expression "cVar1 = this->is_flags_valid_" identifier = (field_expression "this->is_flags_valid_" identifier -> field_identifier)) ;) }) (else_clause "else {\n    pFVar2 = f;\n    fwrite(&DAT_002601ae,1,6,(FILE *)f);\n    cVar1 = this->is_flags_valid_;\n  }" else (compound_statement "{\n    pFVar2 = f;\n    fwrite(&DAT_002601ae,1,6,(FILE *)f);\n    cVar1 = this->is_flags_valid_;\n  }" { (expression_statement "pFVar2 = f;" (assignment_expression "pFVar2 = f" identifier = identifier) ;) (expression_statement "fwrite(&DAT_002601ae,1,6,(FILE *)f);" (call_expression "fwrite(&DAT_002601ae,1,6,(FILE *)f)" identifier (argument_list "(&DAT_002601ae,1,6,(FILE *)f)" ( (pointer_expression "&DAT_002601ae" & identifier) , number_literal , number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "cVar1 = this->is_flags_valid_;" (assignment_expression "cVar1 = this->is_flags_valid_" identifier = (field_expression "this->is_flags_valid_" identifier -> field_identifier)) ;) }))) (if_statement "if (cVar1 != '\0') {\n    fprintf((FILE *)f," FLAGS(%u)",this->flags_,pFVar2);\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fprintf((FILE *)f," FLAGS(%u)",this->flags_,pFVar2);\n  }" { (expression_statement "fprintf((FILE *)f," FLAGS(%u)",this->flags_,pFVar2);" (call_expression "fprintf((FILE *)f," FLAGS(%u)",this->flags_,pFVar2)" identifier (argument_list "((FILE *)f," FLAGS(%u)",this->flags_,pFVar2)" ( (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal "" FLAGS(%u)"" " string_content ") , (field_expression "this->flags_" identifier -> field_identifier) , identifier ))) ;) })) (if_statement "if (this->load_address_ != (Expression *)0x0) {\n    fwrite(&DAT_002601c0,1,4,(FILE *)f);\n    (*this->load_address_->_vptr_Expression[2])(this->load_address_,f);\n    fputc(0x29,(FILE *)f);\n  }" if (parenthesized_expression "(this->load_address_ != (Expression *)0x0)" ( (binary_expression "this->load_address_ != (Expression *)0x0" (field_expression "this->load_address_" identifier -> field_identifier) != (cast_expression "(Expression *)0x0" ( (type_descriptor "Expression *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fwrite(&DAT_002601c0,1,4,(FILE *)f);\n    (*this->load_address_->_vptr_Expression[2])(this->load_address_,f);\n    fputc(0x29,(FILE *)f);\n  }" { (expression_statement "fwrite(&DAT_002601c0,1,4,(FILE *)f);" (call_expression "fwrite(&DAT_002601c0,1,4,(FILE *)f)" identifier (argument_list "(&DAT_002601c0,1,4,(FILE *)f)" ( (pointer_expression "&DAT_002601c0" & identifier) , number_literal , number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "(*this->load_address_->_vptr_Expression[2])(this->load_address_,f);" (call_expression "(*this->load_address_->_vptr_Expression[2])(this->load_address_,f)" (parenthesized_expression "(*this->load_address_->_vptr_Expression[2])" ( (pointer_expression "*this->load_address_->_vptr_Expression[2]" * (subscript_expression "this->load_address_->_vptr_Expression[2]" (field_expression "this->load_address_->_vptr_Expression" (field_expression "this->load_address_" identifier -> field_identifier) -> field_identifier) [ number_literal ])) )) (argument_list "(this->load_address_,f)" ( (field_expression "this->load_address_" identifier -> field_identifier) , identifier ))) ;) (expression_statement "fputc(0x29,(FILE *)f);" (call_expression "fputc(0x29,(FILE *)f)" identifier (argument_list "(0x29,(FILE *)f)" ( number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (expression_statement "fwrite(&DAT_002601c5,1,2,(FILE *)f);" (call_expression "fwrite(&DAT_002601c5,1,2,(FILE *)f)" identifier (argument_list "(&DAT_002601c5,1,2,(FILE *)f)" ( (pointer_expression "&DAT_002601c5" & identifier) , number_literal , number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00133450(undefined4 *param_1,FILE *param_2)\n\n{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)param_1[6];\n  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);\n  if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }\n  if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }\n  fwrite(&DAT_002601c5,1,2,param_2);\n  return;\n}\n\n" (function_definition "void FUN_00133450(undefined4 *param_1,FILE *param_2)\n\n{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)param_1[6];\n  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);\n  if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }\n  if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }\n  fwrite(&DAT_002601c5,1,2,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00133450(undefined4 *param_1,FILE *param_2)" identifier (parameter_list "(undefined4 *param_1,FILE *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)param_1[6];\n  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);\n  if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }\n  if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }\n  fwrite(&DAT_002601c5,1,2,param_2);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "FILE *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (expression_statement "pFVar2 = (FILE *)param_1[6];" (assignment_expression "pFVar2 = (FILE *)param_1[6]" identifier = (cast_expression "(FILE *)param_1[6]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) ;) (expression_statement "fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);" (call_expression "fprintf(param_2,"  %s 0x%x",*param_1,pFVar2)" identifier (argument_list "(param_2,"  %s 0x%x",*param_1,pFVar2)" ( identifier , (string_literal ""  %s 0x%x"" " string_content ") , (pointer_expression "*param_1" * identifier) , identifier ))) ;) (if_statement "if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" ( (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" * (cast_expression "(char *)(param_1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" { (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1d);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1d)" identifier = (pointer_expression "*(char *)((int)param_1 + 0x1d)" * (cast_expression "(char *)((int)param_1 + 0x1d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1d)" ( (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" else (compound_statement "{\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" { (expression_statement "pFVar2 = param_2;" (assignment_expression "pFVar2 = param_2" identifier = identifier) ;) (expression_statement "fwrite(" FILEHDR",1,8,param_2);" (call_expression "fwrite(" FILEHDR",1,8,param_2)" identifier (argument_list "(" FILEHDR",1,8,param_2)" ( (string_literal "" FILEHDR"" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1d);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1d)" identifier = (pointer_expression "*(char *)((int)param_1 + 0x1d)" * (cast_expression "(char *)((int)param_1 + 0x1d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1d)" ( (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" { (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1e);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1e)" identifier = (pointer_expression "*(char *)((int)param_1 + 0x1e)" * (cast_expression "(char *)((int)param_1 + 0x1e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1e)" ( (binary_expression "(int)param_1 + 0x1e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" else (compound_statement "{\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" { (expression_statement "pFVar2 = param_2;" (assignment_expression "pFVar2 = param_2" identifier = identifier) ;) (expression_statement "fwrite(" PHDRS",1,6,param_2);" (call_expression "fwrite(" PHDRS",1,6,param_2)" identifier (argument_list "(" PHDRS",1,6,param_2)" ( (string_literal "" PHDRS"" " string_content ") , number_literal , number_literal , identifier ))) ;) (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1e);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1e)" identifier = (pointer_expression "*(char *)((int)param_1 + 0x1e)" * (cast_expression "(char *)((int)param_1 + 0x1e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x1e)" ( (binary_expression "(int)param_1 + 0x1e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) (if_statement "if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }" { (expression_statement "fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);" (call_expression "fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2)" identifier (argument_list "(param_2," FLAGS(%u)",param_1[8],pFVar2)" ( identifier , (string_literal "" FLAGS(%u)"" " string_content ") , (subscript_expression "param_1[8]" identifier [ number_literal ]) , identifier ))) ;) })) (if_statement "if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }" { (expression_statement "fwrite(&DAT_002601c0,1,4,param_2);" (call_expression "fwrite(&DAT_002601c0,1,4,param_2)" identifier (argument_list "(&DAT_002601c0,1,4,param_2)" ( (pointer_expression "&DAT_002601c0" & identifier) , number_literal , number_literal , identifier ))) ;) (expression_statement "(**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);" (call_expression "(**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2)" (parenthesized_expression "(**(code **)(*(int *)param_1[9] + 8))" ( (pointer_expression "**(code **)(*(int *)param_1[9] + 8)" * (pointer_expression "*(code **)(*(int *)param_1[9] + 8)" * (cast_expression "(code **)(*(int *)param_1[9] + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1[9] + 8)" ( (binary_expression "*(int *)param_1[9] + 8" (pointer_expression "*(int *)param_1[9]" * (cast_expression "(int *)param_1[9]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((int *)param_1[9],param_2)" ( (cast_expression "(int *)param_1[9]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "fputc(0x29,param_2);" (call_expression "fputc(0x29,param_2)" identifier (argument_list "(0x29,param_2)" ( number_literal , identifier ))) ;) })) (expression_statement "fwrite(&DAT_002601c5,1,2,param_2);" (call_expression "fwrite(&DAT_002601c5,1,2,param_2)" identifier (argument_list "(&DAT_002601c5,1,2,param_2)" ( (pointer_expression "&DAT_002601c5" & identifier) , number_literal , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression * IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00133450(undefined4 *param_1,FILE *param_2)\n\n{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)param_1[6];\n  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);\n  if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }\n  if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }\n  fwrite(&DAT_002601c5,1,2,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00133450(undefined4 *param_1,FILE *param_2)" (identifier "FUN_00133450") (parameter_list "(undefined4 *param_1,FILE *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "FILE *param_2" (type_identifier "FILE") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  FILE *pFVar2;\n  \n  pFVar2 = (FILE *)param_1[6];\n  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);\n  if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }\n  if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }\n  fwrite(&DAT_002601c5,1,2,param_2);\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "FILE *pFVar2;" (type_identifier "FILE") (pointer_declarator "*pFVar2" (* "*") (identifier "pFVar2")) (; ";")) (expression_statement "pFVar2 = (FILE *)param_1[6];" (assignment_expression "pFVar2 = (FILE *)param_1[6]" (identifier "pFVar2") (= "=") (cast_expression "(FILE *)param_1[6]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) (; ";")) (expression_statement "fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);" (call_expression "fprintf(param_2,"  %s 0x%x",*param_1,pFVar2)" (identifier "fprintf") (argument_list "(param_2,"  %s 0x%x",*param_1,pFVar2)" (( "(") (identifier "param_2") (, ",") (string_literal ""  %s 0x%x"" (" """) (string_content "  %s 0x%x") (" """)) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "pFVar2") () ")"))) (; ";")) (if_statement "if (*(char *)(param_1 + 7) == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" (* "*") (cast_expression "(char *)(param_1 + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" ({ "{") (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1d);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1d)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)((int)param_1 + 0x1d)" (* "*") (cast_expression "(char *)((int)param_1 + 0x1d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x1d)" (( "(") (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1d")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" (else "else") (compound_statement "{\n    pFVar2 = param_2;\n    fwrite(" FILEHDR",1,8,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1d);\n  }" ({ "{") (expression_statement "pFVar2 = param_2;" (assignment_expression "pFVar2 = param_2" (identifier "pFVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "fwrite(" FILEHDR",1,8,param_2);" (call_expression "fwrite(" FILEHDR",1,8,param_2)" (identifier "fwrite") (argument_list "(" FILEHDR",1,8,param_2)" (( "(") (string_literal "" FILEHDR"" (" """) (string_content " FILEHDR") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "8") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1d);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1d)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)((int)param_1 + 0x1d)" (* "*") (cast_expression "(char *)((int)param_1 + 0x1d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x1d)" (( "(") (binary_expression "(int)param_1 + 0x1d" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1d")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '\0') {\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }\n  else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" ({ "{") (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1e);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1e)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)((int)param_1 + 0x1e)" (* "*") (cast_expression "(char *)((int)param_1 + 0x1e)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x1e)" (( "(") (binary_expression "(int)param_1 + 0x1e" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1e")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" (else "else") (compound_statement "{\n    pFVar2 = param_2;\n    fwrite(" PHDRS",1,6,param_2);\n    cVar1 = *(char *)((int)param_1 + 0x1e);\n  }" ({ "{") (expression_statement "pFVar2 = param_2;" (assignment_expression "pFVar2 = param_2" (identifier "pFVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "fwrite(" PHDRS",1,6,param_2);" (call_expression "fwrite(" PHDRS",1,6,param_2)" (identifier "fwrite") (argument_list "(" PHDRS",1,6,param_2)" (( "(") (string_literal "" PHDRS"" (" """) (string_content " PHDRS") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "6") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "cVar1 = *(char *)((int)param_1 + 0x1e);" (assignment_expression "cVar1 = *(char *)((int)param_1 + 0x1e)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)((int)param_1 + 0x1e)" (* "*") (cast_expression "(char *)((int)param_1 + 0x1e)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x1e)" (( "(") (binary_expression "(int)param_1 + 0x1e" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1e")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (cVar1 != '\0') {\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);\n  }" ({ "{") (expression_statement "fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);" (call_expression "fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2)" (identifier "fprintf") (argument_list "(param_2," FLAGS(%u)",param_1[8],pFVar2)" (( "(") (identifier "param_2") (, ",") (string_literal "" FLAGS(%u)"" (" """) (string_content " FLAGS(%u)") (" """)) (, ",") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (, ",") (identifier "pFVar2") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[9] != 0) {\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }" (if "if") (parenthesized_expression "(param_1[9] != 0)" (( "(") (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    fwrite(&DAT_002601c0,1,4,param_2);\n    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);\n    fputc(0x29,param_2);\n  }" ({ "{") (expression_statement "fwrite(&DAT_002601c0,1,4,param_2);" (call_expression "fwrite(&DAT_002601c0,1,4,param_2)" (identifier "fwrite") (argument_list "(&DAT_002601c0,1,4,param_2)" (( "(") (pointer_expression "&DAT_002601c0" (& "&") (identifier "DAT_002601c0")) (, ",") (number_literal "1") (, ",") (number_literal "4") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "(**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);" (call_expression "(**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2)" (parenthesized_expression "(**(code **)(*(int *)param_1[9] + 8))" (( "(") (pointer_expression "**(code **)(*(int *)param_1[9] + 8)" (* "*") (pointer_expression "*(code **)(*(int *)param_1[9] + 8)" (* "*") (cast_expression "(code **)(*(int *)param_1[9] + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)param_1[9] + 8)" (( "(") (binary_expression "*(int *)param_1[9] + 8" (pointer_expression "*(int *)param_1[9]" (* "*") (cast_expression "(int *)param_1[9]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "((int *)param_1[9],param_2)" (( "(") (cast_expression "(int *)param_1[9]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "fputc(0x29,param_2);" (call_expression "fputc(0x29,param_2)" (identifier "fputc") (argument_list "(0x29,param_2)" (( "(") (number_literal "0x29") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "fwrite(&DAT_002601c5,1,2,param_2);" (call_expression "fwrite(&DAT_002601c5,1,2,param_2)" (identifier "fwrite") (argument_list "(&DAT_002601c5,1,2,param_2)" (( "(") (pointer_expression "&DAT_002601c5" (& "&") (identifier "DAT_002601c5")) (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void print(Phdrs_element * this, FILE * f) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *f)

{
  char var_3;
  type_2 *pFVar2;
  
  pFVar2 = (type_2 *)this->type_;
  var_1((type_2 *)f,"  %s 0x%x",(this->name_)._M_dataplus._M_p,pFVar2);
  if (this->includes_filehdr_ == false) {
    var_3 = this->includes_phdrs_;
  }
  else {
    pFVar2 = f;
    var_2(&DAT_002601a5,1,8,(type_2 *)f);
    var_3 = this->includes_phdrs_;
  }
  if (var_3 == '\0') {
    var_3 = this->is_flags_valid_;
  }
  else {
    pFVar2 = f;
    var_2(&DAT_002601ae,1,6,(type_2 *)f);
    var_3 = this->is_flags_valid_;
  }
  if (var_3 != '\0') {
    var_1((type_2 *)f," FLAGS(%u)",this->flags_,pFVar2);
  }
  if (this->load_address_ != (type_3 *)0x0) {
    var_2(&DAT_002601c0,1,4,(type_2 *)f);
    (*this->load_address_->_vptr_Expression[2])(this->load_address_,f);
    var_4(0x29,(type_2 *)f);
  }
  var_2(&DAT_002601c5,1,2,(type_2 *)f);
  return;
}


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

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

void MASKED(undefined4 *param_1,FILE *param_2)

{
  char cVar1;
  FILE *pFVar2;
  
  pFVar2 = (FILE *)param_1[6];
  fprintf(param_2,"  %s 0x%x",*param_1,pFVar2);
  if (*(char *)(param_1 + 7) == '\0') {
    cVar1 = *(char *)((int)param_1 + 0x1d);
  }
  else {
    pFVar2 = param_2;
    fwrite(" FILEHDR",1,8,param_2);
    cVar1 = *(char *)((int)param_1 + 0x1d);
  }
  if (cVar1 == '\0') {
    cVar1 = *(char *)((int)param_1 + 0x1e);
  }
  else {
    pFVar2 = param_2;
    fwrite(" PHDRS",1,6,param_2);
    cVar1 = *(char *)((int)param_1 + 0x1e);
  }
  if (cVar1 != '\0') {
    fprintf(param_2," FLAGS(%u)",param_1[8],pFVar2);
  }
  if (param_1[9] != 0) {
    fwrite(&DAT_002601c0,1,4,param_2);
    (**(code **)(*(int *)param_1[9] + 8))((int *)param_1[9],param_2);
    fputc(0x29,param_2);
  }
  fwrite(&DAT_002601c5,1,2,param_2);
  return;
}

