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

int plugin_opt_plugin_arg(char *arg)

{
  plugin_arg_t *ppVar1;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  bool bVar5;
  bool bVar6;
  
  if (last_plugin == (plugin_t *)0x0) {
    error_plugin = (char *)dcgettext(0,"<no plugin>",5);
    iVar2 = -1;
  }
  else {
    if (*arg == '-') {
      bVar5 = (byte)arg[1] < 0x2d;
      bVar6 = arg[1] == 0x2d;
      pbVar3 = (byte *)(arg + 2);
      if (!bVar6) {
        pbVar3 = (byte *)(arg + 1);
      }
      iVar2 = 0xd;
      pbVar4 = (byte *)"pass-through=";
      do {
        if (iVar2 == 0) break;
        iVar2 = iVar2 + -1;
        bVar5 = *pbVar3 < *pbVar4;
        bVar6 = *pbVar3 == *pbVar4;
        pbVar3 = pbVar3 + 1;
        pbVar4 = pbVar4 + 1;
      } while (bVar6);
      if ((!bVar5 && !bVar6) == bVar5) {
        return 0;
      }
    }
    ppVar1 = (plugin_arg_t *)xmalloc(8);
    ppVar1->arg = arg;
    ppVar1->next = (plugin_arg *)0x0;
    *last_plugin_args_tail_chain_ptr = ppVar1;
    last_plugin_args_tail_chain_ptr = &ppVar1->next;
    last_plugin->n_args = last_plugin->n_args + 1;
    iVar2 = 0;
  }
  return iVar2;
}



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

undefined4 FUN_000360c0(char *param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  byte *pbVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  
  if (DAT_000849f0 == 0) {
    DAT_000849e4 = dcgettext(0,"<no plugin>",5);
    uVar2 = 0xffffffff;
  }
  else {
    if (*param_1 == '-') {
      bVar6 = (byte)param_1[1] < 0x2d;
      bVar7 = param_1[1] == 0x2d;
      pbVar4 = (byte *)(param_1 + 2);
      if (!bVar7) {
        pbVar4 = (byte *)(param_1 + 1);
      }
      iVar3 = 0xd;
      pbVar5 = (byte *)"pass-through=";
      do {
        if (iVar3 == 0) break;
        iVar3 = iVar3 + -1;
        bVar6 = *pbVar4 < *pbVar5;
        bVar7 = *pbVar4 == *pbVar5;
        pbVar4 = pbVar4 + 1;
        pbVar5 = pbVar5 + 1;
      } while (bVar7);
      if ((!bVar6 && !bVar7) == bVar6) {
        return 0;
      }
    }
    puVar1 = (undefined4 *)xmalloc(8);
    puVar1[1] = param_1;
    *puVar1 = 0;
    *DAT_000849ec = puVar1;
    DAT_000849ec = puVar1;
    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;
    uVar2 = 0;
  }
  return uVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000159c0
ADD EBX,0x4df37
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EBX + 0x9f0]
TEST EAX,EAX
JZ 0x00036143
CMP byte ptr [EBP],0x2d
JNZ 0x0003610b
CMP byte ptr [EBP + 0x1],0x2d
LEA ESI,[EBP + 0x2]
JZ 0x000360f2
LEA ESI,[EBP + 0x1]
MOV ECX,0xd
LEA EDI,[EBX + 0xfffcc0df]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
MOVSX EAX,AL
TEST EAX,EAX
JZ 0x0003613b
SUB ESP,0xc
PUSH 0x8
CALL 0x00014c28
MOV EDX,dword ptr [EBX + 0x9ec]
ADD ESP,0x10
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [EAX],0x0
MOV dword ptr [EBX + 0x9ec],EAX
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [EBX + 0x9f0]
ADD dword ptr [EAX + 0x10],0x1
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffcc0b8]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000142c0
ADD ESP,0x10
MOV dword ptr [EBX + 0x9e4],EAX
MOV EAX,0xffffffff
JMP 0x0003613b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000360c0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_000360c0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000360c0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (if_statement "if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" if (parenthesized_expression "(DAT_000849f0 == 0)" ( (binary_expression "DAT_000849f0 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "DAT_000849e4 = dcgettext(0,"<no plugin>",5);" (assignment_expression "DAT_000849e4 = dcgettext(0,"<no plugin>",5)" identifier = (call_expression "dcgettext(0,"<no plugin>",5)" identifier (argument_list "(0,"<no plugin>",5)" ( number_literal , (string_literal ""<no plugin>"" " string_content ") , number_literal )))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" else (compound_statement "{\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" { (if_statement "if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(*param_1 == '-')" ( (binary_expression "*param_1 == '-'" (pointer_expression "*param_1" * identifier) == (char_literal "'-'" ' character ')) )) (compound_statement "{\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }" { (expression_statement "bVar6 = (byte)param_1[1] < 0x2d;" (assignment_expression "bVar6 = (byte)param_1[1] < 0x2d" identifier = (binary_expression "(byte)param_1[1] < 0x2d" (cast_expression "(byte)param_1[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) < number_literal)) ;) (expression_statement "bVar7 = param_1[1] == 0x2d;" (assignment_expression "bVar7 = param_1[1] == 0x2d" identifier = (binary_expression "param_1[1] == 0x2d" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar4 = (byte *)(param_1 + 2);" (assignment_expression "pbVar4 = (byte *)(param_1 + 2)" identifier = (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n        pbVar4 = (byte *)(param_1 + 1);\n      }" { (expression_statement "pbVar4 = (byte *)(param_1 + 1);" (assignment_expression "pbVar4 = (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) )))) ;) })) (expression_statement "iVar3 = 0xd;" (assignment_expression "iVar3 = 0xd" identifier = number_literal) ;) (expression_statement "pbVar5 = (byte *)"pass-through=";" (assignment_expression "pbVar5 = (byte *)"pass-through="" identifier = (cast_expression "(byte *)"pass-through="" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""pass-through="" " string_content "))) ;) (do_statement "do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);" do (compound_statement "{\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar7 = *pbVar4 == *pbVar5;" (assignment_expression "bVar7 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }" if (parenthesized_expression "((!bVar6 && !bVar7) == bVar6)" ( (binary_expression "(!bVar6 && !bVar7) == bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" ( (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*DAT_000849ec = puVar1;" (assignment_expression "*DAT_000849ec = puVar1" (pointer_expression "*DAT_000849ec" * identifier) = identifier) ;) (expression_statement "DAT_000849ec = puVar1;" (assignment_expression "DAT_000849ec = puVar1" identifier = identifier) ;) (expression_statement "*(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;" (assignment_expression "*(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1" (pointer_expression "*(int *)(DAT_000849f0 + 0x10)" * (cast_expression "(int *)(DAT_000849f0 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000849f0 + 0x10)" ( (binary_expression "DAT_000849f0 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_000849f0 + 0x10) + 1" (pointer_expression "*(int *)(DAT_000849f0 + 0x10)" * (cast_expression "(int *)(DAT_000849f0 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000849f0 + 0x10)" ( (binary_expression "DAT_000849f0 + 0x10" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint plugin_opt_plugin_arg(char *arg)\n\n{\n  plugin_arg_t *ppVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  if (last_plugin == (plugin_t *)0x0) {\n    error_plugin = (char *)dcgettext(0,"<no plugin>",5);\n    iVar2 = -1;\n  }\n  else {\n    if (*arg == '-') {\n      bVar5 = (byte)arg[1] < 0x2d;\n      bVar6 = arg[1] == 0x2d;\n      pbVar3 = (byte *)(arg + 2);\n      if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }\n      iVar2 = 0xd;\n      pbVar4 = (byte *)"pass-through=";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }\n    }\n    ppVar1 = (plugin_arg_t *)xmalloc(8);\n    ppVar1->arg = arg;\n    ppVar1->next = (plugin_arg *)0x0;\n    *last_plugin_args_tail_chain_ptr = ppVar1;\n    last_plugin_args_tail_chain_ptr = &ppVar1->next;\n    last_plugin->n_args = last_plugin->n_args + 1;\n    iVar2 = 0;\n  }\n  return iVar2;\n}\n\n" comment comment (function_definition "int plugin_opt_plugin_arg(char *arg)\n\n{\n  plugin_arg_t *ppVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  if (last_plugin == (plugin_t *)0x0) {\n    error_plugin = (char *)dcgettext(0,"<no plugin>",5);\n    iVar2 = -1;\n  }\n  else {\n    if (*arg == '-') {\n      bVar5 = (byte)arg[1] < 0x2d;\n      bVar6 = arg[1] == 0x2d;\n      pbVar3 = (byte *)(arg + 2);\n      if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }\n      iVar2 = 0xd;\n      pbVar4 = (byte *)"pass-through=";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }\n    }\n    ppVar1 = (plugin_arg_t *)xmalloc(8);\n    ppVar1->arg = arg;\n    ppVar1->next = (plugin_arg *)0x0;\n    *last_plugin_args_tail_chain_ptr = ppVar1;\n    last_plugin_args_tail_chain_ptr = &ppVar1->next;\n    last_plugin->n_args = last_plugin->n_args + 1;\n    iVar2 = 0;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "plugin_opt_plugin_arg(char *arg)" identifier (parameter_list "(char *arg)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  plugin_arg_t *ppVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  bool bVar5;\n  bool bVar6;\n  \n  if (last_plugin == (plugin_t *)0x0) {\n    error_plugin = (char *)dcgettext(0,"<no plugin>",5);\n    iVar2 = -1;\n  }\n  else {\n    if (*arg == '-') {\n      bVar5 = (byte)arg[1] < 0x2d;\n      bVar6 = arg[1] == 0x2d;\n      pbVar3 = (byte *)(arg + 2);\n      if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }\n      iVar2 = 0xd;\n      pbVar4 = (byte *)"pass-through=";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }\n    }\n    ppVar1 = (plugin_arg_t *)xmalloc(8);\n    ppVar1->arg = arg;\n    ppVar1->next = (plugin_arg *)0x0;\n    *last_plugin_args_tail_chain_ptr = ppVar1;\n    last_plugin_args_tail_chain_ptr = &ppVar1->next;\n    last_plugin->n_args = last_plugin->n_args + 1;\n    iVar2 = 0;\n  }\n  return iVar2;\n}" { (declaration "plugin_arg_t *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (if_statement "if (last_plugin == (plugin_t *)0x0) {\n    error_plugin = (char *)dcgettext(0,"<no plugin>",5);\n    iVar2 = -1;\n  }\n  else {\n    if (*arg == '-') {\n      bVar5 = (byte)arg[1] < 0x2d;\n      bVar6 = arg[1] == 0x2d;\n      pbVar3 = (byte *)(arg + 2);\n      if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }\n      iVar2 = 0xd;\n      pbVar4 = (byte *)"pass-through=";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }\n    }\n    ppVar1 = (plugin_arg_t *)xmalloc(8);\n    ppVar1->arg = arg;\n    ppVar1->next = (plugin_arg *)0x0;\n    *last_plugin_args_tail_chain_ptr = ppVar1;\n    last_plugin_args_tail_chain_ptr = &ppVar1->next;\n    last_plugin->n_args = last_plugin->n_args + 1;\n    iVar2 = 0;\n  }" if (parenthesized_expression "(last_plugin == (plugin_t *)0x0)" ( (binary_expression "last_plugin == (plugin_t *)0x0" identifier == (cast_expression "(plugin_t *)0x0" ( (type_descriptor "plugin_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    error_plugin = (char *)dcgettext(0,"<no plugin>",5);\n    iVar2 = -1;\n  }" { (expression_statement "error_plugin = (char *)dcgettext(0,"<no plugin>",5);" (assignment_expression "error_plugin = (char *)dcgettext(0,"<no plugin>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<no plugin>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<no plugin>",5)" identifier (argument_list "(0,"<no plugin>",5)" ( number_literal , (string_literal ""<no plugin>"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    if (*arg == '-') {\n      bVar5 = (byte)arg[1] < 0x2d;\n      bVar6 = arg[1] == 0x2d;\n      pbVar3 = (byte *)(arg + 2);\n      if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }\n      iVar2 = 0xd;\n      pbVar4 = (byte *)"pass-through=";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }\n    }\n    ppVar1 = (plugin_arg_t *)xmalloc(8);\n    ppVar1->arg = arg;\n    ppVar1->next = (plugin_arg *)0x0;\n    *last_plugin_args_tail_chain_ptr = ppVar1;\n    last_plugin_args_tail_chain_ptr = &ppVar1->next;\n    last_plugin->n_args = last_plugin->n_args + 1;\n    iVar2 = 0;\n  }" else (compound_statement "{\n    if (*arg == '-') {\n      bVar5 = (byte)arg[1] < 0x2d;\n      bVar6 = arg[1] == 0x2d;\n      pbVar3 = (byte *)(arg + 2);\n      if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }\n      iVar2 = 0xd;\n      pbVar4 = (byte *)"pass-through=";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }\n    }\n    ppVar1 = (plugin_arg_t *)xmalloc(8);\n    ppVar1->arg = arg;\n    ppVar1->next = (plugin_arg *)0x0;\n    *last_plugin_args_tail_chain_ptr = ppVar1;\n    last_plugin_args_tail_chain_ptr = &ppVar1->next;\n    last_plugin->n_args = last_plugin->n_args + 1;\n    iVar2 = 0;\n  }" { (if_statement "if (*arg == '-') {\n      bVar5 = (byte)arg[1] < 0x2d;\n      bVar6 = arg[1] == 0x2d;\n      pbVar3 = (byte *)(arg + 2);\n      if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }\n      iVar2 = 0xd;\n      pbVar4 = (byte *)"pass-through=";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(*arg == '-')" ( (binary_expression "*arg == '-'" (pointer_expression "*arg" * identifier) == (char_literal "'-'" ' character ')) )) (compound_statement "{\n      bVar5 = (byte)arg[1] < 0x2d;\n      bVar6 = arg[1] == 0x2d;\n      pbVar3 = (byte *)(arg + 2);\n      if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }\n      iVar2 = 0xd;\n      pbVar4 = (byte *)"pass-through=";\n      do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);\n      if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }\n    }" { (expression_statement "bVar5 = (byte)arg[1] < 0x2d;" (assignment_expression "bVar5 = (byte)arg[1] < 0x2d" identifier = (binary_expression "(byte)arg[1] < 0x2d" (cast_expression "(byte)arg[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "arg[1]" identifier [ number_literal ])) < number_literal)) ;) (expression_statement "bVar6 = arg[1] == 0x2d;" (assignment_expression "bVar6 = arg[1] == 0x2d" identifier = (binary_expression "arg[1] == 0x2d" (subscript_expression "arg[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar3 = (byte *)(arg + 2);" (assignment_expression "pbVar3 = (byte *)(arg + 2)" identifier = (cast_expression "(byte *)(arg + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 2)" ( (binary_expression "arg + 2" identifier + number_literal) )))) ;) (if_statement "if (!bVar6) {\n        pbVar3 = (byte *)(arg + 1);\n      }" if (parenthesized_expression "(!bVar6)" ( (unary_expression "!bVar6" ! identifier) )) (compound_statement "{\n        pbVar3 = (byte *)(arg + 1);\n      }" { (expression_statement "pbVar3 = (byte *)(arg + 1);" (assignment_expression "pbVar3 = (byte *)(arg + 1)" identifier = (cast_expression "(byte *)(arg + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 1)" ( (binary_expression "arg + 1" identifier + number_literal) )))) ;) })) (expression_statement "iVar2 = 0xd;" (assignment_expression "iVar2 = 0xd" identifier = number_literal) ;) (expression_statement "pbVar4 = (byte *)"pass-through=";" (assignment_expression "pbVar4 = (byte *)"pass-through="" identifier = (cast_expression "(byte *)"pass-through="" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""pass-through="" " string_content "))) ;) (do_statement "do {\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      } while (bVar6);" do (compound_statement "{\n        if (iVar2 == 0) break;\n        iVar2 = iVar2 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar6 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + 1;\n        pbVar4 = pbVar4 + 1;\n      }" { (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar6 = *pbVar3 == *pbVar4;" (assignment_expression "bVar6 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar6) == bVar5) {\n        return 0;\n      }" if (parenthesized_expression "((!bVar5 && !bVar6) == bVar5)" ( (binary_expression "(!bVar5 && !bVar6) == bVar5" (parenthesized_expression "(!bVar5 && !bVar6)" ( (binary_expression "!bVar5 && !bVar6" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "ppVar1 = (plugin_arg_t *)xmalloc(8);" (assignment_expression "ppVar1 = (plugin_arg_t *)xmalloc(8)" identifier = (cast_expression "(plugin_arg_t *)xmalloc(8)" ( (type_descriptor "plugin_arg_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "ppVar1->arg = arg;" (assignment_expression "ppVar1->arg = arg" (field_expression "ppVar1->arg" identifier -> field_identifier) = identifier) ;) (expression_statement "ppVar1->next = (plugin_arg *)0x0;" (assignment_expression "ppVar1->next = (plugin_arg *)0x0" (field_expression "ppVar1->next" identifier -> field_identifier) = (cast_expression "(plugin_arg *)0x0" ( (type_descriptor "plugin_arg *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*last_plugin_args_tail_chain_ptr = ppVar1;" (assignment_expression "*last_plugin_args_tail_chain_ptr = ppVar1" (pointer_expression "*last_plugin_args_tail_chain_ptr" * identifier) = identifier) ;) (expression_statement "last_plugin_args_tail_chain_ptr = &ppVar1->next;" (assignment_expression "last_plugin_args_tail_chain_ptr = &ppVar1->next" identifier = (pointer_expression "&ppVar1->next" & (field_expression "ppVar1->next" identifier -> field_identifier))) ;) (expression_statement "last_plugin->n_args = last_plugin->n_args + 1;" (assignment_expression "last_plugin->n_args = last_plugin->n_args + 1" (field_expression "last_plugin->n_args" identifier -> field_identifier) = (binary_expression "last_plugin->n_args + 1" (field_expression "last_plugin->n_args" identifier -> field_identifier) + number_literal)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_000360c0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000360c0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000360c0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (if_statement "if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" if (parenthesized_expression "(DAT_000849f0 == 0)" ( (binary_expression "DAT_000849f0 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "DAT_000849e4 = dcgettext(0,"<no plugin>",5);" (assignment_expression "DAT_000849e4 = dcgettext(0,"<no plugin>",5)" identifier = (call_expression "dcgettext(0,"<no plugin>",5)" identifier (argument_list "(0,"<no plugin>",5)" ( number_literal , (string_literal ""<no plugin>"" " string_content ") , number_literal )))) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" else (compound_statement "{\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" { (if_statement "if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }" if (parenthesized_expression "(*param_1 == '-')" ( (binary_expression "*param_1 == '-'" (pointer_expression "*param_1" * identifier) == (char_literal "'-'" ' character ')) )) (compound_statement "{\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }" { (expression_statement "bVar6 = (byte)param_1[1] < 0x2d;" (assignment_expression "bVar6 = (byte)param_1[1] < 0x2d" identifier = (binary_expression "(byte)param_1[1] < 0x2d" (cast_expression "(byte)param_1[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) < number_literal)) ;) (expression_statement "bVar7 = param_1[1] == 0x2d;" (assignment_expression "bVar7 = param_1[1] == 0x2d" identifier = (binary_expression "param_1[1] == 0x2d" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal)) ;) (expression_statement "pbVar4 = (byte *)(param_1 + 2);" (assignment_expression "pbVar4 = (byte *)(param_1 + 2)" identifier = (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (if_statement "if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n        pbVar4 = (byte *)(param_1 + 1);\n      }" { (expression_statement "pbVar4 = (byte *)(param_1 + 1);" (assignment_expression "pbVar4 = (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) )))) ;) })) (expression_statement "iVar3 = 0xd;" (assignment_expression "iVar3 = 0xd" identifier = number_literal) ;) (expression_statement "pbVar5 = (byte *)"pass-through=";" (assignment_expression "pbVar5 = (byte *)"pass-through="" identifier = (cast_expression "(byte *)"pass-through="" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""pass-through="" " string_content "))) ;) (do_statement "do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);" do (compound_statement "{\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      }" { (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar7 = *pbVar4 == *pbVar5;" (assignment_expression "bVar7 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }" if (parenthesized_expression "((!bVar6 && !bVar7) == bVar6)" ( (binary_expression "(!bVar6 && !bVar7) == bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" ( (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*DAT_000849ec = puVar1;" (assignment_expression "*DAT_000849ec = puVar1" (pointer_expression "*DAT_000849ec" * identifier) = identifier) ;) (expression_statement "DAT_000849ec = puVar1;" (assignment_expression "DAT_000849ec = puVar1" identifier = identifier) ;) (expression_statement "*(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;" (assignment_expression "*(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1" (pointer_expression "*(int *)(DAT_000849f0 + 0x10)" * (cast_expression "(int *)(DAT_000849f0 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000849f0 + 0x10)" ( (binary_expression "DAT_000849f0 + 0x10" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_000849f0 + 0x10) + 1" (pointer_expression "*(int *)(DAT_000849f0 + 0x10)" * (cast_expression "(int *)(DAT_000849f0 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000849f0 + 0x10)" ( (binary_expression "DAT_000849f0 + 0x10" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) == 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 ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000360c0(char *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_000360c0(char *param_1)" (identifier "FUN_000360c0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  bool bVar6;\n  bool bVar7;\n  \n  if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (if_statement "if (DAT_000849f0 == 0) {\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }\n  else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(DAT_000849f0 == 0)" (( "(") (binary_expression "DAT_000849f0 == 0" (identifier "DAT_000849f0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_000849e4 = dcgettext(0,"<no plugin>",5);\n    uVar2 = 0xffffffff;\n  }" ({ "{") (expression_statement "DAT_000849e4 = dcgettext(0,"<no plugin>",5);" (assignment_expression "DAT_000849e4 = dcgettext(0,"<no plugin>",5)" (identifier "DAT_000849e4") (= "=") (call_expression "dcgettext(0,"<no plugin>",5)" (identifier "dcgettext") (argument_list "(0,"<no plugin>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<no plugin>"" (" """) (string_content "<no plugin>") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" (else "else") (compound_statement "{\n    if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }\n    puVar1 = (undefined4 *)xmalloc(8);\n    puVar1[1] = param_1;\n    *puVar1 = 0;\n    *DAT_000849ec = puVar1;\n    DAT_000849ec = puVar1;\n    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;\n    uVar2 = 0;\n  }" ({ "{") (if_statement "if (*param_1 == '-') {\n      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\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      bVar6 = (byte)param_1[1] < 0x2d;\n      bVar7 = param_1[1] == 0x2d;\n      pbVar4 = (byte *)(param_1 + 2);\n      if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }\n      iVar3 = 0xd;\n      pbVar5 = (byte *)"pass-through=";\n      do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }\n    }" ({ "{") (expression_statement "bVar6 = (byte)param_1[1] < 0x2d;" (assignment_expression "bVar6 = (byte)param_1[1] < 0x2d" (identifier "bVar6") (= "=") (binary_expression "(byte)param_1[1] < 0x2d" (cast_expression "(byte)param_1[1]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (< "<") (number_literal "0x2d"))) (; ";")) (expression_statement "bVar7 = param_1[1] == 0x2d;" (assignment_expression "bVar7 = param_1[1] == 0x2d" (identifier "bVar7") (= "=") (binary_expression "param_1[1] == 0x2d" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0x2d"))) (; ";")) (expression_statement "pbVar4 = (byte *)(param_1 + 2);" (assignment_expression "pbVar4 = (byte *)(param_1 + 2)" (identifier "pbVar4") (= "=") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (!bVar7) {\n        pbVar4 = (byte *)(param_1 + 1);\n      }" (if "if") (parenthesized_expression "(!bVar7)" (( "(") (unary_expression "!bVar7" (! "!") (identifier "bVar7")) () ")")) (compound_statement "{\n        pbVar4 = (byte *)(param_1 + 1);\n      }" ({ "{") (expression_statement "pbVar4 = (byte *)(param_1 + 1);" (assignment_expression "pbVar4 = (byte *)(param_1 + 1)" (identifier "pbVar4") (= "=") (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")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar3 = 0xd;" (assignment_expression "iVar3 = 0xd" (identifier "iVar3") (= "=") (number_literal "0xd")) (; ";")) (expression_statement "pbVar5 = (byte *)"pass-through=";" (assignment_expression "pbVar5 = (byte *)"pass-through="" (identifier "pbVar5") (= "=") (cast_expression "(byte *)"pass-through="" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""pass-through="" (" """) (string_content "pass-through=") (" """)))) (; ";")) (do_statement "do {\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      } while (bVar7);" (do "do") (compound_statement "{\n        if (iVar3 == 0) break;\n        iVar3 = iVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + 1;\n        pbVar5 = pbVar5 + 1;\n      }" ({ "{") (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" (identifier "bVar6") (= "=") (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (< "<") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "bVar7 = *pbVar4 == *pbVar5;" (assignment_expression "bVar7 = *pbVar4 == *pbVar5" (identifier "bVar7") (= "=") (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (== "==") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (; ";")) (if_statement "if ((!bVar6 && !bVar7) == bVar6) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((!bVar6 && !bVar7) == bVar6)" (( "(") (binary_expression "(!bVar6 && !bVar7) == bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" (( "(") (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" (! "!") (identifier "bVar6")) (&& "&&") (unary_expression "!bVar7" (! "!") (identifier "bVar7"))) () ")")) (== "==") (identifier "bVar6")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar1 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*DAT_000849ec = puVar1;" (assignment_expression "*DAT_000849ec = puVar1" (pointer_expression "*DAT_000849ec" (* "*") (identifier "DAT_000849ec")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "DAT_000849ec = puVar1;" (assignment_expression "DAT_000849ec = puVar1" (identifier "DAT_000849ec") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;" (assignment_expression "*(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1" (pointer_expression "*(int *)(DAT_000849f0 + 0x10)" (* "*") (cast_expression "(int *)(DAT_000849f0 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000849f0 + 0x10)" (( "(") (binary_expression "DAT_000849f0 + 0x10" (identifier "DAT_000849f0") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "*(int *)(DAT_000849f0 + 0x10) + 1" (pointer_expression "*(int *)(DAT_000849f0 + 0x10)" (* "*") (cast_expression "(int *)(DAT_000849f0 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000849f0 + 0x10)" (( "(") (binary_expression "DAT_000849f0 + 0x10" (identifier "DAT_000849f0") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int function_1(char *var_3)

{
  type_1 *ppVar1;
  int var_4;
  type_2 *var_5;
  type_2 *var_6;
  bool var_7;
  bool bVar6;
  
  if (var_1 == (type_3 *)0x0) {
    error_plugin = (char *)var_2(0,"<no plugin>",5);
    var_4 = -1;
  }
  else {
    if (*var_3 == '-') {
      var_7 = (type_2)var_3[1] < 0x2d;
      bVar6 = var_3[1] == 0x2d;
      var_5 = (type_2 *)(var_3 + 2);
      if (!bVar6) {
        var_5 = (type_2 *)(var_3 + 1);
      }
      var_4 = 0xd;
      var_6 = (type_2 *)"pass-through=";
      do {
        if (var_4 == 0) break;
        var_4 = var_4 + -1;
        var_7 = *var_5 < *var_6;
        bVar6 = *var_5 == *var_6;
        var_5 = var_5 + 1;
        var_6 = var_6 + 1;
      } while (bVar6);
      if ((!var_7 && !bVar6) == var_7) {
        return 0;
      }
    }
    ppVar1 = (type_1 *)var_8(8);
    ppVar1->var_3 = var_3;
    ppVar1->next = (type_4 *)0x0;
    *last_plugin_args_tail_chain_ptr = ppVar1;
    last_plugin_args_tail_chain_ptr = &ppVar1->next;
    var_1->n_args = var_1->n_args + 1;
    var_4 = 0;
  }
  return var_4;
}


(translation_unit (function_definition type: (type_identifier) 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: (identifier)) (declaration type: (primitive_type) 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)) (if_statement condition: (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 (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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 (unary_expression argument: (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: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (string_literal (string_content))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (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 (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

undefined4 MASKED(char *param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  byte *pbVar4;
  byte *pbVar5;
  bool bVar6;
  bool bVar7;
  
  if (DAT_000849f0 == 0) {
    DAT_000849e4 = dcgettext(0,"<no plugin>",5);
    uVar2 = 0xffffffff;
  }
  else {
    if (*param_1 == '-') {
      bVar6 = (byte)param_1[1] < 0x2d;
      bVar7 = param_1[1] == 0x2d;
      pbVar4 = (byte *)(param_1 + 2);
      if (!bVar7) {
        pbVar4 = (byte *)(param_1 + 1);
      }
      iVar3 = 0xd;
      pbVar5 = (byte *)"pass-through=";
      do {
        if (iVar3 == 0) break;
        iVar3 = iVar3 + -1;
        bVar6 = *pbVar4 < *pbVar5;
        bVar7 = *pbVar4 == *pbVar5;
        pbVar4 = pbVar4 + 1;
        pbVar5 = pbVar5 + 1;
      } while (bVar7);
      if ((!bVar6 && !bVar7) == bVar6) {
        return 0;
      }
    }
    puVar1 = (undefined4 *)xmalloc(8);
    puVar1[1] = param_1;
    *puVar1 = 0;
    *DAT_000849ec = puVar1;
    DAT_000849ec = puVar1;
    *(int *)(DAT_000849f0 + 0x10) = *(int *)(DAT_000849f0 + 0x10) + 1;
    uVar2 = 0;
  }
  return uVar2;
}

