
char * ssh2_fingerprint(ssh_signkey *alg,void *data)

{
  uchar *blob;
  char *pcVar1;
  FILE *fp;
  Filename *filename;
  undefined *puVar2;
  int len;
  Filename *local_14;
  
  puVar2 = PTR___stack_chk_guard_000b2f04;
  local_14 = *(Filename **)PTR___stack_chk_guard_000b2f04;
  blob = (*alg->public_blob)(data,&len);
  pcVar1 = ssh2_fingerprint_blob(blob,len);
  (*(code *)PTR_safefree_000b23d0)(blob);
  if (local_14 == *(Filename **)puVar2) {
    return pcVar1;
  }
  filename = local_14;
  puVar2 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  fp = f_open(filename,(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c),0);
  if (fp != (FILE *)0x0) {
    pcVar1 = (char *)key_type_fp(fp);
    (**(code **)(puVar2 + 0x43acc))(fp);
    return pcVar1;
  }
  return (char *)0x0;
}



undefined4 ssh2_fingerprint(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  undefined *puVar4;
  undefined4 local_18;
  int local_14;
  
  puVar4 = PTR___stack_chk_guard_000b2f04;
  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;
  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);
  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);
  (*(code *)PTR_safefree_000b23d0)(uVar1);
  if (local_14 == *(int *)puVar4) {
    return uVar2;
  }
  puVar4 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  iVar3 = f_open();
  if (iVar3 != 0) {
    uVar1 = FUN_0006c020(iVar3);
    (**(code **)(puVar4 + 0x43acc))(iVar3);
    return uVar1;
  }
  return 0;
}


lui gp,0x5
addiu gp,gp,-0x4ecc
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,0xc(a0)
or v0,a1,zero
or a0,v0,zero
sw s0,0x2c(sp)
addiu a1,sp,0x20
lw s0,-0x746c(gp)
sw ra,0x34(sp)
sw gp,0x10(sp)
sw s1,0x30(sp)
lw v0,0x0(s0)
sw v0,0x24(sp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,v0,zero
lw a1,0x20(sp)
lw t9,-0x77c4(gp)
bal 0x0006f050
_or s1,v0,zero
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7fa0(gp)
jalr t9
_sw v0,0x1c(sp)
lw a0,0x24(sp)
lw v1,0x0(s0)
lw gp,0x10(sp)
bne a0,v1,0x0006f2d4
_lw v0,0x1c(sp)
lw ra,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7498(gp)
jalr t9
_nop
(translation_unit "undefined4 ssh2_fingerprint(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);\n  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);\n  (*(code *)PTR_safefree_000b23d0)(uVar1);\n  if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }\n  puVar4 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  iVar3 = f_open();\n  if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 ssh2_fingerprint(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);\n  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);\n  (*(code *)PTR_safefree_000b23d0)(uVar1);\n  if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }\n  puVar4 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  iVar3 = f_open();\n  if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "ssh2_fingerprint(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);\n  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);\n  (*(code *)PTR_safefree_000b23d0)(uVar1);\n  if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }\n  puVar4 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  iVar3 = f_open();\n  if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);" (assignment_expression "uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18)" identifier = (call_expression "(**(code **)(param_1 + 0xc))(param_2,&local_18)" (parenthesized_expression "(**(code **)(param_1 + 0xc))" ( (pointer_expression "**(code **)(param_1 + 0xc)" * (pointer_expression "*(code **)(param_1 + 0xc)" * (cast_expression "(code **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (argument_list "(param_2,&local_18)" ( identifier , (pointer_expression "&local_18" & identifier) )))) ;) (expression_statement "uVar2 = ssh2_fingerprint_blob(uVar1,local_18);" (assignment_expression "uVar2 = ssh2_fingerprint_blob(uVar1,local_18)" identifier = (call_expression "ssh2_fingerprint_blob(uVar1,local_18)" identifier (argument_list "(uVar1,local_18)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b23d0)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (if_statement "if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar4)" ( (binary_expression "local_14 == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "puVar4 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = f_open();" (assignment_expression "iVar3 = f_open()" identifier = (call_expression "f_open()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_0006c020(iVar3);" (assignment_expression "uVar1 = FUN_0006c020(iVar3)" identifier = (call_expression "FUN_0006c020(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "(**(code **)(puVar4 + 0x43acc))(iVar3);" (call_expression "(**(code **)(puVar4 + 0x43acc))(iVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x43acc))" ( (pointer_expression "**(code **)(puVar4 + 0x43acc)" * (pointer_expression "*(code **)(puVar4 + 0x43acc)" * (cast_expression "(code **)(puVar4 + 0x43acc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x43acc)" ( (binary_expression "puVar4 + 0x43acc" identifier + number_literal) ))))) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "char * ssh2_fingerprint(ssh_signkey *alg,void *data)\n\n{\n  uchar *blob;\n  char *pcVar1;\n  FILE *fp;\n  Filename *filename;\n  undefined *puVar2;\n  int len;\n  Filename *local_14;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(Filename **)PTR___stack_chk_guard_000b2f04;\n  blob = (*alg->public_blob)(data,&len);\n  pcVar1 = ssh2_fingerprint_blob(blob,len);\n  (*(code *)PTR_safefree_000b23d0)(blob);\n  if (local_14 == *(Filename **)puVar2) {\n    return pcVar1;\n  }\n  filename = local_14;\n  puVar2 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  fp = f_open(filename,(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c),0);\n  if (fp != (FILE *)0x0) {\n    pcVar1 = (char *)key_type_fp(fp);\n    (**(code **)(puVar2 + 0x43acc))(fp);\n    return pcVar1;\n  }\n  return (char *)0x0;\n}\n\n" (function_definition "char * ssh2_fingerprint(ssh_signkey *alg,void *data)\n\n{\n  uchar *blob;\n  char *pcVar1;\n  FILE *fp;\n  Filename *filename;\n  undefined *puVar2;\n  int len;\n  Filename *local_14;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(Filename **)PTR___stack_chk_guard_000b2f04;\n  blob = (*alg->public_blob)(data,&len);\n  pcVar1 = ssh2_fingerprint_blob(blob,len);\n  (*(code *)PTR_safefree_000b23d0)(blob);\n  if (local_14 == *(Filename **)puVar2) {\n    return pcVar1;\n  }\n  filename = local_14;\n  puVar2 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  fp = f_open(filename,(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c),0);\n  if (fp != (FILE *)0x0) {\n    pcVar1 = (char *)key_type_fp(fp);\n    (**(code **)(puVar2 + 0x43acc))(fp);\n    return pcVar1;\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* ssh2_fingerprint(ssh_signkey *alg,void *data)" * (function_declarator "ssh2_fingerprint(ssh_signkey *alg,void *data)" identifier (parameter_list "(ssh_signkey *alg,void *data)" ( (parameter_declaration "ssh_signkey *alg" type_identifier (pointer_declarator "*alg" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) )))) (compound_statement "{\n  uchar *blob;\n  char *pcVar1;\n  FILE *fp;\n  Filename *filename;\n  undefined *puVar2;\n  int len;\n  Filename *local_14;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(Filename **)PTR___stack_chk_guard_000b2f04;\n  blob = (*alg->public_blob)(data,&len);\n  pcVar1 = ssh2_fingerprint_blob(blob,len);\n  (*(code *)PTR_safefree_000b23d0)(blob);\n  if (local_14 == *(Filename **)puVar2) {\n    return pcVar1;\n  }\n  filename = local_14;\n  puVar2 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  fp = f_open(filename,(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c),0);\n  if (fp != (FILE *)0x0) {\n    pcVar1 = (char *)key_type_fp(fp);\n    (**(code **)(puVar2 + 0x43acc))(fp);\n    return pcVar1;\n  }\n  return (char *)0x0;\n}" { (declaration "uchar *blob;" type_identifier (pointer_declarator "*blob" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "FILE *fp;" type_identifier (pointer_declarator "*fp" * identifier) ;) (declaration "Filename *filename;" type_identifier (pointer_declarator "*filename" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int len;" primitive_type identifier ;) (declaration "Filename *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_14 = *(Filename **)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(Filename **)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(Filename **)PTR___stack_chk_guard_000b2f04" * (cast_expression "(Filename **)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "Filename **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "blob = (*alg->public_blob)(data,&len);" (assignment_expression "blob = (*alg->public_blob)(data,&len)" identifier = (call_expression "(*alg->public_blob)(data,&len)" (parenthesized_expression "(*alg->public_blob)" ( (pointer_expression "*alg->public_blob" * (field_expression "alg->public_blob" identifier -> field_identifier)) )) (argument_list "(data,&len)" ( identifier , (pointer_expression "&len" & identifier) )))) ;) (expression_statement "pcVar1 = ssh2_fingerprint_blob(blob,len);" (assignment_expression "pcVar1 = ssh2_fingerprint_blob(blob,len)" identifier = (call_expression "ssh2_fingerprint_blob(blob,len)" identifier (argument_list "(blob,len)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(blob);" (call_expression "(*(code *)PTR_safefree_000b23d0)(blob)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(blob)" ( identifier ))) ;) (if_statement "if (local_14 == *(Filename **)puVar2) {\n    return pcVar1;\n  }" if (parenthesized_expression "(local_14 == *(Filename **)puVar2)" ( (binary_expression "local_14 == *(Filename **)puVar2" identifier == (pointer_expression "*(Filename **)puVar2" * (cast_expression "(Filename **)puVar2" ( (type_descriptor "Filename **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return pcVar1;\n  }" { (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "filename = local_14;" (assignment_expression "filename = local_14" identifier = identifier) ;) (expression_statement "puVar2 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar2 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "fp = f_open(filename,(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c),0);" (assignment_expression "fp = f_open(filename,(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c),0)" identifier = (call_expression "f_open(filename,(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c),0)" identifier (argument_list "(filename,(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c),0)" ( identifier , (cast_expression "(char *)(*(int *)(puVar2 + 0x430c8) + 0x291c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x430c8) + 0x291c)" ( (binary_expression "*(int *)(puVar2 + 0x430c8) + 0x291c" (pointer_expression "*(int *)(puVar2 + 0x430c8)" * (cast_expression "(int *)(puVar2 + 0x430c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x430c8)" ( (binary_expression "puVar2 + 0x430c8" identifier + number_literal) )))) + number_literal) ))) , number_literal )))) ;) (if_statement "if (fp != (FILE *)0x0) {\n    pcVar1 = (char *)key_type_fp(fp);\n    (**(code **)(puVar2 + 0x43acc))(fp);\n    return pcVar1;\n  }" if (parenthesized_expression "(fp != (FILE *)0x0)" ( (binary_expression "fp != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = (char *)key_type_fp(fp);\n    (**(code **)(puVar2 + 0x43acc))(fp);\n    return pcVar1;\n  }" { (expression_statement "pcVar1 = (char *)key_type_fp(fp);" (assignment_expression "pcVar1 = (char *)key_type_fp(fp)" identifier = (cast_expression "(char *)key_type_fp(fp)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "key_type_fp(fp)" identifier (argument_list "(fp)" ( identifier ))))) ;) (expression_statement "(**(code **)(puVar2 + 0x43acc))(fp);" (call_expression "(**(code **)(puVar2 + 0x43acc))(fp)" (parenthesized_expression "(**(code **)(puVar2 + 0x43acc))" ( (pointer_expression "**(code **)(puVar2 + 0x43acc)" * (pointer_expression "*(code **)(puVar2 + 0x43acc)" * (cast_expression "(code **)(puVar2 + 0x43acc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x43acc)" ( (binary_expression "puVar2 + 0x43acc" identifier + number_literal) ))))) )) (argument_list "(fp)" ( identifier ))) ;) (return_statement "return pcVar1;" return identifier ;) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 ssh2_fingerprint(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);\n  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);\n  (*(code *)PTR_safefree_000b23d0)(uVar1);\n  if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }\n  puVar4 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  iVar3 = f_open();\n  if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 ssh2_fingerprint(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);\n  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);\n  (*(code *)PTR_safefree_000b23d0)(uVar1);\n  if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }\n  puVar4 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  iVar3 = f_open();\n  if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "ssh2_fingerprint(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);\n  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);\n  (*(code *)PTR_safefree_000b23d0)(uVar1);\n  if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }\n  puVar4 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  iVar3 = f_open();\n  if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);" (assignment_expression "uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18)" identifier = (call_expression "(**(code **)(param_1 + 0xc))(param_2,&local_18)" (parenthesized_expression "(**(code **)(param_1 + 0xc))" ( (pointer_expression "**(code **)(param_1 + 0xc)" * (pointer_expression "*(code **)(param_1 + 0xc)" * (cast_expression "(code **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (argument_list "(param_2,&local_18)" ( identifier , (pointer_expression "&local_18" & identifier) )))) ;) (expression_statement "uVar2 = ssh2_fingerprint_blob(uVar1,local_18);" (assignment_expression "uVar2 = ssh2_fingerprint_blob(uVar1,local_18)" identifier = (call_expression "ssh2_fingerprint_blob(uVar1,local_18)" identifier (argument_list "(uVar1,local_18)" ( identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b23d0)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (if_statement "if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar4)" ( (binary_expression "local_14 == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "puVar4 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000b2ed8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = f_open();" (assignment_expression "iVar3 = f_open()" identifier = (call_expression "f_open()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_0006c020(iVar3);" (assignment_expression "uVar1 = FUN_0006c020(iVar3)" identifier = (call_expression "FUN_0006c020(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "(**(code **)(puVar4 + 0x43acc))(iVar3);" (call_expression "(**(code **)(puVar4 + 0x43acc))(iVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x43acc))" ( (pointer_expression "**(code **)(puVar4 + 0x43acc)" * (pointer_expression "*(code **)(puVar4 + 0x43acc)" * (cast_expression "(code **)(puVar4 + 0x43acc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x43acc)" ( (binary_expression "puVar4 + 0x43acc" identifier + number_literal) ))))) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 ssh2_fingerprint(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);\n  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);\n  (*(code *)PTR_safefree_000b23d0)(uVar1);\n  if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }\n  puVar4 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  iVar3 = f_open();\n  if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "ssh2_fingerprint(int param_1,undefined4 param_2)" (identifier "ssh2_fingerprint") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined4 local_18;\n  int local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000b2f04;\n  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;\n  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);\n  uVar2 = ssh2_fingerprint_blob(uVar1,local_18);\n  (*(code *)PTR_safefree_000b23d0)(uVar1);\n  if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }\n  puVar4 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  iVar3 = f_open();\n  if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000b2f04" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_000b2f04")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_000b2f04" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b2f04")))) (; ";")) (expression_statement "uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);" (assignment_expression "uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(param_1 + 0xc))(param_2,&local_18)" (parenthesized_expression "(**(code **)(param_1 + 0xc))" (( "(") (pointer_expression "**(code **)(param_1 + 0xc)" (* "*") (pointer_expression "*(code **)(param_1 + 0xc)" (* "*") (cast_expression "(code **)(param_1 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(param_2,&local_18)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) () ")")))) (; ";")) (expression_statement "uVar2 = ssh2_fingerprint_blob(uVar1,local_18);" (assignment_expression "uVar2 = ssh2_fingerprint_blob(uVar1,local_18)" (identifier "uVar2") (= "=") (call_expression "ssh2_fingerprint_blob(uVar1,local_18)" (identifier "ssh2_fingerprint_blob") (argument_list "(uVar1,local_18)" (( "(") (identifier "uVar1") (, ",") (identifier "local_18") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b23d0)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b23d0)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b23d0" (* "*") (cast_expression "(code *)PTR_safefree_000b23d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b23d0"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if (local_14 == *(int *)puVar4) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar4)" (( "(") (binary_expression "local_14 == *(int *)puVar4" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "puVar4 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000b2ed8" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_fail_000b2ed8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b2ed8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = f_open();" (assignment_expression "iVar3 = f_open()" (identifier "iVar3") (= "=") (call_expression "f_open()" (identifier "f_open") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_0006c020(iVar3);\n    (**(code **)(puVar4 + 0x43acc))(iVar3);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_0006c020(iVar3);" (assignment_expression "uVar1 = FUN_0006c020(iVar3)" (identifier "uVar1") (= "=") (call_expression "FUN_0006c020(iVar3)" (identifier "FUN_0006c020") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "(**(code **)(puVar4 + 0x43acc))(iVar3);" (call_expression "(**(code **)(puVar4 + 0x43acc))(iVar3)" (parenthesized_expression "(**(code **)(puVar4 + 0x43acc))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x43acc)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x43acc)" (* "*") (cast_expression "(code **)(puVar4 + 0x43acc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x43acc)" (( "(") (binary_expression "puVar4 + 0x43acc" (identifier "puVar4") (+ "+") (number_literal "0x43acc")) () ")"))))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

char * function_1(type_1 *alg,void *data)

{
  type_2 *blob;
  char *pcVar1;
  type_3 *var_5;
  type_4 *filename;
  type_5 *var_4;
  int len;
  type_4 *var_2;
  
  var_4 = PTR___stack_chk_guard_000b2f04;
  var_2 = *(type_4 **)PTR___stack_chk_guard_000b2f04;
  blob = (*alg->public_blob)(data,&len);
  pcVar1 = var_1(blob,len);
  (*(type_6 *)PTR_safefree_000b23d0)(blob);
  if (var_2 == *(type_4 **)var_4) {
    return pcVar1;
  }
  filename = var_2;
  var_4 = PTR___stack_chk_fail_000b2ed8;
  (*(type_6 *)PTR___stack_chk_fail_000b2ed8)();
  var_5 = var_3(filename,(char *)(*(int *)(var_4 + 0x430c8) + 0x291c),0);
  if (var_5 != (type_3 *)0x0) {
    pcVar1 = (char *)var_6(var_5);
    (**(type_6 **)(var_4 + 0x43acc))(var_5);
    return pcVar1;
  }
  return (char *)0x0;
}


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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  undefined *puVar4;
  undefined4 local_18;
  int local_14;
  
  puVar4 = PTR___stack_chk_guard_000b2f04;
  local_14 = *(int *)PTR___stack_chk_guard_000b2f04;
  uVar1 = (**(code **)(param_1 + 0xc))(param_2,&local_18);
  uVar2 = MASKED_blob(uVar1,local_18);
  (*(code *)PTR_safefree_000b23d0)(uVar1);
  if (local_14 == *(int *)puVar4) {
    return uVar2;
  }
  puVar4 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  iVar3 = f_open();
  if (iVar3 != 0) {
    uVar1 = FUN_0006c020(iVar3);
    (**(code **)(puVar4 + 0x43acc))(iVar3);
    return uVar1;
  }
  return 0;
}

