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

void next_line_num(void)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  
  pcVar3 = line_num_start;
  pcVar2 = line_buf + 0x11;
  do {
    if (*pcVar2 < '9') {
      *pcVar2 = *pcVar2 + '\x01';
      return;
    }
    pcVar1 = pcVar2 + -1;
    *pcVar2 = '0';
    pcVar2 = pcVar1;
  } while (pcVar3 <= pcVar1);
  if (pcVar3 < line_buf + 1) {
    line_buf[0] = '>';
  }
  else {
    line_num_start = pcVar3 + -1;
    pcVar3[-1] = '1';
    pcVar3 = line_num_start;
  }
  if (line_num_print <= pcVar3) {
    return;
  }
  line_num_print = line_num_print + -1;
  return;
}



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

void FUN_000121e0(void)

{
  char *pcVar1;
  char *pcVar2;
  undefined *puVar3;
  
  puVar3 = PTR_DAT_0001c11c;
  pcVar2 = &DAT_0001c119;
  do {
    if (*pcVar2 < '9') {
      *pcVar2 = *pcVar2 + '\x01';
      return;
    }
    pcVar1 = pcVar2 + -1;
    *pcVar2 = '0';
    pcVar2 = pcVar1;
  } while (puVar3 <= pcVar1);
  if (puVar3 < (undefined *)0x1c109) {
    DAT_0001c108 = 0x3e;
  }
  else {
    PTR_DAT_0001c11c = puVar3 + -1;
    puVar3[-1] = 0x31;
    puVar3 = PTR_DAT_0001c11c;
  }
  if (PTR_DAT_0001c120 <= puVar3) {
    return;
  }
  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;
  return;
}


PUSH EBX
CALL 0x000120a0
ADD EBX,0x9e1a
MOV ECX,dword ptr [EBX + 0x11c]
LEA EAX,[EBX + 0x119]
JMP 0x0001220b
SUB EAX,0x1
MOV byte ptr [EAX + 0x1],0x30
CMP ECX,EAX
JA 0x00012220
MOVZX EDX,byte ptr [EAX]
CMP DL,0x38
JG 0x00012200
ADD EDX,0x1
MOV byte ptr [EAX],DL
POP EBX
RET
LEA EAX,[EBX + 0x108]
CMP ECX,EAX
JBE 0x00012250
LEA EDX,[ECX + -0x1]
MOV byte ptr [ECX + -0x1],0x31
MOV dword ptr [EBX + 0x11c],EDX
MOV EAX,dword ptr [EBX + 0x120]
CMP EAX,EDX
JBE 0x00012218
SUB EAX,0x1
MOV dword ptr [EBX + 0x120],EAX
POP EBX
RET
MOV byte ptr [EBX + 0x108],0x3e
MOV EDX,ECX
JMP 0x00012237
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000121e0(void)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined *puVar3;\n  \n  puVar3 = PTR_DAT_0001c11c;\n  pcVar2 = &DAT_0001c119;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);\n  if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }\n  if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }\n  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;\n  return;\n}\n\n" comment (function_definition "void FUN_000121e0(void)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined *puVar3;\n  \n  puVar3 = PTR_DAT_0001c11c;\n  pcVar2 = &DAT_0001c119;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);\n  if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }\n  if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }\n  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;\n  return;\n}" primitive_type (function_declarator "FUN_000121e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  undefined *puVar3;\n  \n  puVar3 = PTR_DAT_0001c11c;\n  pcVar2 = &DAT_0001c119;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);\n  if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }\n  if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }\n  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = PTR_DAT_0001c11c;" (assignment_expression "puVar3 = PTR_DAT_0001c11c" identifier = identifier) ;) (expression_statement "pcVar2 = &DAT_0001c119;" (assignment_expression "pcVar2 = &DAT_0001c119" identifier = (pointer_expression "&DAT_0001c119" & identifier)) ;) (do_statement "do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);" do (compound_statement "{\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  }" { (if_statement "if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }" if (parenthesized_expression "(*pcVar2 < '9')" ( (binary_expression "*pcVar2 < '9'" (pointer_expression "*pcVar2" * identifier) < (char_literal "'9'" ' character ')) )) (compound_statement "{\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }" { (expression_statement "*pcVar2 = *pcVar2 + '\x01';" (assignment_expression "*pcVar2 = *pcVar2 + '\x01'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "*pcVar2 + '\x01'" (pointer_expression "*pcVar2" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar1 = pcVar2 + -1;" (assignment_expression "pcVar1 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = '0';" (assignment_expression "*pcVar2 = '0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'0'" ' character ')) ;) (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 <= pcVar1)" ( (binary_expression "puVar3 <= pcVar1" identifier <= identifier) )) ;) (if_statement "if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" if (parenthesized_expression "(puVar3 < (undefined *)0x1c109)" ( (binary_expression "puVar3 < (undefined *)0x1c109" identifier < (cast_expression "(undefined *)0x1c109" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_0001c108 = 0x3e;\n  }" { (expression_statement "DAT_0001c108 = 0x3e;" (assignment_expression "DAT_0001c108 = 0x3e" identifier = number_literal) ;) }) (else_clause "else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" else (compound_statement "{\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" { (expression_statement "PTR_DAT_0001c11c = puVar3 + -1;" (assignment_expression "PTR_DAT_0001c11c = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar3[-1] = 0x31;" (assignment_expression "puVar3[-1] = 0x31" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3 = PTR_DAT_0001c11c;" (assignment_expression "puVar3 = PTR_DAT_0001c11c" identifier = identifier) ;) }))) (if_statement "if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }" if (parenthesized_expression "(PTR_DAT_0001c120 <= puVar3)" ( (binary_expression "PTR_DAT_0001c120 <= puVar3" identifier <= identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;" (assignment_expression "PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1" identifier = (binary_expression "PTR_DAT_0001c120 + -1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid next_line_num(void)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar3 = line_num_start;\n  pcVar2 = line_buf + 0x11;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (pcVar3 <= pcVar1);\n  if (pcVar3 < line_buf + 1) {\n    line_buf[0] = '>';\n  }\n  else {\n    line_num_start = pcVar3 + -1;\n    pcVar3[-1] = '1';\n    pcVar3 = line_num_start;\n  }\n  if (line_num_print <= pcVar3) {\n    return;\n  }\n  line_num_print = line_num_print + -1;\n  return;\n}\n\n" comment comment (function_definition "void next_line_num(void)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar3 = line_num_start;\n  pcVar2 = line_buf + 0x11;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (pcVar3 <= pcVar1);\n  if (pcVar3 < line_buf + 1) {\n    line_buf[0] = '>';\n  }\n  else {\n    line_num_start = pcVar3 + -1;\n    pcVar3[-1] = '1';\n    pcVar3 = line_num_start;\n  }\n  if (line_num_print <= pcVar3) {\n    return;\n  }\n  line_num_print = line_num_print + -1;\n  return;\n}" primitive_type (function_declarator "next_line_num(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar3 = line_num_start;\n  pcVar2 = line_buf + 0x11;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (pcVar3 <= pcVar1);\n  if (pcVar3 < line_buf + 1) {\n    line_buf[0] = '>';\n  }\n  else {\n    line_num_start = pcVar3 + -1;\n    pcVar3[-1] = '1';\n    pcVar3 = line_num_start;\n  }\n  if (line_num_print <= pcVar3) {\n    return;\n  }\n  line_num_print = line_num_print + -1;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = line_num_start;" (assignment_expression "pcVar3 = line_num_start" identifier = identifier) ;) (expression_statement "pcVar2 = line_buf + 0x11;" (assignment_expression "pcVar2 = line_buf + 0x11" identifier = (binary_expression "line_buf + 0x11" identifier + number_literal)) ;) (do_statement "do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (pcVar3 <= pcVar1);" do (compound_statement "{\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  }" { (if_statement "if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }" if (parenthesized_expression "(*pcVar2 < '9')" ( (binary_expression "*pcVar2 < '9'" (pointer_expression "*pcVar2" * identifier) < (char_literal "'9'" ' character ')) )) (compound_statement "{\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }" { (expression_statement "*pcVar2 = *pcVar2 + '\x01';" (assignment_expression "*pcVar2 = *pcVar2 + '\x01'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "*pcVar2 + '\x01'" (pointer_expression "*pcVar2" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar1 = pcVar2 + -1;" (assignment_expression "pcVar1 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = '0';" (assignment_expression "*pcVar2 = '0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'0'" ' character ')) ;) (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar3 <= pcVar1)" ( (binary_expression "pcVar3 <= pcVar1" identifier <= identifier) )) ;) (if_statement "if (pcVar3 < line_buf + 1) {\n    line_buf[0] = '>';\n  }\n  else {\n    line_num_start = pcVar3 + -1;\n    pcVar3[-1] = '1';\n    pcVar3 = line_num_start;\n  }" if (parenthesized_expression "(pcVar3 < line_buf + 1)" ( (binary_expression "pcVar3 < line_buf + 1" identifier < (binary_expression "line_buf + 1" identifier + number_literal)) )) (compound_statement "{\n    line_buf[0] = '>';\n  }" { (expression_statement "line_buf[0] = '>';" (assignment_expression "line_buf[0] = '>'" (subscript_expression "line_buf[0]" identifier [ number_literal ]) = (char_literal "'>'" ' character ')) ;) }) (else_clause "else {\n    line_num_start = pcVar3 + -1;\n    pcVar3[-1] = '1';\n    pcVar3 = line_num_start;\n  }" else (compound_statement "{\n    line_num_start = pcVar3 + -1;\n    pcVar3[-1] = '1';\n    pcVar3 = line_num_start;\n  }" { (expression_statement "line_num_start = pcVar3 + -1;" (assignment_expression "line_num_start = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ;) (expression_statement "pcVar3[-1] = '1';" (assignment_expression "pcVar3[-1] = '1'" (subscript_expression "pcVar3[-1]" identifier [ number_literal ]) = (char_literal "'1'" ' character ')) ;) (expression_statement "pcVar3 = line_num_start;" (assignment_expression "pcVar3 = line_num_start" identifier = identifier) ;) }))) (if_statement "if (line_num_print <= pcVar3) {\n    return;\n  }" if (parenthesized_expression "(line_num_print <= pcVar3)" ( (binary_expression "line_num_print <= pcVar3" identifier <= identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "line_num_print = line_num_print + -1;" (assignment_expression "line_num_print = line_num_print + -1" identifier = (binary_expression "line_num_print + -1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000121e0(void)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined *puVar3;\n  \n  puVar3 = PTR_DAT_0001c11c;\n  pcVar2 = &DAT_0001c119;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);\n  if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }\n  if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }\n  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;\n  return;\n}\n\n" (function_definition "void FUN_000121e0(void)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined *puVar3;\n  \n  puVar3 = PTR_DAT_0001c11c;\n  pcVar2 = &DAT_0001c119;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);\n  if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }\n  if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }\n  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;\n  return;\n}" primitive_type (function_declarator "FUN_000121e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  undefined *puVar3;\n  \n  puVar3 = PTR_DAT_0001c11c;\n  pcVar2 = &DAT_0001c119;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);\n  if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }\n  if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }\n  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = PTR_DAT_0001c11c;" (assignment_expression "puVar3 = PTR_DAT_0001c11c" identifier = identifier) ;) (expression_statement "pcVar2 = &DAT_0001c119;" (assignment_expression "pcVar2 = &DAT_0001c119" identifier = (pointer_expression "&DAT_0001c119" & identifier)) ;) (do_statement "do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);" do (compound_statement "{\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  }" { (if_statement "if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }" if (parenthesized_expression "(*pcVar2 < '9')" ( (binary_expression "*pcVar2 < '9'" (pointer_expression "*pcVar2" * identifier) < (char_literal "'9'" ' character ')) )) (compound_statement "{\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }" { (expression_statement "*pcVar2 = *pcVar2 + '\x01';" (assignment_expression "*pcVar2 = *pcVar2 + '\x01'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "*pcVar2 + '\x01'" (pointer_expression "*pcVar2" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar1 = pcVar2 + -1;" (assignment_expression "pcVar1 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = '0';" (assignment_expression "*pcVar2 = '0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'0'" ' character ')) ;) (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 <= pcVar1)" ( (binary_expression "puVar3 <= pcVar1" identifier <= identifier) )) ;) (if_statement "if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" if (parenthesized_expression "(puVar3 < (undefined *)0x1c109)" ( (binary_expression "puVar3 < (undefined *)0x1c109" identifier < (cast_expression "(undefined *)0x1c109" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_0001c108 = 0x3e;\n  }" { (expression_statement "DAT_0001c108 = 0x3e;" (assignment_expression "DAT_0001c108 = 0x3e" identifier = number_literal) ;) }) (else_clause "else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" else (compound_statement "{\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" { (expression_statement "PTR_DAT_0001c11c = puVar3 + -1;" (assignment_expression "PTR_DAT_0001c11c = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar3[-1] = 0x31;" (assignment_expression "puVar3[-1] = 0x31" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3 = PTR_DAT_0001c11c;" (assignment_expression "puVar3 = PTR_DAT_0001c11c" identifier = identifier) ;) }))) (if_statement "if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }" if (parenthesized_expression "(PTR_DAT_0001c120 <= puVar3)" ( (binary_expression "PTR_DAT_0001c120 <= puVar3" identifier <= identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;" (assignment_expression "PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1" identifier = (binary_expression "PTR_DAT_0001c120 + -1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + (char_literal ' escape_sequence '))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_000121e0(void)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  undefined *puVar3;\n  \n  puVar3 = PTR_DAT_0001c11c;\n  pcVar2 = &DAT_0001c119;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);\n  if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }\n  if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }\n  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000121e0(void)" (identifier "FUN_000121e0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  undefined *puVar3;\n  \n  puVar3 = PTR_DAT_0001c11c;\n  pcVar2 = &DAT_0001c119;\n  do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);\n  if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }\n  if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }\n  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar3 = PTR_DAT_0001c11c;" (assignment_expression "puVar3 = PTR_DAT_0001c11c" (identifier "puVar3") (= "=") (identifier "PTR_DAT_0001c11c")) (; ";")) (expression_statement "pcVar2 = &DAT_0001c119;" (assignment_expression "pcVar2 = &DAT_0001c119" (identifier "pcVar2") (= "=") (pointer_expression "&DAT_0001c119" (& "&") (identifier "DAT_0001c119"))) (; ";")) (do_statement "do {\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  } while (puVar3 <= pcVar1);" (do "do") (compound_statement "{\n    if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }\n    pcVar1 = pcVar2 + -1;\n    *pcVar2 = '0';\n    pcVar2 = pcVar1;\n  }" ({ "{") (if_statement "if (*pcVar2 < '9') {\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }" (if "if") (parenthesized_expression "(*pcVar2 < '9')" (( "(") (binary_expression "*pcVar2 < '9'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (< "<") (char_literal "'9'" (' "'") (character "9") (' "'"))) () ")")) (compound_statement "{\n      *pcVar2 = *pcVar2 + '\x01';\n      return;\n    }" ({ "{") (expression_statement "*pcVar2 = *pcVar2 + '\x01';" (assignment_expression "*pcVar2 = *pcVar2 + '\x01'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (binary_expression "*pcVar2 + '\x01'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar1 = pcVar2 + -1;" (assignment_expression "pcVar1 = pcVar2 + -1" (identifier "pcVar1") (= "=") (binary_expression "pcVar2 + -1" (identifier "pcVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*pcVar2 = '0';" (assignment_expression "*pcVar2 = '0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'0'" (' "'") (character "0") (' "'"))) (; ";")) (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" (identifier "pcVar2") (= "=") (identifier "pcVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 <= pcVar1)" (( "(") (binary_expression "puVar3 <= pcVar1" (identifier "puVar3") (<= "<=") (identifier "pcVar1")) () ")")) (; ";")) (if_statement "if (puVar3 < (undefined *)0x1c109) {\n    DAT_0001c108 = 0x3e;\n  }\n  else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" (if "if") (parenthesized_expression "(puVar3 < (undefined *)0x1c109)" (( "(") (binary_expression "puVar3 < (undefined *)0x1c109" (identifier "puVar3") (< "<") (cast_expression "(undefined *)0x1c109" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1c109"))) () ")")) (compound_statement "{\n    DAT_0001c108 = 0x3e;\n  }" ({ "{") (expression_statement "DAT_0001c108 = 0x3e;" (assignment_expression "DAT_0001c108 = 0x3e" (identifier "DAT_0001c108") (= "=") (number_literal "0x3e")) (; ";")) (} "}")) (else_clause "else {\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" (else "else") (compound_statement "{\n    PTR_DAT_0001c11c = puVar3 + -1;\n    puVar3[-1] = 0x31;\n    puVar3 = PTR_DAT_0001c11c;\n  }" ({ "{") (expression_statement "PTR_DAT_0001c11c = puVar3 + -1;" (assignment_expression "PTR_DAT_0001c11c = puVar3 + -1" (identifier "PTR_DAT_0001c11c") (= "=") (binary_expression "puVar3 + -1" (identifier "puVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar3[-1] = 0x31;" (assignment_expression "puVar3[-1] = 0x31" (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]")) (= "=") (number_literal "0x31")) (; ";")) (expression_statement "puVar3 = PTR_DAT_0001c11c;" (assignment_expression "puVar3 = PTR_DAT_0001c11c" (identifier "puVar3") (= "=") (identifier "PTR_DAT_0001c11c")) (; ";")) (} "}")))) (if_statement "if (PTR_DAT_0001c120 <= puVar3) {\n    return;\n  }" (if "if") (parenthesized_expression "(PTR_DAT_0001c120 <= puVar3)" (( "(") (binary_expression "PTR_DAT_0001c120 <= puVar3" (identifier "PTR_DAT_0001c120") (<= "<=") (identifier "puVar3")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;" (assignment_expression "PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1" (identifier "PTR_DAT_0001c120") (= "=") (binary_expression "PTR_DAT_0001c120 + -1" (identifier "PTR_DAT_0001c120") (+ "+") (number_literal "-1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void)

{
  char *var_4;
  char *var_2;
  char *var_3;
  
  var_3 = line_num_start;
  var_2 = var_1 + 0x11;
  do {
    if (*var_2 < '9') {
      *var_2 = *var_2 + '\x01';
      return;
    }
    var_4 = var_2 + -1;
    *var_2 = '0';
    var_2 = var_4;
  } while (var_3 <= var_4);
  if (var_3 < var_1 + 1) {
    var_1[0] = '>';
  }
  else {
    line_num_start = var_3 + -1;
    var_3[-1] = '1';
    var_3 = line_num_start;
  }
  if (var_5 <= var_3) {
    return;
  }
  var_5 = var_5 + -1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))))

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

void MASKED(void)

{
  char *pcVar1;
  char *pcVar2;
  undefined *puVar3;
  
  puVar3 = PTR_DAT_0001c11c;
  pcVar2 = &DAT_0001c119;
  do {
    if (*pcVar2 < '9') {
      *pcVar2 = *pcVar2 + '\x01';
      return;
    }
    pcVar1 = pcVar2 + -1;
    *pcVar2 = '0';
    pcVar2 = pcVar1;
  } while (puVar3 <= pcVar1);
  if (puVar3 < (undefined *)0x1c109) {
    DAT_0001c108 = 0x3e;
  }
  else {
    PTR_DAT_0001c11c = puVar3 + -1;
    puVar3[-1] = 0x31;
    puVar3 = PTR_DAT_0001c11c;
  }
  if (PTR_DAT_0001c120 <= puVar3) {
    return;
  }
  PTR_DAT_0001c120 = PTR_DAT_0001c120 + -1;
  return;
}

