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

char * __regparm3 printable_section_name_from_index(Filedata *filedata,ulong ndx)

{
  char *pcVar1;
  
  if (ndx < (filedata->file_header).e_shnum) {
    pcVar1 = printable_section_name
                       ((Filedata *)&filedata->string_table,
                        (Elf_Internal_Shdr *)&filedata->string_table_length,
                        (Filedata *)(filedata->section_headers + ndx));
    return pcVar1;
  }
  pcVar1 = (char *)dcgettext(0,"<corrupt>",5);
  return pcVar1;
}



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

void __regparm3 FUN_00023d10(int param_1,uint param_2)

{
  if (param_2 < *(uint *)(param_1 + 0x54)) {
    FUN_00022190();
    return;
  }
  dcgettext(0,"<corrupt>",5);
  return;
}


PUSH EBX
CALL 0x00013f70
ADD EBX,0x902ea
SUB ESP,0x8
CMP dword ptr [EAX + 0x54],EDX
JBE 0x00023d40
LEA ECX,[EDX + EDX*0x8]
MOV EDX,dword ptr [EAX + 0x5c]
ADD ESP,0x8
POP EBX
LEA ECX,[EDX + ECX*0x8]
LEA EDX,[EAX + 0x68]
ADD EAX,0x64
JMP 0x00022190
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc2af3]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000130f0
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00023d10(int param_1,uint param_2)\n\n{\n  if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }\n  dcgettext(0,"<corrupt>",5);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00023d10(int param_1,uint param_2)\n\n{\n  if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }\n  dcgettext(0,"<corrupt>",5);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023d10(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }\n  dcgettext(0,"<corrupt>",5);\n  return;\n}" { (if_statement "if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }" if (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x54))" ( (binary_expression "param_2 < *(uint *)(param_1 + 0x54)" identifier < (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) )) (compound_statement "{\n    FUN_00022190();\n    return;\n  }" { (expression_statement "FUN_00022190();" (call_expression "FUN_00022190()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "dcgettext(0,"<corrupt>",5);" (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 printable_section_name_from_index(Filedata *filedata,ulong ndx)\n\n{\n  char *pcVar1;\n  \n  if (ndx < (filedata->file_header).e_shnum) {\n    pcVar1 = printable_section_name\n                       ((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx));\n    return pcVar1;\n  }\n  pcVar1 = (char *)dcgettext(0,"<corrupt>",5);\n  return pcVar1;\n}\n\n" comment (function_definition "char * __regparm3 printable_section_name_from_index(Filedata *filedata,ulong ndx)\n\n{\n  char *pcVar1;\n  \n  if (ndx < (filedata->file_header).e_shnum) {\n    pcVar1 = printable_section_name\n                       ((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx));\n    return pcVar1;\n  }\n  pcVar1 = (char *)dcgettext(0,"<corrupt>",5);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* __regparm3 printable_section_name_from_index(Filedata *filedata,ulong ndx)" * (ERROR "__regparm3" identifier) (function_declarator "printable_section_name_from_index(Filedata *filedata,ulong ndx)" identifier (parameter_list "(Filedata *filedata,ulong ndx)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "ulong ndx" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (ndx < (filedata->file_header).e_shnum) {\n    pcVar1 = printable_section_name\n                       ((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx));\n    return pcVar1;\n  }\n  pcVar1 = (char *)dcgettext(0,"<corrupt>",5);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (ndx < (filedata->file_header).e_shnum) {\n    pcVar1 = printable_section_name\n                       ((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx));\n    return pcVar1;\n  }" if (parenthesized_expression "(ndx < (filedata->file_header).e_shnum)" ( (binary_expression "ndx < (filedata->file_header).e_shnum" identifier < (field_expression "(filedata->file_header).e_shnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n    pcVar1 = printable_section_name\n                       ((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx));\n    return pcVar1;\n  }" { (expression_statement "pcVar1 = printable_section_name\n                       ((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx));" (assignment_expression "pcVar1 = printable_section_name\n                       ((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx))" identifier = (call_expression "printable_section_name\n                       ((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx))" identifier (argument_list "((Filedata *)&filedata->string_table,\n                        (Elf_Internal_Shdr *)&filedata->string_table_length,\n                        (Filedata *)(filedata->section_headers + ndx))" ( (cast_expression "(Filedata *)&filedata->string_table" ( (type_descriptor "Filedata *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&filedata->string_table" & (field_expression "filedata->string_table" identifier -> field_identifier))) , (cast_expression "(Elf_Internal_Shdr *)&filedata->string_table_length" ( (type_descriptor "Elf_Internal_Shdr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&filedata->string_table_length" & (field_expression "filedata->string_table_length" identifier -> field_identifier))) , (cast_expression "(Filedata *)(filedata->section_headers + ndx)" ( (type_descriptor "Filedata *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(filedata->section_headers + ndx)" ( (binary_expression "filedata->section_headers + ndx" (field_expression "filedata->section_headers" identifier -> field_identifier) + identifier) ))) )))) ;) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar1 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"<corrupt>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<corrupt>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_00023d10(int param_1,uint param_2)\n\n{\n  if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }\n  dcgettext(0,"<corrupt>",5);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00023d10(int param_1,uint param_2)\n\n{\n  if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }\n  dcgettext(0,"<corrupt>",5);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023d10(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }\n  dcgettext(0,"<corrupt>",5);\n  return;\n}" { (if_statement "if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }" if (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x54))" ( (binary_expression "param_2 < *(uint *)(param_1 + 0x54)" identifier < (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) )) (compound_statement "{\n    FUN_00022190();\n    return;\n  }" { (expression_statement "FUN_00022190();" (call_expression "FUN_00022190()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "dcgettext(0,"<corrupt>",5);" (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00023d10(int param_1,uint param_2)\n\n{\n  if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }\n  dcgettext(0,"<corrupt>",5);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00023d10(int param_1,uint param_2)" (identifier "FUN_00023d10") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }\n  dcgettext(0,"<corrupt>",5);\n  return;\n}" ({ "{") (if_statement "if (param_2 < *(uint *)(param_1 + 0x54)) {\n    FUN_00022190();\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x54))" (( "(") (binary_expression "param_2 < *(uint *)(param_1 + 0x54)" (identifier "param_2") (< "<") (pointer_expression "*(uint *)(param_1 + 0x54)" (* "*") (cast_expression "(uint *)(param_1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")"))))) () ")")) (compound_statement "{\n    FUN_00022190();\n    return;\n  }" ({ "{") (expression_statement "FUN_00022190();" (call_expression "FUN_00022190()" (identifier "FUN_00022190") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "dcgettext(0,"<corrupt>",5);" (call_expression "dcgettext(0,"<corrupt>",5)" (identifier "dcgettext") (argument_list "(0,"<corrupt>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<corrupt>"" (" """) (string_content "<corrupt>") (" """)) (, ",") (number_literal "5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * __regparm3 function_1(type_1 *filedata,type_2 var_1)

{
  char *pcVar1;
  
  if (var_1 < (filedata->file_header).e_shnum) {
    pcVar1 = var_2
                       ((type_1 *)&filedata->string_table,
                        (type_3 *)&filedata->string_table_length,
                        (type_1 *)(filedata->section_headers + var_1));
    return pcVar1;
  }
  pcVar1 = (char *)var_3(0,"<corrupt>",5);
  return pcVar1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal)))) (return_statement))))

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

void __regparm3 MASKED(int param_1,uint param_2)

{
  if (param_2 < *(uint *)(param_1 + 0x54)) {
    FUN_00022190();
    return;
  }
  dcgettext(0,"<corrupt>",5);
  return;
}

