
int rc4_ready(prng_state *prng)

{
  long lVar1;
  int iVar2;
  long lVar3;
  uint uVar4;
  int iVar5;
  uchar *puVar6;
  long in_FS_OFFSET;
  uchar buf [256];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  puVar6 = buf;
  for (lVar3 = 0x20; lVar3 != 0; lVar3 = lVar3 + -1) {
    *(undefined8 *)puVar6 = 0;
    puVar6 = (uchar *)((long)puVar6 + 8);
  }
  if (prng == (prng_state *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);
  }
  iVar2 = 0;
  if (prng->ready == 0) {
    buf._0_8_ = *(undefined8 *)((long)&prng->field_0 + 8);
    buf._8_8_ = *(undefined8 *)((long)&prng->field_0 + 0x10);
    buf._16_8_ = *(undefined8 *)((long)&prng->field_0 + 0x18);
    buf._24_8_ = *(undefined8 *)((long)&prng->field_0 + 0x20);
    buf._32_8_ = *(undefined8 *)((long)&prng->field_0 + 0x28);
    buf._40_8_ = *(undefined8 *)((long)&prng->field_0 + 0x30);
    buf._48_8_ = *(undefined8 *)((long)&prng->field_0 + 0x38);
    buf._56_8_ = *(undefined8 *)((long)&prng->field_0 + 0x40);
    buf._64_8_ = *(undefined8 *)((long)&prng->field_0 + 0x48);
    buf._72_8_ = *(undefined8 *)((long)&prng->field_0 + 0x50);
    buf._80_8_ = *(undefined8 *)((long)&prng->field_0 + 0x58);
    buf._88_8_ = *(undefined8 *)((long)&prng->field_0 + 0x60);
    buf._96_8_ = *(undefined8 *)((long)&prng->field_0 + 0x68);
    buf._104_8_ = *(undefined8 *)((long)&prng->field_0 + 0x70);
    buf._112_8_ = *(undefined8 *)((long)&prng->field_0 + 0x78);
    buf._120_8_ = *(undefined8 *)((long)&prng->field_0 + 0x80);
    buf._128_8_ = *(undefined8 *)((long)&prng->field_0 + 0x88);
    buf._136_8_ = *(undefined8 *)((long)&prng->field_0 + 0x90);
    buf._144_8_ = *(undefined8 *)((long)&prng->field_0 + 0x98);
    buf._152_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa0);
    buf._160_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa8);
    buf._168_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb0);
    buf._176_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb8);
    buf._184_8_ = (prng->field_0).chacha.idx;
    buf._192_8_ = *(undefined8 *)((long)&prng->field_0 + 200);
    buf._200_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd0);
    buf._208_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd8);
    buf._216_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe0);
    buf._224_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe8);
    buf._232_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf0);
    buf._240_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf8);
    buf._248_8_ = *(undefined8 *)((long)&prng->field_0 + 0x100);
    uVar4 = 0x100;
    if ((prng->field_0).rc4.s.x < 0x101) {
      uVar4 = (prng->field_0).rc4.s.x;
    }
    iVar2 = rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4);
    if (iVar2 == 0) {
      iVar5 = 0xc;
      do {
        rc4_stream_keystream((rc4_state *)prng,buf,0x100);
        iVar5 = iVar5 + -1;
      } while (iVar5 != 0);
      prng->ready = 1;
    }
  }
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



int rc4_ready(uint *param_1)

{
  int iVar1;
  long lVar2;
  uint uVar3;
  int iVar4;
  undefined8 *puVar5;
  long in_FS_OFFSET;
  undefined8 local_138 [4];
  undefined8 local_118;
  undefined8 uStack_110;
  undefined8 local_108;
  undefined8 uStack_100;
  undefined8 local_f8;
  undefined8 uStack_f0;
  undefined8 local_e8;
  undefined8 uStack_e0;
  undefined8 local_d8;
  undefined8 uStack_d0;
  undefined8 local_c8;
  undefined8 uStack_c0;
  undefined8 local_b8;
  undefined8 uStack_b0;
  undefined8 local_a8;
  undefined8 uStack_a0;
  undefined8 local_98;
  undefined8 uStack_90;
  undefined8 local_88;
  undefined8 uStack_80;
  undefined8 local_78;
  undefined8 uStack_70;
  undefined8 local_68;
  undefined8 uStack_60;
  undefined8 local_58;
  undefined8 uStack_50;
  undefined8 local_48;
  undefined8 uStack_40;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  puVar5 = local_138;
  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {
    *puVar5 = 0;
    puVar5 = puVar5 + 1;
  }
  if (param_1 == (uint *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);
  }
  iVar1 = 0;
  if ((short)param_1[0x113c] == 0) {
    local_138[0] = *(undefined8 *)(param_1 + 2);
    local_138[1] = *(undefined8 *)(param_1 + 4);
    local_138[2] = *(undefined8 *)(param_1 + 6);
    local_138[3] = *(undefined8 *)(param_1 + 8);
    local_118 = *(undefined8 *)(param_1 + 10);
    uStack_110 = *(undefined8 *)(param_1 + 0xc);
    local_108 = *(undefined8 *)(param_1 + 0xe);
    uStack_100 = *(undefined8 *)(param_1 + 0x10);
    local_f8 = *(undefined8 *)(param_1 + 0x12);
    uStack_f0 = *(undefined8 *)(param_1 + 0x14);
    local_e8 = *(undefined8 *)(param_1 + 0x16);
    uStack_e0 = *(undefined8 *)(param_1 + 0x18);
    local_d8 = *(undefined8 *)(param_1 + 0x1a);
    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);
    local_c8 = *(undefined8 *)(param_1 + 0x1e);
    uStack_c0 = *(undefined8 *)(param_1 + 0x20);
    local_b8 = *(undefined8 *)(param_1 + 0x22);
    uStack_b0 = *(undefined8 *)(param_1 + 0x24);
    local_a8 = *(undefined8 *)(param_1 + 0x26);
    uStack_a0 = *(undefined8 *)(param_1 + 0x28);
    local_98 = *(undefined8 *)(param_1 + 0x2a);
    uStack_90 = *(undefined8 *)(param_1 + 0x2c);
    local_88 = *(undefined8 *)(param_1 + 0x2e);
    uStack_80 = *(undefined8 *)(param_1 + 0x30);
    local_78 = *(undefined8 *)(param_1 + 0x32);
    uStack_70 = *(undefined8 *)(param_1 + 0x34);
    local_68 = *(undefined8 *)(param_1 + 0x36);
    uStack_60 = *(undefined8 *)(param_1 + 0x38);
    local_58 = *(undefined8 *)(param_1 + 0x3a);
    uStack_50 = *(undefined8 *)(param_1 + 0x3c);
    local_48 = *(undefined8 *)(param_1 + 0x3e);
    uStack_40 = *(undefined8 *)(param_1 + 0x40);
    uVar3 = 0x100;
    if (*param_1 < 0x101) {
      uVar3 = *param_1;
    }
    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);
    if (iVar1 == 0) {
      iVar4 = 0xc;
      do {
        rc4_stream_keystream(param_1,local_138,0x100);
        iVar4 = iVar4 + -1;
      } while (iVar4 != 0);
      *(undefined2 *)(param_1 + 0x113c) = 1;
    }
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R13
MOV ECX,0x20
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x118
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x108],RAX
XOR EAX,EAX
MOV R12,RSP
MOV RDI,R12
STOSQ.REP RDI
TEST RBX,RBX
JZ 0x00187bd6
XOR R13D,R13D
CMP word ptr [RBX + 0x44f0],0x0
JZ 0x00187aa0
MOV RCX,qword ptr [RSP + 0x108]
XOR RCX,qword ptr FS:[0x28]
MOV EAX,R13D
JNZ 0x00187bee
ADD RSP,0x118
POP RBX
POP RBP
POP R12
POP R13
RET
MOVDQU XMM0,xmmword ptr [RBX + 0x8]
MOVDQU XMM1,xmmword ptr [RBX + 0x18]
MOV RSI,R12
MOV RDI,RBX
MOVDQU XMM2,xmmword ptr [RBX + 0x28]
MOVDQU XMM3,xmmword ptr [RBX + 0x38]
MOV EDX,0x100
MOVDQU XMM4,xmmword ptr [RBX + 0x48]
MOVDQU XMM5,xmmword ptr [RBX + 0x58]
MOVAPS xmmword ptr [RSP],XMM0
MOVDQU XMM6,xmmword ptr [RBX + 0x68]
MOVDQU XMM7,xmmword ptr [RBX + 0x78]
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOVDQU XMM8,xmmword ptr [RBX + 0x88]
MOVAPS xmmword ptr [RSP + 0x20],XMM2
MOVDQU XMM9,xmmword ptr [RBX + 0x98]
MOVDQU XMM10,xmmword ptr [RBX + 0xa8]
MOVAPS xmmword ptr [RSP + 0x30],XMM3
MOVDQU XMM11,xmmword ptr [RBX + 0xb8]
MOVDQU XMM12,xmmword ptr [RBX + 0xc8]
MOVAPS xmmword ptr [RSP + 0x40],XMM4
MOVDQU XMM13,xmmword ptr [RBX + 0xd8]
MOVDQU XMM14,xmmword ptr [RBX + 0xe8]
MOVAPS xmmword ptr [RSP + 0x50],XMM5
MOVDQU XMM15,xmmword ptr [RBX + 0xf8]
MOVAPS xmmword ptr [RSP + 0x60],XMM6
MOVAPS xmmword ptr [RSP + 0x70],XMM7
MOVAPS xmmword ptr [RSP + 0x80],XMM8
MOVAPS xmmword ptr [RSP + 0x90],XMM9
MOVAPS xmmword ptr [RSP + 0xa0],XMM10
MOVAPS xmmword ptr [RSP + 0xb0],XMM11
MOVAPS xmmword ptr [RSP + 0xc0],XMM12
MOVAPS xmmword ptr [RSP + 0xd0],XMM13
MOVAPS xmmword ptr [RSP + 0xe0],XMM14
MOVAPS xmmword ptr [RSP + 0xf0],XMM15
CMP dword ptr [RBX],0x100
CMOVBE EDX,dword ptr [RBX]
MOV EDX,EDX
CALL 0x00114540
MOV R13D,EAX
TEST EAX,EAX
JNZ 0x00187a77
MOV EBP,0xc
NOP word ptr [RAX + RAX*0x1]
MOV EDX,0x100
MOV RSI,R12
MOV RDI,RBX
CALL 0x001142d0
SUB EBP,0x1
JNZ 0x00187bb0
MOV ESI,0x1
MOV word ptr [RBX + 0x44f0],SI
JMP 0x00187a77
MOV EDX,0x62
LEA RSI,[0x1c70bf]
LEA RDI,[0x1bfb0d]
CALL 0x00114270
CALL 0x00113880
(translation_unit "int rc4_ready(uint *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 *puVar5;\n  long in_FS_OFFSET;\n  undefined8 local_138 [4];\n  undefined8 local_118;\n  undefined8 uStack_110;\n  undefined8 local_108;\n  undefined8 uStack_100;\n  undefined8 local_f8;\n  undefined8 uStack_f0;\n  undefined8 local_e8;\n  undefined8 uStack_e0;\n  undefined8 local_d8;\n  undefined8 uStack_d0;\n  undefined8 local_c8;\n  undefined8 uStack_c0;\n  undefined8 local_b8;\n  undefined8 uStack_b0;\n  undefined8 local_a8;\n  undefined8 uStack_a0;\n  undefined8 local_98;\n  undefined8 uStack_90;\n  undefined8 local_88;\n  undefined8 uStack_80;\n  undefined8 local_78;\n  undefined8 uStack_70;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar5 = local_138;\n  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if (param_1 == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar1 = 0;\n  if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int rc4_ready(uint *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 *puVar5;\n  long in_FS_OFFSET;\n  undefined8 local_138 [4];\n  undefined8 local_118;\n  undefined8 uStack_110;\n  undefined8 local_108;\n  undefined8 uStack_100;\n  undefined8 local_f8;\n  undefined8 uStack_f0;\n  undefined8 local_e8;\n  undefined8 uStack_e0;\n  undefined8 local_d8;\n  undefined8 uStack_d0;\n  undefined8 local_c8;\n  undefined8 uStack_c0;\n  undefined8 local_b8;\n  undefined8 uStack_b0;\n  undefined8 local_a8;\n  undefined8 uStack_a0;\n  undefined8 local_98;\n  undefined8 uStack_90;\n  undefined8 local_88;\n  undefined8 uStack_80;\n  undefined8 local_78;\n  undefined8 uStack_70;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar5 = local_138;\n  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if (param_1 == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar1 = 0;\n  if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "rc4_ready(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 *puVar5;\n  long in_FS_OFFSET;\n  undefined8 local_138 [4];\n  undefined8 local_118;\n  undefined8 uStack_110;\n  undefined8 local_108;\n  undefined8 uStack_100;\n  undefined8 local_f8;\n  undefined8 uStack_f0;\n  undefined8 local_e8;\n  undefined8 uStack_e0;\n  undefined8 local_d8;\n  undefined8 uStack_d0;\n  undefined8 local_c8;\n  undefined8 uStack_c0;\n  undefined8 local_b8;\n  undefined8 uStack_b0;\n  undefined8 local_a8;\n  undefined8 uStack_a0;\n  undefined8 local_98;\n  undefined8 uStack_90;\n  undefined8 local_88;\n  undefined8 uStack_80;\n  undefined8 local_78;\n  undefined8 uStack_70;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar5 = local_138;\n  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if (param_1 == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar1 = 0;\n  if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_138 [4];" type_identifier (array_declarator "local_138 [4]" identifier [ number_literal ]) ;) (declaration "undefined8 local_118;" type_identifier identifier ;) (declaration "undefined8 uStack_110;" type_identifier identifier ;) (declaration "undefined8 local_108;" type_identifier identifier ;) (declaration "undefined8 uStack_100;" type_identifier identifier ;) (declaration "undefined8 local_f8;" type_identifier identifier ;) (declaration "undefined8 uStack_f0;" type_identifier identifier ;) (declaration "undefined8 local_e8;" type_identifier identifier ;) (declaration "undefined8 uStack_e0;" type_identifier identifier ;) (declaration "undefined8 local_d8;" type_identifier identifier ;) (declaration "undefined8 uStack_d0;" type_identifier identifier ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 uStack_c0;" type_identifier identifier ;) (declaration "undefined8 local_b8;" type_identifier identifier ;) (declaration "undefined8 uStack_b0;" type_identifier identifier ;) (declaration "undefined8 local_a8;" type_identifier identifier ;) (declaration "undefined8 uStack_a0;" type_identifier identifier ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined8 uStack_90;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined8 uStack_80;" type_identifier identifier ;) (declaration "undefined8 local_78;" type_identifier identifier ;) (declaration "undefined8 uStack_70;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 uStack_60;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 uStack_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 uStack_40;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "puVar5 = local_138;" (assignment_expression "puVar5 = local_138" identifier = identifier) ;) (for_statement "for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" for ( (assignment_expression "lVar2 = 0x20" identifier = number_literal) ; (binary_expression "lVar2 != 0" identifier != number_literal) ; (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) })) (if_statement "if (param_1 == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }" { comment (expression_statement "crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);" (call_expression "crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62)" identifier (argument_list "("prng != NULL","src/prngs/rc4.c",0x62)" ( (string_literal ""prng != NULL"" " string_content ") , (string_literal ""src/prngs/rc4.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }" if (parenthesized_expression "((short)param_1[0x113c] == 0)" ( (binary_expression "(short)param_1[0x113c] == 0" (cast_expression "(short)param_1[0x113c]" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (subscript_expression "param_1[0x113c]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }" { (expression_statement "local_138[0] = *(undefined8 *)(param_1 + 2);" (assignment_expression "local_138[0] = *(undefined8 *)(param_1 + 2)" (subscript_expression "local_138[0]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 2)" * (cast_expression "(undefined8 *)(param_1 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "local_138[1] = *(undefined8 *)(param_1 + 4);" (assignment_expression "local_138[1] = *(undefined8 *)(param_1 + 4)" (subscript_expression "local_138[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_138[2] = *(undefined8 *)(param_1 + 6);" (assignment_expression "local_138[2] = *(undefined8 *)(param_1 + 6)" (subscript_expression "local_138[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 6)" * (cast_expression "(undefined8 *)(param_1 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) (expression_statement "local_138[3] = *(undefined8 *)(param_1 + 8);" (assignment_expression "local_138[3] = *(undefined8 *)(param_1 + 8)" (subscript_expression "local_138[3]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_118 = *(undefined8 *)(param_1 + 10);" (assignment_expression "local_118 = *(undefined8 *)(param_1 + 10)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 10)" * (cast_expression "(undefined8 *)(param_1 + 10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) ))))) ;) (expression_statement "uStack_110 = *(undefined8 *)(param_1 + 0xc);" (assignment_expression "uStack_110 = *(undefined8 *)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0xc)" * (cast_expression "(undefined8 *)(param_1 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_108 = *(undefined8 *)(param_1 + 0xe);" (assignment_expression "local_108 = *(undefined8 *)(param_1 + 0xe)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0xe)" * (cast_expression "(undefined8 *)(param_1 + 0xe)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe)" ( (binary_expression "param_1 + 0xe" identifier + number_literal) ))))) ;) (expression_statement "uStack_100 = *(undefined8 *)(param_1 + 0x10);" (assignment_expression "uStack_100 = *(undefined8 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "local_f8 = *(undefined8 *)(param_1 + 0x12);" (assignment_expression "local_f8 = *(undefined8 *)(param_1 + 0x12)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x12)" * (cast_expression "(undefined8 *)(param_1 + 0x12)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) ))))) ;) (expression_statement "uStack_f0 = *(undefined8 *)(param_1 + 0x14);" (assignment_expression "uStack_f0 = *(undefined8 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x14)" * (cast_expression "(undefined8 *)(param_1 + 0x14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_e8 = *(undefined8 *)(param_1 + 0x16);" (assignment_expression "local_e8 = *(undefined8 *)(param_1 + 0x16)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x16)" * (cast_expression "(undefined8 *)(param_1 + 0x16)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) ))))) ;) (expression_statement "uStack_e0 = *(undefined8 *)(param_1 + 0x18);" (assignment_expression "uStack_e0 = *(undefined8 *)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "local_d8 = *(undefined8 *)(param_1 + 0x1a);" (assignment_expression "local_d8 = *(undefined8 *)(param_1 + 0x1a)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x1a)" * (cast_expression "(undefined8 *)(param_1 + 0x1a)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a)" ( (binary_expression "param_1 + 0x1a" identifier + number_literal) ))))) ;) (expression_statement "uStack_d0 = *(undefined8 *)(param_1 + 0x1c);" (assignment_expression "uStack_d0 = *(undefined8 *)(param_1 + 0x1c)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x1c)" * (cast_expression "(undefined8 *)(param_1 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "local_c8 = *(undefined8 *)(param_1 + 0x1e);" (assignment_expression "local_c8 = *(undefined8 *)(param_1 + 0x1e)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x1e)" * (cast_expression "(undefined8 *)(param_1 + 0x1e)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1e)" ( (binary_expression "param_1 + 0x1e" identifier + number_literal) ))))) ;) (expression_statement "uStack_c0 = *(undefined8 *)(param_1 + 0x20);" (assignment_expression "uStack_c0 = *(undefined8 *)(param_1 + 0x20)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "local_b8 = *(undefined8 *)(param_1 + 0x22);" (assignment_expression "local_b8 = *(undefined8 *)(param_1 + 0x22)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x22)" * (cast_expression "(undefined8 *)(param_1 + 0x22)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x22)" ( (binary_expression "param_1 + 0x22" identifier + number_literal) ))))) ;) (expression_statement "uStack_b0 = *(undefined8 *)(param_1 + 0x24);" (assignment_expression "uStack_b0 = *(undefined8 *)(param_1 + 0x24)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x24)" * (cast_expression "(undefined8 *)(param_1 + 0x24)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "local_a8 = *(undefined8 *)(param_1 + 0x26);" (assignment_expression "local_a8 = *(undefined8 *)(param_1 + 0x26)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x26)" * (cast_expression "(undefined8 *)(param_1 + 0x26)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x26)" ( (binary_expression "param_1 + 0x26" identifier + number_literal) ))))) ;) (expression_statement "uStack_a0 = *(undefined8 *)(param_1 + 0x28);" (assignment_expression "uStack_a0 = *(undefined8 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_98 = *(undefined8 *)(param_1 + 0x2a);" (assignment_expression "local_98 = *(undefined8 *)(param_1 + 0x2a)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x2a)" * (cast_expression "(undefined8 *)(param_1 + 0x2a)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a)" ( (binary_expression "param_1 + 0x2a" identifier + number_literal) ))))) ;) (expression_statement "uStack_90 = *(undefined8 *)(param_1 + 0x2c);" (assignment_expression "uStack_90 = *(undefined8 *)(param_1 + 0x2c)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x2c)" * (cast_expression "(undefined8 *)(param_1 + 0x2c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "local_88 = *(undefined8 *)(param_1 + 0x2e);" (assignment_expression "local_88 = *(undefined8 *)(param_1 + 0x2e)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x2e)" * (cast_expression "(undefined8 *)(param_1 + 0x2e)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2e)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) ))))) ;) (expression_statement "uStack_80 = *(undefined8 *)(param_1 + 0x30);" (assignment_expression "uStack_80 = *(undefined8 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x30)" * (cast_expression "(undefined8 *)(param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "local_78 = *(undefined8 *)(param_1 + 0x32);" (assignment_expression "local_78 = *(undefined8 *)(param_1 + 0x32)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x32)" * (cast_expression "(undefined8 *)(param_1 + 0x32)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x32)" ( (binary_expression "param_1 + 0x32" identifier + number_literal) ))))) ;) (expression_statement "uStack_70 = *(undefined8 *)(param_1 + 0x34);" (assignment_expression "uStack_70 = *(undefined8 *)(param_1 + 0x34)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x34)" * (cast_expression "(undefined8 *)(param_1 + 0x34)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "local_68 = *(undefined8 *)(param_1 + 0x36);" (assignment_expression "local_68 = *(undefined8 *)(param_1 + 0x36)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x36)" * (cast_expression "(undefined8 *)(param_1 + 0x36)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x36)" ( (binary_expression "param_1 + 0x36" identifier + number_literal) ))))) ;) (expression_statement "uStack_60 = *(undefined8 *)(param_1 + 0x38);" (assignment_expression "uStack_60 = *(undefined8 *)(param_1 + 0x38)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "local_58 = *(undefined8 *)(param_1 + 0x3a);" (assignment_expression "local_58 = *(undefined8 *)(param_1 + 0x3a)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x3a)" * (cast_expression "(undefined8 *)(param_1 + 0x3a)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3a)" ( (binary_expression "param_1 + 0x3a" identifier + number_literal) ))))) ;) (expression_statement "uStack_50 = *(undefined8 *)(param_1 + 0x3c);" (assignment_expression "uStack_50 = *(undefined8 *)(param_1 + 0x3c)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x3c)" * (cast_expression "(undefined8 *)(param_1 + 0x3c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "local_48 = *(undefined8 *)(param_1 + 0x3e);" (assignment_expression "local_48 = *(undefined8 *)(param_1 + 0x3e)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x3e)" * (cast_expression "(undefined8 *)(param_1 + 0x3e)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) ))))) ;) (expression_statement "uStack_40 = *(undefined8 *)(param_1 + 0x40);" (assignment_expression "uStack_40 = *(undefined8 *)(param_1 + 0x40)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = 0x100;" (assignment_expression "uVar3 = 0x100" identifier = number_literal) ;) (if_statement "if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }" if (parenthesized_expression "(*param_1 < 0x101)" ( (binary_expression "*param_1 < 0x101" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\n      uVar3 = *param_1;\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "iVar1 = rc4_stream_setup(param_1,local_138,uVar3);" (assignment_expression "iVar1 = rc4_stream_setup(param_1,local_138,uVar3)" identifier = (call_expression "rc4_stream_setup(param_1,local_138,uVar3)" identifier (argument_list "(param_1,local_138,uVar3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }" { (expression_statement "iVar4 = 0xc;" (assignment_expression "iVar4 = 0xc" identifier = number_literal) ;) (do_statement "do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);" do (compound_statement "{\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      }" { (expression_statement "rc4_stream_keystream(param_1,local_138,0x100);" (call_expression "rc4_stream_keystream(param_1,local_138,0x100)" identifier (argument_list "(param_1,local_138,0x100)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (expression_statement "*(undefined2 *)(param_1 + 0x113c) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 0x113c) = 1" (pointer_expression "*(undefined2 *)(param_1 + 0x113c)" * (cast_expression "(undefined2 *)(param_1 + 0x113c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x113c)" ( (binary_expression "param_1 + 0x113c" identifier + number_literal) )))) = number_literal) ;) })) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int rc4_ready(prng_state *prng)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  uint uVar4;\n  int iVar5;\n  uchar *puVar6;\n  long in_FS_OFFSET;\n  uchar buf [256];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar6 = buf;\n  for (lVar3 = 0x20; lVar3 != 0; lVar3 = lVar3 + -1) {\n    *(undefined8 *)puVar6 = 0;\n    puVar6 = (uchar *)((long)puVar6 + 8);\n  }\n  if (prng == (prng_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar2 = 0;\n  if (prng->ready == 0) {\n    buf._0_8_ = *(undefined8 *)((long)&prng->field_0 + 8);\n    buf._8_8_ = *(undefined8 *)((long)&prng->field_0 + 0x10);\n    buf._16_8_ = *(undefined8 *)((long)&prng->field_0 + 0x18);\n    buf._24_8_ = *(undefined8 *)((long)&prng->field_0 + 0x20);\n    buf._32_8_ = *(undefined8 *)((long)&prng->field_0 + 0x28);\n    buf._40_8_ = *(undefined8 *)((long)&prng->field_0 + 0x30);\n    buf._48_8_ = *(undefined8 *)((long)&prng->field_0 + 0x38);\n    buf._56_8_ = *(undefined8 *)((long)&prng->field_0 + 0x40);\n    buf._64_8_ = *(undefined8 *)((long)&prng->field_0 + 0x48);\n    buf._72_8_ = *(undefined8 *)((long)&prng->field_0 + 0x50);\n    buf._80_8_ = *(undefined8 *)((long)&prng->field_0 + 0x58);\n    buf._88_8_ = *(undefined8 *)((long)&prng->field_0 + 0x60);\n    buf._96_8_ = *(undefined8 *)((long)&prng->field_0 + 0x68);\n    buf._104_8_ = *(undefined8 *)((long)&prng->field_0 + 0x70);\n    buf._112_8_ = *(undefined8 *)((long)&prng->field_0 + 0x78);\n    buf._120_8_ = *(undefined8 *)((long)&prng->field_0 + 0x80);\n    buf._128_8_ = *(undefined8 *)((long)&prng->field_0 + 0x88);\n    buf._136_8_ = *(undefined8 *)((long)&prng->field_0 + 0x90);\n    buf._144_8_ = *(undefined8 *)((long)&prng->field_0 + 0x98);\n    buf._152_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa0);\n    buf._160_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa8);\n    buf._168_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb0);\n    buf._176_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb8);\n    buf._184_8_ = (prng->field_0).chacha.idx;\n    buf._192_8_ = *(undefined8 *)((long)&prng->field_0 + 200);\n    buf._200_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd0);\n    buf._208_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd8);\n    buf._216_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe0);\n    buf._224_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe8);\n    buf._232_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf0);\n    buf._240_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf8);\n    buf._248_8_ = *(undefined8 *)((long)&prng->field_0 + 0x100);\n    uVar4 = 0x100;\n    if ((prng->field_0).rc4.s.x < 0x101) {\n      uVar4 = (prng->field_0).rc4.s.x;\n    }\n    iVar2 = rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4);\n    if (iVar2 == 0) {\n      iVar5 = 0xc;\n      do {\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      prng->ready = 1;\n    }\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int rc4_ready(prng_state *prng)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  uint uVar4;\n  int iVar5;\n  uchar *puVar6;\n  long in_FS_OFFSET;\n  uchar buf [256];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar6 = buf;\n  for (lVar3 = 0x20; lVar3 != 0; lVar3 = lVar3 + -1) {\n    *(undefined8 *)puVar6 = 0;\n    puVar6 = (uchar *)((long)puVar6 + 8);\n  }\n  if (prng == (prng_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar2 = 0;\n  if (prng->ready == 0) {\n    buf._0_8_ = *(undefined8 *)((long)&prng->field_0 + 8);\n    buf._8_8_ = *(undefined8 *)((long)&prng->field_0 + 0x10);\n    buf._16_8_ = *(undefined8 *)((long)&prng->field_0 + 0x18);\n    buf._24_8_ = *(undefined8 *)((long)&prng->field_0 + 0x20);\n    buf._32_8_ = *(undefined8 *)((long)&prng->field_0 + 0x28);\n    buf._40_8_ = *(undefined8 *)((long)&prng->field_0 + 0x30);\n    buf._48_8_ = *(undefined8 *)((long)&prng->field_0 + 0x38);\n    buf._56_8_ = *(undefined8 *)((long)&prng->field_0 + 0x40);\n    buf._64_8_ = *(undefined8 *)((long)&prng->field_0 + 0x48);\n    buf._72_8_ = *(undefined8 *)((long)&prng->field_0 + 0x50);\n    buf._80_8_ = *(undefined8 *)((long)&prng->field_0 + 0x58);\n    buf._88_8_ = *(undefined8 *)((long)&prng->field_0 + 0x60);\n    buf._96_8_ = *(undefined8 *)((long)&prng->field_0 + 0x68);\n    buf._104_8_ = *(undefined8 *)((long)&prng->field_0 + 0x70);\n    buf._112_8_ = *(undefined8 *)((long)&prng->field_0 + 0x78);\n    buf._120_8_ = *(undefined8 *)((long)&prng->field_0 + 0x80);\n    buf._128_8_ = *(undefined8 *)((long)&prng->field_0 + 0x88);\n    buf._136_8_ = *(undefined8 *)((long)&prng->field_0 + 0x90);\n    buf._144_8_ = *(undefined8 *)((long)&prng->field_0 + 0x98);\n    buf._152_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa0);\n    buf._160_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa8);\n    buf._168_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb0);\n    buf._176_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb8);\n    buf._184_8_ = (prng->field_0).chacha.idx;\n    buf._192_8_ = *(undefined8 *)((long)&prng->field_0 + 200);\n    buf._200_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd0);\n    buf._208_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd8);\n    buf._216_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe0);\n    buf._224_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe8);\n    buf._232_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf0);\n    buf._240_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf8);\n    buf._248_8_ = *(undefined8 *)((long)&prng->field_0 + 0x100);\n    uVar4 = 0x100;\n    if ((prng->field_0).rc4.s.x < 0x101) {\n      uVar4 = (prng->field_0).rc4.s.x;\n    }\n    iVar2 = rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4);\n    if (iVar2 == 0) {\n      iVar5 = 0xc;\n      do {\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      prng->ready = 1;\n    }\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "rc4_ready(prng_state *prng)" identifier (parameter_list "(prng_state *prng)" ( (parameter_declaration "prng_state *prng" type_identifier (pointer_declarator "*prng" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  uint uVar4;\n  int iVar5;\n  uchar *puVar6;\n  long in_FS_OFFSET;\n  uchar buf [256];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar6 = buf;\n  for (lVar3 = 0x20; lVar3 != 0; lVar3 = lVar3 + -1) {\n    *(undefined8 *)puVar6 = 0;\n    puVar6 = (uchar *)((long)puVar6 + 8);\n  }\n  if (prng == (prng_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar2 = 0;\n  if (prng->ready == 0) {\n    buf._0_8_ = *(undefined8 *)((long)&prng->field_0 + 8);\n    buf._8_8_ = *(undefined8 *)((long)&prng->field_0 + 0x10);\n    buf._16_8_ = *(undefined8 *)((long)&prng->field_0 + 0x18);\n    buf._24_8_ = *(undefined8 *)((long)&prng->field_0 + 0x20);\n    buf._32_8_ = *(undefined8 *)((long)&prng->field_0 + 0x28);\n    buf._40_8_ = *(undefined8 *)((long)&prng->field_0 + 0x30);\n    buf._48_8_ = *(undefined8 *)((long)&prng->field_0 + 0x38);\n    buf._56_8_ = *(undefined8 *)((long)&prng->field_0 + 0x40);\n    buf._64_8_ = *(undefined8 *)((long)&prng->field_0 + 0x48);\n    buf._72_8_ = *(undefined8 *)((long)&prng->field_0 + 0x50);\n    buf._80_8_ = *(undefined8 *)((long)&prng->field_0 + 0x58);\n    buf._88_8_ = *(undefined8 *)((long)&prng->field_0 + 0x60);\n    buf._96_8_ = *(undefined8 *)((long)&prng->field_0 + 0x68);\n    buf._104_8_ = *(undefined8 *)((long)&prng->field_0 + 0x70);\n    buf._112_8_ = *(undefined8 *)((long)&prng->field_0 + 0x78);\n    buf._120_8_ = *(undefined8 *)((long)&prng->field_0 + 0x80);\n    buf._128_8_ = *(undefined8 *)((long)&prng->field_0 + 0x88);\n    buf._136_8_ = *(undefined8 *)((long)&prng->field_0 + 0x90);\n    buf._144_8_ = *(undefined8 *)((long)&prng->field_0 + 0x98);\n    buf._152_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa0);\n    buf._160_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa8);\n    buf._168_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb0);\n    buf._176_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb8);\n    buf._184_8_ = (prng->field_0).chacha.idx;\n    buf._192_8_ = *(undefined8 *)((long)&prng->field_0 + 200);\n    buf._200_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd0);\n    buf._208_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd8);\n    buf._216_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe0);\n    buf._224_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe8);\n    buf._232_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf0);\n    buf._240_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf8);\n    buf._248_8_ = *(undefined8 *)((long)&prng->field_0 + 0x100);\n    uVar4 = 0x100;\n    if ((prng->field_0).rc4.s.x < 0x101) {\n      uVar4 = (prng->field_0).rc4.s.x;\n    }\n    iVar2 = rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4);\n    if (iVar2 == 0) {\n      iVar5 = 0xc;\n      do {\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      prng->ready = 1;\n    }\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uchar *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uchar buf [256];" type_identifier (array_declarator "buf [256]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = buf;" (assignment_expression "puVar6 = buf" identifier = identifier) ;) (for_statement "for (lVar3 = 0x20; lVar3 != 0; lVar3 = lVar3 + -1) {\n    *(undefined8 *)puVar6 = 0;\n    puVar6 = (uchar *)((long)puVar6 + 8);\n  }" for ( (assignment_expression "lVar3 = 0x20" identifier = number_literal) ; (binary_expression "lVar3 != 0" identifier != number_literal) ; (assignment_expression "lVar3 = lVar3 + -1" identifier = (binary_expression "lVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    *(undefined8 *)puVar6 = 0;\n    puVar6 = (uchar *)((long)puVar6 + 8);\n  }" { (expression_statement "*(undefined8 *)puVar6 = 0;" (assignment_expression "*(undefined8 *)puVar6 = 0" (pointer_expression "*(undefined8 *)puVar6" * (cast_expression "(undefined8 *)puVar6" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "puVar6 = (uchar *)((long)puVar6 + 8);" (assignment_expression "puVar6 = (uchar *)((long)puVar6 + 8)" identifier = (cast_expression "(uchar *)((long)puVar6 + 8)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 + 8)" ( (binary_expression "(long)puVar6 + 8" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) })) (if_statement "if (prng == (prng_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }" if (parenthesized_expression "(prng == (prng_state *)0x0)" ( (binary_expression "prng == (prng_state *)0x0" identifier == (cast_expression "(prng_state *)0x0" ( (type_descriptor "prng_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }" { comment (expression_statement "crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);" (call_expression "crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62)" identifier (argument_list "("prng != NULL","src/prngs/rc4.c",0x62)" ( (string_literal ""prng != NULL"" " string_content ") , (string_literal ""src/prngs/rc4.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (prng->ready == 0) {\n    buf._0_8_ = *(undefined8 *)((long)&prng->field_0 + 8);\n    buf._8_8_ = *(undefined8 *)((long)&prng->field_0 + 0x10);\n    buf._16_8_ = *(undefined8 *)((long)&prng->field_0 + 0x18);\n    buf._24_8_ = *(undefined8 *)((long)&prng->field_0 + 0x20);\n    buf._32_8_ = *(undefined8 *)((long)&prng->field_0 + 0x28);\n    buf._40_8_ = *(undefined8 *)((long)&prng->field_0 + 0x30);\n    buf._48_8_ = *(undefined8 *)((long)&prng->field_0 + 0x38);\n    buf._56_8_ = *(undefined8 *)((long)&prng->field_0 + 0x40);\n    buf._64_8_ = *(undefined8 *)((long)&prng->field_0 + 0x48);\n    buf._72_8_ = *(undefined8 *)((long)&prng->field_0 + 0x50);\n    buf._80_8_ = *(undefined8 *)((long)&prng->field_0 + 0x58);\n    buf._88_8_ = *(undefined8 *)((long)&prng->field_0 + 0x60);\n    buf._96_8_ = *(undefined8 *)((long)&prng->field_0 + 0x68);\n    buf._104_8_ = *(undefined8 *)((long)&prng->field_0 + 0x70);\n    buf._112_8_ = *(undefined8 *)((long)&prng->field_0 + 0x78);\n    buf._120_8_ = *(undefined8 *)((long)&prng->field_0 + 0x80);\n    buf._128_8_ = *(undefined8 *)((long)&prng->field_0 + 0x88);\n    buf._136_8_ = *(undefined8 *)((long)&prng->field_0 + 0x90);\n    buf._144_8_ = *(undefined8 *)((long)&prng->field_0 + 0x98);\n    buf._152_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa0);\n    buf._160_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa8);\n    buf._168_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb0);\n    buf._176_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb8);\n    buf._184_8_ = (prng->field_0).chacha.idx;\n    buf._192_8_ = *(undefined8 *)((long)&prng->field_0 + 200);\n    buf._200_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd0);\n    buf._208_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd8);\n    buf._216_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe0);\n    buf._224_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe8);\n    buf._232_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf0);\n    buf._240_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf8);\n    buf._248_8_ = *(undefined8 *)((long)&prng->field_0 + 0x100);\n    uVar4 = 0x100;\n    if ((prng->field_0).rc4.s.x < 0x101) {\n      uVar4 = (prng->field_0).rc4.s.x;\n    }\n    iVar2 = rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4);\n    if (iVar2 == 0) {\n      iVar5 = 0xc;\n      do {\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      prng->ready = 1;\n    }\n  }" if (parenthesized_expression "(prng->ready == 0)" ( (binary_expression "prng->ready == 0" (field_expression "prng->ready" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    buf._0_8_ = *(undefined8 *)((long)&prng->field_0 + 8);\n    buf._8_8_ = *(undefined8 *)((long)&prng->field_0 + 0x10);\n    buf._16_8_ = *(undefined8 *)((long)&prng->field_0 + 0x18);\n    buf._24_8_ = *(undefined8 *)((long)&prng->field_0 + 0x20);\n    buf._32_8_ = *(undefined8 *)((long)&prng->field_0 + 0x28);\n    buf._40_8_ = *(undefined8 *)((long)&prng->field_0 + 0x30);\n    buf._48_8_ = *(undefined8 *)((long)&prng->field_0 + 0x38);\n    buf._56_8_ = *(undefined8 *)((long)&prng->field_0 + 0x40);\n    buf._64_8_ = *(undefined8 *)((long)&prng->field_0 + 0x48);\n    buf._72_8_ = *(undefined8 *)((long)&prng->field_0 + 0x50);\n    buf._80_8_ = *(undefined8 *)((long)&prng->field_0 + 0x58);\n    buf._88_8_ = *(undefined8 *)((long)&prng->field_0 + 0x60);\n    buf._96_8_ = *(undefined8 *)((long)&prng->field_0 + 0x68);\n    buf._104_8_ = *(undefined8 *)((long)&prng->field_0 + 0x70);\n    buf._112_8_ = *(undefined8 *)((long)&prng->field_0 + 0x78);\n    buf._120_8_ = *(undefined8 *)((long)&prng->field_0 + 0x80);\n    buf._128_8_ = *(undefined8 *)((long)&prng->field_0 + 0x88);\n    buf._136_8_ = *(undefined8 *)((long)&prng->field_0 + 0x90);\n    buf._144_8_ = *(undefined8 *)((long)&prng->field_0 + 0x98);\n    buf._152_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa0);\n    buf._160_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa8);\n    buf._168_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb0);\n    buf._176_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb8);\n    buf._184_8_ = (prng->field_0).chacha.idx;\n    buf._192_8_ = *(undefined8 *)((long)&prng->field_0 + 200);\n    buf._200_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd0);\n    buf._208_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd8);\n    buf._216_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe0);\n    buf._224_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe8);\n    buf._232_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf0);\n    buf._240_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf8);\n    buf._248_8_ = *(undefined8 *)((long)&prng->field_0 + 0x100);\n    uVar4 = 0x100;\n    if ((prng->field_0).rc4.s.x < 0x101) {\n      uVar4 = (prng->field_0).rc4.s.x;\n    }\n    iVar2 = rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4);\n    if (iVar2 == 0) {\n      iVar5 = 0xc;\n      do {\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      prng->ready = 1;\n    }\n  }" { (expression_statement "buf._0_8_ = *(undefined8 *)((long)&prng->field_0 + 8);" (assignment_expression "buf._0_8_ = *(undefined8 *)((long)&prng->field_0 + 8)" (field_expression "buf._0_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 8)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 8)" ( (binary_expression "(long)&prng->field_0 + 8" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._8_8_ = *(undefined8 *)((long)&prng->field_0 + 0x10);" (assignment_expression "buf._8_8_ = *(undefined8 *)((long)&prng->field_0 + 0x10)" (field_expression "buf._8_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x10)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x10)" ( (binary_expression "(long)&prng->field_0 + 0x10" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._16_8_ = *(undefined8 *)((long)&prng->field_0 + 0x18);" (assignment_expression "buf._16_8_ = *(undefined8 *)((long)&prng->field_0 + 0x18)" (field_expression "buf._16_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x18)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x18)" ( (binary_expression "(long)&prng->field_0 + 0x18" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._24_8_ = *(undefined8 *)((long)&prng->field_0 + 0x20);" (assignment_expression "buf._24_8_ = *(undefined8 *)((long)&prng->field_0 + 0x20)" (field_expression "buf._24_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x20)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x20)" ( (binary_expression "(long)&prng->field_0 + 0x20" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._32_8_ = *(undefined8 *)((long)&prng->field_0 + 0x28);" (assignment_expression "buf._32_8_ = *(undefined8 *)((long)&prng->field_0 + 0x28)" (field_expression "buf._32_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x28)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x28)" ( (binary_expression "(long)&prng->field_0 + 0x28" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._40_8_ = *(undefined8 *)((long)&prng->field_0 + 0x30);" (assignment_expression "buf._40_8_ = *(undefined8 *)((long)&prng->field_0 + 0x30)" (field_expression "buf._40_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x30)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x30)" ( (binary_expression "(long)&prng->field_0 + 0x30" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._48_8_ = *(undefined8 *)((long)&prng->field_0 + 0x38);" (assignment_expression "buf._48_8_ = *(undefined8 *)((long)&prng->field_0 + 0x38)" (field_expression "buf._48_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x38)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x38)" ( (binary_expression "(long)&prng->field_0 + 0x38" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._56_8_ = *(undefined8 *)((long)&prng->field_0 + 0x40);" (assignment_expression "buf._56_8_ = *(undefined8 *)((long)&prng->field_0 + 0x40)" (field_expression "buf._56_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x40)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x40)" ( (binary_expression "(long)&prng->field_0 + 0x40" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._64_8_ = *(undefined8 *)((long)&prng->field_0 + 0x48);" (assignment_expression "buf._64_8_ = *(undefined8 *)((long)&prng->field_0 + 0x48)" (field_expression "buf._64_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x48)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x48)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x48)" ( (binary_expression "(long)&prng->field_0 + 0x48" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._72_8_ = *(undefined8 *)((long)&prng->field_0 + 0x50);" (assignment_expression "buf._72_8_ = *(undefined8 *)((long)&prng->field_0 + 0x50)" (field_expression "buf._72_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x50)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x50)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x50)" ( (binary_expression "(long)&prng->field_0 + 0x50" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._80_8_ = *(undefined8 *)((long)&prng->field_0 + 0x58);" (assignment_expression "buf._80_8_ = *(undefined8 *)((long)&prng->field_0 + 0x58)" (field_expression "buf._80_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x58)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x58)" ( (binary_expression "(long)&prng->field_0 + 0x58" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._88_8_ = *(undefined8 *)((long)&prng->field_0 + 0x60);" (assignment_expression "buf._88_8_ = *(undefined8 *)((long)&prng->field_0 + 0x60)" (field_expression "buf._88_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x60)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x60)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x60)" ( (binary_expression "(long)&prng->field_0 + 0x60" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._96_8_ = *(undefined8 *)((long)&prng->field_0 + 0x68);" (assignment_expression "buf._96_8_ = *(undefined8 *)((long)&prng->field_0 + 0x68)" (field_expression "buf._96_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x68)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x68)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x68)" ( (binary_expression "(long)&prng->field_0 + 0x68" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._104_8_ = *(undefined8 *)((long)&prng->field_0 + 0x70);" (assignment_expression "buf._104_8_ = *(undefined8 *)((long)&prng->field_0 + 0x70)" (field_expression "buf._104_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x70)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x70)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x70)" ( (binary_expression "(long)&prng->field_0 + 0x70" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._112_8_ = *(undefined8 *)((long)&prng->field_0 + 0x78);" (assignment_expression "buf._112_8_ = *(undefined8 *)((long)&prng->field_0 + 0x78)" (field_expression "buf._112_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x78)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x78)" ( (binary_expression "(long)&prng->field_0 + 0x78" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._120_8_ = *(undefined8 *)((long)&prng->field_0 + 0x80);" (assignment_expression "buf._120_8_ = *(undefined8 *)((long)&prng->field_0 + 0x80)" (field_expression "buf._120_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x80)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x80)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x80)" ( (binary_expression "(long)&prng->field_0 + 0x80" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._128_8_ = *(undefined8 *)((long)&prng->field_0 + 0x88);" (assignment_expression "buf._128_8_ = *(undefined8 *)((long)&prng->field_0 + 0x88)" (field_expression "buf._128_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x88)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x88)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x88)" ( (binary_expression "(long)&prng->field_0 + 0x88" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._136_8_ = *(undefined8 *)((long)&prng->field_0 + 0x90);" (assignment_expression "buf._136_8_ = *(undefined8 *)((long)&prng->field_0 + 0x90)" (field_expression "buf._136_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x90)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x90)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x90)" ( (binary_expression "(long)&prng->field_0 + 0x90" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._144_8_ = *(undefined8 *)((long)&prng->field_0 + 0x98);" (assignment_expression "buf._144_8_ = *(undefined8 *)((long)&prng->field_0 + 0x98)" (field_expression "buf._144_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x98)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x98)" ( (binary_expression "(long)&prng->field_0 + 0x98" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._152_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa0);" (assignment_expression "buf._152_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa0)" (field_expression "buf._152_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xa0)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xa0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xa0)" ( (binary_expression "(long)&prng->field_0 + 0xa0" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._160_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa8);" (assignment_expression "buf._160_8_ = *(undefined8 *)((long)&prng->field_0 + 0xa8)" (field_expression "buf._160_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xa8)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xa8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xa8)" ( (binary_expression "(long)&prng->field_0 + 0xa8" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._168_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb0);" (assignment_expression "buf._168_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb0)" (field_expression "buf._168_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xb0)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xb0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xb0)" ( (binary_expression "(long)&prng->field_0 + 0xb0" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._176_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb8);" (assignment_expression "buf._176_8_ = *(undefined8 *)((long)&prng->field_0 + 0xb8)" (field_expression "buf._176_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xb8)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xb8)" ( (binary_expression "(long)&prng->field_0 + 0xb8" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._184_8_ = (prng->field_0).chacha.idx;" (assignment_expression "buf._184_8_ = (prng->field_0).chacha.idx" (field_expression "buf._184_8_" identifier . field_identifier) = (field_expression "(prng->field_0).chacha.idx" (field_expression "(prng->field_0).chacha" (parenthesized_expression "(prng->field_0)" ( (field_expression "prng->field_0" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "buf._192_8_ = *(undefined8 *)((long)&prng->field_0 + 200);" (assignment_expression "buf._192_8_ = *(undefined8 *)((long)&prng->field_0 + 200)" (field_expression "buf._192_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 200)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 200)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 200)" ( (binary_expression "(long)&prng->field_0 + 200" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._200_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd0);" (assignment_expression "buf._200_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd0)" (field_expression "buf._200_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xd0)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xd0)" ( (binary_expression "(long)&prng->field_0 + 0xd0" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._208_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd8);" (assignment_expression "buf._208_8_ = *(undefined8 *)((long)&prng->field_0 + 0xd8)" (field_expression "buf._208_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xd8)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xd8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xd8)" ( (binary_expression "(long)&prng->field_0 + 0xd8" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._216_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe0);" (assignment_expression "buf._216_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe0)" (field_expression "buf._216_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xe0)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xe0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xe0)" ( (binary_expression "(long)&prng->field_0 + 0xe0" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._224_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe8);" (assignment_expression "buf._224_8_ = *(undefined8 *)((long)&prng->field_0 + 0xe8)" (field_expression "buf._224_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xe8)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xe8)" ( (binary_expression "(long)&prng->field_0 + 0xe8" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._232_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf0);" (assignment_expression "buf._232_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf0)" (field_expression "buf._232_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xf0)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xf0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xf0)" ( (binary_expression "(long)&prng->field_0 + 0xf0" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._240_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf8);" (assignment_expression "buf._240_8_ = *(undefined8 *)((long)&prng->field_0 + 0xf8)" (field_expression "buf._240_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0xf8)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0xf8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0xf8)" ( (binary_expression "(long)&prng->field_0 + 0xf8" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "buf._248_8_ = *(undefined8 *)((long)&prng->field_0 + 0x100);" (assignment_expression "buf._248_8_ = *(undefined8 *)((long)&prng->field_0 + 0x100)" (field_expression "buf._248_8_" identifier . field_identifier) = (pointer_expression "*(undefined8 *)((long)&prng->field_0 + 0x100)" * (cast_expression "(undefined8 *)((long)&prng->field_0 + 0x100)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&prng->field_0 + 0x100)" ( (binary_expression "(long)&prng->field_0 + 0x100" (cast_expression "(long)&prng->field_0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&prng->field_0" & (field_expression "prng->field_0" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar4 = 0x100;" (assignment_expression "uVar4 = 0x100" identifier = number_literal) ;) (if_statement "if ((prng->field_0).rc4.s.x < 0x101) {\n      uVar4 = (prng->field_0).rc4.s.x;\n    }" if (parenthesized_expression "((prng->field_0).rc4.s.x < 0x101)" ( (binary_expression "(prng->field_0).rc4.s.x < 0x101" (field_expression "(prng->field_0).rc4.s.x" (field_expression "(prng->field_0).rc4.s" (field_expression "(prng->field_0).rc4" (parenthesized_expression "(prng->field_0)" ( (field_expression "prng->field_0" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) < number_literal) )) (compound_statement "{\n      uVar4 = (prng->field_0).rc4.s.x;\n    }" { (expression_statement "uVar4 = (prng->field_0).rc4.s.x;" (assignment_expression "uVar4 = (prng->field_0).rc4.s.x" identifier = (field_expression "(prng->field_0).rc4.s.x" (field_expression "(prng->field_0).rc4.s" (field_expression "(prng->field_0).rc4" (parenthesized_expression "(prng->field_0)" ( (field_expression "prng->field_0" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) })) (expression_statement "iVar2 = rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4);" (assignment_expression "iVar2 = rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4)" identifier = (call_expression "rc4_stream_setup((rc4_state *)prng,buf,(ulong)uVar4)" identifier (argument_list "((rc4_state *)prng,buf,(ulong)uVar4)" ( (cast_expression "(rc4_state *)prng" ( (type_descriptor "rc4_state *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(ulong)uVar4" ( (type_descriptor "ulong" type_identifier) ) identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar5 = 0xc;\n      do {\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      prng->ready = 1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = 0xc;\n      do {\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);\n      prng->ready = 1;\n    }" { (expression_statement "iVar5 = 0xc;" (assignment_expression "iVar5 = 0xc" identifier = number_literal) ;) (do_statement "do {\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      } while (iVar5 != 0);" do (compound_statement "{\n        rc4_stream_keystream((rc4_state *)prng,buf,0x100);\n        iVar5 = iVar5 + -1;\n      }" { (expression_statement "rc4_stream_keystream((rc4_state *)prng,buf,0x100);" (call_expression "rc4_stream_keystream((rc4_state *)prng,buf,0x100)" identifier (argument_list "((rc4_state *)prng,buf,0x100)" ( (cast_expression "(rc4_state *)prng" ( (type_descriptor "rc4_state *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "prng->ready = 1;" (assignment_expression "prng->ready = 1" (field_expression "prng->ready" identifier -> field_identifier) = number_literal) ;) })) })) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int rc4_ready(uint *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 *puVar5;\n  long in_FS_OFFSET;\n  undefined8 local_138 [4];\n  undefined8 local_118;\n  undefined8 uStack_110;\n  undefined8 local_108;\n  undefined8 uStack_100;\n  undefined8 local_f8;\n  undefined8 uStack_f0;\n  undefined8 local_e8;\n  undefined8 uStack_e0;\n  undefined8 local_d8;\n  undefined8 uStack_d0;\n  undefined8 local_c8;\n  undefined8 uStack_c0;\n  undefined8 local_b8;\n  undefined8 uStack_b0;\n  undefined8 local_a8;\n  undefined8 uStack_a0;\n  undefined8 local_98;\n  undefined8 uStack_90;\n  undefined8 local_88;\n  undefined8 uStack_80;\n  undefined8 local_78;\n  undefined8 uStack_70;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar5 = local_138;\n  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if (param_1 == (uint *)0x0) {\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar1 = 0;\n  if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "int rc4_ready(uint *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 *puVar5;\n  long in_FS_OFFSET;\n  undefined8 local_138 [4];\n  undefined8 local_118;\n  undefined8 uStack_110;\n  undefined8 local_108;\n  undefined8 uStack_100;\n  undefined8 local_f8;\n  undefined8 uStack_f0;\n  undefined8 local_e8;\n  undefined8 uStack_e0;\n  undefined8 local_d8;\n  undefined8 uStack_d0;\n  undefined8 local_c8;\n  undefined8 uStack_c0;\n  undefined8 local_b8;\n  undefined8 uStack_b0;\n  undefined8 local_a8;\n  undefined8 uStack_a0;\n  undefined8 local_98;\n  undefined8 uStack_90;\n  undefined8 local_88;\n  undefined8 uStack_80;\n  undefined8 local_78;\n  undefined8 uStack_70;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar5 = local_138;\n  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if (param_1 == (uint *)0x0) {\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar1 = 0;\n  if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "rc4_ready(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 *puVar5;\n  long in_FS_OFFSET;\n  undefined8 local_138 [4];\n  undefined8 local_118;\n  undefined8 uStack_110;\n  undefined8 local_108;\n  undefined8 uStack_100;\n  undefined8 local_f8;\n  undefined8 uStack_f0;\n  undefined8 local_e8;\n  undefined8 uStack_e0;\n  undefined8 local_d8;\n  undefined8 uStack_d0;\n  undefined8 local_c8;\n  undefined8 uStack_c0;\n  undefined8 local_b8;\n  undefined8 uStack_b0;\n  undefined8 local_a8;\n  undefined8 uStack_a0;\n  undefined8 local_98;\n  undefined8 uStack_90;\n  undefined8 local_88;\n  undefined8 uStack_80;\n  undefined8 local_78;\n  undefined8 uStack_70;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar5 = local_138;\n  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if (param_1 == (uint *)0x0) {\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar1 = 0;\n  if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_138 [4];" type_identifier (array_declarator "local_138 [4]" identifier [ number_literal ]) ;) (declaration "undefined8 local_118;" type_identifier identifier ;) (declaration "undefined8 uStack_110;" type_identifier identifier ;) (declaration "undefined8 local_108;" type_identifier identifier ;) (declaration "undefined8 uStack_100;" type_identifier identifier ;) (declaration "undefined8 local_f8;" type_identifier identifier ;) (declaration "undefined8 uStack_f0;" type_identifier identifier ;) (declaration "undefined8 local_e8;" type_identifier identifier ;) (declaration "undefined8 uStack_e0;" type_identifier identifier ;) (declaration "undefined8 local_d8;" type_identifier identifier ;) (declaration "undefined8 uStack_d0;" type_identifier identifier ;) (declaration "undefined8 local_c8;" type_identifier identifier ;) (declaration "undefined8 uStack_c0;" type_identifier identifier ;) (declaration "undefined8 local_b8;" type_identifier identifier ;) (declaration "undefined8 uStack_b0;" type_identifier identifier ;) (declaration "undefined8 local_a8;" type_identifier identifier ;) (declaration "undefined8 uStack_a0;" type_identifier identifier ;) (declaration "undefined8 local_98;" type_identifier identifier ;) (declaration "undefined8 uStack_90;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined8 uStack_80;" type_identifier identifier ;) (declaration "undefined8 local_78;" type_identifier identifier ;) (declaration "undefined8 uStack_70;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 uStack_60;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 uStack_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 uStack_40;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "puVar5 = local_138;" (assignment_expression "puVar5 = local_138" identifier = identifier) ;) (for_statement "for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" for ( (assignment_expression "lVar2 = 0x20" identifier = number_literal) ; (binary_expression "lVar2 != 0" identifier != number_literal) ; (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) })) (if_statement "if (param_1 == (uint *)0x0) {\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }" { (expression_statement "crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);" (call_expression "crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62)" identifier (argument_list "("prng != NULL","src/prngs/rc4.c",0x62)" ( (string_literal ""prng != NULL"" " string_content ") , (string_literal ""src/prngs/rc4.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }" if (parenthesized_expression "((short)param_1[0x113c] == 0)" ( (binary_expression "(short)param_1[0x113c] == 0" (cast_expression "(short)param_1[0x113c]" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (subscript_expression "param_1[0x113c]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }" { (expression_statement "local_138[0] = *(undefined8 *)(param_1 + 2);" (assignment_expression "local_138[0] = *(undefined8 *)(param_1 + 2)" (subscript_expression "local_138[0]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 2)" * (cast_expression "(undefined8 *)(param_1 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "local_138[1] = *(undefined8 *)(param_1 + 4);" (assignment_expression "local_138[1] = *(undefined8 *)(param_1 + 4)" (subscript_expression "local_138[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_138[2] = *(undefined8 *)(param_1 + 6);" (assignment_expression "local_138[2] = *(undefined8 *)(param_1 + 6)" (subscript_expression "local_138[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 6)" * (cast_expression "(undefined8 *)(param_1 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) (expression_statement "local_138[3] = *(undefined8 *)(param_1 + 8);" (assignment_expression "local_138[3] = *(undefined8 *)(param_1 + 8)" (subscript_expression "local_138[3]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_118 = *(undefined8 *)(param_1 + 10);" (assignment_expression "local_118 = *(undefined8 *)(param_1 + 10)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 10)" * (cast_expression "(undefined8 *)(param_1 + 10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) ))))) ;) (expression_statement "uStack_110 = *(undefined8 *)(param_1 + 0xc);" (assignment_expression "uStack_110 = *(undefined8 *)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0xc)" * (cast_expression "(undefined8 *)(param_1 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_108 = *(undefined8 *)(param_1 + 0xe);" (assignment_expression "local_108 = *(undefined8 *)(param_1 + 0xe)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0xe)" * (cast_expression "(undefined8 *)(param_1 + 0xe)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe)" ( (binary_expression "param_1 + 0xe" identifier + number_literal) ))))) ;) (expression_statement "uStack_100 = *(undefined8 *)(param_1 + 0x10);" (assignment_expression "uStack_100 = *(undefined8 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "local_f8 = *(undefined8 *)(param_1 + 0x12);" (assignment_expression "local_f8 = *(undefined8 *)(param_1 + 0x12)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x12)" * (cast_expression "(undefined8 *)(param_1 + 0x12)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) ))))) ;) (expression_statement "uStack_f0 = *(undefined8 *)(param_1 + 0x14);" (assignment_expression "uStack_f0 = *(undefined8 *)(param_1 + 0x14)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x14)" * (cast_expression "(undefined8 *)(param_1 + 0x14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_e8 = *(undefined8 *)(param_1 + 0x16);" (assignment_expression "local_e8 = *(undefined8 *)(param_1 + 0x16)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x16)" * (cast_expression "(undefined8 *)(param_1 + 0x16)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) ))))) ;) (expression_statement "uStack_e0 = *(undefined8 *)(param_1 + 0x18);" (assignment_expression "uStack_e0 = *(undefined8 *)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "local_d8 = *(undefined8 *)(param_1 + 0x1a);" (assignment_expression "local_d8 = *(undefined8 *)(param_1 + 0x1a)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x1a)" * (cast_expression "(undefined8 *)(param_1 + 0x1a)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a)" ( (binary_expression "param_1 + 0x1a" identifier + number_literal) ))))) ;) (expression_statement "uStack_d0 = *(undefined8 *)(param_1 + 0x1c);" (assignment_expression "uStack_d0 = *(undefined8 *)(param_1 + 0x1c)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x1c)" * (cast_expression "(undefined8 *)(param_1 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "local_c8 = *(undefined8 *)(param_1 + 0x1e);" (assignment_expression "local_c8 = *(undefined8 *)(param_1 + 0x1e)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x1e)" * (cast_expression "(undefined8 *)(param_1 + 0x1e)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1e)" ( (binary_expression "param_1 + 0x1e" identifier + number_literal) ))))) ;) (expression_statement "uStack_c0 = *(undefined8 *)(param_1 + 0x20);" (assignment_expression "uStack_c0 = *(undefined8 *)(param_1 + 0x20)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "local_b8 = *(undefined8 *)(param_1 + 0x22);" (assignment_expression "local_b8 = *(undefined8 *)(param_1 + 0x22)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x22)" * (cast_expression "(undefined8 *)(param_1 + 0x22)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x22)" ( (binary_expression "param_1 + 0x22" identifier + number_literal) ))))) ;) (expression_statement "uStack_b0 = *(undefined8 *)(param_1 + 0x24);" (assignment_expression "uStack_b0 = *(undefined8 *)(param_1 + 0x24)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x24)" * (cast_expression "(undefined8 *)(param_1 + 0x24)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "local_a8 = *(undefined8 *)(param_1 + 0x26);" (assignment_expression "local_a8 = *(undefined8 *)(param_1 + 0x26)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x26)" * (cast_expression "(undefined8 *)(param_1 + 0x26)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x26)" ( (binary_expression "param_1 + 0x26" identifier + number_literal) ))))) ;) (expression_statement "uStack_a0 = *(undefined8 *)(param_1 + 0x28);" (assignment_expression "uStack_a0 = *(undefined8 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_98 = *(undefined8 *)(param_1 + 0x2a);" (assignment_expression "local_98 = *(undefined8 *)(param_1 + 0x2a)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x2a)" * (cast_expression "(undefined8 *)(param_1 + 0x2a)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2a)" ( (binary_expression "param_1 + 0x2a" identifier + number_literal) ))))) ;) (expression_statement "uStack_90 = *(undefined8 *)(param_1 + 0x2c);" (assignment_expression "uStack_90 = *(undefined8 *)(param_1 + 0x2c)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x2c)" * (cast_expression "(undefined8 *)(param_1 + 0x2c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "local_88 = *(undefined8 *)(param_1 + 0x2e);" (assignment_expression "local_88 = *(undefined8 *)(param_1 + 0x2e)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x2e)" * (cast_expression "(undefined8 *)(param_1 + 0x2e)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2e)" ( (binary_expression "param_1 + 0x2e" identifier + number_literal) ))))) ;) (expression_statement "uStack_80 = *(undefined8 *)(param_1 + 0x30);" (assignment_expression "uStack_80 = *(undefined8 *)(param_1 + 0x30)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x30)" * (cast_expression "(undefined8 *)(param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "local_78 = *(undefined8 *)(param_1 + 0x32);" (assignment_expression "local_78 = *(undefined8 *)(param_1 + 0x32)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x32)" * (cast_expression "(undefined8 *)(param_1 + 0x32)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x32)" ( (binary_expression "param_1 + 0x32" identifier + number_literal) ))))) ;) (expression_statement "uStack_70 = *(undefined8 *)(param_1 + 0x34);" (assignment_expression "uStack_70 = *(undefined8 *)(param_1 + 0x34)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x34)" * (cast_expression "(undefined8 *)(param_1 + 0x34)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "local_68 = *(undefined8 *)(param_1 + 0x36);" (assignment_expression "local_68 = *(undefined8 *)(param_1 + 0x36)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x36)" * (cast_expression "(undefined8 *)(param_1 + 0x36)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x36)" ( (binary_expression "param_1 + 0x36" identifier + number_literal) ))))) ;) (expression_statement "uStack_60 = *(undefined8 *)(param_1 + 0x38);" (assignment_expression "uStack_60 = *(undefined8 *)(param_1 + 0x38)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "local_58 = *(undefined8 *)(param_1 + 0x3a);" (assignment_expression "local_58 = *(undefined8 *)(param_1 + 0x3a)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x3a)" * (cast_expression "(undefined8 *)(param_1 + 0x3a)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3a)" ( (binary_expression "param_1 + 0x3a" identifier + number_literal) ))))) ;) (expression_statement "uStack_50 = *(undefined8 *)(param_1 + 0x3c);" (assignment_expression "uStack_50 = *(undefined8 *)(param_1 + 0x3c)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x3c)" * (cast_expression "(undefined8 *)(param_1 + 0x3c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "local_48 = *(undefined8 *)(param_1 + 0x3e);" (assignment_expression "local_48 = *(undefined8 *)(param_1 + 0x3e)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x3e)" * (cast_expression "(undefined8 *)(param_1 + 0x3e)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e)" ( (binary_expression "param_1 + 0x3e" identifier + number_literal) ))))) ;) (expression_statement "uStack_40 = *(undefined8 *)(param_1 + 0x40);" (assignment_expression "uStack_40 = *(undefined8 *)(param_1 + 0x40)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x40)" * (cast_expression "(undefined8 *)(param_1 + 0x40)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = 0x100;" (assignment_expression "uVar3 = 0x100" identifier = number_literal) ;) (if_statement "if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }" if (parenthesized_expression "(*param_1 < 0x101)" ( (binary_expression "*param_1 < 0x101" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\n      uVar3 = *param_1;\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "iVar1 = rc4_stream_setup(param_1,local_138,uVar3);" (assignment_expression "iVar1 = rc4_stream_setup(param_1,local_138,uVar3)" identifier = (call_expression "rc4_stream_setup(param_1,local_138,uVar3)" identifier (argument_list "(param_1,local_138,uVar3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }" { (expression_statement "iVar4 = 0xc;" (assignment_expression "iVar4 = 0xc" identifier = number_literal) ;) (do_statement "do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);" do (compound_statement "{\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      }" { (expression_statement "rc4_stream_keystream(param_1,local_138,0x100);" (call_expression "rc4_stream_keystream(param_1,local_138,0x100)" identifier (argument_list "(param_1,local_138,0x100)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (expression_statement "*(undefined2 *)(param_1 + 0x113c) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 0x113c) = 1" (pointer_expression "*(undefined2 *)(param_1 + 0x113c)" * (cast_expression "(undefined2 *)(param_1 + 0x113c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x113c)" ( (binary_expression "param_1 + 0x113c" identifier + number_literal) )))) = number_literal) ;) })) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (subscript_expression IDENT [ LIT ])) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int rc4_ready(uint *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 *puVar5;\n  long in_FS_OFFSET;\n  undefined8 local_138 [4];\n  undefined8 local_118;\n  undefined8 uStack_110;\n  undefined8 local_108;\n  undefined8 uStack_100;\n  undefined8 local_f8;\n  undefined8 uStack_f0;\n  undefined8 local_e8;\n  undefined8 uStack_e0;\n  undefined8 local_d8;\n  undefined8 uStack_d0;\n  undefined8 local_c8;\n  undefined8 uStack_c0;\n  undefined8 local_b8;\n  undefined8 uStack_b0;\n  undefined8 local_a8;\n  undefined8 uStack_a0;\n  undefined8 local_98;\n  undefined8 uStack_90;\n  undefined8 local_88;\n  undefined8 uStack_80;\n  undefined8 local_78;\n  undefined8 uStack_70;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar5 = local_138;\n  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if (param_1 == (uint *)0x0) {\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar1 = 0;\n  if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "int") (function_declarator "rc4_ready(uint *param_1)" (identifier "rc4_ready") (parameter_list "(uint *param_1)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 *puVar5;\n  long in_FS_OFFSET;\n  undefined8 local_138 [4];\n  undefined8 local_118;\n  undefined8 uStack_110;\n  undefined8 local_108;\n  undefined8 uStack_100;\n  undefined8 local_f8;\n  undefined8 uStack_f0;\n  undefined8 local_e8;\n  undefined8 uStack_e0;\n  undefined8 local_d8;\n  undefined8 uStack_d0;\n  undefined8 local_c8;\n  undefined8 uStack_c0;\n  undefined8 local_b8;\n  undefined8 uStack_b0;\n  undefined8 local_a8;\n  undefined8 uStack_a0;\n  undefined8 local_98;\n  undefined8 uStack_90;\n  undefined8 local_88;\n  undefined8 uStack_80;\n  undefined8 local_78;\n  undefined8 uStack_70;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar5 = local_138;\n  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }\n  if (param_1 == (uint *)0x0) {\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }\n  iVar1 = 0;\n  if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_138 [4];" (type_identifier "undefined8") (array_declarator "local_138 [4]" (identifier "local_138") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined8 local_118;" (type_identifier "undefined8") (identifier "local_118") (; ";")) (declaration "undefined8 uStack_110;" (type_identifier "undefined8") (identifier "uStack_110") (; ";")) (declaration "undefined8 local_108;" (type_identifier "undefined8") (identifier "local_108") (; ";")) (declaration "undefined8 uStack_100;" (type_identifier "undefined8") (identifier "uStack_100") (; ";")) (declaration "undefined8 local_f8;" (type_identifier "undefined8") (identifier "local_f8") (; ";")) (declaration "undefined8 uStack_f0;" (type_identifier "undefined8") (identifier "uStack_f0") (; ";")) (declaration "undefined8 local_e8;" (type_identifier "undefined8") (identifier "local_e8") (; ";")) (declaration "undefined8 uStack_e0;" (type_identifier "undefined8") (identifier "uStack_e0") (; ";")) (declaration "undefined8 local_d8;" (type_identifier "undefined8") (identifier "local_d8") (; ";")) (declaration "undefined8 uStack_d0;" (type_identifier "undefined8") (identifier "uStack_d0") (; ";")) (declaration "undefined8 local_c8;" (type_identifier "undefined8") (identifier "local_c8") (; ";")) (declaration "undefined8 uStack_c0;" (type_identifier "undefined8") (identifier "uStack_c0") (; ";")) (declaration "undefined8 local_b8;" (type_identifier "undefined8") (identifier "local_b8") (; ";")) (declaration "undefined8 uStack_b0;" (type_identifier "undefined8") (identifier "uStack_b0") (; ";")) (declaration "undefined8 local_a8;" (type_identifier "undefined8") (identifier "local_a8") (; ";")) (declaration "undefined8 uStack_a0;" (type_identifier "undefined8") (identifier "uStack_a0") (; ";")) (declaration "undefined8 local_98;" (type_identifier "undefined8") (identifier "local_98") (; ";")) (declaration "undefined8 uStack_90;" (type_identifier "undefined8") (identifier "uStack_90") (; ";")) (declaration "undefined8 local_88;" (type_identifier "undefined8") (identifier "local_88") (; ";")) (declaration "undefined8 uStack_80;" (type_identifier "undefined8") (identifier "uStack_80") (; ";")) (declaration "undefined8 local_78;" (type_identifier "undefined8") (identifier "local_78") (; ";")) (declaration "undefined8 uStack_70;" (type_identifier "undefined8") (identifier "uStack_70") (; ";")) (declaration "undefined8 local_68;" (type_identifier "undefined8") (identifier "local_68") (; ";")) (declaration "undefined8 uStack_60;" (type_identifier "undefined8") (identifier "uStack_60") (; ";")) (declaration "undefined8 local_58;" (type_identifier "undefined8") (identifier "local_58") (; ";")) (declaration "undefined8 uStack_50;" (type_identifier "undefined8") (identifier "uStack_50") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined8 uStack_40;" (type_identifier "undefined8") (identifier "uStack_40") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "puVar5 = local_138;" (assignment_expression "puVar5 = local_138" (identifier "puVar5") (= "=") (identifier "local_138")) (; ";")) (for_statement "for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" (for "for") (( "(") (assignment_expression "lVar2 = 0x20" (identifier "lVar2") (= "=") (number_literal "0x20")) (; ";") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "lVar2 = lVar2 + -1" (identifier "lVar2") (= "=") (binary_expression "lVar2 + -1" (identifier "lVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar5 = 0;\n    puVar5 = puVar5 + 1;\n  }" ({ "{") (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (if_statement "if (param_1 == (uint *)0x0) {\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }" (if "if") (parenthesized_expression "(param_1 == (uint *)0x0)" (( "(") (binary_expression "param_1 == (uint *)0x0" (identifier "param_1") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);\n  }" ({ "{") (expression_statement "crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);" (call_expression "crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62)" (identifier "crypt_argchk") (argument_list "("prng != NULL","src/prngs/rc4.c",0x62)" (( "(") (string_literal ""prng != NULL"" (" """) (string_content "prng != NULL") (" """)) (, ",") (string_literal ""src/prngs/rc4.c"" (" """) (string_content "src/prngs/rc4.c") (" """)) (, ",") (number_literal "0x62") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((short)param_1[0x113c] == 0) {\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }" (if "if") (parenthesized_expression "((short)param_1[0x113c] == 0)" (( "(") (binary_expression "(short)param_1[0x113c] == 0" (cast_expression "(short)param_1[0x113c]" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (subscript_expression "param_1[0x113c]" (identifier "param_1") ([ "[") (number_literal "0x113c") (] "]"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_138[0] = *(undefined8 *)(param_1 + 2);\n    local_138[1] = *(undefined8 *)(param_1 + 4);\n    local_138[2] = *(undefined8 *)(param_1 + 6);\n    local_138[3] = *(undefined8 *)(param_1 + 8);\n    local_118 = *(undefined8 *)(param_1 + 10);\n    uStack_110 = *(undefined8 *)(param_1 + 0xc);\n    local_108 = *(undefined8 *)(param_1 + 0xe);\n    uStack_100 = *(undefined8 *)(param_1 + 0x10);\n    local_f8 = *(undefined8 *)(param_1 + 0x12);\n    uStack_f0 = *(undefined8 *)(param_1 + 0x14);\n    local_e8 = *(undefined8 *)(param_1 + 0x16);\n    uStack_e0 = *(undefined8 *)(param_1 + 0x18);\n    local_d8 = *(undefined8 *)(param_1 + 0x1a);\n    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);\n    local_c8 = *(undefined8 *)(param_1 + 0x1e);\n    uStack_c0 = *(undefined8 *)(param_1 + 0x20);\n    local_b8 = *(undefined8 *)(param_1 + 0x22);\n    uStack_b0 = *(undefined8 *)(param_1 + 0x24);\n    local_a8 = *(undefined8 *)(param_1 + 0x26);\n    uStack_a0 = *(undefined8 *)(param_1 + 0x28);\n    local_98 = *(undefined8 *)(param_1 + 0x2a);\n    uStack_90 = *(undefined8 *)(param_1 + 0x2c);\n    local_88 = *(undefined8 *)(param_1 + 0x2e);\n    uStack_80 = *(undefined8 *)(param_1 + 0x30);\n    local_78 = *(undefined8 *)(param_1 + 0x32);\n    uStack_70 = *(undefined8 *)(param_1 + 0x34);\n    local_68 = *(undefined8 *)(param_1 + 0x36);\n    uStack_60 = *(undefined8 *)(param_1 + 0x38);\n    local_58 = *(undefined8 *)(param_1 + 0x3a);\n    uStack_50 = *(undefined8 *)(param_1 + 0x3c);\n    local_48 = *(undefined8 *)(param_1 + 0x3e);\n    uStack_40 = *(undefined8 *)(param_1 + 0x40);\n    uVar3 = 0x100;\n    if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }\n    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);\n    if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }\n  }" ({ "{") (expression_statement "local_138[0] = *(undefined8 *)(param_1 + 2);" (assignment_expression "local_138[0] = *(undefined8 *)(param_1 + 2)" (subscript_expression "local_138[0]" (identifier "local_138") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 2)" (* "*") (cast_expression "(undefined8 *)(param_1 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "local_138[1] = *(undefined8 *)(param_1 + 4);" (assignment_expression "local_138[1] = *(undefined8 *)(param_1 + 4)" (subscript_expression "local_138[1]" (identifier "local_138") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 4)" (* "*") (cast_expression "(undefined8 *)(param_1 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_138[2] = *(undefined8 *)(param_1 + 6);" (assignment_expression "local_138[2] = *(undefined8 *)(param_1 + 6)" (subscript_expression "local_138[2]" (identifier "local_138") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 6)" (* "*") (cast_expression "(undefined8 *)(param_1 + 6)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")"))))) (; ";")) (expression_statement "local_138[3] = *(undefined8 *)(param_1 + 8);" (assignment_expression "local_138[3] = *(undefined8 *)(param_1 + 8)" (subscript_expression "local_138[3]" (identifier "local_138") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_118 = *(undefined8 *)(param_1 + 10);" (assignment_expression "local_118 = *(undefined8 *)(param_1 + 10)" (identifier "local_118") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")"))))) (; ";")) (expression_statement "uStack_110 = *(undefined8 *)(param_1 + 0xc);" (assignment_expression "uStack_110 = *(undefined8 *)(param_1 + 0xc)" (identifier "uStack_110") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "local_108 = *(undefined8 *)(param_1 + 0xe);" (assignment_expression "local_108 = *(undefined8 *)(param_1 + 0xe)" (identifier "local_108") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0xe)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xe)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe)" (( "(") (binary_expression "param_1 + 0xe" (identifier "param_1") (+ "+") (number_literal "0xe")) () ")"))))) (; ";")) (expression_statement "uStack_100 = *(undefined8 *)(param_1 + 0x10);" (assignment_expression "uStack_100 = *(undefined8 *)(param_1 + 0x10)" (identifier "uStack_100") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "local_f8 = *(undefined8 *)(param_1 + 0x12);" (assignment_expression "local_f8 = *(undefined8 *)(param_1 + 0x12)" (identifier "local_f8") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x12)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x12)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x12)" (( "(") (binary_expression "param_1 + 0x12" (identifier "param_1") (+ "+") (number_literal "0x12")) () ")"))))) (; ";")) (expression_statement "uStack_f0 = *(undefined8 *)(param_1 + 0x14);" (assignment_expression "uStack_f0 = *(undefined8 *)(param_1 + 0x14)" (identifier "uStack_f0") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_e8 = *(undefined8 *)(param_1 + 0x16);" (assignment_expression "local_e8 = *(undefined8 *)(param_1 + 0x16)" (identifier "local_e8") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x16)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x16)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16)" (( "(") (binary_expression "param_1 + 0x16" (identifier "param_1") (+ "+") (number_literal "0x16")) () ")"))))) (; ";")) (expression_statement "uStack_e0 = *(undefined8 *)(param_1 + 0x18);" (assignment_expression "uStack_e0 = *(undefined8 *)(param_1 + 0x18)" (identifier "uStack_e0") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "local_d8 = *(undefined8 *)(param_1 + 0x1a);" (assignment_expression "local_d8 = *(undefined8 *)(param_1 + 0x1a)" (identifier "local_d8") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x1a)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1a)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a)" (( "(") (binary_expression "param_1 + 0x1a" (identifier "param_1") (+ "+") (number_literal "0x1a")) () ")"))))) (; ";")) (expression_statement "uStack_d0 = *(undefined8 *)(param_1 + 0x1c);" (assignment_expression "uStack_d0 = *(undefined8 *)(param_1 + 0x1c)" (identifier "uStack_d0") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "local_c8 = *(undefined8 *)(param_1 + 0x1e);" (assignment_expression "local_c8 = *(undefined8 *)(param_1 + 0x1e)" (identifier "local_c8") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x1e)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1e)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1e)" (( "(") (binary_expression "param_1 + 0x1e" (identifier "param_1") (+ "+") (number_literal "0x1e")) () ")"))))) (; ";")) (expression_statement "uStack_c0 = *(undefined8 *)(param_1 + 0x20);" (assignment_expression "uStack_c0 = *(undefined8 *)(param_1 + 0x20)" (identifier "uStack_c0") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "local_b8 = *(undefined8 *)(param_1 + 0x22);" (assignment_expression "local_b8 = *(undefined8 *)(param_1 + 0x22)" (identifier "local_b8") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x22)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x22)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x22)" (( "(") (binary_expression "param_1 + 0x22" (identifier "param_1") (+ "+") (number_literal "0x22")) () ")"))))) (; ";")) (expression_statement "uStack_b0 = *(undefined8 *)(param_1 + 0x24);" (assignment_expression "uStack_b0 = *(undefined8 *)(param_1 + 0x24)" (identifier "uStack_b0") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "local_a8 = *(undefined8 *)(param_1 + 0x26);" (assignment_expression "local_a8 = *(undefined8 *)(param_1 + 0x26)" (identifier "local_a8") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x26)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x26)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x26)" (( "(") (binary_expression "param_1 + 0x26" (identifier "param_1") (+ "+") (number_literal "0x26")) () ")"))))) (; ";")) (expression_statement "uStack_a0 = *(undefined8 *)(param_1 + 0x28);" (assignment_expression "uStack_a0 = *(undefined8 *)(param_1 + 0x28)" (identifier "uStack_a0") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_98 = *(undefined8 *)(param_1 + 0x2a);" (assignment_expression "local_98 = *(undefined8 *)(param_1 + 0x2a)" (identifier "local_98") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x2a)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x2a)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2a)" (( "(") (binary_expression "param_1 + 0x2a" (identifier "param_1") (+ "+") (number_literal "0x2a")) () ")"))))) (; ";")) (expression_statement "uStack_90 = *(undefined8 *)(param_1 + 0x2c);" (assignment_expression "uStack_90 = *(undefined8 *)(param_1 + 0x2c)" (identifier "uStack_90") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x2c)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x2c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "local_88 = *(undefined8 *)(param_1 + 0x2e);" (assignment_expression "local_88 = *(undefined8 *)(param_1 + 0x2e)" (identifier "local_88") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x2e)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x2e)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2e)" (( "(") (binary_expression "param_1 + 0x2e" (identifier "param_1") (+ "+") (number_literal "0x2e")) () ")"))))) (; ";")) (expression_statement "uStack_80 = *(undefined8 *)(param_1 + 0x30);" (assignment_expression "uStack_80 = *(undefined8 *)(param_1 + 0x30)" (identifier "uStack_80") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "local_78 = *(undefined8 *)(param_1 + 0x32);" (assignment_expression "local_78 = *(undefined8 *)(param_1 + 0x32)" (identifier "local_78") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x32)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x32)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x32)" (( "(") (binary_expression "param_1 + 0x32" (identifier "param_1") (+ "+") (number_literal "0x32")) () ")"))))) (; ";")) (expression_statement "uStack_70 = *(undefined8 *)(param_1 + 0x34);" (assignment_expression "uStack_70 = *(undefined8 *)(param_1 + 0x34)" (identifier "uStack_70") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x34)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x34)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "local_68 = *(undefined8 *)(param_1 + 0x36);" (assignment_expression "local_68 = *(undefined8 *)(param_1 + 0x36)" (identifier "local_68") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x36)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x36)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x36)" (( "(") (binary_expression "param_1 + 0x36" (identifier "param_1") (+ "+") (number_literal "0x36")) () ")"))))) (; ";")) (expression_statement "uStack_60 = *(undefined8 *)(param_1 + 0x38);" (assignment_expression "uStack_60 = *(undefined8 *)(param_1 + 0x38)" (identifier "uStack_60") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "local_58 = *(undefined8 *)(param_1 + 0x3a);" (assignment_expression "local_58 = *(undefined8 *)(param_1 + 0x3a)" (identifier "local_58") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x3a)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x3a)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3a)" (( "(") (binary_expression "param_1 + 0x3a" (identifier "param_1") (+ "+") (number_literal "0x3a")) () ")"))))) (; ";")) (expression_statement "uStack_50 = *(undefined8 *)(param_1 + 0x3c);" (assignment_expression "uStack_50 = *(undefined8 *)(param_1 + 0x3c)" (identifier "uStack_50") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x3c)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x3c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (expression_statement "local_48 = *(undefined8 *)(param_1 + 0x3e);" (assignment_expression "local_48 = *(undefined8 *)(param_1 + 0x3e)" (identifier "local_48") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x3e)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x3e)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e)" (( "(") (binary_expression "param_1 + 0x3e" (identifier "param_1") (+ "+") (number_literal "0x3e")) () ")"))))) (; ";")) (expression_statement "uStack_40 = *(undefined8 *)(param_1 + 0x40);" (assignment_expression "uStack_40 = *(undefined8 *)(param_1 + 0x40)" (identifier "uStack_40") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "uVar3 = 0x100;" (assignment_expression "uVar3 = 0x100" (identifier "uVar3") (= "=") (number_literal "0x100")) (; ";")) (if_statement "if (*param_1 < 0x101) {\n      uVar3 = *param_1;\n    }" (if "if") (parenthesized_expression "(*param_1 < 0x101)" (( "(") (binary_expression "*param_1 < 0x101" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (number_literal "0x101")) () ")")) (compound_statement "{\n      uVar3 = *param_1;\n    }" ({ "{") (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "iVar1 = rc4_stream_setup(param_1,local_138,uVar3);" (assignment_expression "iVar1 = rc4_stream_setup(param_1,local_138,uVar3)" (identifier "iVar1") (= "=") (call_expression "rc4_stream_setup(param_1,local_138,uVar3)" (identifier "rc4_stream_setup") (argument_list "(param_1,local_138,uVar3)" (( "(") (identifier "param_1") (, ",") (identifier "local_138") (, ",") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = 0xc;\n      do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n      *(undefined2 *)(param_1 + 0x113c) = 1;\n    }" ({ "{") (expression_statement "iVar4 = 0xc;" (assignment_expression "iVar4 = 0xc" (identifier "iVar4") (= "=") (number_literal "0xc")) (; ";")) (do_statement "do {\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);" (do "do") (compound_statement "{\n        rc4_stream_keystream(param_1,local_138,0x100);\n        iVar4 = iVar4 + -1;\n      }" ({ "{") (expression_statement "rc4_stream_keystream(param_1,local_138,0x100);" (call_expression "rc4_stream_keystream(param_1,local_138,0x100)" (identifier "rc4_stream_keystream") (argument_list "(param_1,local_138,0x100)" (( "(") (identifier "param_1") (, ",") (identifier "local_138") (, ",") (number_literal "0x100") () ")"))) (; ";")) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x113c) = 1;" (assignment_expression "*(undefined2 *)(param_1 + 0x113c) = 1" (pointer_expression "*(undefined2 *)(param_1 + 0x113c)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x113c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x113c)" (( "(") (binary_expression "param_1 + 0x113c" (identifier "param_1") (+ "+") (number_literal "0x113c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_3)

{
  long var_9;
  int var_6;
  long var_2;
  type_2 uVar4;
  int var_8;
  type_3 *puVar6;
  long var_1;
  type_3 buf [256];
  
  var_9 = *(long *)(var_1 + 0x28);
  puVar6 = buf;
  for (var_2 = 0x20; var_2 != 0; var_2 = var_2 + -1) {
    *(type_4 *)puVar6 = 0;
    puVar6 = (type_3 *)((long)puVar6 + 8);
  }
  if (var_3 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_4("prng != NULL","src/prngs/rc4.c",0x62);
  }
  var_6 = 0;
  if (var_3->ready == 0) {
    buf._0_8_ = *(type_4 *)((long)&var_3->field_0 + 8);
    buf._8_8_ = *(type_4 *)((long)&var_3->field_0 + 0x10);
    buf._16_8_ = *(type_4 *)((long)&var_3->field_0 + 0x18);
    buf._24_8_ = *(type_4 *)((long)&var_3->field_0 + 0x20);
    buf._32_8_ = *(type_4 *)((long)&var_3->field_0 + 0x28);
    buf._40_8_ = *(type_4 *)((long)&var_3->field_0 + 0x30);
    buf._48_8_ = *(type_4 *)((long)&var_3->field_0 + 0x38);
    buf._56_8_ = *(type_4 *)((long)&var_3->field_0 + 0x40);
    buf._64_8_ = *(type_4 *)((long)&var_3->field_0 + 0x48);
    buf._72_8_ = *(type_4 *)((long)&var_3->field_0 + 0x50);
    buf._80_8_ = *(type_4 *)((long)&var_3->field_0 + 0x58);
    buf._88_8_ = *(type_4 *)((long)&var_3->field_0 + 0x60);
    buf._96_8_ = *(type_4 *)((long)&var_3->field_0 + 0x68);
    buf._104_8_ = *(type_4 *)((long)&var_3->field_0 + 0x70);
    buf._112_8_ = *(type_4 *)((long)&var_3->field_0 + 0x78);
    buf._120_8_ = *(type_4 *)((long)&var_3->field_0 + 0x80);
    buf._128_8_ = *(type_4 *)((long)&var_3->field_0 + 0x88);
    buf._136_8_ = *(type_4 *)((long)&var_3->field_0 + 0x90);
    buf._144_8_ = *(type_4 *)((long)&var_3->field_0 + 0x98);
    buf._152_8_ = *(type_4 *)((long)&var_3->field_0 + 0xa0);
    buf._160_8_ = *(type_4 *)((long)&var_3->field_0 + 0xa8);
    buf._168_8_ = *(type_4 *)((long)&var_3->field_0 + 0xb0);
    buf._176_8_ = *(type_4 *)((long)&var_3->field_0 + 0xb8);
    buf._184_8_ = (var_3->field_0).chacha.idx;
    buf._192_8_ = *(type_4 *)((long)&var_3->field_0 + 200);
    buf._200_8_ = *(type_4 *)((long)&var_3->field_0 + 0xd0);
    buf._208_8_ = *(type_4 *)((long)&var_3->field_0 + 0xd8);
    buf._216_8_ = *(type_4 *)((long)&var_3->field_0 + 0xe0);
    buf._224_8_ = *(type_4 *)((long)&var_3->field_0 + 0xe8);
    buf._232_8_ = *(type_4 *)((long)&var_3->field_0 + 0xf0);
    buf._240_8_ = *(type_4 *)((long)&var_3->field_0 + 0xf8);
    buf._248_8_ = *(type_4 *)((long)&var_3->field_0 + 0x100);
    uVar4 = 0x100;
    if ((var_3->field_0).rc4.s.x < 0x101) {
      uVar4 = (var_3->field_0).rc4.s.x;
    }
    var_6 = var_5((type_5 *)var_3,buf,(type_6)uVar4);
    if (var_6 == 0) {
      var_8 = 0xc;
      do {
        var_7((type_5 *)var_3,buf,0x100);
        var_8 = var_8 + -1;
      } while (var_8 != 0);
      var_3->ready = 1;
    }
  }
  if (var_9 == *(long *)(var_1 + 0x28)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


(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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

int MASKED(uint *param_1)

{
  int iVar1;
  long lVar2;
  uint uVar3;
  int iVar4;
  undefined8 *puVar5;
  long in_FS_OFFSET;
  undefined8 local_138 [4];
  undefined8 local_118;
  undefined8 uStack_110;
  undefined8 local_108;
  undefined8 uStack_100;
  undefined8 local_f8;
  undefined8 uStack_f0;
  undefined8 local_e8;
  undefined8 uStack_e0;
  undefined8 local_d8;
  undefined8 uStack_d0;
  undefined8 local_c8;
  undefined8 uStack_c0;
  undefined8 local_b8;
  undefined8 uStack_b0;
  undefined8 local_a8;
  undefined8 uStack_a0;
  undefined8 local_98;
  undefined8 uStack_90;
  undefined8 local_88;
  undefined8 uStack_80;
  undefined8 local_78;
  undefined8 uStack_70;
  undefined8 local_68;
  undefined8 uStack_60;
  undefined8 local_58;
  undefined8 uStack_50;
  undefined8 local_48;
  undefined8 uStack_40;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  puVar5 = local_138;
  for (lVar2 = 0x20; lVar2 != 0; lVar2 = lVar2 + -1) {
    *puVar5 = 0;
    puVar5 = puVar5 + 1;
  }
  if (param_1 == (uint *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("prng != NULL","src/prngs/rc4.c",0x62);
  }
  iVar1 = 0;
  if ((short)param_1[0x113c] == 0) {
    local_138[0] = *(undefined8 *)(param_1 + 2);
    local_138[1] = *(undefined8 *)(param_1 + 4);
    local_138[2] = *(undefined8 *)(param_1 + 6);
    local_138[3] = *(undefined8 *)(param_1 + 8);
    local_118 = *(undefined8 *)(param_1 + 10);
    uStack_110 = *(undefined8 *)(param_1 + 0xc);
    local_108 = *(undefined8 *)(param_1 + 0xe);
    uStack_100 = *(undefined8 *)(param_1 + 0x10);
    local_f8 = *(undefined8 *)(param_1 + 0x12);
    uStack_f0 = *(undefined8 *)(param_1 + 0x14);
    local_e8 = *(undefined8 *)(param_1 + 0x16);
    uStack_e0 = *(undefined8 *)(param_1 + 0x18);
    local_d8 = *(undefined8 *)(param_1 + 0x1a);
    uStack_d0 = *(undefined8 *)(param_1 + 0x1c);
    local_c8 = *(undefined8 *)(param_1 + 0x1e);
    uStack_c0 = *(undefined8 *)(param_1 + 0x20);
    local_b8 = *(undefined8 *)(param_1 + 0x22);
    uStack_b0 = *(undefined8 *)(param_1 + 0x24);
    local_a8 = *(undefined8 *)(param_1 + 0x26);
    uStack_a0 = *(undefined8 *)(param_1 + 0x28);
    local_98 = *(undefined8 *)(param_1 + 0x2a);
    uStack_90 = *(undefined8 *)(param_1 + 0x2c);
    local_88 = *(undefined8 *)(param_1 + 0x2e);
    uStack_80 = *(undefined8 *)(param_1 + 0x30);
    local_78 = *(undefined8 *)(param_1 + 0x32);
    uStack_70 = *(undefined8 *)(param_1 + 0x34);
    local_68 = *(undefined8 *)(param_1 + 0x36);
    uStack_60 = *(undefined8 *)(param_1 + 0x38);
    local_58 = *(undefined8 *)(param_1 + 0x3a);
    uStack_50 = *(undefined8 *)(param_1 + 0x3c);
    local_48 = *(undefined8 *)(param_1 + 0x3e);
    uStack_40 = *(undefined8 *)(param_1 + 0x40);
    uVar3 = 0x100;
    if (*param_1 < 0x101) {
      uVar3 = *param_1;
    }
    iVar1 = rc4_stream_setup(param_1,local_138,uVar3);
    if (iVar1 == 0) {
      iVar4 = 0xc;
      do {
        rc4_stream_keystream(param_1,local_138,0x100);
        iVar4 = iVar4 + -1;
      } while (iVar4 != 0);
      *(undefined2 *)(param_1 + 0x113c) = 1;
    }
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

