
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* WARNING: Unknown calling convention */

bool gold::is_elf_object(Input_file *input_file,off_t offset,uchar **start,int *read_size)

{
  uint uVar1;
  int *piVar2;
  section_size_type size;
  
  uVar1 = (uint)(input_file->file_).size_;
  if ((int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -
            (uint)(uVar1 < (uint)offset)) < (int)(uint)(0x3f < uVar1 - (uint)offset)) {
    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,0x40,true,false);
    *start = (uchar *)piVar2;
    *read_size = 0x40;
  }
  else {
    size = uVar1 - (uint)offset;
    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,size,true,false);
    *start = (uchar *)piVar2;
    *read_size = size;
    if ((int)size < 4) {
      return false;
    }
  }
  return elfcpp::Elf_recognizer::is_elf_file(unsigned_char_const*,int)::elfmagic == *piVar2;
}



undefined4 FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)

{
  uint uVar1;
  int *piVar2;
  int unaff_EBP;
  int iVar3;
  
  FUN_0007659f();
  uVar1 = *(uint *)(param_1 + 0x40);
  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <
      (int)(uint)(0x3f < uVar1 - param_2)) {
    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);
    *param_4 = piVar2;
    *param_5 = 0x40;
  }
  else {
    iVar3 = uVar1 - param_2;
    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);
    *param_4 = piVar2;
    *param_5 = iVar3;
    if (iVar3 < 4) {
      return 0;
    }
  }
  return CONCAT31((int3)((uint)*piVar2 >> 8),
                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);
}


PUSH EBP
CALL 0x0007659f
ADD EBP,0x2e577a
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x34]
MOV EBX,dword ptr [ESP + 0x38]
MOV ESI,dword ptr [EAX + 0x40]
MOV EDI,dword ptr [EAX + 0x44]
ADD EAX,0x1c
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,ESI
MOV EDX,EDI
SUB EAX,ECX
SBB EDX,EBX
MOV dword ptr [ESP],EAX
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,0x3f
CMP EDX,dword ptr [ESP]
MOV EDX,0x0
SBB EDX,dword ptr [ESP + 0x4]
JL 0x000c4908
SUB ESI,ECX
PUSH 0x0
PUSH 0x1
PUSH ESI
PUSH 0x0
PUSH 0x0
PUSH EBX
MOV EBX,EBP
PUSH ECX
PUSH dword ptr [ESP + 0x28]
CALL 0x00074dc0
MOV EDX,EAX
MOV EAX,dword ptr [ESP + 0x5c]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x60]
ADD ESP,0x20
MOV dword ptr [EAX],ESI
XOR EAX,EAX
CMP ESI,0x3
JG 0x000c4934
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH 0x0
PUSH 0x1
PUSH 0x40
PUSH 0x0
PUSH 0x0
PUSH EBX
MOV EBX,EBP
PUSH ECX
PUSH dword ptr [ESP + 0x28]
CALL 0x00074dc0
MOV EDX,EAX
MOV EAX,dword ptr [ESP + 0x5c]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x60]
ADD ESP,0x20
MOV dword ptr [EAX],0x40
MOV EAX,dword ptr [EDX]
CMP dword ptr [EBP + 0x3e4],EAX
SETZ AL
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "undefined4 FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int unaff_EBP;\n  int iVar3;\n  \n  FUN_0007659f();\n  uVar1 = *(uint *)(param_1 + 0x40);\n  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }\n  return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);\n}\n\n" (function_definition "undefined4 FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int unaff_EBP;\n  int iVar3;\n  \n  FUN_0007659f();\n  uVar1 = *(uint *)(param_1 + 0x40);\n  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }\n  return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);\n}" type_identifier (function_declarator "FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)" identifier (parameter_list "(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int unaff_EBP;\n  int iVar3;\n  \n  FUN_0007659f();\n  uVar1 = *(uint *)(param_1 + 0x40);\n  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }\n  return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "FUN_0007659f();" (call_expression "FUN_0007659f()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x40)" identifier = (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2))" ( (binary_expression "(int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)" (cast_expression "(int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" ( (type_descriptor "int" primitive_type) ) (unary_expression "-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" - (parenthesized_expression "((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" ( (binary_expression "(*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x44) - param_3)" ( (binary_expression "*(int *)(param_1 + 0x44) - param_3" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) - identifier) )) - (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < param_2)" ( (binary_expression "uVar1 < param_2" identifier < identifier) )))) )))) < (cast_expression "(int)(uint)(0x3f < uVar1 - param_2)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(0x3f < uVar1 - param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x3f < uVar1 - param_2)" ( (binary_expression "0x3f < uVar1 - param_2" number_literal < (binary_expression "uVar1 - param_2" identifier - identifier)) ))))) )) (compound_statement "{\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }" { (expression_statement "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);" (assignment_expression "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" identifier = (cast_expression "(int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" identifier (argument_list "(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier , identifier , number_literal , number_literal , number_literal , number_literal , number_literal ))))) ;) (expression_statement "*param_4 = piVar2;" (assignment_expression "*param_4 = piVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = 0x40;" (assignment_expression "*param_5 = 0x40" (pointer_expression "*param_5" * identifier) = number_literal) ;) }) (else_clause "else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" { (expression_statement "iVar3 = uVar1 - param_2;" (assignment_expression "iVar3 = uVar1 - param_2" identifier = (binary_expression "uVar1 - param_2" identifier - identifier)) ;) (expression_statement "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);" (assignment_expression "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" identifier = (cast_expression "(int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" identifier (argument_list "(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier , identifier , number_literal , number_literal , identifier , number_literal , number_literal ))))) ;) (expression_statement "*param_4 = piVar2;" (assignment_expression "*param_4 = piVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = iVar3;" (assignment_expression "*param_5 = iVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (if_statement "if (iVar3 < 4) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 < 4)" ( (binary_expression "iVar3 < 4" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (return_statement "return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);" return (call_expression "CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2)" identifier (argument_list "((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2)" ( (call_expression "(int3)((uint)*piVar2 >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "((uint)*piVar2 >> 8)" ( (binary_expression "(uint)*piVar2 >> 8" (binary_expression "(uint)*piVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) >> number_literal) ))) , (binary_expression "*(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2" (pointer_expression "*(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" * (cast_expression "(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" ( (binary_expression "BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd" (binary_expression "BYTE_ARRAY_002e5a81 + unaff_EBP" identifier + identifier) + number_literal) )))) == (pointer_expression "*piVar2" * identifier)) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n/* WARNING: Unknown calling convention */\n\nbool gold::is_elf_object(Input_file *input_file,off_t offset,uchar **start,int *read_size)\n\n{\n  uint uVar1;\n  int *piVar2;\n  section_size_type size;\n  \n  uVar1 = (uint)(input_file->file_).size_;\n  if ((int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset)) < (int)(uint)(0x3f < uVar1 - (uint)offset)) {\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,0x40,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = 0x40;\n  }\n  else {\n    size = uVar1 - (uint)offset;\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,size,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = size;\n    if ((int)size < 4) {\n      return false;\n    }\n  }\n  return elfcpp::Elf_recognizer::is_elf_file(unsigned_char_const*,int)::elfmagic == *piVar2;\n}\n\n" comment comment (function_definition "bool gold::is_elf_object(Input_file *input_file,off_t offset,uchar **start,int *read_size)\n\n{\n  uint uVar1;\n  int *piVar2;\n  section_size_type size;\n  \n  uVar1 = (uint)(input_file->file_).size_;\n  if ((int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset)) < (int)(uint)(0x3f < uVar1 - (uint)offset)) {\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,0x40,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = 0x40;\n  }\n  else {\n    size = uVar1 - (uint)offset;\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,size,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = size;\n    if ((int)size < 4) {\n      return false;\n    }\n  }\n  return elfcpp::Elf_recognizer::is_elf_file(unsigned_char_const*,int)::elfmagic == *piVar2;\n}" primitive_type (ERROR "gold::" identifier : :) (function_declarator "is_elf_object(Input_file *input_file,off_t offset,uchar **start,int *read_size)" identifier (parameter_list "(Input_file *input_file,off_t offset,uchar **start,int *read_size)" ( (parameter_declaration "Input_file *input_file" type_identifier (pointer_declarator "*input_file" * identifier)) , (parameter_declaration "off_t offset" type_identifier identifier) , (parameter_declaration "uchar **start" type_identifier (pointer_declarator "**start" * (pointer_declarator "*start" * identifier))) , (parameter_declaration "int *read_size" primitive_type (pointer_declarator "*read_size" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  section_size_type size;\n  \n  uVar1 = (uint)(input_file->file_).size_;\n  if ((int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset)) < (int)(uint)(0x3f < uVar1 - (uint)offset)) {\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,0x40,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = 0x40;\n  }\n  else {\n    size = uVar1 - (uint)offset;\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,size,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = size;\n    if ((int)size < 4) {\n      return false;\n    }\n  }\n  return elfcpp::Elf_recognizer::is_elf_file(unsigned_char_const*,int)::elfmagic == *piVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "section_size_type size;" type_identifier identifier ;) (expression_statement "uVar1 = (uint)(input_file->file_).size_;" (assignment_expression "uVar1 = (uint)(input_file->file_).size_" identifier = (field_expression "(uint)(input_file->file_).size_" (call_expression "(uint)(input_file->file_)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(input_file->file_)" ( (field_expression "input_file->file_" identifier -> field_identifier) ))) . field_identifier)) ;) (if_statement "if ((int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset)) < (int)(uint)(0x3f < uVar1 - (uint)offset)) {\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,0x40,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = 0x40;\n  }\n  else {\n    size = uVar1 - (uint)offset;\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,size,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = size;\n    if ((int)size < 4) {\n      return false;\n    }\n  }" if (parenthesized_expression "((int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset)) < (int)(uint)(0x3f < uVar1 - (uint)offset))" ( (binary_expression "(int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset)) < (int)(uint)(0x3f < uVar1 - (uint)offset)" (cast_expression "(int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset))" ( (type_descriptor "int" primitive_type) ) (unary_expression "-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset))" - (parenthesized_expression "((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset))" ( (binary_expression "(*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -\n            (uint)(uVar1 < (uint)offset)" (parenthesized_expression "(*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_)" ( (binary_expression "*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_" (pointer_expression "*(int *)((int)&(input_file->file_).size_ + 4)" * (cast_expression "(int *)((int)&(input_file->file_).size_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(input_file->file_).size_ + 4)" ( (binary_expression "(int)&(input_file->file_).size_ + 4" (cast_expression "(int)&(input_file->file_).size_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(input_file->file_).size_" & (field_expression "(input_file->file_).size_" (parenthesized_expression "(input_file->file_)" ( (field_expression "input_file->file_" identifier -> field_identifier) )) . field_identifier))) + number_literal) )))) - (field_expression "offset._4_4_" identifier . field_identifier)) )) - (call_expression "(uint)(uVar1 < (uint)offset)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < (uint)offset)" ( (binary_expression "uVar1 < (uint)offset" identifier < (cast_expression "(uint)offset" ( (type_descriptor "uint" type_identifier) ) identifier)) )))) )))) < (cast_expression "(int)(uint)(0x3f < uVar1 - (uint)offset)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(0x3f < uVar1 - (uint)offset)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x3f < uVar1 - (uint)offset)" ( (binary_expression "0x3f < uVar1 - (uint)offset" number_literal < (binary_expression "uVar1 - (uint)offset" identifier - (cast_expression "(uint)offset" ( (type_descriptor "uint" type_identifier) ) identifier))) ))))) )) (compound_statement "{\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,0x40,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = 0x40;\n  }" { (ERROR "piVar2 = (int *)File_read::" (assignment_expression "piVar2 = (int *)File_read" identifier = (cast_expression "(int *)File_read" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "get_view(&input_file->file_,offset,0,0x40,true,false);" (call_expression "get_view(&input_file->file_,offset,0,0x40,true,false)" identifier (argument_list "(&input_file->file_,offset,0,0x40,true,false)" ( (pointer_expression "&input_file->file_" & (field_expression "input_file->file_" identifier -> field_identifier)) , identifier , number_literal , number_literal , true , false ))) ;) (expression_statement "*start = (uchar *)piVar2;" (assignment_expression "*start = (uchar *)piVar2" (pointer_expression "*start" * identifier) = (cast_expression "(uchar *)piVar2" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*read_size = 0x40;" (assignment_expression "*read_size = 0x40" (pointer_expression "*read_size" * identifier) = number_literal) ;) }) (else_clause "else {\n    size = uVar1 - (uint)offset;\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,size,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = size;\n    if ((int)size < 4) {\n      return false;\n    }\n  }" else (compound_statement "{\n    size = uVar1 - (uint)offset;\n    piVar2 = (int *)File_read::get_view(&input_file->file_,offset,0,size,true,false);\n    *start = (uchar *)piVar2;\n    *read_size = size;\n    if ((int)size < 4) {\n      return false;\n    }\n  }" { (expression_statement "size = uVar1 - (uint)offset;" (assignment_expression "size = uVar1 - (uint)offset" identifier = (binary_expression "uVar1 - (uint)offset" identifier - (cast_expression "(uint)offset" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (ERROR "piVar2 = (int *)File_read::" (assignment_expression "piVar2 = (int *)File_read" identifier = (cast_expression "(int *)File_read" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "get_view(&input_file->file_,offset,0,size,true,false);" (call_expression "get_view(&input_file->file_,offset,0,size,true,false)" identifier (argument_list "(&input_file->file_,offset,0,size,true,false)" ( (pointer_expression "&input_file->file_" & (field_expression "input_file->file_" identifier -> field_identifier)) , identifier , number_literal , identifier , true , false ))) ;) (expression_statement "*start = (uchar *)piVar2;" (assignment_expression "*start = (uchar *)piVar2" (pointer_expression "*start" * identifier) = (cast_expression "(uchar *)piVar2" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*read_size = size;" (assignment_expression "*read_size = size" (pointer_expression "*read_size" * identifier) = identifier) ;) (if_statement "if ((int)size < 4) {\n      return false;\n    }" if (parenthesized_expression "((int)size < 4)" ( (binary_expression "(int)size < 4" (cast_expression "(int)size" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }))) (return_statement "return elfcpp::Elf_recognizer::is_elf_file(unsigned_char_const*,int)::elfmagic == *piVar2;" return (ERROR "elfcpp::Elf_recognizer::is_elf_file(unsigned_char_const*,int)::" identifier : : identifier : : (call_expression "is_elf_file(unsigned_char_const*,int)" identifier (argument_list "(unsigned_char_const*,int)" ( (binary_expression "unsigned_char_const*" identifier * identifier) , identifier ))) : :) (binary_expression "elfmagic == *piVar2" identifier == (pointer_expression "*piVar2" * identifier)) ;) })))
(translation_unit "undefined4 FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int unaff_EBP;\n  int iVar3;\n  \n  FUN_0007659f();\n  uVar1 = *(uint *)(param_1 + 0x40);\n  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }\n  return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);\n}\n\n" (function_definition "undefined4 FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int unaff_EBP;\n  int iVar3;\n  \n  FUN_0007659f();\n  uVar1 = *(uint *)(param_1 + 0x40);\n  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }\n  return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);\n}" type_identifier (function_declarator "FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)" identifier (parameter_list "(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int unaff_EBP;\n  int iVar3;\n  \n  FUN_0007659f();\n  uVar1 = *(uint *)(param_1 + 0x40);\n  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }\n  return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "FUN_0007659f();" (call_expression "FUN_0007659f()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x40)" identifier = (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2))" ( (binary_expression "(int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)" (cast_expression "(int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" ( (type_descriptor "int" primitive_type) ) (unary_expression "-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" - (parenthesized_expression "((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" ( (binary_expression "(*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x44) - param_3)" ( (binary_expression "*(int *)(param_1 + 0x44) - param_3" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) - identifier) )) - (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < param_2)" ( (binary_expression "uVar1 < param_2" identifier < identifier) )))) )))) < (cast_expression "(int)(uint)(0x3f < uVar1 - param_2)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(0x3f < uVar1 - param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x3f < uVar1 - param_2)" ( (binary_expression "0x3f < uVar1 - param_2" number_literal < (binary_expression "uVar1 - param_2" identifier - identifier)) ))))) )) (compound_statement "{\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }" { (expression_statement "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);" (assignment_expression "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" identifier = (cast_expression "(int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" identifier (argument_list "(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier , identifier , number_literal , number_literal , number_literal , number_literal , number_literal ))))) ;) (expression_statement "*param_4 = piVar2;" (assignment_expression "*param_4 = piVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = 0x40;" (assignment_expression "*param_5 = 0x40" (pointer_expression "*param_5" * identifier) = number_literal) ;) }) (else_clause "else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" { (expression_statement "iVar3 = uVar1 - param_2;" (assignment_expression "iVar3 = uVar1 - param_2" identifier = (binary_expression "uVar1 - param_2" identifier - identifier)) ;) (expression_statement "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);" (assignment_expression "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" identifier = (cast_expression "(int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" identifier (argument_list "(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) , identifier , identifier , number_literal , number_literal , identifier , number_literal , number_literal ))))) ;) (expression_statement "*param_4 = piVar2;" (assignment_expression "*param_4 = piVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_5 = iVar3;" (assignment_expression "*param_5 = iVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (if_statement "if (iVar3 < 4) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 < 4)" ( (binary_expression "iVar3 < 4" identifier < number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (return_statement "return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);" return (call_expression "CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2)" identifier (argument_list "((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2)" ( (call_expression "(int3)((uint)*piVar2 >> 8)" (parenthesized_expression "(int3)" ( identifier )) (argument_list "((uint)*piVar2 >> 8)" ( (binary_expression "(uint)*piVar2 >> 8" (binary_expression "(uint)*piVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) >> number_literal) ))) , (binary_expression "*(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2" (pointer_expression "*(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" * (cast_expression "(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" ( (binary_expression "BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd" (binary_expression "BYTE_ARRAY_002e5a81 + unaff_EBP" identifier + identifier) + number_literal) )))) == (pointer_expression "*piVar2" * identifier)) ))) ;) })))
(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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (unary_expression - (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) )))) < (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < (binary_expression IDENT - IDENT)) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , LIT , LIT , LIT , LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , LIT , LIT , IDENT , LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) }))) (return_statement return (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) >> LIT) ))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) == (pointer_expression * IDENT)) ))) ;) })))
(function_definition "undefined4 FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)\n\n{\n  uint uVar1;\n  int *piVar2;\n  int unaff_EBP;\n  int iVar3;\n  \n  FUN_0007659f();\n  uVar1 = *(uint *)(param_1 + 0x40);\n  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }\n  return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);\n}" (type_identifier "undefined4") (function_declarator "FUN_000c4880(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)" (identifier "FUN_000c4880") (parameter_list "(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  int unaff_EBP;\n  int iVar3;\n  \n  FUN_0007659f();\n  uVar1 = *(uint *)(param_1 + 0x40);\n  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }\n  return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "FUN_0007659f();" (call_expression "FUN_0007659f()" (identifier "FUN_0007659f") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x40)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (if_statement "if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)) {\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }\n  else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2))" (( "(") (binary_expression "(int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <\n      (int)(uint)(0x3f < uVar1 - param_2)" (cast_expression "(int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (unary_expression "-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" (- "-") (parenthesized_expression "((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2))" (( "(") (binary_expression "(*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)" (parenthesized_expression "(*(int *)(param_1 + 0x44) - param_3)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) - param_3" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (- "-") (identifier "param_3")) () ")")) (- "-") (call_expression "(uint)(uVar1 < param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < param_2)" (( "(") (binary_expression "uVar1 < param_2" (identifier "uVar1") (< "<") (identifier "param_2")) () ")")))) () ")")))) (< "<") (cast_expression "(int)(uint)(0x3f < uVar1 - param_2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "(uint)(0x3f < uVar1 - param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0x3f < uVar1 - param_2)" (( "(") (binary_expression "0x3f < uVar1 - param_2" (number_literal "0x3f") (< "<") (binary_expression "uVar1 - param_2" (identifier "uVar1") (- "-") (identifier "param_2"))) () ")"))))) () ")")) (compound_statement "{\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);\n    *param_4 = piVar2;\n    *param_5 = 0x40;\n  }" ({ "{") (expression_statement "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);" (assignment_expression "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" (identifier "FUN_00074dc0") (argument_list "(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0x40") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "*param_4 = piVar2;" (assignment_expression "*param_4 = piVar2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "*param_5 = 0x40;" (assignment_expression "*param_5 = 0x40" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0x40")) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    iVar3 = uVar1 - param_2;\n    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);\n    *param_4 = piVar2;\n    *param_5 = iVar3;\n    if (iVar3 < 4) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar3 = uVar1 - param_2;" (assignment_expression "iVar3 = uVar1 - param_2" (identifier "iVar3") (= "=") (binary_expression "uVar1 - param_2" (identifier "uVar1") (- "-") (identifier "param_2"))) (; ";")) (expression_statement "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);" (assignment_expression "piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" (identifier "FUN_00074dc0") (argument_list "(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "iVar3") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "*param_4 = piVar2;" (assignment_expression "*param_4 = piVar2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "*param_5 = iVar3;" (assignment_expression "*param_5 = iVar3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 < 4) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar3 < 4)" (( "(") (binary_expression "iVar3 < 4" (identifier "iVar3") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (return_statement "return CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);" (return "return") (call_expression "CONCAT31((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2)" (identifier "CONCAT31") (argument_list "((int3)((uint)*piVar2 >> 8),\n                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2)" (( "(") (call_expression "(int3)((uint)*piVar2 >> 8)" (parenthesized_expression "(int3)" (( "(") (identifier "int3") () ")")) (argument_list "((uint)*piVar2 >> 8)" (( "(") (binary_expression "(uint)*piVar2 >> 8" (binary_expression "(uint)*piVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "piVar2")) (>> ">>") (number_literal "8")) () ")"))) (, ",") (binary_expression "*(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2" (pointer_expression "*(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" (* "*") (cast_expression "(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd)" (( "(") (binary_expression "BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd" (binary_expression "BYTE_ARRAY_002e5a81 + unaff_EBP" (identifier "BYTE_ARRAY_002e5a81") (+ "+") (identifier "unaff_EBP")) (+ "+") (number_literal "0xdd")) () ")")))) (== "==") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* WARNING: Unknown calling convention */

bool gold::function_1(type_1 *input_file,type_2 offset,type_3 **start,int *read_size)

{
  type_4 var_1;
  int *piVar2;
  type_5 size;
  
  var_1 = (type_4)(input_file->file_).size_;
  if ((int)-((*(int *)((int)&(input_file->file_).size_ + 4) - offset._4_4_) -
            (type_4)(var_1 < (type_4)offset)) < (int)(type_4)(0x3f < var_1 - (type_4)offset)) {
    piVar2 = (int *)File_read::var_2(&input_file->file_,offset,0,0x40,true,false);
    *start = (type_3 *)piVar2;
    *read_size = 0x40;
  }
  else {
    size = var_1 - (type_4)offset;
    piVar2 = (int *)File_read::var_2(&input_file->file_,offset,0,size,true,false);
    *start = (type_3 *)piVar2;
    *read_size = size;
    if ((int)size < 4) {
      return false;
    }
  }
  return elfcpp::Elf_recognizer::is_elf_file(unsigned_char_const*,int)::var_3 == *piVar2;
}


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

undefined4 MASKED(int param_1,uint param_2,int param_3,undefined4 *param_4,int *param_5)

{
  uint uVar1;
  int *piVar2;
  int unaff_EBP;
  int iVar3;
  
  FUN_0007659f();
  uVar1 = *(uint *)(param_1 + 0x40);
  if ((int)-((*(int *)(param_1 + 0x44) - param_3) - (uint)(uVar1 < param_2)) <
      (int)(uint)(0x3f < uVar1 - param_2)) {
    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,0x40,1,0);
    *param_4 = piVar2;
    *param_5 = 0x40;
  }
  else {
    iVar3 = uVar1 - param_2;
    piVar2 = (int *)FUN_00074dc0(param_1 + 0x1c,param_2,param_3,0,0,iVar3,1,0);
    *param_4 = piVar2;
    *param_5 = iVar3;
    if (iVar3 < 4) {
      return 0;
    }
  }
  return CONCAT31((int3)((uint)*piVar2 >> 8),
                  *(int *)(BYTE_ARRAY_002e5a81 + unaff_EBP + 0xdd) == *piVar2);
}

