
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void do_indent(void)

{
  char *__s;
  char *indentation;
  filestruct *line;
  int in_GS_OFFSET;
  filestruct *top;
  filestruct *bot;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x303a9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  get_range(&top,&bot);
  while( true ) {
    if (bot->next == top) goto LAB_000304b3;
    if (*top->data != '\0') break;
    top = top->next;
  }
  __s = (char *)nmalloc(tabsize + 1);
  if ((flags[0] & 0x8000000) == 0) {
    __s[0] = '\t';
    __s[1] = '\0';
  }
  else {
    memset(__s,0x20,tabsize);
    __s[tabsize] = '\0';
  }
  add_undo(INDENT);
  if (top != bot->next) {
    line = top;
    do {
      indentation = "";
      if (*line->data != '\0') {
        indentation = __s;
      }
      indent_a_line(line,indentation);
      update_multiline_undo(line->lineno,indentation);
      line = line->next;
    } while (bot->next != line);
  }
  free(__s);
  set_modified();
  refresh_needed = true;
  shift_held = true;
LAB_000304b3:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_000303a0(void)

{
  undefined2 *__s;
  undefined2 *puVar1;
  undefined4 *puVar2;
  int in_GS_OFFSET;
  undefined4 *local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x303a9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00035b80(&local_28,&local_24);
  while( true ) {
    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;
    if (*(char *)*local_28 != '\0') break;
    local_28 = (undefined4 *)local_28[2];
  }
  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);
  if ((DAT_0006b664 & 0x8000000) == 0) {
    *__s = 9;
  }
  else {
    memset(__s,0x20,DAT_0006b068);
    *(undefined1 *)((int)__s + DAT_0006b068) = 0;
  }
  FUN_00030000(8);
  if (local_28 != *(undefined4 **)(local_24 + 8)) {
    puVar2 = local_28;
    do {
      puVar1 = (undefined2 *)&DAT_000503a2;
      if (*(char *)*puVar2 != '\0') {
        puVar1 = __s;
      }
      FUN_0002e8b0(puVar2,puVar1);
      FUN_000302e0(puVar2[1],puVar1);
      puVar2 = (undefined4 *)puVar2[2];
    } while (*(undefined4 **)(local_24 + 8) != puVar2);
  }
  free(__s);
  FUN_0001a6f0();
  DAT_0006b604 = 1;
  DAT_0006b920 = 1;
LAB_000304b3:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0004be20();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x3a827
SUB ESP,0x34
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x24],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x20]
PUSH EAX
LEA EAX,[ESP + 0x20]
PUSH EAX
CALL 0x00035b80
MOV EAX,dword ptr [ESP + 0x28]
MOV ECX,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [ESP + 0x24]
ADD ESP,0x10
CMP ECX,EAX
JNZ 0x000303f7
JMP 0x000304b3
MOV EAX,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x14],EAX
CMP ECX,EAX
JZ 0x000304b3
MOV EDX,dword ptr [EAX]
CMP byte ptr [EDX],0x0
JZ 0x000303e8
LEA ESI,[EBX + 0x498]
SUB ESP,0xc
MOV EAX,dword ptr [ESI]
ADD EAX,0x1
PUSH EAX
CALL 0x00035440
ADD ESP,0x10
MOV EDI,EAX
LEA EAX,[EBX + 0xa94]
MOV EAX,dword ptr [EAX]
TEST EAX,0x8000000
JNZ 0x000304d0
MOV ECX,0x9
MOV word ptr [EDI],CX
SUB ESP,0xc
PUSH 0x8
CALL 0x00030000
MOV ESI,dword ptr [ESP + 0x24]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x18]
CMP ESI,dword ptr [EAX + 0x8]
JZ 0x00030490
LEA EAX,[EBX + 0xfffe57d2]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,dword ptr [ESI]
MOV EBP,dword ptr [ESP + 0xc]
CMP byte ptr [EAX],0x0
CMOVNZ EBP,EDI
SUB ESP,0x8
PUSH EBP
PUSH ESI
CALL 0x0002e8b0
POP EAX
POP EDX
PUSH EBP
PUSH dword ptr [ESI + 0x4]
CALL 0x000302e0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x18]
MOV ESI,dword ptr [ESI + 0x8]
CMP dword ptr [EAX + 0x8],ESI
JNZ 0x00030460
SUB ESP,0xc
PUSH EDI
CALL 0x00013200
CALL 0x0001a6f0
LEA EAX,[EBX + 0xa34]
ADD ESP,0x10
MOV byte ptr [EAX],0x1
LEA EAX,[EBX + 0xd50]
MOV byte ptr [EAX],0x1
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000304eb
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH dword ptr [ESI]
PUSH 0x20
PUSH EDI
CALL 0x000136b0
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
MOV byte ptr [EDI + EAX*0x1],0x0
JMP 0x00030432
CALL 0x0004be20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000303a0(void)\n\n{\n  undefined2 *__s;\n  undefined2 *puVar1;\n  undefined4 *puVar2;\n  int in_GS_OFFSET;\n  undefined4 *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00035b80(&local_28,&local_24);\n  while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }\n  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);\n  if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }\n  FUN_00030000(8);\n  if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }\n  free(__s);\n  FUN_0001a6f0();\n  DAT_0006b604 = 1;\n  DAT_0006b920 = 1;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}\n\n" comment (function_definition "void FUN_000303a0(void)\n\n{\n  undefined2 *__s;\n  undefined2 *puVar1;\n  undefined4 *puVar2;\n  int in_GS_OFFSET;\n  undefined4 *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00035b80(&local_28,&local_24);\n  while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }\n  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);\n  if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }\n  FUN_00030000(8);\n  if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }\n  free(__s);\n  FUN_0001a6f0();\n  DAT_0006b604 = 1;\n  DAT_0006b920 = 1;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}" primitive_type (function_declarator "FUN_000303a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined2 *__s;\n  undefined2 *puVar1;\n  undefined4 *puVar2;\n  int in_GS_OFFSET;\n  undefined4 *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00035b80(&local_28,&local_24);\n  while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }\n  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);\n  if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }\n  FUN_00030000(8);\n  if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }\n  free(__s);\n  FUN_0001a6f0();\n  DAT_0006b604 = 1;\n  DAT_0006b920 = 1;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}" { (declaration "undefined2 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined2 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x303a9;" (assignment_expression "uStack_14 = 0x303a9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_00035b80(&local_28,&local_24);" (call_expression "FUN_00035b80(&local_28,&local_24)" identifier (argument_list "(&local_28,&local_24)" ( (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) ))) ;) (while_statement "while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }" { (if_statement "if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;" if (parenthesized_expression "(*(undefined4 **)(local_24 + 8) == local_28)" ( (binary_expression "*(undefined4 **)(local_24 + 8) == local_28" (pointer_expression "*(undefined4 **)(local_24 + 8)" * (cast_expression "(undefined4 **)(local_24 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) )))) == identifier) )) (goto_statement "goto LAB_000304b3;" goto statement_identifier ;)) (if_statement "if (*(char *)*local_28 != '\0') break;" if (parenthesized_expression "(*(char *)*local_28 != '\0')" ( (binary_expression "*(char *)*local_28 != '\0'" (pointer_expression "*(char *)*local_28" * (cast_expression "(char *)*local_28" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_28" * identifier))) != (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "local_28 = (undefined4 *)local_28[2];" (assignment_expression "local_28 = (undefined4 *)local_28[2]" identifier = (cast_expression "(undefined4 *)local_28[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_28[2]" identifier [ number_literal ]))) ;) })) (expression_statement "__s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);" (assignment_expression "__s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1)" identifier = (cast_expression "(undefined2 *)FUN_00035440(DAT_0006b068 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00035440(DAT_0006b068 + 1)" identifier (argument_list "(DAT_0006b068 + 1)" ( (binary_expression "DAT_0006b068 + 1" identifier + number_literal) ))))) ;) (if_statement "if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" if (parenthesized_expression "((DAT_0006b664 & 0x8000000) == 0)" ( (binary_expression "(DAT_0006b664 & 0x8000000) == 0" (parenthesized_expression "(DAT_0006b664 & 0x8000000)" ( (binary_expression "DAT_0006b664 & 0x8000000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *__s = 9;\n  }" { (expression_statement "*__s = 9;" (assignment_expression "*__s = 9" (pointer_expression "*__s" * identifier) = number_literal) ;) }) (else_clause "else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" else (compound_statement "{\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" { (expression_statement "memset(__s,0x20,DAT_0006b068);" (call_expression "memset(__s,0x20,DAT_0006b068)" identifier (argument_list "(__s,0x20,DAT_0006b068)" ( identifier , number_literal , identifier ))) ;) (expression_statement "*(undefined1 *)((int)__s + DAT_0006b068) = 0;" (assignment_expression "*(undefined1 *)((int)__s + DAT_0006b068) = 0" (pointer_expression "*(undefined1 *)((int)__s + DAT_0006b068)" * (cast_expression "(undefined1 *)((int)__s + DAT_0006b068)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s + DAT_0006b068)" ( (binary_expression "(int)__s + DAT_0006b068" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) }))) (expression_statement "FUN_00030000(8);" (call_expression "FUN_00030000(8)" identifier (argument_list "(8)" ( number_literal ))) ;) (if_statement "if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }" if (parenthesized_expression "(local_28 != *(undefined4 **)(local_24 + 8))" ( (binary_expression "local_28 != *(undefined4 **)(local_24 + 8)" identifier != (pointer_expression "*(undefined4 **)(local_24 + 8)" * (cast_expression "(undefined4 **)(local_24 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }" { (expression_statement "puVar2 = local_28;" (assignment_expression "puVar2 = local_28" identifier = identifier) ;) (do_statement "do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);" do (compound_statement "{\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    }" { (expression_statement "puVar1 = (undefined2 *)&DAT_000503a2;" (assignment_expression "puVar1 = (undefined2 *)&DAT_000503a2" identifier = (cast_expression "(undefined2 *)&DAT_000503a2" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_000503a2" & identifier))) ;) (if_statement "if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }" if (parenthesized_expression "(*(char *)*puVar2 != '\0')" ( (binary_expression "*(char *)*puVar2 != '\0'" (pointer_expression "*(char *)*puVar2" * (cast_expression "(char *)*puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        puVar1 = __s;\n      }" { (expression_statement "puVar1 = __s;" (assignment_expression "puVar1 = __s" identifier = identifier) ;) })) (expression_statement "FUN_0002e8b0(puVar2,puVar1);" (call_expression "FUN_0002e8b0(puVar2,puVar1)" identifier (argument_list "(puVar2,puVar1)" ( identifier , identifier ))) ;) (expression_statement "FUN_000302e0(puVar2[1],puVar1);" (call_expression "FUN_000302e0(puVar2[1],puVar1)" identifier (argument_list "(puVar2[1],puVar1)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)puVar2[2];" (assignment_expression "puVar2 = (undefined4 *)puVar2[2]" identifier = (cast_expression "(undefined4 *)puVar2[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(*(undefined4 **)(local_24 + 8) != puVar2)" ( (binary_expression "*(undefined4 **)(local_24 + 8) != puVar2" (pointer_expression "*(undefined4 **)(local_24 + 8)" * (cast_expression "(undefined4 **)(local_24 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_0001a6f0();" (call_expression "FUN_0001a6f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" identifier = number_literal) ;) (expression_statement "DAT_0006b920 = 1;" (assignment_expression "DAT_0006b920 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) comment (expression_statement "FUN_0004be20();" (call_expression "FUN_0004be20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid do_indent(void)\n\n{\n  char *__s;\n  char *indentation;\n  filestruct *line;\n  int in_GS_OFFSET;\n  filestruct *top;\n  filestruct *bot;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  get_range(&top,&bot);\n  while( true ) {\n    if (bot->next == top) goto LAB_000304b3;\n    if (*top->data != '\0') break;\n    top = top->next;\n  }\n  __s = (char *)nmalloc(tabsize + 1);\n  if ((flags[0] & 0x8000000) == 0) {\n    __s[0] = '\t';\n    __s[1] = '\0';\n  }\n  else {\n    memset(__s,0x20,tabsize);\n    __s[tabsize] = '\0';\n  }\n  add_undo(INDENT);\n  if (top != bot->next) {\n    line = top;\n    do {\n      indentation = "";\n      if (*line->data != '\0') {\n        indentation = __s;\n      }\n      indent_a_line(line,indentation);\n      update_multiline_undo(line->lineno,indentation);\n      line = line->next;\n    } while (bot->next != line);\n  }\n  free(__s);\n  set_modified();\n  refresh_needed = true;\n  shift_held = true;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void do_indent(void)\n\n{\n  char *__s;\n  char *indentation;\n  filestruct *line;\n  int in_GS_OFFSET;\n  filestruct *top;\n  filestruct *bot;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  get_range(&top,&bot);\n  while( true ) {\n    if (bot->next == top) goto LAB_000304b3;\n    if (*top->data != '\0') break;\n    top = top->next;\n  }\n  __s = (char *)nmalloc(tabsize + 1);\n  if ((flags[0] & 0x8000000) == 0) {\n    __s[0] = '\t';\n    __s[1] = '\0';\n  }\n  else {\n    memset(__s,0x20,tabsize);\n    __s[tabsize] = '\0';\n  }\n  add_undo(INDENT);\n  if (top != bot->next) {\n    line = top;\n    do {\n      indentation = "";\n      if (*line->data != '\0') {\n        indentation = __s;\n      }\n      indent_a_line(line,indentation);\n      update_multiline_undo(line->lineno,indentation);\n      line = line->next;\n    } while (bot->next != line);\n  }\n  free(__s);\n  set_modified();\n  refresh_needed = true;\n  shift_held = true;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "do_indent(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__s;\n  char *indentation;\n  filestruct *line;\n  int in_GS_OFFSET;\n  filestruct *top;\n  filestruct *bot;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  get_range(&top,&bot);\n  while( true ) {\n    if (bot->next == top) goto LAB_000304b3;\n    if (*top->data != '\0') break;\n    top = top->next;\n  }\n  __s = (char *)nmalloc(tabsize + 1);\n  if ((flags[0] & 0x8000000) == 0) {\n    __s[0] = '\t';\n    __s[1] = '\0';\n  }\n  else {\n    memset(__s,0x20,tabsize);\n    __s[tabsize] = '\0';\n  }\n  add_undo(INDENT);\n  if (top != bot->next) {\n    line = top;\n    do {\n      indentation = "";\n      if (*line->data != '\0') {\n        indentation = __s;\n      }\n      indent_a_line(line,indentation);\n      update_multiline_undo(line->lineno,indentation);\n      line = line->next;\n    } while (bot->next != line);\n  }\n  free(__s);\n  set_modified();\n  refresh_needed = true;\n  shift_held = true;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *indentation;" primitive_type (pointer_declarator "*indentation" * identifier) ;) (declaration "filestruct *line;" type_identifier (pointer_declarator "*line" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "filestruct *top;" type_identifier (pointer_declarator "*top" * identifier) ;) (declaration "filestruct *bot;" type_identifier (pointer_declarator "*bot" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x303a9;" (assignment_expression "uStack_14 = 0x303a9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "get_range(&top,&bot);" (call_expression "get_range(&top,&bot)" identifier (argument_list "(&top,&bot)" ( (pointer_expression "&top" & identifier) , (pointer_expression "&bot" & identifier) ))) ;) (while_statement "while( true ) {\n    if (bot->next == top) goto LAB_000304b3;\n    if (*top->data != '\0') break;\n    top = top->next;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (bot->next == top) goto LAB_000304b3;\n    if (*top->data != '\0') break;\n    top = top->next;\n  }" { (if_statement "if (bot->next == top) goto LAB_000304b3;" if (parenthesized_expression "(bot->next == top)" ( (binary_expression "bot->next == top" (field_expression "bot->next" identifier -> field_identifier) == identifier) )) (goto_statement "goto LAB_000304b3;" goto statement_identifier ;)) (if_statement "if (*top->data != '\0') break;" if (parenthesized_expression "(*top->data != '\0')" ( (binary_expression "*top->data != '\0'" (pointer_expression "*top->data" * (field_expression "top->data" identifier -> field_identifier)) != (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "top = top->next;" (assignment_expression "top = top->next" identifier = (field_expression "top->next" identifier -> field_identifier)) ;) })) (expression_statement "__s = (char *)nmalloc(tabsize + 1);" (assignment_expression "__s = (char *)nmalloc(tabsize + 1)" identifier = (cast_expression "(char *)nmalloc(tabsize + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(tabsize + 1)" identifier (argument_list "(tabsize + 1)" ( (binary_expression "tabsize + 1" identifier + number_literal) ))))) ;) (if_statement "if ((flags[0] & 0x8000000) == 0) {\n    __s[0] = '\t';\n    __s[1] = '\0';\n  }\n  else {\n    memset(__s,0x20,tabsize);\n    __s[tabsize] = '\0';\n  }" if (parenthesized_expression "((flags[0] & 0x8000000) == 0)" ( (binary_expression "(flags[0] & 0x8000000) == 0" (parenthesized_expression "(flags[0] & 0x8000000)" ( (binary_expression "flags[0] & 0x8000000" (subscript_expression "flags[0]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    __s[0] = '\t';\n    __s[1] = '\0';\n  }" { (expression_statement "__s[0] = '\t';" (assignment_expression "__s[0] = '\t'" (subscript_expression "__s[0]" identifier [ number_literal ]) = (char_literal "'\t'" ' escape_sequence ')) ;) (expression_statement "__s[1] = '\0';" (assignment_expression "__s[1] = '\0'" (subscript_expression "__s[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    memset(__s,0x20,tabsize);\n    __s[tabsize] = '\0';\n  }" else (compound_statement "{\n    memset(__s,0x20,tabsize);\n    __s[tabsize] = '\0';\n  }" { (expression_statement "memset(__s,0x20,tabsize);" (call_expression "memset(__s,0x20,tabsize)" identifier (argument_list "(__s,0x20,tabsize)" ( identifier , number_literal , identifier ))) ;) (expression_statement "__s[tabsize] = '\0';" (assignment_expression "__s[tabsize] = '\0'" (subscript_expression "__s[tabsize]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (expression_statement "add_undo(INDENT);" (call_expression "add_undo(INDENT)" identifier (argument_list "(INDENT)" ( identifier ))) ;) (if_statement "if (top != bot->next) {\n    line = top;\n    do {\n      indentation = "";\n      if (*line->data != '\0') {\n        indentation = __s;\n      }\n      indent_a_line(line,indentation);\n      update_multiline_undo(line->lineno,indentation);\n      line = line->next;\n    } while (bot->next != line);\n  }" if (parenthesized_expression "(top != bot->next)" ( (binary_expression "top != bot->next" identifier != (field_expression "bot->next" identifier -> field_identifier)) )) (compound_statement "{\n    line = top;\n    do {\n      indentation = "";\n      if (*line->data != '\0') {\n        indentation = __s;\n      }\n      indent_a_line(line,indentation);\n      update_multiline_undo(line->lineno,indentation);\n      line = line->next;\n    } while (bot->next != line);\n  }" { (expression_statement "line = top;" (assignment_expression "line = top" identifier = identifier) ;) (do_statement "do {\n      indentation = "";\n      if (*line->data != '\0') {\n        indentation = __s;\n      }\n      indent_a_line(line,indentation);\n      update_multiline_undo(line->lineno,indentation);\n      line = line->next;\n    } while (bot->next != line);" do (compound_statement "{\n      indentation = "";\n      if (*line->data != '\0') {\n        indentation = __s;\n      }\n      indent_a_line(line,indentation);\n      update_multiline_undo(line->lineno,indentation);\n      line = line->next;\n    }" { (expression_statement "indentation = "";" (assignment_expression "indentation = """ identifier = (string_literal """" " ")) ;) (if_statement "if (*line->data != '\0') {\n        indentation = __s;\n      }" if (parenthesized_expression "(*line->data != '\0')" ( (binary_expression "*line->data != '\0'" (pointer_expression "*line->data" * (field_expression "line->data" identifier -> field_identifier)) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        indentation = __s;\n      }" { (expression_statement "indentation = __s;" (assignment_expression "indentation = __s" identifier = identifier) ;) })) (expression_statement "indent_a_line(line,indentation);" (call_expression "indent_a_line(line,indentation)" identifier (argument_list "(line,indentation)" ( identifier , identifier ))) ;) (expression_statement "update_multiline_undo(line->lineno,indentation);" (call_expression "update_multiline_undo(line->lineno,indentation)" identifier (argument_list "(line->lineno,indentation)" ( (field_expression "line->lineno" identifier -> field_identifier) , identifier ))) ;) (expression_statement "line = line->next;" (assignment_expression "line = line->next" identifier = (field_expression "line->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(bot->next != line)" ( (binary_expression "bot->next != line" (field_expression "bot->next" identifier -> field_identifier) != identifier) )) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "set_modified();" (call_expression "set_modified()" identifier (argument_list "()" ( ))) ;) (expression_statement "refresh_needed = true;" (assignment_expression "refresh_needed = true" identifier = true) ;) (expression_statement "shift_held = true;" (assignment_expression "shift_held = true" identifier = true) ;) (labeled_statement "LAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_000303a0(void)\n\n{\n  undefined2 *__s;\n  undefined2 *puVar1;\n  undefined4 *puVar2;\n  int in_GS_OFFSET;\n  undefined4 *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00035b80(&local_28,&local_24);\n  while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }\n  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);\n  if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }\n  FUN_00030000(8);\n  if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }\n  free(__s);\n  FUN_0001a6f0();\n  DAT_0006b604 = 1;\n  DAT_0006b920 = 1;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}\n\n" (function_definition "void FUN_000303a0(void)\n\n{\n  undefined2 *__s;\n  undefined2 *puVar1;\n  undefined4 *puVar2;\n  int in_GS_OFFSET;\n  undefined4 *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00035b80(&local_28,&local_24);\n  while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }\n  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);\n  if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }\n  FUN_00030000(8);\n  if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }\n  free(__s);\n  FUN_0001a6f0();\n  DAT_0006b604 = 1;\n  DAT_0006b920 = 1;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" primitive_type (function_declarator "FUN_000303a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined2 *__s;\n  undefined2 *puVar1;\n  undefined4 *puVar2;\n  int in_GS_OFFSET;\n  undefined4 *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00035b80(&local_28,&local_24);\n  while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }\n  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);\n  if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }\n  FUN_00030000(8);\n  if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }\n  free(__s);\n  FUN_0001a6f0();\n  DAT_0006b604 = 1;\n  DAT_0006b920 = 1;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" { (declaration "undefined2 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined2 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x303a9;" (assignment_expression "uStack_14 = 0x303a9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_00035b80(&local_28,&local_24);" (call_expression "FUN_00035b80(&local_28,&local_24)" identifier (argument_list "(&local_28,&local_24)" ( (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) ))) ;) (while_statement "while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }" { (if_statement "if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;" if (parenthesized_expression "(*(undefined4 **)(local_24 + 8) == local_28)" ( (binary_expression "*(undefined4 **)(local_24 + 8) == local_28" (pointer_expression "*(undefined4 **)(local_24 + 8)" * (cast_expression "(undefined4 **)(local_24 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) )))) == identifier) )) (goto_statement "goto LAB_000304b3;" goto statement_identifier ;)) (if_statement "if (*(char *)*local_28 != '\0') break;" if (parenthesized_expression "(*(char *)*local_28 != '\0')" ( (binary_expression "*(char *)*local_28 != '\0'" (pointer_expression "*(char *)*local_28" * (cast_expression "(char *)*local_28" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_28" * identifier))) != (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "local_28 = (undefined4 *)local_28[2];" (assignment_expression "local_28 = (undefined4 *)local_28[2]" identifier = (cast_expression "(undefined4 *)local_28[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_28[2]" identifier [ number_literal ]))) ;) })) (expression_statement "__s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);" (assignment_expression "__s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1)" identifier = (cast_expression "(undefined2 *)FUN_00035440(DAT_0006b068 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00035440(DAT_0006b068 + 1)" identifier (argument_list "(DAT_0006b068 + 1)" ( (binary_expression "DAT_0006b068 + 1" identifier + number_literal) ))))) ;) (if_statement "if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" if (parenthesized_expression "((DAT_0006b664 & 0x8000000) == 0)" ( (binary_expression "(DAT_0006b664 & 0x8000000) == 0" (parenthesized_expression "(DAT_0006b664 & 0x8000000)" ( (binary_expression "DAT_0006b664 & 0x8000000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *__s = 9;\n  }" { (expression_statement "*__s = 9;" (assignment_expression "*__s = 9" (pointer_expression "*__s" * identifier) = number_literal) ;) }) (else_clause "else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" else (compound_statement "{\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" { (expression_statement "memset(__s,0x20,DAT_0006b068);" (call_expression "memset(__s,0x20,DAT_0006b068)" identifier (argument_list "(__s,0x20,DAT_0006b068)" ( identifier , number_literal , identifier ))) ;) (expression_statement "*(undefined1 *)((int)__s + DAT_0006b068) = 0;" (assignment_expression "*(undefined1 *)((int)__s + DAT_0006b068) = 0" (pointer_expression "*(undefined1 *)((int)__s + DAT_0006b068)" * (cast_expression "(undefined1 *)((int)__s + DAT_0006b068)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s + DAT_0006b068)" ( (binary_expression "(int)__s + DAT_0006b068" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) }))) (expression_statement "FUN_00030000(8);" (call_expression "FUN_00030000(8)" identifier (argument_list "(8)" ( number_literal ))) ;) (if_statement "if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }" if (parenthesized_expression "(local_28 != *(undefined4 **)(local_24 + 8))" ( (binary_expression "local_28 != *(undefined4 **)(local_24 + 8)" identifier != (pointer_expression "*(undefined4 **)(local_24 + 8)" * (cast_expression "(undefined4 **)(local_24 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }" { (expression_statement "puVar2 = local_28;" (assignment_expression "puVar2 = local_28" identifier = identifier) ;) (do_statement "do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);" do (compound_statement "{\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    }" { (expression_statement "puVar1 = (undefined2 *)&DAT_000503a2;" (assignment_expression "puVar1 = (undefined2 *)&DAT_000503a2" identifier = (cast_expression "(undefined2 *)&DAT_000503a2" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_000503a2" & identifier))) ;) (if_statement "if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }" if (parenthesized_expression "(*(char *)*puVar2 != '\0')" ( (binary_expression "*(char *)*puVar2 != '\0'" (pointer_expression "*(char *)*puVar2" * (cast_expression "(char *)*puVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        puVar1 = __s;\n      }" { (expression_statement "puVar1 = __s;" (assignment_expression "puVar1 = __s" identifier = identifier) ;) })) (expression_statement "FUN_0002e8b0(puVar2,puVar1);" (call_expression "FUN_0002e8b0(puVar2,puVar1)" identifier (argument_list "(puVar2,puVar1)" ( identifier , identifier ))) ;) (expression_statement "FUN_000302e0(puVar2[1],puVar1);" (call_expression "FUN_000302e0(puVar2[1],puVar1)" identifier (argument_list "(puVar2[1],puVar1)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)puVar2[2];" (assignment_expression "puVar2 = (undefined4 *)puVar2[2]" identifier = (cast_expression "(undefined4 *)puVar2[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(*(undefined4 **)(local_24 + 8) != puVar2)" ( (binary_expression "*(undefined4 **)(local_24 + 8) != puVar2" (pointer_expression "*(undefined4 **)(local_24 + 8)" * (cast_expression "(undefined4 **)(local_24 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_0001a6f0();" (call_expression "FUN_0001a6f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" identifier = number_literal) ;) (expression_statement "DAT_0006b920 = 1;" (assignment_expression "DAT_0006b920 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "FUN_0004be20();" (call_expression "FUN_0004be20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) != (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_000303a0(void)\n\n{\n  undefined2 *__s;\n  undefined2 *puVar1;\n  undefined4 *puVar2;\n  int in_GS_OFFSET;\n  undefined4 *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00035b80(&local_28,&local_24);\n  while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }\n  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);\n  if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }\n  FUN_00030000(8);\n  if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }\n  free(__s);\n  FUN_0001a6f0();\n  DAT_0006b604 = 1;\n  DAT_0006b920 = 1;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" (primitive_type "void") (function_declarator "FUN_000303a0(void)" (identifier "FUN_000303a0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined2 *__s;\n  undefined2 *puVar1;\n  undefined4 *puVar2;\n  int in_GS_OFFSET;\n  undefined4 *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x303a9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00035b80(&local_28,&local_24);\n  while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }\n  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);\n  if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }\n  FUN_00030000(8);\n  if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }\n  free(__s);\n  FUN_0001a6f0();\n  DAT_0006b604 = 1;\n  DAT_0006b920 = 1;\nLAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" ({ "{") (declaration "undefined2 *__s;" (type_identifier "undefined2") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined2 *puVar1;" (type_identifier "undefined2") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 *local_28;" (type_identifier "undefined4") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x303a9;" (assignment_expression "uStack_14 = 0x303a9" (identifier "uStack_14") (= "=") (number_literal "0x303a9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_00035b80(&local_28,&local_24);" (call_expression "FUN_00035b80(&local_28,&local_24)" (identifier "FUN_00035b80") (argument_list "(&local_28,&local_24)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (while_statement "while( true ) {\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;\n    if (*(char *)*local_28 != '\0') break;\n    local_28 = (undefined4 *)local_28[2];\n  }" ({ "{") (if_statement "if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;" (if "if") (parenthesized_expression "(*(undefined4 **)(local_24 + 8) == local_28)" (( "(") (binary_expression "*(undefined4 **)(local_24 + 8) == local_28" (pointer_expression "*(undefined4 **)(local_24 + 8)" (* "*") (cast_expression "(undefined4 **)(local_24 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_24 + 8)" (( "(") (binary_expression "local_24 + 8" (identifier "local_24") (+ "+") (number_literal "8")) () ")")))) (== "==") (identifier "local_28")) () ")")) (goto_statement "goto LAB_000304b3;" (goto "goto") (statement_identifier "LAB_000304b3") (; ";"))) (if_statement "if (*(char *)*local_28 != '\0') break;" (if "if") (parenthesized_expression "(*(char *)*local_28 != '\0')" (( "(") (binary_expression "*(char *)*local_28 != '\0'" (pointer_expression "*(char *)*local_28" (* "*") (cast_expression "(char *)*local_28" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_28" (* "*") (identifier "local_28")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "local_28 = (undefined4 *)local_28[2];" (assignment_expression "local_28 = (undefined4 *)local_28[2]" (identifier "local_28") (= "=") (cast_expression "(undefined4 *)local_28[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "local_28[2]" (identifier "local_28") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}"))) (expression_statement "__s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);" (assignment_expression "__s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1)" (identifier "__s") (= "=") (cast_expression "(undefined2 *)FUN_00035440(DAT_0006b068 + 1)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00035440(DAT_0006b068 + 1)" (identifier "FUN_00035440") (argument_list "(DAT_0006b068 + 1)" (( "(") (binary_expression "DAT_0006b068 + 1" (identifier "DAT_0006b068") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if ((DAT_0006b664 & 0x8000000) == 0) {\n    *__s = 9;\n  }\n  else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" (if "if") (parenthesized_expression "((DAT_0006b664 & 0x8000000) == 0)" (( "(") (binary_expression "(DAT_0006b664 & 0x8000000) == 0" (parenthesized_expression "(DAT_0006b664 & 0x8000000)" (( "(") (binary_expression "DAT_0006b664 & 0x8000000" (identifier "DAT_0006b664") (& "&") (number_literal "0x8000000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *__s = 9;\n  }" ({ "{") (expression_statement "*__s = 9;" (assignment_expression "*__s = 9" (pointer_expression "*__s" (* "*") (identifier "__s")) (= "=") (number_literal "9")) (; ";")) (} "}")) (else_clause "else {\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" (else "else") (compound_statement "{\n    memset(__s,0x20,DAT_0006b068);\n    *(undefined1 *)((int)__s + DAT_0006b068) = 0;\n  }" ({ "{") (expression_statement "memset(__s,0x20,DAT_0006b068);" (call_expression "memset(__s,0x20,DAT_0006b068)" (identifier "memset") (argument_list "(__s,0x20,DAT_0006b068)" (( "(") (identifier "__s") (, ",") (number_literal "0x20") (, ",") (identifier "DAT_0006b068") () ")"))) (; ";")) (expression_statement "*(undefined1 *)((int)__s + DAT_0006b068) = 0;" (assignment_expression "*(undefined1 *)((int)__s + DAT_0006b068) = 0" (pointer_expression "*(undefined1 *)((int)__s + DAT_0006b068)" (* "*") (cast_expression "(undefined1 *)((int)__s + DAT_0006b068)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__s + DAT_0006b068)" (( "(") (binary_expression "(int)__s + DAT_0006b068" (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s")) (+ "+") (identifier "DAT_0006b068")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "FUN_00030000(8);" (call_expression "FUN_00030000(8)" (identifier "FUN_00030000") (argument_list "(8)" (( "(") (number_literal "8") () ")"))) (; ";")) (if_statement "if (local_28 != *(undefined4 **)(local_24 + 8)) {\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }" (if "if") (parenthesized_expression "(local_28 != *(undefined4 **)(local_24 + 8))" (( "(") (binary_expression "local_28 != *(undefined4 **)(local_24 + 8)" (identifier "local_28") (!= "!=") (pointer_expression "*(undefined4 **)(local_24 + 8)" (* "*") (cast_expression "(undefined4 **)(local_24 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_24 + 8)" (( "(") (binary_expression "local_24 + 8" (identifier "local_24") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    puVar2 = local_28;\n    do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);\n  }" ({ "{") (expression_statement "puVar2 = local_28;" (assignment_expression "puVar2 = local_28" (identifier "puVar2") (= "=") (identifier "local_28")) (; ";")) (do_statement "do {\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    } while (*(undefined4 **)(local_24 + 8) != puVar2);" (do "do") (compound_statement "{\n      puVar1 = (undefined2 *)&DAT_000503a2;\n      if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }\n      FUN_0002e8b0(puVar2,puVar1);\n      FUN_000302e0(puVar2[1],puVar1);\n      puVar2 = (undefined4 *)puVar2[2];\n    }" ({ "{") (expression_statement "puVar1 = (undefined2 *)&DAT_000503a2;" (assignment_expression "puVar1 = (undefined2 *)&DAT_000503a2" (identifier "puVar1") (= "=") (cast_expression "(undefined2 *)&DAT_000503a2" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_000503a2" (& "&") (identifier "DAT_000503a2")))) (; ";")) (if_statement "if (*(char *)*puVar2 != '\0') {\n        puVar1 = __s;\n      }" (if "if") (parenthesized_expression "(*(char *)*puVar2 != '\0')" (( "(") (binary_expression "*(char *)*puVar2 != '\0'" (pointer_expression "*(char *)*puVar2" (* "*") (cast_expression "(char *)*puVar2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        puVar1 = __s;\n      }" ({ "{") (expression_statement "puVar1 = __s;" (assignment_expression "puVar1 = __s" (identifier "puVar1") (= "=") (identifier "__s")) (; ";")) (} "}"))) (expression_statement "FUN_0002e8b0(puVar2,puVar1);" (call_expression "FUN_0002e8b0(puVar2,puVar1)" (identifier "FUN_0002e8b0") (argument_list "(puVar2,puVar1)" (( "(") (identifier "puVar2") (, ",") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "FUN_000302e0(puVar2[1],puVar1);" (call_expression "FUN_000302e0(puVar2[1],puVar1)" (identifier "FUN_000302e0") (argument_list "(puVar2[1],puVar1)" (( "(") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)puVar2[2];" (assignment_expression "puVar2 = (undefined4 *)puVar2[2]" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)puVar2[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(undefined4 **)(local_24 + 8) != puVar2)" (( "(") (binary_expression "*(undefined4 **)(local_24 + 8) != puVar2" (pointer_expression "*(undefined4 **)(local_24 + 8)" (* "*") (cast_expression "(undefined4 **)(local_24 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_24 + 8)" (( "(") (binary_expression "local_24 + 8" (identifier "local_24") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (} "}"))) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "FUN_0001a6f0();" (call_expression "FUN_0001a6f0()" (identifier "FUN_0001a6f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" (identifier "DAT_0006b604") (= "=") (number_literal "1")) (; ";")) (expression_statement "DAT_0006b920 = 1;" (assignment_expression "DAT_0006b920 = 1" (identifier "DAT_0006b920") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_000304b3:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (statement_identifier "LAB_000304b3") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (expression_statement "FUN_0004be20();" (call_expression "FUN_0004be20()" (identifier "FUN_0004be20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  char *__s;
  char *indentation;
  type_1 *var_10;
  int var_1;
  type_1 *var_3;
  type_1 *bot;
  int var_13;
  type_2 uStack_14;
  
  uStack_14 = 0x303a9;
  var_13 = *(int *)(var_1 + 0x14);
  var_2(&var_3,&bot);
  while( true ) {
    if (bot->next == var_3) goto LAB_000304b3;
    if (*var_3->data != '\0') break;
    var_3 = var_3->next;
  }
  __s = (char *)var_4(var_5 + 1);
  if ((flags[0] & 0x8000000) == 0) {
    __s[0] = '\t';
    __s[1] = '\0';
  }
  else {
    var_6(__s,0x20,var_5);
    __s[var_5] = '\0';
  }
  var_7(INDENT);
  if (var_3 != bot->next) {
    var_10 = var_3;
    do {
      indentation = "";
      if (*var_10->data != '\0') {
        indentation = __s;
      }
      var_8(var_10,indentation);
      var_9(var_10->lineno,indentation);
      var_10 = var_10->next;
    } while (bot->next != var_10);
  }
  var_11(__s);
  var_12();
  refresh_needed = true;
  shift_held = true;
LAB_000304b3:
  if (var_13 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_14();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (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 (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void MASKED(void)

{
  undefined2 *__s;
  undefined2 *puVar1;
  undefined4 *puVar2;
  int in_GS_OFFSET;
  undefined4 *local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x303a9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00035b80(&local_28,&local_24);
  while( true ) {
    if (*(undefined4 **)(local_24 + 8) == local_28) goto LAB_000304b3;
    if (*(char *)*local_28 != '\0') break;
    local_28 = (undefined4 *)local_28[2];
  }
  __s = (undefined2 *)FUN_00035440(DAT_0006b068 + 1);
  if ((DAT_0006b664 & 0x8000000) == 0) {
    *__s = 9;
  }
  else {
    memset(__s,0x20,DAT_0006b068);
    *(undefined1 *)((int)__s + DAT_0006b068) = 0;
  }
  FUN_00030000(8);
  if (local_28 != *(undefined4 **)(local_24 + 8)) {
    puVar2 = local_28;
    do {
      puVar1 = (undefined2 *)&DAT_000503a2;
      if (*(char *)*puVar2 != '\0') {
        puVar1 = __s;
      }
      FUN_0002e8b0(puVar2,puVar1);
      FUN_000302e0(puVar2[1],puVar1);
      puVar2 = (undefined4 *)puVar2[2];
    } while (*(undefined4 **)(local_24 + 8) != puVar2);
  }
  free(__s);
  FUN_0001a6f0();
  DAT_0006b604 = 1;
  DAT_0006b920 = 1;
LAB_000304b3:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0004be20();
}

