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

void __regparm3 sha_mpint(SHA_State *s,Bignum b)

{
  int iVar1;
  int iVar2;
  int iVar3;
  uint i;
  int in_GS_OFFSET;
  uchar lenbuf [4];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = bignum_bitcount((Bignum_conflict)b);
  iVar3 = iVar2 + 0xf;
  if (-1 < iVar2 + 8) {
    iVar3 = iVar2 + 8;
  }
  i = iVar3 >> 3;
  lenbuf = (uchar  [4])(i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18);
  SHA_Bytes(s,lenbuf,4);
  if (-1 < iVar2) {
    do {
      i = i - 1;
      iVar3 = bignum_byte((Bignum_conflict)b,i);
      lenbuf[0] = (uchar)iVar3;
      SHA_Bytes(s,lenbuf,1);
    } while (0 < (int)i);
  }
  smemclr(lenbuf,4);
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



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

void __regparm3 FUN_0004c170(undefined4 param_1,undefined4 param_2)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  int in_GS_OFFSET;
  uint local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4c17b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00045f60(param_2);
  iVar3 = iVar2 + 0xf;
  if (-1 < iVar2 + 8) {
    iVar3 = iVar2 + 8;
  }
  uVar4 = iVar3 >> 3;
  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
  FUN_0005d030(param_1,&local_24,4);
  if (-1 < iVar2) {
    do {
      uVar4 = uVar4 - 1;
      uVar1 = FUN_00046050(param_2,uVar4);
      local_24 = CONCAT31(local_24._1_3_,uVar1);
      FUN_0005d030(param_1,&local_24,1);
    } while (0 < (int)uVar4);
  }
  FUN_0001b320(&local_24,4);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006f430();
  }
  return;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x5dc15
SUB ESP,0x38
MOV dword ptr [ESP + 0x14],EAX
MOV EDX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x28],EDX
XOR EDX,EDX
PUSH EBP
CALL 0x00045f60
ADD ESP,0xc
MOV ECX,EAX
LEA EDX,[EAX + 0xf]
ADD ECX,0x8
CMOVNS EDX,ECX
MOV dword ptr [ESP + 0x10],EAX
SAR EDX,0x3
MOV ECX,EDX
MOV EDI,EDX
BSWAP ECX
MOV dword ptr [ESP + 0x1c],ECX
SUB EDI,0x1
PUSH 0x4
LEA ESI,[ESP + 0x20]
PUSH ESI
PUSH dword ptr [ESP + 0x14]
CALL 0x0005d030
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNS 0x0004c1e2
JMP 0x0004c209
MOV EDI,EAX
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x00046050
MOV byte ptr [ESP + 0x28],AL
ADD ESP,0xc
PUSH 0x1
PUSH ESI
PUSH dword ptr [ESP + 0x14]
CALL 0x0005d030
LEA EAX,[EDI + -0x1]
ADD ESP,0x10
TEST EDI,EDI
JG 0x0004c1e0
SUB ESP,0x8
PUSH 0x4
PUSH ESI
CALL 0x0001b320
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0004c22c
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0004c170(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c17b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045f60(param_2);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  uVar4 = iVar3 >> 3;\n  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  FUN_0005d030(param_1,&local_24,4);\n  if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }\n  FUN_0001b320(&local_24,4);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0004c170(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c17b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045f60(param_2);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  uVar4 = iVar3 >> 3;\n  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  FUN_0005d030(param_1,&local_24,4);\n  if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }\n  FUN_0001b320(&local_24,4);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004c170(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c17b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045f60(param_2);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  uVar4 = iVar3 >> 3;\n  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  FUN_0005d030(param_1,&local_24,4);\n  if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }\n  FUN_0001b320(&local_24,4);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4c17b;" (assignment_expression "uStack_14 = 0x4c17b" 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 "iVar2 = FUN_00045f60(param_2);" (assignment_expression "iVar2 = FUN_00045f60(param_2)" identifier = (call_expression "FUN_00045f60(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar3 = iVar2 + 0xf;" (assignment_expression "iVar3 = iVar2 + 0xf" identifier = (binary_expression "iVar2 + 0xf" identifier + number_literal)) ;) (if_statement "if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }" if (parenthesized_expression "(-1 < iVar2 + 8)" ( (binary_expression "-1 < iVar2 + 8" number_literal < (binary_expression "iVar2 + 8" identifier + number_literal)) )) (compound_statement "{\n    iVar3 = iVar2 + 8;\n  }" { (expression_statement "iVar3 = iVar2 + 8;" (assignment_expression "iVar3 = iVar2 + 8" identifier = (binary_expression "iVar2 + 8" identifier + number_literal)) ;) })) (expression_statement "uVar4 = iVar3 >> 3;" (assignment_expression "uVar4 = iVar3 >> 3" identifier = (binary_expression "iVar3 >> 3" identifier >> number_literal)) ;) (expression_statement "local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" (assignment_expression "local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" identifier = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (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 "uVar4 << 0x18" identifier << number_literal))) ;) (expression_statement "FUN_0005d030(param_1,&local_24,4);" (call_expression "FUN_0005d030(param_1,&local_24,4)" identifier (argument_list "(param_1,&local_24,4)" ( identifier , (pointer_expression "&local_24" & identifier) , number_literal ))) ;) (if_statement "if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }" { (do_statement "do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);" do (compound_statement "{\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    }" { (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "uVar1 = FUN_00046050(param_2,uVar4);" (assignment_expression "uVar1 = FUN_00046050(param_2,uVar4)" identifier = (call_expression "FUN_00046050(param_2,uVar4)" identifier (argument_list "(param_2,uVar4)" ( identifier , identifier )))) ;) (expression_statement "local_24 = CONCAT31(local_24._1_3_,uVar1);" (assignment_expression "local_24 = CONCAT31(local_24._1_3_,uVar1)" identifier = (call_expression "CONCAT31(local_24._1_3_,uVar1)" identifier (argument_list "(local_24._1_3_,uVar1)" ( (field_expression "local_24._1_3_" identifier . field_identifier) , identifier )))) ;) (expression_statement "FUN_0005d030(param_1,&local_24,1);" (call_expression "FUN_0005d030(param_1,&local_24,1)" identifier (argument_list "(param_1,&local_24,1)" ( identifier , (pointer_expression "&local_24" & identifier) , number_literal ))) ;) }) while (parenthesized_expression "(0 < (int)uVar4)" ( (binary_expression "0 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "FUN_0001b320(&local_24,4);" (call_expression "FUN_0001b320(&local_24,4)" identifier (argument_list "(&local_24,4)" ( (pointer_expression "&local_24" & identifier) , number_literal ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\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                    /* WARNING: Subroutine does not return */\n    FUN_0006f430();\n  }" { comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 sha_mpint(SHA_State *s,Bignum b)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint i;\n  int in_GS_OFFSET;\n  uchar lenbuf [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = bignum_bitcount((Bignum_conflict)b);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  i = iVar3 >> 3;\n  lenbuf = (uchar  [4])(i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18);\n  SHA_Bytes(s,lenbuf,4);\n  if (-1 < iVar2) {\n    do {\n      i = i - 1;\n      iVar3 = bignum_byte((Bignum_conflict)b,i);\n      lenbuf[0] = (uchar)iVar3;\n      SHA_Bytes(s,lenbuf,1);\n    } while (0 < (int)i);\n  }\n  smemclr(lenbuf,4);\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 sha_mpint(SHA_State *s,Bignum b)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint i;\n  int in_GS_OFFSET;\n  uchar lenbuf [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = bignum_bitcount((Bignum_conflict)b);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  i = iVar3 >> 3;\n  lenbuf = (uchar  [4])(i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18);\n  SHA_Bytes(s,lenbuf,4);\n  if (-1 < iVar2) {\n    do {\n      i = i - 1;\n      iVar3 = bignum_byte((Bignum_conflict)b,i);\n      lenbuf[0] = (uchar)iVar3;\n      SHA_Bytes(s,lenbuf,1);\n    } while (0 < (int)i);\n  }\n  smemclr(lenbuf,4);\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sha_mpint(SHA_State *s,Bignum b)" identifier (parameter_list "(SHA_State *s,Bignum b)" ( (parameter_declaration "SHA_State *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "Bignum b" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  uint i;\n  int in_GS_OFFSET;\n  uchar lenbuf [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = bignum_bitcount((Bignum_conflict)b);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  i = iVar3 >> 3;\n  lenbuf = (uchar  [4])(i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18);\n  SHA_Bytes(s,lenbuf,4);\n  if (-1 < iVar2) {\n    do {\n      i = i - 1;\n      iVar3 = bignum_byte((Bignum_conflict)b,i);\n      lenbuf[0] = (uchar)iVar3;\n      SHA_Bytes(s,lenbuf,1);\n    } while (0 < (int)i);\n  }\n  smemclr(lenbuf,4);\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint i;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar lenbuf [4];" type_identifier (array_declarator "lenbuf [4]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = bignum_bitcount((Bignum_conflict)b);" (assignment_expression "iVar2 = bignum_bitcount((Bignum_conflict)b)" identifier = (call_expression "bignum_bitcount((Bignum_conflict)b)" identifier (argument_list "((Bignum_conflict)b)" ( (cast_expression "(Bignum_conflict)b" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) )))) ;) (expression_statement "iVar3 = iVar2 + 0xf;" (assignment_expression "iVar3 = iVar2 + 0xf" identifier = (binary_expression "iVar2 + 0xf" identifier + number_literal)) ;) (if_statement "if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }" if (parenthesized_expression "(-1 < iVar2 + 8)" ( (binary_expression "-1 < iVar2 + 8" number_literal < (binary_expression "iVar2 + 8" identifier + number_literal)) )) (compound_statement "{\n    iVar3 = iVar2 + 8;\n  }" { (expression_statement "iVar3 = iVar2 + 8;" (assignment_expression "iVar3 = iVar2 + 8" identifier = (binary_expression "iVar2 + 8" identifier + number_literal)) ;) })) (expression_statement "i = iVar3 >> 3;" (assignment_expression "i = iVar3 >> 3" identifier = (binary_expression "iVar3 >> 3" identifier >> number_literal)) ;) (expression_statement "lenbuf = (uchar  [4])(i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18);" (assignment_expression "lenbuf = (uchar  [4])(i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18)" identifier = (call_expression "(uchar  [4])(i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18)" (parenthesized_expression "(uchar  [4])" ( (subscript_expression "uchar  [4]" identifier [ number_literal ]) )) (argument_list "(i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18)" ( (binary_expression "i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8 | i << 0x18" (binary_expression "i >> 0x18 | (i & 0xff0000) >> 8 | (i & 0xff00) << 8" (binary_expression "i >> 0x18 | (i & 0xff0000) >> 8" (binary_expression "i >> 0x18" identifier >> number_literal) | (binary_expression "(i & 0xff0000) >> 8" (parenthesized_expression "(i & 0xff0000)" ( (binary_expression "i & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(i & 0xff00) << 8" (parenthesized_expression "(i & 0xff00)" ( (binary_expression "i & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "i << 0x18" identifier << number_literal)) )))) ;) (expression_statement "SHA_Bytes(s,lenbuf,4);" (call_expression "SHA_Bytes(s,lenbuf,4)" identifier (argument_list "(s,lenbuf,4)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (-1 < iVar2) {\n    do {\n      i = i - 1;\n      iVar3 = bignum_byte((Bignum_conflict)b,i);\n      lenbuf[0] = (uchar)iVar3;\n      SHA_Bytes(s,lenbuf,1);\n    } while (0 < (int)i);\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    do {\n      i = i - 1;\n      iVar3 = bignum_byte((Bignum_conflict)b,i);\n      lenbuf[0] = (uchar)iVar3;\n      SHA_Bytes(s,lenbuf,1);\n    } while (0 < (int)i);\n  }" { (do_statement "do {\n      i = i - 1;\n      iVar3 = bignum_byte((Bignum_conflict)b,i);\n      lenbuf[0] = (uchar)iVar3;\n      SHA_Bytes(s,lenbuf,1);\n    } while (0 < (int)i);" do (compound_statement "{\n      i = i - 1;\n      iVar3 = bignum_byte((Bignum_conflict)b,i);\n      lenbuf[0] = (uchar)iVar3;\n      SHA_Bytes(s,lenbuf,1);\n    }" { (expression_statement "i = i - 1;" (assignment_expression "i = i - 1" identifier = (binary_expression "i - 1" identifier - number_literal)) ;) (expression_statement "iVar3 = bignum_byte((Bignum_conflict)b,i);" (assignment_expression "iVar3 = bignum_byte((Bignum_conflict)b,i)" identifier = (call_expression "bignum_byte((Bignum_conflict)b,i)" identifier (argument_list "((Bignum_conflict)b,i)" ( (cast_expression "(Bignum_conflict)b" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) , identifier )))) ;) (expression_statement "lenbuf[0] = (uchar)iVar3;" (assignment_expression "lenbuf[0] = (uchar)iVar3" (subscript_expression "lenbuf[0]" identifier [ number_literal ]) = (cast_expression "(uchar)iVar3" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "SHA_Bytes(s,lenbuf,1);" (call_expression "SHA_Bytes(s,lenbuf,1)" identifier (argument_list "(s,lenbuf,1)" ( identifier , identifier , number_literal ))) ;) }) while (parenthesized_expression "(0 < (int)i)" ( (binary_expression "0 < (int)i" number_literal < (cast_expression "(int)i" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "smemclr(lenbuf,4);" (call_expression "smemclr(lenbuf,4)" identifier (argument_list "(lenbuf,4)" ( identifier , number_literal ))) ;) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0004c170(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c17b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045f60(param_2);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  uVar4 = iVar3 >> 3;\n  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  FUN_0005d030(param_1,&local_24,4);\n  if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }\n  FUN_0001b320(&local_24,4);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f430();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0004c170(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c17b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045f60(param_2);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  uVar4 = iVar3 >> 3;\n  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  FUN_0005d030(param_1,&local_24,4);\n  if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }\n  FUN_0001b320(&local_24,4);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f430();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004c170(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c17b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045f60(param_2);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  uVar4 = iVar3 >> 3;\n  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  FUN_0005d030(param_1,&local_24,4);\n  if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }\n  FUN_0001b320(&local_24,4);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f430();\n  }\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4c17b;" (assignment_expression "uStack_14 = 0x4c17b" 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 "iVar2 = FUN_00045f60(param_2);" (assignment_expression "iVar2 = FUN_00045f60(param_2)" identifier = (call_expression "FUN_00045f60(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar3 = iVar2 + 0xf;" (assignment_expression "iVar3 = iVar2 + 0xf" identifier = (binary_expression "iVar2 + 0xf" identifier + number_literal)) ;) (if_statement "if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }" if (parenthesized_expression "(-1 < iVar2 + 8)" ( (binary_expression "-1 < iVar2 + 8" number_literal < (binary_expression "iVar2 + 8" identifier + number_literal)) )) (compound_statement "{\n    iVar3 = iVar2 + 8;\n  }" { (expression_statement "iVar3 = iVar2 + 8;" (assignment_expression "iVar3 = iVar2 + 8" identifier = (binary_expression "iVar2 + 8" identifier + number_literal)) ;) })) (expression_statement "uVar4 = iVar3 >> 3;" (assignment_expression "uVar4 = iVar3 >> 3" identifier = (binary_expression "iVar3 >> 3" identifier >> number_literal)) ;) (expression_statement "local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" (assignment_expression "local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" identifier = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (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 "uVar4 << 0x18" identifier << number_literal))) ;) (expression_statement "FUN_0005d030(param_1,&local_24,4);" (call_expression "FUN_0005d030(param_1,&local_24,4)" identifier (argument_list "(param_1,&local_24,4)" ( identifier , (pointer_expression "&local_24" & identifier) , number_literal ))) ;) (if_statement "if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }" { (do_statement "do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);" do (compound_statement "{\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    }" { (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "uVar1 = FUN_00046050(param_2,uVar4);" (assignment_expression "uVar1 = FUN_00046050(param_2,uVar4)" identifier = (call_expression "FUN_00046050(param_2,uVar4)" identifier (argument_list "(param_2,uVar4)" ( identifier , identifier )))) ;) (expression_statement "local_24 = CONCAT31(local_24._1_3_,uVar1);" (assignment_expression "local_24 = CONCAT31(local_24._1_3_,uVar1)" identifier = (call_expression "CONCAT31(local_24._1_3_,uVar1)" identifier (argument_list "(local_24._1_3_,uVar1)" ( (field_expression "local_24._1_3_" identifier . field_identifier) , identifier )))) ;) (expression_statement "FUN_0005d030(param_1,&local_24,1);" (call_expression "FUN_0005d030(param_1,&local_24,1)" identifier (argument_list "(param_1,&local_24,1)" ( identifier , (pointer_expression "&local_24" & identifier) , number_literal ))) ;) }) while (parenthesized_expression "(0 < (int)uVar4)" ( (binary_expression "0 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "FUN_0001b320(&local_24,4);" (call_expression "FUN_0001b320(&local_24,4)" identifier (argument_list "(&local_24,4)" ( (pointer_expression "&local_24" & identifier) , number_literal ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f430();\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                    \n    FUN_0006f430();\n  }" { (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> 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 ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (field_expression IDENT . field_identifier) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) }) while (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0004c170(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c17b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045f60(param_2);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  uVar4 = iVar3 >> 3;\n  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  FUN_0005d030(param_1,&local_24,4);\n  if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }\n  FUN_0001b320(&local_24,4);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f430();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0004c170(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0004c170") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4c17b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00045f60(param_2);\n  iVar3 = iVar2 + 0xf;\n  if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }\n  uVar4 = iVar3 >> 3;\n  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  FUN_0005d030(param_1,&local_24,4);\n  if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }\n  FUN_0001b320(&local_24,4);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f430();\n  }\n  return;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x4c17b;" (assignment_expression "uStack_14 = 0x4c17b" (identifier "uStack_14") (= "=") (number_literal "0x4c17b")) (; ";")) (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 "iVar2 = FUN_00045f60(param_2);" (assignment_expression "iVar2 = FUN_00045f60(param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_00045f60(param_2)" (identifier "FUN_00045f60") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar3 = iVar2 + 0xf;" (assignment_expression "iVar3 = iVar2 + 0xf" (identifier "iVar3") (= "=") (binary_expression "iVar2 + 0xf" (identifier "iVar2") (+ "+") (number_literal "0xf"))) (; ";")) (if_statement "if (-1 < iVar2 + 8) {\n    iVar3 = iVar2 + 8;\n  }" (if "if") (parenthesized_expression "(-1 < iVar2 + 8)" (( "(") (binary_expression "-1 < iVar2 + 8" (number_literal "-1") (< "<") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8"))) () ")")) (compound_statement "{\n    iVar3 = iVar2 + 8;\n  }" ({ "{") (expression_statement "iVar3 = iVar2 + 8;" (assignment_expression "iVar3 = iVar2 + 8" (identifier "iVar3") (= "=") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8"))) (; ";")) (} "}"))) (expression_statement "uVar4 = iVar3 >> 3;" (assignment_expression "uVar4 = iVar3 >> 3" (identifier "uVar4") (= "=") (binary_expression "iVar3 >> 3" (identifier "iVar3") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" (assignment_expression "local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (identifier "local_24") (= "=") (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (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 "uVar4 << 0x18" (identifier "uVar4") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "FUN_0005d030(param_1,&local_24,4);" (call_expression "FUN_0005d030(param_1,&local_24,4)" (identifier "FUN_0005d030") (argument_list "(param_1,&local_24,4)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "4") () ")"))) (; ";")) (if_statement "if (-1 < iVar2) {\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);\n  }" ({ "{") (do_statement "do {\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    } while (0 < (int)uVar4);" (do "do") (compound_statement "{\n      uVar4 = uVar4 - 1;\n      uVar1 = FUN_00046050(param_2,uVar4);\n      local_24 = CONCAT31(local_24._1_3_,uVar1);\n      FUN_0005d030(param_1,&local_24,1);\n    }" ({ "{") (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = FUN_00046050(param_2,uVar4);" (assignment_expression "uVar1 = FUN_00046050(param_2,uVar4)" (identifier "uVar1") (= "=") (call_expression "FUN_00046050(param_2,uVar4)" (identifier "FUN_00046050") (argument_list "(param_2,uVar4)" (( "(") (identifier "param_2") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "local_24 = CONCAT31(local_24._1_3_,uVar1);" (assignment_expression "local_24 = CONCAT31(local_24._1_3_,uVar1)" (identifier "local_24") (= "=") (call_expression "CONCAT31(local_24._1_3_,uVar1)" (identifier "CONCAT31") (argument_list "(local_24._1_3_,uVar1)" (( "(") (field_expression "local_24._1_3_" (identifier "local_24") (. ".") (field_identifier "_1_3_")) (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "FUN_0005d030(param_1,&local_24,1);" (call_expression "FUN_0005d030(param_1,&local_24,1)" (identifier "FUN_0005d030") (argument_list "(param_1,&local_24,1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0 < (int)uVar4)" (( "(") (binary_expression "0 < (int)uVar4" (number_literal "0") (< "<") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4"))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_0001b320(&local_24,4);" (call_expression "FUN_0001b320(&local_24,4)" (identifier "FUN_0001b320") (argument_list "(&local_24,4)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "4") () ")"))) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0006f430();\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                    \n    FUN_0006f430();\n  }" ({ "{") (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *s,type_2 b)

{
  int var_9;
  int var_3;
  int var_4;
  type_3 var_5;
  int var_1;
  type_4 lenbuf [4];
  
  var_9 = *(int *)(var_1 + 0x14);
  var_3 = var_2((type_5)b);
  var_4 = var_3 + 0xf;
  if (-1 < var_3 + 8) {
    var_4 = var_3 + 8;
  }
  var_5 = var_4 >> 3;
  lenbuf = (type_4  [4])(var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18);
  var_6(s,lenbuf,4);
  if (-1 < var_3) {
    do {
      var_5 = var_5 - 1;
      var_4 = var_7((type_5)b,var_5);
      lenbuf[0] = (type_4)var_4;
      var_6(s,lenbuf,1);
    } while (0 < (int)var_5);
  }
  var_8(lenbuf,4);
  if (var_9 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_10();
  }
  return;
}


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

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

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  uint uVar4;
  int in_GS_OFFSET;
  uint local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4c17b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00045f60(param_2);
  iVar3 = iVar2 + 0xf;
  if (-1 < iVar2 + 8) {
    iVar3 = iVar2 + 8;
  }
  uVar4 = iVar3 >> 3;
  local_24 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
  FUN_0005d030(param_1,&local_24,4);
  if (-1 < iVar2) {
    do {
      uVar4 = uVar4 - 1;
      uVar1 = FUN_00046050(param_2,uVar4);
      local_24 = CONCAT31(local_24._1_3_,uVar1);
      FUN_0005d030(param_1,&local_24,1);
    } while (0 < (int)uVar4);
  }
  FUN_0001b320(&local_24,4);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0006f430();
  }
  return;
}

