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

bfd_boolean
pecoff_checksum_contents(bfd *abfd,_func_void_void_ptr_size_t_void_ptr *process,void *arg)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  bool bVar4;
  uchar b;
  undefined4 uStack_14;
  
  iVar2 = 0;
  uVar3 = 0;
  uStack_14 = 0x52ccd;
  while( true ) {
    iVar1 = bfd_seek(abfd,uVar3,iVar2,0);
    if (iVar1 != 0) {
      return 0;
    }
    iVar1 = bfd_bread(&b,1,0,abfd);
    if (iVar1 < 1) break;
    (*process)(&b,1,arg);
    bVar4 = 0xfffffffe < uVar3;
    uVar3 = uVar3 + 1;
    iVar2 = iVar2 + (uint)bVar4;
  }
  return 1;
}



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

undefined4 FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  bool bVar4;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  iVar2 = 0;
  uVar3 = 0;
  uStack_14 = 0x52ccd;
  while( true ) {
    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);
    if (iVar1 != 0) {
      return 0;
    }
    iVar1 = bfd_bread(local_1d,1,0,param_1);
    if (iVar1 < 1) break;
    (*param_2)(local_1d,1,param_3);
    bVar4 = 0xfffffffe < uVar3;
    uVar3 = uVar3 + 1;
    iVar2 = iVar2 + (uint)bVar4;
  }
  return 1;
}


PUSH EBP
XOR EBP,EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x17b333
SUB ESP,0x2c
LEA EAX,[ESP + 0x1f]
MOV ESI,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00052d17
PUSH ESI
PUSH 0x0
PUSH 0x1
PUSH dword ptr [ESP + 0x18]
CALL 0x00016c60
ADD ESP,0x10
TEST EAX,EAX
JLE 0x00052d38
SUB ESP,0x4
PUSH dword ptr [ESP + 0x4c]
PUSH 0x1
PUSH dword ptr [ESP + 0x18]
CALL dword ptr [ESP + 0x54]
ADD EDI,0x1
ADC EBP,0x0
ADD ESP,0x10
PUSH 0x0
PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x00016da0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00052ce8
ADD ESP,0x2c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x2c
MOV EAX,0x1
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\nundefined4 FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "bool bVar4;" 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 "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x52ccd;" (assignment_expression "uStack_14 = 0x52ccd" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }" { (expression_statement "iVar1 = bfd_seek(param_1,uVar3,iVar2,0);" (assignment_expression "iVar1 = bfd_seek(param_1,uVar3,iVar2,0)" identifier = (call_expression "bfd_seek(param_1,uVar3,iVar2,0)" identifier (argument_list "(param_1,uVar3,iVar2,0)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = bfd_bread(local_1d,1,0,param_1);" (assignment_expression "iVar1 = bfd_bread(local_1d,1,0,param_1)" identifier = (call_expression "bfd_bread(local_1d,1,0,param_1)" identifier (argument_list "(local_1d,1,0,param_1)" ( identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar1 < 1) break;" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*param_2)(local_1d,1,param_3);" (call_expression "(*param_2)(local_1d,1,param_3)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(local_1d,1,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "bVar4 = 0xfffffffe < uVar3;" (assignment_expression "bVar4 = 0xfffffffe < uVar3" identifier = (binary_expression "0xfffffffe < uVar3" number_literal < identifier)) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + (uint)bVar4;" (assignment_expression "iVar2 = iVar2 + (uint)bVar4" identifier = (binary_expression "iVar2 + (uint)bVar4" identifier + (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean\npecoff_checksum_contents(bfd *abfd,_func_void_void_ptr_size_t_void_ptr *process,void *arg)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  uchar b;\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(abfd,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(&b,1,0,abfd);\n    if (iVar1 < 1) break;\n    (*process)(&b,1,arg);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}\n\n" comment comment (function_definition "bfd_boolean\npecoff_checksum_contents(bfd *abfd,_func_void_void_ptr_size_t_void_ptr *process,void *arg)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  uchar b;\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(abfd,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(&b,1,0,abfd);\n    if (iVar1 < 1) break;\n    (*process)(&b,1,arg);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}" type_identifier (function_declarator "pecoff_checksum_contents(bfd *abfd,_func_void_void_ptr_size_t_void_ptr *process,void *arg)" identifier (parameter_list "(bfd *abfd,_func_void_void_ptr_size_t_void_ptr *process,void *arg)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "_func_void_void_ptr_size_t_void_ptr *process" type_identifier (pointer_declarator "*process" * identifier)) , (parameter_declaration "void *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  uchar b;\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(abfd,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(&b,1,0,abfd);\n    if (iVar1 < 1) break;\n    (*process)(&b,1,arg);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "uchar b;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x52ccd;" (assignment_expression "uStack_14 = 0x52ccd" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = bfd_seek(abfd,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(&b,1,0,abfd);\n    if (iVar1 < 1) break;\n    (*process)(&b,1,arg);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = bfd_seek(abfd,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(&b,1,0,abfd);\n    if (iVar1 < 1) break;\n    (*process)(&b,1,arg);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }" { (expression_statement "iVar1 = bfd_seek(abfd,uVar3,iVar2,0);" (assignment_expression "iVar1 = bfd_seek(abfd,uVar3,iVar2,0)" identifier = (call_expression "bfd_seek(abfd,uVar3,iVar2,0)" identifier (argument_list "(abfd,uVar3,iVar2,0)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = bfd_bread(&b,1,0,abfd);" (assignment_expression "iVar1 = bfd_bread(&b,1,0,abfd)" identifier = (call_expression "bfd_bread(&b,1,0,abfd)" identifier (argument_list "(&b,1,0,abfd)" ( (pointer_expression "&b" & identifier) , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar1 < 1) break;" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*process)(&b,1,arg);" (call_expression "(*process)(&b,1,arg)" (parenthesized_expression "(*process)" ( (pointer_expression "*process" * identifier) )) (argument_list "(&b,1,arg)" ( (pointer_expression "&b" & identifier) , number_literal , identifier ))) ;) (expression_statement "bVar4 = 0xfffffffe < uVar3;" (assignment_expression "bVar4 = 0xfffffffe < uVar3" identifier = (binary_expression "0xfffffffe < uVar3" number_literal < identifier)) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + (uint)bVar4;" (assignment_expression "iVar2 = iVar2 + (uint)bVar4" identifier = (binary_expression "iVar2 + (uint)bVar4" identifier + (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,code *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "bool bVar4;" 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 "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x52ccd;" (assignment_expression "uStack_14 = 0x52ccd" identifier = number_literal) ;) (while_statement "while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }" { (expression_statement "iVar1 = bfd_seek(param_1,uVar3,iVar2,0);" (assignment_expression "iVar1 = bfd_seek(param_1,uVar3,iVar2,0)" identifier = (call_expression "bfd_seek(param_1,uVar3,iVar2,0)" identifier (argument_list "(param_1,uVar3,iVar2,0)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = bfd_bread(local_1d,1,0,param_1);" (assignment_expression "iVar1 = bfd_bread(local_1d,1,0,param_1)" identifier = (call_expression "bfd_bread(local_1d,1,0,param_1)" identifier (argument_list "(local_1d,1,0,param_1)" ( identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar1 < 1) break;" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "(*param_2)(local_1d,1,param_3);" (call_expression "(*param_2)(local_1d,1,param_3)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(local_1d,1,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "bVar4 = 0xfffffffe < uVar3;" (assignment_expression "bVar4 = 0xfffffffe < uVar3" identifier = (binary_expression "0xfffffffe < uVar3" number_literal < identifier)) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + (uint)bVar4;" (assignment_expression "iVar2 = iVar2 + (uint)bVar4" identifier = (binary_expression "iVar2 + (uint)bVar4" identifier + (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00052cc0(undefined4 param_1,code *param_2,undefined4 param_3)" (identifier "FUN_00052cc0") (parameter_list "(undefined4 param_1,code *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "code *param_2" (type_identifier "code") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  bool bVar4;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  iVar2 = 0;\n  uVar3 = 0;\n  uStack_14 = 0x52ccd;\n  while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (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 "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x52ccd;" (assignment_expression "uStack_14 = 0x52ccd" (identifier "uStack_14") (= "=") (number_literal "0x52ccd")) (; ";")) (while_statement "while( true ) {\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);\n    if (iVar1 != 0) {\n      return 0;\n    }\n    iVar1 = bfd_bread(local_1d,1,0,param_1);\n    if (iVar1 < 1) break;\n    (*param_2)(local_1d,1,param_3);\n    bVar4 = 0xfffffffe < uVar3;\n    uVar3 = uVar3 + 1;\n    iVar2 = iVar2 + (uint)bVar4;\n  }" ({ "{") (expression_statement "iVar1 = bfd_seek(param_1,uVar3,iVar2,0);" (assignment_expression "iVar1 = bfd_seek(param_1,uVar3,iVar2,0)" (identifier "iVar1") (= "=") (call_expression "bfd_seek(param_1,uVar3,iVar2,0)" (identifier "bfd_seek") (argument_list "(param_1,uVar3,iVar2,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") (, ",") (identifier "iVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = bfd_bread(local_1d,1,0,param_1);" (assignment_expression "iVar1 = bfd_bread(local_1d,1,0,param_1)" (identifier "iVar1") (= "=") (call_expression "bfd_bread(local_1d,1,0,param_1)" (identifier "bfd_bread") (argument_list "(local_1d,1,0,param_1)" (( "(") (identifier "local_1d") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 < 1) break;" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "(*param_2)(local_1d,1,param_3);" (call_expression "(*param_2)(local_1d,1,param_3)" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(local_1d,1,param_3)" (( "(") (identifier "local_1d") (, ",") (number_literal "1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "bVar4 = 0xfffffffe < uVar3;" (assignment_expression "bVar4 = 0xfffffffe < uVar3" (identifier "bVar4") (= "=") (binary_expression "0xfffffffe < uVar3" (number_literal "0xfffffffe") (< "<") (identifier "uVar3"))) (; ";")) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = iVar2 + (uint)bVar4;" (assignment_expression "iVar2 = iVar2 + (uint)bVar4" (identifier "iVar2") (= "=") (binary_expression "iVar2 + (uint)bVar4" (identifier "iVar2") (+ "+") (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")))) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1
function_1(type_2 *abfd,type_3 *process,void *arg)

{
  int var_2;
  int var_5;
  type_4 var_4;
  bool bVar4;
  type_5 b;
  type_6 uStack_14;
  
  var_5 = 0;
  var_4 = 0;
  uStack_14 = 0x52ccd;
  while( true ) {
    var_2 = var_1(abfd,var_4,var_5,0);
    if (var_2 != 0) {
      return 0;
    }
    var_2 = var_3(&b,1,0,abfd);
    if (var_2 < 1) break;
    (*process)(&b,1,arg);
    bVar4 = 0xfffffffe < var_4;
    var_4 = var_4 + 1;
    var_5 = var_5 + (type_4)bVar4;
  }
  return 1;
}


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

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

undefined4 MASKED(undefined4 param_1,code *param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  bool bVar4;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  iVar2 = 0;
  uVar3 = 0;
  uStack_14 = 0x52ccd;
  while( true ) {
    iVar1 = bfd_seek(param_1,uVar3,iVar2,0);
    if (iVar1 != 0) {
      return 0;
    }
    iVar1 = bfd_bread(local_1d,1,0,param_1);
    if (iVar1 < 1) break;
    (*param_2)(local_1d,1,param_3);
    bVar4 = 0xfffffffe < uVar3;
    uVar3 = uVar3 + 1;
    iVar2 = iVar2 + (uint)bVar4;
  }
  return 1;
}

