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

void instrFunc(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  byte bVar1;
  bool bVar2;
  byte *pbVar3;
  byte *__s1;
  int iVar4;
  int iVar5;
  byte *pbVar6;
  size_t __n;
  byte *pbVar7;
  byte *local_24;
  
  iVar4 = sqlite3_value_type(*argv);
  iVar5 = sqlite3_value_type(argv[1]);
  if ((iVar4 != 5) && (iVar5 != 5)) {
    pbVar6 = (byte *)sqlite3_value_bytes(*argv);
    __n = sqlite3_value_bytes(argv[1]);
    if ((int)__n < 1) {
      iVar4 = 1;
    }
    else {
      if ((iVar4 == 4) && (iVar5 == 4)) {
        pbVar7 = (byte *)sqlite3_value_blob(*argv);
        bVar2 = false;
        local_24 = (byte *)sqlite3_value_blob(argv[1]);
      }
      else {
        pbVar7 = sqlite3_value_text(*argv);
        bVar2 = true;
        local_24 = sqlite3_value_text(argv[1]);
      }
      if (local_24 == (byte *)0x0) {
        return;
      }
      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {
        return;
      }
      iVar4 = 1;
      bVar1 = *local_24;
joined_r0x0004ea2f:
      __s1 = pbVar7;
      pbVar3 = pbVar6;
      if ((int)__n <= (int)pbVar3) {
        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {
          if ((int)pbVar3 < (int)__n) {
            iVar4 = 0;
          }
          goto LAB_0004ea6c;
        }
        iVar4 = iVar4 + 1;
        pbVar7 = __s1;
        do {
          iVar5 = -1 - (int)pbVar7;
          pbVar7 = pbVar7 + 1;
          pbVar6 = __s1 + (int)(pbVar3 + iVar5);
          if (!bVar2) break;
        } while ((*pbVar7 & 0xc0) == 0x80);
        goto joined_r0x0004ea2f;
      }
      iVar4 = 0;
    }
LAB_0004ea6c:
    sqlite3_result_int(context,iVar4);
  }
  return;
}



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

void FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  byte bVar1;
  bool bVar2;
  byte *pbVar3;
  byte *__s1;
  int iVar4;
  int iVar5;
  byte *pbVar6;
  size_t __n;
  byte *pbVar7;
  byte *local_24;
  
  iVar4 = FUN_0001ba50(*param_3);
  iVar5 = FUN_0001ba50(param_3[1]);
  if ((iVar4 != 5) && (iVar5 != 5)) {
    pbVar6 = (byte *)FUN_0004ccb0(*param_3);
    __n = FUN_0004ccb0(param_3[1]);
    if ((int)__n < 1) {
      iVar4 = 1;
    }
    else {
      if ((iVar4 == 4) && (iVar5 == 4)) {
        pbVar7 = (byte *)FUN_0004ceb0(*param_3);
        bVar2 = false;
        local_24 = (byte *)FUN_0004ceb0(param_3[1]);
      }
      else {
        pbVar7 = (byte *)FUN_0004ce60(*param_3);
        bVar2 = true;
        local_24 = (byte *)FUN_0004ce60(param_3[1]);
      }
      if (local_24 == (byte *)0x0) {
        return;
      }
      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {
        return;
      }
      iVar4 = 1;
      bVar1 = *local_24;
joined_r0x0004ea2f:
      __s1 = pbVar7;
      pbVar3 = pbVar6;
      if ((int)__n <= (int)pbVar3) {
        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {
          if ((int)pbVar3 < (int)__n) {
            iVar4 = 0;
          }
          goto LAB_0004ea6c;
        }
        iVar4 = iVar4 + 1;
        pbVar7 = __s1;
        do {
          iVar5 = -1 - (int)pbVar7;
          pbVar7 = pbVar7 + 1;
          pbVar6 = __s1 + (int)(pbVar3 + iVar5);
          if (!bVar2) break;
        } while ((*pbVar7 & 0xc0) == 0x80);
        goto joined_r0x0004ea2f;
      }
      iVar4 = 0;
    }
LAB_0004ea6c:
    FUN_00024f80(param_1,iVar4);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xfa55b
SUB ESP,0x28
MOV EBP,dword ptr [ESP + 0x44]
PUSH dword ptr [EBP]
CALL 0x0001ba50
MOV ESI,EAX
POP EAX
PUSH dword ptr [EBP + 0x4]
CALL 0x0001ba50
ADD ESP,0x10
CMP ESI,0x5
JZ 0x0004ea7c
CMP EAX,0x5
MOV dword ptr [ESP + 0x4],EAX
JZ 0x0004ea7c
SUB ESP,0xc
PUSH dword ptr [EBP]
CALL 0x0004ccb0
MOV EDI,EAX
POP EAX
PUSH dword ptr [EBP + 0x4]
CALL 0x0004ccb0
MOV dword ptr [ESP + 0x10],EAX
ADD ESP,0x10
TEST EAX,EAX
JLE 0x0004eadc
MOV EAX,dword ptr [EBP]
CMP ESI,0x4
JNZ 0x0004e9ec
MOV EDX,dword ptr [ESP + 0x4]
CMP EDX,0x4
JZ 0x0004ea84
SUB ESP,0xc
PUSH EAX
CALL 0x0004ce60
POP EDX
PUSH dword ptr [EBP + 0x4]
MOV EBP,0x1
MOV ESI,EAX
CALL 0x0004ce60
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0004ea7c
TEST EDI,EDI
JZ 0x0004ea1c
TEST ESI,ESI
JZ 0x0004ea7c
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,0x1
MOVZX EAX,byte ptr [EAX]
MOV byte ptr [ESP + 0x4],AL
CMP EDI,dword ptr [ESP]
JL 0x0004ea6a
LEA ESI,[ESI]
MOVZX EAX,byte ptr [ESP + 0x4]
CMP byte ptr [ESI],AL
JZ 0x0004eab0
ADD EDX,0x1
LEA ECX,[ESI + EDI*0x1 + -0x1]
JMP 0x0004ea5a
MOVZX EAX,byte ptr [ESI]
AND EAX,0xffffffc0
CMP AL,0x80
JNZ 0x0004ea65
MOV EDI,ECX
SUB EDI,ESI
ADD ESI,0x1
TEST EBP,EBP
JNZ 0x0004ea50
CMP dword ptr [ESP],EDI
JLE 0x0004ea38
XOR EDX,EDX
SUB ESP,0x8
PUSH EDX
PUSH dword ptr [ESP + 0x3c]
CALL 0x00024f80
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EAX
CALL 0x0004ceb0
POP ECX
PUSH dword ptr [EBP + 0x4]
XOR EBP,EBP
MOV ESI,EAX
CALL 0x0004ceb0
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
JMP 0x0004ea0c
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x4
PUSH dword ptr [ESP + 0x4]
PUSH dword ptr [ESP + 0x10]
PUSH ESI
CALL 0x00014110
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x0004ea41
CMP dword ptr [ESP],EDI
CMOVG EDX,EAX
JMP 0x0004ea6c
MOV EDX,0x1
JMP 0x0004ea6c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = FUN_0001ba50(*param_3);\n  iVar5 = FUN_0001ba50(param_3[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = FUN_0001ba50(*param_3);\n  iVar5 = FUN_0001ba50(param_3[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = FUN_0001ba50(*param_3);\n  iVar5 = FUN_0001ba50(param_3[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "iVar4 = FUN_0001ba50(*param_3);" (assignment_expression "iVar4 = FUN_0001ba50(*param_3)" identifier = (call_expression "FUN_0001ba50(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "iVar5 = FUN_0001ba50(param_3[1]);" (assignment_expression "iVar5 = FUN_0001ba50(param_3[1])" identifier = (call_expression "FUN_0001ba50(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }" if (parenthesized_expression "((iVar4 != 5) && (iVar5 != 5))" ( (binary_expression "(iVar4 != 5) && (iVar5 != 5)" (parenthesized_expression "(iVar4 != 5)" ( (binary_expression "iVar4 != 5" identifier != number_literal) )) && (parenthesized_expression "(iVar5 != 5)" ( (binary_expression "iVar5 != 5" identifier != number_literal) ))) )) (compound_statement "{\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }" { (expression_statement "pbVar6 = (byte *)FUN_0004ccb0(*param_3);" (assignment_expression "pbVar6 = (byte *)FUN_0004ccb0(*param_3)" identifier = (cast_expression "(byte *)FUN_0004ccb0(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ccb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "__n = FUN_0004ccb0(param_3[1]);" (assignment_expression "__n = FUN_0004ccb0(param_3[1])" identifier = (call_expression "FUN_0004ccb0(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" if (parenthesized_expression "((int)__n < 1)" ( (binary_expression "(int)__n < 1" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar4 = 1;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" else (compound_statement "{\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" { (if_statement "if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" if (parenthesized_expression "((iVar4 == 4) && (iVar5 == 4))" ( (binary_expression "(iVar4 == 4) && (iVar5 == 4)" (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) && (parenthesized_expression "(iVar5 == 4)" ( (binary_expression "iVar5 == 4" identifier == number_literal) ))) )) (compound_statement "{\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }" { (expression_statement "pbVar7 = (byte *)FUN_0004ceb0(*param_3);" (assignment_expression "pbVar7 = (byte *)FUN_0004ceb0(*param_3)" identifier = (cast_expression "(byte *)FUN_0004ceb0(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "local_24 = (byte *)FUN_0004ceb0(param_3[1]);" (assignment_expression "local_24 = (byte *)FUN_0004ceb0(param_3[1])" identifier = (cast_expression "(byte *)FUN_0004ceb0(param_3[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) }) (else_clause "else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" else (compound_statement "{\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" { (expression_statement "pbVar7 = (byte *)FUN_0004ce60(*param_3);" (assignment_expression "pbVar7 = (byte *)FUN_0004ce60(*param_3)" identifier = (cast_expression "(byte *)FUN_0004ce60(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ce60(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "local_24 = (byte *)FUN_0004ce60(param_3[1]);" (assignment_expression "local_24 = (byte *)FUN_0004ce60(param_3[1])" identifier = (cast_expression "(byte *)FUN_0004ce60(param_3[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ce60(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) }))) (if_statement "if (local_24 == (byte *)0x0) {\n        return;\n      }" if (parenthesized_expression "(local_24 == (byte *)0x0)" ( (binary_expression "local_24 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }" if (parenthesized_expression "((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0))" ( (binary_expression "(pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)" (parenthesized_expression "(pbVar6 != (byte *)0x0)" ( (binary_expression "pbVar6 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pbVar7 == (byte *)0x0)" ( (binary_expression "pbVar7 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "bVar1 = *local_24;" (assignment_expression "bVar1 = *local_24" identifier = (pointer_expression "*local_24" * identifier)) ;) (labeled_statement "joined_r0x0004ea2f:\n      __s1 = pbVar7;" statement_identifier : (expression_statement "__s1 = pbVar7;" (assignment_expression "__s1 = pbVar7" identifier = identifier) ;)) (expression_statement "pbVar3 = pbVar6;" (assignment_expression "pbVar3 = pbVar6" identifier = identifier) ;) (if_statement "if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }" if (parenthesized_expression "((int)__n <= (int)pbVar3)" ( (binary_expression "(int)__n <= (int)pbVar3" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }" { (if_statement "if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }" if (parenthesized_expression "((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0))" ( (binary_expression "(*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)" (parenthesized_expression "(*__s1 == bVar1)" ( (binary_expression "*__s1 == bVar1" (pointer_expression "*__s1" * identifier) == identifier) )) && (parenthesized_expression "(iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)" ( (comma_expression "iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0" (assignment_expression "iVar5 = memcmp(__s1,local_24,__n)" identifier = (call_expression "memcmp(__s1,local_24,__n)" identifier (argument_list "(__s1,local_24,__n)" ( identifier , identifier , identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }" { (if_statement "if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }" if (parenthesized_expression "((int)pbVar3 < (int)__n)" ( (binary_expression "(int)pbVar3 < (int)__n" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            iVar4 = 0;\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_0004ea6c;" goto statement_identifier ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = __s1;" (assignment_expression "pbVar7 = __s1" identifier = identifier) ;) (do_statement "do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);" do (compound_statement "{\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        }" { (expression_statement "iVar5 = -1 - (int)pbVar7;" (assignment_expression "iVar5 = -1 - (int)pbVar7" identifier = (binary_expression "-1 - (int)pbVar7" number_literal - (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = __s1 + (int)(pbVar3 + iVar5);" (assignment_expression "pbVar6 = __s1 + (int)(pbVar3 + iVar5)" identifier = (binary_expression "__s1 + (int)(pbVar3 + iVar5)" identifier + (cast_expression "(int)(pbVar3 + iVar5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar3 + iVar5)" ( (binary_expression "pbVar3 + iVar5" identifier + identifier) ))))) ;) (if_statement "if (!bVar2) break;" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*pbVar7 & 0xc0) == 0x80)" ( (binary_expression "(*pbVar7 & 0xc0) == 0x80" (parenthesized_expression "(*pbVar7 & 0xc0)" ( (binary_expression "*pbVar7 & 0xc0" (pointer_expression "*pbVar7" * identifier) & number_literal) )) == number_literal) )) ;) (goto_statement "goto joined_r0x0004ea2f;" goto statement_identifier ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);" statement_identifier : (expression_statement "FUN_00024f80(param_1,iVar4);" (call_expression "FUN_00024f80(param_1,iVar4)" identifier (argument_list "(param_1,iVar4)" ( identifier , identifier ))) ;)) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid instrFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = sqlite3_value_type(*argv);\n  iVar5 = sqlite3_value_type(argv[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)sqlite3_value_bytes(*argv);\n    __n = sqlite3_value_bytes(argv[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    sqlite3_result_int(context,iVar4);\n  }\n  return;\n}\n\n" comment comment (function_definition "void instrFunc(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = sqlite3_value_type(*argv);\n  iVar5 = sqlite3_value_type(argv[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)sqlite3_value_bytes(*argv);\n    __n = sqlite3_value_bytes(argv[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    sqlite3_result_int(context,iVar4);\n  }\n  return;\n}" primitive_type (function_declarator "instrFunc(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = sqlite3_value_type(*argv);\n  iVar5 = sqlite3_value_type(argv[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)sqlite3_value_bytes(*argv);\n    __n = sqlite3_value_bytes(argv[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    sqlite3_result_int(context,iVar4);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "iVar4 = sqlite3_value_type(*argv);" (assignment_expression "iVar4 = sqlite3_value_type(*argv)" identifier = (call_expression "sqlite3_value_type(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (expression_statement "iVar5 = sqlite3_value_type(argv[1]);" (assignment_expression "iVar5 = sqlite3_value_type(argv[1])" identifier = (call_expression "sqlite3_value_type(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)sqlite3_value_bytes(*argv);\n    __n = sqlite3_value_bytes(argv[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    sqlite3_result_int(context,iVar4);\n  }" if (parenthesized_expression "((iVar4 != 5) && (iVar5 != 5))" ( (binary_expression "(iVar4 != 5) && (iVar5 != 5)" (parenthesized_expression "(iVar4 != 5)" ( (binary_expression "iVar4 != 5" identifier != number_literal) )) && (parenthesized_expression "(iVar5 != 5)" ( (binary_expression "iVar5 != 5" identifier != number_literal) ))) )) (compound_statement "{\n    pbVar6 = (byte *)sqlite3_value_bytes(*argv);\n    __n = sqlite3_value_bytes(argv[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    sqlite3_result_int(context,iVar4);\n  }" { (expression_statement "pbVar6 = (byte *)sqlite3_value_bytes(*argv);" (assignment_expression "pbVar6 = (byte *)sqlite3_value_bytes(*argv)" identifier = (cast_expression "(byte *)sqlite3_value_bytes(*argv)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_bytes(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) ))))) ;) (expression_statement "__n = sqlite3_value_bytes(argv[1]);" (assignment_expression "__n = sqlite3_value_bytes(argv[1])" identifier = (call_expression "sqlite3_value_bytes(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" if (parenthesized_expression "((int)__n < 1)" ( (binary_expression "(int)__n < 1" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar4 = 1;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" else (compound_statement "{\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" { (if_statement "if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }\n      else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }" if (parenthesized_expression "((iVar4 == 4) && (iVar5 == 4))" ( (binary_expression "(iVar4 == 4) && (iVar5 == 4)" (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) && (parenthesized_expression "(iVar5 == 4)" ( (binary_expression "iVar5 == 4" identifier == number_literal) ))) )) (compound_statement "{\n        pbVar7 = (byte *)sqlite3_value_blob(*argv);\n        bVar2 = false;\n        local_24 = (byte *)sqlite3_value_blob(argv[1]);\n      }" { (expression_statement "pbVar7 = (byte *)sqlite3_value_blob(*argv);" (assignment_expression "pbVar7 = (byte *)sqlite3_value_blob(*argv)" identifier = (cast_expression "(byte *)sqlite3_value_blob(*argv)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_blob(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "local_24 = (byte *)sqlite3_value_blob(argv[1]);" (assignment_expression "local_24 = (byte *)sqlite3_value_blob(argv[1])" identifier = (cast_expression "(byte *)sqlite3_value_blob(argv[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_blob(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) ))))) ;) }) (else_clause "else {\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }" else (compound_statement "{\n        pbVar7 = sqlite3_value_text(*argv);\n        bVar2 = true;\n        local_24 = sqlite3_value_text(argv[1]);\n      }" { (expression_statement "pbVar7 = sqlite3_value_text(*argv);" (assignment_expression "pbVar7 = sqlite3_value_text(*argv)" identifier = (call_expression "sqlite3_value_text(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "local_24 = sqlite3_value_text(argv[1]);" (assignment_expression "local_24 = sqlite3_value_text(argv[1])" identifier = (call_expression "sqlite3_value_text(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) }))) (if_statement "if (local_24 == (byte *)0x0) {\n        return;\n      }" if (parenthesized_expression "(local_24 == (byte *)0x0)" ( (binary_expression "local_24 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }" if (parenthesized_expression "((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0))" ( (binary_expression "(pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)" (parenthesized_expression "(pbVar6 != (byte *)0x0)" ( (binary_expression "pbVar6 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pbVar7 == (byte *)0x0)" ( (binary_expression "pbVar7 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "bVar1 = *local_24;" (assignment_expression "bVar1 = *local_24" identifier = (pointer_expression "*local_24" * identifier)) ;) (labeled_statement "joined_r0x0004ea2f:\n      __s1 = pbVar7;" statement_identifier : (expression_statement "__s1 = pbVar7;" (assignment_expression "__s1 = pbVar7" identifier = identifier) ;)) (expression_statement "pbVar3 = pbVar6;" (assignment_expression "pbVar3 = pbVar6" identifier = identifier) ;) (if_statement "if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }" if (parenthesized_expression "((int)__n <= (int)pbVar3)" ( (binary_expression "(int)__n <= (int)pbVar3" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }" { (if_statement "if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }" if (parenthesized_expression "((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0))" ( (binary_expression "(*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)" (parenthesized_expression "(*__s1 == bVar1)" ( (binary_expression "*__s1 == bVar1" (pointer_expression "*__s1" * identifier) == identifier) )) && (parenthesized_expression "(iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)" ( (comma_expression "iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0" (assignment_expression "iVar5 = memcmp(__s1,local_24,__n)" identifier = (call_expression "memcmp(__s1,local_24,__n)" identifier (argument_list "(__s1,local_24,__n)" ( identifier , identifier , identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }" { (if_statement "if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }" if (parenthesized_expression "((int)pbVar3 < (int)__n)" ( (binary_expression "(int)pbVar3 < (int)__n" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            iVar4 = 0;\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_0004ea6c;" goto statement_identifier ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = __s1;" (assignment_expression "pbVar7 = __s1" identifier = identifier) ;) (do_statement "do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);" do (compound_statement "{\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        }" { (expression_statement "iVar5 = -1 - (int)pbVar7;" (assignment_expression "iVar5 = -1 - (int)pbVar7" identifier = (binary_expression "-1 - (int)pbVar7" number_literal - (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = __s1 + (int)(pbVar3 + iVar5);" (assignment_expression "pbVar6 = __s1 + (int)(pbVar3 + iVar5)" identifier = (binary_expression "__s1 + (int)(pbVar3 + iVar5)" identifier + (cast_expression "(int)(pbVar3 + iVar5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar3 + iVar5)" ( (binary_expression "pbVar3 + iVar5" identifier + identifier) ))))) ;) (if_statement "if (!bVar2) break;" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*pbVar7 & 0xc0) == 0x80)" ( (binary_expression "(*pbVar7 & 0xc0) == 0x80" (parenthesized_expression "(*pbVar7 & 0xc0)" ( (binary_expression "*pbVar7 & 0xc0" (pointer_expression "*pbVar7" * identifier) & number_literal) )) == number_literal) )) ;) (goto_statement "goto joined_r0x0004ea2f;" goto statement_identifier ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0004ea6c:\n    sqlite3_result_int(context,iVar4);" statement_identifier : (expression_statement "sqlite3_result_int(context,iVar4);" (call_expression "sqlite3_result_int(context,iVar4)" identifier (argument_list "(context,iVar4)" ( identifier , identifier ))) ;)) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = FUN_0001ba50(*param_3);\n  iVar5 = FUN_0001ba50(param_3[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = FUN_0001ba50(*param_3);\n  iVar5 = FUN_0001ba50(param_3[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = FUN_0001ba50(*param_3);\n  iVar5 = FUN_0001ba50(param_3[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "iVar4 = FUN_0001ba50(*param_3);" (assignment_expression "iVar4 = FUN_0001ba50(*param_3)" identifier = (call_expression "FUN_0001ba50(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "iVar5 = FUN_0001ba50(param_3[1]);" (assignment_expression "iVar5 = FUN_0001ba50(param_3[1])" identifier = (call_expression "FUN_0001ba50(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }" if (parenthesized_expression "((iVar4 != 5) && (iVar5 != 5))" ( (binary_expression "(iVar4 != 5) && (iVar5 != 5)" (parenthesized_expression "(iVar4 != 5)" ( (binary_expression "iVar4 != 5" identifier != number_literal) )) && (parenthesized_expression "(iVar5 != 5)" ( (binary_expression "iVar5 != 5" identifier != number_literal) ))) )) (compound_statement "{\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }" { (expression_statement "pbVar6 = (byte *)FUN_0004ccb0(*param_3);" (assignment_expression "pbVar6 = (byte *)FUN_0004ccb0(*param_3)" identifier = (cast_expression "(byte *)FUN_0004ccb0(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ccb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "__n = FUN_0004ccb0(param_3[1]);" (assignment_expression "__n = FUN_0004ccb0(param_3[1])" identifier = (call_expression "FUN_0004ccb0(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" if (parenthesized_expression "((int)__n < 1)" ( (binary_expression "(int)__n < 1" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar4 = 1;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" else (compound_statement "{\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" { (if_statement "if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" if (parenthesized_expression "((iVar4 == 4) && (iVar5 == 4))" ( (binary_expression "(iVar4 == 4) && (iVar5 == 4)" (parenthesized_expression "(iVar4 == 4)" ( (binary_expression "iVar4 == 4" identifier == number_literal) )) && (parenthesized_expression "(iVar5 == 4)" ( (binary_expression "iVar5 == 4" identifier == number_literal) ))) )) (compound_statement "{\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }" { (expression_statement "pbVar7 = (byte *)FUN_0004ceb0(*param_3);" (assignment_expression "pbVar7 = (byte *)FUN_0004ceb0(*param_3)" identifier = (cast_expression "(byte *)FUN_0004ceb0(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "local_24 = (byte *)FUN_0004ceb0(param_3[1]);" (assignment_expression "local_24 = (byte *)FUN_0004ceb0(param_3[1])" identifier = (cast_expression "(byte *)FUN_0004ceb0(param_3[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) }) (else_clause "else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" else (compound_statement "{\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" { (expression_statement "pbVar7 = (byte *)FUN_0004ce60(*param_3);" (assignment_expression "pbVar7 = (byte *)FUN_0004ce60(*param_3)" identifier = (cast_expression "(byte *)FUN_0004ce60(*param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ce60(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "local_24 = (byte *)FUN_0004ce60(param_3[1]);" (assignment_expression "local_24 = (byte *)FUN_0004ce60(param_3[1])" identifier = (cast_expression "(byte *)FUN_0004ce60(param_3[1])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ce60(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) ))))) ;) }))) (if_statement "if (local_24 == (byte *)0x0) {\n        return;\n      }" if (parenthesized_expression "(local_24 == (byte *)0x0)" ( (binary_expression "local_24 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }" if (parenthesized_expression "((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0))" ( (binary_expression "(pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)" (parenthesized_expression "(pbVar6 != (byte *)0x0)" ( (binary_expression "pbVar6 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pbVar7 == (byte *)0x0)" ( (binary_expression "pbVar7 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "bVar1 = *local_24;" (assignment_expression "bVar1 = *local_24" identifier = (pointer_expression "*local_24" * identifier)) ;) (labeled_statement "joined_r0x0004ea2f:\n      __s1 = pbVar7;" statement_identifier : (expression_statement "__s1 = pbVar7;" (assignment_expression "__s1 = pbVar7" identifier = identifier) ;)) (expression_statement "pbVar3 = pbVar6;" (assignment_expression "pbVar3 = pbVar6" identifier = identifier) ;) (if_statement "if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }" if (parenthesized_expression "((int)__n <= (int)pbVar3)" ( (binary_expression "(int)__n <= (int)pbVar3" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }" { (if_statement "if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }" if (parenthesized_expression "((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0))" ( (binary_expression "(*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)" (parenthesized_expression "(*__s1 == bVar1)" ( (binary_expression "*__s1 == bVar1" (pointer_expression "*__s1" * identifier) == identifier) )) && (parenthesized_expression "(iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)" ( (comma_expression "iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0" (assignment_expression "iVar5 = memcmp(__s1,local_24,__n)" identifier = (call_expression "memcmp(__s1,local_24,__n)" identifier (argument_list "(__s1,local_24,__n)" ( identifier , identifier , identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }" { (if_statement "if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }" if (parenthesized_expression "((int)pbVar3 < (int)__n)" ( (binary_expression "(int)pbVar3 < (int)__n" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            iVar4 = 0;\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_0004ea6c;" goto statement_identifier ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = __s1;" (assignment_expression "pbVar7 = __s1" identifier = identifier) ;) (do_statement "do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);" do (compound_statement "{\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        }" { (expression_statement "iVar5 = -1 - (int)pbVar7;" (assignment_expression "iVar5 = -1 - (int)pbVar7" identifier = (binary_expression "-1 - (int)pbVar7" number_literal - (cast_expression "(int)pbVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = __s1 + (int)(pbVar3 + iVar5);" (assignment_expression "pbVar6 = __s1 + (int)(pbVar3 + iVar5)" identifier = (binary_expression "__s1 + (int)(pbVar3 + iVar5)" identifier + (cast_expression "(int)(pbVar3 + iVar5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar3 + iVar5)" ( (binary_expression "pbVar3 + iVar5" identifier + identifier) ))))) ;) (if_statement "if (!bVar2) break;" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*pbVar7 & 0xc0) == 0x80)" ( (binary_expression "(*pbVar7 & 0xc0) == 0x80" (parenthesized_expression "(*pbVar7 & 0xc0)" ( (binary_expression "*pbVar7 & 0xc0" (pointer_expression "*pbVar7" * identifier) & number_literal) )) == number_literal) )) ;) (goto_statement "goto joined_r0x0004ea2f;" goto statement_identifier ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);" statement_identifier : (expression_statement "FUN_00024f80(param_1,iVar4);" (call_expression "FUN_00024f80(param_1,iVar4)" identifier (argument_list "(param_1,iVar4)" ( identifier , identifier ))) ;)) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) )) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;)) })) (return_statement return ;) })))
(function_definition "void FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = FUN_0001ba50(*param_3);\n  iVar5 = FUN_0001ba50(param_3[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004e970(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0004e970") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  byte *pbVar3;\n  byte *__s1;\n  int iVar4;\n  int iVar5;\n  byte *pbVar6;\n  size_t __n;\n  byte *pbVar7;\n  byte *local_24;\n  \n  iVar4 = FUN_0001ba50(*param_3);\n  iVar5 = FUN_0001ba50(param_3[1]);\n  if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *__s1;" (type_identifier "byte") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "byte *local_24;" (type_identifier "byte") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (expression_statement "iVar4 = FUN_0001ba50(*param_3);" (assignment_expression "iVar4 = FUN_0001ba50(*param_3)" (identifier "iVar4") (= "=") (call_expression "FUN_0001ba50(*param_3)" (identifier "FUN_0001ba50") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "iVar5 = FUN_0001ba50(param_3[1]);" (assignment_expression "iVar5 = FUN_0001ba50(param_3[1])" (identifier "iVar5") (= "=") (call_expression "FUN_0001ba50(param_3[1])" (identifier "FUN_0001ba50") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if ((iVar4 != 5) && (iVar5 != 5)) {\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }" (if "if") (parenthesized_expression "((iVar4 != 5) && (iVar5 != 5))" (( "(") (binary_expression "(iVar4 != 5) && (iVar5 != 5)" (parenthesized_expression "(iVar4 != 5)" (( "(") (binary_expression "iVar4 != 5" (identifier "iVar4") (!= "!=") (number_literal "5")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 != 5)" (( "(") (binary_expression "iVar5 != 5" (identifier "iVar5") (!= "!=") (number_literal "5")) () ")"))) () ")")) (compound_statement "{\n    pbVar6 = (byte *)FUN_0004ccb0(*param_3);\n    __n = FUN_0004ccb0(param_3[1]);\n    if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }\nLAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);\n  }" ({ "{") (expression_statement "pbVar6 = (byte *)FUN_0004ccb0(*param_3);" (assignment_expression "pbVar6 = (byte *)FUN_0004ccb0(*param_3)" (identifier "pbVar6") (= "=") (cast_expression "(byte *)FUN_0004ccb0(*param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ccb0(*param_3)" (identifier "FUN_0004ccb0") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "__n = FUN_0004ccb0(param_3[1]);" (assignment_expression "__n = FUN_0004ccb0(param_3[1])" (identifier "__n") (= "=") (call_expression "FUN_0004ccb0(param_3[1])" (identifier "FUN_0004ccb0") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if ((int)__n < 1) {\n      iVar4 = 1;\n    }\n    else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" (if "if") (parenthesized_expression "((int)__n < 1)" (( "(") (binary_expression "(int)__n < 1" (cast_expression "(int)__n" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__n")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar4 = 1;\n    }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" (else "else") (compound_statement "{\n      if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }\n      if (local_24 == (byte *)0x0) {\n        return;\n      }\n      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }\n      iVar4 = 1;\n      bVar1 = *local_24;\njoined_r0x0004ea2f:\n      __s1 = pbVar7;\n      pbVar3 = pbVar6;\n      if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }\n      iVar4 = 0;\n    }" ({ "{") (if_statement "if ((iVar4 == 4) && (iVar5 == 4)) {\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }\n      else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" (if "if") (parenthesized_expression "((iVar4 == 4) && (iVar5 == 4))" (( "(") (binary_expression "(iVar4 == 4) && (iVar5 == 4)" (parenthesized_expression "(iVar4 == 4)" (( "(") (binary_expression "iVar4 == 4" (identifier "iVar4") (== "==") (number_literal "4")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 == 4)" (( "(") (binary_expression "iVar5 == 4" (identifier "iVar5") (== "==") (number_literal "4")) () ")"))) () ")")) (compound_statement "{\n        pbVar7 = (byte *)FUN_0004ceb0(*param_3);\n        bVar2 = false;\n        local_24 = (byte *)FUN_0004ceb0(param_3[1]);\n      }" ({ "{") (expression_statement "pbVar7 = (byte *)FUN_0004ceb0(*param_3);" (assignment_expression "pbVar7 = (byte *)FUN_0004ceb0(*param_3)" (identifier "pbVar7") (= "=") (cast_expression "(byte *)FUN_0004ceb0(*param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ceb0(*param_3)" (identifier "FUN_0004ceb0") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "local_24 = (byte *)FUN_0004ceb0(param_3[1]);" (assignment_expression "local_24 = (byte *)FUN_0004ceb0(param_3[1])" (identifier "local_24") (= "=") (cast_expression "(byte *)FUN_0004ceb0(param_3[1])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ceb0(param_3[1])" (identifier "FUN_0004ceb0") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" (else "else") (compound_statement "{\n        pbVar7 = (byte *)FUN_0004ce60(*param_3);\n        bVar2 = true;\n        local_24 = (byte *)FUN_0004ce60(param_3[1]);\n      }" ({ "{") (expression_statement "pbVar7 = (byte *)FUN_0004ce60(*param_3);" (assignment_expression "pbVar7 = (byte *)FUN_0004ce60(*param_3)" (identifier "pbVar7") (= "=") (cast_expression "(byte *)FUN_0004ce60(*param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ce60(*param_3)" (identifier "FUN_0004ce60") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (expression_statement "local_24 = (byte *)FUN_0004ce60(param_3[1]);" (assignment_expression "local_24 = (byte *)FUN_0004ce60(param_3[1])" (identifier "local_24") (= "=") (cast_expression "(byte *)FUN_0004ce60(param_3[1])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ce60(param_3[1])" (identifier "FUN_0004ce60") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (local_24 == (byte *)0x0) {\n        return;\n      }" (if "if") (parenthesized_expression "(local_24 == (byte *)0x0)" (( "(") (binary_expression "local_24 == (byte *)0x0" (identifier "local_24") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {\n        return;\n      }" (if "if") (parenthesized_expression "((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0))" (( "(") (binary_expression "(pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)" (parenthesized_expression "(pbVar6 != (byte *)0x0)" (( "(") (binary_expression "pbVar6 != (byte *)0x0" (identifier "pbVar6") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(pbVar7 == (byte *)0x0)" (( "(") (binary_expression "pbVar7 == (byte *)0x0" (identifier "pbVar7") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar1 = *local_24;" (assignment_expression "bVar1 = *local_24" (identifier "bVar1") (= "=") (pointer_expression "*local_24" (* "*") (identifier "local_24"))) (; ";")) (labeled_statement "joined_r0x0004ea2f:\n      __s1 = pbVar7;" (statement_identifier "joined_r0x0004ea2f") (: ":") (expression_statement "__s1 = pbVar7;" (assignment_expression "__s1 = pbVar7" (identifier "__s1") (= "=") (identifier "pbVar7")) (; ";"))) (expression_statement "pbVar3 = pbVar6;" (assignment_expression "pbVar3 = pbVar6" (identifier "pbVar3") (= "=") (identifier "pbVar6")) (; ";")) (if_statement "if ((int)__n <= (int)pbVar3) {\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }" (if "if") (parenthesized_expression "((int)__n <= (int)pbVar3)" (( "(") (binary_expression "(int)__n <= (int)pbVar3" (cast_expression "(int)__n" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__n")) (<= "<=") (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3"))) () ")")) (compound_statement "{\n        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }\n        iVar4 = iVar4 + 1;\n        pbVar7 = __s1;\n        do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);\n        goto joined_r0x0004ea2f;\n      }" ({ "{") (if_statement "if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }" (if "if") (parenthesized_expression "((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0))" (( "(") (binary_expression "(*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)" (parenthesized_expression "(*__s1 == bVar1)" (( "(") (binary_expression "*__s1 == bVar1" (pointer_expression "*__s1" (* "*") (identifier "__s1")) (== "==") (identifier "bVar1")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)" (( "(") (comma_expression "iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0" (assignment_expression "iVar5 = memcmp(__s1,local_24,__n)" (identifier "iVar5") (= "=") (call_expression "memcmp(__s1,local_24,__n)" (identifier "memcmp") (argument_list "(__s1,local_24,__n)" (( "(") (identifier "__s1") (, ",") (identifier "local_24") (, ",") (identifier "__n") () ")")))) (, ",") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }\n          goto LAB_0004ea6c;\n        }" ({ "{") (if_statement "if ((int)pbVar3 < (int)__n) {\n            iVar4 = 0;\n          }" (if "if") (parenthesized_expression "((int)pbVar3 < (int)__n)" (( "(") (binary_expression "(int)pbVar3 < (int)__n" (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3")) (< "<") (cast_expression "(int)__n" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__n"))) () ")")) (compound_statement "{\n            iVar4 = 0;\n          }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}"))) (goto_statement "goto LAB_0004ea6c;" (goto "goto") (statement_identifier "LAB_0004ea6c") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar7 = __s1;" (assignment_expression "pbVar7 = __s1" (identifier "pbVar7") (= "=") (identifier "__s1")) (; ";")) (do_statement "do {\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        } while ((*pbVar7 & 0xc0) == 0x80);" (do "do") (compound_statement "{\n          iVar5 = -1 - (int)pbVar7;\n          pbVar7 = pbVar7 + 1;\n          pbVar6 = __s1 + (int)(pbVar3 + iVar5);\n          if (!bVar2) break;\n        }" ({ "{") (expression_statement "iVar5 = -1 - (int)pbVar7;" (assignment_expression "iVar5 = -1 - (int)pbVar7" (identifier "iVar5") (= "=") (binary_expression "-1 - (int)pbVar7" (number_literal "-1") (- "-") (cast_expression "(int)pbVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar7")))) (; ";")) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar6 = __s1 + (int)(pbVar3 + iVar5);" (assignment_expression "pbVar6 = __s1 + (int)(pbVar3 + iVar5)" (identifier "pbVar6") (= "=") (binary_expression "__s1 + (int)(pbVar3 + iVar5)" (identifier "__s1") (+ "+") (cast_expression "(int)(pbVar3 + iVar5)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar3 + iVar5)" (( "(") (binary_expression "pbVar3 + iVar5" (identifier "pbVar3") (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (if_statement "if (!bVar2) break;" (if "if") (parenthesized_expression "(!bVar2)" (( "(") (unary_expression "!bVar2" (! "!") (identifier "bVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((*pbVar7 & 0xc0) == 0x80)" (( "(") (binary_expression "(*pbVar7 & 0xc0) == 0x80" (parenthesized_expression "(*pbVar7 & 0xc0)" (( "(") (binary_expression "*pbVar7 & 0xc0" (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")) (& "&") (number_literal "0xc0")) () ")")) (== "==") (number_literal "0x80")) () ")")) (; ";")) (goto_statement "goto joined_r0x0004ea2f;" (goto "goto") (statement_identifier "joined_r0x0004ea2f") (; ";")) (} "}"))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (labeled_statement "LAB_0004ea6c:\n    FUN_00024f80(param_1,iVar4);" (statement_identifier "LAB_0004ea6c") (: ":") (expression_statement "FUN_00024f80(param_1,iVar4);" (call_expression "FUN_00024f80(param_1,iVar4)" (identifier "FUN_00024f80") (argument_list "(param_1,iVar4)" (( "(") (identifier "param_1") (, ",") (identifier "iVar4") () ")"))) (; ";"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *context,int argc,type_2 **argv)

{
  type_3 var_10;
  bool bVar2;
  type_3 *var_13;
  type_3 *var_12;
  int var_2;
  int var_3;
  type_3 *var_8;
  size_t __n;
  type_3 *var_9;
  type_3 *var_7;
  
  var_2 = var_1(*argv);
  var_3 = var_1(argv[1]);
  if ((var_2 != 5) && (var_3 != 5)) {
    var_8 = (type_3 *)var_4(*argv);
    __n = var_4(argv[1]);
    if ((int)__n < 1) {
      var_2 = 1;
    }
    else {
      if ((var_2 == 4) && (var_3 == 4)) {
        var_9 = (type_3 *)var_5(*argv);
        bVar2 = false;
        var_7 = (type_3 *)var_5(argv[1]);
      }
      else {
        var_9 = var_6(*argv);
        bVar2 = true;
        var_7 = var_6(argv[1]);
      }
      if (var_7 == (type_3 *)0x0) {
        return;
      }
      if ((var_8 != (type_3 *)0x0) && (var_9 == (type_3 *)0x0)) {
        return;
      }
      var_2 = 1;
      var_10 = *var_7;
joined_r0x0004ea2f:
      var_12 = var_9;
      var_13 = var_8;
      if ((int)__n <= (int)var_13) {
        if ((*var_12 == var_10) && (var_3 = var_11(var_12,var_7,__n), var_3 == 0)) {
          if ((int)var_13 < (int)__n) {
            var_2 = 0;
          }
          goto LAB_0004ea6c;
        }
        var_2 = var_2 + 1;
        var_9 = var_12;
        do {
          var_3 = -1 - (int)var_9;
          var_9 = var_9 + 1;
          var_8 = var_12 + (int)(var_13 + var_3);
          if (!bVar2) break;
        } while ((*var_9 & 0xc0) == 0x80);
        goto joined_r0x0004ea2f;
      }
      var_2 = 0;
    }
LAB_0004ea6c:
    var_14(context,var_2);
  }
  return;
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  byte bVar1;
  bool bVar2;
  byte *pbVar3;
  byte *__s1;
  int iVar4;
  int iVar5;
  byte *pbVar6;
  size_t __n;
  byte *pbVar7;
  byte *local_24;
  
  iVar4 = FUN_0001ba50(*param_3);
  iVar5 = FUN_0001ba50(param_3[1]);
  if ((iVar4 != 5) && (iVar5 != 5)) {
    pbVar6 = (byte *)FUN_0004ccb0(*param_3);
    __n = FUN_0004ccb0(param_3[1]);
    if ((int)__n < 1) {
      iVar4 = 1;
    }
    else {
      if ((iVar4 == 4) && (iVar5 == 4)) {
        pbVar7 = (byte *)FUN_0004ceb0(*param_3);
        bVar2 = false;
        local_24 = (byte *)FUN_0004ceb0(param_3[1]);
      }
      else {
        pbVar7 = (byte *)FUN_0004ce60(*param_3);
        bVar2 = true;
        local_24 = (byte *)FUN_0004ce60(param_3[1]);
      }
      if (local_24 == (byte *)0x0) {
        return;
      }
      if ((pbVar6 != (byte *)0x0) && (pbVar7 == (byte *)0x0)) {
        return;
      }
      iVar4 = 1;
      bVar1 = *local_24;
joined_r0x0004ea2f:
      __s1 = pbVar7;
      pbVar3 = pbVar6;
      if ((int)__n <= (int)pbVar3) {
        if ((*__s1 == bVar1) && (iVar5 = memcmp(__s1,local_24,__n), iVar5 == 0)) {
          if ((int)pbVar3 < (int)__n) {
            iVar4 = 0;
          }
          goto LAB_0004ea6c;
        }
        iVar4 = iVar4 + 1;
        pbVar7 = __s1;
        do {
          iVar5 = -1 - (int)pbVar7;
          pbVar7 = pbVar7 + 1;
          pbVar6 = __s1 + (int)(pbVar3 + iVar5);
          if (!bVar2) break;
        } while ((*pbVar7 & 0xc0) == 0x80);
        goto joined_r0x0004ea2f;
      }
      iVar4 = 0;
    }
LAB_0004ea6c:
    FUN_00024f80(param_1,iVar4);
  }
  return;
}

