
/* WARNING: Unknown calling convention */

void hmacmd5_generate(void *handle,uchar *blk,int len,ulong seq)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int in_GS_OFFSET;
  uchar seqbuf [16];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  puVar3 = (undefined4 *)handle;
  puVar4 = (undefined4 *)((int)handle + 0xb8);
  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar4 = *puVar3;
    puVar3 = puVar3 + 1;
    puVar4 = puVar4 + 1;
  }
  seqbuf._0_4_ = seq >> 0x18 | (seq & 0xff0000) >> 8 | (seq & 0xff00) << 8 | seq << 0x18;
  MD5Update((MD5Context *)((int)handle + 0xb8),seqbuf,4);
  if (blk != (uchar *)0x0) {
    MD5Update((MD5Context *)((int)handle + 0xb8),blk,len);
  }
  hmacmd5_genresult(handle,blk + len);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void FUN_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int in_GS_OFFSET;
  uint local_30 [4];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  puVar2 = param_1;
  puVar3 = param_1 + 0x2e;
  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar3 = *puVar2;
    puVar2 = puVar2 + 1;
    puVar3 = puVar3 + 1;
  }
  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |
                param_4 << 0x18;
  MD5Update(param_1 + 0x2e,local_30,4);
  if (param_2 != 0) {
    MD5Update(param_1 + 0x2e,param_2,param_3);
  }
  FUN_000612c0(param_1,param_3 + param_2);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}


PUSH EBP
MOV ECX,0x17
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x40
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x30],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x58]
MOV EAX,dword ptr [ESP + 0x5c]
MOV EBX,dword ptr [ESP + 0x54]
ADD EAX,EBP
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x60]
LEA EDI,[EBX + 0xb8]
MOV ESI,EBX
MOVSD.REP ES:EDI,ESI
LEA ESI,[EBX + 0xb8]
BSWAP EAX
MOV dword ptr [ESP + 0x20],EAX
PUSH 0x4
LEA EAX,[ESP + 0x24]
PUSH EAX
PUSH ESI
CALL 0x00060980
ADD ESP,0x10
TEST EBP,EBP
JZ 0x000614d9
SUB ESP,0x4
PUSH dword ptr [ESP + 0x5c]
PUSH EBP
PUSH ESI
CALL 0x00060980
ADD ESP,0x10
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH EBX
CALL 0x000612c0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000614fe
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000a39d0
(translation_unit "void FUN_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  uint local_30 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = param_1;\n  puVar3 = param_1 + 0x2e;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;\n  MD5Update(param_1 + 0x2e,local_30,4);\n  if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }\n  FUN_000612c0(param_1,param_3 + param_2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}\n\n" (function_definition "void FUN_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  uint local_30 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = param_1;\n  puVar3 = param_1 + 0x2e;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;\n  MD5Update(param_1 + 0x2e,local_30,4);\n  if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }\n  FUN_000612c0(param_1,param_3 + param_2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" primitive_type (function_declarator "FUN_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3,uint param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  uint local_30 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = param_1;\n  puVar3 = param_1 + 0x2e;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;\n  MD5Update(param_1 + 0x2e,local_30,4);\n  if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }\n  FUN_000612c0(param_1,param_3 + param_2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\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 "uint local_30 [4];" type_identifier (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (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 = param_1;" (assignment_expression "puVar2 = param_1" identifier = identifier) ;) (expression_statement "puVar3 = param_1 + 0x2e;" (assignment_expression "puVar3 = param_1 + 0x2e" identifier = (binary_expression "param_1 + 0x2e" identifier + number_literal)) ;) (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 "local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;" (assignment_expression "local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" identifier >> number_literal) | (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" ( (binary_expression "param_4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" ( (binary_expression "param_4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_4 << 0x18" identifier << number_literal))) ;) (expression_statement "MD5Update(param_1 + 0x2e,local_30,4);" (call_expression "MD5Update(param_1 + 0x2e,local_30,4)" identifier (argument_list "(param_1 + 0x2e,local_30,4)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) , identifier , number_literal ))) ;) (if_statement "if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }" { (expression_statement "MD5Update(param_1 + 0x2e,param_2,param_3);" (call_expression "MD5Update(param_1 + 0x2e,param_2,param_3)" identifier (argument_list "(param_1 + 0x2e,param_2,param_3)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) , identifier , identifier ))) ;) })) (expression_statement "FUN_000612c0(param_1,param_3 + param_2);" (call_expression "FUN_000612c0(param_1,param_3 + param_2)" identifier (argument_list "(param_1,param_3 + param_2)" ( identifier , (binary_expression "param_3 + param_2" 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_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid hmacmd5_generate(void *handle,uchar *blk,int len,ulong seq)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  uchar seqbuf [16];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = (undefined4 *)handle;\n  puVar4 = (undefined4 *)((int)handle + 0xb8);\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar4 = *puVar3;\n    puVar3 = puVar3 + 1;\n    puVar4 = puVar4 + 1;\n  }\n  seqbuf._0_4_ = seq >> 0x18 | (seq & 0xff0000) >> 8 | (seq & 0xff00) << 8 | seq << 0x18;\n  MD5Update((MD5Context *)((int)handle + 0xb8),seqbuf,4);\n  if (blk != (uchar *)0x0) {\n    MD5Update((MD5Context *)((int)handle + 0xb8),blk,len);\n  }\n  hmacmd5_genresult(handle,blk + len);\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_generate(void *handle,uchar *blk,int len,ulong seq)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  uchar seqbuf [16];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = (undefined4 *)handle;\n  puVar4 = (undefined4 *)((int)handle + 0xb8);\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar4 = *puVar3;\n    puVar3 = puVar3 + 1;\n    puVar4 = puVar4 + 1;\n  }\n  seqbuf._0_4_ = seq >> 0x18 | (seq & 0xff0000) >> 8 | (seq & 0xff00) << 8 | seq << 0x18;\n  MD5Update((MD5Context *)((int)handle + 0xb8),seqbuf,4);\n  if (blk != (uchar *)0x0) {\n    MD5Update((MD5Context *)((int)handle + 0xb8),blk,len);\n  }\n  hmacmd5_genresult(handle,blk + len);\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_generate(void *handle,uchar *blk,int len,ulong seq)" identifier (parameter_list "(void *handle,uchar *blk,int len,ulong seq)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *blk" type_identifier (pointer_declarator "*blk" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "ulong seq" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  uchar seqbuf [16];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar3 = (undefined4 *)handle;\n  puVar4 = (undefined4 *)((int)handle + 0xb8);\n  for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar4 = *puVar3;\n    puVar3 = puVar3 + 1;\n    puVar4 = puVar4 + 1;\n  }\n  seqbuf._0_4_ = seq >> 0x18 | (seq & 0xff0000) >> 8 | (seq & 0xff00) << 8 | seq << 0x18;\n  MD5Update((MD5Context *)((int)handle + 0xb8),seqbuf,4);\n  if (blk != (uchar *)0x0) {\n    MD5Update((MD5Context *)((int)handle + 0xb8),blk,len);\n  }\n  hmacmd5_genresult(handle,blk + len);\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 "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar seqbuf [16];" type_identifier (array_declarator "seqbuf [16]" 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 = (undefined4 *)handle;" (assignment_expression "puVar3 = (undefined4 *)handle" identifier = (cast_expression "(undefined4 *)handle" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar4 = (undefined4 *)((int)handle + 0xb8);" (assignment_expression "puVar4 = (undefined4 *)((int)handle + 0xb8)" identifier = (cast_expression "(undefined4 *)((int)handle + 0xb8)" ( (type_descriptor "undefined4 *" 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) )))) ;) (for_statement "for (iVar2 = 0x17; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar4 = *puVar3;\n    puVar3 = puVar3 + 1;\n    puVar4 = puVar4 + 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    *puVar4 = *puVar3;\n    puVar3 = puVar3 + 1;\n    puVar4 = puVar4 + 1;\n  }" { (expression_statement "*puVar4 = *puVar3;" (assignment_expression "*puVar4 = *puVar3" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "seqbuf._0_4_ = seq >> 0x18 | (seq & 0xff0000) >> 8 | (seq & 0xff00) << 8 | seq << 0x18;" (assignment_expression "seqbuf._0_4_ = seq >> 0x18 | (seq & 0xff0000) >> 8 | (seq & 0xff00) << 8 | seq << 0x18" (field_expression "seqbuf._0_4_" identifier . field_identifier) = (binary_expression "seq >> 0x18 | (seq & 0xff0000) >> 8 | (seq & 0xff00) << 8 | seq << 0x18" (binary_expression "seq >> 0x18 | (seq & 0xff0000) >> 8 | (seq & 0xff00) << 8" (binary_expression "seq >> 0x18 | (seq & 0xff0000) >> 8" (binary_expression "seq >> 0x18" identifier >> number_literal) | (binary_expression "(seq & 0xff0000) >> 8" (parenthesized_expression "(seq & 0xff0000)" ( (binary_expression "seq & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(seq & 0xff00) << 8" (parenthesized_expression "(seq & 0xff00)" ( (binary_expression "seq & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "seq << 0x18" identifier << number_literal))) ;) (expression_statement "MD5Update((MD5Context *)((int)handle + 0xb8),seqbuf,4);" (call_expression "MD5Update((MD5Context *)((int)handle + 0xb8),seqbuf,4)" identifier (argument_list "((MD5Context *)((int)handle + 0xb8),seqbuf,4)" ( (cast_expression "(MD5Context *)((int)handle + 0xb8)" ( (type_descriptor "MD5Context *" 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) ))) , identifier , number_literal ))) ;) (if_statement "if (blk != (uchar *)0x0) {\n    MD5Update((MD5Context *)((int)handle + 0xb8),blk,len);\n  }" if (parenthesized_expression "(blk != (uchar *)0x0)" ( (binary_expression "blk != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    MD5Update((MD5Context *)((int)handle + 0xb8),blk,len);\n  }" { (expression_statement "MD5Update((MD5Context *)((int)handle + 0xb8),blk,len);" (call_expression "MD5Update((MD5Context *)((int)handle + 0xb8),blk,len)" identifier (argument_list "((MD5Context *)((int)handle + 0xb8),blk,len)" ( (cast_expression "(MD5Context *)((int)handle + 0xb8)" ( (type_descriptor "MD5Context *" 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) ))) , identifier , identifier ))) ;) })) (expression_statement "hmacmd5_genresult(handle,blk + len);" (call_expression "hmacmd5_genresult(handle,blk + len)" identifier (argument_list "(handle,blk + len)" ( identifier , (binary_expression "blk + len" identifier + 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_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  uint local_30 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = param_1;\n  puVar3 = param_1 + 0x2e;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;\n  MD5Update(param_1 + 0x2e,local_30,4);\n  if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }\n  FUN_000612c0(param_1,param_3 + param_2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a39d0();\n}\n\n" (function_definition "void FUN_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  uint local_30 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = param_1;\n  puVar3 = param_1 + 0x2e;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;\n  MD5Update(param_1 + 0x2e,local_30,4);\n  if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }\n  FUN_000612c0(param_1,param_3 + param_2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a39d0();\n}" primitive_type (function_declarator "FUN_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3,uint param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  uint local_30 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = param_1;\n  puVar3 = param_1 + 0x2e;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;\n  MD5Update(param_1 + 0x2e,local_30,4);\n  if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }\n  FUN_000612c0(param_1,param_3 + param_2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a39d0();\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 "uint local_30 [4];" type_identifier (array_declarator "local_30 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (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 = param_1;" (assignment_expression "puVar2 = param_1" identifier = identifier) ;) (expression_statement "puVar3 = param_1 + 0x2e;" (assignment_expression "puVar3 = param_1 + 0x2e" identifier = (binary_expression "param_1 + 0x2e" identifier + number_literal)) ;) (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 "local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;" (assignment_expression "local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18" (subscript_expression "local_30[0]" identifier [ number_literal ]) = (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" identifier >> number_literal) | (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" ( (binary_expression "param_4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" ( (binary_expression "param_4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_4 << 0x18" identifier << number_literal))) ;) (expression_statement "MD5Update(param_1 + 0x2e,local_30,4);" (call_expression "MD5Update(param_1 + 0x2e,local_30,4)" identifier (argument_list "(param_1 + 0x2e,local_30,4)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) , identifier , number_literal ))) ;) (if_statement "if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }" { (expression_statement "MD5Update(param_1 + 0x2e,param_2,param_3);" (call_expression "MD5Update(param_1 + 0x2e,param_2,param_3)" identifier (argument_list "(param_1 + 0x2e,param_2,param_3)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) , identifier , identifier ))) ;) })) (expression_statement "FUN_000612c0(param_1,param_3 + param_2);" (call_expression "FUN_000612c0(param_1,param_3 + param_2)" identifier (argument_list "(param_1,param_3 + param_2)" ( identifier , (binary_expression "param_3 + param_2" 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_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  uint local_30 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = param_1;\n  puVar3 = param_1 + 0x2e;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;\n  MD5Update(param_1 + 0x2e,local_30,4);\n  if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }\n  FUN_000612c0(param_1,param_3 + param_2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a39d0();\n}" (primitive_type "void") (function_declarator "FUN_00061470(undefined4 *param_1,int param_2,int param_3,uint param_4)" (identifier "FUN_00061470") (parameter_list "(undefined4 *param_1,int param_2,int param_3,uint param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  uint local_30 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = param_1;\n  puVar3 = param_1 + 0x2e;\n  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {\n    *puVar3 = *puVar2;\n    puVar2 = puVar2 + 1;\n    puVar3 = puVar3 + 1;\n  }\n  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;\n  MD5Update(param_1 + 0x2e,local_30,4);\n  if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }\n  FUN_000612c0(param_1,param_3 + param_2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a39d0();\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 "uint local_30 [4];" (type_identifier "uint") (array_declarator "local_30 [4]" (identifier "local_30") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (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 = param_1;" (assignment_expression "puVar2 = param_1" (identifier "puVar2") (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar3 = param_1 + 0x2e;" (assignment_expression "puVar3 = param_1 + 0x2e" (identifier "puVar3") (= "=") (binary_expression "param_1 + 0x2e" (identifier "param_1") (+ "+") (number_literal "0x2e"))) (; ";")) (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 "local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18;" (assignment_expression "local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18" (subscript_expression "local_30[0]" (identifier "local_30") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" (identifier "param_4") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" (( "(") (binary_expression "param_4 & 0xff0000" (identifier "param_4") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" (( "(") (binary_expression "param_4 & 0xff00" (identifier "param_4") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "param_4 << 0x18" (identifier "param_4") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "MD5Update(param_1 + 0x2e,local_30,4);" (call_expression "MD5Update(param_1 + 0x2e,local_30,4)" (identifier "MD5Update") (argument_list "(param_1 + 0x2e,local_30,4)" (( "(") (binary_expression "param_1 + 0x2e" (identifier "param_1") (+ "+") (number_literal "0x2e")) (, ",") (identifier "local_30") (, ",") (number_literal "4") () ")"))) (; ";")) (if_statement "if (param_2 != 0) {\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    MD5Update(param_1 + 0x2e,param_2,param_3);\n  }" ({ "{") (expression_statement "MD5Update(param_1 + 0x2e,param_2,param_3);" (call_expression "MD5Update(param_1 + 0x2e,param_2,param_3)" (identifier "MD5Update") (argument_list "(param_1 + 0x2e,param_2,param_3)" (( "(") (binary_expression "param_1 + 0x2e" (identifier "param_1") (+ "+") (number_literal "0x2e")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_000612c0(param_1,param_3 + param_2);" (call_expression "FUN_000612c0(param_1,param_3 + param_2)" (identifier "FUN_000612c0") (argument_list "(param_1,param_3 + param_2)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_3 + param_2" (identifier "param_3") (+ "+") (identifier "param_2")) () ")"))) (; ";")) (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_000a39d0();" (call_expression "FUN_000a39d0()" (identifier "FUN_000a39d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(void *handle,type_1 *var_7,int var_9,type_2 var_5)

{
  int var_10;
  int var_2;
  type_3 *var_3;
  type_3 *var_4;
  int var_1;
  type_1 seqbuf [16];
  
  var_10 = *(int *)(var_1 + 0x14);
  var_3 = (type_3 *)handle;
  var_4 = (type_3 *)((int)handle + 0xb8);
  for (var_2 = 0x17; var_2 != 0; var_2 = var_2 + -1) {
    *var_4 = *var_3;
    var_3 = var_3 + 1;
    var_4 = var_4 + 1;
  }
  seqbuf._0_4_ = var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18;
  var_6((type_4 *)((int)handle + 0xb8),seqbuf,4);
  if (var_7 != (type_1 *)0x0) {
    var_6((type_4 *)((int)handle + 0xb8),var_7,var_9);
  }
  var_8(handle,var_7 + var_9);
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

void MASKED(undefined4 *param_1,int param_2,int param_3,uint param_4)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int in_GS_OFFSET;
  uint local_30 [4];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  puVar2 = param_1;
  puVar3 = param_1 + 0x2e;
  for (iVar1 = 0x17; iVar1 != 0; iVar1 = iVar1 + -1) {
    *puVar3 = *puVar2;
    puVar2 = puVar2 + 1;
    puVar3 = puVar3 + 1;
  }
  local_30[0] = param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |
                param_4 << 0x18;
  MD5Update(param_1 + 0x2e,local_30,4);
  if (param_2 != 0) {
    MD5Update(param_1 + 0x2e,param_2,param_3);
  }
  FUN_000612c0(param_1,param_3 + param_2);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}

