
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

termline * __regparm3 decompressline(uchar *data,int *bytes_used)

{
  int *piVar1;
  byte *pbVar2;
  int iVar3;
  byte bVar4;
  byte bVar5;
  termline *ldata;
  termchar *ptVar6;
  int *piVar7;
  byte bVar8;
  int iVar9;
  uint uVar10;
  int in_GS_OFFSET;
  buf buffer;
  
  uVar10 = 0;
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  iVar9 = 0;
  do {
    buffer.len = iVar9 + 1;
    pbVar2 = data + iVar9;
    uVar10 = uVar10 | (*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU);
    iVar9 = buffer.len;
  } while ((char)*pbVar2 < '\0');
  buffer.data = data;
  ldata = (termline *)safemalloc(1,0x18);
  ptVar6 = (termchar *)safemalloc(uVar10,0xc);
  ldata->size = uVar10;
  ldata->chars = ptVar6;
  ldata->cols = uVar10;
  ldata->temporary = 1;
  ldata->cc_free = 0;
  if (0 < (int)uVar10) {
    piVar7 = &ptVar6->cc_next;
    piVar1 = piVar7 + uVar10 * 3;
    do {
      *piVar7 = 0;
      piVar7 = piVar7 + 3;
    } while (piVar1 != piVar7);
  }
  uVar10 = 0;
  bVar8 = 0;
  ldata->lattr = 0;
  iVar9 = buffer.len;
  do {
    buffer.len = iVar9 + 1;
    bVar4 = buffer.data[iVar9];
    bVar5 = bVar8 & 0x1f;
    bVar8 = bVar8 + 7;
    uVar10 = uVar10 | (bVar4 & 0x7f) << bVar5;
    ldata->lattr = (ushort)uVar10;
    iVar9 = buffer.len;
  } while ((char)bVar4 < '\0');
  readrle(&buffer,ldata,readliteral_chr);
  readrle(&buffer,ldata,readliteral_attr);
  readrle(&buffer,ldata,readliteral_cc);
  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {
    return ldata;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined2 * __regparm3 FUN_000339d0(int param_1)

{
  undefined4 *puVar1;
  int iVar2;
  byte bVar3;
  byte bVar4;
  char cVar5;
  undefined2 *puVar6;
  int iVar7;
  undefined4 *puVar8;
  byte bVar9;
  int iVar10;
  uint uVar11;
  int in_GS_OFFSET;
  
  iVar10 = 0;
  uVar11 = 0;
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  do {
    cVar5 = (char)iVar10;
    iVar10 = iVar10 + 1;
    bVar9 = *(byte *)(param_1 + -1 + iVar10);
    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);
  } while ((char)bVar9 < '\0');
  puVar6 = (undefined2 *)FUN_0002be10(1,0x18);
  iVar7 = FUN_0002be10(uVar11,0xc);
  *(uint *)(puVar6 + 4) = uVar11;
  *(int *)(puVar6 + 10) = iVar7;
  *(uint *)(puVar6 + 2) = uVar11;
  *(undefined4 *)(puVar6 + 6) = 1;
  *(undefined4 *)(puVar6 + 8) = 0;
  if (0 < (int)uVar11) {
    puVar8 = (undefined4 *)(iVar7 + 8);
    puVar1 = puVar8 + uVar11 * 3;
    do {
      *puVar8 = 0;
      puVar8 = puVar8 + 3;
    } while (puVar1 != puVar8);
  }
  uVar11 = 0;
  bVar9 = 0;
  *puVar6 = 0;
  do {
    iVar10 = iVar10 + 1;
    bVar3 = *(byte *)(param_1 + -1 + iVar10);
    bVar4 = bVar9 & 0x1f;
    bVar9 = bVar9 + 7;
    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;
    *puVar6 = (short)uVar11;
  } while ((char)bVar3 < '\0');
  FUN_00031b50();
  FUN_00031b50();
  FUN_00031b50();
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar6;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005c430();
}


PUSH EBP
XOR EDX,EDX
PUSH EDI
XOR EDI,EDI
PUSH ESI
CALL 0x0001a9ed
ADD ESI,0x6de08
PUSH EBX
SUB ESP,0x2c
MOV dword ptr [ESP + 0xc],ESI
MOV ESI,EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x10],ESI
LEA ESI,[ESI]
LEA ECX,[EDX*0x8 + 0x0]
SUB ECX,EDX
ADD EDX,0x1
MOVZX EBX,byte ptr [ESI + EDX*0x1 + -0x1]
MOV EAX,EBX
AND EAX,0x7f
SHL EAX,CL
OR EDI,EAX
TEST BL,BL
JS 0x00033a00
MOV dword ptr [ESP + 0x14],EDX
SUB ESP,0x8
PUSH 0x18
PUSH 0x1
MOV EBP,dword ptr [ESP + 0x1c]
MOV EBX,EBP
CALL 0x0002be10
POP EDX
POP ECX
PUSH 0xc
PUSH EDI
MOV ESI,EAX
CALL 0x0002be10
MOV dword ptr [ESI + 0x8],EDI
ADD ESP,0x10
MOV dword ptr [ESI + 0x14],EAX
MOV dword ptr [ESI + 0x4],EDI
MOV dword ptr [ESI + 0xc],0x1
MOV dword ptr [ESI + 0x10],0x0
TEST EDI,EDI
JLE 0x00033a7d
ADD EAX,0x8
LEA EDX,[EDI + EDI*0x2]
LEA EDX,[EAX + EDX*0x4]
LEA ESI,[ESI]
NOP
MOV dword ptr [EAX],0x0
ADD EAX,0xc
CMP EDX,EAX
JNZ 0x00033a70
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x10]
XOR EBX,EBX
XOR ECX,ECX
MOV word ptr [ESI],AX
MOV EAX,dword ptr [ESP + 0x14]
ADD EAX,0x1
LEA ESI,[ESI]
MOV dword ptr [ESP + 0x14],EAX
MOVZX EDI,byte ptr [EBP + EAX*0x1 + -0x1]
ADD EAX,0x1
MOV EDX,EDI
AND EDX,0x7f
SHL EDX,CL
ADD ECX,0x7
OR EBX,EDX
MOV EDX,EDI
MOV word ptr [ESI],BX
TEST DL,DL
JS 0x00033a98
MOV EDI,dword ptr [ESP + 0xc]
LEA EBX,[ESP + 0x10]
MOV EDX,ESI
MOV EAX,EBX
LEA ECX,[EDI + 0xfff901ec]
CALL 0x00031b50
MOV EDX,ESI
LEA ECX,[EDI + 0xfff8fbdc]
MOV EAX,EBX
CALL 0x00031b50
MOV EDX,ESI
MOV EAX,EBX
LEA ECX,[EDI + 0xfff90bbc]
CALL 0x00031b50
MOV EAX,ESI
MOV ESI,dword ptr [ESP + 0x1c]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x00033b05
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0005c430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined2 * __regparm3 FUN_000339d0(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  byte bVar4;\n  char cVar5;\n  undefined2 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  int iVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  \n  iVar10 = 0;\n  uVar11 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  do {\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  } while ((char)bVar9 < '\0');\n  puVar6 = (undefined2 *)FUN_0002be10(1,0x18);\n  iVar7 = FUN_0002be10(uVar11,0xc);\n  *(uint *)(puVar6 + 4) = uVar11;\n  *(int *)(puVar6 + 10) = iVar7;\n  *(uint *)(puVar6 + 2) = uVar11;\n  *(undefined4 *)(puVar6 + 6) = 1;\n  *(undefined4 *)(puVar6 + 8) = 0;\n  if (0 < (int)uVar11) {\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }\n  uVar11 = 0;\n  bVar9 = 0;\n  *puVar6 = 0;\n  do {\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  } while ((char)bVar3 < '\0');\n  FUN_00031b50();\n  FUN_00031b50();\n  FUN_00031b50();\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005c430();\n}\n\n" comment (ERROR "undefined2 * __regparm3 FUN_000339d0(int param_1)" (binary_expression "undefined2 * __regparm3 FUN_000339d0(int param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000339d0(int param_1)" identifier (argument_list "(int param_1)" ( (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  byte bVar4;\n  char cVar5;\n  undefined2 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  int iVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  \n  iVar10 = 0;\n  uVar11 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  do {\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  } while ((char)bVar9 < '\0');\n  puVar6 = (undefined2 *)FUN_0002be10(1,0x18);\n  iVar7 = FUN_0002be10(uVar11,0xc);\n  *(uint *)(puVar6 + 4) = uVar11;\n  *(int *)(puVar6 + 10) = iVar7;\n  *(uint *)(puVar6 + 2) = uVar11;\n  *(undefined4 *)(puVar6 + 6) = 1;\n  *(undefined4 *)(puVar6 + 8) = 0;\n  if (0 < (int)uVar11) {\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }\n  uVar11 = 0;\n  bVar9 = 0;\n  *puVar6 = 0;\n  do {\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  } while ((char)bVar3 < '\0');\n  FUN_00031b50();\n  FUN_00031b50();\n  FUN_00031b50();\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005c430();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "undefined2 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (do_statement "do {\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  } while ((char)bVar9 < '\0');" do (compound_statement "{\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  }" { (expression_statement "cVar5 = (char)iVar10;" (assignment_expression "cVar5 = (char)iVar10" identifier = (cast_expression "(char)iVar10" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "bVar9 = *(byte *)(param_1 + -1 + iVar10);" (assignment_expression "bVar9 = *(byte *)(param_1 + -1 + iVar10)" identifier = (pointer_expression "*(byte *)(param_1 + -1 + iVar10)" * (cast_expression "(byte *)(param_1 + -1 + iVar10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar10)" ( (binary_expression "param_1 + -1 + iVar10" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);" (assignment_expression "uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" identifier = (binary_expression "uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" identifier | (binary_expression "(bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" (parenthesized_expression "(bVar9 & 0x7f)" ( (binary_expression "bVar9 & 0x7f" identifier & number_literal) )) << (parenthesized_expression "(cVar5 * '\a' & 0x1fU)" ( (binary_expression "cVar5 * '\a' & 0x1fU" (binary_expression "cVar5 * '\a'" identifier * (char_literal "'\a'" ' escape_sequence ')) & number_literal) ))))) ;) }) while (parenthesized_expression "((char)bVar9 < '\0')" ( (binary_expression "(char)bVar9 < '\0'" (cast_expression "(char)bVar9" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "puVar6 = (undefined2 *)FUN_0002be10(1,0x18);" (assignment_expression "puVar6 = (undefined2 *)FUN_0002be10(1,0x18)" identifier = (cast_expression "(undefined2 *)FUN_0002be10(1,0x18)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002be10(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar7 = FUN_0002be10(uVar11,0xc);" (assignment_expression "iVar7 = FUN_0002be10(uVar11,0xc)" identifier = (call_expression "FUN_0002be10(uVar11,0xc)" identifier (argument_list "(uVar11,0xc)" ( identifier , number_literal )))) ;) (expression_statement "*(uint *)(puVar6 + 4) = uVar11;" (assignment_expression "*(uint *)(puVar6 + 4) = uVar11" (pointer_expression "*(uint *)(puVar6 + 4)" * (cast_expression "(uint *)(puVar6 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 4)" ( (binary_expression "puVar6 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar6 + 10) = iVar7;" (assignment_expression "*(int *)(puVar6 + 10) = iVar7" (pointer_expression "*(int *)(puVar6 + 10)" * (cast_expression "(int *)(puVar6 + 10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 10)" ( (binary_expression "puVar6 + 10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar6 + 2) = uVar11;" (assignment_expression "*(uint *)(puVar6 + 2) = uVar11" (pointer_expression "*(uint *)(puVar6 + 2)" * (cast_expression "(uint *)(puVar6 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 2)" ( (binary_expression "puVar6 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar6 + 6) = 1;" (assignment_expression "*(undefined4 *)(puVar6 + 6) = 1" (pointer_expression "*(undefined4 *)(puVar6 + 6)" * (cast_expression "(undefined4 *)(puVar6 + 6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 6)" ( (binary_expression "puVar6 + 6" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(puVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(puVar6 + 8)" * (cast_expression "(undefined4 *)(puVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 8)" ( (binary_expression "puVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (0 < (int)uVar11) {\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }" if (parenthesized_expression "(0 < (int)uVar11)" ( (binary_expression "0 < (int)uVar11" number_literal < (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }" { (expression_statement "puVar8 = (undefined4 *)(iVar7 + 8);" (assignment_expression "puVar8 = (undefined4 *)(iVar7 + 8)" identifier = (cast_expression "(undefined4 *)(iVar7 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) ;) (expression_statement "puVar1 = puVar8 + uVar11 * 3;" (assignment_expression "puVar1 = puVar8 + uVar11 * 3" identifier = (binary_expression "puVar8 + uVar11 * 3" identifier + (binary_expression "uVar11 * 3" identifier * number_literal))) ;) (do_statement "do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);" do (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" identifier = (binary_expression "puVar8 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar8)" ( (binary_expression "puVar1 != puVar8" identifier != identifier) )) ;) })) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (do_statement "do {\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  } while ((char)bVar3 < '\0');" do (compound_statement "{\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = *(byte *)(param_1 + -1 + iVar10);" (assignment_expression "bVar3 = *(byte *)(param_1 + -1 + iVar10)" identifier = (pointer_expression "*(byte *)(param_1 + -1 + iVar10)" * (cast_expression "(byte *)(param_1 + -1 + iVar10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar10)" ( (binary_expression "param_1 + -1 + iVar10" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar4 = bVar9 & 0x1f;" (assignment_expression "bVar4 = bVar9 & 0x1f" identifier = (binary_expression "bVar9 & 0x1f" identifier & number_literal)) ;) (expression_statement "bVar9 = bVar9 + 7;" (assignment_expression "bVar9 = bVar9 + 7" identifier = (binary_expression "bVar9 + 7" identifier + number_literal)) ;) (expression_statement "uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;" (assignment_expression "uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4" identifier = (binary_expression "uVar11 | (bVar3 & 0x7f) << bVar4" identifier | (binary_expression "(bVar3 & 0x7f) << bVar4" (parenthesized_expression "(bVar3 & 0x7f)" ( (binary_expression "bVar3 & 0x7f" identifier & number_literal) )) << identifier))) ;) (expression_statement "*puVar6 = (short)uVar11;" (assignment_expression "*puVar6 = (short)uVar11" (pointer_expression "*puVar6" * identifier) = (cast_expression "(short)uVar11" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) }) while (parenthesized_expression "((char)bVar3 < '\0')" ( (binary_expression "(char)bVar3 < '\0'" (cast_expression "(char)bVar3" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar6;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return puVar6;\n  }" { (return_statement "return puVar6;" return identifier ;) })) comment (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\ntermline * __regparm3 decompressline(uchar *data,int *bytes_used)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  int iVar3;\n  byte bVar4;\n  byte bVar5;\n  termline *ldata;\n  termchar *ptVar6;\n  int *piVar7;\n  byte bVar8;\n  int iVar9;\n  uint uVar10;\n  int in_GS_OFFSET;\n  buf buffer;\n  \n  uVar10 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = 0;\n  do {\n    buffer.len = iVar9 + 1;\n    pbVar2 = data + iVar9;\n    uVar10 = uVar10 | (*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU);\n    iVar9 = buffer.len;\n  } while ((char)*pbVar2 < '\0');\n  buffer.data = data;\n  ldata = (termline *)safemalloc(1,0x18);\n  ptVar6 = (termchar *)safemalloc(uVar10,0xc);\n  ldata->size = uVar10;\n  ldata->chars = ptVar6;\n  ldata->cols = uVar10;\n  ldata->temporary = 1;\n  ldata->cc_free = 0;\n  if (0 < (int)uVar10) {\n    piVar7 = &ptVar6->cc_next;\n    piVar1 = piVar7 + uVar10 * 3;\n    do {\n      *piVar7 = 0;\n      piVar7 = piVar7 + 3;\n    } while (piVar1 != piVar7);\n  }\n  uVar10 = 0;\n  bVar8 = 0;\n  ldata->lattr = 0;\n  iVar9 = buffer.len;\n  do {\n    buffer.len = iVar9 + 1;\n    bVar4 = buffer.data[iVar9];\n    bVar5 = bVar8 & 0x1f;\n    bVar8 = bVar8 + 7;\n    uVar10 = uVar10 | (bVar4 & 0x7f) << bVar5;\n    ldata->lattr = (ushort)uVar10;\n    iVar9 = buffer.len;\n  } while ((char)bVar4 < '\0');\n  readrle(&buffer,ldata,readliteral_chr);\n  readrle(&buffer,ldata,readliteral_attr);\n  readrle(&buffer,ldata,readliteral_cc);\n  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ldata;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (ERROR "termline * __regparm3 decompressline(uchar *data,int *bytes_used)" (binary_expression "termline * __regparm3 decompressline(uchar *data,int *bytes_used)" identifier * (ERROR "__regparm3" identifier) (call_expression "decompressline(uchar *data,int *bytes_used)" identifier (argument_list "(uchar *data,int *bytes_used)" ( (binary_expression "uchar *data" identifier * identifier) , (binary_expression "int *bytes_used" identifier * identifier) ))))) (compound_statement "{\n  int *piVar1;\n  byte *pbVar2;\n  int iVar3;\n  byte bVar4;\n  byte bVar5;\n  termline *ldata;\n  termchar *ptVar6;\n  int *piVar7;\n  byte bVar8;\n  int iVar9;\n  uint uVar10;\n  int in_GS_OFFSET;\n  buf buffer;\n  \n  uVar10 = 0;\n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar9 = 0;\n  do {\n    buffer.len = iVar9 + 1;\n    pbVar2 = data + iVar9;\n    uVar10 = uVar10 | (*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU);\n    iVar9 = buffer.len;\n  } while ((char)*pbVar2 < '\0');\n  buffer.data = data;\n  ldata = (termline *)safemalloc(1,0x18);\n  ptVar6 = (termchar *)safemalloc(uVar10,0xc);\n  ldata->size = uVar10;\n  ldata->chars = ptVar6;\n  ldata->cols = uVar10;\n  ldata->temporary = 1;\n  ldata->cc_free = 0;\n  if (0 < (int)uVar10) {\n    piVar7 = &ptVar6->cc_next;\n    piVar1 = piVar7 + uVar10 * 3;\n    do {\n      *piVar7 = 0;\n      piVar7 = piVar7 + 3;\n    } while (piVar1 != piVar7);\n  }\n  uVar10 = 0;\n  bVar8 = 0;\n  ldata->lattr = 0;\n  iVar9 = buffer.len;\n  do {\n    buffer.len = iVar9 + 1;\n    bVar4 = buffer.data[iVar9];\n    bVar5 = bVar8 & 0x1f;\n    bVar8 = bVar8 + 7;\n    uVar10 = uVar10 | (bVar4 & 0x7f) << bVar5;\n    ldata->lattr = (ushort)uVar10;\n    iVar9 = buffer.len;\n  } while ((char)bVar4 < '\0');\n  readrle(&buffer,ldata,readliteral_chr);\n  readrle(&buffer,ldata,readliteral_attr);\n  readrle(&buffer,ldata,readliteral_cc);\n  if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ldata;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "termline *ldata;" type_identifier (pointer_declarator "*ldata" * identifier) ;) (declaration "termchar *ptVar6;" type_identifier (pointer_declarator "*ptVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "buf buffer;" type_identifier identifier ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n    buffer.len = iVar9 + 1;\n    pbVar2 = data + iVar9;\n    uVar10 = uVar10 | (*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU);\n    iVar9 = buffer.len;\n  } while ((char)*pbVar2 < '\0');" do (compound_statement "{\n    buffer.len = iVar9 + 1;\n    pbVar2 = data + iVar9;\n    uVar10 = uVar10 | (*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU);\n    iVar9 = buffer.len;\n  }" { (expression_statement "buffer.len = iVar9 + 1;" (assignment_expression "buffer.len = iVar9 + 1" (field_expression "buffer.len" identifier . field_identifier) = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pbVar2 = data + iVar9;" (assignment_expression "pbVar2 = data + iVar9" identifier = (binary_expression "data + iVar9" identifier + identifier)) ;) (expression_statement "uVar10 = uVar10 | (*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU);" (assignment_expression "uVar10 = uVar10 | (*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU)" identifier = (binary_expression "uVar10 | (*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU)" identifier | (binary_expression "(*pbVar2 & 0x7f) << ((char)iVar9 * '\a' & 0x1fU)" (parenthesized_expression "(*pbVar2 & 0x7f)" ( (binary_expression "*pbVar2 & 0x7f" (pointer_expression "*pbVar2" * identifier) & number_literal) )) << (parenthesized_expression "((char)iVar9 * '\a' & 0x1fU)" ( (binary_expression "(char)iVar9 * '\a' & 0x1fU" (binary_expression "(char)iVar9 * '\a'" (cast_expression "(char)iVar9" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\a'" ' escape_sequence ')) & number_literal) ))))) ;) (expression_statement "iVar9 = buffer.len;" (assignment_expression "iVar9 = buffer.len" identifier = (field_expression "buffer.len" identifier . field_identifier)) ;) }) while (parenthesized_expression "((char)*pbVar2 < '\0')" ( (binary_expression "(char)*pbVar2 < '\0'" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "buffer.data = data;" (assignment_expression "buffer.data = data" (field_expression "buffer.data" identifier . field_identifier) = identifier) ;) (expression_statement "ldata = (termline *)safemalloc(1,0x18);" (assignment_expression "ldata = (termline *)safemalloc(1,0x18)" identifier = (cast_expression "(termline *)safemalloc(1,0x18)" ( (type_descriptor "termline *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "ptVar6 = (termchar *)safemalloc(uVar10,0xc);" (assignment_expression "ptVar6 = (termchar *)safemalloc(uVar10,0xc)" identifier = (cast_expression "(termchar *)safemalloc(uVar10,0xc)" ( (type_descriptor "termchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(uVar10,0xc)" identifier (argument_list "(uVar10,0xc)" ( identifier , number_literal ))))) ;) (expression_statement "ldata->size = uVar10;" (assignment_expression "ldata->size = uVar10" (field_expression "ldata->size" identifier -> field_identifier) = identifier) ;) (expression_statement "ldata->chars = ptVar6;" (assignment_expression "ldata->chars = ptVar6" (field_expression "ldata->chars" identifier -> field_identifier) = identifier) ;) (expression_statement "ldata->cols = uVar10;" (assignment_expression "ldata->cols = uVar10" (field_expression "ldata->cols" identifier -> field_identifier) = identifier) ;) (expression_statement "ldata->temporary = 1;" (assignment_expression "ldata->temporary = 1" (field_expression "ldata->temporary" identifier -> field_identifier) = number_literal) ;) (expression_statement "ldata->cc_free = 0;" (assignment_expression "ldata->cc_free = 0" (field_expression "ldata->cc_free" identifier -> field_identifier) = number_literal) ;) (if_statement "if (0 < (int)uVar10) {\n    piVar7 = &ptVar6->cc_next;\n    piVar1 = piVar7 + uVar10 * 3;\n    do {\n      *piVar7 = 0;\n      piVar7 = piVar7 + 3;\n    } while (piVar1 != piVar7);\n  }" if (parenthesized_expression "(0 < (int)uVar10)" ( (binary_expression "0 < (int)uVar10" number_literal < (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    piVar7 = &ptVar6->cc_next;\n    piVar1 = piVar7 + uVar10 * 3;\n    do {\n      *piVar7 = 0;\n      piVar7 = piVar7 + 3;\n    } while (piVar1 != piVar7);\n  }" { (expression_statement "piVar7 = &ptVar6->cc_next;" (assignment_expression "piVar7 = &ptVar6->cc_next" identifier = (pointer_expression "&ptVar6->cc_next" & (field_expression "ptVar6->cc_next" identifier -> field_identifier))) ;) (expression_statement "piVar1 = piVar7 + uVar10 * 3;" (assignment_expression "piVar1 = piVar7 + uVar10 * 3" identifier = (binary_expression "piVar7 + uVar10 * 3" identifier + (binary_expression "uVar10 * 3" identifier * number_literal))) ;) (do_statement "do {\n      *piVar7 = 0;\n      piVar7 = piVar7 + 3;\n    } while (piVar1 != piVar7);" do (compound_statement "{\n      *piVar7 = 0;\n      piVar7 = piVar7 + 3;\n    }" { (expression_statement "*piVar7 = 0;" (assignment_expression "*piVar7 = 0" (pointer_expression "*piVar7" * identifier) = number_literal) ;) (expression_statement "piVar7 = piVar7 + 3;" (assignment_expression "piVar7 = piVar7 + 3" identifier = (binary_expression "piVar7 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar1 != piVar7)" ( (binary_expression "piVar1 != piVar7" identifier != identifier) )) ;) })) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "ldata->lattr = 0;" (assignment_expression "ldata->lattr = 0" (field_expression "ldata->lattr" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar9 = buffer.len;" (assignment_expression "iVar9 = buffer.len" identifier = (field_expression "buffer.len" identifier . field_identifier)) ;) (do_statement "do {\n    buffer.len = iVar9 + 1;\n    bVar4 = buffer.data[iVar9];\n    bVar5 = bVar8 & 0x1f;\n    bVar8 = bVar8 + 7;\n    uVar10 = uVar10 | (bVar4 & 0x7f) << bVar5;\n    ldata->lattr = (ushort)uVar10;\n    iVar9 = buffer.len;\n  } while ((char)bVar4 < '\0');" do (compound_statement "{\n    buffer.len = iVar9 + 1;\n    bVar4 = buffer.data[iVar9];\n    bVar5 = bVar8 & 0x1f;\n    bVar8 = bVar8 + 7;\n    uVar10 = uVar10 | (bVar4 & 0x7f) << bVar5;\n    ldata->lattr = (ushort)uVar10;\n    iVar9 = buffer.len;\n  }" { (expression_statement "buffer.len = iVar9 + 1;" (assignment_expression "buffer.len = iVar9 + 1" (field_expression "buffer.len" identifier . field_identifier) = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "bVar4 = buffer.data[iVar9];" (assignment_expression "bVar4 = buffer.data[iVar9]" identifier = (subscript_expression "buffer.data[iVar9]" (field_expression "buffer.data" identifier . field_identifier) [ identifier ])) ;) (expression_statement "bVar5 = bVar8 & 0x1f;" (assignment_expression "bVar5 = bVar8 & 0x1f" identifier = (binary_expression "bVar8 & 0x1f" identifier & number_literal)) ;) (expression_statement "bVar8 = bVar8 + 7;" (assignment_expression "bVar8 = bVar8 + 7" identifier = (binary_expression "bVar8 + 7" identifier + number_literal)) ;) (expression_statement "uVar10 = uVar10 | (bVar4 & 0x7f) << bVar5;" (assignment_expression "uVar10 = uVar10 | (bVar4 & 0x7f) << bVar5" identifier = (binary_expression "uVar10 | (bVar4 & 0x7f) << bVar5" identifier | (binary_expression "(bVar4 & 0x7f) << bVar5" (parenthesized_expression "(bVar4 & 0x7f)" ( (binary_expression "bVar4 & 0x7f" identifier & number_literal) )) << identifier))) ;) (expression_statement "ldata->lattr = (ushort)uVar10;" (assignment_expression "ldata->lattr = (ushort)uVar10" (field_expression "ldata->lattr" identifier -> field_identifier) = (cast_expression "(ushort)uVar10" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "iVar9 = buffer.len;" (assignment_expression "iVar9 = buffer.len" identifier = (field_expression "buffer.len" identifier . field_identifier)) ;) }) while (parenthesized_expression "((char)bVar4 < '\0')" ( (binary_expression "(char)bVar4 < '\0'" (cast_expression "(char)bVar4" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "readrle(&buffer,ldata,readliteral_chr);" (call_expression "readrle(&buffer,ldata,readliteral_chr)" identifier (argument_list "(&buffer,ldata,readliteral_chr)" ( (pointer_expression "&buffer" & identifier) , identifier , identifier ))) ;) (expression_statement "readrle(&buffer,ldata,readliteral_attr);" (call_expression "readrle(&buffer,ldata,readliteral_attr)" identifier (argument_list "(&buffer,ldata,readliteral_attr)" ( (pointer_expression "&buffer" & identifier) , identifier , identifier ))) ;) (expression_statement "readrle(&buffer,ldata,readliteral_cc);" (call_expression "readrle(&buffer,ldata,readliteral_cc)" identifier (argument_list "(&buffer,ldata,readliteral_cc)" ( (pointer_expression "&buffer" & identifier) , identifier , identifier ))) ;) (if_statement "if (iVar3 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ldata;\n  }" if (parenthesized_expression "(iVar3 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return ldata;\n  }" { (return_statement "return ldata;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "undefined2 * __regparm3 FUN_000339d0(int param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  byte bVar4;\n  char cVar5;\n  undefined2 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  int iVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  \n  iVar10 = 0;\n  uVar11 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  do {\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  } while ((char)bVar9 < '\0');\n  puVar6 = (undefined2 *)FUN_0002be10(1,0x18);\n  iVar7 = FUN_0002be10(uVar11,0xc);\n  *(uint *)(puVar6 + 4) = uVar11;\n  *(int *)(puVar6 + 10) = iVar7;\n  *(uint *)(puVar6 + 2) = uVar11;\n  *(undefined4 *)(puVar6 + 6) = 1;\n  *(undefined4 *)(puVar6 + 8) = 0;\n  if (0 < (int)uVar11) {\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }\n  uVar11 = 0;\n  bVar9 = 0;\n  *puVar6 = 0;\n  do {\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  } while ((char)bVar3 < '\0');\n  FUN_00031b50();\n  FUN_00031b50();\n  FUN_00031b50();\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar6;\n  }\n                    \n  FUN_0005c430();\n}\n\n" (ERROR "undefined2 * __regparm3 FUN_000339d0(int param_1)" (binary_expression "undefined2 * __regparm3 FUN_000339d0(int param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000339d0(int param_1)" identifier (argument_list "(int param_1)" ( (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  byte bVar4;\n  char cVar5;\n  undefined2 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  int iVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  \n  iVar10 = 0;\n  uVar11 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  do {\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  } while ((char)bVar9 < '\0');\n  puVar6 = (undefined2 *)FUN_0002be10(1,0x18);\n  iVar7 = FUN_0002be10(uVar11,0xc);\n  *(uint *)(puVar6 + 4) = uVar11;\n  *(int *)(puVar6 + 10) = iVar7;\n  *(uint *)(puVar6 + 2) = uVar11;\n  *(undefined4 *)(puVar6 + 6) = 1;\n  *(undefined4 *)(puVar6 + 8) = 0;\n  if (0 < (int)uVar11) {\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }\n  uVar11 = 0;\n  bVar9 = 0;\n  *puVar6 = 0;\n  do {\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  } while ((char)bVar3 < '\0');\n  FUN_00031b50();\n  FUN_00031b50();\n  FUN_00031b50();\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar6;\n  }\n                    \n  FUN_0005c430();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "undefined2 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (do_statement "do {\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  } while ((char)bVar9 < '\0');" do (compound_statement "{\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  }" { (expression_statement "cVar5 = (char)iVar10;" (assignment_expression "cVar5 = (char)iVar10" identifier = (cast_expression "(char)iVar10" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "bVar9 = *(byte *)(param_1 + -1 + iVar10);" (assignment_expression "bVar9 = *(byte *)(param_1 + -1 + iVar10)" identifier = (pointer_expression "*(byte *)(param_1 + -1 + iVar10)" * (cast_expression "(byte *)(param_1 + -1 + iVar10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar10)" ( (binary_expression "param_1 + -1 + iVar10" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);" (assignment_expression "uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" identifier = (binary_expression "uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" identifier | (binary_expression "(bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" (parenthesized_expression "(bVar9 & 0x7f)" ( (binary_expression "bVar9 & 0x7f" identifier & number_literal) )) << (parenthesized_expression "(cVar5 * '\a' & 0x1fU)" ( (binary_expression "cVar5 * '\a' & 0x1fU" (binary_expression "cVar5 * '\a'" identifier * (char_literal "'\a'" ' escape_sequence ')) & number_literal) ))))) ;) }) while (parenthesized_expression "((char)bVar9 < '\0')" ( (binary_expression "(char)bVar9 < '\0'" (cast_expression "(char)bVar9" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "puVar6 = (undefined2 *)FUN_0002be10(1,0x18);" (assignment_expression "puVar6 = (undefined2 *)FUN_0002be10(1,0x18)" identifier = (cast_expression "(undefined2 *)FUN_0002be10(1,0x18)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002be10(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar7 = FUN_0002be10(uVar11,0xc);" (assignment_expression "iVar7 = FUN_0002be10(uVar11,0xc)" identifier = (call_expression "FUN_0002be10(uVar11,0xc)" identifier (argument_list "(uVar11,0xc)" ( identifier , number_literal )))) ;) (expression_statement "*(uint *)(puVar6 + 4) = uVar11;" (assignment_expression "*(uint *)(puVar6 + 4) = uVar11" (pointer_expression "*(uint *)(puVar6 + 4)" * (cast_expression "(uint *)(puVar6 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 4)" ( (binary_expression "puVar6 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar6 + 10) = iVar7;" (assignment_expression "*(int *)(puVar6 + 10) = iVar7" (pointer_expression "*(int *)(puVar6 + 10)" * (cast_expression "(int *)(puVar6 + 10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 10)" ( (binary_expression "puVar6 + 10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar6 + 2) = uVar11;" (assignment_expression "*(uint *)(puVar6 + 2) = uVar11" (pointer_expression "*(uint *)(puVar6 + 2)" * (cast_expression "(uint *)(puVar6 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 2)" ( (binary_expression "puVar6 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar6 + 6) = 1;" (assignment_expression "*(undefined4 *)(puVar6 + 6) = 1" (pointer_expression "*(undefined4 *)(puVar6 + 6)" * (cast_expression "(undefined4 *)(puVar6 + 6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 6)" ( (binary_expression "puVar6 + 6" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(puVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(puVar6 + 8)" * (cast_expression "(undefined4 *)(puVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 8)" ( (binary_expression "puVar6 + 8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (0 < (int)uVar11) {\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }" if (parenthesized_expression "(0 < (int)uVar11)" ( (binary_expression "0 < (int)uVar11" number_literal < (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }" { (expression_statement "puVar8 = (undefined4 *)(iVar7 + 8);" (assignment_expression "puVar8 = (undefined4 *)(iVar7 + 8)" identifier = (cast_expression "(undefined4 *)(iVar7 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) ;) (expression_statement "puVar1 = puVar8 + uVar11 * 3;" (assignment_expression "puVar1 = puVar8 + uVar11 * 3" identifier = (binary_expression "puVar8 + uVar11 * 3" identifier + (binary_expression "uVar11 * 3" identifier * number_literal))) ;) (do_statement "do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);" do (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" identifier = (binary_expression "puVar8 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar8)" ( (binary_expression "puVar1 != puVar8" identifier != identifier) )) ;) })) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (do_statement "do {\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  } while ((char)bVar3 < '\0');" do (compound_statement "{\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = *(byte *)(param_1 + -1 + iVar10);" (assignment_expression "bVar3 = *(byte *)(param_1 + -1 + iVar10)" identifier = (pointer_expression "*(byte *)(param_1 + -1 + iVar10)" * (cast_expression "(byte *)(param_1 + -1 + iVar10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar10)" ( (binary_expression "param_1 + -1 + iVar10" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar4 = bVar9 & 0x1f;" (assignment_expression "bVar4 = bVar9 & 0x1f" identifier = (binary_expression "bVar9 & 0x1f" identifier & number_literal)) ;) (expression_statement "bVar9 = bVar9 + 7;" (assignment_expression "bVar9 = bVar9 + 7" identifier = (binary_expression "bVar9 + 7" identifier + number_literal)) ;) (expression_statement "uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;" (assignment_expression "uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4" identifier = (binary_expression "uVar11 | (bVar3 & 0x7f) << bVar4" identifier | (binary_expression "(bVar3 & 0x7f) << bVar4" (parenthesized_expression "(bVar3 & 0x7f)" ( (binary_expression "bVar3 & 0x7f" identifier & number_literal) )) << identifier))) ;) (expression_statement "*puVar6 = (short)uVar11;" (assignment_expression "*puVar6 = (short)uVar11" (pointer_expression "*puVar6" * identifier) = (cast_expression "(short)uVar11" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) }) while (parenthesized_expression "((char)bVar3 < '\0')" ( (binary_expression "(char)bVar3 < '\0'" (cast_expression "(char)bVar3" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar6;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return puVar6;\n  }" { (return_statement "return puVar6;" return identifier ;) })) (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << (parenthesized_expression ( (binary_expression (binary_expression IDENT * (char_literal ' escape_sequence ')) & LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))
(ERROR "undefined2 * __regparm3 FUN_000339d0(int param_1)" (binary_expression "undefined2 * __regparm3 FUN_000339d0(int param_1)" (identifier "undefined2") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_000339d0(int param_1)" (identifier "FUN_000339d0") (argument_list "(int param_1)" (( "(") (ERROR "int" (identifier "int")) (identifier "param_1") () ")"))))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  byte bVar3;\n  byte bVar4;\n  char cVar5;\n  undefined2 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  byte bVar9;\n  int iVar10;\n  uint uVar11;\n  int in_GS_OFFSET;\n  \n  iVar10 = 0;\n  uVar11 = 0;\n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  do {\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  } while ((char)bVar9 < '\0');\n  puVar6 = (undefined2 *)FUN_0002be10(1,0x18);\n  iVar7 = FUN_0002be10(uVar11,0xc);\n  *(uint *)(puVar6 + 4) = uVar11;\n  *(int *)(puVar6 + 10) = iVar7;\n  *(uint *)(puVar6 + 2) = uVar11;\n  *(undefined4 *)(puVar6 + 6) = 1;\n  *(undefined4 *)(puVar6 + 8) = 0;\n  if (0 < (int)uVar11) {\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }\n  uVar11 = 0;\n  bVar9 = 0;\n  *puVar6 = 0;\n  do {\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  } while ((char)bVar3 < '\0');\n  FUN_00031b50();\n  FUN_00031b50();\n  FUN_00031b50();\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar6;\n  }\n                    \n  FUN_0005c430();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "undefined2 *puVar6;" (type_identifier "undefined2") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (do_statement "do {\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  } while ((char)bVar9 < '\0');" (do "do") (compound_statement "{\n    cVar5 = (char)iVar10;\n    iVar10 = iVar10 + 1;\n    bVar9 = *(byte *)(param_1 + -1 + iVar10);\n    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);\n  }" ({ "{") (expression_statement "cVar5 = (char)iVar10;" (assignment_expression "cVar5 = (char)iVar10" (identifier "cVar5") (= "=") (cast_expression "(char)iVar10" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar10"))) (; ";")) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar9 = *(byte *)(param_1 + -1 + iVar10);" (assignment_expression "bVar9 = *(byte *)(param_1 + -1 + iVar10)" (identifier "bVar9") (= "=") (pointer_expression "*(byte *)(param_1 + -1 + iVar10)" (* "*") (cast_expression "(byte *)(param_1 + -1 + iVar10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -1 + iVar10)" (( "(") (binary_expression "param_1 + -1 + iVar10" (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar10")) () ")"))))) (; ";")) (expression_statement "uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);" (assignment_expression "uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" (identifier "uVar11") (= "=") (binary_expression "uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" (identifier "uVar11") (| "|") (binary_expression "(bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU)" (parenthesized_expression "(bVar9 & 0x7f)" (( "(") (binary_expression "bVar9 & 0x7f" (identifier "bVar9") (& "&") (number_literal "0x7f")) () ")")) (<< "<<") (parenthesized_expression "(cVar5 * '\a' & 0x1fU)" (( "(") (binary_expression "cVar5 * '\a' & 0x1fU" (binary_expression "cVar5 * '\a'" (identifier "cVar5") (* "*") (char_literal "'\a'" (' "'") (escape_sequence "\a") (' "'"))) (& "&") (number_literal "0x1fU")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)bVar9 < '\0')" (( "(") (binary_expression "(char)bVar9 < '\0'" (cast_expression "(char)bVar9" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar9")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "puVar6 = (undefined2 *)FUN_0002be10(1,0x18);" (assignment_expression "puVar6 = (undefined2 *)FUN_0002be10(1,0x18)" (identifier "puVar6") (= "=") (cast_expression "(undefined2 *)FUN_0002be10(1,0x18)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002be10(1,0x18)" (identifier "FUN_0002be10") (argument_list "(1,0x18)" (( "(") (number_literal "1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "iVar7 = FUN_0002be10(uVar11,0xc);" (assignment_expression "iVar7 = FUN_0002be10(uVar11,0xc)" (identifier "iVar7") (= "=") (call_expression "FUN_0002be10(uVar11,0xc)" (identifier "FUN_0002be10") (argument_list "(uVar11,0xc)" (( "(") (identifier "uVar11") (, ",") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "*(uint *)(puVar6 + 4) = uVar11;" (assignment_expression "*(uint *)(puVar6 + 4) = uVar11" (pointer_expression "*(uint *)(puVar6 + 4)" (* "*") (cast_expression "(uint *)(puVar6 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 4)" (( "(") (binary_expression "puVar6 + 4" (identifier "puVar6") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "*(int *)(puVar6 + 10) = iVar7;" (assignment_expression "*(int *)(puVar6 + 10) = iVar7" (pointer_expression "*(int *)(puVar6 + 10)" (* "*") (cast_expression "(int *)(puVar6 + 10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 10)" (( "(") (binary_expression "puVar6 + 10" (identifier "puVar6") (+ "+") (number_literal "10")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "*(uint *)(puVar6 + 2) = uVar11;" (assignment_expression "*(uint *)(puVar6 + 2) = uVar11" (pointer_expression "*(uint *)(puVar6 + 2)" (* "*") (cast_expression "(uint *)(puVar6 + 2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 2)" (( "(") (binary_expression "puVar6 + 2" (identifier "puVar6") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar11")) (; ";")) (expression_statement "*(undefined4 *)(puVar6 + 6) = 1;" (assignment_expression "*(undefined4 *)(puVar6 + 6) = 1" (pointer_expression "*(undefined4 *)(puVar6 + 6)" (* "*") (cast_expression "(undefined4 *)(puVar6 + 6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 6)" (( "(") (binary_expression "puVar6 + 6" (identifier "puVar6") (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(puVar6 + 8) = 0;" (assignment_expression "*(undefined4 *)(puVar6 + 8) = 0" (pointer_expression "*(undefined4 *)(puVar6 + 8)" (* "*") (cast_expression "(undefined4 *)(puVar6 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 8)" (( "(") (binary_expression "puVar6 + 8" (identifier "puVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < (int)uVar11) {\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }" (if "if") (parenthesized_expression "(0 < (int)uVar11)" (( "(") (binary_expression "0 < (int)uVar11" (number_literal "0") (< "<") (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11"))) () ")")) (compound_statement "{\n    puVar8 = (undefined4 *)(iVar7 + 8);\n    puVar1 = puVar8 + uVar11 * 3;\n    do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);\n  }" ({ "{") (expression_statement "puVar8 = (undefined4 *)(iVar7 + 8);" (assignment_expression "puVar8 = (undefined4 *)(iVar7 + 8)" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)(iVar7 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 8)" (( "(") (binary_expression "iVar7 + 8" (identifier "iVar7") (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "puVar1 = puVar8 + uVar11 * 3;" (assignment_expression "puVar1 = puVar8 + uVar11 * 3" (identifier "puVar1") (= "=") (binary_expression "puVar8 + uVar11 * 3" (identifier "puVar8") (+ "+") (binary_expression "uVar11 * 3" (identifier "uVar11") (* "*") (number_literal "3")))) (; ";")) (do_statement "do {\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    } while (puVar1 != puVar8);" (do "do") (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + 3;\n    }" ({ "{") (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8 = puVar8 + 3;" (assignment_expression "puVar8 = puVar8 + 3" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 3" (identifier "puVar8") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != puVar8)" (( "(") (binary_expression "puVar1 != puVar8" (identifier "puVar1") (!= "!=") (identifier "puVar8")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  } while ((char)bVar3 < '\0');" (do "do") (compound_statement "{\n    iVar10 = iVar10 + 1;\n    bVar3 = *(byte *)(param_1 + -1 + iVar10);\n    bVar4 = bVar9 & 0x1f;\n    bVar9 = bVar9 + 7;\n    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;\n    *puVar6 = (short)uVar11;\n  }" ({ "{") (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar3 = *(byte *)(param_1 + -1 + iVar10);" (assignment_expression "bVar3 = *(byte *)(param_1 + -1 + iVar10)" (identifier "bVar3") (= "=") (pointer_expression "*(byte *)(param_1 + -1 + iVar10)" (* "*") (cast_expression "(byte *)(param_1 + -1 + iVar10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -1 + iVar10)" (( "(") (binary_expression "param_1 + -1 + iVar10" (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar10")) () ")"))))) (; ";")) (expression_statement "bVar4 = bVar9 & 0x1f;" (assignment_expression "bVar4 = bVar9 & 0x1f" (identifier "bVar4") (= "=") (binary_expression "bVar9 & 0x1f" (identifier "bVar9") (& "&") (number_literal "0x1f"))) (; ";")) (expression_statement "bVar9 = bVar9 + 7;" (assignment_expression "bVar9 = bVar9 + 7" (identifier "bVar9") (= "=") (binary_expression "bVar9 + 7" (identifier "bVar9") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;" (assignment_expression "uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4" (identifier "uVar11") (= "=") (binary_expression "uVar11 | (bVar3 & 0x7f) << bVar4" (identifier "uVar11") (| "|") (binary_expression "(bVar3 & 0x7f) << bVar4" (parenthesized_expression "(bVar3 & 0x7f)" (( "(") (binary_expression "bVar3 & 0x7f" (identifier "bVar3") (& "&") (number_literal "0x7f")) () ")")) (<< "<<") (identifier "bVar4")))) (; ";")) (expression_statement "*puVar6 = (short)uVar11;" (assignment_expression "*puVar6 = (short)uVar11" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (cast_expression "(short)uVar11" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar11"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)bVar3 < '\0')" (( "(") (binary_expression "(char)bVar3 < '\0'" (cast_expression "(char)bVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar3")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" (identifier "FUN_00031b50") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" (identifier "FUN_00031b50") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00031b50();" (call_expression "FUN_00031b50()" (identifier "FUN_00031b50") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar6;\n  }" (if "if") (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return puVar6;\n  }" ({ "{") (return_statement "return puVar6;" (return "return") (identifier "puVar6") (; ";")) (} "}"))) (expression_statement "FUN_0005c430();" (call_expression "FUN_0005c430()" (identifier "FUN_0005c430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

type_2 * __regparm3 decompressline(uchar *var_3,int *bytes_used)

{
  int *var_7;
  type_1 *pbVar2;
  int var_12;
  type_1 var_9;
  type_1 var_10;
  type_2 *ldata;
  type_3 *ptVar6;
  int *var_6;
  type_1 var_8;
  int var_2;
  type_4 var_4;
  int var_1;
  type_5 buffer;
  
  var_4 = 0;
  var_12 = *(int *)(var_1 + 0x14);
  var_2 = 0;
  do {
    buffer.len = var_2 + 1;
    pbVar2 = var_3 + var_2;
    var_4 = var_4 | (*pbVar2 & 0x7f) << ((char)var_2 * '\a' & 0x1fU);
    var_2 = buffer.len;
  } while ((char)*pbVar2 < '\0');
  buffer.var_3 = var_3;
  ldata = (type_2 *)var_5(1,0x18);
  ptVar6 = (type_3 *)var_5(var_4,0xc);
  ldata->size = var_4;
  ldata->chars = ptVar6;
  ldata->cols = var_4;
  ldata->temporary = 1;
  ldata->cc_free = 0;
  if (0 < (int)var_4) {
    var_6 = &ptVar6->cc_next;
    var_7 = var_6 + var_4 * 3;
    do {
      *var_6 = 0;
      var_6 = var_6 + 3;
    } while (var_7 != var_6);
  }
  var_4 = 0;
  var_8 = 0;
  ldata->lattr = 0;
  var_2 = buffer.len;
  do {
    buffer.len = var_2 + 1;
    var_9 = buffer.var_3[var_2];
    var_10 = var_8 & 0x1f;
    var_8 = var_8 + 7;
    var_4 = var_4 | (var_9 & 0x7f) << var_10;
    ldata->lattr = (type_6)var_4;
    var_2 = buffer.len;
  } while ((char)var_9 < '\0');
  var_11(&buffer,ldata,readliteral_chr);
  var_11(&buffer,ldata,readliteral_attr);
  var_11(&buffer,ldata,readliteral_cc);
  if (var_12 == *(int *)(var_1 + 0x14)) {
    return ldata;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (ERROR (identifier)) (identifier))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (char_literal (escape_sequence))) right: (number_literal)))))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (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: (identifier))) (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))) (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: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (do_statement 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))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined2 * __regparm3 MASKED(int param_1)

{
  undefined4 *puVar1;
  int iVar2;
  byte bVar3;
  byte bVar4;
  char cVar5;
  undefined2 *puVar6;
  int iVar7;
  undefined4 *puVar8;
  byte bVar9;
  int iVar10;
  uint uVar11;
  int in_GS_OFFSET;
  
  iVar10 = 0;
  uVar11 = 0;
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  do {
    cVar5 = (char)iVar10;
    iVar10 = iVar10 + 1;
    bVar9 = *(byte *)(param_1 + -1 + iVar10);
    uVar11 = uVar11 | (bVar9 & 0x7f) << (cVar5 * '\a' & 0x1fU);
  } while ((char)bVar9 < '\0');
  puVar6 = (undefined2 *)FUN_0002be10(1,0x18);
  iVar7 = FUN_0002be10(uVar11,0xc);
  *(uint *)(puVar6 + 4) = uVar11;
  *(int *)(puVar6 + 10) = iVar7;
  *(uint *)(puVar6 + 2) = uVar11;
  *(undefined4 *)(puVar6 + 6) = 1;
  *(undefined4 *)(puVar6 + 8) = 0;
  if (0 < (int)uVar11) {
    puVar8 = (undefined4 *)(iVar7 + 8);
    puVar1 = puVar8 + uVar11 * 3;
    do {
      *puVar8 = 0;
      puVar8 = puVar8 + 3;
    } while (puVar1 != puVar8);
  }
  uVar11 = 0;
  bVar9 = 0;
  *puVar6 = 0;
  do {
    iVar10 = iVar10 + 1;
    bVar3 = *(byte *)(param_1 + -1 + iVar10);
    bVar4 = bVar9 & 0x1f;
    bVar9 = bVar9 + 7;
    uVar11 = uVar11 | (bVar3 & 0x7f) << bVar4;
    *puVar6 = (short)uVar11;
  } while ((char)bVar3 < '\0');
  FUN_00031b50();
  FUN_00031b50();
  FUN_00031b50();
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar6;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005c430();
}

