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

int len_cmdbuf(void)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  uint *puVar4;
  int iVar5;
  int in_GS_OFFSET;
  bool bVar6;
  char *s;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x17c29;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  s = cmdbuf;
  puVar4 = (uint *)s;
  do {
    puVar3 = puVar4;
    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;
    uVar2 = uVar1 & 0x80808080;
    puVar4 = puVar3 + 1;
  } while (uVar2 == 0);
  bVar6 = (uVar1 & 0x8080) == 0;
  if (bVar6) {
    uVar2 = uVar2 >> 0x10;
  }
  if (bVar6) {
    puVar4 = (uint *)((int)puVar3 + 6);
  }
  iVar5 = 0;
  if (cmdbuf[0] != '\0') {
    do {
      iVar5 = iVar5 + 1;
      step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));
    } while (*s != '\0');
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int FUN_00017c20(void)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  uint *puVar4;
  int iVar5;
  int in_GS_OFFSET;
  bool bVar6;
  uint *local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x17c29;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = &DAT_0003e320;
  puVar4 = local_24;
  do {
    puVar3 = puVar4;
    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;
    uVar2 = uVar1 & 0x80808080;
    puVar4 = puVar3 + 1;
  } while (uVar2 == 0);
  bVar6 = (uVar1 & 0x8080) == 0;
  if (bVar6) {
    uVar2 = uVar2 >> 0x10;
  }
  if (bVar6) {
    puVar4 = (uint *)((int)puVar3 + 6);
  }
  iVar5 = 0;
  if ((char)DAT_0003e320 != '\0') {
    do {
      iVar5 = iVar5 + 1;
      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))
      ;
    } while ((char)*local_24 != '\0');
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b510();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000129a0
ADD EBX,0x2426f
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
LEA ESI,[EBX + 0x2488]
MOV dword ptr [ESP + 0x8],ESI
MOV EDX,dword ptr [ESI]
ADD ESI,0x4
LEA EAX,[EDX + 0xfefefeff]
NOT EDX
AND EAX,EDX
AND EAX,0x80808080
JZ 0x00017c48
MOV EDX,EAX
SHR EDX,0x10
TEST EAX,0x8080
CMOVZ EAX,EDX
LEA EDX,[ESI + 0x2]
CMOVZ ESI,EDX
MOV ECX,EAX
ADD CL,AL
SBB ESI,0x3
XOR EDI,EDI
CMP byte ptr [EBX + 0x2488],0x0
JZ 0x00017cab
LEA EBP,[ESP + 0x8]
LEA ESI,[ESI]
NOP
SUB ESP,0x4
ADD EDI,0x1
PUSH ESI
PUSH 0x1
PUSH EBP
CALL 0x00016730
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
CMP byte ptr [EAX],0x0
JNZ 0x00017c90
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x00017cc2
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0002b510
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00017c20(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  uint *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = &DAT_0003e320;\n  puVar4 = local_24;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b510();\n}\n\n" comment (function_definition "int FUN_00017c20(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  uint *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = &DAT_0003e320;\n  puVar4 = local_24;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b510();\n}" primitive_type (function_declarator "FUN_00017c20(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  uint *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = &DAT_0003e320;\n  puVar4 = local_24;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b510();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "uint *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x17c29;" (assignment_expression "uStack_14 = 0x17c29" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = &DAT_0003e320;" (assignment_expression "local_24 = &DAT_0003e320" identifier = (pointer_expression "&DAT_0003e320" & identifier)) ;) (expression_statement "puVar4 = local_24;" (assignment_expression "puVar4 = local_24" identifier = identifier) ;) (do_statement "do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);" do (compound_statement "{\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  }" { (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) (expression_statement "uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;" (assignment_expression "uVar1 = *puVar3 + 0xfefefeff & ~*puVar3" identifier = (binary_expression "*puVar3 + 0xfefefeff & ~*puVar3" (binary_expression "*puVar3 + 0xfefefeff" (pointer_expression "*puVar3" * identifier) + number_literal) & (unary_expression "~*puVar3" ~ (pointer_expression "*puVar3" * identifier)))) ;) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" identifier = (binary_expression "uVar1 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) ;) (expression_statement "bVar6 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar6 = (uVar1 & 0x8080) == 0" identifier = (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" ( (binary_expression "uVar1 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n    uVar2 = uVar2 >> 0x10;\n  }" { (expression_statement "uVar2 = uVar2 >> 0x10;" (assignment_expression "uVar2 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }" { (expression_statement "puVar4 = (uint *)((int)puVar3 + 6);" (assignment_expression "puVar4 = (uint *)((int)puVar3 + 6)" identifier = (cast_expression "(uint *)((int)puVar3 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 6)" ( (binary_expression "(int)puVar3 + 6" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }" if (parenthesized_expression "((char)DAT_0003e320 != '\0')" ( (binary_expression "(char)DAT_0003e320 != '\0'" (cast_expression "(char)DAT_0003e320" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }" { (do_statement "do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');" do (compound_statement "{\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;" (call_expression "FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))" identifier (argument_list "(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))" ( (pointer_expression "&local_24" & identifier) , number_literal , (cast_expression "(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (binary_expression "(int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar2,(byte)uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar2,(byte)uVar2)" identifier (argument_list "((byte)uVar2,(byte)uVar2)" ( (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) ))) ))) ;) }) while (parenthesized_expression "((char)*local_24 != '\0')" ( (binary_expression "(char)*local_24 != '\0'" (cast_expression "(char)*local_24" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*local_24" * identifier)) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\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 iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) 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 len_cmdbuf(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  char *s;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  s = cmdbuf;\n  puVar4 = (uint *)s;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if (cmdbuf[0] != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));\n    } while (*s != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int len_cmdbuf(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  char *s;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  s = cmdbuf;\n  puVar4 = (uint *)s;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if (cmdbuf[0] != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));\n    } while (*s != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "len_cmdbuf(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  char *s;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  s = cmdbuf;\n  puVar4 = (uint *)s;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if (cmdbuf[0] != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));\n    } while (*s != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x17c29;" (assignment_expression "uStack_14 = 0x17c29" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "s = cmdbuf;" (assignment_expression "s = cmdbuf" identifier = identifier) ;) (expression_statement "puVar4 = (uint *)s;" (assignment_expression "puVar4 = (uint *)s" identifier = (cast_expression "(uint *)s" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);" do (compound_statement "{\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  }" { (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) (expression_statement "uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;" (assignment_expression "uVar1 = *puVar3 + 0xfefefeff & ~*puVar3" identifier = (binary_expression "*puVar3 + 0xfefefeff & ~*puVar3" (binary_expression "*puVar3 + 0xfefefeff" (pointer_expression "*puVar3" * identifier) + number_literal) & (unary_expression "~*puVar3" ~ (pointer_expression "*puVar3" * identifier)))) ;) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" identifier = (binary_expression "uVar1 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) ;) (expression_statement "bVar6 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar6 = (uVar1 & 0x8080) == 0" identifier = (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" ( (binary_expression "uVar1 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n    uVar2 = uVar2 >> 0x10;\n  }" { (expression_statement "uVar2 = uVar2 >> 0x10;" (assignment_expression "uVar2 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }" { (expression_statement "puVar4 = (uint *)((int)puVar3 + 6);" (assignment_expression "puVar4 = (uint *)((int)puVar3 + 6)" identifier = (cast_expression "(uint *)((int)puVar3 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 6)" ( (binary_expression "(int)puVar3 + 6" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (cmdbuf[0] != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));\n    } while (*s != '\0');\n  }" if (parenthesized_expression "(cmdbuf[0] != '\0')" ( (binary_expression "cmdbuf[0] != '\0'" (subscript_expression "cmdbuf[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    do {\n      iVar5 = iVar5 + 1;\n      step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));\n    } while (*s != '\0');\n  }" { (do_statement "do {\n      iVar5 = iVar5 + 1;\n      step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));\n    } while (*s != '\0');" do (compound_statement "{\n      iVar5 = iVar5 + 1;\n      step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));\n    }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))));" (call_expression "step_char(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))" identifier (argument_list "(&s,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))" ( (pointer_expression "&s" & identifier) , number_literal , (cast_expression "(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (binary_expression "(int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar2,(byte)uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar2,(byte)uVar2)" identifier (argument_list "((byte)uVar2,(byte)uVar2)" ( (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) ))) ))) ;) }) while (parenthesized_expression "(*s != '\0')" ( (binary_expression "*s != '\0'" (pointer_expression "*s" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\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 iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00017c20(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  uint *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = &DAT_0003e320;\n  puVar4 = local_24;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002b510();\n}\n\n" (function_definition "int FUN_00017c20(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  uint *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = &DAT_0003e320;\n  puVar4 = local_24;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002b510();\n}" primitive_type (function_declarator "FUN_00017c20(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  uint *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = &DAT_0003e320;\n  puVar4 = local_24;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002b510();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "uint *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x17c29;" (assignment_expression "uStack_14 = 0x17c29" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = &DAT_0003e320;" (assignment_expression "local_24 = &DAT_0003e320" identifier = (pointer_expression "&DAT_0003e320" & identifier)) ;) (expression_statement "puVar4 = local_24;" (assignment_expression "puVar4 = local_24" identifier = identifier) ;) (do_statement "do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);" do (compound_statement "{\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  }" { (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) (expression_statement "uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;" (assignment_expression "uVar1 = *puVar3 + 0xfefefeff & ~*puVar3" identifier = (binary_expression "*puVar3 + 0xfefefeff & ~*puVar3" (binary_expression "*puVar3 + 0xfefefeff" (pointer_expression "*puVar3" * identifier) + number_literal) & (unary_expression "~*puVar3" ~ (pointer_expression "*puVar3" * identifier)))) ;) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" identifier = (binary_expression "uVar1 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) ;) (expression_statement "bVar6 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar6 = (uVar1 & 0x8080) == 0" identifier = (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" ( (binary_expression "uVar1 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n    uVar2 = uVar2 >> 0x10;\n  }" { (expression_statement "uVar2 = uVar2 >> 0x10;" (assignment_expression "uVar2 = uVar2 >> 0x10" identifier = (binary_expression "uVar2 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }" if (parenthesized_expression "(bVar6)" ( identifier )) (compound_statement "{\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }" { (expression_statement "puVar4 = (uint *)((int)puVar3 + 6);" (assignment_expression "puVar4 = (uint *)((int)puVar3 + 6)" identifier = (cast_expression "(uint *)((int)puVar3 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 6)" ( (binary_expression "(int)puVar3 + 6" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }" if (parenthesized_expression "((char)DAT_0003e320 != '\0')" ( (binary_expression "(char)DAT_0003e320 != '\0'" (cast_expression "(char)DAT_0003e320" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }" { (do_statement "do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');" do (compound_statement "{\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    }" { (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;" (call_expression "FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))" identifier (argument_list "(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))" ( (pointer_expression "&local_24" & identifier) , number_literal , (cast_expression "(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" ( (binary_expression "(int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar2,(byte)uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar2,(byte)uVar2)" identifier (argument_list "((byte)uVar2,(byte)uVar2)" ( (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) ))) ))) ))) ;) }) while (parenthesized_expression "((char)*local_24 != '\0')" ( (binary_expression "(char)*local_24 != '\0'" (cast_expression "(char)*local_24" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*local_24" * identifier)) != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\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 iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & (unary_expression ~ (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))))) ))) ))) ))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) != (char_literal ' escape_sequence ')) )) ;) })) (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 "int FUN_00017c20(void)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  uint *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = &DAT_0003e320;\n  puVar4 = local_24;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002b510();\n}" (primitive_type "int") (function_declarator "FUN_00017c20(void)" (identifier "FUN_00017c20") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint *puVar3;\n  uint *puVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  bool bVar6;\n  uint *local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x17c29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = &DAT_0003e320;\n  puVar4 = local_24;\n  do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);\n  bVar6 = (uVar1 & 0x8080) == 0;\n  if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }\n  if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }\n  iVar5 = 0;\n  if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }\n                    \n  FUN_0002b510();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "uint *local_24;" (type_identifier "uint") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x17c29;" (assignment_expression "uStack_14 = 0x17c29" (identifier "uStack_14") (= "=") (number_literal "0x17c29")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_24 = &DAT_0003e320;" (assignment_expression "local_24 = &DAT_0003e320" (identifier "local_24") (= "=") (pointer_expression "&DAT_0003e320" (& "&") (identifier "DAT_0003e320"))) (; ";")) (expression_statement "puVar4 = local_24;" (assignment_expression "puVar4 = local_24" (identifier "puVar4") (= "=") (identifier "local_24")) (; ";")) (do_statement "do {\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  } while (uVar2 == 0);" (do "do") (compound_statement "{\n    puVar3 = puVar4;\n    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;\n    uVar2 = uVar1 & 0x80808080;\n    puVar4 = puVar3 + 1;\n  }" ({ "{") (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" (identifier "puVar3") (= "=") (identifier "puVar4")) (; ";")) (expression_statement "uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;" (assignment_expression "uVar1 = *puVar3 + 0xfefefeff & ~*puVar3" (identifier "uVar1") (= "=") (binary_expression "*puVar3 + 0xfefefeff & ~*puVar3" (binary_expression "*puVar3 + 0xfefefeff" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~*puVar3" (~ "~") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))))) (; ";")) (expression_statement "uVar2 = uVar1 & 0x80808080;" (assignment_expression "uVar2 = uVar1 & 0x80808080" (identifier "uVar2") (= "=") (binary_expression "uVar1 & 0x80808080" (identifier "uVar1") (& "&") (number_literal "0x80808080"))) (; ";")) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "bVar6 = (uVar1 & 0x8080) == 0;" (assignment_expression "bVar6 = (uVar1 & 0x8080) == 0" (identifier "bVar6") (= "=") (binary_expression "(uVar1 & 0x8080) == 0" (parenthesized_expression "(uVar1 & 0x8080)" (( "(") (binary_expression "uVar1 & 0x8080" (identifier "uVar1") (& "&") (number_literal "0x8080")) () ")")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar6) {\n    uVar2 = uVar2 >> 0x10;\n  }" (if "if") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (compound_statement "{\n    uVar2 = uVar2 >> 0x10;\n  }" ({ "{") (expression_statement "uVar2 = uVar2 >> 0x10;" (assignment_expression "uVar2 = uVar2 >> 0x10" (identifier "uVar2") (= "=") (binary_expression "uVar2 >> 0x10" (identifier "uVar2") (>> ">>") (number_literal "0x10"))) (; ";")) (} "}"))) (if_statement "if (bVar6) {\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }" (if "if") (parenthesized_expression "(bVar6)" (( "(") (identifier "bVar6") () ")")) (compound_statement "{\n    puVar4 = (uint *)((int)puVar3 + 6);\n  }" ({ "{") (expression_statement "puVar4 = (uint *)((int)puVar3 + 6);" (assignment_expression "puVar4 = (uint *)((int)puVar3 + 6)" (identifier "puVar4") (= "=") (cast_expression "(uint *)((int)puVar3 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + 6)" (( "(") (binary_expression "(int)puVar3 + 6" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "6")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((char)DAT_0003e320 != '\0') {\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }" (if "if") (parenthesized_expression "((char)DAT_0003e320 != '\0')" (( "(") (binary_expression "(char)DAT_0003e320 != '\0'" (cast_expression "(char)DAT_0003e320" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "DAT_0003e320")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');\n  }" ({ "{") (do_statement "do {\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    } while ((char)*local_24 != '\0');" (do "do") (compound_statement "{\n      iVar5 = iVar5 + 1;\n      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;\n    }" ({ "{") (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))\n      ;" (call_expression "FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))" (identifier "FUN_00016730") (argument_list "(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "1") (, ",") (cast_expression "(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)))" (( "(") (binary_expression "(int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))" (( "(") (binary_expression "-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2)" (number_literal "-3") (- "-") (cast_expression "(uint)CARRY1((byte)uVar2,(byte)uVar2)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY1((byte)uVar2,(byte)uVar2)" (identifier "CARRY1") (argument_list "((byte)uVar2,(byte)uVar2)" (( "(") (cast_expression "(byte)uVar2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar2")) (, ",") (cast_expression "(byte)uVar2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar2")) () ")"))))) () ")"))) () ")"))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)*local_24 != '\0')" (( "(") (binary_expression "(char)*local_24 != '\0'" (cast_expression "(char)*local_24" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*local_24" (* "*") (identifier "local_24"))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar5;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar5;\n  }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (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)

{
  type_1 var_2;
  type_1 var_4;
  type_1 *var_3;
  type_1 *puVar4;
  int var_5;
  int var_1;
  bool bVar6;
  char *s;
  int var_8;
  type_2 uStack_14;
  
  uStack_14 = 0x17c29;
  var_8 = *(int *)(var_1 + 0x14);
  s = cmdbuf;
  puVar4 = (type_1 *)s;
  do {
    var_3 = puVar4;
    var_2 = *var_3 + 0xfefefeff & ~*var_3;
    var_4 = var_2 & 0x80808080;
    puVar4 = var_3 + 1;
  } while (var_4 == 0);
  bVar6 = (var_2 & 0x8080) == 0;
  if (bVar6) {
    var_4 = var_4 >> 0x10;
  }
  if (bVar6) {
    puVar4 = (type_1 *)((int)var_3 + 6);
  }
  var_5 = 0;
  if (cmdbuf[0] != '\0') {
    do {
      var_5 = var_5 + 1;
      var_6(&s,1,(char *)((int)puVar4 + (-3 - (type_1)var_7((type_3)var_4,(type_3)var_4))));
    } while (*s != '\0');
  }
  if (var_8 == *(int *)(var_1 + 0x14)) {
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (unary_expression argument: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))))))))))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (char_literal (escape_sequence))))))) (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 */

int MASKED(void)

{
  uint uVar1;
  uint uVar2;
  uint *puVar3;
  uint *puVar4;
  int iVar5;
  int in_GS_OFFSET;
  bool bVar6;
  uint *local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x17c29;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = &DAT_0003e320;
  puVar4 = local_24;
  do {
    puVar3 = puVar4;
    uVar1 = *puVar3 + 0xfefefeff & ~*puVar3;
    uVar2 = uVar1 & 0x80808080;
    puVar4 = puVar3 + 1;
  } while (uVar2 == 0);
  bVar6 = (uVar1 & 0x8080) == 0;
  if (bVar6) {
    uVar2 = uVar2 >> 0x10;
  }
  if (bVar6) {
    puVar4 = (uint *)((int)puVar3 + 6);
  }
  iVar5 = 0;
  if ((char)DAT_0003e320 != '\0') {
    do {
      iVar5 = iVar5 + 1;
      FUN_00016730(&local_24,1,(char *)((int)puVar4 + (-3 - (uint)CARRY1((byte)uVar2,(byte)uVar2))))
      ;
    } while ((char)*local_24 != '\0');
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b510();
}

