
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int SHA256_Final(SHA256_State *s,uchar *digest)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  uint32 *puVar4;
  int iVar5;
  uint uVar6;
  SHA256_State *pSVar7;
  int in_GS_OFFSET;
  uchar c [64];
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  iVar5 = s->blkused;
  if (iVar5 < 0x38) {
    iVar5 = 0x38 - iVar5;
  }
  else {
    iVar5 = 0x78 - iVar5;
  }
  uVar3 = s->lenlo;
  uVar1 = s->lenhi * 8;
  uVar6 = uVar3 << 3;
  __memset_chk(c,0,iVar5,0x40);
  c[0] = 0x80;
  SHA256_Bytes(s,c,iVar5);
  c._0_4_ = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
            (uVar1 | uVar3 >> 0x1d) << 0x18;
  c._4_4_ = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar3 << 0x1b;
  SHA256_Bytes(s,c,8);
  pSVar7 = s;
  do {
    puVar4 = pSVar7->h;
    *digest = (uchar)(pSVar7->h[0] >> 0x18);
    digest[1] = (uchar)(pSVar7->h[0] >> 0x10);
    digest[2] = (uchar)(pSVar7->h[0] >> 8);
    digest[3] = (uchar)pSVar7->h[0];
    digest = digest + 4;
    pSVar7 = (SHA256_State *)(puVar4 + 1);
  } while ((SHA256_State *)(puVar4 + 1) != (SHA256_State *)s->block);
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_0005aca0(undefined4 *param_1,undefined1 *param_2)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  int in_GS_OFFSET;
  uint local_60;
  uint local_5c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5aca9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = param_1[0x18];
  if (iVar3 < 0x38) {
    iVar3 = 0x38 - iVar3;
  }
  else {
    iVar3 = 0x78 - iVar3;
  }
  uVar2 = param_1[0x1a];
  uVar1 = param_1[0x19] * 8;
  uVar4 = uVar2 << 3;
  __memset_chk(&local_60,0,iVar3,0x40);
  local_60 = CONCAT31(local_60._1_3_,0x80);
  FUN_0005a8b0(param_1,&local_60,iVar3);
  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
             (uVar1 | uVar2 >> 0x1d) << 0x18;
  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;
  FUN_0005a8b0(param_1,&local_60,8);
  puVar5 = param_1;
  do {
    puVar6 = puVar5 + 1;
    *param_2 = (char)((uint)*puVar5 >> 0x18);
    param_2[1] = (char)((uint)*puVar5 >> 0x10);
    param_2[2] = (char)((uint)*puVar5 >> 8);
    param_2[3] = (char)*puVar5;
    param_2 = param_2 + 4;
    puVar5 = puVar6;
  } while (puVar6 != param_1 + 8);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x4e0c7
SUB ESP,0x6c
MOV EAX,dword ptr [ESP + 0x84]
MOV ESI,dword ptr [ESP + 0x80]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x5c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESI + 0x60]
CMP EAX,0x37
JLE 0x0005ad98
MOV EDX,0x78
SUB EDX,EAX
MOV EBP,dword ptr [ESI + 0x68]
MOV EAX,dword ptr [ESI + 0x64]
PUSH 0x40
PUSH EDX
LEA EDI,[EAX*0x8 + 0x0]
MOV EAX,EBP
SHL EBP,0x3
SHR EAX,0x1d
BSWAP EBP
MOV dword ptr [ESP + 0x14],EDX
OR EDI,EAX
PUSH 0x0
BSWAP EDI
LEA ECX,[ESP + 0x28]
PUSH ECX
MOV dword ptr [ESP + 0x18],ECX
CALL 0x000146e0
MOV byte ptr [ESP + 0x2c],0x80
ADD ESP,0xc
MOV EDX,dword ptr [ESP + 0x10]
PUSH EDX
MOV ECX,dword ptr [ESP + 0x10]
PUSH ECX
MOV dword ptr [ESP + 0x14],ECX
PUSH ESI
CALL 0x0005a8b0
MOV dword ptr [ESP + 0x2c],EDI
MOV dword ptr [ESP + 0x30],EBP
ADD ESP,0xc
PUSH 0x8
MOV ECX,dword ptr [ESP + 0x10]
PUSH ECX
PUSH ESI
CALL 0x0005a8b0
MOV EAX,dword ptr [ESP + 0x14]
LEA ECX,[ESI + 0x20]
ADD ESP,0x10
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [ESI]
ADD ESI,0x4
ADD EAX,0x4
SHR EDX,0x18
MOV byte ptr [EAX + -0x4],DL
MOV EDX,dword ptr [ESI + -0x4]
SHR EDX,0x10
MOV byte ptr [EAX + -0x3],DL
MOV EDX,dword ptr [ESI + -0x4]
MOV byte ptr [EAX + -0x2],DH
MOV EDX,dword ptr [ESI + -0x4]
MOV byte ptr [EAX + -0x1],DL
CMP ESI,ECX
JNZ 0x0005ad58
MOV EAX,dword ptr [ESP + 0x5c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0005ada4
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,0x38
SUB EDX,EAX
JMP 0x0005ace3
CALL 0x0006f2a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0005aca0(undefined4 *param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  uint local_60;\n  uint local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5aca9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0x18];\n  if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }\n  uVar2 = param_1[0x1a];\n  uVar1 = param_1[0x19] * 8;\n  uVar4 = uVar2 << 3;\n  __memset_chk(&local_60,0,iVar3,0x40);\n  local_60 = CONCAT31(local_60._1_3_,0x80);\n  FUN_0005a8b0(param_1,&local_60,iVar3);\n  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;\n  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;\n  FUN_0005a8b0(param_1,&local_60,8);\n  puVar5 = param_1;\n  do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}\n\n" comment (function_definition "void FUN_0005aca0(undefined4 *param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  uint local_60;\n  uint local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5aca9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0x18];\n  if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }\n  uVar2 = param_1[0x1a];\n  uVar1 = param_1[0x19] * 8;\n  uVar4 = uVar2 << 3;\n  __memset_chk(&local_60,0,iVar3,0x40);\n  local_60 = CONCAT31(local_60._1_3_,0x80);\n  FUN_0005a8b0(param_1,&local_60,iVar3);\n  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;\n  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;\n  FUN_0005a8b0(param_1,&local_60,8);\n  puVar5 = param_1;\n  do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" primitive_type (function_declarator "FUN_0005aca0(undefined4 *param_1,undefined1 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined1 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  uint local_60;\n  uint local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5aca9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0x18];\n  if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }\n  uVar2 = param_1[0x1a];\n  uVar1 = param_1[0x19] * 8;\n  uVar4 = uVar2 << 3;\n  __memset_chk(&local_60,0,iVar3,0x40);\n  local_60 = CONCAT31(local_60._1_3_,0x80);\n  FUN_0005a8b0(param_1,&local_60,iVar3);\n  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;\n  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;\n  FUN_0005a8b0(param_1,&local_60,8);\n  puVar5 = param_1;\n  do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_60;" type_identifier identifier ;) (declaration "uint local_5c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5aca9;" (assignment_expression "uStack_14 = 0x5aca9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = param_1[0x18];" (assignment_expression "iVar3 = param_1[0x18]" identifier = (subscript_expression "param_1[0x18]" identifier [ number_literal ])) ;) (if_statement "if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }" if (parenthesized_expression "(iVar3 < 0x38)" ( (binary_expression "iVar3 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0x38 - iVar3;\n  }" { (expression_statement "iVar3 = 0x38 - iVar3;" (assignment_expression "iVar3 = 0x38 - iVar3" identifier = (binary_expression "0x38 - iVar3" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar3 = 0x78 - iVar3;\n  }" else (compound_statement "{\n    iVar3 = 0x78 - iVar3;\n  }" { (expression_statement "iVar3 = 0x78 - iVar3;" (assignment_expression "iVar3 = 0x78 - iVar3" identifier = (binary_expression "0x78 - iVar3" number_literal - identifier)) ;) }))) (expression_statement "uVar2 = param_1[0x1a];" (assignment_expression "uVar2 = param_1[0x1a]" identifier = (subscript_expression "param_1[0x1a]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_1[0x19] * 8;" (assignment_expression "uVar1 = param_1[0x19] * 8" identifier = (binary_expression "param_1[0x19] * 8" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) * number_literal)) ;) (expression_statement "uVar4 = uVar2 << 3;" (assignment_expression "uVar4 = uVar2 << 3" identifier = (binary_expression "uVar2 << 3" identifier << number_literal)) ;) (expression_statement "__memset_chk(&local_60,0,iVar3,0x40);" (call_expression "__memset_chk(&local_60,0,iVar3,0x40)" identifier (argument_list "(&local_60,0,iVar3,0x40)" ( (pointer_expression "&local_60" & identifier) , number_literal , identifier , number_literal ))) ;) (expression_statement "local_60 = CONCAT31(local_60._1_3_,0x80);" (assignment_expression "local_60 = CONCAT31(local_60._1_3_,0x80)" identifier = (call_expression "CONCAT31(local_60._1_3_,0x80)" identifier (argument_list "(local_60._1_3_,0x80)" ( (field_expression "local_60._1_3_" identifier . field_identifier) , number_literal )))) ;) (expression_statement "FUN_0005a8b0(param_1,&local_60,iVar3);" (call_expression "FUN_0005a8b0(param_1,&local_60,iVar3)" identifier (argument_list "(param_1,&local_60,iVar3)" ( identifier , (pointer_expression "&local_60" & identifier) , identifier ))) ;) (expression_statement "local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;" (assignment_expression "local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18" identifier = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar1 | uVar2 >> 0x1d) << 0x18" (parenthesized_expression "(uVar1 | uVar2 >> 0x1d)" ( (binary_expression "uVar1 | uVar2 >> 0x1d" identifier | (binary_expression "uVar2 >> 0x1d" identifier >> number_literal)) )) << number_literal))) ;) (expression_statement "local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;" (assignment_expression "local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b" identifier = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x1b" identifier << number_literal))) ;) (expression_statement "FUN_0005a8b0(param_1,&local_60,8);" (call_expression "FUN_0005a8b0(param_1,&local_60,8)" identifier (argument_list "(param_1,&local_60,8)" ( identifier , (pointer_expression "&local_60" & identifier) , number_literal ))) ;) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" identifier = identifier) ;) (do_statement "do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);" do (compound_statement "{\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  }" { (expression_statement "puVar6 = puVar5 + 1;" (assignment_expression "puVar6 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = (char)((uint)*puVar5 >> 0x18);" (assignment_expression "*param_2 = (char)((uint)*puVar5 >> 0x18)" (pointer_expression "*param_2" * identifier) = (cast_expression "(char)((uint)*puVar5 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)*puVar5 >> 0x18)" ( (binary_expression "(uint)*puVar5 >> 0x18" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier) >> number_literal) )))) ;) (expression_statement "param_2[1] = (char)((uint)*puVar5 >> 0x10);" (assignment_expression "param_2[1] = (char)((uint)*puVar5 >> 0x10)" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)*puVar5 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)*puVar5 >> 0x10)" ( (binary_expression "(uint)*puVar5 >> 0x10" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier) >> number_literal) )))) ;) (expression_statement "param_2[2] = (char)((uint)*puVar5 >> 8);" (assignment_expression "param_2[2] = (char)((uint)*puVar5 >> 8)" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)*puVar5 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)*puVar5 >> 8)" ( (binary_expression "(uint)*puVar5 >> 8" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier) >> number_literal) )))) ;) (expression_statement "param_2[3] = (char)*puVar5;" (assignment_expression "param_2[3] = (char)*puVar5" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (cast_expression "(char)*puVar5" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "param_2 = param_2 + 4;" (assignment_expression "param_2 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" identifier = identifier) ;) }) while (parenthesized_expression "(puVar6 != param_1 + 8)" ( (binary_expression "puVar6 != param_1 + 8" identifier != (binary_expression "param_1 + 8" identifier + number_literal)) )) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint SHA256_Final(SHA256_State *s,uchar *digest)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint32 *puVar4;\n  int iVar5;\n  uint uVar6;\n  SHA256_State *pSVar7;\n  int in_GS_OFFSET;\n  uchar c [64];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = s->blkused;\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  uVar3 = s->lenlo;\n  uVar1 = s->lenhi * 8;\n  uVar6 = uVar3 << 3;\n  __memset_chk(c,0,iVar5,0x40);\n  c[0] = 0x80;\n  SHA256_Bytes(s,c,iVar5);\n  c._0_4_ = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n            (uVar1 | uVar3 >> 0x1d) << 0x18;\n  c._4_4_ = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar3 << 0x1b;\n  SHA256_Bytes(s,c,8);\n  pSVar7 = s;\n  do {\n    puVar4 = pSVar7->h;\n    *digest = (uchar)(pSVar7->h[0] >> 0x18);\n    digest[1] = (uchar)(pSVar7->h[0] >> 0x10);\n    digest[2] = (uchar)(pSVar7->h[0] >> 8);\n    digest[3] = (uchar)pSVar7->h[0];\n    digest = digest + 4;\n    pSVar7 = (SHA256_State *)(puVar4 + 1);\n  } while ((SHA256_State *)(puVar4 + 1) != (SHA256_State *)s->block);\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int SHA256_Final(SHA256_State *s,uchar *digest)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint32 *puVar4;\n  int iVar5;\n  uint uVar6;\n  SHA256_State *pSVar7;\n  int in_GS_OFFSET;\n  uchar c [64];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = s->blkused;\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  uVar3 = s->lenlo;\n  uVar1 = s->lenhi * 8;\n  uVar6 = uVar3 << 3;\n  __memset_chk(c,0,iVar5,0x40);\n  c[0] = 0x80;\n  SHA256_Bytes(s,c,iVar5);\n  c._0_4_ = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n            (uVar1 | uVar3 >> 0x1d) << 0x18;\n  c._4_4_ = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar3 << 0x1b;\n  SHA256_Bytes(s,c,8);\n  pSVar7 = s;\n  do {\n    puVar4 = pSVar7->h;\n    *digest = (uchar)(pSVar7->h[0] >> 0x18);\n    digest[1] = (uchar)(pSVar7->h[0] >> 0x10);\n    digest[2] = (uchar)(pSVar7->h[0] >> 8);\n    digest[3] = (uchar)pSVar7->h[0];\n    digest = digest + 4;\n    pSVar7 = (SHA256_State *)(puVar4 + 1);\n  } while ((SHA256_State *)(puVar4 + 1) != (SHA256_State *)s->block);\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "SHA256_Final(SHA256_State *s,uchar *digest)" identifier (parameter_list "(SHA256_State *s,uchar *digest)" ( (parameter_declaration "SHA256_State *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "uchar *digest" type_identifier (pointer_declarator "*digest" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint32 *puVar4;\n  int iVar5;\n  uint uVar6;\n  SHA256_State *pSVar7;\n  int in_GS_OFFSET;\n  uchar c [64];\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar5 = s->blkused;\n  if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }\n  uVar3 = s->lenlo;\n  uVar1 = s->lenhi * 8;\n  uVar6 = uVar3 << 3;\n  __memset_chk(c,0,iVar5,0x40);\n  c[0] = 0x80;\n  SHA256_Bytes(s,c,iVar5);\n  c._0_4_ = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n            (uVar1 | uVar3 >> 0x1d) << 0x18;\n  c._4_4_ = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar3 << 0x1b;\n  SHA256_Bytes(s,c,8);\n  pSVar7 = s;\n  do {\n    puVar4 = pSVar7->h;\n    *digest = (uchar)(pSVar7->h[0] >> 0x18);\n    digest[1] = (uchar)(pSVar7->h[0] >> 0x10);\n    digest[2] = (uchar)(pSVar7->h[0] >> 8);\n    digest[3] = (uchar)pSVar7->h[0];\n    digest = digest + 4;\n    pSVar7 = (SHA256_State *)(puVar4 + 1);\n  } while ((SHA256_State *)(puVar4 + 1) != (SHA256_State *)s->block);\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint32 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "SHA256_State *pSVar7;" type_identifier (pointer_declarator "*pSVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar c [64];" type_identifier (array_declarator "c [64]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = s->blkused;" (assignment_expression "iVar5 = s->blkused" identifier = (field_expression "s->blkused" identifier -> field_identifier)) ;) (if_statement "if (iVar5 < 0x38) {\n    iVar5 = 0x38 - iVar5;\n  }\n  else {\n    iVar5 = 0x78 - iVar5;\n  }" if (parenthesized_expression "(iVar5 < 0x38)" ( (binary_expression "iVar5 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar5 = 0x38 - iVar5;\n  }" { (expression_statement "iVar5 = 0x38 - iVar5;" (assignment_expression "iVar5 = 0x38 - iVar5" identifier = (binary_expression "0x38 - iVar5" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar5 = 0x78 - iVar5;\n  }" else (compound_statement "{\n    iVar5 = 0x78 - iVar5;\n  }" { (expression_statement "iVar5 = 0x78 - iVar5;" (assignment_expression "iVar5 = 0x78 - iVar5" identifier = (binary_expression "0x78 - iVar5" number_literal - identifier)) ;) }))) (expression_statement "uVar3 = s->lenlo;" (assignment_expression "uVar3 = s->lenlo" identifier = (field_expression "s->lenlo" identifier -> field_identifier)) ;) (expression_statement "uVar1 = s->lenhi * 8;" (assignment_expression "uVar1 = s->lenhi * 8" identifier = (binary_expression "s->lenhi * 8" (field_expression "s->lenhi" identifier -> field_identifier) * number_literal)) ;) (expression_statement "uVar6 = uVar3 << 3;" (assignment_expression "uVar6 = uVar3 << 3" identifier = (binary_expression "uVar3 << 3" identifier << number_literal)) ;) (expression_statement "__memset_chk(c,0,iVar5,0x40);" (call_expression "__memset_chk(c,0,iVar5,0x40)" identifier (argument_list "(c,0,iVar5,0x40)" ( identifier , number_literal , identifier , number_literal ))) ;) (expression_statement "c[0] = 0x80;" (assignment_expression "c[0] = 0x80" (subscript_expression "c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "SHA256_Bytes(s,c,iVar5);" (call_expression "SHA256_Bytes(s,c,iVar5)" identifier (argument_list "(s,c,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "c._0_4_ = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n            (uVar1 | uVar3 >> 0x1d) << 0x18;" (assignment_expression "c._0_4_ = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n            (uVar1 | uVar3 >> 0x1d) << 0x18" (field_expression "c._0_4_" identifier . field_identifier) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n            (uVar1 | uVar3 >> 0x1d) << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar1 | uVar3 >> 0x1d) << 0x18" (parenthesized_expression "(uVar1 | uVar3 >> 0x1d)" ( (binary_expression "uVar1 | uVar3 >> 0x1d" identifier | (binary_expression "uVar3 >> 0x1d" identifier >> number_literal)) )) << number_literal))) ;) (expression_statement "c._4_4_ = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar3 << 0x1b;" (assignment_expression "c._4_4_ = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar3 << 0x1b" (field_expression "c._4_4_" identifier . field_identifier) = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar3 << 0x1b" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar3 << 0x1b" identifier << number_literal))) ;) (expression_statement "SHA256_Bytes(s,c,8);" (call_expression "SHA256_Bytes(s,c,8)" identifier (argument_list "(s,c,8)" ( identifier , identifier , number_literal ))) ;) (expression_statement "pSVar7 = s;" (assignment_expression "pSVar7 = s" identifier = identifier) ;) (do_statement "do {\n    puVar4 = pSVar7->h;\n    *digest = (uchar)(pSVar7->h[0] >> 0x18);\n    digest[1] = (uchar)(pSVar7->h[0] >> 0x10);\n    digest[2] = (uchar)(pSVar7->h[0] >> 8);\n    digest[3] = (uchar)pSVar7->h[0];\n    digest = digest + 4;\n    pSVar7 = (SHA256_State *)(puVar4 + 1);\n  } while ((SHA256_State *)(puVar4 + 1) != (SHA256_State *)s->block);" do (compound_statement "{\n    puVar4 = pSVar7->h;\n    *digest = (uchar)(pSVar7->h[0] >> 0x18);\n    digest[1] = (uchar)(pSVar7->h[0] >> 0x10);\n    digest[2] = (uchar)(pSVar7->h[0] >> 8);\n    digest[3] = (uchar)pSVar7->h[0];\n    digest = digest + 4;\n    pSVar7 = (SHA256_State *)(puVar4 + 1);\n  }" { (expression_statement "puVar4 = pSVar7->h;" (assignment_expression "puVar4 = pSVar7->h" identifier = (field_expression "pSVar7->h" identifier -> field_identifier)) ;) (expression_statement "*digest = (uchar)(pSVar7->h[0] >> 0x18);" (assignment_expression "*digest = (uchar)(pSVar7->h[0] >> 0x18)" (pointer_expression "*digest" * identifier) = (call_expression "(uchar)(pSVar7->h[0] >> 0x18)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(pSVar7->h[0] >> 0x18)" ( (binary_expression "pSVar7->h[0] >> 0x18" (subscript_expression "pSVar7->h[0]" (field_expression "pSVar7->h" identifier -> field_identifier) [ number_literal ]) >> number_literal) )))) ;) (expression_statement "digest[1] = (uchar)(pSVar7->h[0] >> 0x10);" (assignment_expression "digest[1] = (uchar)(pSVar7->h[0] >> 0x10)" (subscript_expression "digest[1]" identifier [ number_literal ]) = (call_expression "(uchar)(pSVar7->h[0] >> 0x10)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(pSVar7->h[0] >> 0x10)" ( (binary_expression "pSVar7->h[0] >> 0x10" (subscript_expression "pSVar7->h[0]" (field_expression "pSVar7->h" identifier -> field_identifier) [ number_literal ]) >> number_literal) )))) ;) (expression_statement "digest[2] = (uchar)(pSVar7->h[0] >> 8);" (assignment_expression "digest[2] = (uchar)(pSVar7->h[0] >> 8)" (subscript_expression "digest[2]" identifier [ number_literal ]) = (call_expression "(uchar)(pSVar7->h[0] >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(pSVar7->h[0] >> 8)" ( (binary_expression "pSVar7->h[0] >> 8" (subscript_expression "pSVar7->h[0]" (field_expression "pSVar7->h" identifier -> field_identifier) [ number_literal ]) >> number_literal) )))) ;) (expression_statement "digest[3] = (uchar)pSVar7->h[0];" (assignment_expression "digest[3] = (uchar)pSVar7->h[0]" (subscript_expression "digest[3]" identifier [ number_literal ]) = (cast_expression "(uchar)pSVar7->h[0]" ( (type_descriptor "uchar" type_identifier) ) (subscript_expression "pSVar7->h[0]" (field_expression "pSVar7->h" identifier -> field_identifier) [ number_literal ]))) ;) (expression_statement "digest = digest + 4;" (assignment_expression "digest = digest + 4" identifier = (binary_expression "digest + 4" identifier + number_literal)) ;) (expression_statement "pSVar7 = (SHA256_State *)(puVar4 + 1);" (assignment_expression "pSVar7 = (SHA256_State *)(puVar4 + 1)" identifier = (cast_expression "(SHA256_State *)(puVar4 + 1)" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 1)" ( (binary_expression "puVar4 + 1" identifier + number_literal) )))) ;) }) while (parenthesized_expression "((SHA256_State *)(puVar4 + 1) != (SHA256_State *)s->block)" ( (binary_expression "(SHA256_State *)(puVar4 + 1) != (SHA256_State *)s->block" (cast_expression "(SHA256_State *)(puVar4 + 1)" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 1)" ( (binary_expression "puVar4 + 1" identifier + number_literal) ))) != (cast_expression "(SHA256_State *)s->block" ( (type_descriptor "SHA256_State *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s->block" identifier -> field_identifier))) )) ;) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(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 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0005aca0(undefined4 *param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  uint local_60;\n  uint local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5aca9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0x18];\n  if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }\n  uVar2 = param_1[0x1a];\n  uVar1 = param_1[0x19] * 8;\n  uVar4 = uVar2 << 3;\n  __memset_chk(&local_60,0,iVar3,0x40);\n  local_60 = CONCAT31(local_60._1_3_,0x80);\n  FUN_0005a8b0(param_1,&local_60,iVar3);\n  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;\n  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;\n  FUN_0005a8b0(param_1,&local_60,8);\n  puVar5 = param_1;\n  do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}\n\n" (function_definition "void FUN_0005aca0(undefined4 *param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  uint local_60;\n  uint local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5aca9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0x18];\n  if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }\n  uVar2 = param_1[0x1a];\n  uVar1 = param_1[0x19] * 8;\n  uVar4 = uVar2 << 3;\n  __memset_chk(&local_60,0,iVar3,0x40);\n  local_60 = CONCAT31(local_60._1_3_,0x80);\n  FUN_0005a8b0(param_1,&local_60,iVar3);\n  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;\n  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;\n  FUN_0005a8b0(param_1,&local_60,8);\n  puVar5 = param_1;\n  do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" primitive_type (function_declarator "FUN_0005aca0(undefined4 *param_1,undefined1 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined1 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  uint local_60;\n  uint local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5aca9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0x18];\n  if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }\n  uVar2 = param_1[0x1a];\n  uVar1 = param_1[0x19] * 8;\n  uVar4 = uVar2 << 3;\n  __memset_chk(&local_60,0,iVar3,0x40);\n  local_60 = CONCAT31(local_60._1_3_,0x80);\n  FUN_0005a8b0(param_1,&local_60,iVar3);\n  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;\n  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;\n  FUN_0005a8b0(param_1,&local_60,8);\n  puVar5 = param_1;\n  do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_60;" type_identifier identifier ;) (declaration "uint local_5c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5aca9;" (assignment_expression "uStack_14 = 0x5aca9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = param_1[0x18];" (assignment_expression "iVar3 = param_1[0x18]" identifier = (subscript_expression "param_1[0x18]" identifier [ number_literal ])) ;) (if_statement "if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }" if (parenthesized_expression "(iVar3 < 0x38)" ( (binary_expression "iVar3 < 0x38" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0x38 - iVar3;\n  }" { (expression_statement "iVar3 = 0x38 - iVar3;" (assignment_expression "iVar3 = 0x38 - iVar3" identifier = (binary_expression "0x38 - iVar3" number_literal - identifier)) ;) }) (else_clause "else {\n    iVar3 = 0x78 - iVar3;\n  }" else (compound_statement "{\n    iVar3 = 0x78 - iVar3;\n  }" { (expression_statement "iVar3 = 0x78 - iVar3;" (assignment_expression "iVar3 = 0x78 - iVar3" identifier = (binary_expression "0x78 - iVar3" number_literal - identifier)) ;) }))) (expression_statement "uVar2 = param_1[0x1a];" (assignment_expression "uVar2 = param_1[0x1a]" identifier = (subscript_expression "param_1[0x1a]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_1[0x19] * 8;" (assignment_expression "uVar1 = param_1[0x19] * 8" identifier = (binary_expression "param_1[0x19] * 8" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) * number_literal)) ;) (expression_statement "uVar4 = uVar2 << 3;" (assignment_expression "uVar4 = uVar2 << 3" identifier = (binary_expression "uVar2 << 3" identifier << number_literal)) ;) (expression_statement "__memset_chk(&local_60,0,iVar3,0x40);" (call_expression "__memset_chk(&local_60,0,iVar3,0x40)" identifier (argument_list "(&local_60,0,iVar3,0x40)" ( (pointer_expression "&local_60" & identifier) , number_literal , identifier , number_literal ))) ;) (expression_statement "local_60 = CONCAT31(local_60._1_3_,0x80);" (assignment_expression "local_60 = CONCAT31(local_60._1_3_,0x80)" identifier = (call_expression "CONCAT31(local_60._1_3_,0x80)" identifier (argument_list "(local_60._1_3_,0x80)" ( (field_expression "local_60._1_3_" identifier . field_identifier) , number_literal )))) ;) (expression_statement "FUN_0005a8b0(param_1,&local_60,iVar3);" (call_expression "FUN_0005a8b0(param_1,&local_60,iVar3)" identifier (argument_list "(param_1,&local_60,iVar3)" ( identifier , (pointer_expression "&local_60" & identifier) , identifier ))) ;) (expression_statement "local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;" (assignment_expression "local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18" identifier = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar1 | uVar2 >> 0x1d) << 0x18" (parenthesized_expression "(uVar1 | uVar2 >> 0x1d)" ( (binary_expression "uVar1 | uVar2 >> 0x1d" identifier | (binary_expression "uVar2 >> 0x1d" identifier >> number_literal)) )) << number_literal))) ;) (expression_statement "local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;" (assignment_expression "local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b" identifier = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x1b" identifier << number_literal))) ;) (expression_statement "FUN_0005a8b0(param_1,&local_60,8);" (call_expression "FUN_0005a8b0(param_1,&local_60,8)" identifier (argument_list "(param_1,&local_60,8)" ( identifier , (pointer_expression "&local_60" & identifier) , number_literal ))) ;) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" identifier = identifier) ;) (do_statement "do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);" do (compound_statement "{\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  }" { (expression_statement "puVar6 = puVar5 + 1;" (assignment_expression "puVar6 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = (char)((uint)*puVar5 >> 0x18);" (assignment_expression "*param_2 = (char)((uint)*puVar5 >> 0x18)" (pointer_expression "*param_2" * identifier) = (cast_expression "(char)((uint)*puVar5 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)*puVar5 >> 0x18)" ( (binary_expression "(uint)*puVar5 >> 0x18" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier) >> number_literal) )))) ;) (expression_statement "param_2[1] = (char)((uint)*puVar5 >> 0x10);" (assignment_expression "param_2[1] = (char)((uint)*puVar5 >> 0x10)" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)*puVar5 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)*puVar5 >> 0x10)" ( (binary_expression "(uint)*puVar5 >> 0x10" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier) >> number_literal) )))) ;) (expression_statement "param_2[2] = (char)((uint)*puVar5 >> 8);" (assignment_expression "param_2[2] = (char)((uint)*puVar5 >> 8)" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)*puVar5 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)*puVar5 >> 8)" ( (binary_expression "(uint)*puVar5 >> 8" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier) >> number_literal) )))) ;) (expression_statement "param_2[3] = (char)*puVar5;" (assignment_expression "param_2[3] = (char)*puVar5" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (cast_expression "(char)*puVar5" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "param_2 = param_2 + 4;" (assignment_expression "param_2 = param_2 + 4" identifier = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" identifier = identifier) ;) }) while (parenthesized_expression "(puVar6 != param_1 + 8)" ( (binary_expression "puVar6 != param_1 + 8" identifier != (binary_expression "param_1 + 8" identifier + number_literal)) )) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (field_expression IDENT . field_identifier) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT | (binary_expression IDENT >> LIT)) )) << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + 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_0005aca0(undefined4 *param_1,undefined1 *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  uint local_60;\n  uint local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5aca9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0x18];\n  if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }\n  uVar2 = param_1[0x1a];\n  uVar1 = param_1[0x19] * 8;\n  uVar4 = uVar2 << 3;\n  __memset_chk(&local_60,0,iVar3,0x40);\n  local_60 = CONCAT31(local_60._1_3_,0x80);\n  FUN_0005a8b0(param_1,&local_60,iVar3);\n  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;\n  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;\n  FUN_0005a8b0(param_1,&local_60,8);\n  puVar5 = param_1;\n  do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" (primitive_type "void") (function_declarator "FUN_0005aca0(undefined4 *param_1,undefined1 *param_2)" (identifier "FUN_0005aca0") (parameter_list "(undefined4 *param_1,undefined1 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  uint local_60;\n  uint local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5aca9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = param_1[0x18];\n  if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }\n  uVar2 = param_1[0x1a];\n  uVar1 = param_1[0x19] * 8;\n  uVar4 = uVar2 << 3;\n  __memset_chk(&local_60,0,iVar3,0x40);\n  local_60 = CONCAT31(local_60._1_3_,0x80);\n  FUN_0005a8b0(param_1,&local_60,iVar3);\n  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;\n  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;\n  FUN_0005a8b0(param_1,&local_60,8);\n  puVar5 = param_1;\n  do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f2a0();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_60;" (type_identifier "uint") (identifier "local_60") (; ";")) (declaration "uint local_5c;" (type_identifier "uint") (identifier "local_5c") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5aca9;" (assignment_expression "uStack_14 = 0x5aca9" (identifier "uStack_14") (= "=") (number_literal "0x5aca9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar3 = param_1[0x18];" (assignment_expression "iVar3 = param_1[0x18]" (identifier "iVar3") (= "=") (subscript_expression "param_1[0x18]" (identifier "param_1") ([ "[") (number_literal "0x18") (] "]"))) (; ";")) (if_statement "if (iVar3 < 0x38) {\n    iVar3 = 0x38 - iVar3;\n  }\n  else {\n    iVar3 = 0x78 - iVar3;\n  }" (if "if") (parenthesized_expression "(iVar3 < 0x38)" (( "(") (binary_expression "iVar3 < 0x38" (identifier "iVar3") (< "<") (number_literal "0x38")) () ")")) (compound_statement "{\n    iVar3 = 0x38 - iVar3;\n  }" ({ "{") (expression_statement "iVar3 = 0x38 - iVar3;" (assignment_expression "iVar3 = 0x38 - iVar3" (identifier "iVar3") (= "=") (binary_expression "0x38 - iVar3" (number_literal "0x38") (- "-") (identifier "iVar3"))) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = 0x78 - iVar3;\n  }" (else "else") (compound_statement "{\n    iVar3 = 0x78 - iVar3;\n  }" ({ "{") (expression_statement "iVar3 = 0x78 - iVar3;" (assignment_expression "iVar3 = 0x78 - iVar3" (identifier "iVar3") (= "=") (binary_expression "0x78 - iVar3" (number_literal "0x78") (- "-") (identifier "iVar3"))) (; ";")) (} "}")))) (expression_statement "uVar2 = param_1[0x1a];" (assignment_expression "uVar2 = param_1[0x1a]" (identifier "uVar2") (= "=") (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]"))) (; ";")) (expression_statement "uVar1 = param_1[0x19] * 8;" (assignment_expression "uVar1 = param_1[0x19] * 8" (identifier "uVar1") (= "=") (binary_expression "param_1[0x19] * 8" (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")) (* "*") (number_literal "8"))) (; ";")) (expression_statement "uVar4 = uVar2 << 3;" (assignment_expression "uVar4 = uVar2 << 3" (identifier "uVar4") (= "=") (binary_expression "uVar2 << 3" (identifier "uVar2") (<< "<<") (number_literal "3"))) (; ";")) (expression_statement "__memset_chk(&local_60,0,iVar3,0x40);" (call_expression "__memset_chk(&local_60,0,iVar3,0x40)" (identifier "__memset_chk") (argument_list "(&local_60,0,iVar3,0x40)" (( "(") (pointer_expression "&local_60" (& "&") (identifier "local_60")) (, ",") (number_literal "0") (, ",") (identifier "iVar3") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "local_60 = CONCAT31(local_60._1_3_,0x80);" (assignment_expression "local_60 = CONCAT31(local_60._1_3_,0x80)" (identifier "local_60") (= "=") (call_expression "CONCAT31(local_60._1_3_,0x80)" (identifier "CONCAT31") (argument_list "(local_60._1_3_,0x80)" (( "(") (field_expression "local_60._1_3_" (identifier "local_60") (. ".") (field_identifier "_1_3_")) (, ",") (number_literal "0x80") () ")")))) (; ";")) (expression_statement "FUN_0005a8b0(param_1,&local_60,iVar3);" (call_expression "FUN_0005a8b0(param_1,&local_60,iVar3)" (identifier "FUN_0005a8b0") (argument_list "(param_1,&local_60,iVar3)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_60" (& "&") (identifier "local_60")) (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18;" (assignment_expression "local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18" (identifier "local_60") (= "=") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n             (uVar1 | uVar2 >> 0x1d) << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "(uVar1 | uVar2 >> 0x1d) << 0x18" (parenthesized_expression "(uVar1 | uVar2 >> 0x1d)" (( "(") (binary_expression "uVar1 | uVar2 >> 0x1d" (identifier "uVar1") (| "|") (binary_expression "uVar2 >> 0x1d" (identifier "uVar2") (>> ">>") (number_literal "0x1d"))) () ")")) (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;" (assignment_expression "local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b" (identifier "local_5c") (= "=") (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" (identifier "uVar4") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" (( "(") (binary_expression "uVar4 & 0xff0000" (identifier "uVar4") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" (( "(") (binary_expression "uVar4 & 0xff00" (identifier "uVar4") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar2 << 0x1b" (identifier "uVar2") (<< "<<") (number_literal "0x1b")))) (; ";")) (expression_statement "FUN_0005a8b0(param_1,&local_60,8);" (call_expression "FUN_0005a8b0(param_1,&local_60,8)" (identifier "FUN_0005a8b0") (argument_list "(param_1,&local_60,8)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_60" (& "&") (identifier "local_60")) (, ",") (number_literal "8") () ")"))) (; ";")) (expression_statement "puVar5 = param_1;" (assignment_expression "puVar5 = param_1" (identifier "puVar5") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  } while (puVar6 != param_1 + 8);" (do "do") (compound_statement "{\n    puVar6 = puVar5 + 1;\n    *param_2 = (char)((uint)*puVar5 >> 0x18);\n    param_2[1] = (char)((uint)*puVar5 >> 0x10);\n    param_2[2] = (char)((uint)*puVar5 >> 8);\n    param_2[3] = (char)*puVar5;\n    param_2 = param_2 + 4;\n    puVar5 = puVar6;\n  }" ({ "{") (expression_statement "puVar6 = puVar5 + 1;" (assignment_expression "puVar6 = puVar5 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_2 = (char)((uint)*puVar5 >> 0x18);" (assignment_expression "*param_2 = (char)((uint)*puVar5 >> 0x18)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(char)((uint)*puVar5 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)*puVar5 >> 0x18)" (( "(") (binary_expression "(uint)*puVar5 >> 0x18" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "puVar5")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "param_2[1] = (char)((uint)*puVar5 >> 0x10);" (assignment_expression "param_2[1] = (char)((uint)*puVar5 >> 0x10)" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)((uint)*puVar5 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)*puVar5 >> 0x10)" (( "(") (binary_expression "(uint)*puVar5 >> 0x10" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "puVar5")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "param_2[2] = (char)((uint)*puVar5 >> 8);" (assignment_expression "param_2[2] = (char)((uint)*puVar5 >> 8)" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)((uint)*puVar5 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)*puVar5 >> 8)" (( "(") (binary_expression "(uint)*puVar5 >> 8" (binary_expression "(uint)*puVar5" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "puVar5")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "param_2[3] = (char)*puVar5;" (assignment_expression "param_2[3] = (char)*puVar5" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(char)*puVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (expression_statement "param_2 = param_2 + 4;" (assignment_expression "param_2 = param_2 + 4" (identifier "param_2") (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" (identifier "puVar5") (= "=") (identifier "puVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar6 != param_1 + 8)" (( "(") (binary_expression "puVar6 != param_1 + 8" (identifier "puVar6") (!= "!=") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8"))) () ")")) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" (identifier "FUN_0006f2a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int function_1(type_1 *s,type_2 *var_8)

{
  type_3 var_6;
  int var_10;
  type_3 var_3;
  type_4 *var_9;
  int var_2;
  type_3 var_7;
  type_1 *pSVar7;
  int var_1;
  type_2 c [64];
  
  var_10 = *(int *)(var_1 + 0x14);
  var_2 = s->blkused;
  if (var_2 < 0x38) {
    var_2 = 0x38 - var_2;
  }
  else {
    var_2 = 0x78 - var_2;
  }
  var_3 = s->lenlo;
  var_6 = s->lenhi * 8;
  var_7 = var_3 << 3;
  var_4(c,0,var_2,0x40);
  c[0] = 0x80;
  var_5(s,c,var_2);
  c._0_4_ = var_6 >> 0x18 | (var_6 & 0xff0000) >> 8 | (var_6 & 0xff00) << 8 |
            (var_6 | var_3 >> 0x1d) << 0x18;
  c._4_4_ = var_7 >> 0x18 | (var_7 & 0xff0000) >> 8 | (var_7 & 0xff00) << 8 | var_3 << 0x1b;
  var_5(s,c,8);
  pSVar7 = s;
  do {
    var_9 = pSVar7->h;
    *var_8 = (type_2)(pSVar7->h[0] >> 0x18);
    var_8[1] = (type_2)(pSVar7->h[0] >> 0x10);
    var_8[2] = (type_2)(pSVar7->h[0] >> 8);
    var_8[3] = (type_2)pSVar7->h[0];
    var_8 = var_8 + 4;
    pSVar7 = (type_1 *)(var_9 + 1);
  } while ((type_1 *)(var_9 + 1) != (type_1 *)s->block);
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 *param_1,undefined1 *param_2)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  int in_GS_OFFSET;
  uint local_60;
  uint local_5c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5aca9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = param_1[0x18];
  if (iVar3 < 0x38) {
    iVar3 = 0x38 - iVar3;
  }
  else {
    iVar3 = 0x78 - iVar3;
  }
  uVar2 = param_1[0x1a];
  uVar1 = param_1[0x19] * 8;
  uVar4 = uVar2 << 3;
  __memset_chk(&local_60,0,iVar3,0x40);
  local_60 = CONCAT31(local_60._1_3_,0x80);
  FUN_0005a8b0(param_1,&local_60,iVar3);
  local_60 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
             (uVar1 | uVar2 >> 0x1d) << 0x18;
  local_5c = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar2 << 0x1b;
  FUN_0005a8b0(param_1,&local_60,8);
  puVar5 = param_1;
  do {
    puVar6 = puVar5 + 1;
    *param_2 = (char)((uint)*puVar5 >> 0x18);
    param_2[1] = (char)((uint)*puVar5 >> 0x10);
    param_2[2] = (char)((uint)*puVar5 >> 8);
    param_2[3] = (char)*puVar5;
    param_2 = param_2 + 4;
    puVar5 = puVar6;
  } while (puVar6 != param_1 + 8);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}

