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

int cmd_right(void)

{
  char cVar1;
  int *bswidth;
  char *pcVar2;
  int *in_ECX;
  int *extraout_ECX;
  int *extraout_ECX_00;
  int iVar3;
  int in_GS_OFFSET;
  char *ncp;
  int width;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x17589;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*cp != '\0') {
    ncp = cp;
    pcVar2 = cmd_step_right(&ncp,&width,in_ECX);
    iVar3 = width + cmd_col;
    if ((sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0')))) {
      cmd_lshift();
      iVar3 = width + cmd_col;
    }
    cp = ncp;
    cmd_col = iVar3;
    putstr(pcVar2);
    cVar1 = *cp;
    bswidth = extraout_ECX;
    while ((cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1))) {
      putstr(pcVar2);
      cVar1 = *ncp;
      bswidth = extraout_ECX_00;
      cp = ncp;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 FUN_00017580(void)

{
  int iVar1;
  char cVar2;
  char *pcVar3;
  undefined4 uVar4;
  int iVar5;
  int in_GS_OFFSET;
  int local_24;
  
  pcVar3 = DAT_0003e2fc;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (*DAT_0003e2fc != '\0') {
    uVar4 = FUN_00017190();
    iVar5 = local_24 + DAT_0003e304;
    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {
      FUN_00017460();
      iVar5 = local_24 + DAT_0003e304;
    }
    DAT_0003e2fc = pcVar3;
    DAT_0003e304 = iVar5;
    FUN_00025f20(uVar4);
    cVar2 = *DAT_0003e2fc;
    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {
      FUN_00025f20(uVar4);
      cVar2 = *pcVar3;
      DAT_0003e2fc = pcVar3;
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b510();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000129a0
ADD EBX,0x2490f
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBX + 0x2464]
CMP byte ptr [EAX],0x0
JNZ 0x000175c8
XOR EAX,EAX
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00017684
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ESI,[ESP + 0x8]
LEA EDI,[ESP + 0x4]
MOV dword ptr [ESP + 0x4],EAX
MOV EDX,ESI
MOV EAX,EDI
CALL 0x00017190
MOV EDX,dword ptr [ESP + 0x8]
ADD EDX,dword ptr [EBX + 0x246c]
MOV EBP,EAX
LEA EAX,[EBX + 0x5a58]
MOV ECX,dword ptr [EAX]
CMP EDX,ECX
JGE 0x00017670
SUB ECX,0x1
CMP EDX,ECX
JZ 0x00017660
MOV EAX,dword ptr [ESP + 0x4]
SUB ESP,0xc
MOV dword ptr [EBX + 0x246c],EDX
PUSH EBP
MOV dword ptr [EBX + 0x2464],EAX
CALL 0x00025f20
MOV EAX,dword ptr [EBX + 0x2464]
ADD ESP,0x10
CMP byte ptr [EAX],0x0
JNZ 0x00017647
JMP 0x000175a9
SUB ESP,0xc
PUSH EAX
CALL 0x00025f20
MOV EAX,dword ptr [ESP + 0x14]
ADD ESP,0x10
MOV dword ptr [EBX + 0x2464],EAX
CMP byte ptr [EAX],0x0
JZ 0x000175a9
MOV EDX,ESI
MOV EAX,EDI
CALL 0x00017190
MOV EDX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JLE 0x00017628
JMP 0x000175a9
MOV EAX,dword ptr [EBX + 0x2464]
CMP byte ptr [EAX + 0x1],0x0
JZ 0x000175fc
LEA ESI,[ESI]
CALL 0x00017460
MOV EDX,dword ptr [ESP + 0x8]
ADD EDX,dword ptr [EBX + 0x246c]
JMP 0x000175fc
CALL 0x0002b510
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00017580(void)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  pcVar3 = DAT_0003e2fc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b510();\n}\n\n" comment (function_definition "undefined4 FUN_00017580(void)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  pcVar3 = DAT_0003e2fc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b510();\n}" type_identifier (function_declarator "FUN_00017580(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  pcVar3 = DAT_0003e2fc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b510();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "pcVar3 = DAT_0003e2fc;" (assignment_expression "pcVar3 = DAT_0003e2fc" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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) ))))) ;) (if_statement "if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }" if (parenthesized_expression "(*DAT_0003e2fc != '\0')" ( (binary_expression "*DAT_0003e2fc != '\0'" (pointer_expression "*DAT_0003e2fc" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }" { (expression_statement "uVar4 = FUN_00017190();" (assignment_expression "uVar4 = FUN_00017190()" identifier = (call_expression "FUN_00017190()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = local_24 + DAT_0003e304;" (assignment_expression "iVar5 = local_24 + DAT_0003e304" identifier = (binary_expression "local_24 + DAT_0003e304" identifier + identifier)) ;) (if_statement "if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }" if (parenthesized_expression "((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0'))))" ( (binary_expression "(DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))" (parenthesized_expression "(DAT_000418f0 <= iVar5)" ( (binary_expression "DAT_000418f0 <= iVar5" identifier <= identifier) )) || (parenthesized_expression "((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))" ( (parenthesized_expression "(iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0'))" ( (binary_expression "iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')" (binary_expression "iVar5 == DAT_000418f0 + -1" identifier == (binary_expression "DAT_000418f0 + -1" identifier + number_literal)) && (parenthesized_expression "(DAT_0003e2fc[1] != '\0')" ( (binary_expression "DAT_0003e2fc[1] != '\0'" (subscript_expression "DAT_0003e2fc[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }" { (expression_statement "FUN_00017460();" (call_expression "FUN_00017460()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = local_24 + DAT_0003e304;" (assignment_expression "iVar5 = local_24 + DAT_0003e304" identifier = (binary_expression "local_24 + DAT_0003e304" identifier + identifier)) ;) })) (expression_statement "DAT_0003e2fc = pcVar3;" (assignment_expression "DAT_0003e2fc = pcVar3" identifier = identifier) ;) (expression_statement "DAT_0003e304 = iVar5;" (assignment_expression "DAT_0003e304 = iVar5" identifier = identifier) ;) (expression_statement "FUN_00025f20(uVar4);" (call_expression "FUN_00025f20(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "cVar2 = *DAT_0003e2fc;" (assignment_expression "cVar2 = *DAT_0003e2fc" identifier = (pointer_expression "*DAT_0003e2fc" * identifier)) ;) (while_statement "while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }" while (parenthesized_expression "((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1)))" ( (parenthesized_expression "(cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))" ( (binary_expression "cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1)" (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(uVar4 = FUN_00017190(), local_24 < 1)" ( (comma_expression "uVar4 = FUN_00017190(), local_24 < 1" (assignment_expression "uVar4 = FUN_00017190()" identifier = (call_expression "FUN_00017190()" identifier (argument_list "()" ( )))) , (binary_expression "local_24 < 1" identifier < number_literal)) ))) )) )) (compound_statement "{\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }" { (expression_statement "FUN_00025f20(uVar4);" (call_expression "FUN_00025f20(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "DAT_0003e2fc = pcVar3;" (assignment_expression "DAT_0003e2fc = pcVar3" identifier = identifier) ;) })) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "FUN_0002b510();" (call_expression "FUN_0002b510()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint cmd_right(void)\n\n{\n  char cVar1;\n  int *bswidth;\n  char *pcVar2;\n  int *in_ECX;\n  int *extraout_ECX;\n  int *extraout_ECX_00;\n  int iVar3;\n  int in_GS_OFFSET;\n  char *ncp;\n  int width;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*cp != '\0') {\n    ncp = cp;\n    pcVar2 = cmd_step_right(&ncp,&width,in_ECX);\n    iVar3 = width + cmd_col;\n    if ((sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0')))) {\n      cmd_lshift();\n      iVar3 = width + cmd_col;\n    }\n    cp = ncp;\n    cmd_col = iVar3;\n    putstr(pcVar2);\n    cVar1 = *cp;\n    bswidth = extraout_ECX;\n    while ((cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1))) {\n      putstr(pcVar2);\n      cVar1 = *ncp;\n      bswidth = extraout_ECX_00;\n      cp = ncp;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int cmd_right(void)\n\n{\n  char cVar1;\n  int *bswidth;\n  char *pcVar2;\n  int *in_ECX;\n  int *extraout_ECX;\n  int *extraout_ECX_00;\n  int iVar3;\n  int in_GS_OFFSET;\n  char *ncp;\n  int width;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*cp != '\0') {\n    ncp = cp;\n    pcVar2 = cmd_step_right(&ncp,&width,in_ECX);\n    iVar3 = width + cmd_col;\n    if ((sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0')))) {\n      cmd_lshift();\n      iVar3 = width + cmd_col;\n    }\n    cp = ncp;\n    cmd_col = iVar3;\n    putstr(pcVar2);\n    cVar1 = *cp;\n    bswidth = extraout_ECX;\n    while ((cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1))) {\n      putstr(pcVar2);\n      cVar1 = *ncp;\n      bswidth = extraout_ECX_00;\n      cp = ncp;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "cmd_right(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int *bswidth;\n  char *pcVar2;\n  int *in_ECX;\n  int *extraout_ECX;\n  int *extraout_ECX_00;\n  int iVar3;\n  int in_GS_OFFSET;\n  char *ncp;\n  int width;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*cp != '\0') {\n    ncp = cp;\n    pcVar2 = cmd_step_right(&ncp,&width,in_ECX);\n    iVar3 = width + cmd_col;\n    if ((sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0')))) {\n      cmd_lshift();\n      iVar3 = width + cmd_col;\n    }\n    cp = ncp;\n    cmd_col = iVar3;\n    putstr(pcVar2);\n    cVar1 = *cp;\n    bswidth = extraout_ECX;\n    while ((cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1))) {\n      putstr(pcVar2);\n      cVar1 = *ncp;\n      bswidth = extraout_ECX_00;\n      cp = ncp;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int *bswidth;" primitive_type (pointer_declarator "*bswidth" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "int *extraout_ECX;" primitive_type (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "int *extraout_ECX_00;" primitive_type (pointer_declarator "*extraout_ECX_00" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *ncp;" primitive_type (pointer_declarator "*ncp" * identifier) ;) (declaration "int width;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x17589;" (assignment_expression "uStack_14 = 0x17589" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*cp != '\0') {\n    ncp = cp;\n    pcVar2 = cmd_step_right(&ncp,&width,in_ECX);\n    iVar3 = width + cmd_col;\n    if ((sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0')))) {\n      cmd_lshift();\n      iVar3 = width + cmd_col;\n    }\n    cp = ncp;\n    cmd_col = iVar3;\n    putstr(pcVar2);\n    cVar1 = *cp;\n    bswidth = extraout_ECX;\n    while ((cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1))) {\n      putstr(pcVar2);\n      cVar1 = *ncp;\n      bswidth = extraout_ECX_00;\n      cp = ncp;\n    }\n  }" if (parenthesized_expression "(*cp != '\0')" ( (binary_expression "*cp != '\0'" (pointer_expression "*cp" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    ncp = cp;\n    pcVar2 = cmd_step_right(&ncp,&width,in_ECX);\n    iVar3 = width + cmd_col;\n    if ((sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0')))) {\n      cmd_lshift();\n      iVar3 = width + cmd_col;\n    }\n    cp = ncp;\n    cmd_col = iVar3;\n    putstr(pcVar2);\n    cVar1 = *cp;\n    bswidth = extraout_ECX;\n    while ((cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1))) {\n      putstr(pcVar2);\n      cVar1 = *ncp;\n      bswidth = extraout_ECX_00;\n      cp = ncp;\n    }\n  }" { (expression_statement "ncp = cp;" (assignment_expression "ncp = cp" identifier = identifier) ;) (expression_statement "pcVar2 = cmd_step_right(&ncp,&width,in_ECX);" (assignment_expression "pcVar2 = cmd_step_right(&ncp,&width,in_ECX)" identifier = (call_expression "cmd_step_right(&ncp,&width,in_ECX)" identifier (argument_list "(&ncp,&width,in_ECX)" ( (pointer_expression "&ncp" & identifier) , (pointer_expression "&width" & identifier) , identifier )))) ;) (expression_statement "iVar3 = width + cmd_col;" (assignment_expression "iVar3 = width + cmd_col" identifier = (binary_expression "width + cmd_col" identifier + identifier)) ;) (if_statement "if ((sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0')))) {\n      cmd_lshift();\n      iVar3 = width + cmd_col;\n    }" if (parenthesized_expression "((sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0'))))" ( (binary_expression "(sc_width <= iVar3) || ((iVar3 == sc_width + -1 && (cp[1] != '\0')))" (parenthesized_expression "(sc_width <= iVar3)" ( (binary_expression "sc_width <= iVar3" identifier <= identifier) )) || (parenthesized_expression "((iVar3 == sc_width + -1 && (cp[1] != '\0')))" ( (parenthesized_expression "(iVar3 == sc_width + -1 && (cp[1] != '\0'))" ( (binary_expression "iVar3 == sc_width + -1 && (cp[1] != '\0')" (binary_expression "iVar3 == sc_width + -1" identifier == (binary_expression "sc_width + -1" identifier + number_literal)) && (parenthesized_expression "(cp[1] != '\0')" ( (binary_expression "cp[1] != '\0'" (subscript_expression "cp[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n      cmd_lshift();\n      iVar3 = width + cmd_col;\n    }" { (expression_statement "cmd_lshift();" (call_expression "cmd_lshift()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = width + cmd_col;" (assignment_expression "iVar3 = width + cmd_col" identifier = (binary_expression "width + cmd_col" identifier + identifier)) ;) })) (expression_statement "cp = ncp;" (assignment_expression "cp = ncp" identifier = identifier) ;) (expression_statement "cmd_col = iVar3;" (assignment_expression "cmd_col = iVar3" identifier = identifier) ;) (expression_statement "putstr(pcVar2);" (call_expression "putstr(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "cVar1 = *cp;" (assignment_expression "cVar1 = *cp" identifier = (pointer_expression "*cp" * identifier)) ;) (expression_statement "bswidth = extraout_ECX;" (assignment_expression "bswidth = extraout_ECX" identifier = identifier) ;) (while_statement "while ((cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1))) {\n      putstr(pcVar2);\n      cVar1 = *ncp;\n      bswidth = extraout_ECX_00;\n      cp = ncp;\n    }" while (parenthesized_expression "((cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1)))" ( (parenthesized_expression "(cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1))" ( (binary_expression "cVar1 != '\0' && (pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1)" (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1)" ( (comma_expression "pcVar2 = cmd_step_right(&ncp,&width,bswidth), width < 1" (assignment_expression "pcVar2 = cmd_step_right(&ncp,&width,bswidth)" identifier = (call_expression "cmd_step_right(&ncp,&width,bswidth)" identifier (argument_list "(&ncp,&width,bswidth)" ( (pointer_expression "&ncp" & identifier) , (pointer_expression "&width" & identifier) , identifier )))) , (binary_expression "width < 1" identifier < number_literal)) ))) )) )) (compound_statement "{\n      putstr(pcVar2);\n      cVar1 = *ncp;\n      bswidth = extraout_ECX_00;\n      cp = ncp;\n    }" { (expression_statement "putstr(pcVar2);" (call_expression "putstr(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "cVar1 = *ncp;" (assignment_expression "cVar1 = *ncp" identifier = (pointer_expression "*ncp" * identifier)) ;) (expression_statement "bswidth = extraout_ECX_00;" (assignment_expression "bswidth = extraout_ECX_00" identifier = identifier) ;) (expression_statement "cp = ncp;" (assignment_expression "cp = ncp" identifier = identifier) ;) })) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00017580(void)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  pcVar3 = DAT_0003e2fc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_0002b510();\n}\n\n" (function_definition "undefined4 FUN_00017580(void)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  pcVar3 = DAT_0003e2fc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_0002b510();\n}" type_identifier (function_declarator "FUN_00017580(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  pcVar3 = DAT_0003e2fc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_0002b510();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "pcVar3 = DAT_0003e2fc;" (assignment_expression "pcVar3 = DAT_0003e2fc" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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) ))))) ;) (if_statement "if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }" if (parenthesized_expression "(*DAT_0003e2fc != '\0')" ( (binary_expression "*DAT_0003e2fc != '\0'" (pointer_expression "*DAT_0003e2fc" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }" { (expression_statement "uVar4 = FUN_00017190();" (assignment_expression "uVar4 = FUN_00017190()" identifier = (call_expression "FUN_00017190()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = local_24 + DAT_0003e304;" (assignment_expression "iVar5 = local_24 + DAT_0003e304" identifier = (binary_expression "local_24 + DAT_0003e304" identifier + identifier)) ;) (if_statement "if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }" if (parenthesized_expression "((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0'))))" ( (binary_expression "(DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))" (parenthesized_expression "(DAT_000418f0 <= iVar5)" ( (binary_expression "DAT_000418f0 <= iVar5" identifier <= identifier) )) || (parenthesized_expression "((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))" ( (parenthesized_expression "(iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0'))" ( (binary_expression "iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')" (binary_expression "iVar5 == DAT_000418f0 + -1" identifier == (binary_expression "DAT_000418f0 + -1" identifier + number_literal)) && (parenthesized_expression "(DAT_0003e2fc[1] != '\0')" ( (binary_expression "DAT_0003e2fc[1] != '\0'" (subscript_expression "DAT_0003e2fc[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }" { (expression_statement "FUN_00017460();" (call_expression "FUN_00017460()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar5 = local_24 + DAT_0003e304;" (assignment_expression "iVar5 = local_24 + DAT_0003e304" identifier = (binary_expression "local_24 + DAT_0003e304" identifier + identifier)) ;) })) (expression_statement "DAT_0003e2fc = pcVar3;" (assignment_expression "DAT_0003e2fc = pcVar3" identifier = identifier) ;) (expression_statement "DAT_0003e304 = iVar5;" (assignment_expression "DAT_0003e304 = iVar5" identifier = identifier) ;) (expression_statement "FUN_00025f20(uVar4);" (call_expression "FUN_00025f20(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "cVar2 = *DAT_0003e2fc;" (assignment_expression "cVar2 = *DAT_0003e2fc" identifier = (pointer_expression "*DAT_0003e2fc" * identifier)) ;) (while_statement "while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }" while (parenthesized_expression "((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1)))" ( (parenthesized_expression "(cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))" ( (binary_expression "cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1)" (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(uVar4 = FUN_00017190(), local_24 < 1)" ( (comma_expression "uVar4 = FUN_00017190(), local_24 < 1" (assignment_expression "uVar4 = FUN_00017190()" identifier = (call_expression "FUN_00017190()" identifier (argument_list "()" ( )))) , (binary_expression "local_24 < 1" identifier < number_literal)) ))) )) )) (compound_statement "{\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }" { (expression_statement "FUN_00025f20(uVar4);" (call_expression "FUN_00025f20(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "DAT_0003e2fc = pcVar3;" (assignment_expression "DAT_0003e2fc = pcVar3" identifier = identifier) ;) })) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0002b510();" (call_expression "FUN_0002b510()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == (binary_expression IDENT + LIT)) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) ))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != (char_literal ' escape_sequence ')) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT < LIT)) ))) )) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (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 LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_00017580(void)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  pcVar3 = DAT_0003e2fc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_0002b510();\n}" (type_identifier "undefined4") (function_declarator "FUN_00017580(void)" (identifier "FUN_00017580") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  pcVar3 = DAT_0003e2fc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_0002b510();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "pcVar3 = DAT_0003e2fc;" (assignment_expression "pcVar3 = DAT_0003e2fc" (identifier "pcVar3") (= "=") (identifier "DAT_0003e2fc")) (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (*DAT_0003e2fc != '\0') {\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }" (if "if") (parenthesized_expression "(*DAT_0003e2fc != '\0')" (( "(") (binary_expression "*DAT_0003e2fc != '\0'" (pointer_expression "*DAT_0003e2fc" (* "*") (identifier "DAT_0003e2fc")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar4 = FUN_00017190();\n    iVar5 = local_24 + DAT_0003e304;\n    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }\n    DAT_0003e2fc = pcVar3;\n    DAT_0003e304 = iVar5;\n    FUN_00025f20(uVar4);\n    cVar2 = *DAT_0003e2fc;\n    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }\n  }" ({ "{") (expression_statement "uVar4 = FUN_00017190();" (assignment_expression "uVar4 = FUN_00017190()" (identifier "uVar4") (= "=") (call_expression "FUN_00017190()" (identifier "FUN_00017190") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar5 = local_24 + DAT_0003e304;" (assignment_expression "iVar5 = local_24 + DAT_0003e304" (identifier "iVar5") (= "=") (binary_expression "local_24 + DAT_0003e304" (identifier "local_24") (+ "+") (identifier "DAT_0003e304"))) (; ";")) (if_statement "if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }" (if "if") (parenthesized_expression "((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0'))))" (( "(") (binary_expression "(DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))" (parenthesized_expression "(DAT_000418f0 <= iVar5)" (( "(") (binary_expression "DAT_000418f0 <= iVar5" (identifier "DAT_000418f0") (<= "<=") (identifier "iVar5")) () ")")) (|| "||") (parenthesized_expression "((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))" (( "(") (parenthesized_expression "(iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0'))" (( "(") (binary_expression "iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')" (binary_expression "iVar5 == DAT_000418f0 + -1" (identifier "iVar5") (== "==") (binary_expression "DAT_000418f0 + -1" (identifier "DAT_000418f0") (+ "+") (number_literal "-1"))) (&& "&&") (parenthesized_expression "(DAT_0003e2fc[1] != '\0')" (( "(") (binary_expression "DAT_0003e2fc[1] != '\0'" (subscript_expression "DAT_0003e2fc[1]" (identifier "DAT_0003e2fc") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      FUN_00017460();\n      iVar5 = local_24 + DAT_0003e304;\n    }" ({ "{") (expression_statement "FUN_00017460();" (call_expression "FUN_00017460()" (identifier "FUN_00017460") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = local_24 + DAT_0003e304;" (assignment_expression "iVar5 = local_24 + DAT_0003e304" (identifier "iVar5") (= "=") (binary_expression "local_24 + DAT_0003e304" (identifier "local_24") (+ "+") (identifier "DAT_0003e304"))) (; ";")) (} "}"))) (expression_statement "DAT_0003e2fc = pcVar3;" (assignment_expression "DAT_0003e2fc = pcVar3" (identifier "DAT_0003e2fc") (= "=") (identifier "pcVar3")) (; ";")) (expression_statement "DAT_0003e304 = iVar5;" (assignment_expression "DAT_0003e304 = iVar5" (identifier "DAT_0003e304") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "FUN_00025f20(uVar4);" (call_expression "FUN_00025f20(uVar4)" (identifier "FUN_00025f20") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "cVar2 = *DAT_0003e2fc;" (assignment_expression "cVar2 = *DAT_0003e2fc" (identifier "cVar2") (= "=") (pointer_expression "*DAT_0003e2fc" (* "*") (identifier "DAT_0003e2fc"))) (; ";")) (while_statement "while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }" (while "while") (parenthesized_expression "((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1)))" (( "(") (parenthesized_expression "(cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))" (( "(") (binary_expression "cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1)" (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (parenthesized_expression "(uVar4 = FUN_00017190(), local_24 < 1)" (( "(") (comma_expression "uVar4 = FUN_00017190(), local_24 < 1" (assignment_expression "uVar4 = FUN_00017190()" (identifier "uVar4") (= "=") (call_expression "FUN_00017190()" (identifier "FUN_00017190") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "local_24 < 1" (identifier "local_24") (< "<") (number_literal "1"))) () ")"))) () ")")) () ")")) (compound_statement "{\n      FUN_00025f20(uVar4);\n      cVar2 = *pcVar3;\n      DAT_0003e2fc = pcVar3;\n    }" ({ "{") (expression_statement "FUN_00025f20(uVar4);" (call_expression "FUN_00025f20(uVar4)" (identifier "FUN_00025f20") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" (identifier "cVar2") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (expression_statement "DAT_0003e2fc = pcVar3;" (assignment_expression "DAT_0003e2fc = pcVar3" (identifier "DAT_0003e2fc") (= "=") (identifier "pcVar3")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (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 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_0002b510();" (call_expression "FUN_0002b510()" (identifier "FUN_0002b510") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(void)

{
  char var_9;
  int *bswidth;
  char *pcVar2;
  int *in_ECX;
  int *extraout_ECX;
  int *extraout_ECX_00;
  int var_6;
  int var_1;
  char *ncp;
  int var_3;
  int var_10;
  type_1 uStack_14;
  
  uStack_14 = 0x17589;
  var_10 = *(int *)(var_1 + 0x14);
  if (*cp != '\0') {
    ncp = cp;
    pcVar2 = var_2(&ncp,&var_3,in_ECX);
    var_6 = var_3 + var_4;
    if ((var_5 <= var_6) || ((var_6 == var_5 + -1 && (cp[1] != '\0')))) {
      var_7();
      var_6 = var_3 + var_4;
    }
    cp = ncp;
    var_4 = var_6;
    var_8(pcVar2);
    var_9 = *cp;
    bswidth = extraout_ECX;
    while ((var_9 != '\0' && (pcVar2 = var_2(&ncp,&var_3,bswidth), var_3 < 1))) {
      var_8(pcVar2);
      var_9 = *ncp;
      bswidth = extraout_ECX_00;
      cp = ncp;
    }
  }
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


(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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence))))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (char_literal (escape_sequence))) right: (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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 (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

undefined4 MASKED(void)

{
  int iVar1;
  char cVar2;
  char *pcVar3;
  undefined4 uVar4;
  int iVar5;
  int in_GS_OFFSET;
  int local_24;
  
  pcVar3 = DAT_0003e2fc;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (*DAT_0003e2fc != '\0') {
    uVar4 = FUN_00017190();
    iVar5 = local_24 + DAT_0003e304;
    if ((DAT_000418f0 <= iVar5) || ((iVar5 == DAT_000418f0 + -1 && (DAT_0003e2fc[1] != '\0')))) {
      FUN_00017460();
      iVar5 = local_24 + DAT_0003e304;
    }
    DAT_0003e2fc = pcVar3;
    DAT_0003e304 = iVar5;
    FUN_00025f20(uVar4);
    cVar2 = *DAT_0003e2fc;
    while ((cVar2 != '\0' && (uVar4 = FUN_00017190(), local_24 < 1))) {
      FUN_00025f20(uVar4);
      cVar2 = *pcVar3;
      DAT_0003e2fc = pcVar3;
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b510();
}

