
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: bool read_pubtable(Gdb_index_info_reader * this, Dwarf_pubnames_table *
   table, off_t offset) */

bool __thiscall
gold::Gdb_index_info_reader::read_pubtable
          (Gdb_index_info_reader *this,Dwarf_pubnames_table *table,off_t offset)

{
  bool bVar1;
  char *sym_name;
  uint8_t flag_byte;
  undefined4 uStack_14;
  
  uStack_14 = 0x1c2cc9;
  if (table != (Dwarf_pubnames_table *)0x0) {
    bVar1 = Dwarf_pubnames_table::read_header(table,offset);
    if (bVar1) {
      while( true ) {
        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);
        if (sym_name == (char *)0x0) break;
        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);
      }
      return bVar1;
    }
  }
  return false;
}



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

char FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  char cVar1;
  int iVar2;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x1c2cc9;
  if (param_2 != 0) {
    cVar1 = FUN_000566f0(param_2,param_3,param_4);
    if (cVar1 != '\0') {
      while( true ) {
        iVar2 = FUN_00056930(param_2,local_1d);
        if (iVar2 == 0) break;
        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,
                     local_1d[0]);
      }
      return cVar1;
    }
  }
  return '\0';
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1cc337
SUB ESP,0x2c
MOV EDI,dword ptr [ESP + 0x44]
MOV ESI,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0x48]
MOV EDX,dword ptr [ESP + 0x4c]
TEST EDI,EDI
JZ 0x001c2d48
SUB ESP,0x4
PUSH EDX
PUSH EAX
PUSH EDI
CALL 0x000566f0
MOV byte ptr [ESP + 0x1f],AL
ADD ESP,0x10
TEST AL,AL
JZ 0x001c2d48
LEA EBP,[ESP + 0x1f]
JMP 0x001c2d23
MOVZX EDX,byte ptr [ESP + 0x1f]
PUSH EDX
PUSH EAX
PUSH dword ptr [ESI + 0x4c8]
PUSH dword ptr [ESI + 0x4c4]
CALL 0x001c28d0
ADD ESP,0x10
SUB ESP,0x8
PUSH EBP
PUSH EDI
CALL 0x00056930
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001c2d08
MOVZX EAX,byte ptr [ESP + 0xf]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV byte ptr [ESP + 0xf],0x0
MOVZX EAX,byte ptr [ESP + 0xf]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }\n  return '\0';\n}\n\n" comment (function_definition "char FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }\n  return '\0';\n}" primitive_type (function_declarator "FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }\n  return '\0';\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1c2cc9;" (assignment_expression "uStack_14 = 0x1c2cc9" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }" { (expression_statement "cVar1 = FUN_000566f0(param_2,param_3,param_4);" (assignment_expression "cVar1 = FUN_000566f0(param_2,param_3,param_4)" identifier = (call_expression "FUN_000566f0(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }" { (while_statement "while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }" { (expression_statement "iVar2 = FUN_00056930(param_2,local_1d);" (assignment_expression "iVar2 = FUN_00056930(param_2,local_1d)" identifier = (call_expression "FUN_00056930(param_2,local_1d)" identifier (argument_list "(param_2,local_1d)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);" (call_expression "FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0])" identifier (argument_list "(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0])" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x4c8)" * (cast_expression "(undefined4 *)(param_1 + 0x4c8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c8)" ( (binary_expression "param_1 + 0x4c8" identifier + number_literal) )))) , identifier , (subscript_expression "local_1d[0]" identifier [ number_literal ]) ))) ;) })) (return_statement "return cVar1;" return identifier ;) })) })) (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: bool read_pubtable(Gdb_index_info_reader * this, Dwarf_pubnames_table *\n   table, off_t offset) */\n\nbool __thiscall\ngold::Gdb_index_info_reader::read_pubtable\n          (Gdb_index_info_reader *this,Dwarf_pubnames_table *table,off_t offset)\n\n{\n  bool bVar1;\n  char *sym_name;\n  uint8_t flag_byte;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (table != (Dwarf_pubnames_table *)0x0) {\n    bVar1 = Dwarf_pubnames_table::read_header(table,offset);\n    if (bVar1) {\n      while( true ) {\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }\n      return bVar1;\n    }\n  }\n  return false;\n}\n\n" comment comment (function_definition "bool __thiscall\ngold::Gdb_index_info_reader::read_pubtable\n          (Gdb_index_info_reader *this,Dwarf_pubnames_table *table,off_t offset)\n\n{\n  bool bVar1;\n  char *sym_name;\n  uint8_t flag_byte;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (table != (Dwarf_pubnames_table *)0x0) {\n    bVar1 = Dwarf_pubnames_table::read_header(table,offset);\n    if (bVar1) {\n      while( true ) {\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }\n      return bVar1;\n    }\n  }\n  return false;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Gdb_index_info_reader::" identifier : : identifier : :) (function_declarator "read_pubtable\n          (Gdb_index_info_reader *this,Dwarf_pubnames_table *table,off_t offset)" identifier (parameter_list "(Gdb_index_info_reader *this,Dwarf_pubnames_table *table,off_t offset)" ( (parameter_declaration "Gdb_index_info_reader *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Dwarf_pubnames_table *table" type_identifier (pointer_declarator "*table" * identifier)) , (parameter_declaration "off_t offset" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  char *sym_name;\n  uint8_t flag_byte;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (table != (Dwarf_pubnames_table *)0x0) {\n    bVar1 = Dwarf_pubnames_table::read_header(table,offset);\n    if (bVar1) {\n      while( true ) {\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }\n      return bVar1;\n    }\n  }\n  return false;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "char *sym_name;" primitive_type (pointer_declarator "*sym_name" * identifier) ;) (declaration "uint8_t flag_byte;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1c2cc9;" (assignment_expression "uStack_14 = 0x1c2cc9" identifier = number_literal) ;) (if_statement "if (table != (Dwarf_pubnames_table *)0x0) {\n    bVar1 = Dwarf_pubnames_table::read_header(table,offset);\n    if (bVar1) {\n      while( true ) {\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }\n      return bVar1;\n    }\n  }" if (parenthesized_expression "(table != (Dwarf_pubnames_table *)0x0)" ( (binary_expression "table != (Dwarf_pubnames_table *)0x0" identifier != (cast_expression "(Dwarf_pubnames_table *)0x0" ( (type_descriptor "Dwarf_pubnames_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bVar1 = Dwarf_pubnames_table::read_header(table,offset);\n    if (bVar1) {\n      while( true ) {\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }\n      return bVar1;\n    }\n  }" { (ERROR "bVar1 = Dwarf_pubnames_table::" (assignment_expression "bVar1 = Dwarf_pubnames_table" identifier = identifier) : :) (expression_statement "read_header(table,offset);" (call_expression "read_header(table,offset)" identifier (argument_list "(table,offset)" ( identifier , identifier ))) ;) (if_statement "if (bVar1) {\n      while( true ) {\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }\n      return bVar1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      while( true ) {\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }\n      return bVar1;\n    }" { (while_statement "while( true ) {\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        sym_name = Dwarf_pubnames_table::next_name(table,&flag_byte);\n        if (sym_name == (char *)0x0) break;\n        Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);\n      }" { (ERROR "sym_name = Dwarf_pubnames_table::" (assignment_expression "sym_name = Dwarf_pubnames_table" identifier = identifier) : :) (expression_statement "next_name(table,&flag_byte);" (call_expression "next_name(table,&flag_byte)" identifier (argument_list "(table,&flag_byte)" ( identifier , (pointer_expression "&flag_byte" & identifier) ))) ;) (if_statement "if (sym_name == (char *)0x0) break;" if (parenthesized_expression "(sym_name == (char *)0x0)" ( (binary_expression "sym_name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "Gdb_index::add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);" statement_identifier : (ERROR ":" :) (expression_statement "add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte);" (call_expression "add_symbol(this->gdb_index_,this->cu_index_,sym_name,flag_byte)" identifier (argument_list "(this->gdb_index_,this->cu_index_,sym_name,flag_byte)" ( (field_expression "this->gdb_index_" identifier -> field_identifier) , (field_expression "this->cu_index_" identifier -> field_identifier) , identifier , identifier ))) ;)) })) (return_statement "return bVar1;" return identifier ;) })) })) (return_statement "return false;" return false ;) })))
(translation_unit "char FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }\n  return '\0';\n}\n\n" (function_definition "char FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }\n  return '\0';\n}" primitive_type (function_declarator "FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }\n  return '\0';\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1c2cc9;" (assignment_expression "uStack_14 = 0x1c2cc9" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }" { (expression_statement "cVar1 = FUN_000566f0(param_2,param_3,param_4);" (assignment_expression "cVar1 = FUN_000566f0(param_2,param_3,param_4)" identifier = (call_expression "FUN_000566f0(param_2,param_3,param_4)" identifier (argument_list "(param_2,param_3,param_4)" ( identifier , identifier , identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }" { (while_statement "while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }" { (expression_statement "iVar2 = FUN_00056930(param_2,local_1d);" (assignment_expression "iVar2 = FUN_00056930(param_2,local_1d)" identifier = (call_expression "FUN_00056930(param_2,local_1d)" identifier (argument_list "(param_2,local_1d)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);" (call_expression "FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0])" identifier (argument_list "(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0])" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" * (cast_expression "(undefined4 *)(param_1 + 0x4c4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c4)" ( (binary_expression "param_1 + 0x4c4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x4c8)" * (cast_expression "(undefined4 *)(param_1 + 0x4c8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c8)" ( (binary_expression "param_1 + 0x4c8" identifier + number_literal) )))) , identifier , (subscript_expression "local_1d[0]" identifier [ number_literal ]) ))) ;) })) (return_statement "return cVar1;" return identifier ;) })) })) (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) })) (return_statement return IDENT ;) })) })) (return_statement return (char_literal ' escape_sequence ') ;) })))
(function_definition "char FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }\n  return '\0';\n}" (primitive_type "char") (function_declarator "FUN_001c2cc0(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_001c2cc0") (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1c2cc9;\n  if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }\n  return '\0';\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 local_1d [9];" (type_identifier "undefined1") (array_declarator "local_1d [9]" (identifier "local_1d") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1c2cc9;" (assignment_expression "uStack_14 = 0x1c2cc9" (identifier "uStack_14") (= "=") (number_literal "0x1c2cc9")) (; ";")) (if_statement "if (param_2 != 0) {\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    cVar1 = FUN_000566f0(param_2,param_3,param_4);\n    if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }\n  }" ({ "{") (expression_statement "cVar1 = FUN_000566f0(param_2,param_3,param_4);" (assignment_expression "cVar1 = FUN_000566f0(param_2,param_3,param_4)" (identifier "cVar1") (= "=") (call_expression "FUN_000566f0(param_2,param_3,param_4)" (identifier "FUN_000566f0") (argument_list "(param_2,param_3,param_4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }\n      return cVar1;\n    }" ({ "{") (while_statement "while( true ) {\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar2 = FUN_00056930(param_2,local_1d);\n        if (iVar2 == 0) break;\n        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);\n      }" ({ "{") (expression_statement "iVar2 = FUN_00056930(param_2,local_1d);" (assignment_expression "iVar2 = FUN_00056930(param_2,local_1d)" (identifier "iVar2") (= "=") (call_expression "FUN_00056930(param_2,local_1d)" (identifier "FUN_00056930") (argument_list "(param_2,local_1d)" (( "(") (identifier "param_2") (, ",") (identifier "local_1d") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0]);" (call_expression "FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0])" (identifier "FUN_001c28d0") (argument_list "(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,\n                     local_1d[0])" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x4c4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c4)" (( "(") (binary_expression "param_1 + 0x4c4" (identifier "param_1") (+ "+") (number_literal "0x4c4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x4c8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c8)" (( "(") (binary_expression "param_1 + 0x4c8" (identifier "param_1") (+ "+") (number_literal "0x4c8")) () ")")))) (, ",") (identifier "iVar2") (, ",") (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}"))) (return_statement "return cVar1;" (return "return") (identifier "cVar1") (; ";")) (} "}"))) (} "}"))) (return_statement "return '\0';" (return "return") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: bool read_pubtable(Gdb_index_info_reader * this, Dwarf_pubnames_table *
   table, off_t offset) */

bool __thiscall
gold::type_1::function_1
          (type_1 *this,type_2 *var_1,type_3 offset)

{
  bool bVar1;
  char *var_4;
  uint8_t flag_byte;
  type_4 uStack_14;
  
  uStack_14 = 0x1c2cc9;
  if (var_1 != (type_2 *)0x0) {
    bVar1 = type_2::var_2(var_1,offset);
    if (bVar1) {
      while( true ) {
        var_4 = type_2::var_3(var_1,&flag_byte);
        if (var_4 == (char *)0x0) break;
        Gdb_index::var_5(this->gdb_index_,this->cu_index_,var_4,flag_byte);
      }
      return bVar1;
    }
  }
  return false;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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))))) (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))))) (identifier) (subscript_expression argument: (identifier) index: (number_literal))))))) (return_statement (identifier)))))) (return_statement (char_literal (escape_sequence))))))

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

char MASKED(int param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  char cVar1;
  int iVar2;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x1c2cc9;
  if (param_2 != 0) {
    cVar1 = FUN_000566f0(param_2,param_3,param_4);
    if (cVar1 != '\0') {
      while( true ) {
        iVar2 = FUN_00056930(param_2,local_1d);
        if (iVar2 == 0) break;
        FUN_001c28d0(*(undefined4 *)(param_1 + 0x4c4),*(undefined4 *)(param_1 + 0x4c8),iVar2,
                     local_1d[0]);
      }
      return cVar1;
    }
  }
  return '\0';
}

