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

char * host_strduptrim(char *s)

{
  byte *pbVar1;
  ushort **ppuVar2;
  byte *pbVar3;
  byte *pbVar4;
  char *pcVar5;
  byte bVar6;
  int iVar7;
  
  if (*s == '[') {
    bVar6 = s[1];
    pbVar1 = (byte *)(s + 1);
    if ((bVar6 != 0x5d) && (bVar6 != 0)) {
      ppuVar2 = __ctype_b_loc();
      iVar7 = 0;
      pbVar3 = pbVar1;
      do {
        pbVar4 = pbVar3;
        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {
          if (bVar6 != 0x3a) goto LAB_0001b0d9;
          iVar7 = iVar7 + 1;
        }
        pbVar3 = pbVar4 + 1;
        bVar6 = *pbVar3;
      } while ((bVar6 != 0) && (bVar6 != 0x5d));
      if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {
        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);
        return pcVar5;
      }
    }
  }
LAB_0001b0d9:
  pcVar5 = dupstr(s);
  return pcVar5;
}



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

void FUN_0001b070(char *param_1)

{
  byte *pbVar1;
  ushort **ppuVar2;
  byte *pbVar3;
  byte *pbVar4;
  byte bVar5;
  int iVar6;
  
  if (*param_1 == '[') {
    bVar5 = param_1[1];
    pbVar1 = (byte *)(param_1 + 1);
    if ((bVar5 != 0x5d) && (bVar5 != 0)) {
      ppuVar2 = __ctype_b_loc();
      iVar6 = 0;
      pbVar3 = pbVar1;
      do {
        pbVar4 = pbVar3;
        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {
          if (bVar5 != 0x3a) goto LAB_0001b0d9;
          iVar6 = iVar6 + 1;
        }
        pbVar3 = pbVar4 + 1;
        bVar5 = *pbVar3;
      } while ((bVar5 != 0) && (bVar5 != 0x5d));
      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {
        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);
        return;
      }
    }
  }
LAB_0001b0d9:
  FUN_0001aac0();
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x8ed17
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x30]
CMP byte ptr [EDI],0x5b
JNZ 0x0001b0d9
MOVZX EDX,byte ptr [EDI + 0x1]
LEA EBP,[EDI + 0x1]
MOV dword ptr [ESP + 0xc],EBP
CMP DL,0x5d
JZ 0x0001b0d9
TEST DL,DL
MOV byte ptr [ESP + 0xb],DL
JZ 0x0001b0d9
CALL 0x00014880
MOVZX EDX,byte ptr [ESP + 0xb]
MOV ESI,dword ptr [EAX]
MOV EAX,EBP
XOR EBP,EBP
JMP 0x0001b0ca
ADD EBP,0x1
ADD EAX,0x1
MOVZX EDX,byte ptr [EAX]
TEST DL,DL
JZ 0x0001b0f0
CMP DL,0x5d
JZ 0x0001b0f0
MOVZX ECX,DL
TEST byte ptr [ESI + ECX*0x2 + 0x1],0x10
JNZ 0x0001b0bb
CMP DL,0x3a
JZ 0x0001b0b8
MOV dword ptr [ESP + 0x30],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x0001aac0
CMP DL,0x5d
JNZ 0x0001b0d9
CMP byte ptr [EAX + 0x1],0x0
JNZ 0x0001b0d9
CMP EBP,0x1
JLE 0x0001b0d9
SUB ESP,0x4
MOV EDI,dword ptr [ESP + 0x10]
SUB EAX,EDI
PUSH EDI
PUSH EAX
LEA EAX,[EBX + 0xfffcb95e]
PUSH EAX
CALL 0x0001b020
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001b070(char *param_1)\n\n{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte bVar5;\n  int iVar6;\n  \n  if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }\nLAB_0001b0d9:\n  FUN_0001aac0();\n  return;\n}\n\n" comment (function_definition "void FUN_0001b070(char *param_1)\n\n{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte bVar5;\n  int iVar6;\n  \n  if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }\nLAB_0001b0d9:\n  FUN_0001aac0();\n  return;\n}" primitive_type (function_declarator "FUN_0001b070(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte bVar5;\n  int iVar6;\n  \n  if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }\nLAB_0001b0d9:\n  FUN_0001aac0();\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(*param_1 == '[')" ( (binary_expression "*param_1 == '['" (pointer_expression "*param_1" * identifier) == (char_literal "'['" ' character ')) )) (compound_statement "{\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }" { (expression_statement "bVar5 = param_1[1];" (assignment_expression "bVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = (byte *)(param_1 + 1);" (assignment_expression "pbVar1 = (byte *)(param_1 + 1)" identifier = (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (if_statement "if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }" if (parenthesized_expression "((bVar5 != 0x5d) && (bVar5 != 0))" ( (binary_expression "(bVar5 != 0x5d) && (bVar5 != 0)" (parenthesized_expression "(bVar5 != 0x5d)" ( (binary_expression "bVar5 != 0x5d" identifier != number_literal) )) && (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (do_statement "do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));" do (compound_statement "{\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      }" { (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) (if_statement "if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }" if (parenthesized_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10)" ( (binary_expression "*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10" (pointer_expression "*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + (uint)bVar5 * 2 + 1" (binary_expression "(int)*ppuVar2 + (uint)bVar5 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "(uint)bVar5 * 2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }" { (if_statement "if (bVar5 != 0x3a) goto LAB_0001b0d9;" if (parenthesized_expression "(bVar5 != 0x3a)" ( (binary_expression "bVar5 != 0x3a" identifier != number_literal) )) (goto_statement "goto LAB_0001b0d9;" goto statement_identifier ;)) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3;" (assignment_expression "bVar5 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) }) while (parenthesized_expression "((bVar5 != 0) && (bVar5 != 0x5d))" ( (binary_expression "(bVar5 != 0) && (bVar5 != 0x5d)" (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(bVar5 != 0x5d)" ( (binary_expression "bVar5 != 0x5d" identifier != number_literal) ))) )) ;) (if_statement "if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }" if (parenthesized_expression "((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6))))" ( (binary_expression "(bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))" (parenthesized_expression "(bVar5 == 0x5d)" ( (binary_expression "bVar5 == 0x5d" identifier == number_literal) )) && (parenthesized_expression "((pbVar4[2] == 0 && (1 < iVar6)))" ( (parenthesized_expression "(pbVar4[2] == 0 && (1 < iVar6))" ( (binary_expression "pbVar4[2] == 0 && (1 < iVar6)" (binary_expression "pbVar4[2] == 0" (subscript_expression "pbVar4[2]" identifier [ number_literal ]) == number_literal) && (parenthesized_expression "(1 < iVar6)" ( (binary_expression "1 < iVar6" number_literal < identifier) ))) )) ))) )) (compound_statement "{\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }" { (expression_statement "FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);" (call_expression "FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" identifier (argument_list "("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" ( (string_literal ""%.*s"" " string_content ") , (binary_expression "(int)pbVar3 - (int)pbVar1" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier ))) ;) (return_statement "return;" return ;) })) })) })) (labeled_statement "LAB_0001b0d9:\n  FUN_0001aac0();" statement_identifier : (expression_statement "FUN_0001aac0();" (call_expression "FUN_0001aac0()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * host_strduptrim(char *s)\n\n{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  byte bVar6;\n  int iVar7;\n  \n  if (*s == '[') {\n    bVar6 = s[1];\n    pbVar1 = (byte *)(s + 1);\n    if ((bVar6 != 0x5d) && (bVar6 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar7 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      } while ((bVar6 != 0) && (bVar6 != 0x5d));\n      if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }\n    }\n  }\nLAB_0001b0d9:\n  pcVar5 = dupstr(s);\n  return pcVar5;\n}\n\n" comment (function_definition "char * host_strduptrim(char *s)\n\n{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  byte bVar6;\n  int iVar7;\n  \n  if (*s == '[') {\n    bVar6 = s[1];\n    pbVar1 = (byte *)(s + 1);\n    if ((bVar6 != 0x5d) && (bVar6 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar7 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      } while ((bVar6 != 0) && (bVar6 != 0x5d));\n      if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }\n    }\n  }\nLAB_0001b0d9:\n  pcVar5 = dupstr(s);\n  return pcVar5;\n}" primitive_type (pointer_declarator "* host_strduptrim(char *s)" * (function_declarator "host_strduptrim(char *s)" identifier (parameter_list "(char *s)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  char *pcVar5;\n  byte bVar6;\n  int iVar7;\n  \n  if (*s == '[') {\n    bVar6 = s[1];\n    pbVar1 = (byte *)(s + 1);\n    if ((bVar6 != 0x5d) && (bVar6 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar7 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      } while ((bVar6 != 0) && (bVar6 != 0x5d));\n      if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }\n    }\n  }\nLAB_0001b0d9:\n  pcVar5 = dupstr(s);\n  return pcVar5;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if (*s == '[') {\n    bVar6 = s[1];\n    pbVar1 = (byte *)(s + 1);\n    if ((bVar6 != 0x5d) && (bVar6 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar7 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      } while ((bVar6 != 0) && (bVar6 != 0x5d));\n      if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }\n    }\n  }" if (parenthesized_expression "(*s == '[')" ( (binary_expression "*s == '['" (pointer_expression "*s" * identifier) == (char_literal "'['" ' character ')) )) (compound_statement "{\n    bVar6 = s[1];\n    pbVar1 = (byte *)(s + 1);\n    if ((bVar6 != 0x5d) && (bVar6 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar7 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      } while ((bVar6 != 0) && (bVar6 != 0x5d));\n      if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }\n    }\n  }" { (expression_statement "bVar6 = s[1];" (assignment_expression "bVar6 = s[1]" identifier = (subscript_expression "s[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = (byte *)(s + 1);" (assignment_expression "pbVar1 = (byte *)(s + 1)" identifier = (cast_expression "(byte *)(s + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(s + 1)" ( (binary_expression "s + 1" identifier + number_literal) )))) ;) (if_statement "if ((bVar6 != 0x5d) && (bVar6 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar7 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      } while ((bVar6 != 0) && (bVar6 != 0x5d));\n      if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }\n    }" if (parenthesized_expression "((bVar6 != 0x5d) && (bVar6 != 0))" ( (binary_expression "(bVar6 != 0x5d) && (bVar6 != 0)" (parenthesized_expression "(bVar6 != 0x5d)" ( (binary_expression "bVar6 != 0x5d" identifier != number_literal) )) && (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      ppuVar2 = __ctype_b_loc();\n      iVar7 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      } while ((bVar6 != 0) && (bVar6 != 0x5d));\n      if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }\n    }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (do_statement "do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      } while ((bVar6 != 0) && (bVar6 != 0x5d));" do (compound_statement "{\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar6 = *pbVar3;\n      }" { (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) (if_statement "if ((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0) {\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }" if (parenthesized_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10)" ( (binary_expression "*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1) & 0x10" (pointer_expression "*(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + (uint)bVar6 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + (uint)bVar6 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + (uint)bVar6 * 2 + 1" (binary_expression "(int)*ppuVar2 + (uint)bVar6 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "(uint)bVar6 * 2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          if (bVar6 != 0x3a) goto LAB_0001b0d9;\n          iVar7 = iVar7 + 1;\n        }" { (if_statement "if (bVar6 != 0x3a) goto LAB_0001b0d9;" if (parenthesized_expression "(bVar6 != 0x3a)" ( (binary_expression "bVar6 != 0x3a" identifier != number_literal) )) (goto_statement "goto LAB_0001b0d9;" goto statement_identifier ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar3;" (assignment_expression "bVar6 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) }) while (parenthesized_expression "((bVar6 != 0) && (bVar6 != 0x5d))" ( (binary_expression "(bVar6 != 0) && (bVar6 != 0x5d)" (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(bVar6 != 0x5d)" ( (binary_expression "bVar6 != 0x5d" identifier != number_literal) ))) )) ;) (if_statement "if ((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))) {\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }" if (parenthesized_expression "((bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7))))" ( (binary_expression "(bVar6 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar7)))" (parenthesized_expression "(bVar6 == 0x5d)" ( (binary_expression "bVar6 == 0x5d" identifier == number_literal) )) && (parenthesized_expression "((pbVar4[2] == 0 && (1 < iVar7)))" ( (parenthesized_expression "(pbVar4[2] == 0 && (1 < iVar7))" ( (binary_expression "pbVar4[2] == 0 && (1 < iVar7)" (binary_expression "pbVar4[2] == 0" (subscript_expression "pbVar4[2]" identifier [ number_literal ]) == number_literal) && (parenthesized_expression "(1 < iVar7)" ( (binary_expression "1 < iVar7" number_literal < identifier) ))) )) ))) )) (compound_statement "{\n        pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return pcVar5;\n      }" { (expression_statement "pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);" (assignment_expression "pcVar5 = dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" identifier = (call_expression "dupprintf("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" identifier (argument_list "("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" ( (string_literal ""%.*s"" " string_content ") , (binary_expression "(int)pbVar3 - (int)pbVar1" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier )))) ;) (return_statement "return pcVar5;" return identifier ;) })) })) })) (labeled_statement "LAB_0001b0d9:\n  pcVar5 = dupstr(s);" statement_identifier : (expression_statement "pcVar5 = dupstr(s);" (assignment_expression "pcVar5 = dupstr(s)" identifier = (call_expression "dupstr(s)" identifier (argument_list "(s)" ( identifier )))) ;)) (return_statement "return pcVar5;" return identifier ;) })))
(translation_unit "void FUN_0001b070(char *param_1)\n\n{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte bVar5;\n  int iVar6;\n  \n  if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }\nLAB_0001b0d9:\n  FUN_0001aac0();\n  return;\n}\n\n" (function_definition "void FUN_0001b070(char *param_1)\n\n{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte bVar5;\n  int iVar6;\n  \n  if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }\nLAB_0001b0d9:\n  FUN_0001aac0();\n  return;\n}" primitive_type (function_declarator "FUN_0001b070(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte bVar5;\n  int iVar6;\n  \n  if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }\nLAB_0001b0d9:\n  FUN_0001aac0();\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(*param_1 == '[')" ( (binary_expression "*param_1 == '['" (pointer_expression "*param_1" * identifier) == (char_literal "'['" ' character ')) )) (compound_statement "{\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }" { (expression_statement "bVar5 = param_1[1];" (assignment_expression "bVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "pbVar1 = (byte *)(param_1 + 1);" (assignment_expression "pbVar1 = (byte *)(param_1 + 1)" identifier = (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (if_statement "if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }" if (parenthesized_expression "((bVar5 != 0x5d) && (bVar5 != 0))" ( (binary_expression "(bVar5 != 0x5d) && (bVar5 != 0)" (parenthesized_expression "(bVar5 != 0x5d)" ( (binary_expression "bVar5 != 0x5d" identifier != number_literal) )) && (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) ))) )) (compound_statement "{\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }" { (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (do_statement "do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));" do (compound_statement "{\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      }" { (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) (if_statement "if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }" if (parenthesized_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10)" ( (binary_expression "*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10" (pointer_expression "*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + (uint)bVar5 * 2 + 1" (binary_expression "(int)*ppuVar2 + (uint)bVar5 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "(uint)bVar5 * 2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }" { (if_statement "if (bVar5 != 0x3a) goto LAB_0001b0d9;" if (parenthesized_expression "(bVar5 != 0x3a)" ( (binary_expression "bVar5 != 0x3a" identifier != number_literal) )) (goto_statement "goto LAB_0001b0d9;" goto statement_identifier ;)) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3;" (assignment_expression "bVar5 = *pbVar3" identifier = (pointer_expression "*pbVar3" * identifier)) ;) }) while (parenthesized_expression "((bVar5 != 0) && (bVar5 != 0x5d))" ( (binary_expression "(bVar5 != 0) && (bVar5 != 0x5d)" (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(bVar5 != 0x5d)" ( (binary_expression "bVar5 != 0x5d" identifier != number_literal) ))) )) ;) (if_statement "if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }" if (parenthesized_expression "((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6))))" ( (binary_expression "(bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))" (parenthesized_expression "(bVar5 == 0x5d)" ( (binary_expression "bVar5 == 0x5d" identifier == number_literal) )) && (parenthesized_expression "((pbVar4[2] == 0 && (1 < iVar6)))" ( (parenthesized_expression "(pbVar4[2] == 0 && (1 < iVar6))" ( (binary_expression "pbVar4[2] == 0 && (1 < iVar6)" (binary_expression "pbVar4[2] == 0" (subscript_expression "pbVar4[2]" identifier [ number_literal ]) == number_literal) && (parenthesized_expression "(1 < iVar6)" ( (binary_expression "1 < iVar6" number_literal < identifier) ))) )) ))) )) (compound_statement "{\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }" { (expression_statement "FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);" (call_expression "FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" identifier (argument_list "("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" ( (string_literal ""%.*s"" " string_content ") , (binary_expression "(int)pbVar3 - (int)pbVar1" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier ))) ;) (return_statement "return;" return ;) })) })) })) (labeled_statement "LAB_0001b0d9:\n  FUN_0001aac0();" statement_identifier : (expression_statement "FUN_0001aac0();" (call_expression "FUN_0001aac0()" identifier (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT ))) ;) (return_statement return ;) })) })) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_0001b070(char *param_1)\n\n{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte bVar5;\n  int iVar6;\n  \n  if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }\nLAB_0001b0d9:\n  FUN_0001aac0();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001b070(char *param_1)" (identifier "FUN_0001b070") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  ushort **ppuVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  byte bVar5;\n  int iVar6;\n  \n  if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }\nLAB_0001b0d9:\n  FUN_0001aac0();\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "ushort **ppuVar2;" (type_identifier "ushort") (pointer_declarator "**ppuVar2" (* "*") (pointer_declarator "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (if_statement "if (*param_1 == '[') {\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 == '[')" (( "(") (binary_expression "*param_1 == '['" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'['" (' "'") (character "[") (' "'"))) () ")")) (compound_statement "{\n    bVar5 = param_1[1];\n    pbVar1 = (byte *)(param_1 + 1);\n    if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }\n  }" ({ "{") (expression_statement "bVar5 = param_1[1];" (assignment_expression "bVar5 = param_1[1]" (identifier "bVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pbVar1 = (byte *)(param_1 + 1);" (assignment_expression "pbVar1 = (byte *)(param_1 + 1)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)(param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if ((bVar5 != 0x5d) && (bVar5 != 0)) {\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }" (if "if") (parenthesized_expression "((bVar5 != 0x5d) && (bVar5 != 0))" (( "(") (binary_expression "(bVar5 != 0x5d) && (bVar5 != 0)" (parenthesized_expression "(bVar5 != 0x5d)" (( "(") (binary_expression "bVar5 != 0x5d" (identifier "bVar5") (!= "!=") (number_literal "0x5d")) () ")")) (&& "&&") (parenthesized_expression "(bVar5 != 0)" (( "(") (binary_expression "bVar5 != 0" (identifier "bVar5") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      ppuVar2 = __ctype_b_loc();\n      iVar6 = 0;\n      pbVar3 = pbVar1;\n      do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));\n      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }\n    }" ({ "{") (expression_statement "ppuVar2 = __ctype_b_loc();" (assignment_expression "ppuVar2 = __ctype_b_loc()" (identifier "ppuVar2") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" (identifier "pbVar3") (= "=") (identifier "pbVar1")) (; ";")) (do_statement "do {\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      } while ((bVar5 != 0) && (bVar5 != 0x5d));" (do "do") (compound_statement "{\n        pbVar4 = pbVar3;\n        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }\n        pbVar3 = pbVar4 + 1;\n        bVar5 = *pbVar3;\n      }" ({ "{") (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" (identifier "pbVar4") (= "=") (identifier "pbVar3")) (; ";")) (if_statement "if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }" (if "if") (parenthesized_expression "((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10)" (( "(") (binary_expression "*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10" (pointer_expression "*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)*ppuVar2 + (uint)bVar5 * 2 + 1)" (( "(") (binary_expression "(int)*ppuVar2 + (uint)bVar5 * 2 + 1" (binary_expression "(int)*ppuVar2 + (uint)bVar5 * 2" (cast_expression "(int)*ppuVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*ppuVar2" (* "*") (identifier "ppuVar2"))) (+ "+") (binary_expression "(uint)bVar5 * 2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (bVar5 != 0x3a) goto LAB_0001b0d9;\n          iVar6 = iVar6 + 1;\n        }" ({ "{") (if_statement "if (bVar5 != 0x3a) goto LAB_0001b0d9;" (if "if") (parenthesized_expression "(bVar5 != 0x3a)" (( "(") (binary_expression "bVar5 != 0x3a" (identifier "bVar5") (!= "!=") (number_literal "0x3a")) () ")")) (goto_statement "goto LAB_0001b0d9;" (goto "goto") (statement_identifier "LAB_0001b0d9") (; ";"))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar5 = *pbVar3;" (assignment_expression "bVar5 = *pbVar3" (identifier "bVar5") (= "=") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((bVar5 != 0) && (bVar5 != 0x5d))" (( "(") (binary_expression "(bVar5 != 0) && (bVar5 != 0x5d)" (parenthesized_expression "(bVar5 != 0)" (( "(") (binary_expression "bVar5 != 0" (identifier "bVar5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(bVar5 != 0x5d)" (( "(") (binary_expression "bVar5 != 0x5d" (identifier "bVar5") (!= "!=") (number_literal "0x5d")) () ")"))) () ")")) (; ";")) (if_statement "if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }" (if "if") (parenthesized_expression "((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6))))" (( "(") (binary_expression "(bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))" (parenthesized_expression "(bVar5 == 0x5d)" (( "(") (binary_expression "bVar5 == 0x5d" (identifier "bVar5") (== "==") (number_literal "0x5d")) () ")")) (&& "&&") (parenthesized_expression "((pbVar4[2] == 0 && (1 < iVar6)))" (( "(") (parenthesized_expression "(pbVar4[2] == 0 && (1 < iVar6))" (( "(") (binary_expression "pbVar4[2] == 0 && (1 < iVar6)" (binary_expression "pbVar4[2] == 0" (subscript_expression "pbVar4[2]" (identifier "pbVar4") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(1 < iVar6)" (( "(") (binary_expression "1 < iVar6" (number_literal "1") (< "<") (identifier "iVar6")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);\n        return;\n      }" ({ "{") (expression_statement "FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);" (call_expression "FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" (identifier "FUN_0001b020") (argument_list "("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1)" (( "(") (string_literal ""%.*s"" (" """) (string_content "%.*s") (" """)) (, ",") (binary_expression "(int)pbVar3 - (int)pbVar1" (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3")) (- "-") (cast_expression "(int)pbVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar1"))) (, ",") (identifier "pbVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_0001b0d9:\n  FUN_0001aac0();" (statement_identifier "LAB_0001b0d9") (: ":") (expression_statement "FUN_0001aac0();" (call_expression "FUN_0001aac0()" (identifier "FUN_0001aac0") (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * function_1(char *var_1)

{
  type_1 *pbVar1;
  type_2 **ppuVar2;
  type_1 *pbVar3;
  type_1 *var_5;
  char *pcVar5;
  type_1 var_2;
  int var_4;
  
  if (*var_1 == '[') {
    var_2 = var_1[1];
    pbVar1 = (type_1 *)(var_1 + 1);
    if ((var_2 != 0x5d) && (var_2 != 0)) {
      ppuVar2 = var_3();
      var_4 = 0;
      pbVar3 = pbVar1;
      do {
        var_5 = pbVar3;
        if ((*(type_1 *)((int)*ppuVar2 + (type_3)var_2 * 2 + 1) & 0x10) == 0) {
          if (var_2 != 0x3a) goto LAB_0001b0d9;
          var_4 = var_4 + 1;
        }
        pbVar3 = var_5 + 1;
        var_2 = *pbVar3;
      } while ((var_2 != 0) && (var_2 != 0x5d));
      if ((var_2 == 0x5d) && ((var_5[2] == 0 && (1 < var_4)))) {
        pcVar5 = var_6("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);
        return pcVar5;
      }
    }
  }
LAB_0001b0d9:
  pcVar5 = var_7(var_1);
  return pcVar5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_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)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) (identifier)))) (return_statement))))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) (return_statement))))

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

void MASKED(char *param_1)

{
  byte *pbVar1;
  ushort **ppuVar2;
  byte *pbVar3;
  byte *pbVar4;
  byte bVar5;
  int iVar6;
  
  if (*param_1 == '[') {
    bVar5 = param_1[1];
    pbVar1 = (byte *)(param_1 + 1);
    if ((bVar5 != 0x5d) && (bVar5 != 0)) {
      ppuVar2 = __ctype_b_loc();
      iVar6 = 0;
      pbVar3 = pbVar1;
      do {
        pbVar4 = pbVar3;
        if ((*(byte *)((int)*ppuVar2 + (uint)bVar5 * 2 + 1) & 0x10) == 0) {
          if (bVar5 != 0x3a) goto LAB_0001b0d9;
          iVar6 = iVar6 + 1;
        }
        pbVar3 = pbVar4 + 1;
        bVar5 = *pbVar3;
      } while ((bVar5 != 0) && (bVar5 != 0x5d));
      if ((bVar5 == 0x5d) && ((pbVar4[2] == 0 && (1 < iVar6)))) {
        FUN_0001b020("%.*s",(int)pbVar3 - (int)pbVar1,pbVar1);
        return;
      }
    }
  }
LAB_0001b0d9:
  FUN_0001aac0();
  return;
}

