
void des_encrypt_xdmauth(uchar *keydata,uchar *blk,int len)

{
  undefined *puVar1;
  int iVar2;
  Bignum_conflict pBVar3;
  uchar *keydata_00;
  uchar *blk_00;
  DESContext *len_00;
  int *piVar4;
  undefined *puVar5;
  code *pcVar6;
  DESContext DStack_164;
  int iStack_dc;
  DESContext *pDStack_d4;
  undefined *puStack_d0;
  uchar *puStack_cc;
  int iStack_c8;
  code *pcStack_c4;
  DESContext dc;
  
  puVar1 = PTR___stack_chk_guard_000b2f04;
  iVar2 = *(int *)PTR___stack_chk_guard_000b2f04;
  des_keysetup_xdmauth(keydata,&dc);
  keydata_00 = blk;
  blk_00 = (uchar *)len;
  len_00 = &dc;
  des_cbc_encrypt(blk,len,&dc);
  if (iVar2 == *(int *)puVar1) {
    return;
  }
  pcVar6 = des_decrypt_xdmauth;
  puVar5 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  puStack_d0 = puVar1;
  piVar4 = *(int **)(puVar5 + 0x533c4);
  iStack_dc = *piVar4;
  pDStack_d4 = &dc;
  puStack_cc = blk;
  iStack_c8 = len;
  pcStack_c4 = pcVar6;
  des_keysetup_xdmauth(keydata_00,&DStack_164);
  des_cbc_decrypt(blk_00,(uint)len_00,&DStack_164);
  if (iStack_dc == *piVar4) {
    return;
  }
  (**(code **)(puVar5 + 0x53398))();
  pBVar3 = bignum_rshift(*(Bignum_conflict *)(blk_00 + 8),1);
  *(Bignum_conflict *)(blk_00 + 0xc) = pBVar3;
  pBVar3 = bignum_bitmask(pBVar3);
  *(Bignum_conflict *)(blk_00 + 0x10) = pBVar3;
  blk_00[4] = '\0';
  blk_00[5] = '\0';
  blk_00[6] = '\0';
  blk_00[7] = '\0';
  blk_00[0] = '\0';
  blk_00[1] = '\0';
  blk_00[2] = '\0';
  blk_00[3] = '\0';
  return;
}



void des_encrypt_xdmauth(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined1 *puVar4;
  int *piVar5;
  undefined *puVar6;
  code *pcVar7;
  undefined1 auStack_164 [136];
  int iStack_dc;
  undefined1 *puStack_d4;
  undefined *puStack_d0;
  undefined4 uStack_cc;
  undefined4 *puStack_c8;
  code *pcStack_c4;
  undefined1 auStack_a4 [136];
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_000b2f04;
  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;
  FUN_0005e9bc(param_1,auStack_a4);
  puVar3 = param_3;
  puVar4 = auStack_a4;
  FUN_0005ead8(param_2,param_3,auStack_a4);
  if (local_1c == *(int *)puVar1) {
    return;
  }
  pcVar7 = des_decrypt_xdmauth;
  puVar6 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  puStack_d0 = puVar1;
  piVar5 = *(int **)(puVar6 + 0x533c4);
  iStack_dc = *piVar5;
  puStack_d4 = auStack_a4;
  uStack_cc = param_2;
  puStack_c8 = param_3;
  pcStack_c4 = pcVar7;
  FUN_0005e9bc();
  FUN_0005ec54(puVar3,puVar4,auStack_164);
  if (iStack_dc == *piVar5) {
    return;
  }
  (**(code **)(puVar6 + 0x53398))();
  uVar2 = bignum_rshift(puVar3[2],1);
  puVar3[3] = uVar2;
  uVar2 = bignum_bitmask(uVar2);
  puVar3[4] = uVar2;
  puVar3[1] = 0;
  *puVar3 = 0;
  return;
}


lui gp,0x6
addiu gp,gp,-0x5728
addu gp,gp,t9
addiu sp,sp,-0xc0
lw t9,-0x78a0(gp)
sw s1,0xb0(sp)
addiu t9,t9,-0x1644
lw s1,-0x746c(gp)
sw s0,0xac(sp)
addiu s0,sp,0x1c
sw gp,0x10(sp)
sw ra,0xbc(sp)
sw s3,0xb8(sp)
or s3,a2,zero
sw s2,0xb4(sp)
or s2,a1,zero
lw v0,0x0(s1)
or a1,s0,zero
sw v0,0xa4(sp)
bal 0x0005e9bc
_nop
or a2,s0,zero
lw gp,0x10(sp)
or a1,s3,zero
lw t9,-0x78a0(gp)
addiu t9,t9,-0x1528
bal 0x0005ead8
_or a0,s2,zero
lw v1,0xa4(sp)
lw v0,0x0(s1)
bne v1,v0,0x0005fb34
_lw gp,0x10(sp)
lw ra,0xbc(sp)
lw s3,0xb8(sp)
lw s2,0xb4(sp)
lw s1,0xb0(sp)
lw s0,0xac(sp)
jr ra
_addiu sp,sp,0xc0
lw t9,-0x7498(gp)
jalr t9
_nop
(translation_unit "void des_encrypt_xdmauth(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_164 [136];\n  int iStack_dc;\n  undefined1 *puStack_d4;\n  undefined *puStack_d0;\n  undefined4 uStack_cc;\n  undefined4 *puStack_c8;\n  code *pcStack_c4;\n  undefined1 auStack_a4 [136];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;\n  FUN_0005e9bc(param_1,auStack_a4);\n  puVar3 = param_3;\n  puVar4 = auStack_a4;\n  FUN_0005ead8(param_2,param_3,auStack_a4);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  pcVar7 = des_decrypt_xdmauth;\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x533c4);\n  iStack_dc = *piVar5;\n  puStack_d4 = auStack_a4;\n  uStack_cc = param_2;\n  puStack_c8 = param_3;\n  pcStack_c4 = pcVar7;\n  FUN_0005e9bc();\n  FUN_0005ec54(puVar3,puVar4,auStack_164);\n  if (iStack_dc == *piVar5) {\n    return;\n  }\n  (**(code **)(puVar6 + 0x53398))();\n  uVar2 = bignum_rshift(puVar3[2],1);\n  puVar3[3] = uVar2;\n  uVar2 = bignum_bitmask(uVar2);\n  puVar3[4] = uVar2;\n  puVar3[1] = 0;\n  *puVar3 = 0;\n  return;\n}\n\n" (function_definition "void des_encrypt_xdmauth(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_164 [136];\n  int iStack_dc;\n  undefined1 *puStack_d4;\n  undefined *puStack_d0;\n  undefined4 uStack_cc;\n  undefined4 *puStack_c8;\n  code *pcStack_c4;\n  undefined1 auStack_a4 [136];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;\n  FUN_0005e9bc(param_1,auStack_a4);\n  puVar3 = param_3;\n  puVar4 = auStack_a4;\n  FUN_0005ead8(param_2,param_3,auStack_a4);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  pcVar7 = des_decrypt_xdmauth;\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x533c4);\n  iStack_dc = *piVar5;\n  puStack_d4 = auStack_a4;\n  uStack_cc = param_2;\n  puStack_c8 = param_3;\n  pcStack_c4 = pcVar7;\n  FUN_0005e9bc();\n  FUN_0005ec54(puVar3,puVar4,auStack_164);\n  if (iStack_dc == *piVar5) {\n    return;\n  }\n  (**(code **)(puVar6 + 0x53398))();\n  uVar2 = bignum_rshift(puVar3[2],1);\n  puVar3[3] = uVar2;\n  uVar2 = bignum_bitmask(uVar2);\n  puVar3[4] = uVar2;\n  puVar3[1] = 0;\n  *puVar3 = 0;\n  return;\n}" primitive_type (function_declarator "des_encrypt_xdmauth(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 (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_164 [136];\n  int iStack_dc;\n  undefined1 *puStack_d4;\n  undefined *puStack_d0;\n  undefined4 uStack_cc;\n  undefined4 *puStack_c8;\n  code *pcStack_c4;\n  undefined1 auStack_a4 [136];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;\n  FUN_0005e9bc(param_1,auStack_a4);\n  puVar3 = param_3;\n  puVar4 = auStack_a4;\n  FUN_0005ead8(param_2,param_3,auStack_a4);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  pcVar7 = des_decrypt_xdmauth;\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x533c4);\n  iStack_dc = *piVar5;\n  puStack_d4 = auStack_a4;\n  uStack_cc = param_2;\n  puStack_c8 = param_3;\n  pcStack_c4 = pcVar7;\n  FUN_0005e9bc();\n  FUN_0005ec54(puVar3,puVar4,auStack_164);\n  if (iStack_dc == *piVar5) {\n    return;\n  }\n  (**(code **)(puVar6 + 0x53398))();\n  uVar2 = bignum_rshift(puVar3[2],1);\n  puVar3[3] = uVar2;\n  uVar2 = bignum_bitmask(uVar2);\n  puVar3[4] = uVar2;\n  puVar3[1] = 0;\n  *puVar3 = 0;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 auStack_164 [136];" type_identifier (array_declarator "auStack_164 [136]" identifier [ number_literal ]) ;) (declaration "int iStack_dc;" primitive_type identifier ;) (declaration "undefined1 *puStack_d4;" type_identifier (pointer_declarator "*puStack_d4" * identifier) ;) (declaration "undefined *puStack_d0;" type_identifier (pointer_declarator "*puStack_d0" * identifier) ;) (declaration "undefined4 uStack_cc;" type_identifier identifier ;) (declaration "undefined4 *puStack_c8;" type_identifier (pointer_declarator "*puStack_c8" * identifier) ;) (declaration "code *pcStack_c4;" type_identifier (pointer_declarator "*pcStack_c4" * identifier) ;) (declaration "undefined1 auStack_a4 [136];" type_identifier (array_declarator "auStack_a4 [136]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_1c = *(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 "FUN_0005e9bc(param_1,auStack_a4);" (call_expression "FUN_0005e9bc(param_1,auStack_a4)" identifier (argument_list "(param_1,auStack_a4)" ( identifier , identifier ))) ;) (expression_statement "puVar3 = param_3;" (assignment_expression "puVar3 = param_3" identifier = identifier) ;) (expression_statement "puVar4 = auStack_a4;" (assignment_expression "puVar4 = auStack_a4" identifier = identifier) ;) (expression_statement "FUN_0005ead8(param_2,param_3,auStack_a4);" (call_expression "FUN_0005ead8(param_2,param_3,auStack_a4)" identifier (argument_list "(param_2,param_3,auStack_a4)" ( identifier , identifier , identifier ))) ;) (if_statement "if (local_1c == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar7 = des_decrypt_xdmauth;" (assignment_expression "pcVar7 = des_decrypt_xdmauth" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = 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 "puStack_d0 = puVar1;" (assignment_expression "puStack_d0 = puVar1" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x533c4);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x533c4)" identifier = (pointer_expression "*(int **)(puVar6 + 0x533c4)" * (cast_expression "(int **)(puVar6 + 0x533c4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x533c4)" ( (binary_expression "puVar6 + 0x533c4" identifier + number_literal) ))))) ;) (expression_statement "iStack_dc = *piVar5;" (assignment_expression "iStack_dc = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "puStack_d4 = auStack_a4;" (assignment_expression "puStack_d4 = auStack_a4" identifier = identifier) ;) (expression_statement "uStack_cc = param_2;" (assignment_expression "uStack_cc = param_2" identifier = identifier) ;) (expression_statement "puStack_c8 = param_3;" (assignment_expression "puStack_c8 = param_3" identifier = identifier) ;) (expression_statement "pcStack_c4 = pcVar7;" (assignment_expression "pcStack_c4 = pcVar7" identifier = identifier) ;) (expression_statement "FUN_0005e9bc();" (call_expression "FUN_0005e9bc()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0005ec54(puVar3,puVar4,auStack_164);" (call_expression "FUN_0005ec54(puVar3,puVar4,auStack_164)" identifier (argument_list "(puVar3,puVar4,auStack_164)" ( identifier , identifier , identifier ))) ;) (if_statement "if (iStack_dc == *piVar5) {\n    return;\n  }" if (parenthesized_expression "(iStack_dc == *piVar5)" ( (binary_expression "iStack_dc == *piVar5" identifier == (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(**(code **)(puVar6 + 0x53398))();" (call_expression "(**(code **)(puVar6 + 0x53398))()" (parenthesized_expression "(**(code **)(puVar6 + 0x53398))" ( (pointer_expression "**(code **)(puVar6 + 0x53398)" * (pointer_expression "*(code **)(puVar6 + 0x53398)" * (cast_expression "(code **)(puVar6 + 0x53398)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x53398)" ( (binary_expression "puVar6 + 0x53398" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "uVar2 = bignum_rshift(puVar3[2],1);" (assignment_expression "uVar2 = bignum_rshift(puVar3[2],1)" identifier = (call_expression "bignum_rshift(puVar3[2],1)" identifier (argument_list "(puVar3[2],1)" ( (subscript_expression "puVar3[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "puVar3[3] = uVar2;" (assignment_expression "puVar3[3] = uVar2" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = bignum_bitmask(uVar2);" (assignment_expression "uVar2 = bignum_bitmask(uVar2)" identifier = (call_expression "bignum_bitmask(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "puVar3[4] = uVar2;" (assignment_expression "puVar3[4] = uVar2" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void des_encrypt_xdmauth(uchar *keydata,uchar *blk,int len)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  Bignum_conflict pBVar3;\n  uchar *keydata_00;\n  uchar *blk_00;\n  DESContext *len_00;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  DESContext DStack_164;\n  int iStack_dc;\n  DESContext *pDStack_d4;\n  undefined *puStack_d0;\n  uchar *puStack_cc;\n  int iStack_c8;\n  code *pcStack_c4;\n  DESContext dc;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b2f04;\n  des_keysetup_xdmauth(keydata,&dc);\n  keydata_00 = blk;\n  blk_00 = (uchar *)len;\n  len_00 = &dc;\n  des_cbc_encrypt(blk,len,&dc);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  pcVar6 = des_decrypt_xdmauth;\n  puVar5 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x533c4);\n  iStack_dc = *piVar4;\n  pDStack_d4 = &dc;\n  puStack_cc = blk;\n  iStack_c8 = len;\n  pcStack_c4 = pcVar6;\n  des_keysetup_xdmauth(keydata_00,&DStack_164);\n  des_cbc_decrypt(blk_00,(uint)len_00,&DStack_164);\n  if (iStack_dc == *piVar4) {\n    return;\n  }\n  (**(code **)(puVar5 + 0x53398))();\n  pBVar3 = bignum_rshift(*(Bignum_conflict *)(blk_00 + 8),1);\n  *(Bignum_conflict *)(blk_00 + 0xc) = pBVar3;\n  pBVar3 = bignum_bitmask(pBVar3);\n  *(Bignum_conflict *)(blk_00 + 0x10) = pBVar3;\n  blk_00[4] = '\0';\n  blk_00[5] = '\0';\n  blk_00[6] = '\0';\n  blk_00[7] = '\0';\n  blk_00[0] = '\0';\n  blk_00[1] = '\0';\n  blk_00[2] = '\0';\n  blk_00[3] = '\0';\n  return;\n}\n\n" (function_definition "void des_encrypt_xdmauth(uchar *keydata,uchar *blk,int len)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  Bignum_conflict pBVar3;\n  uchar *keydata_00;\n  uchar *blk_00;\n  DESContext *len_00;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  DESContext DStack_164;\n  int iStack_dc;\n  DESContext *pDStack_d4;\n  undefined *puStack_d0;\n  uchar *puStack_cc;\n  int iStack_c8;\n  code *pcStack_c4;\n  DESContext dc;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b2f04;\n  des_keysetup_xdmauth(keydata,&dc);\n  keydata_00 = blk;\n  blk_00 = (uchar *)len;\n  len_00 = &dc;\n  des_cbc_encrypt(blk,len,&dc);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  pcVar6 = des_decrypt_xdmauth;\n  puVar5 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x533c4);\n  iStack_dc = *piVar4;\n  pDStack_d4 = &dc;\n  puStack_cc = blk;\n  iStack_c8 = len;\n  pcStack_c4 = pcVar6;\n  des_keysetup_xdmauth(keydata_00,&DStack_164);\n  des_cbc_decrypt(blk_00,(uint)len_00,&DStack_164);\n  if (iStack_dc == *piVar4) {\n    return;\n  }\n  (**(code **)(puVar5 + 0x53398))();\n  pBVar3 = bignum_rshift(*(Bignum_conflict *)(blk_00 + 8),1);\n  *(Bignum_conflict *)(blk_00 + 0xc) = pBVar3;\n  pBVar3 = bignum_bitmask(pBVar3);\n  *(Bignum_conflict *)(blk_00 + 0x10) = pBVar3;\n  blk_00[4] = '\0';\n  blk_00[5] = '\0';\n  blk_00[6] = '\0';\n  blk_00[7] = '\0';\n  blk_00[0] = '\0';\n  blk_00[1] = '\0';\n  blk_00[2] = '\0';\n  blk_00[3] = '\0';\n  return;\n}" primitive_type (function_declarator "des_encrypt_xdmauth(uchar *keydata,uchar *blk,int len)" identifier (parameter_list "(uchar *keydata,uchar *blk,int len)" ( (parameter_declaration "uchar *keydata" type_identifier (pointer_declarator "*keydata" * identifier)) , (parameter_declaration "uchar *blk" type_identifier (pointer_declarator "*blk" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  Bignum_conflict pBVar3;\n  uchar *keydata_00;\n  uchar *blk_00;\n  DESContext *len_00;\n  int *piVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  DESContext DStack_164;\n  int iStack_dc;\n  DESContext *pDStack_d4;\n  undefined *puStack_d0;\n  uchar *puStack_cc;\n  int iStack_c8;\n  code *pcStack_c4;\n  DESContext dc;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  iVar2 = *(int *)PTR___stack_chk_guard_000b2f04;\n  des_keysetup_xdmauth(keydata,&dc);\n  keydata_00 = blk;\n  blk_00 = (uchar *)len;\n  len_00 = &dc;\n  des_cbc_encrypt(blk,len,&dc);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  pcVar6 = des_decrypt_xdmauth;\n  puVar5 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar4 = *(int **)(puVar5 + 0x533c4);\n  iStack_dc = *piVar4;\n  pDStack_d4 = &dc;\n  puStack_cc = blk;\n  iStack_c8 = len;\n  pcStack_c4 = pcVar6;\n  des_keysetup_xdmauth(keydata_00,&DStack_164);\n  des_cbc_decrypt(blk_00,(uint)len_00,&DStack_164);\n  if (iStack_dc == *piVar4) {\n    return;\n  }\n  (**(code **)(puVar5 + 0x53398))();\n  pBVar3 = bignum_rshift(*(Bignum_conflict *)(blk_00 + 8),1);\n  *(Bignum_conflict *)(blk_00 + 0xc) = pBVar3;\n  pBVar3 = bignum_bitmask(pBVar3);\n  *(Bignum_conflict *)(blk_00 + 0x10) = pBVar3;\n  blk_00[4] = '\0';\n  blk_00[5] = '\0';\n  blk_00[6] = '\0';\n  blk_00[7] = '\0';\n  blk_00[0] = '\0';\n  blk_00[1] = '\0';\n  blk_00[2] = '\0';\n  blk_00[3] = '\0';\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Bignum_conflict pBVar3;" type_identifier identifier ;) (declaration "uchar *keydata_00;" type_identifier (pointer_declarator "*keydata_00" * identifier) ;) (declaration "uchar *blk_00;" type_identifier (pointer_declarator "*blk_00" * identifier) ;) (declaration "DESContext *len_00;" type_identifier (pointer_declarator "*len_00" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "DESContext DStack_164;" type_identifier identifier ;) (declaration "int iStack_dc;" primitive_type identifier ;) (declaration "DESContext *pDStack_d4;" type_identifier (pointer_declarator "*pDStack_d4" * identifier) ;) (declaration "undefined *puStack_d0;" type_identifier (pointer_declarator "*puStack_d0" * identifier) ;) (declaration "uchar *puStack_cc;" type_identifier (pointer_declarator "*puStack_cc" * identifier) ;) (declaration "int iStack_c8;" primitive_type identifier ;) (declaration "code *pcStack_c4;" type_identifier (pointer_declarator "*pcStack_c4" * identifier) ;) (declaration "DESContext dc;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "iVar2 = *(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 "des_keysetup_xdmauth(keydata,&dc);" (call_expression "des_keysetup_xdmauth(keydata,&dc)" identifier (argument_list "(keydata,&dc)" ( identifier , (pointer_expression "&dc" & identifier) ))) ;) (expression_statement "keydata_00 = blk;" (assignment_expression "keydata_00 = blk" identifier = identifier) ;) (expression_statement "blk_00 = (uchar *)len;" (assignment_expression "blk_00 = (uchar *)len" identifier = (cast_expression "(uchar *)len" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "len_00 = &dc;" (assignment_expression "len_00 = &dc" identifier = (pointer_expression "&dc" & identifier)) ;) (expression_statement "des_cbc_encrypt(blk,len,&dc);" (call_expression "des_cbc_encrypt(blk,len,&dc)" identifier (argument_list "(blk,len,&dc)" ( identifier , identifier , (pointer_expression "&dc" & identifier) ))) ;) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar6 = des_decrypt_xdmauth;" (assignment_expression "pcVar6 = des_decrypt_xdmauth" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar5 = 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 "puStack_d0 = puVar1;" (assignment_expression "puStack_d0 = puVar1" identifier = identifier) ;) (expression_statement "piVar4 = *(int **)(puVar5 + 0x533c4);" (assignment_expression "piVar4 = *(int **)(puVar5 + 0x533c4)" identifier = (pointer_expression "*(int **)(puVar5 + 0x533c4)" * (cast_expression "(int **)(puVar5 + 0x533c4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x533c4)" ( (binary_expression "puVar5 + 0x533c4" identifier + number_literal) ))))) ;) (expression_statement "iStack_dc = *piVar4;" (assignment_expression "iStack_dc = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "pDStack_d4 = &dc;" (assignment_expression "pDStack_d4 = &dc" identifier = (pointer_expression "&dc" & identifier)) ;) (expression_statement "puStack_cc = blk;" (assignment_expression "puStack_cc = blk" identifier = identifier) ;) (expression_statement "iStack_c8 = len;" (assignment_expression "iStack_c8 = len" identifier = identifier) ;) (expression_statement "pcStack_c4 = pcVar6;" (assignment_expression "pcStack_c4 = pcVar6" identifier = identifier) ;) (expression_statement "des_keysetup_xdmauth(keydata_00,&DStack_164);" (call_expression "des_keysetup_xdmauth(keydata_00,&DStack_164)" identifier (argument_list "(keydata_00,&DStack_164)" ( identifier , (pointer_expression "&DStack_164" & identifier) ))) ;) (expression_statement "des_cbc_decrypt(blk_00,(uint)len_00,&DStack_164);" (call_expression "des_cbc_decrypt(blk_00,(uint)len_00,&DStack_164)" identifier (argument_list "(blk_00,(uint)len_00,&DStack_164)" ( identifier , (cast_expression "(uint)len_00" ( (type_descriptor "uint" type_identifier) ) identifier) , (pointer_expression "&DStack_164" & identifier) ))) ;) (if_statement "if (iStack_dc == *piVar4) {\n    return;\n  }" if (parenthesized_expression "(iStack_dc == *piVar4)" ( (binary_expression "iStack_dc == *piVar4" identifier == (pointer_expression "*piVar4" * identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(**(code **)(puVar5 + 0x53398))();" (call_expression "(**(code **)(puVar5 + 0x53398))()" (parenthesized_expression "(**(code **)(puVar5 + 0x53398))" ( (pointer_expression "**(code **)(puVar5 + 0x53398)" * (pointer_expression "*(code **)(puVar5 + 0x53398)" * (cast_expression "(code **)(puVar5 + 0x53398)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x53398)" ( (binary_expression "puVar5 + 0x53398" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "pBVar3 = bignum_rshift(*(Bignum_conflict *)(blk_00 + 8),1);" (assignment_expression "pBVar3 = bignum_rshift(*(Bignum_conflict *)(blk_00 + 8),1)" identifier = (call_expression "bignum_rshift(*(Bignum_conflict *)(blk_00 + 8),1)" identifier (argument_list "(*(Bignum_conflict *)(blk_00 + 8),1)" ( (pointer_expression "*(Bignum_conflict *)(blk_00 + 8)" * (cast_expression "(Bignum_conflict *)(blk_00 + 8)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(blk_00 + 8)" ( (binary_expression "blk_00 + 8" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "*(Bignum_conflict *)(blk_00 + 0xc) = pBVar3;" (assignment_expression "*(Bignum_conflict *)(blk_00 + 0xc) = pBVar3" (pointer_expression "*(Bignum_conflict *)(blk_00 + 0xc)" * (cast_expression "(Bignum_conflict *)(blk_00 + 0xc)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(blk_00 + 0xc)" ( (binary_expression "blk_00 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "pBVar3 = bignum_bitmask(pBVar3);" (assignment_expression "pBVar3 = bignum_bitmask(pBVar3)" identifier = (call_expression "bignum_bitmask(pBVar3)" identifier (argument_list "(pBVar3)" ( identifier )))) ;) (expression_statement "*(Bignum_conflict *)(blk_00 + 0x10) = pBVar3;" (assignment_expression "*(Bignum_conflict *)(blk_00 + 0x10) = pBVar3" (pointer_expression "*(Bignum_conflict *)(blk_00 + 0x10)" * (cast_expression "(Bignum_conflict *)(blk_00 + 0x10)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(blk_00 + 0x10)" ( (binary_expression "blk_00 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "blk_00[4] = '\0';" (assignment_expression "blk_00[4] = '\0'" (subscript_expression "blk_00[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "blk_00[5] = '\0';" (assignment_expression "blk_00[5] = '\0'" (subscript_expression "blk_00[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "blk_00[6] = '\0';" (assignment_expression "blk_00[6] = '\0'" (subscript_expression "blk_00[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "blk_00[7] = '\0';" (assignment_expression "blk_00[7] = '\0'" (subscript_expression "blk_00[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "blk_00[0] = '\0';" (assignment_expression "blk_00[0] = '\0'" (subscript_expression "blk_00[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "blk_00[1] = '\0';" (assignment_expression "blk_00[1] = '\0'" (subscript_expression "blk_00[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "blk_00[2] = '\0';" (assignment_expression "blk_00[2] = '\0'" (subscript_expression "blk_00[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "blk_00[3] = '\0';" (assignment_expression "blk_00[3] = '\0'" (subscript_expression "blk_00[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "void des_encrypt_xdmauth(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_164 [136];\n  int iStack_dc;\n  undefined1 *puStack_d4;\n  undefined *puStack_d0;\n  undefined4 uStack_cc;\n  undefined4 *puStack_c8;\n  code *pcStack_c4;\n  undefined1 auStack_a4 [136];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;\n  FUN_0005e9bc(param_1,auStack_a4);\n  puVar3 = param_3;\n  puVar4 = auStack_a4;\n  FUN_0005ead8(param_2,param_3,auStack_a4);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  pcVar7 = des_decrypt_xdmauth;\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x533c4);\n  iStack_dc = *piVar5;\n  puStack_d4 = auStack_a4;\n  uStack_cc = param_2;\n  puStack_c8 = param_3;\n  pcStack_c4 = pcVar7;\n  FUN_0005e9bc();\n  FUN_0005ec54(puVar3,puVar4,auStack_164);\n  if (iStack_dc == *piVar5) {\n    return;\n  }\n  (**(code **)(puVar6 + 0x53398))();\n  uVar2 = bignum_rshift(puVar3[2],1);\n  puVar3[3] = uVar2;\n  uVar2 = bignum_bitmask(uVar2);\n  puVar3[4] = uVar2;\n  puVar3[1] = 0;\n  *puVar3 = 0;\n  return;\n}\n\n" (function_definition "void des_encrypt_xdmauth(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_164 [136];\n  int iStack_dc;\n  undefined1 *puStack_d4;\n  undefined *puStack_d0;\n  undefined4 uStack_cc;\n  undefined4 *puStack_c8;\n  code *pcStack_c4;\n  undefined1 auStack_a4 [136];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;\n  FUN_0005e9bc(param_1,auStack_a4);\n  puVar3 = param_3;\n  puVar4 = auStack_a4;\n  FUN_0005ead8(param_2,param_3,auStack_a4);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  pcVar7 = des_decrypt_xdmauth;\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x533c4);\n  iStack_dc = *piVar5;\n  puStack_d4 = auStack_a4;\n  uStack_cc = param_2;\n  puStack_c8 = param_3;\n  pcStack_c4 = pcVar7;\n  FUN_0005e9bc();\n  FUN_0005ec54(puVar3,puVar4,auStack_164);\n  if (iStack_dc == *piVar5) {\n    return;\n  }\n  (**(code **)(puVar6 + 0x53398))();\n  uVar2 = bignum_rshift(puVar3[2],1);\n  puVar3[3] = uVar2;\n  uVar2 = bignum_bitmask(uVar2);\n  puVar3[4] = uVar2;\n  puVar3[1] = 0;\n  *puVar3 = 0;\n  return;\n}" primitive_type (function_declarator "des_encrypt_xdmauth(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 (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_164 [136];\n  int iStack_dc;\n  undefined1 *puStack_d4;\n  undefined *puStack_d0;\n  undefined4 uStack_cc;\n  undefined4 *puStack_c8;\n  code *pcStack_c4;\n  undefined1 auStack_a4 [136];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;\n  FUN_0005e9bc(param_1,auStack_a4);\n  puVar3 = param_3;\n  puVar4 = auStack_a4;\n  FUN_0005ead8(param_2,param_3,auStack_a4);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  pcVar7 = des_decrypt_xdmauth;\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x533c4);\n  iStack_dc = *piVar5;\n  puStack_d4 = auStack_a4;\n  uStack_cc = param_2;\n  puStack_c8 = param_3;\n  pcStack_c4 = pcVar7;\n  FUN_0005e9bc();\n  FUN_0005ec54(puVar3,puVar4,auStack_164);\n  if (iStack_dc == *piVar5) {\n    return;\n  }\n  (**(code **)(puVar6 + 0x53398))();\n  uVar2 = bignum_rshift(puVar3[2],1);\n  puVar3[3] = uVar2;\n  uVar2 = bignum_bitmask(uVar2);\n  puVar3[4] = uVar2;\n  puVar3[1] = 0;\n  *puVar3 = 0;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined1 auStack_164 [136];" type_identifier (array_declarator "auStack_164 [136]" identifier [ number_literal ]) ;) (declaration "int iStack_dc;" primitive_type identifier ;) (declaration "undefined1 *puStack_d4;" type_identifier (pointer_declarator "*puStack_d4" * identifier) ;) (declaration "undefined *puStack_d0;" type_identifier (pointer_declarator "*puStack_d0" * identifier) ;) (declaration "undefined4 uStack_cc;" type_identifier identifier ;) (declaration "undefined4 *puStack_c8;" type_identifier (pointer_declarator "*puStack_c8" * identifier) ;) (declaration "code *pcStack_c4;" type_identifier (pointer_declarator "*pcStack_c4" * identifier) ;) (declaration "undefined1 auStack_a4 [136];" type_identifier (array_declarator "auStack_a4 [136]" identifier [ number_literal ]) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_1c = *(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 "FUN_0005e9bc(param_1,auStack_a4);" (call_expression "FUN_0005e9bc(param_1,auStack_a4)" identifier (argument_list "(param_1,auStack_a4)" ( identifier , identifier ))) ;) (expression_statement "puVar3 = param_3;" (assignment_expression "puVar3 = param_3" identifier = identifier) ;) (expression_statement "puVar4 = auStack_a4;" (assignment_expression "puVar4 = auStack_a4" identifier = identifier) ;) (expression_statement "FUN_0005ead8(param_2,param_3,auStack_a4);" (call_expression "FUN_0005ead8(param_2,param_3,auStack_a4)" identifier (argument_list "(param_2,param_3,auStack_a4)" ( identifier , identifier , identifier ))) ;) (if_statement "if (local_1c == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar1)" ( (binary_expression "local_1c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pcVar7 = des_decrypt_xdmauth;" (assignment_expression "pcVar7 = des_decrypt_xdmauth" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = 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 "puStack_d0 = puVar1;" (assignment_expression "puStack_d0 = puVar1" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(puVar6 + 0x533c4);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x533c4)" identifier = (pointer_expression "*(int **)(puVar6 + 0x533c4)" * (cast_expression "(int **)(puVar6 + 0x533c4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x533c4)" ( (binary_expression "puVar6 + 0x533c4" identifier + number_literal) ))))) ;) (expression_statement "iStack_dc = *piVar5;" (assignment_expression "iStack_dc = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "puStack_d4 = auStack_a4;" (assignment_expression "puStack_d4 = auStack_a4" identifier = identifier) ;) (expression_statement "uStack_cc = param_2;" (assignment_expression "uStack_cc = param_2" identifier = identifier) ;) (expression_statement "puStack_c8 = param_3;" (assignment_expression "puStack_c8 = param_3" identifier = identifier) ;) (expression_statement "pcStack_c4 = pcVar7;" (assignment_expression "pcStack_c4 = pcVar7" identifier = identifier) ;) (expression_statement "FUN_0005e9bc();" (call_expression "FUN_0005e9bc()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0005ec54(puVar3,puVar4,auStack_164);" (call_expression "FUN_0005ec54(puVar3,puVar4,auStack_164)" identifier (argument_list "(puVar3,puVar4,auStack_164)" ( identifier , identifier , identifier ))) ;) (if_statement "if (iStack_dc == *piVar5) {\n    return;\n  }" if (parenthesized_expression "(iStack_dc == *piVar5)" ( (binary_expression "iStack_dc == *piVar5" identifier == (pointer_expression "*piVar5" * identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(**(code **)(puVar6 + 0x53398))();" (call_expression "(**(code **)(puVar6 + 0x53398))()" (parenthesized_expression "(**(code **)(puVar6 + 0x53398))" ( (pointer_expression "**(code **)(puVar6 + 0x53398)" * (pointer_expression "*(code **)(puVar6 + 0x53398)" * (cast_expression "(code **)(puVar6 + 0x53398)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x53398)" ( (binary_expression "puVar6 + 0x53398" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "uVar2 = bignum_rshift(puVar3[2],1);" (assignment_expression "uVar2 = bignum_rshift(puVar3[2],1)" identifier = (call_expression "bignum_rshift(puVar3[2],1)" identifier (argument_list "(puVar3[2],1)" ( (subscript_expression "puVar3[2]" identifier [ number_literal ]) , number_literal )))) ;) (expression_statement "puVar3[3] = uVar2;" (assignment_expression "puVar3[3] = uVar2" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = bignum_bitmask(uVar2);" (assignment_expression "uVar2 = bignum_bitmask(uVar2)" identifier = (call_expression "bignum_bitmask(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "puVar3[4] = uVar2;" (assignment_expression "puVar3[4] = uVar2" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , 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 ;) })) (expression_statement (assignment_expression IDENT = 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 = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return ;) })) (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 ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void des_encrypt_xdmauth(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_164 [136];\n  int iStack_dc;\n  undefined1 *puStack_d4;\n  undefined *puStack_d0;\n  undefined4 uStack_cc;\n  undefined4 *puStack_c8;\n  code *pcStack_c4;\n  undefined1 auStack_a4 [136];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;\n  FUN_0005e9bc(param_1,auStack_a4);\n  puVar3 = param_3;\n  puVar4 = auStack_a4;\n  FUN_0005ead8(param_2,param_3,auStack_a4);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  pcVar7 = des_decrypt_xdmauth;\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x533c4);\n  iStack_dc = *piVar5;\n  puStack_d4 = auStack_a4;\n  uStack_cc = param_2;\n  puStack_c8 = param_3;\n  pcStack_c4 = pcVar7;\n  FUN_0005e9bc();\n  FUN_0005ec54(puVar3,puVar4,auStack_164);\n  if (iStack_dc == *piVar5) {\n    return;\n  }\n  (**(code **)(puVar6 + 0x53398))();\n  uVar2 = bignum_rshift(puVar3[2],1);\n  puVar3[3] = uVar2;\n  uVar2 = bignum_bitmask(uVar2);\n  puVar3[4] = uVar2;\n  puVar3[1] = 0;\n  *puVar3 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "des_encrypt_xdmauth(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "des_encrypt_xdmauth") (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") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int *piVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  undefined1 auStack_164 [136];\n  int iStack_dc;\n  undefined1 *puStack_d4;\n  undefined *puStack_d0;\n  undefined4 uStack_cc;\n  undefined4 *puStack_c8;\n  code *pcStack_c4;\n  undefined1 auStack_a4 [136];\n  int local_1c;\n  \n  puVar1 = PTR___stack_chk_guard_000b2f04;\n  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;\n  FUN_0005e9bc(param_1,auStack_a4);\n  puVar3 = param_3;\n  puVar4 = auStack_a4;\n  FUN_0005ead8(param_2,param_3,auStack_a4);\n  if (local_1c == *(int *)puVar1) {\n    return;\n  }\n  pcVar7 = des_decrypt_xdmauth;\n  puVar6 = PTR___stack_chk_fail_000b2ed8;\n  (*(code *)PTR___stack_chk_fail_000b2ed8)();\n  puStack_d0 = puVar1;\n  piVar5 = *(int **)(puVar6 + 0x533c4);\n  iStack_dc = *piVar5;\n  puStack_d4 = auStack_a4;\n  uStack_cc = param_2;\n  puStack_c8 = param_3;\n  pcStack_c4 = pcVar7;\n  FUN_0005e9bc();\n  FUN_0005ec54(puVar3,puVar4,auStack_164);\n  if (iStack_dc == *piVar5) {\n    return;\n  }\n  (**(code **)(puVar6 + 0x53398))();\n  uVar2 = bignum_rshift(puVar3[2],1);\n  puVar3[3] = uVar2;\n  uVar2 = bignum_bitmask(uVar2);\n  puVar3[4] = uVar2;\n  puVar3[1] = 0;\n  *puVar3 = 0;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "code *pcVar7;" (type_identifier "code") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "undefined1 auStack_164 [136];" (type_identifier "undefined1") (array_declarator "auStack_164 [136]" (identifier "auStack_164") ([ "[") (number_literal "136") (] "]")) (; ";")) (declaration "int iStack_dc;" (primitive_type "int") (identifier "iStack_dc") (; ";")) (declaration "undefined1 *puStack_d4;" (type_identifier "undefined1") (pointer_declarator "*puStack_d4" (* "*") (identifier "puStack_d4")) (; ";")) (declaration "undefined *puStack_d0;" (type_identifier "undefined") (pointer_declarator "*puStack_d0" (* "*") (identifier "puStack_d0")) (; ";")) (declaration "undefined4 uStack_cc;" (type_identifier "undefined4") (identifier "uStack_cc") (; ";")) (declaration "undefined4 *puStack_c8;" (type_identifier "undefined4") (pointer_declarator "*puStack_c8" (* "*") (identifier "puStack_c8")) (; ";")) (declaration "code *pcStack_c4;" (type_identifier "code") (pointer_declarator "*pcStack_c4" (* "*") (identifier "pcStack_c4")) (; ";")) (declaration "undefined1 auStack_a4 [136];" (type_identifier "undefined1") (array_declarator "auStack_a4 [136]" (identifier "auStack_a4") ([ "[") (number_literal "136") (] "]")) (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b2f04" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000b2f04")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000b2f04" (identifier "local_1c") (= "=") (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 "FUN_0005e9bc(param_1,auStack_a4);" (call_expression "FUN_0005e9bc(param_1,auStack_a4)" (identifier "FUN_0005e9bc") (argument_list "(param_1,auStack_a4)" (( "(") (identifier "param_1") (, ",") (identifier "auStack_a4") () ")"))) (; ";")) (expression_statement "puVar3 = param_3;" (assignment_expression "puVar3 = param_3" (identifier "puVar3") (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar4 = auStack_a4;" (assignment_expression "puVar4 = auStack_a4" (identifier "puVar4") (= "=") (identifier "auStack_a4")) (; ";")) (expression_statement "FUN_0005ead8(param_2,param_3,auStack_a4);" (call_expression "FUN_0005ead8(param_2,param_3,auStack_a4)" (identifier "FUN_0005ead8") (argument_list "(param_2,param_3,auStack_a4)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "auStack_a4") () ")"))) (; ";")) (if_statement "if (local_1c == *(int *)puVar1) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar1)" (( "(") (binary_expression "local_1c == *(int *)puVar1" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar7 = des_decrypt_xdmauth;" (assignment_expression "pcVar7 = des_decrypt_xdmauth" (identifier "pcVar7") (= "=") (identifier "des_decrypt_xdmauth")) (; ";")) (expression_statement "puVar6 = PTR___stack_chk_fail_000b2ed8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b2ed8" (identifier "puVar6") (= "=") (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 "puStack_d0 = puVar1;" (assignment_expression "puStack_d0 = puVar1" (identifier "puStack_d0") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "piVar5 = *(int **)(puVar6 + 0x533c4);" (assignment_expression "piVar5 = *(int **)(puVar6 + 0x533c4)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(puVar6 + 0x533c4)" (* "*") (cast_expression "(int **)(puVar6 + 0x533c4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x533c4)" (( "(") (binary_expression "puVar6 + 0x533c4" (identifier "puVar6") (+ "+") (number_literal "0x533c4")) () ")"))))) (; ";")) (expression_statement "iStack_dc = *piVar5;" (assignment_expression "iStack_dc = *piVar5" (identifier "iStack_dc") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "puStack_d4 = auStack_a4;" (assignment_expression "puStack_d4 = auStack_a4" (identifier "puStack_d4") (= "=") (identifier "auStack_a4")) (; ";")) (expression_statement "uStack_cc = param_2;" (assignment_expression "uStack_cc = param_2" (identifier "uStack_cc") (= "=") (identifier "param_2")) (; ";")) (expression_statement "puStack_c8 = param_3;" (assignment_expression "puStack_c8 = param_3" (identifier "puStack_c8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "pcStack_c4 = pcVar7;" (assignment_expression "pcStack_c4 = pcVar7" (identifier "pcStack_c4") (= "=") (identifier "pcVar7")) (; ";")) (expression_statement "FUN_0005e9bc();" (call_expression "FUN_0005e9bc()" (identifier "FUN_0005e9bc") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0005ec54(puVar3,puVar4,auStack_164);" (call_expression "FUN_0005ec54(puVar3,puVar4,auStack_164)" (identifier "FUN_0005ec54") (argument_list "(puVar3,puVar4,auStack_164)" (( "(") (identifier "puVar3") (, ",") (identifier "puVar4") (, ",") (identifier "auStack_164") () ")"))) (; ";")) (if_statement "if (iStack_dc == *piVar5) {\n    return;\n  }" (if "if") (parenthesized_expression "(iStack_dc == *piVar5)" (( "(") (binary_expression "iStack_dc == *piVar5" (identifier "iStack_dc") (== "==") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(**(code **)(puVar6 + 0x53398))();" (call_expression "(**(code **)(puVar6 + 0x53398))()" (parenthesized_expression "(**(code **)(puVar6 + 0x53398))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x53398)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x53398)" (* "*") (cast_expression "(code **)(puVar6 + 0x53398)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x53398)" (( "(") (binary_expression "puVar6 + 0x53398" (identifier "puVar6") (+ "+") (number_literal "0x53398")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = bignum_rshift(puVar3[2],1);" (assignment_expression "uVar2 = bignum_rshift(puVar3[2],1)" (identifier "uVar2") (= "=") (call_expression "bignum_rshift(puVar3[2],1)" (identifier "bignum_rshift") (argument_list "(puVar3[2],1)" (( "(") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "puVar3[3] = uVar2;" (assignment_expression "puVar3[3] = uVar2" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = bignum_bitmask(uVar2);" (assignment_expression "uVar2 = bignum_bitmask(uVar2)" (identifier "uVar2") (= "=") (call_expression "bignum_bitmask(uVar2)" (identifier "bignum_bitmask") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "puVar3[4] = uVar2;" (assignment_expression "puVar3[4] = uVar2" (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *keydata,type_1 *blk,int len)

{
  type_2 *puVar1;
  int var_3;
  type_3 pBVar3;
  type_1 *keydata_00;
  type_1 *var_8;
  type_4 *len_00;
  int *piVar4;
  type_2 *var_4;
  type_5 *pcVar6;
  type_4 DStack_164;
  int var_6;
  type_4 *pDStack_d4;
  type_2 *puStack_d0;
  type_1 *puStack_cc;
  int iStack_c8;
  type_5 *pcStack_c4;
  type_4 dc;
  
  puVar1 = PTR___stack_chk_guard_000b2f04;
  var_3 = *(int *)PTR___stack_chk_guard_000b2f04;
  var_1(keydata,&dc);
  keydata_00 = blk;
  var_8 = (type_1 *)len;
  len_00 = &dc;
  var_2(blk,len,&dc);
  if (var_3 == *(int *)puVar1) {
    return;
  }
  pcVar6 = des_decrypt_xdmauth;
  var_4 = PTR___stack_chk_fail_000b2ed8;
  (*(type_5 *)PTR___stack_chk_fail_000b2ed8)();
  puStack_d0 = puVar1;
  piVar4 = *(int **)(var_4 + 0x533c4);
  var_6 = *piVar4;
  pDStack_d4 = &dc;
  puStack_cc = blk;
  iStack_c8 = len;
  pcStack_c4 = pcVar6;
  var_1(keydata_00,&DStack_164);
  var_5(var_8,(type_6)len_00,&DStack_164);
  if (var_6 == *piVar4) {
    return;
  }
  (**(type_5 **)(var_4 + 0x53398))();
  pBVar3 = var_7(*(type_3 *)(var_8 + 8),1);
  *(type_3 *)(var_8 + 0xc) = pBVar3;
  pBVar3 = var_9(pBVar3);
  *(type_3 *)(var_8 + 0x10) = pBVar3;
  var_8[4] = '\0';
  var_8[5] = '\0';
  var_8[6] = '\0';
  var_8[7] = '\0';
  var_8[0] = '\0';
  var_8[1] = '\0';
  var_8[2] = '\0';
  var_8[3] = '\0';
  return;
}


(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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (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: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (identifier))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement))) (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))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

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

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  undefined1 *puVar4;
  int *piVar5;
  undefined *puVar6;
  code *pcVar7;
  undefined1 auStack_164 [136];
  int iStack_dc;
  undefined1 *puStack_d4;
  undefined *puStack_d0;
  undefined4 uStack_cc;
  undefined4 *puStack_c8;
  code *pcStack_c4;
  undefined1 auStack_a4 [136];
  int local_1c;
  
  puVar1 = PTR___stack_chk_guard_000b2f04;
  local_1c = *(int *)PTR___stack_chk_guard_000b2f04;
  FUN_0005e9bc(param_1,auStack_a4);
  puVar3 = param_3;
  puVar4 = auStack_a4;
  FUN_0005ead8(param_2,param_3,auStack_a4);
  if (local_1c == *(int *)puVar1) {
    return;
  }
  pcVar7 = des_decrypt_xdmauth;
  puVar6 = PTR___stack_chk_fail_000b2ed8;
  (*(code *)PTR___stack_chk_fail_000b2ed8)();
  puStack_d0 = puVar1;
  piVar5 = *(int **)(puVar6 + 0x533c4);
  iStack_dc = *piVar5;
  puStack_d4 = auStack_a4;
  uStack_cc = param_2;
  puStack_c8 = param_3;
  pcStack_c4 = pcVar7;
  FUN_0005e9bc();
  FUN_0005ec54(puVar3,puVar4,auStack_164);
  if (iStack_dc == *piVar5) {
    return;
  }
  (**(code **)(puVar6 + 0x53398))();
  uVar2 = bignum_rshift(puVar3[2],1);
  puVar3[3] = uVar2;
  uVar2 = bignum_bitmask(uVar2);
  puVar3[4] = uVar2;
  puVar3[1] = 0;
  *puVar3 = 0;
  return;
}

