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

ptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)

{
  bool bVar1;
  int iVar2;
  size_t __n;
  int iVar3;
  size_t sVar4;
  char *__s1;
  int iVar5;
  char *__s2;
  int local_24;
  
  __n = strlen(arg);
  __s1 = *arglist;
  if (__s1 == (char *)0x0) {
    local_24 = -1;
    iVar5 = local_24;
  }
  else {
    bVar1 = false;
    iVar5 = 0;
    local_24 = -1;
    __s2 = vallist;
    do {
      iVar3 = strncmp(__s1,arg,__n);
      iVar2 = local_24;
      if (iVar3 == 0) {
        sVar4 = strlen(__s1);
        if (sVar4 == __n) {
          return iVar5;
        }
        iVar2 = iVar5;
        if (local_24 != -1) {
          if (vallist == (char *)0x0) {
            bVar1 = true;
            iVar2 = local_24;
          }
          else {
            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);
            iVar2 = local_24;
            if (iVar3 != 0) {
              bVar1 = true;
            }
          }
        }
      }
      local_24 = iVar2;
      iVar5 = iVar5 + 1;
      __s2 = __s2 + valsize;
      __s1 = arglist[iVar5];
    } while (__s1 != (char *)0x0);
    iVar5 = -2;
    if (!bVar1) {
      iVar5 = local_24;
    }
  }
  local_24 = iVar5;
  return local_24;
}



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

int FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)

{
  bool bVar1;
  int iVar2;
  size_t __n;
  int iVar3;
  size_t sVar4;
  char *__s1;
  int iVar5;
  void *__s2;
  int local_24;
  
  __n = strlen(param_1);
  __s1 = (char *)*param_2;
  if (__s1 == (char *)0x0) {
    local_24 = -1;
    iVar5 = local_24;
  }
  else {
    bVar1 = false;
    iVar5 = 0;
    local_24 = -1;
    __s2 = param_3;
    do {
      iVar3 = strncmp(__s1,param_1,__n);
      iVar2 = local_24;
      if (iVar3 == 0) {
        sVar4 = strlen(__s1);
        if (sVar4 == __n) {
          return iVar5;
        }
        iVar2 = iVar5;
        if (local_24 != -1) {
          if (param_3 == (void *)0x0) {
            bVar1 = true;
            iVar2 = local_24;
          }
          else {
            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);
            iVar2 = local_24;
            if (iVar3 != 0) {
              bVar1 = true;
            }
          }
        }
      }
      local_24 = iVar2;
      iVar5 = iVar5 + 1;
      __s2 = (void *)((int)__s2 + param_4);
      __s1 = (char *)param_2[iVar5];
    } while (__s1 != (char *)0x0);
    iVar5 = -2;
    if (!bVar1) {
      iVar5 = local_24;
    }
  }
  local_24 = iVar5;
  return local_24;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000147d0
ADD EBX,0xb8b7
SUB ESP,0x28
PUSH dword ptr [ESP + 0x3c]
CALL 0x000122d0
ADD ESP,0x10
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [EAX]
TEST EBP,EBP
JZ 0x0001c850
MOV EDI,dword ptr [ESP + 0x38]
MOV byte ptr [ESP + 0xf],0x0
XOR ESI,ESI
MOV dword ptr [ESP + 0x8],0xffffffff
JMP 0x0001c7d7
MOV EAX,dword ptr [ESP + 0x38]
TEST EAX,EAX
JZ 0x0001c810
SUB ESP,0x4
PUSH dword ptr [ESP + 0x40]
PUSH EDI
MOV EAX,dword ptr [ESP + 0x14]
IMUL EAX,dword ptr [ESP + 0x48]
ADD EAX,dword ptr [ESP + 0x44]
PUSH EAX
CALL 0x00012150
ADD ESP,0x10
MOVZX ECX,byte ptr [ESP + 0xf]
TEST EAX,EAX
MOV EAX,0x1
CMOVNZ ECX,EAX
MOV byte ptr [ESP + 0xf],CL
MOV EAX,dword ptr [ESP + 0x34]
ADD ESI,0x1
ADD EDI,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [EAX + ESI*0x4]
TEST EBP,EBP
JZ 0x0001c820
SUB ESP,0x4
PUSH dword ptr [ESP + 0x8]
PUSH dword ptr [ESP + 0x38]
PUSH EBP
CALL 0x00012470
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001c7c5
SUB ESP,0xc
PUSH EBP
CALL 0x000122d0
ADD ESP,0x10
CMP EAX,dword ptr [ESP + 0x4]
JZ 0x0001c840
CMP dword ptr [ESP + 0x8],-0x1
JNZ 0x0001c788
MOV dword ptr [ESP + 0x8],ESI
JMP 0x0001c7c5
MOV byte ptr [ESP + 0xf],0x1
JMP 0x0001c7c5
CMP byte ptr [ESP + 0xf],0x0
MOV EAX,0xfffffffe
CMOVZ EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],ESI
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],0xffffffff
JMP 0x0001c833
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  void *__s2;\n  int local_24;\n  \n  __n = strlen(param_1);\n  __s1 = (char *)*param_2;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}\n\n" comment (function_definition "int FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  void *__s2;\n  int local_24;\n  \n  __n = strlen(param_1);\n  __s1 = (char *)*param_2;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}" primitive_type (function_declarator "FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)" identifier (parameter_list "(char *param_1,int *param_2,void *param_3,size_t param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  void *__s2;\n  int local_24;\n  \n  __n = strlen(param_1);\n  __s1 = (char *)*param_2;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "__n = strlen(param_1);" (assignment_expression "__n = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_24 = -1;\n    iVar5 = local_24;\n  }" { (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" identifier = identifier) ;) }) (else_clause "else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" else (compound_statement "{\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (expression_statement "__s2 = param_3;" (assignment_expression "__s2 = param_3" identifier = identifier) ;) (do_statement "do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);" do (compound_statement "{\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    }" { (expression_statement "iVar3 = strncmp(__s1,param_1,__n);" (assignment_expression "iVar3 = strncmp(__s1,param_1,__n)" identifier = (call_expression "strncmp(__s1,param_1,__n)" identifier (argument_list "(__s1,param_1,__n)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" { (expression_statement "sVar4 = strlen(__s1);" (assignment_expression "sVar4 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;) (if_statement "if (sVar4 == __n) {\n          return iVar5;\n        }" if (parenthesized_expression "(sVar4 == __n)" ( (binary_expression "sVar4 == __n" identifier == identifier) )) (compound_statement "{\n          return iVar5;\n        }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar2 = iVar5;" (assignment_expression "iVar2 = iVar5" identifier = identifier) ;) (if_statement "if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" if (parenthesized_expression "(local_24 != -1)" ( (binary_expression "local_24 != -1" identifier != number_literal) )) (compound_statement "{\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" { (if_statement "if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" if (parenthesized_expression "(param_3 == (void *)0x0)" ( (binary_expression "param_3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            bVar1 = true;\n            iVar2 = local_24;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) }) (else_clause "else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" else (compound_statement "{\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" { (expression_statement "iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);" (assignment_expression "iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" identifier = (call_expression "memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" identifier (argument_list "((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" ( (cast_expression "(void *)(local_24 * param_4 + (int)param_3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 * param_4 + (int)param_3)" ( (binary_expression "local_24 * param_4 + (int)param_3" (binary_expression "local_24 * param_4" identifier * identifier) + (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier )))) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n              bVar1 = true;\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              bVar1 = true;\n            }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) })) })) (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" identifier = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "__s2 = (void *)((int)__s2 + param_4);" (assignment_expression "__s2 = (void *)((int)__s2 + param_4)" identifier = (cast_expression "(void *)((int)__s2 + param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s2 + param_4)" ( (binary_expression "(int)__s2 + param_4" (cast_expression "(int)__s2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "__s1 = (char *)param_2[iVar5];" (assignment_expression "__s1 = (char *)param_2[iVar5]" identifier = (cast_expression "(char *)param_2[iVar5]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[iVar5]" identifier [ identifier ]))) ;) }) while (parenthesized_expression "(__s1 != (char *)0x0)" ( (binary_expression "__s1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar5 = -2;" (assignment_expression "iVar5 = -2" identifier = number_literal) ;) (if_statement "if (!bVar1) {\n      iVar5 = local_24;\n    }" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (compound_statement "{\n      iVar5 = local_24;\n    }" { (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" identifier = identifier) ;) })) }))) (expression_statement "local_24 = iVar5;" (assignment_expression "local_24 = iVar5" identifier = identifier) ;) (return_statement "return local_24;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)\n\n{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  char *__s2;\n  int local_24;\n  \n  __n = strlen(arg);\n  __s1 = *arglist;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = vallist;\n    do {\n      iVar3 = strncmp(__s1,arg,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = __s2 + valsize;\n      __s1 = arglist[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}\n\n" comment comment (function_definition "ptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)\n\n{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  char *__s2;\n  int local_24;\n  \n  __n = strlen(arg);\n  __s1 = *arglist;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = vallist;\n    do {\n      iVar3 = strncmp(__s1,arg,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = __s2 + valsize;\n      __s1 = arglist[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}" primitive_type (function_declarator "argmatch(char *arg,char **arglist,char *vallist,size_t valsize)" identifier (parameter_list "(char *arg,char **arglist,char *vallist,size_t valsize)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "char **arglist" primitive_type (pointer_declarator "**arglist" * (pointer_declarator "*arglist" * identifier))) , (parameter_declaration "char *vallist" primitive_type (pointer_declarator "*vallist" * identifier)) , (parameter_declaration "size_t valsize" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  char *__s2;\n  int local_24;\n  \n  __n = strlen(arg);\n  __s1 = *arglist;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = vallist;\n    do {\n      iVar3 = strncmp(__s1,arg,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = __s2 + valsize;\n      __s1 = arglist[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "__n = strlen(arg);" (assignment_expression "__n = strlen(arg)" identifier = (call_expression "strlen(arg)" identifier (argument_list "(arg)" ( identifier )))) ;) (expression_statement "__s1 = *arglist;" (assignment_expression "__s1 = *arglist" identifier = (pointer_expression "*arglist" * identifier)) ;) (if_statement "if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = vallist;\n    do {\n      iVar3 = strncmp(__s1,arg,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = __s2 + valsize;\n      __s1 = arglist[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_24 = -1;\n    iVar5 = local_24;\n  }" { (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" identifier = identifier) ;) }) (else_clause "else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = vallist;\n    do {\n      iVar3 = strncmp(__s1,arg,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = __s2 + valsize;\n      __s1 = arglist[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" else (compound_statement "{\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = vallist;\n    do {\n      iVar3 = strncmp(__s1,arg,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = __s2 + valsize;\n      __s1 = arglist[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (expression_statement "__s2 = vallist;" (assignment_expression "__s2 = vallist" identifier = identifier) ;) (do_statement "do {\n      iVar3 = strncmp(__s1,arg,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = __s2 + valsize;\n      __s1 = arglist[iVar5];\n    } while (__s1 != (char *)0x0);" do (compound_statement "{\n      iVar3 = strncmp(__s1,arg,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = __s2 + valsize;\n      __s1 = arglist[iVar5];\n    }" { (expression_statement "iVar3 = strncmp(__s1,arg,__n);" (assignment_expression "iVar3 = strncmp(__s1,arg,__n)" identifier = (call_expression "strncmp(__s1,arg,__n)" identifier (argument_list "(__s1,arg,__n)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" { (expression_statement "sVar4 = strlen(__s1);" (assignment_expression "sVar4 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;) (if_statement "if (sVar4 == __n) {\n          return iVar5;\n        }" if (parenthesized_expression "(sVar4 == __n)" ( (binary_expression "sVar4 == __n" identifier == identifier) )) (compound_statement "{\n          return iVar5;\n        }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar2 = iVar5;" (assignment_expression "iVar2 = iVar5" identifier = identifier) ;) (if_statement "if (local_24 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" if (parenthesized_expression "(local_24 != -1)" ( (binary_expression "local_24 != -1" identifier != number_literal) )) (compound_statement "{\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" { (if_statement "if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" if (parenthesized_expression "(vallist == (char *)0x0)" ( (binary_expression "vallist == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            bVar1 = true;\n            iVar2 = local_24;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) }) (else_clause "else {\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" else (compound_statement "{\n            iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" { (expression_statement "iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize);" (assignment_expression "iVar3 = memcmp(vallist + local_24 * valsize,__s2,valsize)" identifier = (call_expression "memcmp(vallist + local_24 * valsize,__s2,valsize)" identifier (argument_list "(vallist + local_24 * valsize,__s2,valsize)" ( (binary_expression "vallist + local_24 * valsize" identifier + (binary_expression "local_24 * valsize" identifier * identifier)) , identifier , identifier )))) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n              bVar1 = true;\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              bVar1 = true;\n            }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) })) })) (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" identifier = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "__s2 = __s2 + valsize;" (assignment_expression "__s2 = __s2 + valsize" identifier = (binary_expression "__s2 + valsize" identifier + identifier)) ;) (expression_statement "__s1 = arglist[iVar5];" (assignment_expression "__s1 = arglist[iVar5]" identifier = (subscript_expression "arglist[iVar5]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(__s1 != (char *)0x0)" ( (binary_expression "__s1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar5 = -2;" (assignment_expression "iVar5 = -2" identifier = number_literal) ;) (if_statement "if (!bVar1) {\n      iVar5 = local_24;\n    }" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (compound_statement "{\n      iVar5 = local_24;\n    }" { (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" identifier = identifier) ;) })) }))) (expression_statement "local_24 = iVar5;" (assignment_expression "local_24 = iVar5" identifier = identifier) ;) (return_statement "return local_24;" return identifier ;) })))
(translation_unit "int FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  void *__s2;\n  int local_24;\n  \n  __n = strlen(param_1);\n  __s1 = (char *)*param_2;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}\n\n" (function_definition "int FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  void *__s2;\n  int local_24;\n  \n  __n = strlen(param_1);\n  __s1 = (char *)*param_2;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}" primitive_type (function_declarator "FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)" identifier (parameter_list "(char *param_1,int *param_2,void *param_3,size_t param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "void *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  void *__s2;\n  int local_24;\n  \n  __n = strlen(param_1);\n  __s1 = (char *)*param_2;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "__n = strlen(param_1);" (assignment_expression "__n = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" if (parenthesized_expression "(__s1 == (char *)0x0)" ( (binary_expression "__s1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_24 = -1;\n    iVar5 = local_24;\n  }" { (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" identifier = identifier) ;) }) (else_clause "else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" else (compound_statement "{\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (expression_statement "__s2 = param_3;" (assignment_expression "__s2 = param_3" identifier = identifier) ;) (do_statement "do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);" do (compound_statement "{\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    }" { (expression_statement "iVar3 = strncmp(__s1,param_1,__n);" (assignment_expression "iVar3 = strncmp(__s1,param_1,__n)" identifier = (call_expression "strncmp(__s1,param_1,__n)" identifier (argument_list "(__s1,param_1,__n)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" { (expression_statement "sVar4 = strlen(__s1);" (assignment_expression "sVar4 = strlen(__s1)" identifier = (call_expression "strlen(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;) (if_statement "if (sVar4 == __n) {\n          return iVar5;\n        }" if (parenthesized_expression "(sVar4 == __n)" ( (binary_expression "sVar4 == __n" identifier == identifier) )) (compound_statement "{\n          return iVar5;\n        }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar2 = iVar5;" (assignment_expression "iVar2 = iVar5" identifier = identifier) ;) (if_statement "if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" if (parenthesized_expression "(local_24 != -1)" ( (binary_expression "local_24 != -1" identifier != number_literal) )) (compound_statement "{\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" { (if_statement "if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" if (parenthesized_expression "(param_3 == (void *)0x0)" ( (binary_expression "param_3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            bVar1 = true;\n            iVar2 = local_24;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) }) (else_clause "else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" else (compound_statement "{\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" { (expression_statement "iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);" (assignment_expression "iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" identifier = (call_expression "memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" identifier (argument_list "((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" ( (cast_expression "(void *)(local_24 * param_4 + (int)param_3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 * param_4 + (int)param_3)" ( (binary_expression "local_24 * param_4 + (int)param_3" (binary_expression "local_24 * param_4" identifier * identifier) + (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , identifier )))) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n              bVar1 = true;\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              bVar1 = true;\n            }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) })) })) (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" identifier = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "__s2 = (void *)((int)__s2 + param_4);" (assignment_expression "__s2 = (void *)((int)__s2 + param_4)" identifier = (cast_expression "(void *)((int)__s2 + param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__s2 + param_4)" ( (binary_expression "(int)__s2 + param_4" (cast_expression "(int)__s2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "__s1 = (char *)param_2[iVar5];" (assignment_expression "__s1 = (char *)param_2[iVar5]" identifier = (cast_expression "(char *)param_2[iVar5]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[iVar5]" identifier [ identifier ]))) ;) }) while (parenthesized_expression "(__s1 != (char *)0x0)" ( (binary_expression "__s1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "iVar5 = -2;" (assignment_expression "iVar5 = -2" identifier = number_literal) ;) (if_statement "if (!bVar1) {\n      iVar5 = local_24;\n    }" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (compound_statement "{\n      iVar5 = local_24;\n    }" { (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" identifier = identifier) ;) })) }))) (expression_statement "local_24 = iVar5;" (assignment_expression "local_24 = iVar5" identifier = identifier) ;) (return_statement "return local_24;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) }))) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ IDENT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  void *__s2;\n  int local_24;\n  \n  __n = strlen(param_1);\n  __s1 = (char *)*param_2;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}" (primitive_type "int") (function_declarator "FUN_0001c740(char *param_1,int *param_2,void *param_3,size_t param_4)" (identifier "FUN_0001c740") (parameter_list "(char *param_1,int *param_2,void *param_3,size_t param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "void *param_3" (primitive_type "void") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "size_t param_4" (primitive_type "size_t") (identifier "param_4")) () ")"))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  size_t sVar4;\n  char *__s1;\n  int iVar5;\n  void *__s2;\n  int local_24;\n  \n  __n = strlen(param_1);\n  __s1 = (char *)*param_2;\n  if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }\n  local_24 = iVar5;\n  return local_24;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "char *__s1;" (primitive_type "char") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "void *__s2;" (primitive_type "void") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "__n = strlen(param_1);" (assignment_expression "__n = strlen(param_1)" (identifier "__n") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "__s1 = (char *)*param_2;" (assignment_expression "__s1 = (char *)*param_2" (identifier "__s1") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (__s1 == (char *)0x0) {\n    local_24 = -1;\n    iVar5 = local_24;\n  }\n  else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" (if "if") (parenthesized_expression "(__s1 == (char *)0x0)" (( "(") (binary_expression "__s1 == (char *)0x0" (identifier "__s1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_24 = -1;\n    iVar5 = local_24;\n  }" ({ "{") (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" (identifier "local_24") (= "=") (number_literal "-1")) (; ";")) (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" (identifier "iVar5") (= "=") (identifier "local_24")) (; ";")) (} "}")) (else_clause "else {\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" (else "else") (compound_statement "{\n    bVar1 = false;\n    iVar5 = 0;\n    local_24 = -1;\n    __s2 = param_3;\n    do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);\n    iVar5 = -2;\n    if (!bVar1) {\n      iVar5 = local_24;\n    }\n  }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" (identifier "local_24") (= "=") (number_literal "-1")) (; ";")) (expression_statement "__s2 = param_3;" (assignment_expression "__s2 = param_3" (identifier "__s2") (= "=") (identifier "param_3")) (; ";")) (do_statement "do {\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    } while (__s1 != (char *)0x0);" (do "do") (compound_statement "{\n      iVar3 = strncmp(__s1,param_1,__n);\n      iVar2 = local_24;\n      if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      local_24 = iVar2;\n      iVar5 = iVar5 + 1;\n      __s2 = (void *)((int)__s2 + param_4);\n      __s1 = (char *)param_2[iVar5];\n    }" ({ "{") (expression_statement "iVar3 = strncmp(__s1,param_1,__n);" (assignment_expression "iVar3 = strncmp(__s1,param_1,__n)" (identifier "iVar3") (= "=") (call_expression "strncmp(__s1,param_1,__n)" (identifier "strncmp") (argument_list "(__s1,param_1,__n)" (( "(") (identifier "__s1") (, ",") (identifier "param_1") (, ",") (identifier "__n") () ")")))) (; ";")) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" (identifier "iVar2") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (iVar3 == 0) {\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        sVar4 = strlen(__s1);\n        if (sVar4 == __n) {\n          return iVar5;\n        }\n        iVar2 = iVar5;\n        if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" ({ "{") (expression_statement "sVar4 = strlen(__s1);" (assignment_expression "sVar4 = strlen(__s1)" (identifier "sVar4") (= "=") (call_expression "strlen(__s1)" (identifier "strlen") (argument_list "(__s1)" (( "(") (identifier "__s1") () ")")))) (; ";")) (if_statement "if (sVar4 == __n) {\n          return iVar5;\n        }" (if "if") (parenthesized_expression "(sVar4 == __n)" (( "(") (binary_expression "sVar4 == __n" (identifier "sVar4") (== "==") (identifier "__n")) () ")")) (compound_statement "{\n          return iVar5;\n        }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "iVar2 = iVar5;" (assignment_expression "iVar2 = iVar5" (identifier "iVar2") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (local_24 != -1) {\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" (if "if") (parenthesized_expression "(local_24 != -1)" (( "(") (binary_expression "local_24 != -1" (identifier "local_24") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n          if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" ({ "{") (if_statement "if (param_3 == (void *)0x0) {\n            bVar1 = true;\n            iVar2 = local_24;\n          }\n          else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" (if "if") (parenthesized_expression "(param_3 == (void *)0x0)" (( "(") (binary_expression "param_3 == (void *)0x0" (identifier "param_3") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            bVar1 = true;\n            iVar2 = local_24;\n          }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" (identifier "iVar2") (= "=") (identifier "local_24")) (; ";")) (} "}")) (else_clause "else {\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" (else "else") (compound_statement "{\n            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);\n            iVar2 = local_24;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" ({ "{") (expression_statement "iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);" (assignment_expression "iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" (identifier "iVar3") (= "=") (call_expression "memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" (identifier "memcmp") (argument_list "((void *)(local_24 * param_4 + (int)param_3),__s2,param_4)" (( "(") (cast_expression "(void *)(local_24 * param_4 + (int)param_3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 * param_4 + (int)param_3)" (( "(") (binary_expression "local_24 * param_4 + (int)param_3" (binary_expression "local_24 * param_4" (identifier "local_24") (* "*") (identifier "param_4")) (+ "+") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")"))) (, ",") (identifier "__s2") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" (identifier "iVar2") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (iVar3 != 0) {\n              bVar1 = true;\n            }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              bVar1 = true;\n            }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}"))) (expression_statement "local_24 = iVar2;" (assignment_expression "local_24 = iVar2" (identifier "local_24") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__s2 = (void *)((int)__s2 + param_4);" (assignment_expression "__s2 = (void *)((int)__s2 + param_4)" (identifier "__s2") (= "=") (cast_expression "(void *)((int)__s2 + param_4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__s2 + param_4)" (( "(") (binary_expression "(int)__s2 + param_4" (cast_expression "(int)__s2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s2")) (+ "+") (identifier "param_4")) () ")")))) (; ";")) (expression_statement "__s1 = (char *)param_2[iVar5];" (assignment_expression "__s1 = (char *)param_2[iVar5]" (identifier "__s1") (= "=") (cast_expression "(char *)param_2[iVar5]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[iVar5]" (identifier "param_2") ([ "[") (identifier "iVar5") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__s1 != (char *)0x0)" (( "(") (binary_expression "__s1 != (char *)0x0" (identifier "__s1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "iVar5 = -2;" (assignment_expression "iVar5 = -2" (identifier "iVar5") (= "=") (number_literal "-2")) (; ";")) (if_statement "if (!bVar1) {\n      iVar5 = local_24;\n    }" (if "if") (parenthesized_expression "(!bVar1)" (( "(") (unary_expression "!bVar1" (! "!") (identifier "bVar1")) () ")")) (compound_statement "{\n      iVar5 = local_24;\n    }" ({ "{") (expression_statement "iVar5 = local_24;" (assignment_expression "iVar5 = local_24" (identifier "iVar5") (= "=") (identifier "local_24")) (; ";")) (} "}"))) (} "}")))) (expression_statement "local_24 = iVar5;" (assignment_expression "local_24 = iVar5" (identifier "local_24") (= "=") (identifier "iVar5")) (; ";")) (return_statement "return local_24;" (return "return") (identifier "local_24") (; ";")) (} "}")))

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

ptrdiff_t function_1(char *arg,char **arglist,char *var_8,size_t var_10)

{
  bool bVar1;
  int iVar2;
  size_t var_6;
  int var_4;
  size_t var_5;
  char *var_2;
  int var_11;
  char *var_12;
  int var_7;
  
  var_6 = var_1(arg);
  var_2 = *arglist;
  if (var_2 == (char *)0x0) {
    var_7 = -1;
    var_11 = var_7;
  }
  else {
    bVar1 = false;
    var_11 = 0;
    var_7 = -1;
    var_12 = var_8;
    do {
      var_4 = var_3(var_2,arg,var_6);
      iVar2 = var_7;
      if (var_4 == 0) {
        var_5 = var_1(var_2);
        if (var_5 == var_6) {
          return var_11;
        }
        iVar2 = var_11;
        if (var_7 != -1) {
          if (var_8 == (char *)0x0) {
            bVar1 = true;
            iVar2 = var_7;
          }
          else {
            var_4 = var_9(var_8 + var_7 * var_10,var_12,var_10);
            iVar2 = var_7;
            if (var_4 != 0) {
              bVar1 = true;
            }
          }
        }
      }
      var_7 = iVar2;
      var_11 = var_11 + 1;
      var_12 = var_12 + var_10;
      var_2 = arglist[var_11];
    } while (var_2 != (char *)0x0);
    var_11 = -2;
    if (!bVar1) {
      var_11 = var_7;
    }
  }
  var_7 = var_11;
  return var_7;
}


(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))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true)))))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_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: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement (identifier)))))

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

int MASKED(char *param_1,int *param_2,void *param_3,size_t param_4)

{
  bool bVar1;
  int iVar2;
  size_t __n;
  int iVar3;
  size_t sVar4;
  char *__s1;
  int iVar5;
  void *__s2;
  int local_24;
  
  __n = strlen(param_1);
  __s1 = (char *)*param_2;
  if (__s1 == (char *)0x0) {
    local_24 = -1;
    iVar5 = local_24;
  }
  else {
    bVar1 = false;
    iVar5 = 0;
    local_24 = -1;
    __s2 = param_3;
    do {
      iVar3 = strncmp(__s1,param_1,__n);
      iVar2 = local_24;
      if (iVar3 == 0) {
        sVar4 = strlen(__s1);
        if (sVar4 == __n) {
          return iVar5;
        }
        iVar2 = iVar5;
        if (local_24 != -1) {
          if (param_3 == (void *)0x0) {
            bVar1 = true;
            iVar2 = local_24;
          }
          else {
            iVar3 = memcmp((void *)(local_24 * param_4 + (int)param_3),__s2,param_4);
            iVar2 = local_24;
            if (iVar3 != 0) {
              bVar1 = true;
            }
          }
        }
      }
      local_24 = iVar2;
      iVar5 = iVar5 + 1;
      __s2 = (void *)((int)__s2 + param_4);
      __s1 = (char *)param_2[iVar5];
    } while (__s1 != (char *)0x0);
    iVar5 = -2;
    if (!bVar1) {
      iVar5 = local_24;
    }
  }
  local_24 = iVar5;
  return local_24;
}

