
void sha1_key_internal(void *handle,uchar *key,int len)

{
  int iVar1;
  byte *pbVar2;
  uchar *p;
  byte *pbVar3;
  uchar *key_00;
  byte *pbVar4;
  byte *pbVar5;
  byte *pbVar6;
  uchar foo [64];
  
  iVar1 = *(int *)PTR___stack_chk_guard_00122654;
  (*(code *)PTR_memset_001220dc)(foo,0x36,0x40);
  if (len < 1) {
    SHA_Init((SHA_CTX *)handle);
    SHA_Bytes((SHA_State *)handle,foo,0x40);
    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);
  }
  else {
    pbVar4 = foo;
    pbVar5 = key + len + -1;
    pbVar6 = key + 0x40;
    pbVar2 = pbVar4;
    pbVar3 = key;
    do {
      *pbVar2 = *pbVar2 ^ *pbVar3;
      if (pbVar3 == pbVar5) break;
      pbVar3 = pbVar3 + 1;
      pbVar2 = pbVar2 + 1;
    } while (pbVar3 != pbVar6);
    SHA_Init((SHA_CTX *)handle);
    SHA_Bytes((SHA_State *)handle,foo,0x40);
    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);
    do {
      *pbVar4 = *pbVar4 ^ *key;
      if (key == pbVar5) break;
      key = key + 1;
      pbVar4 = pbVar4 + 1;
    } while (key != pbVar6);
  }
  SHA_Init((SHA_CTX *)((int)handle + 0x60));
  p = foo;
  SHA_Bytes((SHA_State *)((int)handle + 0x60),p,0x40);
  key_00 = &DAT_00000040;
  (*(code *)PTR_smemclr_00121358)();
  if (iVar1 != *(int *)PTR___stack_chk_guard_00122654) {
    (*(code *)PTR___stack_chk_fail_001222ec)();
    sha1_key_internal(p,key_00,0x14);
    return;
  }
  return;
}



void FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)

{
  byte *pbVar1;
  byte *pbVar2;
  byte *pbVar3;
  byte *pbVar4;
  byte *pbVar5;
  byte local_64 [64];
  int local_24;
  
  local_24 = *(int *)PTR___stack_chk_guard_00122654;
  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);
  if (param_3 < 1) {
    SHA_Init(param_1);
    SHA_Bytes(param_1,local_64,0x40);
    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);
  }
  else {
    pbVar3 = local_64;
    pbVar4 = param_2 + param_3 + -1;
    pbVar5 = param_2 + 0x40;
    pbVar1 = pbVar3;
    pbVar2 = param_2;
    do {
      *pbVar1 = *pbVar1 ^ *pbVar2;
      if (pbVar2 == pbVar4) break;
      pbVar2 = pbVar2 + 1;
      pbVar1 = pbVar1 + 1;
    } while (pbVar2 != pbVar5);
    SHA_Init(param_1);
    SHA_Bytes(param_1,local_64,0x40);
    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);
    do {
      *pbVar3 = *pbVar3 ^ *param_2;
      if (param_2 == pbVar4) break;
      param_2 = param_2 + 1;
      pbVar3 = pbVar3 + 1;
    } while (param_2 != pbVar5);
  }
  SHA_Init(param_1 + 1);
  SHA_Bytes(param_1 + 1,local_64,0x40);
  (*(code *)PTR_smemclr_00121358)(local_64,0x40);
  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {
    (*(code *)PTR___stack_chk_fail_001222ec)();
    FUN_000900ac();
    return;
  }
  return;
}


lui gp,0xa
addiu gp,gp,-0x6dfc
addu gp,gp,t9
addiu sp,sp,-0x80
sw ra,0x7c(sp)
sw s5,0x78(sp)
sw s4,0x74(sp)
sw s3,0x70(sp)
sw s2,0x6c(sp)
sw s1,0x68(sp)
sw s0,0x64(sp)
sw gp,0x10(sp)
or s5,a0,zero
or s0,a1,zero
or s3,a2,zero
lw v0,-0x6c5c(gp)
lw v0,0x0(v0)
sw v0,0x5c(sp)
li a2,0x40
li a1,0x36
addiu a0,sp,0x1c
lw t9,-0x71d4(gp)
jalr t9
_nop
lw gp,0x10(sp)
blez s3,0x00090244
_addiu v0,s0,-0x1
addiu s2,sp,0x1c
or s1,s0,zero
addu s3,v0,s3
addiu s4,s0,0x40
or a1,s0,zero
or v1,s2,zero
lbu v0,0x0(v1)
lbu a0,0x0(a1)
xor v0,v0,a0
beq a1,s3,0x00090150
_sb v0,0x0(v1)
addiu a1,a1,0x1
bne a1,s4,0x00090130
_addiu v1,v1,0x1
or a0,s5,zero
lw t9,-0x7914(gp)
bal 0x0008fe08
_nop
lw gp,0x10(sp)
li a2,0x40
addiu s0,sp,0x1c
or a1,s0,zero
or a0,s5,zero
lw t9,-0x7918(gp)
bal 0x0008feb4
_nop
lw gp,0x10(sp)
li a2,0x40
li a1,0x5c
or a0,s0,zero
lw t9,-0x71d4(gp)
jalr t9
_nop
lw gp,0x10(sp)
lbu v0,0x0(s2)
lbu v1,0x0(s1)
xor v0,v0,v1
beq s1,s3,0x000901c0
_sb v0,0x0(s2)
addiu s1,s1,0x1
bne s1,s4,0x000901a0
_addiu s2,s2,0x1
addiu s5,s5,0x60
or a0,s5,zero
lw t9,-0x7914(gp)
bal 0x0008fe08
_nop
lw gp,0x10(sp)
li a2,0x40
addiu s0,sp,0x1c
or a1,s0,zero
or a0,s5,zero
lw t9,-0x7918(gp)
bal 0x0008feb4
_nop
lw gp,0x10(sp)
li a1,0x40
or a0,s0,zero
lw t9,-0x7f58(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x5c(sp)
lw v0,-0x6c5c(gp)
lw v0,0x0(v0)
bne v1,v0,0x0009029c
_lw ra,0x7c(sp)
lw s5,0x78(sp)
lw s4,0x74(sp)
lw s3,0x70(sp)
lw s2,0x6c(sp)
lw s1,0x68(sp)
lw s0,0x64(sp)
jr ra
_addiu sp,sp,0x80
or a0,s5,zero
lw t9,-0x7914(gp)
bal 0x0008fe08
_nop
lw gp,0x10(sp)
li a2,0x40
addiu s0,sp,0x1c
or a1,s0,zero
or a0,s5,zero
lw t9,-0x7918(gp)
bal 0x0008feb4
_nop
lw gp,0x10(sp)
li a2,0x40
li a1,0x5c
or a0,s0,zero
lw t9,-0x71d4(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x000901c4
_addiu s5,s5,0x60
lw t9,-0x6fc4(gp)
jalr t9
_nop
lui gp,0xa
addiu gp,gp,-0x6ff8
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
li a2,0x14
lw t9,-0x7854(gp)
addiu t9,t9,0xac
bal 0x000900ac
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte local_64 [64];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);\n  if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }\n  SHA_Init(param_1 + 1);\n  SHA_Bytes(param_1 + 1,local_64,0x40);\n  (*(code *)PTR_smemclr_00121358)(local_64,0x40);\n  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte local_64 [64];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);\n  if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }\n  SHA_Init(param_1 + 1);\n  SHA_Bytes(param_1 + 1,local_64,0x40);\n  (*(code *)PTR_smemclr_00121358)(local_64,0x40);\n  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)" identifier (parameter_list "(SHA_CTX *param_1,byte *param_2,int param_3)" ( (parameter_declaration "SHA_CTX *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte local_64 [64];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);\n  if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }\n  SHA_Init(param_1 + 1);\n  SHA_Bytes(param_1 + 1,local_64,0x40);\n  (*(code *)PTR_smemclr_00121358)(local_64,0x40);\n  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte local_64 [64];" type_identifier (array_declarator "local_64 [64]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x36,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x36,0x40)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }" { (expression_statement "SHA_Init(param_1);" (call_expression "SHA_Init(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "SHA_Bytes(param_1,local_64,0x40);" (call_expression "SHA_Bytes(param_1,local_64,0x40)" identifier (argument_list "(param_1,local_64,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) }) (else_clause "else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" else (compound_statement "{\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" { (expression_statement "pbVar3 = local_64;" (assignment_expression "pbVar3 = local_64" identifier = identifier) ;) (expression_statement "pbVar4 = param_2 + param_3 + -1;" (assignment_expression "pbVar4 = param_2 + param_3 + -1" identifier = (binary_expression "param_2 + param_3 + -1" (binary_expression "param_2 + param_3" identifier + identifier) + number_literal)) ;) (expression_statement "pbVar5 = param_2 + 0x40;" (assignment_expression "pbVar5 = param_2 + 0x40" identifier = (binary_expression "param_2 + 0x40" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar3;" (assignment_expression "pbVar1 = pbVar3" identifier = identifier) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);" do (compound_statement "{\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    }" { (expression_statement "*pbVar1 = *pbVar1 ^ *pbVar2;" (assignment_expression "*pbVar1 = *pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" * identifier) ^ (pointer_expression "*pbVar2" * identifier))) ;) (if_statement "if (pbVar2 == pbVar4) break;" if (parenthesized_expression "(pbVar2 == pbVar4)" ( (binary_expression "pbVar2 == pbVar4" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar2 != pbVar5)" ( (binary_expression "pbVar2 != pbVar5" identifier != identifier) )) ;) (expression_statement "SHA_Init(param_1);" (call_expression "SHA_Init(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "SHA_Bytes(param_1,local_64,0x40);" (call_expression "SHA_Bytes(param_1,local_64,0x40)" identifier (argument_list "(param_1,local_64,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) (do_statement "do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);" do (compound_statement "{\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "*pbVar3 = *pbVar3 ^ *param_2;" (assignment_expression "*pbVar3 = *pbVar3 ^ *param_2" (pointer_expression "*pbVar3" * identifier) = (binary_expression "*pbVar3 ^ *param_2" (pointer_expression "*pbVar3" * identifier) ^ (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (param_2 == pbVar4) break;" if (parenthesized_expression "(param_2 == pbVar4)" ( (binary_expression "param_2 == pbVar4" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != pbVar5)" ( (binary_expression "param_2 != pbVar5" identifier != identifier) )) ;) }))) (expression_statement "SHA_Init(param_1 + 1);" (call_expression "SHA_Init(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "SHA_Bytes(param_1 + 1,local_64,0x40);" (call_expression "SHA_Bytes(param_1 + 1,local_64,0x40)" identifier (argument_list "(param_1 + 1,local_64,0x40)" ( (binary_expression "param_1 + 1" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_smemclr_00121358)(local_64,0x40);" (call_expression "(*(code *)PTR_smemclr_00121358)(local_64,0x40)" (parenthesized_expression "(*(code *)PTR_smemclr_00121358)" ( (pointer_expression "*(code *)PTR_smemclr_00121358" * (cast_expression "(code *)PTR_smemclr_00121358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x40)" ( identifier , number_literal ))) ;) (if_statement "if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }" if (parenthesized_expression "(local_24 != *(int *)PTR___stack_chk_guard_00122654)" ( (binary_expression "local_24 != *(int *)PTR___stack_chk_guard_00122654" identifier != (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "FUN_000900ac();" (call_expression "FUN_000900ac()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sha1_key_internal(void *handle,uchar *key,int len)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  uchar *p;\n  byte *pbVar3;\n  uchar *key_00;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  uchar foo [64];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(foo,0x36,0x40);\n  if (len < 1) {\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n  }\n  else {\n    pbVar4 = foo;\n    pbVar5 = key + len + -1;\n    pbVar6 = key + 0x40;\n    pbVar2 = pbVar4;\n    pbVar3 = key;\n    do {\n      *pbVar2 = *pbVar2 ^ *pbVar3;\n      if (pbVar3 == pbVar5) break;\n      pbVar3 = pbVar3 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (pbVar3 != pbVar6);\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n    do {\n      *pbVar4 = *pbVar4 ^ *key;\n      if (key == pbVar5) break;\n      key = key + 1;\n      pbVar4 = pbVar4 + 1;\n    } while (key != pbVar6);\n  }\n  SHA_Init((SHA_CTX *)((int)handle + 0x60));\n  p = foo;\n  SHA_Bytes((SHA_State *)((int)handle + 0x60),p,0x40);\n  key_00 = &DAT_00000040;\n  (*(code *)PTR_smemclr_00121358)();\n  if (iVar1 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    sha1_key_internal(p,key_00,0x14);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void sha1_key_internal(void *handle,uchar *key,int len)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  uchar *p;\n  byte *pbVar3;\n  uchar *key_00;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  uchar foo [64];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(foo,0x36,0x40);\n  if (len < 1) {\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n  }\n  else {\n    pbVar4 = foo;\n    pbVar5 = key + len + -1;\n    pbVar6 = key + 0x40;\n    pbVar2 = pbVar4;\n    pbVar3 = key;\n    do {\n      *pbVar2 = *pbVar2 ^ *pbVar3;\n      if (pbVar3 == pbVar5) break;\n      pbVar3 = pbVar3 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (pbVar3 != pbVar6);\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n    do {\n      *pbVar4 = *pbVar4 ^ *key;\n      if (key == pbVar5) break;\n      key = key + 1;\n      pbVar4 = pbVar4 + 1;\n    } while (key != pbVar6);\n  }\n  SHA_Init((SHA_CTX *)((int)handle + 0x60));\n  p = foo;\n  SHA_Bytes((SHA_State *)((int)handle + 0x60),p,0x40);\n  key_00 = &DAT_00000040;\n  (*(code *)PTR_smemclr_00121358)();\n  if (iVar1 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    sha1_key_internal(p,key_00,0x14);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "sha1_key_internal(void *handle,uchar *key,int len)" identifier (parameter_list "(void *handle,uchar *key,int len)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *key" type_identifier (pointer_declarator "*key" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  uchar *p;\n  byte *pbVar3;\n  uchar *key_00;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  uchar foo [64];\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(foo,0x36,0x40);\n  if (len < 1) {\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n  }\n  else {\n    pbVar4 = foo;\n    pbVar5 = key + len + -1;\n    pbVar6 = key + 0x40;\n    pbVar2 = pbVar4;\n    pbVar3 = key;\n    do {\n      *pbVar2 = *pbVar2 ^ *pbVar3;\n      if (pbVar3 == pbVar5) break;\n      pbVar3 = pbVar3 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (pbVar3 != pbVar6);\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n    do {\n      *pbVar4 = *pbVar4 ^ *key;\n      if (key == pbVar5) break;\n      key = key + 1;\n      pbVar4 = pbVar4 + 1;\n    } while (key != pbVar6);\n  }\n  SHA_Init((SHA_CTX *)((int)handle + 0x60));\n  p = foo;\n  SHA_Bytes((SHA_State *)((int)handle + 0x60),p,0x40);\n  key_00 = &DAT_00000040;\n  (*(code *)PTR_smemclr_00121358)();\n  if (iVar1 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    sha1_key_internal(p,key_00,0x14);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uchar *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uchar *key_00;" type_identifier (pointer_declarator "*key_00" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "uchar foo [64];" type_identifier (array_declarator "foo [64]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(foo,0x36,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(foo,0x36,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(foo,0x36,0x40)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (len < 1) {\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n  }\n  else {\n    pbVar4 = foo;\n    pbVar5 = key + len + -1;\n    pbVar6 = key + 0x40;\n    pbVar2 = pbVar4;\n    pbVar3 = key;\n    do {\n      *pbVar2 = *pbVar2 ^ *pbVar3;\n      if (pbVar3 == pbVar5) break;\n      pbVar3 = pbVar3 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (pbVar3 != pbVar6);\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n    do {\n      *pbVar4 = *pbVar4 ^ *key;\n      if (key == pbVar5) break;\n      key = key + 1;\n      pbVar4 = pbVar4 + 1;\n    } while (key != pbVar6);\n  }" if (parenthesized_expression "(len < 1)" ( (binary_expression "len < 1" identifier < number_literal) )) (compound_statement "{\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n  }" { (expression_statement "SHA_Init((SHA_CTX *)handle);" (call_expression "SHA_Init((SHA_CTX *)handle)" identifier (argument_list "((SHA_CTX *)handle)" ( (cast_expression "(SHA_CTX *)handle" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "SHA_Bytes((SHA_State *)handle,foo,0x40);" (call_expression "SHA_Bytes((SHA_State *)handle,foo,0x40)" identifier (argument_list "((SHA_State *)handle,foo,0x40)" ( (cast_expression "(SHA_State *)handle" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(foo,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(foo,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) }) (else_clause "else {\n    pbVar4 = foo;\n    pbVar5 = key + len + -1;\n    pbVar6 = key + 0x40;\n    pbVar2 = pbVar4;\n    pbVar3 = key;\n    do {\n      *pbVar2 = *pbVar2 ^ *pbVar3;\n      if (pbVar3 == pbVar5) break;\n      pbVar3 = pbVar3 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (pbVar3 != pbVar6);\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n    do {\n      *pbVar4 = *pbVar4 ^ *key;\n      if (key == pbVar5) break;\n      key = key + 1;\n      pbVar4 = pbVar4 + 1;\n    } while (key != pbVar6);\n  }" else (compound_statement "{\n    pbVar4 = foo;\n    pbVar5 = key + len + -1;\n    pbVar6 = key + 0x40;\n    pbVar2 = pbVar4;\n    pbVar3 = key;\n    do {\n      *pbVar2 = *pbVar2 ^ *pbVar3;\n      if (pbVar3 == pbVar5) break;\n      pbVar3 = pbVar3 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (pbVar3 != pbVar6);\n    SHA_Init((SHA_CTX *)handle);\n    SHA_Bytes((SHA_State *)handle,foo,0x40);\n    (*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);\n    do {\n      *pbVar4 = *pbVar4 ^ *key;\n      if (key == pbVar5) break;\n      key = key + 1;\n      pbVar4 = pbVar4 + 1;\n    } while (key != pbVar6);\n  }" { (expression_statement "pbVar4 = foo;" (assignment_expression "pbVar4 = foo" identifier = identifier) ;) (expression_statement "pbVar5 = key + len + -1;" (assignment_expression "pbVar5 = key + len + -1" identifier = (binary_expression "key + len + -1" (binary_expression "key + len" identifier + identifier) + number_literal)) ;) (expression_statement "pbVar6 = key + 0x40;" (assignment_expression "pbVar6 = key + 0x40" identifier = (binary_expression "key + 0x40" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar4;" (assignment_expression "pbVar2 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar3 = key;" (assignment_expression "pbVar3 = key" identifier = identifier) ;) (do_statement "do {\n      *pbVar2 = *pbVar2 ^ *pbVar3;\n      if (pbVar3 == pbVar5) break;\n      pbVar3 = pbVar3 + 1;\n      pbVar2 = pbVar2 + 1;\n    } while (pbVar3 != pbVar6);" do (compound_statement "{\n      *pbVar2 = *pbVar2 ^ *pbVar3;\n      if (pbVar3 == pbVar5) break;\n      pbVar3 = pbVar3 + 1;\n      pbVar2 = pbVar2 + 1;\n    }" { (expression_statement "*pbVar2 = *pbVar2 ^ *pbVar3;" (assignment_expression "*pbVar2 = *pbVar2 ^ *pbVar3" (pointer_expression "*pbVar2" * identifier) = (binary_expression "*pbVar2 ^ *pbVar3" (pointer_expression "*pbVar2" * identifier) ^ (pointer_expression "*pbVar3" * identifier))) ;) (if_statement "if (pbVar3 == pbVar5) break;" if (parenthesized_expression "(pbVar3 == pbVar5)" ( (binary_expression "pbVar3 == pbVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != pbVar6)" ( (binary_expression "pbVar3 != pbVar6" identifier != identifier) )) ;) (expression_statement "SHA_Init((SHA_CTX *)handle);" (call_expression "SHA_Init((SHA_CTX *)handle)" identifier (argument_list "((SHA_CTX *)handle)" ( (cast_expression "(SHA_CTX *)handle" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "SHA_Bytes((SHA_State *)handle,foo,0x40);" (call_expression "SHA_Bytes((SHA_State *)handle,foo,0x40)" identifier (argument_list "((SHA_State *)handle,foo,0x40)" ( (cast_expression "(SHA_State *)handle" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(foo,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(foo,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(foo,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) (do_statement "do {\n      *pbVar4 = *pbVar4 ^ *key;\n      if (key == pbVar5) break;\n      key = key + 1;\n      pbVar4 = pbVar4 + 1;\n    } while (key != pbVar6);" do (compound_statement "{\n      *pbVar4 = *pbVar4 ^ *key;\n      if (key == pbVar5) break;\n      key = key + 1;\n      pbVar4 = pbVar4 + 1;\n    }" { (expression_statement "*pbVar4 = *pbVar4 ^ *key;" (assignment_expression "*pbVar4 = *pbVar4 ^ *key" (pointer_expression "*pbVar4" * identifier) = (binary_expression "*pbVar4 ^ *key" (pointer_expression "*pbVar4" * identifier) ^ (pointer_expression "*key" * identifier))) ;) (if_statement "if (key == pbVar5) break;" if (parenthesized_expression "(key == pbVar5)" ( (binary_expression "key == pbVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "key = key + 1;" (assignment_expression "key = key + 1" identifier = (binary_expression "key + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(key != pbVar6)" ( (binary_expression "key != pbVar6" identifier != identifier) )) ;) }))) (expression_statement "SHA_Init((SHA_CTX *)((int)handle + 0x60));" (call_expression "SHA_Init((SHA_CTX *)((int)handle + 0x60))" identifier (argument_list "((SHA_CTX *)((int)handle + 0x60))" ( (cast_expression "(SHA_CTX *)((int)handle + 0x60)" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x60)" ( (binary_expression "(int)handle + 0x60" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) (expression_statement "p = foo;" (assignment_expression "p = foo" identifier = identifier) ;) (expression_statement "SHA_Bytes((SHA_State *)((int)handle + 0x60),p,0x40);" (call_expression "SHA_Bytes((SHA_State *)((int)handle + 0x60),p,0x40)" identifier (argument_list "((SHA_State *)((int)handle + 0x60),p,0x40)" ( (cast_expression "(SHA_State *)((int)handle + 0x60)" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x60)" ( (binary_expression "(int)handle + 0x60" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier , number_literal ))) ;) (expression_statement "key_00 = &DAT_00000040;" (assignment_expression "key_00 = &DAT_00000040" identifier = (pointer_expression "&DAT_00000040" & identifier)) ;) (expression_statement "(*(code *)PTR_smemclr_00121358)();" (call_expression "(*(code *)PTR_smemclr_00121358)()" (parenthesized_expression "(*(code *)PTR_smemclr_00121358)" ( (pointer_expression "*(code *)PTR_smemclr_00121358" * (cast_expression "(code *)PTR_smemclr_00121358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar1 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    sha1_key_internal(p,key_00,0x14);\n    return;\n  }" if (parenthesized_expression "(iVar1 != *(int *)PTR___stack_chk_guard_00122654)" ( (binary_expression "iVar1 != *(int *)PTR___stack_chk_guard_00122654" identifier != (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    sha1_key_internal(p,key_00,0x14);\n    return;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "sha1_key_internal(p,key_00,0x14);" (call_expression "sha1_key_internal(p,key_00,0x14)" identifier (argument_list "(p,key_00,0x14)" ( identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte local_64 [64];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);\n  if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }\n  SHA_Init(param_1 + 1);\n  SHA_Bytes(param_1 + 1,local_64,0x40);\n  (*(code *)PTR_smemclr_00121358)(local_64,0x40);\n  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte local_64 [64];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);\n  if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }\n  SHA_Init(param_1 + 1);\n  SHA_Bytes(param_1 + 1,local_64,0x40);\n  (*(code *)PTR_smemclr_00121358)(local_64,0x40);\n  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)" identifier (parameter_list "(SHA_CTX *param_1,byte *param_2,int param_3)" ( (parameter_declaration "SHA_CTX *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte local_64 [64];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);\n  if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }\n  SHA_Init(param_1 + 1);\n  SHA_Bytes(param_1 + 1,local_64,0x40);\n  (*(code *)PTR_smemclr_00121358)(local_64,0x40);\n  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte local_64 [64];" type_identifier (array_declarator "local_64 [64]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x36,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x36,0x40)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" if (parenthesized_expression "(param_3 < 1)" ( (binary_expression "param_3 < 1" identifier < number_literal) )) (compound_statement "{\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }" { (expression_statement "SHA_Init(param_1);" (call_expression "SHA_Init(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "SHA_Bytes(param_1,local_64,0x40);" (call_expression "SHA_Bytes(param_1,local_64,0x40)" identifier (argument_list "(param_1,local_64,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) }) (else_clause "else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" else (compound_statement "{\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" { (expression_statement "pbVar3 = local_64;" (assignment_expression "pbVar3 = local_64" identifier = identifier) ;) (expression_statement "pbVar4 = param_2 + param_3 + -1;" (assignment_expression "pbVar4 = param_2 + param_3 + -1" identifier = (binary_expression "param_2 + param_3 + -1" (binary_expression "param_2 + param_3" identifier + identifier) + number_literal)) ;) (expression_statement "pbVar5 = param_2 + 0x40;" (assignment_expression "pbVar5 = param_2 + 0x40" identifier = (binary_expression "param_2 + 0x40" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar3;" (assignment_expression "pbVar1 = pbVar3" identifier = identifier) ;) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);" do (compound_statement "{\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    }" { (expression_statement "*pbVar1 = *pbVar1 ^ *pbVar2;" (assignment_expression "*pbVar1 = *pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" * identifier) ^ (pointer_expression "*pbVar2" * identifier))) ;) (if_statement "if (pbVar2 == pbVar4) break;" if (parenthesized_expression "(pbVar2 == pbVar4)" ( (binary_expression "pbVar2 == pbVar4" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar2 != pbVar5)" ( (binary_expression "pbVar2 != pbVar5" identifier != identifier) )) ;) (expression_statement "SHA_Init(param_1);" (call_expression "SHA_Init(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "SHA_Bytes(param_1,local_64,0x40);" (call_expression "SHA_Bytes(param_1,local_64,0x40)" identifier (argument_list "(param_1,local_64,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" ( (pointer_expression "*(code *)PTR_memset_001220dc" * (cast_expression "(code *)PTR_memset_001220dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x5c,0x40)" ( identifier , number_literal , number_literal ))) ;) (do_statement "do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);" do (compound_statement "{\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "*pbVar3 = *pbVar3 ^ *param_2;" (assignment_expression "*pbVar3 = *pbVar3 ^ *param_2" (pointer_expression "*pbVar3" * identifier) = (binary_expression "*pbVar3 ^ *param_2" (pointer_expression "*pbVar3" * identifier) ^ (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (param_2 == pbVar4) break;" if (parenthesized_expression "(param_2 == pbVar4)" ( (binary_expression "param_2 == pbVar4" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != pbVar5)" ( (binary_expression "param_2 != pbVar5" identifier != identifier) )) ;) }))) (expression_statement "SHA_Init(param_1 + 1);" (call_expression "SHA_Init(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "SHA_Bytes(param_1 + 1,local_64,0x40);" (call_expression "SHA_Bytes(param_1 + 1,local_64,0x40)" identifier (argument_list "(param_1 + 1,local_64,0x40)" ( (binary_expression "param_1 + 1" identifier + number_literal) , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_smemclr_00121358)(local_64,0x40);" (call_expression "(*(code *)PTR_smemclr_00121358)(local_64,0x40)" (parenthesized_expression "(*(code *)PTR_smemclr_00121358)" ( (pointer_expression "*(code *)PTR_smemclr_00121358" * (cast_expression "(code *)PTR_smemclr_00121358" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_64,0x40)" ( identifier , number_literal ))) ;) (if_statement "if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }" if (parenthesized_expression "(local_24 != *(int *)PTR___stack_chk_guard_00122654)" ( (binary_expression "local_24 != *(int *)PTR___stack_chk_guard_00122654" identifier != (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "FUN_000900ac();" (call_expression "FUN_000900ac()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) ^ (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) ^ (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte local_64 [64];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);\n  if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }\n  SHA_Init(param_1 + 1);\n  SHA_Bytes(param_1 + 1,local_64,0x40);\n  (*(code *)PTR_smemclr_00121358)(local_64,0x40);\n  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000900ac(SHA_CTX *param_1,byte *param_2,int param_3)" (identifier "FUN_000900ac") (parameter_list "(SHA_CTX *param_1,byte *param_2,int param_3)" (( "(") (parameter_declaration "SHA_CTX *param_1" (type_identifier "SHA_CTX") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  byte local_64 [64];\n  int local_24;\n  \n  local_24 = *(int *)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);\n  if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }\n  SHA_Init(param_1 + 1);\n  SHA_Bytes(param_1 + 1,local_64,0x40);\n  (*(code *)PTR_smemclr_00121358)(local_64,0x40);\n  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "byte local_64 [64];" (type_identifier "byte") (array_declarator "local_64 [64]" (identifier "local_64") ([ "[") (number_literal "64") (] "]")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_00122654" (identifier "local_24") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00122654" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00122654")))) (; ";")) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x36,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" (( "(") (pointer_expression "*(code *)PTR_memset_001220dc" (* "*") (cast_expression "(code *)PTR_memset_001220dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_001220dc"))) () ")")) (argument_list "(local_64,0x36,0x40)" (( "(") (identifier "local_64") (, ",") (number_literal "0x36") (, ",") (number_literal "0x40") () ")"))) (; ";")) (if_statement "if (param_3 < 1) {\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }\n  else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" (if "if") (parenthesized_expression "(param_3 < 1)" (( "(") (binary_expression "param_3 < 1" (identifier "param_3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n  }" ({ "{") (expression_statement "SHA_Init(param_1);" (call_expression "SHA_Init(param_1)" (identifier "SHA_Init") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "SHA_Bytes(param_1,local_64,0x40);" (call_expression "SHA_Bytes(param_1,local_64,0x40)" (identifier "SHA_Bytes") (argument_list "(param_1,local_64,0x40)" (( "(") (identifier "param_1") (, ",") (identifier "local_64") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" (( "(") (pointer_expression "*(code *)PTR_memset_001220dc" (* "*") (cast_expression "(code *)PTR_memset_001220dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_001220dc"))) () ")")) (argument_list "(local_64,0x5c,0x40)" (( "(") (identifier "local_64") (, ",") (number_literal "0x5c") (, ",") (number_literal "0x40") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" (else "else") (compound_statement "{\n    pbVar3 = local_64;\n    pbVar4 = param_2 + param_3 + -1;\n    pbVar5 = param_2 + 0x40;\n    pbVar1 = pbVar3;\n    pbVar2 = param_2;\n    do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);\n    SHA_Init(param_1);\n    SHA_Bytes(param_1,local_64,0x40);\n    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);\n    do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);\n  }" ({ "{") (expression_statement "pbVar3 = local_64;" (assignment_expression "pbVar3 = local_64" (identifier "pbVar3") (= "=") (identifier "local_64")) (; ";")) (expression_statement "pbVar4 = param_2 + param_3 + -1;" (assignment_expression "pbVar4 = param_2 + param_3 + -1" (identifier "pbVar4") (= "=") (binary_expression "param_2 + param_3 + -1" (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "pbVar5 = param_2 + 0x40;" (assignment_expression "pbVar5 = param_2 + 0x40" (identifier "pbVar5") (= "=") (binary_expression "param_2 + 0x40" (identifier "param_2") (+ "+") (number_literal "0x40"))) (; ";")) (expression_statement "pbVar1 = pbVar3;" (assignment_expression "pbVar1 = pbVar3" (identifier "pbVar1") (= "=") (identifier "pbVar3")) (; ";")) (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" (identifier "pbVar2") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    } while (pbVar2 != pbVar5);" (do "do") (compound_statement "{\n      *pbVar1 = *pbVar1 ^ *pbVar2;\n      if (pbVar2 == pbVar4) break;\n      pbVar2 = pbVar2 + 1;\n      pbVar1 = pbVar1 + 1;\n    }" ({ "{") (expression_statement "*pbVar1 = *pbVar1 ^ *pbVar2;" (assignment_expression "*pbVar1 = *pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (binary_expression "*pbVar1 ^ *pbVar2" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (^ "^") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")))) (; ";")) (if_statement "if (pbVar2 == pbVar4) break;" (if "if") (parenthesized_expression "(pbVar2 == pbVar4)" (( "(") (binary_expression "pbVar2 == pbVar4" (identifier "pbVar2") (== "==") (identifier "pbVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar1 + 1" (identifier "pbVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar2 != pbVar5)" (( "(") (binary_expression "pbVar2 != pbVar5" (identifier "pbVar2") (!= "!=") (identifier "pbVar5")) () ")")) (; ";")) (expression_statement "SHA_Init(param_1);" (call_expression "SHA_Init(param_1)" (identifier "SHA_Init") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "SHA_Bytes(param_1,local_64,0x40);" (call_expression "SHA_Bytes(param_1,local_64,0x40)" (identifier "SHA_Bytes") (argument_list "(param_1,local_64,0x40)" (( "(") (identifier "param_1") (, ",") (identifier "local_64") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);" (call_expression "(*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40)" (parenthesized_expression "(*(code *)PTR_memset_001220dc)" (( "(") (pointer_expression "*(code *)PTR_memset_001220dc" (* "*") (cast_expression "(code *)PTR_memset_001220dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_001220dc"))) () ")")) (argument_list "(local_64,0x5c,0x40)" (( "(") (identifier "local_64") (, ",") (number_literal "0x5c") (, ",") (number_literal "0x40") () ")"))) (; ";")) (do_statement "do {\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    } while (param_2 != pbVar5);" (do "do") (compound_statement "{\n      *pbVar3 = *pbVar3 ^ *param_2;\n      if (param_2 == pbVar4) break;\n      param_2 = param_2 + 1;\n      pbVar3 = pbVar3 + 1;\n    }" ({ "{") (expression_statement "*pbVar3 = *pbVar3 ^ *param_2;" (assignment_expression "*pbVar3 = *pbVar3 ^ *param_2" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (binary_expression "*pbVar3 ^ *param_2" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (^ "^") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (param_2 == pbVar4) break;" (if "if") (parenthesized_expression "(param_2 == pbVar4)" (( "(") (binary_expression "param_2 == pbVar4" (identifier "param_2") (== "==") (identifier "pbVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != pbVar5)" (( "(") (binary_expression "param_2 != pbVar5" (identifier "param_2") (!= "!=") (identifier "pbVar5")) () ")")) (; ";")) (} "}")))) (expression_statement "SHA_Init(param_1 + 1);" (call_expression "SHA_Init(param_1 + 1)" (identifier "SHA_Init") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "SHA_Bytes(param_1 + 1,local_64,0x40);" (call_expression "SHA_Bytes(param_1 + 1,local_64,0x40)" (identifier "SHA_Bytes") (argument_list "(param_1 + 1,local_64,0x40)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) (, ",") (identifier "local_64") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_smemclr_00121358)(local_64,0x40);" (call_expression "(*(code *)PTR_smemclr_00121358)(local_64,0x40)" (parenthesized_expression "(*(code *)PTR_smemclr_00121358)" (( "(") (pointer_expression "*(code *)PTR_smemclr_00121358" (* "*") (cast_expression "(code *)PTR_smemclr_00121358" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_00121358"))) () ")")) (argument_list "(local_64,0x40)" (( "(") (identifier "local_64") (, ",") (number_literal "0x40") () ")"))) (; ";")) (if_statement "if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }" (if "if") (parenthesized_expression "(local_24 != *(int *)PTR___stack_chk_guard_00122654)" (( "(") (binary_expression "local_24 != *(int *)PTR___stack_chk_guard_00122654" (identifier "local_24") (!= "!=") (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00122654" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00122654")))) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_001222ec)();\n    FUN_000900ac();\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001222ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001222ec"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000900ac();" (call_expression "FUN_000900ac()" (identifier "FUN_000900ac") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (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)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (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: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (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: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (return_statement))))

void MASKED(SHA_CTX *param_1,byte *param_2,int param_3)

{
  byte *pbVar1;
  byte *pbVar2;
  byte *pbVar3;
  byte *pbVar4;
  byte *pbVar5;
  byte local_64 [64];
  int local_24;
  
  local_24 = *(int *)PTR___stack_chk_guard_00122654;
  (*(code *)PTR_memset_001220dc)(local_64,0x36,0x40);
  if (param_3 < 1) {
    SHA_Init(param_1);
    SHA_Bytes(param_1,local_64,0x40);
    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);
  }
  else {
    pbVar3 = local_64;
    pbVar4 = param_2 + param_3 + -1;
    pbVar5 = param_2 + 0x40;
    pbVar1 = pbVar3;
    pbVar2 = param_2;
    do {
      *pbVar1 = *pbVar1 ^ *pbVar2;
      if (pbVar2 == pbVar4) break;
      pbVar2 = pbVar2 + 1;
      pbVar1 = pbVar1 + 1;
    } while (pbVar2 != pbVar5);
    SHA_Init(param_1);
    SHA_Bytes(param_1,local_64,0x40);
    (*(code *)PTR_memset_001220dc)(local_64,0x5c,0x40);
    do {
      *pbVar3 = *pbVar3 ^ *param_2;
      if (param_2 == pbVar4) break;
      param_2 = param_2 + 1;
      pbVar3 = pbVar3 + 1;
    } while (param_2 != pbVar5);
  }
  SHA_Init(param_1 + 1);
  SHA_Bytes(param_1 + 1,local_64,0x40);
  (*(code *)PTR_smemclr_00121358)(local_64,0x40);
  if (local_24 != *(int *)PTR___stack_chk_guard_00122654) {
    (*(code *)PTR___stack_chk_fail_001222ec)();
    MASKED();
    return;
  }
  return;
}

