
/* WARNING: Unknown calling convention */

void hmacmd5_genresult(void *handle,uchar *hmac)

{
  int iVar1;
  int iVar2;
  uint32 *puVar3;
  MD5Context *pMVar4;
  int in_GS_OFFSET;
  byte bVar5;
  MD5Context s;
  uchar intermediate [16];
  
  bVar5 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  puVar3 = (uint32 *)((int)handle + 0xb8);
  pMVar4 = &s;
  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {
    (pMVar4->core).h[0] = *puVar3;
    puVar3 = puVar3 + 1;
    pMVar4 = (MD5Context *)((pMVar4->core).h + 1);
  }
  MD5Final(intermediate,&s);
  puVar3 = (uint32 *)((int)handle + 0x5c);
  pMVar4 = &s;
  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {
    (pMVar4->core).h[0] = *puVar3;
    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;
    pMVar4 = (MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4);
  }
  MD5Update(&s,intermediate,0x10);
  MD5Final(hmac,&s);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void FUN_000532a0(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int in_GS_OFFSET;
  byte bVar4;
  undefined4 local_8c [23];
  undefined1 local_30 [16];
  int local_20;
  
  bVar4 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  puVar2 = (undefined4 *)(param_1 + 0xb8);
  puVar3 = local_8c;
  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar3 = *puVar2;
    puVar2 = puVar2 + 1;
    puVar3 = puVar3 + 1;
  }
  FUN_00053190(local_30,local_8c);
  puVar2 = (undefined4 *)(param_1 + 0x5c);
  puVar3 = local_8c;
  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar3 = *puVar2;
    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;
    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;
  }
  FUN_00052960(local_8c,local_30,0x10);
  FUN_00053190(param_2,local_8c);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}


PUSH EBP
MOV ECX,0x17
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x8c
MOV EAX,dword ptr [ESP + 0xa4]
MOV EDX,dword ptr [ESP + 0xa0]
LEA EDI,[ESP + 0x10]
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],EAX
LEA ESI,[EDX + 0xb8]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x84],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x10],EDX
LEA EBX,[ESP + 0x18]
MOVSD.REP ES:EDI,ESI
PUSH EBX
MOV EDI,EBX
LEA EBP,[ESP + 0x78]
PUSH EBP
CALL 0x00053190
MOV EDX,dword ptr [ESP + 0x18]
ADD ESP,0xc
MOV ECX,0x17
LEA ESI,[EDX + 0x5c]
MOVSD.REP ES:EDI,ESI
PUSH 0x10
PUSH EBP
PUSH EBX
CALL 0x00052960
POP EAX
POP EDX
PUSH EBX
MOV EAX,dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x00053190
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x7c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00053336
ADD ESP,0x8c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0006f2a0
(translation_unit "void FUN_000532a0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  undefined4 local_8c [23];\n  undefined1 local_30 [16];\n  int local_20;\n  \n  bVar4 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(param_1 + 0xb8);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  FUN_00053190(local_30,local_8c);\n  puVar2 = (undefined4 *)(param_1 + 0x5c);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  FUN_00052960(local_8c,local_30,0x10);\n  FUN_00053190(param_2,local_8c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}\n\n" (function_definition "void FUN_000532a0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  undefined4 local_8c [23];\n  undefined1 local_30 [16];\n  int local_20;\n  \n  bVar4 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(param_1 + 0xb8);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  FUN_00053190(local_30,local_8c);\n  puVar2 = (undefined4 *)(param_1 + 0x5c);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  FUN_00052960(local_8c,local_30,0x10);\n  FUN_00053190(param_2,local_8c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" primitive_type (function_declarator "FUN_000532a0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  undefined4 local_8c [23];\n  undefined1 local_30 [16];\n  int local_20;\n  \n  bVar4 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(param_1 + 0xb8);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  FUN_00053190(local_30,local_8c);\n  puVar2 = (undefined4 *)(param_1 + 0x5c);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  FUN_00052960(local_8c,local_30,0x10);\n  FUN_00053190(param_2,local_8c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "undefined4 local_8c [23];" type_identifier (array_declarator "local_8c [23]" identifier [ number_literal ]) ;) (declaration "undefined1 local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "puVar2 = (undefined4 *)(param_1 + 0xb8);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0xb8)" identifier = (cast_expression "(undefined4 *)(param_1 + 0xb8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) ;) (expression_statement "puVar3 = local_8c;" (assignment_expression "puVar3 = local_8c" identifier = identifier) ;) (for_statement "for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x17" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }" { (expression_statement "*puVar3 = *puVar2;" (assignment_expression "*puVar3 = *puVar2" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "FUN_00053190(local_30,local_8c);" (call_expression "FUN_00053190(local_30,local_8c)" identifier (argument_list "(local_30,local_8c)" ( identifier , identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + 0x5c);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0x5c)" identifier = (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) ;) (expression_statement "puVar3 = local_8c;" (assignment_expression "puVar3 = local_8c" identifier = identifier) ;) (for_statement "for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x17" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" { (expression_statement "*puVar3 = *puVar2;" (assignment_expression "*puVar3 = *puVar2" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar2 + (uint)bVar4 * -2 + 1" (binary_expression "puVar2 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar4 * -2 + 1" (binary_expression "puVar3 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "FUN_00052960(local_8c,local_30,0x10);" (call_expression "FUN_00052960(local_8c,local_30,0x10)" identifier (argument_list "(local_8c,local_30,0x10)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_00053190(param_2,local_8c);" (call_expression "FUN_00053190(param_2,local_8c)" identifier (argument_list "(param_2,local_8c)" ( identifier , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid hmacmd5_genresult(void *handle,uchar *hmac)\n\n{\n  int iVar1;\n  int iVar2;\n  uint32 *puVar3;\n  MD5Context *pMVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  MD5Context s;\n  uchar intermediate [16];\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = (uint32 *)((int)handle + 0xb8);\n  pMVar4 = &s;\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + 1;\n    pMVar4 = (MD5Context *)((pMVar4->core).h + 1);\n  }\n  MD5Final(intermediate,&s);\n  puVar3 = (uint32 *)((int)handle + 0x5c);\n  pMVar4 = &s;\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n    pMVar4 = (MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4);\n  }\n  MD5Update(&s,intermediate,0x10);\n  MD5Final(hmac,&s);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void hmacmd5_genresult(void *handle,uchar *hmac)\n\n{\n  int iVar1;\n  int iVar2;\n  uint32 *puVar3;\n  MD5Context *pMVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  MD5Context s;\n  uchar intermediate [16];\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = (uint32 *)((int)handle + 0xb8);\n  pMVar4 = &s;\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + 1;\n    pMVar4 = (MD5Context *)((pMVar4->core).h + 1);\n  }\n  MD5Final(intermediate,&s);\n  puVar3 = (uint32 *)((int)handle + 0x5c);\n  pMVar4 = &s;\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n    pMVar4 = (MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4);\n  }\n  MD5Update(&s,intermediate,0x10);\n  MD5Final(hmac,&s);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "hmacmd5_genresult(void *handle,uchar *hmac)" identifier (parameter_list "(void *handle,uchar *hmac)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *hmac" type_identifier (pointer_declarator "*hmac" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint32 *puVar3;\n  MD5Context *pMVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  MD5Context s;\n  uchar intermediate [16];\n  \n  bVar5 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = (uint32 *)((int)handle + 0xb8);\n  pMVar4 = &s;\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + 1;\n    pMVar4 = (MD5Context *)((pMVar4->core).h + 1);\n  }\n  MD5Final(intermediate,&s);\n  puVar3 = (uint32 *)((int)handle + 0x5c);\n  pMVar4 = &s;\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n    pMVar4 = (MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4);\n  }\n  MD5Update(&s,intermediate,0x10);\n  MD5Final(hmac,&s);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint32 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "MD5Context *pMVar4;" type_identifier (pointer_declarator "*pMVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "MD5Context s;" type_identifier identifier ;) (declaration "uchar intermediate [16];" type_identifier (array_declarator "intermediate [16]" identifier [ number_literal ]) ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (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 "puVar3 = (uint32 *)((int)handle + 0xb8);" (assignment_expression "puVar3 = (uint32 *)((int)handle + 0xb8)" identifier = (cast_expression "(uint32 *)((int)handle + 0xb8)" ( (type_descriptor "uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0xb8)" ( (binary_expression "(int)handle + 0xb8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "pMVar4 = &s;" (assignment_expression "pMVar4 = &s" identifier = (pointer_expression "&s" & identifier)) ;) (for_statement "for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + 1;\n    pMVar4 = (MD5Context *)((pMVar4->core).h + 1);\n  }" for ( (assignment_expression "iVar2 = 0x17" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + 1;\n    pMVar4 = (MD5Context *)((pMVar4->core).h + 1);\n  }" { (expression_statement "(pMVar4->core).h[0] = *puVar3;" (assignment_expression "(pMVar4->core).h[0] = *puVar3" (subscript_expression "(pMVar4->core).h[0]" (field_expression "(pMVar4->core).h" (parenthesized_expression "(pMVar4->core)" ( (field_expression "pMVar4->core" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "pMVar4 = (MD5Context *)((pMVar4->core).h + 1);" (assignment_expression "pMVar4 = (MD5Context *)((pMVar4->core).h + 1)" identifier = (cast_expression "(MD5Context *)((pMVar4->core).h + 1)" ( (type_descriptor "MD5Context *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((pMVar4->core).h + 1)" ( (binary_expression "(pMVar4->core).h + 1" (field_expression "(pMVar4->core).h" (parenthesized_expression "(pMVar4->core)" ( (field_expression "pMVar4->core" identifier -> field_identifier) )) . field_identifier) + number_literal) )))) ;) })) (expression_statement "MD5Final(intermediate,&s);" (call_expression "MD5Final(intermediate,&s)" identifier (argument_list "(intermediate,&s)" ( identifier , (pointer_expression "&s" & identifier) ))) ;) (expression_statement "puVar3 = (uint32 *)((int)handle + 0x5c);" (assignment_expression "puVar3 = (uint32 *)((int)handle + 0x5c)" identifier = (cast_expression "(uint32 *)((int)handle + 0x5c)" ( (type_descriptor "uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x5c)" ( (binary_expression "(int)handle + 0x5c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "pMVar4 = &s;" (assignment_expression "pMVar4 = &s" identifier = (pointer_expression "&s" & identifier)) ;) (for_statement "for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n    pMVar4 = (MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4);\n  }" for ( (assignment_expression "iVar2 = 0x17" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    (pMVar4->core).h[0] = *puVar3;\n    puVar3 = puVar3 + (uint)bVar5 * -2 + 1;\n    pMVar4 = (MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4);\n  }" { (expression_statement "(pMVar4->core).h[0] = *puVar3;" (assignment_expression "(pMVar4->core).h[0] = *puVar3" (subscript_expression "(pMVar4->core).h[0]" (field_expression "(pMVar4->core).h" (parenthesized_expression "(pMVar4->core)" ( (field_expression "pMVar4->core" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar5 * -2 + 1" (binary_expression "puVar3 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pMVar4 = (MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4);" (assignment_expression "pMVar4 = (MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4)" identifier = (cast_expression "(MD5Context *)((int)pMVar4 + (uint)bVar5 * -8 + 4)" ( (type_descriptor "MD5Context *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pMVar4 + (uint)bVar5 * -8 + 4)" ( (binary_expression "(int)pMVar4 + (uint)bVar5 * -8 + 4" (binary_expression "(int)pMVar4 + (uint)bVar5 * -8" (cast_expression "(int)pMVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar5 * -8" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "MD5Update(&s,intermediate,0x10);" (call_expression "MD5Update(&s,intermediate,0x10)" identifier (argument_list "(&s,intermediate,0x10)" ( (pointer_expression "&s" & identifier) , identifier , number_literal ))) ;) (expression_statement "MD5Final(hmac,&s);" (call_expression "MD5Final(hmac,&s)" identifier (argument_list "(hmac,&s)" ( identifier , (pointer_expression "&s" & identifier) ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_000532a0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  undefined4 local_8c [23];\n  undefined1 local_30 [16];\n  int local_20;\n  \n  bVar4 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(param_1 + 0xb8);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  FUN_00053190(local_30,local_8c);\n  puVar2 = (undefined4 *)(param_1 + 0x5c);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  FUN_00052960(local_8c,local_30,0x10);\n  FUN_00053190(param_2,local_8c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}\n\n" (function_definition "void FUN_000532a0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  undefined4 local_8c [23];\n  undefined1 local_30 [16];\n  int local_20;\n  \n  bVar4 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(param_1 + 0xb8);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  FUN_00053190(local_30,local_8c);\n  puVar2 = (undefined4 *)(param_1 + 0x5c);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  FUN_00052960(local_8c,local_30,0x10);\n  FUN_00053190(param_2,local_8c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" primitive_type (function_declarator "FUN_000532a0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  undefined4 local_8c [23];\n  undefined1 local_30 [16];\n  int local_20;\n  \n  bVar4 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(param_1 + 0xb8);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  FUN_00053190(local_30,local_8c);\n  puVar2 = (undefined4 *)(param_1 + 0x5c);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  FUN_00052960(local_8c,local_30,0x10);\n  FUN_00053190(param_2,local_8c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "undefined4 local_8c [23];" type_identifier (array_declarator "local_8c [23]" identifier [ number_literal ]) ;) (declaration "undefined1 local_30 [16];" type_identifier (array_declarator "local_30 [16]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "puVar2 = (undefined4 *)(param_1 + 0xb8);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0xb8)" identifier = (cast_expression "(undefined4 *)(param_1 + 0xb8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) ;) (expression_statement "puVar3 = local_8c;" (assignment_expression "puVar3 = local_8c" identifier = identifier) ;) (for_statement "for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x17" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }" { (expression_statement "*puVar3 = *puVar2;" (assignment_expression "*puVar3 = *puVar2" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "FUN_00053190(local_30,local_8c);" (call_expression "FUN_00053190(local_30,local_8c)" identifier (argument_list "(local_30,local_8c)" ( identifier , identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + 0x5c);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0x5c)" identifier = (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) ;) (expression_statement "puVar3 = local_8c;" (assignment_expression "puVar3 = local_8c" identifier = identifier) ;) (for_statement "for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" for ( (assignment_expression "iVar1 = 0x17" identifier = number_literal) ; (binary_expression "iVar1 != 0" identifier != number_literal) ; (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" { (expression_statement "*puVar3 = *puVar2;" (assignment_expression "*puVar3 = *puVar2" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2 = puVar2 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar2 + (uint)bVar4 * -2 + 1" (binary_expression "puVar2 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar3 = puVar3 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar4 * -2 + 1" identifier = (binary_expression "puVar3 + (uint)bVar4 * -2 + 1" (binary_expression "puVar3 + (uint)bVar4 * -2" identifier + (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "FUN_00052960(local_8c,local_30,0x10);" (call_expression "FUN_00052960(local_8c,local_30,0x10)" identifier (argument_list "(local_8c,local_30,0x10)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_00053190(param_2,local_8c);" (call_expression "FUN_00053190(param_2,local_8c)" identifier (argument_list "(param_2,local_8c)" ( identifier , identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( 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_000532a0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  undefined4 local_8c [23];\n  undefined1 local_30 [16];\n  int local_20;\n  \n  bVar4 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(param_1 + 0xb8);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  FUN_00053190(local_30,local_8c);\n  puVar2 = (undefined4 *)(param_1 + 0x5c);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  FUN_00052960(local_8c,local_30,0x10);\n  FUN_00053190(param_2,local_8c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" (primitive_type "void") (function_declarator "FUN_000532a0(int param_1,undefined4 param_2)" (identifier "FUN_000532a0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  byte bVar4;\n  undefined4 local_8c [23];\n  undefined1 local_30 [16];\n  int local_20;\n  \n  bVar4 = 0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(param_1 + 0xb8);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  FUN_00053190(local_30,local_8c);\n  puVar2 = (undefined4 *)(param_1 + 0x5c);\n  puVar3 = local_8c;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }\n  FUN_00052960(local_8c,local_30,0x10);\n  FUN_00053190(param_2,local_8c);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "undefined4 local_8c [23];" (type_identifier "undefined4") (array_declarator "local_8c [23]" (identifier "local_8c") ([ "[") (number_literal "23") (] "]")) (; ";")) (declaration "undefined1 local_30 [16];" (type_identifier "undefined1") (array_declarator "local_30 [16]" (identifier "local_30") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" (identifier "bVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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 "puVar2 = (undefined4 *)(param_1 + 0xb8);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0xb8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + 0xb8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")")))) (; ";")) (expression_statement "puVar3 = local_8c;" (assignment_expression "puVar3 = local_8c" (identifier "puVar3") (= "=") (identifier "local_8c")) (; ";")) (for_statement "for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar1 = 0x17" (identifier "iVar1") (= "=") (number_literal "0x17")) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }" ({ "{") (expression_statement "*puVar3 = *puVar2;" (assignment_expression "*puVar3 = *puVar2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "FUN_00053190(local_30,local_8c);" (call_expression "FUN_00053190(local_30,local_8c)" (identifier "FUN_00053190") (argument_list "(local_30,local_8c)" (( "(") (identifier "local_30") (, ",") (identifier "local_8c") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(param_1 + 0x5c);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + 0x5c)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (; ";")) (expression_statement "puVar3 = local_8c;" (assignment_expression "puVar3 = local_8c" (identifier "puVar3") (= "=") (identifier "local_8c")) (; ";")) (for_statement "for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar1 = 0x17" (identifier "iVar1") (= "=") (number_literal "0x17")) (; ";") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;\n    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar3 = *puVar2;" (assignment_expression "*puVar3 = *puVar2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar2 = puVar2 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar2 = puVar2 + (uint)bVar4 * -2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + (uint)bVar4 * -2 + 1" (binary_expression "puVar2 + (uint)bVar4 * -2" (identifier "puVar2") (+ "+") (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = puVar3 + (uint)bVar4 * -2 + 1;" (assignment_expression "puVar3 = puVar3 + (uint)bVar4 * -2 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + (uint)bVar4 * -2 + 1" (binary_expression "puVar3 + (uint)bVar4 * -2" (identifier "puVar3") (+ "+") (binary_expression "(uint)bVar4 * -2" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "FUN_00052960(local_8c,local_30,0x10);" (call_expression "FUN_00052960(local_8c,local_30,0x10)" (identifier "FUN_00052960") (argument_list "(local_8c,local_30,0x10)" (( "(") (identifier "local_8c") (, ",") (identifier "local_30") (, ",") (number_literal "0x10") () ")"))) (; ";")) (expression_statement "FUN_00053190(param_2,local_8c);" (call_expression "FUN_00053190(param_2,local_8c)" (identifier "FUN_00053190") (argument_list "(param_2,local_8c)" (( "(") (identifier "param_2") (, ",") (identifier "local_8c") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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_0006f2a0();" (call_expression "FUN_0006f2a0()" (identifier "FUN_0006f2a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(void *handle,type_1 *hmac)

{
  int var_6;
  int var_2;
  type_2 *var_3;
  type_3 *pMVar4;
  int var_1;
  type_4 bVar5;
  type_3 s;
  type_1 intermediate [16];
  
  bVar5 = 0;
  var_6 = *(int *)(var_1 + 0x14);
  var_3 = (type_2 *)((int)handle + 0xb8);
  pMVar4 = &s;
  for (var_2 = 0x17; var_2 != 0; var_2 = var_2 + -1) {
    (pMVar4->core).h[0] = *var_3;
    var_3 = var_3 + 1;
    pMVar4 = (type_3 *)((pMVar4->core).h + 1);
  }
  var_4(intermediate,&s);
  var_3 = (type_2 *)((int)handle + 0x5c);
  pMVar4 = &s;
  for (var_2 = 0x17; var_2 != 0; var_2 = var_2 + -1) {
    (pMVar4->core).h[0] = *var_3;
    var_3 = var_3 + (type_5)bVar5 * -2 + 1;
    pMVar4 = (type_3 *)((int)pMVar4 + (type_5)bVar5 * -8 + 4);
  }
  var_5(&s,intermediate,0x10);
  var_4(hmac,&s);
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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: (number_literal))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int in_GS_OFFSET;
  byte bVar4;
  undefined4 local_8c [23];
  undefined1 local_30 [16];
  int local_20;
  
  bVar4 = 0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  puVar2 = (undefined4 *)(param_1 + 0xb8);
  puVar3 = local_8c;
  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar3 = *puVar2;
    puVar2 = puVar2 + 1;
    puVar3 = puVar3 + 1;
  }
  FUN_00053190(local_30,local_8c);
  puVar2 = (undefined4 *)(param_1 + 0x5c);
  puVar3 = local_8c;
  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar3 = *puVar2;
    puVar2 = puVar2 + (uint)bVar4 * -2 + 1;
    puVar3 = puVar3 + (uint)bVar4 * -2 + 1;
  }
  FUN_00052960(local_8c,local_30,0x10);
  FUN_00053190(param_2,local_8c);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}

