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

int sha1_stream(FILE *stream,void *resblock)

{
  int iVar1;
  size_t sVar2;
  size_t len;
  sha1_ctx ctx;
  char buffer [4168];
  
  ctx.A = 0x67452301;
  ctx.B = 0xefcdab89;
  ctx.C = 0x98badcfe;
  ctx.D = 0x10325476;
  ctx.E = 0xc3d2e1f0;
  ctx.total[1] = 0;
  ctx.total[0] = 0;
  ctx.buflen = 0;
  do {
    len = 0;
    while( true ) {
      sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);
      len = len + sVar2;
      if (len == 0x1000) break;
      if (sVar2 == 0) {
        iVar1 = ferror((FILE *)stream);
        if (iVar1 != 0) {
          return 1;
        }
        goto LAB_001e1047;
      }
      iVar1 = feof((FILE *)stream);
      if (iVar1 != 0) {
LAB_001e1047:
        if (len != 0) {
          sha1_process_bytes(buffer,len,&ctx);
        }
        sha1_finish_ctx(&ctx,resblock);
        return 0;
      }
    }
    sha1_process_block(buffer,0x1000,&ctx);
  } while( true );
}



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

undefined4 FUN_001e0f70(FILE *param_1,undefined4 param_2)

{
  int iVar1;
  size_t sVar2;
  int iVar3;
  undefined4 local_1104;
  undefined4 local_1100;
  undefined4 local_10fc;
  undefined4 local_10f8;
  undefined4 local_10f4;
  undefined4 local_10f0;
  undefined4 local_10ec;
  undefined4 local_10e8;
  undefined1 local_1064 [4176];
  undefined4 uStack_14;
  
  uStack_14 = 0x1e0f79;
  local_1104 = 0x67452301;
  local_1100 = 0xefcdab89;
  local_10fc = 0x98badcfe;
  local_10f8 = 0x10325476;
  local_10f4 = 0xc3d2e1f0;
  local_10ec = 0;
  local_10f0 = 0;
  local_10e8 = 0;
  do {
    iVar3 = 0;
    while( true ) {
      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);
      iVar3 = iVar3 + sVar2;
      if (iVar3 == 0x1000) break;
      if (sVar2 == 0) {
        iVar1 = ferror(param_1);
        if (iVar1 != 0) {
          return 1;
        }
        goto LAB_001e1047;
      }
      iVar1 = feof(param_1);
      if (iVar1 != 0) {
LAB_001e1047:
        if (iVar3 != 0) {
          FUN_001e0bd0(local_1064,iVar3,&local_1104);
        }
        FUN_001e0ae0(&local_1104,param_2);
        return 0;
      }
    }
    FUN_001df990(local_1064,0x1000,&local_1104);
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1ae087
SUB ESP,0x110c
LEA EAX,[ESP + 0x18]
MOV dword ptr [ESP + 0x18],0x67452301
MOV ESI,dword ptr [ESP + 0x1120]
LEA EDI,[ESP + 0xb8]
MOV dword ptr [ESP + 0x1c],0xefcdab89
MOV dword ptr [ESP + 0x20],0x98badcfe
MOV dword ptr [ESP + 0x24],0x10325476
MOV dword ptr [ESP + 0x28],0xc3d2e1f0
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0xc],EAX
XOR EBP,EBP
JMP 0x001e0ff4
TEST EAX,EAX
JZ 0x001e1030
SUB ESP,0xc
PUSH ESI
CALL 0x00029680
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001e1047
MOV EAX,0x1000
PUSH ESI
SUB EAX,EBP
PUSH EAX
LEA EAX,[EDI + EBP*0x1]
PUSH 0x1
PUSH EAX
CALL 0x00029a10
ADD ESP,0x10
ADD EBP,EAX
CMP EBP,0x1000
JNZ 0x001e0fe0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x10]
PUSH 0x1000
PUSH EDI
CALL 0x001df990
ADD ESP,0x10
JMP 0x001e0fdb
SUB ESP,0xc
PUSH ESI
CALL 0x00029ac0
ADD ESP,0x10
MOV ECX,EAX
MOV EAX,0x1
TEST ECX,ECX
JNZ 0x001e1064
LEA EBX,[ESP + 0x18]
TEST EBP,EBP
JNZ 0x001e1070
SUB ESP,0x8
PUSH dword ptr [ESP + 0x112c]
PUSH EBX
CALL 0x001e0ae0
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x110c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EBX
PUSH EBP
PUSH EDI
CALL 0x001e0bd0
ADD ESP,0x10
JMP 0x001e104f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_001e0f70(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  undefined4 local_1104;\n  undefined4 local_1100;\n  undefined4 local_10fc;\n  undefined4 local_10f8;\n  undefined4 local_10f4;\n  undefined4 local_10f0;\n  undefined4 local_10ec;\n  undefined4 local_10e8;\n  undefined1 local_1064 [4176];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e0f79;\n  local_1104 = 0x67452301;\n  local_1100 = 0xefcdab89;\n  local_10fc = 0x98badcfe;\n  local_10f8 = 0x10325476;\n  local_10f4 = 0xc3d2e1f0;\n  local_10ec = 0;\n  local_10f0 = 0;\n  local_10e8 = 0;\n  do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );\n}\n\n" comment (function_definition "undefined4 FUN_001e0f70(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  undefined4 local_1104;\n  undefined4 local_1100;\n  undefined4 local_10fc;\n  undefined4 local_10f8;\n  undefined4 local_10f4;\n  undefined4 local_10f0;\n  undefined4 local_10ec;\n  undefined4 local_10e8;\n  undefined1 local_1064 [4176];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e0f79;\n  local_1104 = 0x67452301;\n  local_1100 = 0xefcdab89;\n  local_10fc = 0x98badcfe;\n  local_10f8 = 0x10325476;\n  local_10f4 = 0xc3d2e1f0;\n  local_10ec = 0;\n  local_10f0 = 0;\n  local_10e8 = 0;\n  do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );\n}" type_identifier (function_declarator "FUN_001e0f70(FILE *param_1,undefined4 param_2)" identifier (parameter_list "(FILE *param_1,undefined4 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  undefined4 local_1104;\n  undefined4 local_1100;\n  undefined4 local_10fc;\n  undefined4 local_10f8;\n  undefined4 local_10f4;\n  undefined4 local_10f0;\n  undefined4 local_10ec;\n  undefined4 local_10e8;\n  undefined1 local_1064 [4176];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e0f79;\n  local_1104 = 0x67452301;\n  local_1100 = 0xefcdab89;\n  local_10fc = 0x98badcfe;\n  local_10f8 = 0x10325476;\n  local_10f4 = 0xc3d2e1f0;\n  local_10ec = 0;\n  local_10f0 = 0;\n  local_10e8 = 0;\n  do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 local_1104;" type_identifier identifier ;) (declaration "undefined4 local_1100;" type_identifier identifier ;) (declaration "undefined4 local_10fc;" type_identifier identifier ;) (declaration "undefined4 local_10f8;" type_identifier identifier ;) (declaration "undefined4 local_10f4;" type_identifier identifier ;) (declaration "undefined4 local_10f0;" type_identifier identifier ;) (declaration "undefined4 local_10ec;" type_identifier identifier ;) (declaration "undefined4 local_10e8;" type_identifier identifier ;) (declaration "undefined1 local_1064 [4176];" type_identifier (array_declarator "local_1064 [4176]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e0f79;" (assignment_expression "uStack_14 = 0x1e0f79" identifier = number_literal) ;) (expression_statement "local_1104 = 0x67452301;" (assignment_expression "local_1104 = 0x67452301" identifier = number_literal) ;) (expression_statement "local_1100 = 0xefcdab89;" (assignment_expression "local_1100 = 0xefcdab89" identifier = number_literal) ;) (expression_statement "local_10fc = 0x98badcfe;" (assignment_expression "local_10fc = 0x98badcfe" identifier = number_literal) ;) (expression_statement "local_10f8 = 0x10325476;" (assignment_expression "local_10f8 = 0x10325476" identifier = number_literal) ;) (expression_statement "local_10f4 = 0xc3d2e1f0;" (assignment_expression "local_10f4 = 0xc3d2e1f0" identifier = number_literal) ;) (expression_statement "local_10ec = 0;" (assignment_expression "local_10ec = 0" identifier = number_literal) ;) (expression_statement "local_10f0 = 0;" (assignment_expression "local_10f0 = 0" identifier = number_literal) ;) (expression_statement "local_10e8 = 0;" (assignment_expression "local_10e8 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );" do (compound_statement "{\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }" { (expression_statement "sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);" (assignment_expression "sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" identifier = (call_expression "fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" identifier (argument_list "(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" ( (binary_expression "local_1064 + iVar3" identifier + identifier) , number_literal , (binary_expression "0x1000 - iVar3" number_literal - identifier) , identifier )))) ;) (expression_statement "iVar3 = iVar3 + sVar2;" (assignment_expression "iVar3 = iVar3 + sVar2" identifier = (binary_expression "iVar3 + sVar2" identifier + identifier)) ;) (if_statement "if (iVar3 == 0x1000) break;" if (parenthesized_expression "(iVar3 == 0x1000)" ( (binary_expression "iVar3 == 0x1000" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }" if (parenthesized_expression "(sVar2 == 0)" ( (binary_expression "sVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }" { (expression_statement "iVar1 = ferror(param_1);" (assignment_expression "iVar1 = ferror(param_1)" identifier = (call_expression "ferror(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          return 1;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_001e1047;" goto statement_identifier ;) })) (expression_statement "iVar1 = feof(param_1);" (assignment_expression "iVar1 = feof(param_1)" identifier = (call_expression "feof(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }" { (labeled_statement "LAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" statement_identifier : (if_statement "if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" { (expression_statement "FUN_001e0bd0(local_1064,iVar3,&local_1104);" (call_expression "FUN_001e0bd0(local_1064,iVar3,&local_1104)" identifier (argument_list "(local_1064,iVar3,&local_1104)" ( identifier , identifier , (pointer_expression "&local_1104" & identifier) ))) ;) }))) (expression_statement "FUN_001e0ae0(&local_1104,param_2);" (call_expression "FUN_001e0ae0(&local_1104,param_2)" identifier (argument_list "(&local_1104,param_2)" ( (pointer_expression "&local_1104" & identifier) , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "FUN_001df990(local_1064,0x1000,&local_1104);" (call_expression "FUN_001df990(local_1064,0x1000,&local_1104)" identifier (argument_list "(local_1064,0x1000,&local_1104)" ( identifier , number_literal , (pointer_expression "&local_1104" & identifier) ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint sha1_stream(FILE *stream,void *resblock)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t len;\n  sha1_ctx ctx;\n  char buffer [4168];\n  \n  ctx.A = 0x67452301;\n  ctx.B = 0xefcdab89;\n  ctx.C = 0x98badcfe;\n  ctx.D = 0x10325476;\n  ctx.E = 0xc3d2e1f0;\n  ctx.total[1] = 0;\n  ctx.total[0] = 0;\n  ctx.buflen = 0;\n  do {\n    len = 0;\n    while( true ) {\n      sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);\n      len = len + sVar2;\n      if (len == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof((FILE *)stream);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }\n    }\n    sha1_process_block(buffer,0x1000,&ctx);\n  } while( true );\n}\n\n" comment comment (function_definition "int sha1_stream(FILE *stream,void *resblock)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t len;\n  sha1_ctx ctx;\n  char buffer [4168];\n  \n  ctx.A = 0x67452301;\n  ctx.B = 0xefcdab89;\n  ctx.C = 0x98badcfe;\n  ctx.D = 0x10325476;\n  ctx.E = 0xc3d2e1f0;\n  ctx.total[1] = 0;\n  ctx.total[0] = 0;\n  ctx.buflen = 0;\n  do {\n    len = 0;\n    while( true ) {\n      sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);\n      len = len + sVar2;\n      if (len == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof((FILE *)stream);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }\n    }\n    sha1_process_block(buffer,0x1000,&ctx);\n  } while( true );\n}" primitive_type (function_declarator "sha1_stream(FILE *stream,void *resblock)" identifier (parameter_list "(FILE *stream,void *resblock)" ( (parameter_declaration "FILE *stream" type_identifier (pointer_declarator "*stream" * identifier)) , (parameter_declaration "void *resblock" primitive_type (pointer_declarator "*resblock" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  size_t len;\n  sha1_ctx ctx;\n  char buffer [4168];\n  \n  ctx.A = 0x67452301;\n  ctx.B = 0xefcdab89;\n  ctx.C = 0x98badcfe;\n  ctx.D = 0x10325476;\n  ctx.E = 0xc3d2e1f0;\n  ctx.total[1] = 0;\n  ctx.total[0] = 0;\n  ctx.buflen = 0;\n  do {\n    len = 0;\n    while( true ) {\n      sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);\n      len = len + sVar2;\n      if (len == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof((FILE *)stream);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }\n    }\n    sha1_process_block(buffer,0x1000,&ctx);\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t len;" primitive_type identifier ;) (declaration "sha1_ctx ctx;" type_identifier identifier ;) (declaration "char buffer [4168];" primitive_type (array_declarator "buffer [4168]" identifier [ number_literal ]) ;) (expression_statement "ctx.A = 0x67452301;" (assignment_expression "ctx.A = 0x67452301" (field_expression "ctx.A" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.B = 0xefcdab89;" (assignment_expression "ctx.B = 0xefcdab89" (field_expression "ctx.B" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.C = 0x98badcfe;" (assignment_expression "ctx.C = 0x98badcfe" (field_expression "ctx.C" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.D = 0x10325476;" (assignment_expression "ctx.D = 0x10325476" (field_expression "ctx.D" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.E = 0xc3d2e1f0;" (assignment_expression "ctx.E = 0xc3d2e1f0" (field_expression "ctx.E" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.total[1] = 0;" (assignment_expression "ctx.total[1] = 0" (subscript_expression "ctx.total[1]" (field_expression "ctx.total" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "ctx.total[0] = 0;" (assignment_expression "ctx.total[0] = 0" (subscript_expression "ctx.total[0]" (field_expression "ctx.total" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "ctx.buflen = 0;" (assignment_expression "ctx.buflen = 0" (field_expression "ctx.buflen" identifier . field_identifier) = number_literal) ;) (do_statement "do {\n    len = 0;\n    while( true ) {\n      sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);\n      len = len + sVar2;\n      if (len == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof((FILE *)stream);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }\n    }\n    sha1_process_block(buffer,0x1000,&ctx);\n  } while( true );" do (compound_statement "{\n    len = 0;\n    while( true ) {\n      sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);\n      len = len + sVar2;\n      if (len == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof((FILE *)stream);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }\n    }\n    sha1_process_block(buffer,0x1000,&ctx);\n  }" { (expression_statement "len = 0;" (assignment_expression "len = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);\n      len = len + sVar2;\n      if (len == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof((FILE *)stream);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);\n      len = len + sVar2;\n      if (len == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof((FILE *)stream);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }\n    }" { (expression_statement "sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream);" (assignment_expression "sVar2 = fread(buffer + len,1,0x1000 - len,(FILE *)stream)" identifier = (call_expression "fread(buffer + len,1,0x1000 - len,(FILE *)stream)" identifier (argument_list "(buffer + len,1,0x1000 - len,(FILE *)stream)" ( (binary_expression "buffer + len" identifier + identifier) , number_literal , (binary_expression "0x1000 - len" number_literal - identifier) , (cast_expression "(FILE *)stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "len = len + sVar2;" (assignment_expression "len = len + sVar2" identifier = (binary_expression "len + sVar2" identifier + identifier)) ;) (if_statement "if (len == 0x1000) break;" if (parenthesized_expression "(len == 0x1000)" ( (binary_expression "len == 0x1000" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (sVar2 == 0) {\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }" if (parenthesized_expression "(sVar2 == 0)" ( (binary_expression "sVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = ferror((FILE *)stream);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }" { (expression_statement "iVar1 = ferror((FILE *)stream);" (assignment_expression "iVar1 = ferror((FILE *)stream)" identifier = (call_expression "ferror((FILE *)stream)" identifier (argument_list "((FILE *)stream)" ( (cast_expression "(FILE *)stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n          return 1;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_001e1047;" goto statement_identifier ;) })) (expression_statement "iVar1 = feof((FILE *)stream);" (assignment_expression "iVar1 = feof((FILE *)stream)" identifier = (call_expression "feof((FILE *)stream)" identifier (argument_list "((FILE *)stream)" ( (cast_expression "(FILE *)stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 != 0) {\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }\n        sha1_finish_ctx(&ctx,resblock);\n        return 0;\n      }" { (labeled_statement "LAB_001e1047:\n        if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }" statement_identifier : (if_statement "if (len != 0) {\n          sha1_process_bytes(buffer,len,&ctx);\n        }" if (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) (compound_statement "{\n          sha1_process_bytes(buffer,len,&ctx);\n        }" { (expression_statement "sha1_process_bytes(buffer,len,&ctx);" (call_expression "sha1_process_bytes(buffer,len,&ctx)" identifier (argument_list "(buffer,len,&ctx)" ( identifier , identifier , (pointer_expression "&ctx" & identifier) ))) ;) }))) (expression_statement "sha1_finish_ctx(&ctx,resblock);" (call_expression "sha1_finish_ctx(&ctx,resblock)" identifier (argument_list "(&ctx,resblock)" ( (pointer_expression "&ctx" & identifier) , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "sha1_process_block(buffer,0x1000,&ctx);" (call_expression "sha1_process_block(buffer,0x1000,&ctx)" identifier (argument_list "(buffer,0x1000,&ctx)" ( identifier , number_literal , (pointer_expression "&ctx" & identifier) ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_001e0f70(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  undefined4 local_1104;\n  undefined4 local_1100;\n  undefined4 local_10fc;\n  undefined4 local_10f8;\n  undefined4 local_10f4;\n  undefined4 local_10f0;\n  undefined4 local_10ec;\n  undefined4 local_10e8;\n  undefined1 local_1064 [4176];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e0f79;\n  local_1104 = 0x67452301;\n  local_1100 = 0xefcdab89;\n  local_10fc = 0x98badcfe;\n  local_10f8 = 0x10325476;\n  local_10f4 = 0xc3d2e1f0;\n  local_10ec = 0;\n  local_10f0 = 0;\n  local_10e8 = 0;\n  do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_001e0f70(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  undefined4 local_1104;\n  undefined4 local_1100;\n  undefined4 local_10fc;\n  undefined4 local_10f8;\n  undefined4 local_10f4;\n  undefined4 local_10f0;\n  undefined4 local_10ec;\n  undefined4 local_10e8;\n  undefined1 local_1064 [4176];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e0f79;\n  local_1104 = 0x67452301;\n  local_1100 = 0xefcdab89;\n  local_10fc = 0x98badcfe;\n  local_10f8 = 0x10325476;\n  local_10f4 = 0xc3d2e1f0;\n  local_10ec = 0;\n  local_10f0 = 0;\n  local_10e8 = 0;\n  do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );\n}" type_identifier (function_declarator "FUN_001e0f70(FILE *param_1,undefined4 param_2)" identifier (parameter_list "(FILE *param_1,undefined4 param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  undefined4 local_1104;\n  undefined4 local_1100;\n  undefined4 local_10fc;\n  undefined4 local_10f8;\n  undefined4 local_10f4;\n  undefined4 local_10f0;\n  undefined4 local_10ec;\n  undefined4 local_10e8;\n  undefined1 local_1064 [4176];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e0f79;\n  local_1104 = 0x67452301;\n  local_1100 = 0xefcdab89;\n  local_10fc = 0x98badcfe;\n  local_10f8 = 0x10325476;\n  local_10f4 = 0xc3d2e1f0;\n  local_10ec = 0;\n  local_10f0 = 0;\n  local_10e8 = 0;\n  do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 local_1104;" type_identifier identifier ;) (declaration "undefined4 local_1100;" type_identifier identifier ;) (declaration "undefined4 local_10fc;" type_identifier identifier ;) (declaration "undefined4 local_10f8;" type_identifier identifier ;) (declaration "undefined4 local_10f4;" type_identifier identifier ;) (declaration "undefined4 local_10f0;" type_identifier identifier ;) (declaration "undefined4 local_10ec;" type_identifier identifier ;) (declaration "undefined4 local_10e8;" type_identifier identifier ;) (declaration "undefined1 local_1064 [4176];" type_identifier (array_declarator "local_1064 [4176]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e0f79;" (assignment_expression "uStack_14 = 0x1e0f79" identifier = number_literal) ;) (expression_statement "local_1104 = 0x67452301;" (assignment_expression "local_1104 = 0x67452301" identifier = number_literal) ;) (expression_statement "local_1100 = 0xefcdab89;" (assignment_expression "local_1100 = 0xefcdab89" identifier = number_literal) ;) (expression_statement "local_10fc = 0x98badcfe;" (assignment_expression "local_10fc = 0x98badcfe" identifier = number_literal) ;) (expression_statement "local_10f8 = 0x10325476;" (assignment_expression "local_10f8 = 0x10325476" identifier = number_literal) ;) (expression_statement "local_10f4 = 0xc3d2e1f0;" (assignment_expression "local_10f4 = 0xc3d2e1f0" identifier = number_literal) ;) (expression_statement "local_10ec = 0;" (assignment_expression "local_10ec = 0" identifier = number_literal) ;) (expression_statement "local_10f0 = 0;" (assignment_expression "local_10f0 = 0" identifier = number_literal) ;) (expression_statement "local_10e8 = 0;" (assignment_expression "local_10e8 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );" do (compound_statement "{\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }" { (expression_statement "sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);" (assignment_expression "sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" identifier = (call_expression "fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" identifier (argument_list "(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" ( (binary_expression "local_1064 + iVar3" identifier + identifier) , number_literal , (binary_expression "0x1000 - iVar3" number_literal - identifier) , identifier )))) ;) (expression_statement "iVar3 = iVar3 + sVar2;" (assignment_expression "iVar3 = iVar3 + sVar2" identifier = (binary_expression "iVar3 + sVar2" identifier + identifier)) ;) (if_statement "if (iVar3 == 0x1000) break;" if (parenthesized_expression "(iVar3 == 0x1000)" ( (binary_expression "iVar3 == 0x1000" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }" if (parenthesized_expression "(sVar2 == 0)" ( (binary_expression "sVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }" { (expression_statement "iVar1 = ferror(param_1);" (assignment_expression "iVar1 = ferror(param_1)" identifier = (call_expression "ferror(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n          return 1;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) (goto_statement "goto LAB_001e1047;" goto statement_identifier ;) })) (expression_statement "iVar1 = feof(param_1);" (assignment_expression "iVar1 = feof(param_1)" identifier = (call_expression "feof(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }" { (labeled_statement "LAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" statement_identifier : (if_statement "if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" { (expression_statement "FUN_001e0bd0(local_1064,iVar3,&local_1104);" (call_expression "FUN_001e0bd0(local_1064,iVar3,&local_1104)" identifier (argument_list "(local_1064,iVar3,&local_1104)" ( identifier , identifier , (pointer_expression "&local_1104" & identifier) ))) ;) }))) (expression_statement "FUN_001e0ae0(&local_1104,param_2);" (call_expression "FUN_001e0ae0(&local_1104,param_2)" identifier (argument_list "(&local_1104,param_2)" ( (pointer_expression "&local_1104" & identifier) , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "FUN_001df990(local_1064,0x1000,&local_1104);" (call_expression "FUN_001df990(local_1064,0x1000,&local_1104)" identifier (argument_list "(local_1064,0x1000,&local_1104)" ( identifier , number_literal , (pointer_expression "&local_1104" & identifier) ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , LIT , (binary_expression LIT - IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT ))) ;) (return_statement return LIT ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) ))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_001e0f70(FILE *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  undefined4 local_1104;\n  undefined4 local_1100;\n  undefined4 local_10fc;\n  undefined4 local_10f8;\n  undefined4 local_10f4;\n  undefined4 local_10f0;\n  undefined4 local_10ec;\n  undefined4 local_10e8;\n  undefined1 local_1064 [4176];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e0f79;\n  local_1104 = 0x67452301;\n  local_1100 = 0xefcdab89;\n  local_10fc = 0x98badcfe;\n  local_10f8 = 0x10325476;\n  local_10f4 = 0xc3d2e1f0;\n  local_10ec = 0;\n  local_10f0 = 0;\n  local_10e8 = 0;\n  do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_001e0f70(FILE *param_1,undefined4 param_2)" (identifier "FUN_001e0f70") (parameter_list "(FILE *param_1,undefined4 param_2)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  int iVar3;\n  undefined4 local_1104;\n  undefined4 local_1100;\n  undefined4 local_10fc;\n  undefined4 local_10f8;\n  undefined4 local_10f4;\n  undefined4 local_10f0;\n  undefined4 local_10ec;\n  undefined4 local_10e8;\n  undefined1 local_1064 [4176];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e0f79;\n  local_1104 = 0x67452301;\n  local_1100 = 0xefcdab89;\n  local_10fc = 0x98badcfe;\n  local_10f8 = 0x10325476;\n  local_10f4 = 0xc3d2e1f0;\n  local_10ec = 0;\n  local_10f0 = 0;\n  local_10e8 = 0;\n  do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 local_1104;" (type_identifier "undefined4") (identifier "local_1104") (; ";")) (declaration "undefined4 local_1100;" (type_identifier "undefined4") (identifier "local_1100") (; ";")) (declaration "undefined4 local_10fc;" (type_identifier "undefined4") (identifier "local_10fc") (; ";")) (declaration "undefined4 local_10f8;" (type_identifier "undefined4") (identifier "local_10f8") (; ";")) (declaration "undefined4 local_10f4;" (type_identifier "undefined4") (identifier "local_10f4") (; ";")) (declaration "undefined4 local_10f0;" (type_identifier "undefined4") (identifier "local_10f0") (; ";")) (declaration "undefined4 local_10ec;" (type_identifier "undefined4") (identifier "local_10ec") (; ";")) (declaration "undefined4 local_10e8;" (type_identifier "undefined4") (identifier "local_10e8") (; ";")) (declaration "undefined1 local_1064 [4176];" (type_identifier "undefined1") (array_declarator "local_1064 [4176]" (identifier "local_1064") ([ "[") (number_literal "4176") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1e0f79;" (assignment_expression "uStack_14 = 0x1e0f79" (identifier "uStack_14") (= "=") (number_literal "0x1e0f79")) (; ";")) (expression_statement "local_1104 = 0x67452301;" (assignment_expression "local_1104 = 0x67452301" (identifier "local_1104") (= "=") (number_literal "0x67452301")) (; ";")) (expression_statement "local_1100 = 0xefcdab89;" (assignment_expression "local_1100 = 0xefcdab89" (identifier "local_1100") (= "=") (number_literal "0xefcdab89")) (; ";")) (expression_statement "local_10fc = 0x98badcfe;" (assignment_expression "local_10fc = 0x98badcfe" (identifier "local_10fc") (= "=") (number_literal "0x98badcfe")) (; ";")) (expression_statement "local_10f8 = 0x10325476;" (assignment_expression "local_10f8 = 0x10325476" (identifier "local_10f8") (= "=") (number_literal "0x10325476")) (; ";")) (expression_statement "local_10f4 = 0xc3d2e1f0;" (assignment_expression "local_10f4 = 0xc3d2e1f0" (identifier "local_10f4") (= "=") (number_literal "0xc3d2e1f0")) (; ";")) (expression_statement "local_10ec = 0;" (assignment_expression "local_10ec = 0" (identifier "local_10ec") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_10f0 = 0;" (assignment_expression "local_10f0 = 0" (identifier "local_10f0") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_10e8 = 0;" (assignment_expression "local_10e8 = 0" (identifier "local_10e8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  } while( true );" (do "do") (compound_statement "{\n    iVar3 = 0;\n    while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }\n    FUN_001df990(local_1064,0x1000,&local_1104);\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);\n      iVar3 = iVar3 + sVar2;\n      if (iVar3 == 0x1000) break;\n      if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }\n      iVar1 = feof(param_1);\n      if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }\n    }" ({ "{") (expression_statement "sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);" (assignment_expression "sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" (identifier "sVar2") (= "=") (call_expression "fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" (identifier "fread") (argument_list "(local_1064 + iVar3,1,0x1000 - iVar3,param_1)" (( "(") (binary_expression "local_1064 + iVar3" (identifier "local_1064") (+ "+") (identifier "iVar3")) (, ",") (number_literal "1") (, ",") (binary_expression "0x1000 - iVar3" (number_literal "0x1000") (- "-") (identifier "iVar3")) (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar3 = iVar3 + sVar2;" (assignment_expression "iVar3 = iVar3 + sVar2" (identifier "iVar3") (= "=") (binary_expression "iVar3 + sVar2" (identifier "iVar3") (+ "+") (identifier "sVar2"))) (; ";")) (if_statement "if (iVar3 == 0x1000) break;" (if "if") (parenthesized_expression "(iVar3 == 0x1000)" (( "(") (binary_expression "iVar3 == 0x1000" (identifier "iVar3") (== "==") (number_literal "0x1000")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (sVar2 == 0) {\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }" (if "if") (parenthesized_expression "(sVar2 == 0)" (( "(") (binary_expression "sVar2 == 0" (identifier "sVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = ferror(param_1);\n        if (iVar1 != 0) {\n          return 1;\n        }\n        goto LAB_001e1047;\n      }" ({ "{") (expression_statement "iVar1 = ferror(param_1);" (assignment_expression "iVar1 = ferror(param_1)" (identifier "iVar1") (= "=") (call_expression "ferror(param_1)" (identifier "ferror") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n          return 1;\n        }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          return 1;\n        }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (goto_statement "goto LAB_001e1047;" (goto "goto") (statement_identifier "LAB_001e1047") (; ";")) (} "}"))) (expression_statement "iVar1 = feof(param_1);" (assignment_expression "iVar1 = feof(param_1)" (identifier "iVar1") (= "=") (call_expression "feof(param_1)" (identifier "feof") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }\n        FUN_001e0ae0(&local_1104,param_2);\n        return 0;\n      }" ({ "{") (labeled_statement "LAB_001e1047:\n        if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" (statement_identifier "LAB_001e1047") (: ":") (if_statement "if (iVar3 != 0) {\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_001e0bd0(local_1064,iVar3,&local_1104);\n        }" ({ "{") (expression_statement "FUN_001e0bd0(local_1064,iVar3,&local_1104);" (call_expression "FUN_001e0bd0(local_1064,iVar3,&local_1104)" (identifier "FUN_001e0bd0") (argument_list "(local_1064,iVar3,&local_1104)" (( "(") (identifier "local_1064") (, ",") (identifier "iVar3") (, ",") (pointer_expression "&local_1104" (& "&") (identifier "local_1104")) () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_001e0ae0(&local_1104,param_2);" (call_expression "FUN_001e0ae0(&local_1104,param_2)" (identifier "FUN_001e0ae0") (argument_list "(&local_1104,param_2)" (( "(") (pointer_expression "&local_1104" (& "&") (identifier "local_1104")) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_001df990(local_1064,0x1000,&local_1104);" (call_expression "FUN_001df990(local_1064,0x1000,&local_1104)" (identifier "FUN_001df990") (argument_list "(local_1064,0x1000,&local_1104)" (( "(") (identifier "local_1064") (, ",") (number_literal "0x1000") (, ",") (pointer_expression "&local_1104" (& "&") (identifier "local_1104")) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

int function_1(type_1 *stream,void *resblock)

{
  int var_6;
  size_t var_4;
  size_t var_3;
  type_2 ctx;
  char var_2 [4168];
  
  ctx.A = 0x67452301;
  ctx.B = 0xefcdab89;
  ctx.C = 0x98badcfe;
  ctx.D = 0x10325476;
  ctx.E = 0xc3d2e1f0;
  ctx.total[1] = 0;
  ctx.total[0] = 0;
  ctx.buflen = 0;
  do {
    var_3 = 0;
    while( true ) {
      var_4 = var_1(var_2 + var_3,1,0x1000 - var_3,(type_1 *)stream);
      var_3 = var_3 + var_4;
      if (var_3 == 0x1000) break;
      if (var_4 == 0) {
        var_6 = var_5((type_1 *)stream);
        if (var_6 != 0) {
          return 1;
        }
        goto LAB_001e1047;
      }
      var_6 = var_7((type_1 *)stream);
      if (var_6 != 0) {
LAB_001e1047:
        if (var_3 != 0) {
          var_8(var_2,var_3,&ctx);
        }
        var_9(&ctx,resblock);
        return 0;
      }
    }
    var_10(var_2,0x1000,&ctx);
  } while( true );
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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))) (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))) (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))) (do_statement body: (compound_statement (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 (binary_expression left: (identifier) right: (identifier)) (number_literal) (binary_expression left: (number_literal) right: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (return_statement (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (true))))))

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

undefined4 MASKED(FILE *param_1,undefined4 param_2)

{
  int iVar1;
  size_t sVar2;
  int iVar3;
  undefined4 local_1104;
  undefined4 local_1100;
  undefined4 local_10fc;
  undefined4 local_10f8;
  undefined4 local_10f4;
  undefined4 local_10f0;
  undefined4 local_10ec;
  undefined4 local_10e8;
  undefined1 local_1064 [4176];
  undefined4 uStack_14;
  
  uStack_14 = 0x1e0f79;
  local_1104 = 0x67452301;
  local_1100 = 0xefcdab89;
  local_10fc = 0x98badcfe;
  local_10f8 = 0x10325476;
  local_10f4 = 0xc3d2e1f0;
  local_10ec = 0;
  local_10f0 = 0;
  local_10e8 = 0;
  do {
    iVar3 = 0;
    while( true ) {
      sVar2 = fread(local_1064 + iVar3,1,0x1000 - iVar3,param_1);
      iVar3 = iVar3 + sVar2;
      if (iVar3 == 0x1000) break;
      if (sVar2 == 0) {
        iVar1 = ferror(param_1);
        if (iVar1 != 0) {
          return 1;
        }
        goto LAB_001e1047;
      }
      iVar1 = feof(param_1);
      if (iVar1 != 0) {
LAB_001e1047:
        if (iVar3 != 0) {
          FUN_001e0bd0(local_1064,iVar3,&local_1104);
        }
        FUN_001e0ae0(&local_1104,param_2);
        return 0;
      }
    }
    FUN_001df990(local_1064,0x1000,&local_1104);
  } while( true );
}

