
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void init_block(void)

{
  globals *pgVar1;
  globals *pgVar2;
  cc_t *pcVar3;
  termios *ptVar4;
  int *piVar5;
  
  pgVar2 = ptr_to_globals;
  pcVar3 = ptr_to_globals[4].tty_attrs.c_cc + 0x1b;
  pgVar1 = ptr_to_globals + 8;
  do {
    pcVar3[0] = '\0';
    pcVar3[1] = '\0';
    pcVar3 = pcVar3 + 4;
  } while (pcVar3 != (cc_t *)(pgVar1->line_buf + 0x58));
  ptVar4 = (termios *)&pgVar2[0xd].eol;
  do {
    *(undefined2 *)&ptVar4->c_iflag = 0;
    ptVar4 = (termios *)&ptVar4->c_oflag;
  } while (ptVar4 != (termios *)(pgVar2[0xd].line_buf + 0x38));
  piVar5 = &pgVar2[0x13].numspeed;
  do {
    *(undefined2 *)piVar5 = 0;
    piVar5 = piVar5 + 1;
  } while (piVar5 != (int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb));
  pgVar2[8].tty_attrs.c_cc[0xb] = '\x01';
  pgVar2[8].tty_attrs.c_cc[0xc] = '\0';
  pgVar2[0x2a].tty_name = (char *)0x0;
  pgVar2[0x2a].fakehost = (char *)0x0;
  pgVar2[0x29].line_buf[0x78] = '\0';
  pgVar2[0x29].line_buf[0x79] = '\0';
  pgVar2[0x29].line_buf[0x7a] = '\0';
  pgVar2[0x29].line_buf[0x7b] = '\0';
  pgVar2[0x29].line_buf[0x7c] = '\0';
  pgVar2[0x29].line_buf[0x7d] = '\0';
  pgVar2[0x29].line_buf[0x7e] = '\0';
  pgVar2[0x29].line_buf[0x7f] = '\0';
  pgVar2[0x2a].timeout = 0;
  *(undefined2 *)&pgVar2[0x2a].login = 0x100;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_00072cea(void)

{
  undefined2 *puVar1;
  int iVar2;
  undefined2 *puVar3;
  
  iVar2 = DAT_000d1700;
  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);
  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);
  do {
    *puVar3 = 0;
    puVar3 = puVar3 + 2;
  } while (puVar3 != puVar1);
  puVar3 = (undefined2 *)(iVar2 + 0xd78);
  do {
    *puVar3 = 0;
    puVar3 = puVar3 + 2;
  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));
  puVar3 = (undefined2 *)(iVar2 + 0x1364);
  do {
    *puVar3 = 0;
    puVar3 = puVar3 + 2;
  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));
  *(undefined2 *)(iVar2 + 0x884) = 1;
  *(undefined4 *)(iVar2 + 0x2ab4) = 0;
  *(undefined4 *)(iVar2 + 0x2ab0) = 0;
  *(undefined4 *)(iVar2 + 0x2aa0) = 0;
  *(undefined4 *)(iVar2 + 0x2aa4) = 0;
  *(undefined4 *)(iVar2 + 0x2aa8) = 0;
  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;
  return;
}


CALL 0x0001a685
ADD EAX,0x5dd31
MOV EAX,dword ptr [EAX + 0xce0]
LEA EDX,[EAX + 0x484]
LEA ECX,[EAX + 0x8fc]
MOV word ptr [EDX],0x0
ADD EDX,0x4
CMP EDX,ECX
JNZ 0x00072d06
LEA EDX,[EAX + 0xd78]
LEA ECX,[EAX + 0xdf0]
MOV word ptr [EDX],0x0
ADD EDX,0x4
CMP EDX,ECX
JNZ 0x00072d1e
LEA EDX,[EAX + 0x1364]
LEA ECX,[EAX + 0x13b0]
MOV word ptr [EDX],0x0
ADD EDX,0x4
CMP EDX,ECX
JNZ 0x00072d36
MOV word ptr [EAX + 0x884],0x1
MOV dword ptr [EAX + 0x2ab4],0x0
MOV dword ptr [EAX + 0x2ab0],0x0
MOV dword ptr [EAX + 0x2aa0],0x0
MOV dword ptr [EAX + 0x2aa4],0x0
MOV dword ptr [EAX + 0x2aa8],0x0
MOV word ptr [EAX + 0x2aac],0x100
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_00072cea(void)\n\n{\n  undefined2 *puVar1;\n  int iVar2;\n  undefined2 *puVar3;\n  \n  iVar2 = DAT_000d1700;\n  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);\n  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);\n  puVar3 = (undefined2 *)(iVar2 + 0xd78);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));\n  puVar3 = (undefined2 *)(iVar2 + 0x1364);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));\n  *(undefined2 *)(iVar2 + 0x884) = 1;\n  *(undefined4 *)(iVar2 + 0x2ab4) = 0;\n  *(undefined4 *)(iVar2 + 0x2ab0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa4) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa8) = 0;\n  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;\n  return;\n}\n\n" comment (function_definition "void FUN_00072cea(void)\n\n{\n  undefined2 *puVar1;\n  int iVar2;\n  undefined2 *puVar3;\n  \n  iVar2 = DAT_000d1700;\n  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);\n  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);\n  puVar3 = (undefined2 *)(iVar2 + 0xd78);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));\n  puVar3 = (undefined2 *)(iVar2 + 0x1364);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));\n  *(undefined2 *)(iVar2 + 0x884) = 1;\n  *(undefined4 *)(iVar2 + 0x2ab4) = 0;\n  *(undefined4 *)(iVar2 + 0x2ab0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa4) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa8) = 0;\n  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;\n  return;\n}" primitive_type (function_declarator "FUN_00072cea(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined2 *puVar1;\n  int iVar2;\n  undefined2 *puVar3;\n  \n  iVar2 = DAT_000d1700;\n  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);\n  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);\n  puVar3 = (undefined2 *)(iVar2 + 0xd78);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));\n  puVar3 = (undefined2 *)(iVar2 + 0x1364);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));\n  *(undefined2 *)(iVar2 + 0x884) = 1;\n  *(undefined4 *)(iVar2 + 0x2ab4) = 0;\n  *(undefined4 *)(iVar2 + 0x2ab0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa4) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa8) = 0;\n  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;\n  return;\n}" { (declaration "undefined2 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar2 = DAT_000d1700;" (assignment_expression "iVar2 = DAT_000d1700" identifier = identifier) ;) (expression_statement "puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);" (assignment_expression "puVar3 = (undefined2 *)(DAT_000d1700 + 0x484)" identifier = (cast_expression "(undefined2 *)(DAT_000d1700 + 0x484)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000d1700 + 0x484)" ( (binary_expression "DAT_000d1700 + 0x484" identifier + number_literal) )))) ;) (expression_statement "puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);" (assignment_expression "puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc)" identifier = (cast_expression "(undefined2 *)(DAT_000d1700 + 0x8fc)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000d1700 + 0x8fc)" ( (binary_expression "DAT_000d1700 + 0x8fc" identifier + number_literal) )))) ;) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);" do (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar3 != puVar1)" ( (binary_expression "puVar3 != puVar1" identifier != identifier) )) ;) (expression_statement "puVar3 = (undefined2 *)(iVar2 + 0xd78);" (assignment_expression "puVar3 = (undefined2 *)(iVar2 + 0xd78)" identifier = (cast_expression "(undefined2 *)(iVar2 + 0xd78)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd78)" ( (binary_expression "iVar2 + 0xd78" identifier + number_literal) )))) ;) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));" do (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar3 != (undefined2 *)(iVar2 + 0xdf0))" ( (binary_expression "puVar3 != (undefined2 *)(iVar2 + 0xdf0)" identifier != (cast_expression "(undefined2 *)(iVar2 + 0xdf0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xdf0)" ( (binary_expression "iVar2 + 0xdf0" identifier + number_literal) )))) )) ;) (expression_statement "puVar3 = (undefined2 *)(iVar2 + 0x1364);" (assignment_expression "puVar3 = (undefined2 *)(iVar2 + 0x1364)" identifier = (cast_expression "(undefined2 *)(iVar2 + 0x1364)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1364)" ( (binary_expression "iVar2 + 0x1364" identifier + number_literal) )))) ;) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));" do (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar3 != (undefined2 *)(iVar2 + 0x13b0))" ( (binary_expression "puVar3 != (undefined2 *)(iVar2 + 0x13b0)" identifier != (cast_expression "(undefined2 *)(iVar2 + 0x13b0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x13b0)" ( (binary_expression "iVar2 + 0x13b0" identifier + number_literal) )))) )) ;) (expression_statement "*(undefined2 *)(iVar2 + 0x884) = 1;" (assignment_expression "*(undefined2 *)(iVar2 + 0x884) = 1" (pointer_expression "*(undefined2 *)(iVar2 + 0x884)" * (cast_expression "(undefined2 *)(iVar2 + 0x884)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x884)" ( (binary_expression "iVar2 + 0x884" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2ab4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ab4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ab4)" * (cast_expression "(undefined4 *)(iVar2 + 0x2ab4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2ab4)" ( (binary_expression "iVar2 + 0x2ab4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2ab0) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ab0) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ab0)" * (cast_expression "(undefined4 *)(iVar2 + 0x2ab0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2ab0)" ( (binary_expression "iVar2 + 0x2ab0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa0) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa0) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa0)" * (cast_expression "(undefined4 *)(iVar2 + 0x2aa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2aa0)" ( (binary_expression "iVar2 + 0x2aa0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa4)" * (cast_expression "(undefined4 *)(iVar2 + 0x2aa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2aa4)" ( (binary_expression "iVar2 + 0x2aa4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa8)" * (cast_expression "(undefined4 *)(iVar2 + 0x2aa8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2aa8)" ( (binary_expression "iVar2 + 0x2aa8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar2 + 0x2aac) = 0x100;" (assignment_expression "*(undefined2 *)(iVar2 + 0x2aac) = 0x100" (pointer_expression "*(undefined2 *)(iVar2 + 0x2aac)" * (cast_expression "(undefined2 *)(iVar2 + 0x2aac)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2aac)" ( (binary_expression "iVar2 + 0x2aac" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid init_block(void)\n\n{\n  globals *pgVar1;\n  globals *pgVar2;\n  cc_t *pcVar3;\n  termios *ptVar4;\n  int *piVar5;\n  \n  pgVar2 = ptr_to_globals;\n  pcVar3 = ptr_to_globals[4].tty_attrs.c_cc + 0x1b;\n  pgVar1 = ptr_to_globals + 8;\n  do {\n    pcVar3[0] = '\0';\n    pcVar3[1] = '\0';\n    pcVar3 = pcVar3 + 4;\n  } while (pcVar3 != (cc_t *)(pgVar1->line_buf + 0x58));\n  ptVar4 = (termios *)&pgVar2[0xd].eol;\n  do {\n    *(undefined2 *)&ptVar4->c_iflag = 0;\n    ptVar4 = (termios *)&ptVar4->c_oflag;\n  } while (ptVar4 != (termios *)(pgVar2[0xd].line_buf + 0x38));\n  piVar5 = &pgVar2[0x13].numspeed;\n  do {\n    *(undefined2 *)piVar5 = 0;\n    piVar5 = piVar5 + 1;\n  } while (piVar5 != (int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb));\n  pgVar2[8].tty_attrs.c_cc[0xb] = '\x01';\n  pgVar2[8].tty_attrs.c_cc[0xc] = '\0';\n  pgVar2[0x2a].tty_name = (char *)0x0;\n  pgVar2[0x2a].fakehost = (char *)0x0;\n  pgVar2[0x29].line_buf[0x78] = '\0';\n  pgVar2[0x29].line_buf[0x79] = '\0';\n  pgVar2[0x29].line_buf[0x7a] = '\0';\n  pgVar2[0x29].line_buf[0x7b] = '\0';\n  pgVar2[0x29].line_buf[0x7c] = '\0';\n  pgVar2[0x29].line_buf[0x7d] = '\0';\n  pgVar2[0x29].line_buf[0x7e] = '\0';\n  pgVar2[0x29].line_buf[0x7f] = '\0';\n  pgVar2[0x2a].timeout = 0;\n  *(undefined2 *)&pgVar2[0x2a].login = 0x100;\n  return;\n}\n\n" comment (function_definition "void init_block(void)\n\n{\n  globals *pgVar1;\n  globals *pgVar2;\n  cc_t *pcVar3;\n  termios *ptVar4;\n  int *piVar5;\n  \n  pgVar2 = ptr_to_globals;\n  pcVar3 = ptr_to_globals[4].tty_attrs.c_cc + 0x1b;\n  pgVar1 = ptr_to_globals + 8;\n  do {\n    pcVar3[0] = '\0';\n    pcVar3[1] = '\0';\n    pcVar3 = pcVar3 + 4;\n  } while (pcVar3 != (cc_t *)(pgVar1->line_buf + 0x58));\n  ptVar4 = (termios *)&pgVar2[0xd].eol;\n  do {\n    *(undefined2 *)&ptVar4->c_iflag = 0;\n    ptVar4 = (termios *)&ptVar4->c_oflag;\n  } while (ptVar4 != (termios *)(pgVar2[0xd].line_buf + 0x38));\n  piVar5 = &pgVar2[0x13].numspeed;\n  do {\n    *(undefined2 *)piVar5 = 0;\n    piVar5 = piVar5 + 1;\n  } while (piVar5 != (int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb));\n  pgVar2[8].tty_attrs.c_cc[0xb] = '\x01';\n  pgVar2[8].tty_attrs.c_cc[0xc] = '\0';\n  pgVar2[0x2a].tty_name = (char *)0x0;\n  pgVar2[0x2a].fakehost = (char *)0x0;\n  pgVar2[0x29].line_buf[0x78] = '\0';\n  pgVar2[0x29].line_buf[0x79] = '\0';\n  pgVar2[0x29].line_buf[0x7a] = '\0';\n  pgVar2[0x29].line_buf[0x7b] = '\0';\n  pgVar2[0x29].line_buf[0x7c] = '\0';\n  pgVar2[0x29].line_buf[0x7d] = '\0';\n  pgVar2[0x29].line_buf[0x7e] = '\0';\n  pgVar2[0x29].line_buf[0x7f] = '\0';\n  pgVar2[0x2a].timeout = 0;\n  *(undefined2 *)&pgVar2[0x2a].login = 0x100;\n  return;\n}" primitive_type (function_declarator "init_block(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  globals *pgVar1;\n  globals *pgVar2;\n  cc_t *pcVar3;\n  termios *ptVar4;\n  int *piVar5;\n  \n  pgVar2 = ptr_to_globals;\n  pcVar3 = ptr_to_globals[4].tty_attrs.c_cc + 0x1b;\n  pgVar1 = ptr_to_globals + 8;\n  do {\n    pcVar3[0] = '\0';\n    pcVar3[1] = '\0';\n    pcVar3 = pcVar3 + 4;\n  } while (pcVar3 != (cc_t *)(pgVar1->line_buf + 0x58));\n  ptVar4 = (termios *)&pgVar2[0xd].eol;\n  do {\n    *(undefined2 *)&ptVar4->c_iflag = 0;\n    ptVar4 = (termios *)&ptVar4->c_oflag;\n  } while (ptVar4 != (termios *)(pgVar2[0xd].line_buf + 0x38));\n  piVar5 = &pgVar2[0x13].numspeed;\n  do {\n    *(undefined2 *)piVar5 = 0;\n    piVar5 = piVar5 + 1;\n  } while (piVar5 != (int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb));\n  pgVar2[8].tty_attrs.c_cc[0xb] = '\x01';\n  pgVar2[8].tty_attrs.c_cc[0xc] = '\0';\n  pgVar2[0x2a].tty_name = (char *)0x0;\n  pgVar2[0x2a].fakehost = (char *)0x0;\n  pgVar2[0x29].line_buf[0x78] = '\0';\n  pgVar2[0x29].line_buf[0x79] = '\0';\n  pgVar2[0x29].line_buf[0x7a] = '\0';\n  pgVar2[0x29].line_buf[0x7b] = '\0';\n  pgVar2[0x29].line_buf[0x7c] = '\0';\n  pgVar2[0x29].line_buf[0x7d] = '\0';\n  pgVar2[0x29].line_buf[0x7e] = '\0';\n  pgVar2[0x29].line_buf[0x7f] = '\0';\n  pgVar2[0x2a].timeout = 0;\n  *(undefined2 *)&pgVar2[0x2a].login = 0x100;\n  return;\n}" { (declaration "globals *pgVar1;" type_identifier (pointer_declarator "*pgVar1" * identifier) ;) (declaration "globals *pgVar2;" type_identifier (pointer_declarator "*pgVar2" * identifier) ;) (declaration "cc_t *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "termios *ptVar4;" type_identifier (pointer_declarator "*ptVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "pgVar2 = ptr_to_globals;" (assignment_expression "pgVar2 = ptr_to_globals" identifier = identifier) ;) (expression_statement "pcVar3 = ptr_to_globals[4].tty_attrs.c_cc + 0x1b;" (assignment_expression "pcVar3 = ptr_to_globals[4].tty_attrs.c_cc + 0x1b" identifier = (binary_expression "ptr_to_globals[4].tty_attrs.c_cc + 0x1b" (field_expression "ptr_to_globals[4].tty_attrs.c_cc" (field_expression "ptr_to_globals[4].tty_attrs" (subscript_expression "ptr_to_globals[4]" identifier [ number_literal ]) . field_identifier) . field_identifier) + number_literal)) ;) (expression_statement "pgVar1 = ptr_to_globals + 8;" (assignment_expression "pgVar1 = ptr_to_globals + 8" identifier = (binary_expression "ptr_to_globals + 8" identifier + number_literal)) ;) (do_statement "do {\n    pcVar3[0] = '\0';\n    pcVar3[1] = '\0';\n    pcVar3 = pcVar3 + 4;\n  } while (pcVar3 != (cc_t *)(pgVar1->line_buf + 0x58));" do (compound_statement "{\n    pcVar3[0] = '\0';\n    pcVar3[1] = '\0';\n    pcVar3 = pcVar3 + 4;\n  }" { (expression_statement "pcVar3[0] = '\0';" (assignment_expression "pcVar3[0] = '\0'" (subscript_expression "pcVar3[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3 = pcVar3 + 4;" (assignment_expression "pcVar3 = pcVar3 + 4" identifier = (binary_expression "pcVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar3 != (cc_t *)(pgVar1->line_buf + 0x58))" ( (binary_expression "pcVar3 != (cc_t *)(pgVar1->line_buf + 0x58)" identifier != (cast_expression "(cc_t *)(pgVar1->line_buf + 0x58)" ( (type_descriptor "cc_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pgVar1->line_buf + 0x58)" ( (binary_expression "pgVar1->line_buf + 0x58" (field_expression "pgVar1->line_buf" identifier -> field_identifier) + number_literal) )))) )) ;) (expression_statement "ptVar4 = (termios *)&pgVar2[0xd].eol;" (assignment_expression "ptVar4 = (termios *)&pgVar2[0xd].eol" identifier = (cast_expression "(termios *)&pgVar2[0xd].eol" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pgVar2[0xd].eol" & (field_expression "pgVar2[0xd].eol" (subscript_expression "pgVar2[0xd]" identifier [ number_literal ]) . field_identifier)))) ;) (do_statement "do {\n    *(undefined2 *)&ptVar4->c_iflag = 0;\n    ptVar4 = (termios *)&ptVar4->c_oflag;\n  } while (ptVar4 != (termios *)(pgVar2[0xd].line_buf + 0x38));" do (compound_statement "{\n    *(undefined2 *)&ptVar4->c_iflag = 0;\n    ptVar4 = (termios *)&ptVar4->c_oflag;\n  }" { (expression_statement "*(undefined2 *)&ptVar4->c_iflag = 0;" (assignment_expression "*(undefined2 *)&ptVar4->c_iflag = 0" (pointer_expression "*(undefined2 *)&ptVar4->c_iflag" * (cast_expression "(undefined2 *)&ptVar4->c_iflag" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ptVar4->c_iflag" & (field_expression "ptVar4->c_iflag" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "ptVar4 = (termios *)&ptVar4->c_oflag;" (assignment_expression "ptVar4 = (termios *)&ptVar4->c_oflag" identifier = (cast_expression "(termios *)&ptVar4->c_oflag" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ptVar4->c_oflag" & (field_expression "ptVar4->c_oflag" identifier -> field_identifier)))) ;) }) while (parenthesized_expression "(ptVar4 != (termios *)(pgVar2[0xd].line_buf + 0x38))" ( (binary_expression "ptVar4 != (termios *)(pgVar2[0xd].line_buf + 0x38)" identifier != (cast_expression "(termios *)(pgVar2[0xd].line_buf + 0x38)" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pgVar2[0xd].line_buf + 0x38)" ( (binary_expression "pgVar2[0xd].line_buf + 0x38" (field_expression "pgVar2[0xd].line_buf" (subscript_expression "pgVar2[0xd]" identifier [ number_literal ]) . field_identifier) + number_literal) )))) )) ;) (expression_statement "piVar5 = &pgVar2[0x13].numspeed;" (assignment_expression "piVar5 = &pgVar2[0x13].numspeed" identifier = (pointer_expression "&pgVar2[0x13].numspeed" & (field_expression "pgVar2[0x13].numspeed" (subscript_expression "pgVar2[0x13]" identifier [ number_literal ]) . field_identifier))) ;) (do_statement "do {\n    *(undefined2 *)piVar5 = 0;\n    piVar5 = piVar5 + 1;\n  } while (piVar5 != (int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb));" do (compound_statement "{\n    *(undefined2 *)piVar5 = 0;\n    piVar5 = piVar5 + 1;\n  }" { (expression_statement "*(undefined2 *)piVar5 = 0;" (assignment_expression "*(undefined2 *)piVar5 = 0" (pointer_expression "*(undefined2 *)piVar5" * (cast_expression "(undefined2 *)piVar5" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 != (int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb))" ( (binary_expression "piVar5 != (int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb)" identifier != (cast_expression "(int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pgVar2[0x13].tty_attrs.c_cc + 0xb)" ( (binary_expression "pgVar2[0x13].tty_attrs.c_cc + 0xb" (field_expression "pgVar2[0x13].tty_attrs.c_cc" (field_expression "pgVar2[0x13].tty_attrs" (subscript_expression "pgVar2[0x13]" identifier [ number_literal ]) . field_identifier) . field_identifier) + number_literal) )))) )) ;) (expression_statement "pgVar2[8].tty_attrs.c_cc[0xb] = '\x01';" (assignment_expression "pgVar2[8].tty_attrs.c_cc[0xb] = '\x01'" (subscript_expression "pgVar2[8].tty_attrs.c_cc[0xb]" (field_expression "pgVar2[8].tty_attrs.c_cc" (field_expression "pgVar2[8].tty_attrs" (subscript_expression "pgVar2[8]" identifier [ number_literal ]) . field_identifier) . field_identifier) [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "pgVar2[8].tty_attrs.c_cc[0xc] = '\0';" (assignment_expression "pgVar2[8].tty_attrs.c_cc[0xc] = '\0'" (subscript_expression "pgVar2[8].tty_attrs.c_cc[0xc]" (field_expression "pgVar2[8].tty_attrs.c_cc" (field_expression "pgVar2[8].tty_attrs" (subscript_expression "pgVar2[8]" identifier [ number_literal ]) . field_identifier) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x2a].tty_name = (char *)0x0;" (assignment_expression "pgVar2[0x2a].tty_name = (char *)0x0" (field_expression "pgVar2[0x2a].tty_name" (subscript_expression "pgVar2[0x2a]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pgVar2[0x2a].fakehost = (char *)0x0;" (assignment_expression "pgVar2[0x2a].fakehost = (char *)0x0" (field_expression "pgVar2[0x2a].fakehost" (subscript_expression "pgVar2[0x2a]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pgVar2[0x29].line_buf[0x78] = '\0';" (assignment_expression "pgVar2[0x29].line_buf[0x78] = '\0'" (subscript_expression "pgVar2[0x29].line_buf[0x78]" (field_expression "pgVar2[0x29].line_buf" (subscript_expression "pgVar2[0x29]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x29].line_buf[0x79] = '\0';" (assignment_expression "pgVar2[0x29].line_buf[0x79] = '\0'" (subscript_expression "pgVar2[0x29].line_buf[0x79]" (field_expression "pgVar2[0x29].line_buf" (subscript_expression "pgVar2[0x29]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x29].line_buf[0x7a] = '\0';" (assignment_expression "pgVar2[0x29].line_buf[0x7a] = '\0'" (subscript_expression "pgVar2[0x29].line_buf[0x7a]" (field_expression "pgVar2[0x29].line_buf" (subscript_expression "pgVar2[0x29]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x29].line_buf[0x7b] = '\0';" (assignment_expression "pgVar2[0x29].line_buf[0x7b] = '\0'" (subscript_expression "pgVar2[0x29].line_buf[0x7b]" (field_expression "pgVar2[0x29].line_buf" (subscript_expression "pgVar2[0x29]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x29].line_buf[0x7c] = '\0';" (assignment_expression "pgVar2[0x29].line_buf[0x7c] = '\0'" (subscript_expression "pgVar2[0x29].line_buf[0x7c]" (field_expression "pgVar2[0x29].line_buf" (subscript_expression "pgVar2[0x29]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x29].line_buf[0x7d] = '\0';" (assignment_expression "pgVar2[0x29].line_buf[0x7d] = '\0'" (subscript_expression "pgVar2[0x29].line_buf[0x7d]" (field_expression "pgVar2[0x29].line_buf" (subscript_expression "pgVar2[0x29]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x29].line_buf[0x7e] = '\0';" (assignment_expression "pgVar2[0x29].line_buf[0x7e] = '\0'" (subscript_expression "pgVar2[0x29].line_buf[0x7e]" (field_expression "pgVar2[0x29].line_buf" (subscript_expression "pgVar2[0x29]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x29].line_buf[0x7f] = '\0';" (assignment_expression "pgVar2[0x29].line_buf[0x7f] = '\0'" (subscript_expression "pgVar2[0x29].line_buf[0x7f]" (field_expression "pgVar2[0x29].line_buf" (subscript_expression "pgVar2[0x29]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pgVar2[0x2a].timeout = 0;" (assignment_expression "pgVar2[0x2a].timeout = 0" (field_expression "pgVar2[0x2a].timeout" (subscript_expression "pgVar2[0x2a]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "*(undefined2 *)&pgVar2[0x2a].login = 0x100;" (assignment_expression "*(undefined2 *)&pgVar2[0x2a].login = 0x100" (pointer_expression "*(undefined2 *)&pgVar2[0x2a].login" * (cast_expression "(undefined2 *)&pgVar2[0x2a].login" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pgVar2[0x2a].login" & (field_expression "pgVar2[0x2a].login" (subscript_expression "pgVar2[0x2a]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00072cea(void)\n\n{\n  undefined2 *puVar1;\n  int iVar2;\n  undefined2 *puVar3;\n  \n  iVar2 = DAT_000d1700;\n  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);\n  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);\n  puVar3 = (undefined2 *)(iVar2 + 0xd78);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));\n  puVar3 = (undefined2 *)(iVar2 + 0x1364);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));\n  *(undefined2 *)(iVar2 + 0x884) = 1;\n  *(undefined4 *)(iVar2 + 0x2ab4) = 0;\n  *(undefined4 *)(iVar2 + 0x2ab0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa4) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa8) = 0;\n  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;\n  return;\n}\n\n" (function_definition "void FUN_00072cea(void)\n\n{\n  undefined2 *puVar1;\n  int iVar2;\n  undefined2 *puVar3;\n  \n  iVar2 = DAT_000d1700;\n  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);\n  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);\n  puVar3 = (undefined2 *)(iVar2 + 0xd78);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));\n  puVar3 = (undefined2 *)(iVar2 + 0x1364);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));\n  *(undefined2 *)(iVar2 + 0x884) = 1;\n  *(undefined4 *)(iVar2 + 0x2ab4) = 0;\n  *(undefined4 *)(iVar2 + 0x2ab0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa4) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa8) = 0;\n  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;\n  return;\n}" primitive_type (function_declarator "FUN_00072cea(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined2 *puVar1;\n  int iVar2;\n  undefined2 *puVar3;\n  \n  iVar2 = DAT_000d1700;\n  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);\n  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);\n  puVar3 = (undefined2 *)(iVar2 + 0xd78);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));\n  puVar3 = (undefined2 *)(iVar2 + 0x1364);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));\n  *(undefined2 *)(iVar2 + 0x884) = 1;\n  *(undefined4 *)(iVar2 + 0x2ab4) = 0;\n  *(undefined4 *)(iVar2 + 0x2ab0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa4) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa8) = 0;\n  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;\n  return;\n}" { (declaration "undefined2 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar2 = DAT_000d1700;" (assignment_expression "iVar2 = DAT_000d1700" identifier = identifier) ;) (expression_statement "puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);" (assignment_expression "puVar3 = (undefined2 *)(DAT_000d1700 + 0x484)" identifier = (cast_expression "(undefined2 *)(DAT_000d1700 + 0x484)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000d1700 + 0x484)" ( (binary_expression "DAT_000d1700 + 0x484" identifier + number_literal) )))) ;) (expression_statement "puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);" (assignment_expression "puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc)" identifier = (cast_expression "(undefined2 *)(DAT_000d1700 + 0x8fc)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000d1700 + 0x8fc)" ( (binary_expression "DAT_000d1700 + 0x8fc" identifier + number_literal) )))) ;) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);" do (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar3 != puVar1)" ( (binary_expression "puVar3 != puVar1" identifier != identifier) )) ;) (expression_statement "puVar3 = (undefined2 *)(iVar2 + 0xd78);" (assignment_expression "puVar3 = (undefined2 *)(iVar2 + 0xd78)" identifier = (cast_expression "(undefined2 *)(iVar2 + 0xd78)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd78)" ( (binary_expression "iVar2 + 0xd78" identifier + number_literal) )))) ;) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));" do (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar3 != (undefined2 *)(iVar2 + 0xdf0))" ( (binary_expression "puVar3 != (undefined2 *)(iVar2 + 0xdf0)" identifier != (cast_expression "(undefined2 *)(iVar2 + 0xdf0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xdf0)" ( (binary_expression "iVar2 + 0xdf0" identifier + number_literal) )))) )) ;) (expression_statement "puVar3 = (undefined2 *)(iVar2 + 0x1364);" (assignment_expression "puVar3 = (undefined2 *)(iVar2 + 0x1364)" identifier = (cast_expression "(undefined2 *)(iVar2 + 0x1364)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1364)" ( (binary_expression "iVar2 + 0x1364" identifier + number_literal) )))) ;) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));" do (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar3 != (undefined2 *)(iVar2 + 0x13b0))" ( (binary_expression "puVar3 != (undefined2 *)(iVar2 + 0x13b0)" identifier != (cast_expression "(undefined2 *)(iVar2 + 0x13b0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x13b0)" ( (binary_expression "iVar2 + 0x13b0" identifier + number_literal) )))) )) ;) (expression_statement "*(undefined2 *)(iVar2 + 0x884) = 1;" (assignment_expression "*(undefined2 *)(iVar2 + 0x884) = 1" (pointer_expression "*(undefined2 *)(iVar2 + 0x884)" * (cast_expression "(undefined2 *)(iVar2 + 0x884)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x884)" ( (binary_expression "iVar2 + 0x884" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2ab4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ab4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ab4)" * (cast_expression "(undefined4 *)(iVar2 + 0x2ab4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2ab4)" ( (binary_expression "iVar2 + 0x2ab4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2ab0) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ab0) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ab0)" * (cast_expression "(undefined4 *)(iVar2 + 0x2ab0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2ab0)" ( (binary_expression "iVar2 + 0x2ab0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa0) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa0) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa0)" * (cast_expression "(undefined4 *)(iVar2 + 0x2aa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2aa0)" ( (binary_expression "iVar2 + 0x2aa0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa4)" * (cast_expression "(undefined4 *)(iVar2 + 0x2aa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2aa4)" ( (binary_expression "iVar2 + 0x2aa4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa8)" * (cast_expression "(undefined4 *)(iVar2 + 0x2aa8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2aa8)" ( (binary_expression "iVar2 + 0x2aa8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar2 + 0x2aac) = 0x100;" (assignment_expression "*(undefined2 *)(iVar2 + 0x2aac) = 0x100" (pointer_expression "*(undefined2 *)(iVar2 + 0x2aac)" * (cast_expression "(undefined2 *)(iVar2 + 0x2aac)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2aac)" ( (binary_expression "iVar2 + 0x2aac" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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) ;) (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) ;) (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) ;) (return_statement return ;) })))
(function_definition "void FUN_00072cea(void)\n\n{\n  undefined2 *puVar1;\n  int iVar2;\n  undefined2 *puVar3;\n  \n  iVar2 = DAT_000d1700;\n  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);\n  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);\n  puVar3 = (undefined2 *)(iVar2 + 0xd78);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));\n  puVar3 = (undefined2 *)(iVar2 + 0x1364);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));\n  *(undefined2 *)(iVar2 + 0x884) = 1;\n  *(undefined4 *)(iVar2 + 0x2ab4) = 0;\n  *(undefined4 *)(iVar2 + 0x2ab0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa4) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa8) = 0;\n  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00072cea(void)" (identifier "FUN_00072cea") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined2 *puVar1;\n  int iVar2;\n  undefined2 *puVar3;\n  \n  iVar2 = DAT_000d1700;\n  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);\n  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);\n  puVar3 = (undefined2 *)(iVar2 + 0xd78);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));\n  puVar3 = (undefined2 *)(iVar2 + 0x1364);\n  do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));\n  *(undefined2 *)(iVar2 + 0x884) = 1;\n  *(undefined4 *)(iVar2 + 0x2ab4) = 0;\n  *(undefined4 *)(iVar2 + 0x2ab0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa0) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa4) = 0;\n  *(undefined4 *)(iVar2 + 0x2aa8) = 0;\n  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;\n  return;\n}" ({ "{") (declaration "undefined2 *puVar1;" (type_identifier "undefined2") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined2 *puVar3;" (type_identifier "undefined2") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "iVar2 = DAT_000d1700;" (assignment_expression "iVar2 = DAT_000d1700" (identifier "iVar2") (= "=") (identifier "DAT_000d1700")) (; ";")) (expression_statement "puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);" (assignment_expression "puVar3 = (undefined2 *)(DAT_000d1700 + 0x484)" (identifier "puVar3") (= "=") (cast_expression "(undefined2 *)(DAT_000d1700 + 0x484)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000d1700 + 0x484)" (( "(") (binary_expression "DAT_000d1700 + 0x484" (identifier "DAT_000d1700") (+ "+") (number_literal "0x484")) () ")")))) (; ";")) (expression_statement "puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);" (assignment_expression "puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc)" (identifier "puVar1") (= "=") (cast_expression "(undefined2 *)(DAT_000d1700 + 0x8fc)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000d1700 + 0x8fc)" (( "(") (binary_expression "DAT_000d1700 + 0x8fc" (identifier "DAT_000d1700") (+ "+") (number_literal "0x8fc")) () ")")))) (; ";")) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != puVar1);" (do "do") (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 != puVar1)" (( "(") (binary_expression "puVar3 != puVar1" (identifier "puVar3") (!= "!=") (identifier "puVar1")) () ")")) (; ";")) (expression_statement "puVar3 = (undefined2 *)(iVar2 + 0xd78);" (assignment_expression "puVar3 = (undefined2 *)(iVar2 + 0xd78)" (identifier "puVar3") (= "=") (cast_expression "(undefined2 *)(iVar2 + 0xd78)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xd78)" (( "(") (binary_expression "iVar2 + 0xd78" (identifier "iVar2") (+ "+") (number_literal "0xd78")) () ")")))) (; ";")) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));" (do "do") (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 != (undefined2 *)(iVar2 + 0xdf0))" (( "(") (binary_expression "puVar3 != (undefined2 *)(iVar2 + 0xdf0)" (identifier "puVar3") (!= "!=") (cast_expression "(undefined2 *)(iVar2 + 0xdf0)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xdf0)" (( "(") (binary_expression "iVar2 + 0xdf0" (identifier "iVar2") (+ "+") (number_literal "0xdf0")) () ")")))) () ")")) (; ";")) (expression_statement "puVar3 = (undefined2 *)(iVar2 + 0x1364);" (assignment_expression "puVar3 = (undefined2 *)(iVar2 + 0x1364)" (identifier "puVar3") (= "=") (cast_expression "(undefined2 *)(iVar2 + 0x1364)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1364)" (( "(") (binary_expression "iVar2 + 0x1364" (identifier "iVar2") (+ "+") (number_literal "0x1364")) () ")")))) (; ";")) (do_statement "do {\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));" (do "do") (compound_statement "{\n    *puVar3 = 0;\n    puVar3 = puVar3 + 2;\n  }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + 2;" (assignment_expression "puVar3 = puVar3 + 2" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 != (undefined2 *)(iVar2 + 0x13b0))" (( "(") (binary_expression "puVar3 != (undefined2 *)(iVar2 + 0x13b0)" (identifier "puVar3") (!= "!=") (cast_expression "(undefined2 *)(iVar2 + 0x13b0)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x13b0)" (( "(") (binary_expression "iVar2 + 0x13b0" (identifier "iVar2") (+ "+") (number_literal "0x13b0")) () ")")))) () ")")) (; ";")) (expression_statement "*(undefined2 *)(iVar2 + 0x884) = 1;" (assignment_expression "*(undefined2 *)(iVar2 + 0x884) = 1" (pointer_expression "*(undefined2 *)(iVar2 + 0x884)" (* "*") (cast_expression "(undefined2 *)(iVar2 + 0x884)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x884)" (( "(") (binary_expression "iVar2 + 0x884" (identifier "iVar2") (+ "+") (number_literal "0x884")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x2ab4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ab4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ab4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x2ab4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2ab4)" (( "(") (binary_expression "iVar2 + 0x2ab4" (identifier "iVar2") (+ "+") (number_literal "0x2ab4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x2ab0) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2ab0) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2ab0)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x2ab0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2ab0)" (( "(") (binary_expression "iVar2 + 0x2ab0" (identifier "iVar2") (+ "+") (number_literal "0x2ab0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa0) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa0) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa0)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x2aa0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2aa0)" (( "(") (binary_expression "iVar2 + 0x2aa0" (identifier "iVar2") (+ "+") (number_literal "0x2aa0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa4) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa4) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x2aa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2aa4)" (( "(") (binary_expression "iVar2 + 0x2aa4" (identifier "iVar2") (+ "+") (number_literal "0x2aa4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x2aa8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x2aa8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x2aa8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x2aa8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2aa8)" (( "(") (binary_expression "iVar2 + 0x2aa8" (identifier "iVar2") (+ "+") (number_literal "0x2aa8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(iVar2 + 0x2aac) = 0x100;" (assignment_expression "*(undefined2 *)(iVar2 + 0x2aac) = 0x100" (pointer_expression "*(undefined2 *)(iVar2 + 0x2aac)" (* "*") (cast_expression "(undefined2 *)(iVar2 + 0x2aac)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2aac)" (( "(") (binary_expression "iVar2 + 0x2aac" (identifier "iVar2") (+ "+") (number_literal "0x2aac")) () ")")))) (= "=") (number_literal "0x100")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void function_1(void)

{
  type_1 *pgVar1;
  type_1 *pgVar2;
  type_2 *var_2;
  type_3 *var_3;
  int *var_4;
  
  pgVar2 = var_1;
  var_2 = var_1[4].tty_attrs.c_cc + 0x1b;
  pgVar1 = var_1 + 8;
  do {
    var_2[0] = '\0';
    var_2[1] = '\0';
    var_2 = var_2 + 4;
  } while (var_2 != (type_2 *)(pgVar1->line_buf + 0x58));
  var_3 = (type_3 *)&pgVar2[0xd].eol;
  do {
    *(type_4 *)&var_3->c_iflag = 0;
    var_3 = (type_3 *)&var_3->c_oflag;
  } while (var_3 != (type_3 *)(pgVar2[0xd].line_buf + 0x38));
  var_4 = &pgVar2[0x13].numspeed;
  do {
    *(type_4 *)var_4 = 0;
    var_4 = var_4 + 1;
  } while (var_4 != (int *)(pgVar2[0x13].tty_attrs.c_cc + 0xb));
  pgVar2[8].tty_attrs.c_cc[0xb] = '\x01';
  pgVar2[8].tty_attrs.c_cc[0xc] = '\0';
  pgVar2[0x2a].tty_name = (char *)0x0;
  pgVar2[0x2a].fakehost = (char *)0x0;
  pgVar2[0x29].line_buf[0x78] = '\0';
  pgVar2[0x29].line_buf[0x79] = '\0';
  pgVar2[0x29].line_buf[0x7a] = '\0';
  pgVar2[0x29].line_buf[0x7b] = '\0';
  pgVar2[0x29].line_buf[0x7c] = '\0';
  pgVar2[0x29].line_buf[0x7d] = '\0';
  pgVar2[0x29].line_buf[0x7e] = '\0';
  pgVar2[0x29].line_buf[0x7f] = '\0';
  pgVar2[0x2a].timeout = 0;
  *(type_4 *)&pgVar2[0x2a].login = 0x100;
  return;
}


(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (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: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (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: (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: (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))) (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))) (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))) (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))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(void)

{
  undefined2 *puVar1;
  int iVar2;
  undefined2 *puVar3;
  
  iVar2 = DAT_000d1700;
  puVar3 = (undefined2 *)(DAT_000d1700 + 0x484);
  puVar1 = (undefined2 *)(DAT_000d1700 + 0x8fc);
  do {
    *puVar3 = 0;
    puVar3 = puVar3 + 2;
  } while (puVar3 != puVar1);
  puVar3 = (undefined2 *)(iVar2 + 0xd78);
  do {
    *puVar3 = 0;
    puVar3 = puVar3 + 2;
  } while (puVar3 != (undefined2 *)(iVar2 + 0xdf0));
  puVar3 = (undefined2 *)(iVar2 + 0x1364);
  do {
    *puVar3 = 0;
    puVar3 = puVar3 + 2;
  } while (puVar3 != (undefined2 *)(iVar2 + 0x13b0));
  *(undefined2 *)(iVar2 + 0x884) = 1;
  *(undefined4 *)(iVar2 + 0x2ab4) = 0;
  *(undefined4 *)(iVar2 + 0x2ab0) = 0;
  *(undefined4 *)(iVar2 + 0x2aa0) = 0;
  *(undefined4 *)(iVar2 + 0x2aa4) = 0;
  *(undefined4 *)(iVar2 + 0x2aa8) = 0;
  *(undefined2 *)(iVar2 + 0x2aac) = 0x100;
  return;
}

