
void MD5Final(void *ctx_,uchar *digest)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int unaff_EDI;
  undefined4 *puVar5;
  int in_GS_OFFSET;
  byte bVar6;
  uint8_t count [8];
  
  bVar6 = 0;
  __x86_get_pc_thunk_di();
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((ctx_ != (void *)0x0) && (digest != (uchar *)0x0)) {
    count._4_4_ = *(undefined4 *)((int)ctx_ + 0x14);
    count._0_4_ = *(uint *)((int)ctx_ + 0x10);
    uVar2 = (uint)count._0_4_ >> 3 & 0x3f;
    uVar4 = 0x40 - uVar2;
    if (uVar4 < 9) {
      uVar4 = 0x80 - uVar2;
    }
    MD5Update(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8);
    MD5Update(ctx_,count,8);
    iVar3 = 0;
    do {
      digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);
      digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);
      digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);
      digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);
      iVar3 = iVar3 + 1;
    } while (iVar3 != 4);
    *(undefined4 *)ctx_ = 0;
    puVar5 = (undefined4 *)((int)ctx_ + 4U & 0xfffffffc);
    *(undefined4 *)((int)ctx_ + 0x54) = 0;
    uVar4 = (uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2;
    for (; uVar4 != 0; uVar4 = uVar4 - 1) {
      *puVar5 = 0;
      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void FUN_00026710(undefined4 *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  int in_GS_OFFSET;
  byte bVar5;
  
  bVar5 = 0;
  FUN_00018924();
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {
    FUN_00026530();
    FUN_00026530();
    iVar2 = 0;
    do {
      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);
      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);
      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);
      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];
      iVar2 = iVar2 + 1;
    } while (iVar2 != 4);
    *param_1 = 0;
    param_1[0x15] = 0;
    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);
    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;
        uVar3 != 0; uVar3 = uVar3 - 1) {
      *puVar4 = 0;
      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00028540();
}


PUSH EDI
CALL 0x00018924
ADD EDI,0xd6ca
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EBX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x24]
TEST EBX,EBX
JZ 0x000267d6
TEST ESI,ESI
JZ 0x000267d6
MOV EDX,dword ptr [EBX + 0x14]
MOV EAX,dword ptr [EBX + 0x10]
MOV ECX,0x40
MOV dword ptr [ESP + 0x4],EAX
SHRD EAX,EDX,0x3
AND EAX,0x3f
MOV dword ptr [ESP + 0x8],EDX
MOV EDX,0x80
SUB ECX,EAX
SUB EDX,EAX
MOV EAX,EBX
CMP ECX,0x9
CMOVC ECX,EDX
LEA EDX,[EDI + 0x240]
SUB ECX,0x8
CALL 0x00026530
MOV EAX,EBX
LEA EDX,[ESP + 0x4]
MOV ECX,0x8
CALL 0x00026530
XOR EAX,EAX
MOVZX EDX,byte ptr [EBX + EAX*0x4 + 0x3]
MOV byte ptr [ESI + EAX*0x4 + 0x3],DL
MOVZX EDX,word ptr [EBX + EAX*0x4 + 0x2]
MOV byte ptr [ESI + EAX*0x4 + 0x2],DL
MOV EDX,dword ptr [EBX + EAX*0x4]
MOV byte ptr [ESI + EAX*0x4 + 0x1],DH
MOV EDX,dword ptr [EBX + EAX*0x4]
MOV byte ptr [ESI + EAX*0x4],DL
ADD EAX,0x1
CMP EAX,0x4
JNZ 0x00026790
LEA EDI,[EBX + 0x4]
MOV dword ptr [EBX],0x0
XOR EAX,EAX
AND EDI,0xfffffffc
MOV dword ptr [EBX + 0x54],0x0
SUB EBX,EDI
LEA ECX,[EBX + 0x58]
SHR ECX,0x2
STOSD.REP ES:EDI
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000267ea
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
CALL 0x00028540
(translation_unit "void FUN_00026710(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  \n  bVar5 = 0;\n  FUN_00018924();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00028540();\n}\n\n" (function_definition "void FUN_00026710(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  \n  bVar5 = 0;\n  FUN_00018924();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00028540();\n}" primitive_type (function_declarator "FUN_00026710(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  \n  bVar5 = 0;\n  FUN_00018924();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00028540();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "FUN_00018924();" (call_expression "FUN_00018924()" identifier (argument_list "()" ( ))) ;) (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) ))))) ;) (if_statement "if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }" if (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (param_2 != 0))" ( (binary_expression "(param_1 != (undefined4 *)0x0) && (param_2 != 0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }" { (expression_statement "FUN_00026530();" (call_expression "FUN_00026530()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00026530();" (call_expression "FUN_00026530()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);" do (compound_statement "{\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    }" { (expression_statement "*(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);" (assignment_expression "*(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" (pointer_expression "*(undefined1 *)(param_2 + 3 + iVar2 * 4)" * (cast_expression "(undefined1 *)(param_2 + 3 + iVar2 * 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3 + iVar2 * 4)" ( (binary_expression "param_2 + 3 + iVar2 * 4" (binary_expression "param_2 + 3" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" * (cast_expression "(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar2 * 4 + 3)" ( (binary_expression "(int)param_1 + iVar2 * 4 + 3" (binary_expression "(int)param_1 + iVar2 * 4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "*(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);" (assignment_expression "*(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" (pointer_expression "*(char *)(param_2 + 2 + iVar2 * 4)" * (cast_expression "(char *)(param_2 + 2 + iVar2 * 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2 + iVar2 * 4)" ( (binary_expression "param_2 + 2 + iVar2 * 4" (binary_expression "param_2 + 2" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (cast_expression "(char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" * (cast_expression "(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar2 * 4 + 2)" ( (binary_expression "(int)param_1 + iVar2 * 4 + 2" (binary_expression "(int)param_1 + iVar2 * 4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) + number_literal) )))))) ;) (expression_statement "*(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);" (assignment_expression "*(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8)" (pointer_expression "*(char *)(param_2 + 1 + iVar2 * 4)" * (cast_expression "(char *)(param_2 + 1 + iVar2 * 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1 + iVar2 * 4)" ( (binary_expression "param_2 + 1 + iVar2 * 4" (binary_expression "param_2 + 1" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (cast_expression "(char)((uint)param_1[iVar2] >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)param_1[iVar2] >> 8)" ( (binary_expression "(uint)param_1[iVar2] >> 8" (cast_expression "(uint)param_1[iVar2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[iVar2]" identifier [ identifier ])) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];" (assignment_expression "*(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2]" (pointer_expression "*(char *)(param_2 + iVar2 * 4)" * (cast_expression "(char *)(param_2 + iVar2 * 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar2 * 4)" ( (binary_expression "param_2 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (cast_expression "(char)param_1[iVar2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[iVar2]" identifier [ identifier ]))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 4)" ( (binary_expression "iVar2 != 4" identifier != number_literal) )) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[0x15] = 0;" (assignment_expression "param_1[0x15] = 0" (subscript_expression "param_1[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }" for ( (assignment_expression "uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)))" ( (binary_expression "(int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))" ( (binary_expression "0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_1 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) })) (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 "FUN_00028540();" (call_expression "FUN_00028540()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void MD5Final(void *ctx_,uchar *digest)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int unaff_EDI;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  uint8_t count [8];\n  \n  bVar6 = 0;\n  __x86_get_pc_thunk_di();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((ctx_ != (void *)0x0) && (digest != (uchar *)0x0)) {\n    count._4_4_ = *(undefined4 *)((int)ctx_ + 0x14);\n    count._0_4_ = *(uint *)((int)ctx_ + 0x10);\n    uVar2 = (uint)count._0_4_ >> 3 & 0x3f;\n    uVar4 = 0x40 - uVar2;\n    if (uVar4 < 9) {\n      uVar4 = 0x80 - uVar2;\n    }\n    MD5Update(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8);\n    MD5Update(ctx_,count,8);\n    iVar3 = 0;\n    do {\n      digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);\n      digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);\n      digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);\n      digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 4);\n    *(undefined4 *)ctx_ = 0;\n    puVar5 = (undefined4 *)((int)ctx_ + 4U & 0xfffffffc);\n    *(undefined4 *)((int)ctx_ + 0x54) = 0;\n    uVar4 = (uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2;\n    for (; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n  }\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" (function_definition "void MD5Final(void *ctx_,uchar *digest)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int unaff_EDI;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  uint8_t count [8];\n  \n  bVar6 = 0;\n  __x86_get_pc_thunk_di();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((ctx_ != (void *)0x0) && (digest != (uchar *)0x0)) {\n    count._4_4_ = *(undefined4 *)((int)ctx_ + 0x14);\n    count._0_4_ = *(uint *)((int)ctx_ + 0x10);\n    uVar2 = (uint)count._0_4_ >> 3 & 0x3f;\n    uVar4 = 0x40 - uVar2;\n    if (uVar4 < 9) {\n      uVar4 = 0x80 - uVar2;\n    }\n    MD5Update(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8);\n    MD5Update(ctx_,count,8);\n    iVar3 = 0;\n    do {\n      digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);\n      digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);\n      digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);\n      digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 4);\n    *(undefined4 *)ctx_ = 0;\n    puVar5 = (undefined4 *)((int)ctx_ + 4U & 0xfffffffc);\n    *(undefined4 *)((int)ctx_ + 0x54) = 0;\n    uVar4 = (uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2;\n    for (; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n  }\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 "MD5Final(void *ctx_,uchar *digest)" identifier (parameter_list "(void *ctx_,uchar *digest)" ( (parameter_declaration "void *ctx_" primitive_type (pointer_declarator "*ctx_" * identifier)) , (parameter_declaration "uchar *digest" type_identifier (pointer_declarator "*digest" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int unaff_EDI;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  uint8_t count [8];\n  \n  bVar6 = 0;\n  __x86_get_pc_thunk_di();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((ctx_ != (void *)0x0) && (digest != (uchar *)0x0)) {\n    count._4_4_ = *(undefined4 *)((int)ctx_ + 0x14);\n    count._0_4_ = *(uint *)((int)ctx_ + 0x10);\n    uVar2 = (uint)count._0_4_ >> 3 & 0x3f;\n    uVar4 = 0x40 - uVar2;\n    if (uVar4 < 9) {\n      uVar4 = 0x80 - uVar2;\n    }\n    MD5Update(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8);\n    MD5Update(ctx_,count,8);\n    iVar3 = 0;\n    do {\n      digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);\n      digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);\n      digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);\n      digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 4);\n    *(undefined4 *)ctx_ = 0;\n    puVar5 = (undefined4 *)((int)ctx_ + 4U & 0xfffffffc);\n    *(undefined4 *)((int)ctx_ + 0x54) = 0;\n    uVar4 = (uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2;\n    for (; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n  }\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 "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "uint8_t count [8];" primitive_type (array_declarator "count [8]" identifier [ number_literal ]) ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (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) ))))) ;) (if_statement "if ((ctx_ != (void *)0x0) && (digest != (uchar *)0x0)) {\n    count._4_4_ = *(undefined4 *)((int)ctx_ + 0x14);\n    count._0_4_ = *(uint *)((int)ctx_ + 0x10);\n    uVar2 = (uint)count._0_4_ >> 3 & 0x3f;\n    uVar4 = 0x40 - uVar2;\n    if (uVar4 < 9) {\n      uVar4 = 0x80 - uVar2;\n    }\n    MD5Update(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8);\n    MD5Update(ctx_,count,8);\n    iVar3 = 0;\n    do {\n      digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);\n      digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);\n      digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);\n      digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 4);\n    *(undefined4 *)ctx_ = 0;\n    puVar5 = (undefined4 *)((int)ctx_ + 4U & 0xfffffffc);\n    *(undefined4 *)((int)ctx_ + 0x54) = 0;\n    uVar4 = (uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2;\n    for (; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n  }" if (parenthesized_expression "((ctx_ != (void *)0x0) && (digest != (uchar *)0x0))" ( (binary_expression "(ctx_ != (void *)0x0) && (digest != (uchar *)0x0)" (parenthesized_expression "(ctx_ != (void *)0x0)" ( (binary_expression "ctx_ != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(digest != (uchar *)0x0)" ( (binary_expression "digest != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    count._4_4_ = *(undefined4 *)((int)ctx_ + 0x14);\n    count._0_4_ = *(uint *)((int)ctx_ + 0x10);\n    uVar2 = (uint)count._0_4_ >> 3 & 0x3f;\n    uVar4 = 0x40 - uVar2;\n    if (uVar4 < 9) {\n      uVar4 = 0x80 - uVar2;\n    }\n    MD5Update(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8);\n    MD5Update(ctx_,count,8);\n    iVar3 = 0;\n    do {\n      digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);\n      digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);\n      digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);\n      digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 4);\n    *(undefined4 *)ctx_ = 0;\n    puVar5 = (undefined4 *)((int)ctx_ + 4U & 0xfffffffc);\n    *(undefined4 *)((int)ctx_ + 0x54) = 0;\n    uVar4 = (uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2;\n    for (; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n  }" { (expression_statement "count._4_4_ = *(undefined4 *)((int)ctx_ + 0x14);" (assignment_expression "count._4_4_ = *(undefined4 *)((int)ctx_ + 0x14)" (field_expression "count._4_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)((int)ctx_ + 0x14)" * (cast_expression "(undefined4 *)((int)ctx_ + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x14)" ( (binary_expression "(int)ctx_ + 0x14" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "count._0_4_ = *(uint *)((int)ctx_ + 0x10);" (assignment_expression "count._0_4_ = *(uint *)((int)ctx_ + 0x10)" (field_expression "count._0_4_" identifier . field_identifier) = (pointer_expression "*(uint *)((int)ctx_ + 0x10)" * (cast_expression "(uint *)((int)ctx_ + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x10)" ( (binary_expression "(int)ctx_ + 0x10" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)count._0_4_ >> 3 & 0x3f;" (assignment_expression "uVar2 = (uint)count._0_4_ >> 3 & 0x3f" identifier = (binary_expression "(uint)count._0_4_ >> 3 & 0x3f" (binary_expression "(uint)count._0_4_ >> 3" (cast_expression "(uint)count._0_4_" ( (type_descriptor "uint" type_identifier) ) (field_expression "count._0_4_" identifier . field_identifier)) >> number_literal) & number_literal)) ;) (expression_statement "uVar4 = 0x40 - uVar2;" (assignment_expression "uVar4 = 0x40 - uVar2" identifier = (binary_expression "0x40 - uVar2" number_literal - identifier)) ;) (if_statement "if (uVar4 < 9) {\n      uVar4 = 0x80 - uVar2;\n    }" if (parenthesized_expression "(uVar4 < 9)" ( (binary_expression "uVar4 < 9" identifier < number_literal) )) (compound_statement "{\n      uVar4 = 0x80 - uVar2;\n    }" { (expression_statement "uVar4 = 0x80 - uVar2;" (assignment_expression "uVar4 = 0x80 - uVar2" identifier = (binary_expression "0x80 - uVar2" number_literal - identifier)) ;) })) (expression_statement "MD5Update(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8);" (call_expression "MD5Update(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8)" identifier (argument_list "(ctx_,(uint8_t *)(unaff_EDI + 0xd90a),uVar4 - 8)" ( identifier , (cast_expression "(uint8_t *)(unaff_EDI + 0xd90a)" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xd90a)" ( (binary_expression "unaff_EDI + 0xd90a" identifier + number_literal) ))) , (binary_expression "uVar4 - 8" identifier - number_literal) ))) ;) (expression_statement "MD5Update(ctx_,count,8);" (call_expression "MD5Update(ctx_,count,8)" identifier (argument_list "(ctx_,count,8)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);\n      digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);\n      digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);\n      digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);\n      iVar3 = iVar3 + 1;\n    } while (iVar3 != 4);" do (compound_statement "{\n      digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);\n      digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);\n      digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);\n      digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3);" (assignment_expression "digest[iVar3 * 4 + 3] = *(uchar *)((int)ctx_ + iVar3 * 4 + 3)" (subscript_expression "digest[iVar3 * 4 + 3]" identifier [ (binary_expression "iVar3 * 4 + 3" (binary_expression "iVar3 * 4" identifier * number_literal) + number_literal) ]) = (pointer_expression "*(uchar *)((int)ctx_ + iVar3 * 4 + 3)" * (cast_expression "(uchar *)((int)ctx_ + iVar3 * 4 + 3)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + iVar3 * 4 + 3)" ( (binary_expression "(int)ctx_ + iVar3 * 4 + 3" (binary_expression "(int)ctx_ + iVar3 * 4" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 4" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2);" (assignment_expression "digest[iVar3 * 4 + 2] = (uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2)" (subscript_expression "digest[iVar3 * 4 + 2]" identifier [ (binary_expression "iVar3 * 4 + 2" (binary_expression "iVar3 * 4" identifier * number_literal) + number_literal) ]) = (binary_expression "(uchar)*(undefined2 *)((int)ctx_ + iVar3 * 4 + 2)" (parenthesized_expression "(uchar)" ( identifier )) * (cast_expression "(undefined2 *)((int)ctx_ + iVar3 * 4 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + iVar3 * 4 + 2)" ( (binary_expression "(int)ctx_ + iVar3 * 4 + 2" (binary_expression "(int)ctx_ + iVar3 * 4" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 4" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8);" (assignment_expression "digest[iVar3 * 4 + 1] = (uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8)" (subscript_expression "digest[iVar3 * 4 + 1]" identifier [ (binary_expression "iVar3 * 4 + 1" (binary_expression "iVar3 * 4" identifier * number_literal) + number_literal) ]) = (call_expression "(uchar)((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8)" ( (binary_expression "(uint)*(undefined4 *)((int)ctx_ + iVar3 * 4) >> 8" (binary_expression "(uint)*(undefined4 *)((int)ctx_ + iVar3 * 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(undefined4 *)((int)ctx_ + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + iVar3 * 4)" ( (binary_expression "(int)ctx_ + iVar3 * 4" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) >> number_literal) )))) ;) (expression_statement "digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4);" (assignment_expression "digest[iVar3 * 4] = (uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4)" (subscript_expression "digest[iVar3 * 4]" identifier [ (binary_expression "iVar3 * 4" identifier * number_literal) ]) = (binary_expression "(uchar)*(undefined4 *)((int)ctx_ + iVar3 * 4)" (parenthesized_expression "(uchar)" ( identifier )) * (cast_expression "(undefined4 *)((int)ctx_ + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + iVar3 * 4)" ( (binary_expression "(int)ctx_ + iVar3 * 4" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 4)" ( (binary_expression "iVar3 != 4" identifier != number_literal) )) ;) (expression_statement "*(undefined4 *)ctx_ = 0;" (assignment_expression "*(undefined4 *)ctx_ = 0" (pointer_expression "*(undefined4 *)ctx_" * (cast_expression "(undefined4 *)ctx_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)((int)ctx_ + 4U & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((int)ctx_ + 4U & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((int)ctx_ + 4U & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 4U & 0xfffffffc)" ( (binary_expression "(int)ctx_ + 4U & 0xfffffffc" (binary_expression "(int)ctx_ + 4U" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal) )))) ;) (expression_statement "*(undefined4 *)((int)ctx_ + 0x54) = 0;" (assignment_expression "*(undefined4 *)((int)ctx_ + 0x54) = 0" (pointer_expression "*(undefined4 *)((int)ctx_ + 0x54)" * (cast_expression "(undefined4 *)((int)ctx_ + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx_ + 0x54)" ( (binary_expression "(int)ctx_ + 0x54" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar4 = (uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2;" (assignment_expression "uVar4 = (uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2" identifier = (binary_expression "(uint)((int)ctx_ + (0x58 - (int)puVar5)) >> 2" (call_expression "(uint)((int)ctx_ + (0x58 - (int)puVar5))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)ctx_ + (0x58 - (int)puVar5))" ( (binary_expression "(int)ctx_ + (0x58 - (int)puVar5)" (cast_expression "(int)ctx_" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x58 - (int)puVar5)" ( (binary_expression "0x58 - (int)puVar5" number_literal - (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" for ( ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) })) (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_00026710(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  \n  bVar5 = 0;\n  FUN_00018924();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00028540();\n}\n\n" (function_definition "void FUN_00026710(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  \n  bVar5 = 0;\n  FUN_00018924();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00028540();\n}" primitive_type (function_declarator "FUN_00026710(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  \n  bVar5 = 0;\n  FUN_00018924();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00028540();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "FUN_00018924();" (call_expression "FUN_00018924()" identifier (argument_list "()" ( ))) ;) (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) ))))) ;) (if_statement "if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }" if (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (param_2 != 0))" ( (binary_expression "(param_1 != (undefined4 *)0x0) && (param_2 != 0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }" { (expression_statement "FUN_00026530();" (call_expression "FUN_00026530()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00026530();" (call_expression "FUN_00026530()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);" do (compound_statement "{\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    }" { (expression_statement "*(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);" (assignment_expression "*(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" (pointer_expression "*(undefined1 *)(param_2 + 3 + iVar2 * 4)" * (cast_expression "(undefined1 *)(param_2 + 3 + iVar2 * 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3 + iVar2 * 4)" ( (binary_expression "param_2 + 3 + iVar2 * 4" (binary_expression "param_2 + 3" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (pointer_expression "*(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" * (cast_expression "(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar2 * 4 + 3)" ( (binary_expression "(int)param_1 + iVar2 * 4 + 3" (binary_expression "(int)param_1 + iVar2 * 4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "*(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);" (assignment_expression "*(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" (pointer_expression "*(char *)(param_2 + 2 + iVar2 * 4)" * (cast_expression "(char *)(param_2 + 2 + iVar2 * 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2 + iVar2 * 4)" ( (binary_expression "param_2 + 2 + iVar2 * 4" (binary_expression "param_2 + 2" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (cast_expression "(char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" * (cast_expression "(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar2 * 4 + 2)" ( (binary_expression "(int)param_1 + iVar2 * 4 + 2" (binary_expression "(int)param_1 + iVar2 * 4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) + number_literal) )))))) ;) (expression_statement "*(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);" (assignment_expression "*(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8)" (pointer_expression "*(char *)(param_2 + 1 + iVar2 * 4)" * (cast_expression "(char *)(param_2 + 1 + iVar2 * 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1 + iVar2 * 4)" ( (binary_expression "param_2 + 1 + iVar2 * 4" (binary_expression "param_2 + 1" identifier + number_literal) + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (cast_expression "(char)((uint)param_1[iVar2] >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)param_1[iVar2] >> 8)" ( (binary_expression "(uint)param_1[iVar2] >> 8" (cast_expression "(uint)param_1[iVar2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[iVar2]" identifier [ identifier ])) >> number_literal) )))) ;) (expression_statement "*(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];" (assignment_expression "*(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2]" (pointer_expression "*(char *)(param_2 + iVar2 * 4)" * (cast_expression "(char *)(param_2 + iVar2 * 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar2 * 4)" ( (binary_expression "param_2 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = (cast_expression "(char)param_1[iVar2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[iVar2]" identifier [ identifier ]))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 4)" ( (binary_expression "iVar2 != 4" identifier != number_literal) )) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[0x15] = 0;" (assignment_expression "param_1[0x15] = 0" (subscript_expression "param_1[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }" for ( (assignment_expression "uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)))" ( (binary_expression "(int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))" ( (binary_expression "0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(param_1 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) })) (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 ;) })) (expression_statement "FUN_00028540();" (call_expression "FUN_00028540()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ])) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) })) (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_00026710(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  \n  bVar5 = 0;\n  FUN_00018924();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00028540();\n}" (primitive_type "void") (function_declarator "FUN_00026710(undefined4 *param_1,int param_2)" (identifier "FUN_00026710") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int in_GS_OFFSET;\n  byte bVar5;\n  \n  bVar5 = 0;\n  FUN_00018924();\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00028540();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00018924();" (call_expression "FUN_00018924()" (identifier "FUN_00018924") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }" (if "if") (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (param_2 != 0))" (( "(") (binary_expression "(param_1 != (undefined4 *)0x0) && (param_2 != 0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00026530();\n    FUN_00026530();\n    iVar2 = 0;\n    do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);\n    *param_1 = 0;\n    param_1[0x15] = 0;\n    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);\n    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }\n  }" ({ "{") (expression_statement "FUN_00026530();" (call_expression "FUN_00026530()" (identifier "FUN_00026530") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00026530();" (call_expression "FUN_00026530()" (identifier "FUN_00026530") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 4);" (do "do") (compound_statement "{\n      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);\n      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);\n      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);\n      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];\n      iVar2 = iVar2 + 1;\n    }" ({ "{") (expression_statement "*(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);" (assignment_expression "*(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" (pointer_expression "*(undefined1 *)(param_2 + 3 + iVar2 * 4)" (* "*") (cast_expression "(undefined1 *)(param_2 + 3 + iVar2 * 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 3 + iVar2 * 4)" (( "(") (binary_expression "param_2 + 3 + iVar2 * 4" (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (pointer_expression "*(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + iVar2 * 4 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar2 * 4 + 3)" (( "(") (binary_expression "(int)param_1 + iVar2 * 4 + 3" (binary_expression "(int)param_1 + iVar2 * 4" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "*(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);" (assignment_expression "*(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" (pointer_expression "*(char *)(param_2 + 2 + iVar2 * 4)" (* "*") (cast_expression "(char *)(param_2 + 2 + iVar2 * 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 2 + iVar2 * 4)" (( "(") (binary_expression "param_2 + 2 + iVar2 * 4" (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (cast_expression "(char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" (* "*") (cast_expression "(undefined2 *)((int)param_1 + iVar2 * 4 + 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar2 * 4 + 2)" (( "(") (binary_expression "(int)param_1 + iVar2 * 4 + 2" (binary_expression "(int)param_1 + iVar2 * 4" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) (+ "+") (number_literal "2")) () ")")))))) (; ";")) (expression_statement "*(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);" (assignment_expression "*(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8)" (pointer_expression "*(char *)(param_2 + 1 + iVar2 * 4)" (* "*") (cast_expression "(char *)(param_2 + 1 + iVar2 * 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1 + iVar2 * 4)" (( "(") (binary_expression "param_2 + 1 + iVar2 * 4" (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (cast_expression "(char)((uint)param_1[iVar2] >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)param_1[iVar2] >> 8)" (( "(") (binary_expression "(uint)param_1[iVar2] >> 8" (cast_expression "(uint)param_1[iVar2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[iVar2]" (identifier "param_1") ([ "[") (identifier "iVar2") (] "]"))) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];" (assignment_expression "*(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2]" (pointer_expression "*(char *)(param_2 + iVar2 * 4)" (* "*") (cast_expression "(char *)(param_2 + iVar2 * 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar2 * 4)" (( "(") (binary_expression "param_2 + iVar2 * 4" (identifier "param_2") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (cast_expression "(char)param_1[iVar2]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[iVar2]" (identifier "param_1") ([ "[") (identifier "iVar2") (] "]")))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 4)" (( "(") (binary_expression "iVar2 != 4" (identifier "iVar2") (!= "!=") (number_literal "4")) () ")")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x15] = 0;" (assignment_expression "param_1[0x15] = 0" (subscript_expression "param_1[0x15]" (identifier "param_1") ([ "[") (number_literal "0x15") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)((uint)(param_1 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" (identifier "uVar3") (= "=") (binary_expression "(uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)))" (( "(") (binary_expression "(int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (parenthesized_expression "(0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc)" (number_literal "0x58") (- "-") (cast_expression "(int)((uint)(param_1 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(param_1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(param_1 + 1) & 0xfffffffc" (call_expression "(uint)(param_1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar4 = 0;\n      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" (identifier "puVar4") (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (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_00028540();" (call_expression "FUN_00028540()" (identifier "FUN_00028540") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

void function_1(void *var_3,type_1 *var_4)

{
  int var_11;
  type_2 var_5;
  int var_9;
  type_2 var_6;
  int var_8;
  type_3 *var_10;
  int var_2;
  type_4 bVar6;
  uint8_t count [8];
  
  bVar6 = 0;
  var_1();
  var_11 = *(int *)(var_2 + 0x14);
  if ((var_3 != (void *)0x0) && (var_4 != (type_1 *)0x0)) {
    count._4_4_ = *(type_3 *)((int)var_3 + 0x14);
    count._0_4_ = *(type_2 *)((int)var_3 + 0x10);
    var_5 = (type_2)count._0_4_ >> 3 & 0x3f;
    var_6 = 0x40 - var_5;
    if (var_6 < 9) {
      var_6 = 0x80 - var_5;
    }
    var_7(var_3,(uint8_t *)(var_8 + 0xd90a),var_6 - 8);
    var_7(var_3,count,8);
    var_9 = 0;
    do {
      var_4[var_9 * 4 + 3] = *(type_1 *)((int)var_3 + var_9 * 4 + 3);
      var_4[var_9 * 4 + 2] = (type_1)*(type_5 *)((int)var_3 + var_9 * 4 + 2);
      var_4[var_9 * 4 + 1] = (type_1)((type_2)*(type_3 *)((int)var_3 + var_9 * 4) >> 8);
      var_4[var_9 * 4] = (type_1)*(type_3 *)((int)var_3 + var_9 * 4);
      var_9 = var_9 + 1;
    } while (var_9 != 4);
    *(type_3 *)var_3 = 0;
    var_10 = (type_3 *)((int)var_3 + 4U & 0xfffffffc);
    *(type_3 *)((int)var_3 + 0x54) = 0;
    var_6 = (type_2)((int)var_3 + (0x58 - (int)var_10)) >> 2;
    for (; var_6 != 0; var_6 = var_6 - 1) {
      *var_10 = 0;
      var_10 = var_10 + (type_2)bVar6 * -2 + 1;
    }
  }
  if (var_11 == *(int *)(var_2 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (identifier))) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) (for_statement initializer: (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))))))) 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: (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)))))))) (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 iVar1;
  int iVar2;
  uint uVar3;
  undefined4 *puVar4;
  int in_GS_OFFSET;
  byte bVar5;
  
  bVar5 = 0;
  FUN_00018924();
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_1 != (undefined4 *)0x0) && (param_2 != 0)) {
    FUN_00026530();
    FUN_00026530();
    iVar2 = 0;
    do {
      *(undefined1 *)(param_2 + 3 + iVar2 * 4) = *(undefined1 *)((int)param_1 + iVar2 * 4 + 3);
      *(char *)(param_2 + 2 + iVar2 * 4) = (char)*(undefined2 *)((int)param_1 + iVar2 * 4 + 2);
      *(char *)(param_2 + 1 + iVar2 * 4) = (char)((uint)param_1[iVar2] >> 8);
      *(char *)(param_2 + iVar2 * 4) = (char)param_1[iVar2];
      iVar2 = iVar2 + 1;
    } while (iVar2 != 4);
    *param_1 = 0;
    param_1[0x15] = 0;
    puVar4 = (undefined4 *)((uint)(param_1 + 1) & 0xfffffffc);
    for (uVar3 = (uint)((int)param_1 + (0x58 - (int)((uint)(param_1 + 1) & 0xfffffffc))) >> 2;
        uVar3 != 0; uVar3 = uVar3 - 1) {
      *puVar4 = 0;
      puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00028540();
}

