
/* WARNING: Unknown calling convention */

void * sha1_buffer(char *buffer,size_t len,void *resblock)

{
  int iVar1;
  void *pvVar2;
  int in_GS_OFFSET;
  sha1_ctx ctx;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  ctx.A = 0x67452301;
  ctx.B = 0xefcdab89;
  ctx.C = 0x98badcfe;
  ctx.D = 0x10325476;
  ctx.E = 0xc3d2e1f0;
  ctx.total[1] = 0;
  ctx.total[0] = 0;
  ctx.buflen = 0;
  sha1_process_bytes(buffer,len,&ctx);
  pvVar2 = sha1_finish_ctx(&ctx,resblock);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pvVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int in_GS_OFFSET;
  undefined4 local_b0;
  undefined4 local_ac;
  undefined4 local_a8;
  undefined4 local_a4;
  undefined4 local_a0;
  undefined4 local_9c;
  undefined4 local_98;
  undefined4 local_94;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_b0 = 0x67452301;
  local_ac = 0xefcdab89;
  local_a8 = 0x98badcfe;
  local_a4 = 0x10325476;
  local_a0 = 0xc3d2e1f0;
  local_98 = 0;
  local_9c = 0;
  local_94 = 0;
  FUN_00055470(param_1,param_2,&local_b0);
  FUN_000553a0(&local_b0,param_3);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006da50();
}


PUSH ESI
PUSH EBX
SUB ESP,0xb8
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xb0],EAX
XOR EAX,EAX
LEA EBX,[ESP + 0x10]
MOV ESI,dword ptr [ESP + 0xcc]
MOV dword ptr [ESP + 0x10],0x67452301
MOV dword ptr [ESP + 0x14],0xefcdab89
MOV dword ptr [ESP + 0x18],0x98badcfe
MOV dword ptr [ESP + 0x1c],0x10325476
MOV dword ptr [ESP + 0x20],0xc3d2e1f0
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x2c],0x0
PUSH EBX
PUSH dword ptr [ESP + 0xcc]
PUSH dword ptr [ESP + 0xcc]
CALL 0x00055470
POP EAX
POP EDX
PUSH ESI
PUSH EBX
CALL 0x000553a0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xac]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x0005582b
ADD ESP,0xb4
POP EBX
POP ESI
RET
CALL 0x0006da50
(translation_unit "void FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined4 local_b0;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined4 local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_b0 = 0x67452301;\n  local_ac = 0xefcdab89;\n  local_a8 = 0x98badcfe;\n  local_a4 = 0x10325476;\n  local_a0 = 0xc3d2e1f0;\n  local_98 = 0;\n  local_9c = 0;\n  local_94 = 0;\n  FUN_00055470(param_1,param_2,&local_b0);\n  FUN_000553a0(&local_b0,param_3);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}\n\n" (function_definition "void FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined4 local_b0;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined4 local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_b0 = 0x67452301;\n  local_ac = 0xefcdab89;\n  local_a8 = 0x98badcfe;\n  local_a4 = 0x10325476;\n  local_a0 = 0xc3d2e1f0;\n  local_98 = 0;\n  local_9c = 0;\n  local_94 = 0;\n  FUN_00055470(param_1,param_2,&local_b0);\n  FUN_000553a0(&local_b0,param_3);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}" primitive_type (function_declarator "FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 local_b0;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined4 local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_b0 = 0x67452301;\n  local_ac = 0xefcdab89;\n  local_a8 = 0x98badcfe;\n  local_a4 = 0x10325476;\n  local_a0 = 0xc3d2e1f0;\n  local_98 = 0;\n  local_9c = 0;\n  local_94 = 0;\n  FUN_00055470(param_1,param_2,&local_b0);\n  FUN_000553a0(&local_b0,param_3);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_b0;" type_identifier identifier ;) (declaration "undefined4 local_ac;" type_identifier identifier ;) (declaration "undefined4 local_a8;" type_identifier identifier ;) (declaration "undefined4 local_a4;" type_identifier identifier ;) (declaration "undefined4 local_a0;" type_identifier identifier ;) (declaration "undefined4 local_9c;" type_identifier identifier ;) (declaration "undefined4 local_98;" type_identifier identifier ;) (declaration "undefined4 local_94;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_b0 = 0x67452301;" (assignment_expression "local_b0 = 0x67452301" identifier = number_literal) ;) (expression_statement "local_ac = 0xefcdab89;" (assignment_expression "local_ac = 0xefcdab89" identifier = number_literal) ;) (expression_statement "local_a8 = 0x98badcfe;" (assignment_expression "local_a8 = 0x98badcfe" identifier = number_literal) ;) (expression_statement "local_a4 = 0x10325476;" (assignment_expression "local_a4 = 0x10325476" identifier = number_literal) ;) (expression_statement "local_a0 = 0xc3d2e1f0;" (assignment_expression "local_a0 = 0xc3d2e1f0" identifier = number_literal) ;) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) (expression_statement "local_9c = 0;" (assignment_expression "local_9c = 0" identifier = number_literal) ;) (expression_statement "local_94 = 0;" (assignment_expression "local_94 = 0" identifier = number_literal) ;) (expression_statement "FUN_00055470(param_1,param_2,&local_b0);" (call_expression "FUN_00055470(param_1,param_2,&local_b0)" identifier (argument_list "(param_1,param_2,&local_b0)" ( identifier , identifier , (pointer_expression "&local_b0" & identifier) ))) ;) (expression_statement "FUN_000553a0(&local_b0,param_3);" (call_expression "FUN_000553a0(&local_b0,param_3)" identifier (argument_list "(&local_b0,param_3)" ( (pointer_expression "&local_b0" & identifier) , identifier ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid * sha1_buffer(char *buffer,size_t len,void *resblock)\n\n{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  sha1_ctx ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ctx.A = 0x67452301;\n  ctx.B = 0xefcdab89;\n  ctx.C = 0x98badcfe;\n  ctx.D = 0x10325476;\n  ctx.E = 0xc3d2e1f0;\n  ctx.total[1] = 0;\n  ctx.total[0] = 0;\n  ctx.buflen = 0;\n  sha1_process_bytes(buffer,len,&ctx);\n  pvVar2 = sha1_finish_ctx(&ctx,resblock);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void * sha1_buffer(char *buffer,size_t len,void *resblock)\n\n{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  sha1_ctx ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ctx.A = 0x67452301;\n  ctx.B = 0xefcdab89;\n  ctx.C = 0x98badcfe;\n  ctx.D = 0x10325476;\n  ctx.E = 0xc3d2e1f0;\n  ctx.total[1] = 0;\n  ctx.total[0] = 0;\n  ctx.buflen = 0;\n  sha1_process_bytes(buffer,len,&ctx);\n  pvVar2 = sha1_finish_ctx(&ctx,resblock);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* sha1_buffer(char *buffer,size_t len,void *resblock)" * (function_declarator "sha1_buffer(char *buffer,size_t len,void *resblock)" identifier (parameter_list "(char *buffer,size_t len,void *resblock)" ( (parameter_declaration "char *buffer" primitive_type (pointer_declarator "*buffer" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) , (parameter_declaration "void *resblock" primitive_type (pointer_declarator "*resblock" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  int in_GS_OFFSET;\n  sha1_ctx ctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ctx.A = 0x67452301;\n  ctx.B = 0xefcdab89;\n  ctx.C = 0x98badcfe;\n  ctx.D = 0x10325476;\n  ctx.E = 0xc3d2e1f0;\n  ctx.total[1] = 0;\n  ctx.total[0] = 0;\n  ctx.buflen = 0;\n  sha1_process_bytes(buffer,len,&ctx);\n  pvVar2 = sha1_finish_ctx(&ctx,resblock);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sha1_ctx ctx;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "ctx.A = 0x67452301;" (assignment_expression "ctx.A = 0x67452301" (field_expression "ctx.A" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.B = 0xefcdab89;" (assignment_expression "ctx.B = 0xefcdab89" (field_expression "ctx.B" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.C = 0x98badcfe;" (assignment_expression "ctx.C = 0x98badcfe" (field_expression "ctx.C" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.D = 0x10325476;" (assignment_expression "ctx.D = 0x10325476" (field_expression "ctx.D" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.E = 0xc3d2e1f0;" (assignment_expression "ctx.E = 0xc3d2e1f0" (field_expression "ctx.E" identifier . field_identifier) = number_literal) ;) (expression_statement "ctx.total[1] = 0;" (assignment_expression "ctx.total[1] = 0" (subscript_expression "ctx.total[1]" (field_expression "ctx.total" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "ctx.total[0] = 0;" (assignment_expression "ctx.total[0] = 0" (subscript_expression "ctx.total[0]" (field_expression "ctx.total" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "ctx.buflen = 0;" (assignment_expression "ctx.buflen = 0" (field_expression "ctx.buflen" identifier . field_identifier) = number_literal) ;) (expression_statement "sha1_process_bytes(buffer,len,&ctx);" (call_expression "sha1_process_bytes(buffer,len,&ctx)" identifier (argument_list "(buffer,len,&ctx)" ( identifier , identifier , (pointer_expression "&ctx" & identifier) ))) ;) (expression_statement "pvVar2 = sha1_finish_ctx(&ctx,resblock);" (assignment_expression "pvVar2 = sha1_finish_ctx(&ctx,resblock)" identifier = (call_expression "sha1_finish_ctx(&ctx,resblock)" identifier (argument_list "(&ctx,resblock)" ( (pointer_expression "&ctx" & identifier) , identifier )))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pvVar2;\n  }" { (return_statement "return pvVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined4 local_b0;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined4 local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_b0 = 0x67452301;\n  local_ac = 0xefcdab89;\n  local_a8 = 0x98badcfe;\n  local_a4 = 0x10325476;\n  local_a0 = 0xc3d2e1f0;\n  local_98 = 0;\n  local_9c = 0;\n  local_94 = 0;\n  FUN_00055470(param_1,param_2,&local_b0);\n  FUN_000553a0(&local_b0,param_3);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}\n\n" (function_definition "void FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined4 local_b0;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined4 local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_b0 = 0x67452301;\n  local_ac = 0xefcdab89;\n  local_a8 = 0x98badcfe;\n  local_a4 = 0x10325476;\n  local_a0 = 0xc3d2e1f0;\n  local_98 = 0;\n  local_9c = 0;\n  local_94 = 0;\n  FUN_00055470(param_1,param_2,&local_b0);\n  FUN_000553a0(&local_b0,param_3);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}" primitive_type (function_declarator "FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 local_b0;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined4 local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_b0 = 0x67452301;\n  local_ac = 0xefcdab89;\n  local_a8 = 0x98badcfe;\n  local_a4 = 0x10325476;\n  local_a0 = 0xc3d2e1f0;\n  local_98 = 0;\n  local_9c = 0;\n  local_94 = 0;\n  FUN_00055470(param_1,param_2,&local_b0);\n  FUN_000553a0(&local_b0,param_3);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_b0;" type_identifier identifier ;) (declaration "undefined4 local_ac;" type_identifier identifier ;) (declaration "undefined4 local_a8;" type_identifier identifier ;) (declaration "undefined4 local_a4;" type_identifier identifier ;) (declaration "undefined4 local_a0;" type_identifier identifier ;) (declaration "undefined4 local_9c;" type_identifier identifier ;) (declaration "undefined4 local_98;" type_identifier identifier ;) (declaration "undefined4 local_94;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_b0 = 0x67452301;" (assignment_expression "local_b0 = 0x67452301" identifier = number_literal) ;) (expression_statement "local_ac = 0xefcdab89;" (assignment_expression "local_ac = 0xefcdab89" identifier = number_literal) ;) (expression_statement "local_a8 = 0x98badcfe;" (assignment_expression "local_a8 = 0x98badcfe" identifier = number_literal) ;) (expression_statement "local_a4 = 0x10325476;" (assignment_expression "local_a4 = 0x10325476" identifier = number_literal) ;) (expression_statement "local_a0 = 0xc3d2e1f0;" (assignment_expression "local_a0 = 0xc3d2e1f0" identifier = number_literal) ;) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) (expression_statement "local_9c = 0;" (assignment_expression "local_9c = 0" identifier = number_literal) ;) (expression_statement "local_94 = 0;" (assignment_expression "local_94 = 0" identifier = number_literal) ;) (expression_statement "FUN_00055470(param_1,param_2,&local_b0);" (call_expression "FUN_00055470(param_1,param_2,&local_b0)" identifier (argument_list "(param_1,param_2,&local_b0)" ( identifier , identifier , (pointer_expression "&local_b0" & identifier) ))) ;) (expression_statement "FUN_000553a0(&local_b0,param_3);" (call_expression "FUN_000553a0(&local_b0,param_3)" identifier (argument_list "(&local_b0,param_3)" ( (pointer_expression "&local_b0" & identifier) , identifier ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int in_GS_OFFSET;\n  undefined4 local_b0;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined4 local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_b0 = 0x67452301;\n  local_ac = 0xefcdab89;\n  local_a8 = 0x98badcfe;\n  local_a4 = 0x10325476;\n  local_a0 = 0xc3d2e1f0;\n  local_98 = 0;\n  local_9c = 0;\n  local_94 = 0;\n  FUN_00055470(param_1,param_2,&local_b0);\n  FUN_000553a0(&local_b0,param_3);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}" (primitive_type "void") (function_declarator "FUN_00055790(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00055790") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 local_b0;\n  undefined4 local_ac;\n  undefined4 local_a8;\n  undefined4 local_a4;\n  undefined4 local_a0;\n  undefined4 local_9c;\n  undefined4 local_98;\n  undefined4 local_94;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_b0 = 0x67452301;\n  local_ac = 0xefcdab89;\n  local_a8 = 0x98badcfe;\n  local_a4 = 0x10325476;\n  local_a0 = 0xc3d2e1f0;\n  local_98 = 0;\n  local_9c = 0;\n  local_94 = 0;\n  FUN_00055470(param_1,param_2,&local_b0);\n  FUN_000553a0(&local_b0,param_3);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}" ({ "{") (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_b0;" (type_identifier "undefined4") (identifier "local_b0") (; ";")) (declaration "undefined4 local_ac;" (type_identifier "undefined4") (identifier "local_ac") (; ";")) (declaration "undefined4 local_a8;" (type_identifier "undefined4") (identifier "local_a8") (; ";")) (declaration "undefined4 local_a4;" (type_identifier "undefined4") (identifier "local_a4") (; ";")) (declaration "undefined4 local_a0;" (type_identifier "undefined4") (identifier "local_a0") (; ";")) (declaration "undefined4 local_9c;" (type_identifier "undefined4") (identifier "local_9c") (; ";")) (declaration "undefined4 local_98;" (type_identifier "undefined4") (identifier "local_98") (; ";")) (declaration "undefined4 local_94;" (type_identifier "undefined4") (identifier "local_94") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_b0 = 0x67452301;" (assignment_expression "local_b0 = 0x67452301" (identifier "local_b0") (= "=") (number_literal "0x67452301")) (; ";")) (expression_statement "local_ac = 0xefcdab89;" (assignment_expression "local_ac = 0xefcdab89" (identifier "local_ac") (= "=") (number_literal "0xefcdab89")) (; ";")) (expression_statement "local_a8 = 0x98badcfe;" (assignment_expression "local_a8 = 0x98badcfe" (identifier "local_a8") (= "=") (number_literal "0x98badcfe")) (; ";")) (expression_statement "local_a4 = 0x10325476;" (assignment_expression "local_a4 = 0x10325476" (identifier "local_a4") (= "=") (number_literal "0x10325476")) (; ";")) (expression_statement "local_a0 = 0xc3d2e1f0;" (assignment_expression "local_a0 = 0xc3d2e1f0" (identifier "local_a0") (= "=") (number_literal "0xc3d2e1f0")) (; ";")) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" (identifier "local_98") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_9c = 0;" (assignment_expression "local_9c = 0" (identifier "local_9c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_94 = 0;" (assignment_expression "local_94 = 0" (identifier "local_94") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00055470(param_1,param_2,&local_b0);" (call_expression "FUN_00055470(param_1,param_2,&local_b0)" (identifier "FUN_00055470") (argument_list "(param_1,param_2,&local_b0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_b0" (& "&") (identifier "local_b0")) () ")"))) (; ";")) (expression_statement "FUN_000553a0(&local_b0,param_3);" (call_expression "FUN_000553a0(&local_b0,param_3)" (identifier "FUN_000553a0") (argument_list "(&local_b0,param_3)" (( "(") (pointer_expression "&local_b0" (& "&") (identifier "local_b0")) (, ",") (identifier "param_3") () ")"))) (; ";")) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" (identifier "FUN_0006da50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void * function_1(char *buffer,size_t len,void *resblock)

{
  int var_4;
  void *pvVar2;
  int var_1;
  type_1 ctx;
  
  var_4 = *(int *)(var_1 + 0x14);
  ctx.A = 0x67452301;
  ctx.B = 0xefcdab89;
  ctx.C = 0x98badcfe;
  ctx.D = 0x10325476;
  ctx.E = 0xc3d2e1f0;
  ctx.total[1] = 0;
  ctx.total[0] = 0;
  ctx.buflen = 0;
  var_2(buffer,len,&ctx);
  pvVar2 = var_3(&ctx,resblock);
  if (var_4 == *(int *)(var_1 + 0x14)) {
    return pvVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int in_GS_OFFSET;
  undefined4 local_b0;
  undefined4 local_ac;
  undefined4 local_a8;
  undefined4 local_a4;
  undefined4 local_a0;
  undefined4 local_9c;
  undefined4 local_98;
  undefined4 local_94;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_b0 = 0x67452301;
  local_ac = 0xefcdab89;
  local_a8 = 0x98badcfe;
  local_a4 = 0x10325476;
  local_a0 = 0xc3d2e1f0;
  local_98 = 0;
  local_9c = 0;
  local_94 = 0;
  FUN_00055470(param_1,param_2,&local_b0);
  FUN_000553a0(&local_b0,param_3);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006da50();
}

