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

int readcmd(int argc,char **argv)

{
  builtin_read_params params;
  
}



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

uint FUN_0005b022(void)

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  uint *puVar4;
  int in_GS_OFFSET;
  uint local_34;
  undefined1 *local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  puVar4 = &local_34;
  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {
    *puVar4 = 0;
    puVar4 = puVar4 + 1;
  }
  while (iVar3 = FUN_0005728c(), iVar3 != 0) {
    switch(iVar3) {
    case 100:
      local_14 = DAT_000dc294;
      break;
    case 0x6e:
      local_24 = DAT_000dc294;
      break;
    case 0x70:
      local_20 = DAT_000dc294;
      break;
    case 0x72:
      local_34 = local_34 | 2;
      break;
    case 0x73:
      local_34 = local_34 | 1;
      break;
    case 0x74:
      local_1c = DAT_000dc294;
      break;
    case 0x75:
      local_18 = DAT_000dc294;
    }
  }
  local_2c = DAT_000dc298;
  local_30 = &LAB_00056fc5;
  local_28 = FUN_000581eb();
  piVar1 = DAT_000dc6fc;
  do {
    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;
    uVar2 = FUN_00065fb4();
    FUN_00055de5();
    if (uVar2 != 1) {
      if (1 < uVar2) {
                    /* WARNING: Subroutine does not return */
        FUN_00056c26(uVar2);
      }
      goto LAB_0005b0d8;
    }
  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));
  uVar2 = 1;
LAB_0005b0d8:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e20();
}


PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x40
CALL 0x00017650
ADD EBX,0x809f3
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
LEA ESI,[ESP + 0x18]
MOV ECX,0x9
MOV EDI,ESI
STOSD.REP ES:EDI
LEA EDI,[EBX + 0xffff81b9]
MOV EAX,EDI
CALL 0x0005728c
TEST EAX,EAX
JZ 0x0005b070
SUB EAX,0x64
CMP EAX,0x11
JA 0x0005b052
MOV ECX,dword ptr [EBX + EAX*0x4 + 0xfffe97b8]
ADD ECX,EBX
JMP ECX
MOV EAX,dword ptr [EBX + 0x878]
MOV dword ptr [ESP + 0x20],EAX
LEA EAX,[EBX + 0xfff7b5a5]
MOV dword ptr [ESP + 0x1c],EAX
LEA EAX,[EBX + 0xffff81c6]
CALL 0x000581eb
MOV dword ptr [ESP + 0x24],EAX
LEA EDI,[EBX + 0xce8]
MOV EAX,dword ptr [EDI]
MOV EBX,dword ptr [EBX + 0xcdc]
MOV EDX,dword ptr [EAX + 0x24]
INC EDX
MOV dword ptr [EAX + 0x24],EDX
MOV EAX,ESI
CALL 0x00065fb4
MOV dword ptr [ESP + 0xc],EAX
CALL 0x00055de5
MOV EAX,dword ptr [ESP + 0xc]
CMP EAX,0x1
JNZ 0x0005b14b
CMP dword ptr [EBX],0x4
JNZ 0x0005b0d3
MOV EAX,dword ptr [EDI]
MOV DL,byte ptr [EAX + 0x2a]
TEST DL,DL
JZ 0x0005b0a1
MOV EAX,0x1
MOV ESI,dword ptr [ESP + 0x3c]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x0005b156
ADD ESP,0x40
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [EBX + 0x874]
MOV dword ptr [ESP + 0x34],EAX
JMP 0x0005b052
MOV EAX,dword ptr [EBX + 0x874]
MOV dword ptr [ESP + 0x30],EAX
JMP 0x0005b052
OR dword ptr [ESP + 0x18],0x1
JMP 0x0005b052
OR dword ptr [ESP + 0x18],0x2
JMP 0x0005b052
MOV EAX,dword ptr [EBX + 0x874]
MOV dword ptr [ESP + 0x2c],EAX
JMP 0x0005b052
MOV EAX,dword ptr [EBX + 0x874]
MOV dword ptr [ESP + 0x28],EAX
JMP 0x0005b052
MOV EAX,dword ptr [EBX + 0x874]
MOV dword ptr [ESP + 0x38],EAX
JMP 0x0005b052
JBE 0x0005b0d8
SUB ESP,0xc
PUSH EAX
CALL 0x00056c26
CALL 0x00017e20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_0005b022(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  uint local_34;\n  undefined1 *local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar4 = &local_34;\n  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }\n  local_2c = DAT_000dc298;\n  local_30 = &LAB_00056fc5;\n  local_28 = FUN_000581eb();\n  piVar1 = DAT_000dc6fc;\n  do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));\n  uVar2 = 1;\nLAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e20();\n}\n\n" comment (function_definition "uint FUN_0005b022(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  uint local_34;\n  undefined1 *local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar4 = &local_34;\n  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }\n  local_2c = DAT_000dc298;\n  local_30 = &LAB_00056fc5;\n  local_28 = FUN_000581eb();\n  piVar1 = DAT_000dc6fc;\n  do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));\n  uVar2 = 1;\nLAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e20();\n}" type_identifier (function_declarator "FUN_0005b022(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  uint local_34;\n  undefined1 *local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar4 = &local_34;\n  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }\n  local_2c = DAT_000dc298;\n  local_30 = &LAB_00056fc5;\n  local_28 = FUN_000581eb();\n  piVar1 = DAT_000dc6fc;\n  do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));\n  uVar2 = 1;\nLAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017e20();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "undefined1 *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "puVar4 = &local_34;" (assignment_expression "puVar4 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;) (for_statement "for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }" for ( (assignment_expression "iVar3 = 9" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) (while_statement "while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }" while (parenthesized_expression "(iVar3 = FUN_0005728c(), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_0005728c(), iVar3 != 0" (assignment_expression "iVar3 = FUN_0005728c()" identifier = (call_expression "FUN_0005728c()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) )) (compound_statement "{\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }" { (switch_statement "switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }" switch (parenthesized_expression "(iVar3)" ( identifier )) (compound_statement "{\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }" { (case_statement "case 100:\n      local_14 = DAT_000dc294;\n      break;" case number_literal : (expression_statement "local_14 = DAT_000dc294;" (assignment_expression "local_14 = DAT_000dc294" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x6e:\n      local_24 = DAT_000dc294;\n      break;" case number_literal : (expression_statement "local_24 = DAT_000dc294;" (assignment_expression "local_24 = DAT_000dc294" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x70:\n      local_20 = DAT_000dc294;\n      break;" case number_literal : (expression_statement "local_20 = DAT_000dc294;" (assignment_expression "local_20 = DAT_000dc294" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x72:\n      local_34 = local_34 | 2;\n      break;" case number_literal : (expression_statement "local_34 = local_34 | 2;" (assignment_expression "local_34 = local_34 | 2" identifier = (binary_expression "local_34 | 2" identifier | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x73:\n      local_34 = local_34 | 1;\n      break;" case number_literal : (expression_statement "local_34 = local_34 | 1;" (assignment_expression "local_34 = local_34 | 1" identifier = (binary_expression "local_34 | 1" identifier | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x74:\n      local_1c = DAT_000dc294;\n      break;" case number_literal : (expression_statement "local_1c = DAT_000dc294;" (assignment_expression "local_1c = DAT_000dc294" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x75:\n      local_18 = DAT_000dc294;" case number_literal : (expression_statement "local_18 = DAT_000dc294;" (assignment_expression "local_18 = DAT_000dc294" identifier = identifier) ;)) })) })) (expression_statement "local_2c = DAT_000dc298;" (assignment_expression "local_2c = DAT_000dc298" identifier = identifier) ;) (expression_statement "local_30 = &LAB_00056fc5;" (assignment_expression "local_30 = &LAB_00056fc5" identifier = (pointer_expression "&LAB_00056fc5" & identifier)) ;) (expression_statement "local_28 = FUN_000581eb();" (assignment_expression "local_28 = FUN_000581eb()" identifier = (call_expression "FUN_000581eb()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1 = DAT_000dc6fc;" (assignment_expression "piVar1 = DAT_000dc6fc" identifier = identifier) ;) (do_statement "do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));" do (compound_statement "{\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  }" { (expression_statement "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;" (assignment_expression "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" * (cast_expression "(int *)(DAT_000dc708 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x24)" ( (binary_expression "DAT_000dc708 + 0x24" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" * (cast_expression "(int *)(DAT_000dc708 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x24)" ( (binary_expression "DAT_000dc708 + 0x24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar2 = FUN_00065fb4();" (assignment_expression "uVar2 = FUN_00065fb4()" identifier = (call_expression "FUN_00065fb4()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00055de5();" (call_expression "FUN_00055de5()" identifier (argument_list "()" ( ))) ;) (if_statement "if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }" if (parenthesized_expression "(uVar2 != 1)" ( (binary_expression "uVar2 != 1" identifier != number_literal) )) (compound_statement "{\n      if (1 < uVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }" { (if_statement "if (1 < uVar2) {\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }" if (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_00056c26(uVar2);\n      }" { comment (expression_statement "FUN_00056c26(uVar2);" (call_expression "FUN_00056c26(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) (goto_statement "goto LAB_0005b0d8;" goto statement_identifier ;) })) }) while (parenthesized_expression "((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'))" ( (binary_expression "(*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0')" (parenthesized_expression "(*piVar1 == 4)" ( (binary_expression "*piVar1 == 4" (pointer_expression "*piVar1" * identifier) == number_literal) )) && (parenthesized_expression "(*(char *)(DAT_000dc708 + 0x2a) == '\0')" ( (binary_expression "*(char *)(DAT_000dc708 + 0x2a) == '\0'" (pointer_expression "*(char *)(DAT_000dc708 + 0x2a)" * (cast_expression "(char *)(DAT_000dc708 + 0x2a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x2a)" ( (binary_expression "DAT_000dc708 + 0x2a" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) comment (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint readcmd(int argc,char **argv)\n\n{\n  builtin_read_params params;\n  \n}\n\n" comment (function_definition "int readcmd(int argc,char **argv)\n\n{\n  builtin_read_params params;\n  \n}" primitive_type (function_declarator "readcmd(int argc,char **argv)" identifier (parameter_list "(int argc,char **argv)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  builtin_read_params params;\n  \n}" { (declaration "builtin_read_params params;" type_identifier identifier ;) })))
(translation_unit "uint FUN_0005b022(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  uint local_34;\n  undefined1 *local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar4 = &local_34;\n  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }\n  local_2c = DAT_000dc298;\n  local_30 = &LAB_00056fc5;\n  local_28 = FUN_000581eb();\n  piVar1 = DAT_000dc6fc;\n  do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));\n  uVar2 = 1;\nLAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_00017e20();\n}\n\n" (function_definition "uint FUN_0005b022(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  uint local_34;\n  undefined1 *local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar4 = &local_34;\n  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }\n  local_2c = DAT_000dc298;\n  local_30 = &LAB_00056fc5;\n  local_28 = FUN_000581eb();\n  piVar1 = DAT_000dc6fc;\n  do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));\n  uVar2 = 1;\nLAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_00017e20();\n}" type_identifier (function_declarator "FUN_0005b022(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  uint local_34;\n  undefined1 *local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar4 = &local_34;\n  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }\n  local_2c = DAT_000dc298;\n  local_30 = &LAB_00056fc5;\n  local_28 = FUN_000581eb();\n  piVar1 = DAT_000dc6fc;\n  do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));\n  uVar2 = 1;\nLAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_00017e20();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "undefined1 *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "puVar4 = &local_34;" (assignment_expression "puVar4 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;) (for_statement "for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }" for ( (assignment_expression "iVar3 = 9" identifier = number_literal) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) (while_statement "while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }" while (parenthesized_expression "(iVar3 = FUN_0005728c(), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_0005728c(), iVar3 != 0" (assignment_expression "iVar3 = FUN_0005728c()" identifier = (call_expression "FUN_0005728c()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) )) (compound_statement "{\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }" { (switch_statement "switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }" switch (parenthesized_expression "(iVar3)" ( identifier )) (compound_statement "{\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }" { (case_statement "case 100:\n      local_14 = DAT_000dc294;\n      break;" case number_literal : (expression_statement "local_14 = DAT_000dc294;" (assignment_expression "local_14 = DAT_000dc294" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x6e:\n      local_24 = DAT_000dc294;\n      break;" case number_literal : (expression_statement "local_24 = DAT_000dc294;" (assignment_expression "local_24 = DAT_000dc294" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x70:\n      local_20 = DAT_000dc294;\n      break;" case number_literal : (expression_statement "local_20 = DAT_000dc294;" (assignment_expression "local_20 = DAT_000dc294" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x72:\n      local_34 = local_34 | 2;\n      break;" case number_literal : (expression_statement "local_34 = local_34 | 2;" (assignment_expression "local_34 = local_34 | 2" identifier = (binary_expression "local_34 | 2" identifier | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x73:\n      local_34 = local_34 | 1;\n      break;" case number_literal : (expression_statement "local_34 = local_34 | 1;" (assignment_expression "local_34 = local_34 | 1" identifier = (binary_expression "local_34 | 1" identifier | number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x74:\n      local_1c = DAT_000dc294;\n      break;" case number_literal : (expression_statement "local_1c = DAT_000dc294;" (assignment_expression "local_1c = DAT_000dc294" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0x75:\n      local_18 = DAT_000dc294;" case number_literal : (expression_statement "local_18 = DAT_000dc294;" (assignment_expression "local_18 = DAT_000dc294" identifier = identifier) ;)) })) })) (expression_statement "local_2c = DAT_000dc298;" (assignment_expression "local_2c = DAT_000dc298" identifier = identifier) ;) (expression_statement "local_30 = &LAB_00056fc5;" (assignment_expression "local_30 = &LAB_00056fc5" identifier = (pointer_expression "&LAB_00056fc5" & identifier)) ;) (expression_statement "local_28 = FUN_000581eb();" (assignment_expression "local_28 = FUN_000581eb()" identifier = (call_expression "FUN_000581eb()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1 = DAT_000dc6fc;" (assignment_expression "piVar1 = DAT_000dc6fc" identifier = identifier) ;) (do_statement "do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));" do (compound_statement "{\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  }" { (expression_statement "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;" (assignment_expression "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" * (cast_expression "(int *)(DAT_000dc708 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x24)" ( (binary_expression "DAT_000dc708 + 0x24" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" * (cast_expression "(int *)(DAT_000dc708 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x24)" ( (binary_expression "DAT_000dc708 + 0x24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar2 = FUN_00065fb4();" (assignment_expression "uVar2 = FUN_00065fb4()" identifier = (call_expression "FUN_00065fb4()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00055de5();" (call_expression "FUN_00055de5()" identifier (argument_list "()" ( ))) ;) (if_statement "if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }" if (parenthesized_expression "(uVar2 != 1)" ( (binary_expression "uVar2 != 1" identifier != number_literal) )) (compound_statement "{\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }" { (if_statement "if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }" if (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) (compound_statement "{\n                    \n        FUN_00056c26(uVar2);\n      }" { (expression_statement "FUN_00056c26(uVar2);" (call_expression "FUN_00056c26(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) (goto_statement "goto LAB_0005b0d8;" goto statement_identifier ;) })) }) while (parenthesized_expression "((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'))" ( (binary_expression "(*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0')" (parenthesized_expression "(*piVar1 == 4)" ( (binary_expression "*piVar1 == 4" (pointer_expression "*piVar1" * identifier) == number_literal) )) && (parenthesized_expression "(*(char *)(DAT_000dc708 + 0x2a) == '\0')" ( (binary_expression "*(char *)(DAT_000dc708 + 0x2a) == '\0'" (pointer_expression "*(char *)(DAT_000dc708 + 0x2a)" * (cast_expression "(char *)(DAT_000dc708 + 0x2a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x2a)" ( (binary_expression "DAT_000dc708 + 0x2a" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (labeled_statement "LAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;)) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (goto_statement goto statement_identifier ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) ;) (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 IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "uint FUN_0005b022(void)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  uint local_34;\n  undefined1 *local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar4 = &local_34;\n  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }\n  local_2c = DAT_000dc298;\n  local_30 = &LAB_00056fc5;\n  local_28 = FUN_000581eb();\n  piVar1 = DAT_000dc6fc;\n  do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));\n  uVar2 = 1;\nLAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_00017e20();\n}" (type_identifier "uint") (function_declarator "FUN_0005b022(void)" (identifier "FUN_0005b022") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint *puVar4;\n  int in_GS_OFFSET;\n  uint local_34;\n  undefined1 *local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar4 = &local_34;\n  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }\n  while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }\n  local_2c = DAT_000dc298;\n  local_30 = &LAB_00056fc5;\n  local_28 = FUN_000581eb();\n  piVar1 = DAT_000dc6fc;\n  do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));\n  uVar2 = 1;\nLAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_00017e20();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (declaration "undefined1 *local_30;" (type_identifier "undefined1") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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 "puVar4 = &local_34;" (assignment_expression "puVar4 = &local_34" (identifier "puVar4") (= "=") (pointer_expression "&local_34" (& "&") (identifier "local_34"))) (; ";")) (for_statement "for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar3 = 9" (identifier "iVar3") (= "=") (number_literal "9")) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + 1;\n  }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (while_statement "while (iVar3 = FUN_0005728c(), iVar3 != 0) {\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }" (while "while") (parenthesized_expression "(iVar3 = FUN_0005728c(), iVar3 != 0)" (( "(") (comma_expression "iVar3 = FUN_0005728c(), iVar3 != 0" (assignment_expression "iVar3 = FUN_0005728c()" (identifier "iVar3") (= "=") (call_expression "FUN_0005728c()" (identifier "FUN_0005728c") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }\n  }" ({ "{") (switch_statement "switch(iVar3) {\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }" (switch "switch") (parenthesized_expression "(iVar3)" (( "(") (identifier "iVar3") () ")")) (compound_statement "{\n    case 100:\n      local_14 = DAT_000dc294;\n      break;\n    case 0x6e:\n      local_24 = DAT_000dc294;\n      break;\n    case 0x70:\n      local_20 = DAT_000dc294;\n      break;\n    case 0x72:\n      local_34 = local_34 | 2;\n      break;\n    case 0x73:\n      local_34 = local_34 | 1;\n      break;\n    case 0x74:\n      local_1c = DAT_000dc294;\n      break;\n    case 0x75:\n      local_18 = DAT_000dc294;\n    }" ({ "{") (case_statement "case 100:\n      local_14 = DAT_000dc294;\n      break;" (case "case") (number_literal "100") (: ":") (expression_statement "local_14 = DAT_000dc294;" (assignment_expression "local_14 = DAT_000dc294" (identifier "local_14") (= "=") (identifier "DAT_000dc294")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x6e:\n      local_24 = DAT_000dc294;\n      break;" (case "case") (number_literal "0x6e") (: ":") (expression_statement "local_24 = DAT_000dc294;" (assignment_expression "local_24 = DAT_000dc294" (identifier "local_24") (= "=") (identifier "DAT_000dc294")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x70:\n      local_20 = DAT_000dc294;\n      break;" (case "case") (number_literal "0x70") (: ":") (expression_statement "local_20 = DAT_000dc294;" (assignment_expression "local_20 = DAT_000dc294" (identifier "local_20") (= "=") (identifier "DAT_000dc294")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x72:\n      local_34 = local_34 | 2;\n      break;" (case "case") (number_literal "0x72") (: ":") (expression_statement "local_34 = local_34 | 2;" (assignment_expression "local_34 = local_34 | 2" (identifier "local_34") (= "=") (binary_expression "local_34 | 2" (identifier "local_34") (| "|") (number_literal "2"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x73:\n      local_34 = local_34 | 1;\n      break;" (case "case") (number_literal "0x73") (: ":") (expression_statement "local_34 = local_34 | 1;" (assignment_expression "local_34 = local_34 | 1" (identifier "local_34") (= "=") (binary_expression "local_34 | 1" (identifier "local_34") (| "|") (number_literal "1"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x74:\n      local_1c = DAT_000dc294;\n      break;" (case "case") (number_literal "0x74") (: ":") (expression_statement "local_1c = DAT_000dc294;" (assignment_expression "local_1c = DAT_000dc294" (identifier "local_1c") (= "=") (identifier "DAT_000dc294")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x75:\n      local_18 = DAT_000dc294;" (case "case") (number_literal "0x75") (: ":") (expression_statement "local_18 = DAT_000dc294;" (assignment_expression "local_18 = DAT_000dc294" (identifier "local_18") (= "=") (identifier "DAT_000dc294")) (; ";"))) (} "}"))) (} "}"))) (expression_statement "local_2c = DAT_000dc298;" (assignment_expression "local_2c = DAT_000dc298" (identifier "local_2c") (= "=") (identifier "DAT_000dc298")) (; ";")) (expression_statement "local_30 = &LAB_00056fc5;" (assignment_expression "local_30 = &LAB_00056fc5" (identifier "local_30") (= "=") (pointer_expression "&LAB_00056fc5" (& "&") (identifier "LAB_00056fc5"))) (; ";")) (expression_statement "local_28 = FUN_000581eb();" (assignment_expression "local_28 = FUN_000581eb()" (identifier "local_28") (= "=") (call_expression "FUN_000581eb()" (identifier "FUN_000581eb") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar1 = DAT_000dc6fc;" (assignment_expression "piVar1 = DAT_000dc6fc" (identifier "piVar1") (= "=") (identifier "DAT_000dc6fc")) (; ";")) (do_statement "do {\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));" (do "do") (compound_statement "{\n    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n    uVar2 = FUN_00065fb4();\n    FUN_00055de5();\n    if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }\n  }" ({ "{") (expression_statement "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;" (assignment_expression "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" (* "*") (cast_expression "(int *)(DAT_000dc708 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000dc708 + 0x24)" (( "(") (binary_expression "DAT_000dc708 + 0x24" (identifier "DAT_000dc708") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (binary_expression "*(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" (* "*") (cast_expression "(int *)(DAT_000dc708 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000dc708 + 0x24)" (( "(") (binary_expression "DAT_000dc708 + 0x24" (identifier "DAT_000dc708") (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = FUN_00065fb4();" (assignment_expression "uVar2 = FUN_00065fb4()" (identifier "uVar2") (= "=") (call_expression "FUN_00065fb4()" (identifier "FUN_00065fb4") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00055de5();" (call_expression "FUN_00055de5()" (identifier "FUN_00055de5") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (uVar2 != 1) {\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }" (if "if") (parenthesized_expression "(uVar2 != 1)" (( "(") (binary_expression "uVar2 != 1" (identifier "uVar2") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }\n      goto LAB_0005b0d8;\n    }" ({ "{") (if_statement "if (1 < uVar2) {\n                    \n        FUN_00056c26(uVar2);\n      }" (if "if") (parenthesized_expression "(1 < uVar2)" (( "(") (binary_expression "1 < uVar2" (number_literal "1") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n                    \n        FUN_00056c26(uVar2);\n      }" ({ "{") (expression_statement "FUN_00056c26(uVar2);" (call_expression "FUN_00056c26(uVar2)" (identifier "FUN_00056c26") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0005b0d8;" (goto "goto") (statement_identifier "LAB_0005b0d8") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'))" (( "(") (binary_expression "(*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0')" (parenthesized_expression "(*piVar1 == 4)" (( "(") (binary_expression "*piVar1 == 4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "4")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(DAT_000dc708 + 0x2a) == '\0')" (( "(") (binary_expression "*(char *)(DAT_000dc708 + 0x2a) == '\0'" (pointer_expression "*(char *)(DAT_000dc708 + 0x2a)" (* "*") (cast_expression "(char *)(DAT_000dc708 + 0x2a)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000dc708 + 0x2a)" (( "(") (binary_expression "DAT_000dc708 + 0x2a" (identifier "DAT_000dc708") (+ "+") (number_literal "0x2a")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_0005b0d8:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" (statement_identifier "LAB_0005b0d8") (: ":") (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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 uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))) (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" (identifier "FUN_00017e20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(int argc,char **argv)

{
  type_1 params;
  
}


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

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

uint MASKED(void)

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  uint *puVar4;
  int in_GS_OFFSET;
  uint local_34;
  undefined1 *local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  undefined4 local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  puVar4 = &local_34;
  for (iVar3 = 9; iVar3 != 0; iVar3 = iVar3 + -1) {
    *puVar4 = 0;
    puVar4 = puVar4 + 1;
  }
  while (iVar3 = FUN_0005728c(), iVar3 != 0) {
    switch(iVar3) {
    case 100:
      local_14 = DAT_000dc294;
      break;
    case 0x6e:
      local_24 = DAT_000dc294;
      break;
    case 0x70:
      local_20 = DAT_000dc294;
      break;
    case 0x72:
      local_34 = local_34 | 2;
      break;
    case 0x73:
      local_34 = local_34 | 1;
      break;
    case 0x74:
      local_1c = DAT_000dc294;
      break;
    case 0x75:
      local_18 = DAT_000dc294;
    }
  }
  local_2c = DAT_000dc298;
  local_30 = &LAB_00056fc5;
  local_28 = FUN_000581eb();
  piVar1 = DAT_000dc6fc;
  do {
    *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;
    uVar2 = FUN_00065fb4();
    FUN_00055de5();
    if (uVar2 != 1) {
      if (1 < uVar2) {
                    /* WARNING: Subroutine does not return */
        FUN_00056c26(uVar2);
      }
      goto LAB_0005b0d8;
    }
  } while ((*piVar1 == 4) && (*(char *)(DAT_000dc708 + 0x2a) == '\0'));
  uVar2 = 1;
LAB_0005b0d8:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017e20();
}

