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

int rpl_regexec(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)

{
  byte bVar1;
  Idx start;
  uint uVar2;
  size_t length;
  reg_errcode_t rVar3;
  
  uVar2 = 2;
  if ((eflags & 0xfffffff8U) == 0) {
    if ((eflags & 4U) == 0) {
      length = strlen(string);
      bVar1 = preg->field_0x1c;
      start = 0;
    }
    else {
      start = pmatch->rm_so;
      length = pmatch->rm_eo;
      bVar1 = preg->field_0x1c;
    }
    if ((bVar1 & 0x10) != 0) {
      pmatch = (regmatch_t *)0x0;
      nmatch = 0;
    }
    rVar3 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);
    uVar2 = (uint)(rVar3 != _REG_NOERROR);
  }
  return uVar2;
}



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

undefined1
FUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)

{
  byte bVar1;
  undefined4 uVar2;
  size_t sVar3;
  int iVar4;
  undefined1 uVar5;
  
  uVar5 = 2;
  if ((param_5 & 0xfffffff8) == 0) {
    if ((param_5 & 4) == 0) {
      sVar3 = strlen(param_2);
      bVar1 = *(byte *)(param_1 + 0x1c);
      uVar2 = 0;
    }
    else {
      uVar2 = *param_4;
      sVar3 = param_4[1];
      bVar1 = *(byte *)(param_1 + 0x1c);
    }
    if ((bVar1 & 0x10) != 0) {
      param_4 = (undefined4 *)0x0;
      param_3 = 0;
    }
    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);
    uVar5 = iVar4 != 0;
  }
  return uVar5;
}


PUSH EBP
MOV EAX,0x2
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000116e0
ADD EBX,0x9a62
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x20]
TEST EBP,0xfffffff8
JNZ 0x000255f4
MOV EDI,EBP
AND EDI,0x4
JNZ 0x00025600
SUB ESP,0xc
PUSH dword ptr [ESP + 0x30]
CALL 0x000112b0
ADD ESP,0x10
TEST byte ptr [ESI + 0x1c],0x10
JZ 0x0002560f
SUB ESP,0xc
PUSH EBP
PUSH 0x0
PUSH 0x0
PUSH EAX
PUSH EAX
PUSH EDI
PUSH EAX
PUSH dword ptr [ESP + 0x4c]
PUSH ESI
CALL 0x0001fed0
ADD ESP,0x30
TEST EAX,EAX
SETNZ AL
MOVZX EAX,AL
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x2c]
MOV EDI,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x4]
TEST byte ptr [ESI + 0x1c],0x10
JNZ 0x000255d3
SUB ESP,0xc
PUSH EBP
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
JMP 0x000255db
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined1\nFUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined1 uVar5;\n  \n  uVar5 = 2;\n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }\n  return uVar5;\n}\n\n" comment (function_definition "undefined1\nFUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined1 uVar5;\n  \n  uVar5 = 2;\n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }\n  return uVar5;\n}" type_identifier (function_declarator "FUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" identifier (parameter_list "(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined1 uVar5;\n  \n  uVar5 = 2;\n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }\n  return uVar5;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" identifier = number_literal) ;) (if_statement "if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }" if (parenthesized_expression "((param_5 & 0xfffffff8) == 0)" ( (binary_expression "(param_5 & 0xfffffff8) == 0" (parenthesized_expression "(param_5 & 0xfffffff8)" ( (binary_expression "param_5 & 0xfffffff8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }" { (if_statement "if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" if (parenthesized_expression "((param_5 & 4) == 0)" ( (binary_expression "(param_5 & 4) == 0" (parenthesized_expression "(param_5 & 4)" ( (binary_expression "param_5 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }" { (expression_statement "sVar3 = strlen(param_2);" (assignment_expression "sVar3 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" identifier = (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" else (compound_statement "{\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" { (expression_statement "uVar2 = *param_4;" (assignment_expression "uVar2 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "sVar3 = param_4[1];" (assignment_expression "sVar3 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" identifier = (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }))) (if_statement "if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }" if (parenthesized_expression "((bVar1 & 0x10) != 0)" ( (binary_expression "(bVar1 & 0x10) != 0" (parenthesized_expression "(bVar1 & 0x10)" ( (binary_expression "bVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }" { (expression_statement "param_4 = (undefined4 *)0x0;" (assignment_expression "param_4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) })) (expression_statement "iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);" (assignment_expression "iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" identifier = (call_expression "FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" identifier (argument_list "(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar5 = iVar4 != 0;" (assignment_expression "uVar5 = iVar4 != 0" identifier = (binary_expression "iVar4 != 0" identifier != number_literal)) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint rpl_regexec(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)\n\n{\n  byte bVar1;\n  Idx start;\n  uint uVar2;\n  size_t length;\n  reg_errcode_t rVar3;\n  \n  uVar2 = 2;\n  if ((eflags & 0xfffffff8U) == 0) {\n    if ((eflags & 4U) == 0) {\n      length = strlen(string);\n      bVar1 = preg->field_0x1c;\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n      bVar1 = preg->field_0x1c;\n    }\n    if ((bVar1 & 0x10) != 0) {\n      pmatch = (regmatch_t *)0x0;\n      nmatch = 0;\n    }\n    rVar3 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n    uVar2 = (uint)(rVar3 != _REG_NOERROR);\n  }\n  return uVar2;\n}\n\n" comment comment (function_definition "int rpl_regexec(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)\n\n{\n  byte bVar1;\n  Idx start;\n  uint uVar2;\n  size_t length;\n  reg_errcode_t rVar3;\n  \n  uVar2 = 2;\n  if ((eflags & 0xfffffff8U) == 0) {\n    if ((eflags & 4U) == 0) {\n      length = strlen(string);\n      bVar1 = preg->field_0x1c;\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n      bVar1 = preg->field_0x1c;\n    }\n    if ((bVar1 & 0x10) != 0) {\n      pmatch = (regmatch_t *)0x0;\n      nmatch = 0;\n    }\n    rVar3 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n    uVar2 = (uint)(rVar3 != _REG_NOERROR);\n  }\n  return uVar2;\n}" primitive_type (function_declarator "rpl_regexec(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)" identifier (parameter_list "(regex_t *preg,char *string,size_t nmatch,regmatch_t *pmatch,int eflags)" ( (parameter_declaration "regex_t *preg" type_identifier (pointer_declarator "*preg" * identifier)) , (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "size_t nmatch" primitive_type identifier) , (parameter_declaration "regmatch_t *pmatch" type_identifier (pointer_declarator "*pmatch" * identifier)) , (parameter_declaration "int eflags" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  Idx start;\n  uint uVar2;\n  size_t length;\n  reg_errcode_t rVar3;\n  \n  uVar2 = 2;\n  if ((eflags & 0xfffffff8U) == 0) {\n    if ((eflags & 4U) == 0) {\n      length = strlen(string);\n      bVar1 = preg->field_0x1c;\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n      bVar1 = preg->field_0x1c;\n    }\n    if ((bVar1 & 0x10) != 0) {\n      pmatch = (regmatch_t *)0x0;\n      nmatch = 0;\n    }\n    rVar3 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n    uVar2 = (uint)(rVar3 != _REG_NOERROR);\n  }\n  return uVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "Idx start;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t length;" primitive_type identifier ;) (declaration "reg_errcode_t rVar3;" type_identifier identifier ;) (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) (if_statement "if ((eflags & 0xfffffff8U) == 0) {\n    if ((eflags & 4U) == 0) {\n      length = strlen(string);\n      bVar1 = preg->field_0x1c;\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n      bVar1 = preg->field_0x1c;\n    }\n    if ((bVar1 & 0x10) != 0) {\n      pmatch = (regmatch_t *)0x0;\n      nmatch = 0;\n    }\n    rVar3 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n    uVar2 = (uint)(rVar3 != _REG_NOERROR);\n  }" if (parenthesized_expression "((eflags & 0xfffffff8U) == 0)" ( (binary_expression "(eflags & 0xfffffff8U) == 0" (parenthesized_expression "(eflags & 0xfffffff8U)" ( (binary_expression "eflags & 0xfffffff8U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((eflags & 4U) == 0) {\n      length = strlen(string);\n      bVar1 = preg->field_0x1c;\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n      bVar1 = preg->field_0x1c;\n    }\n    if ((bVar1 & 0x10) != 0) {\n      pmatch = (regmatch_t *)0x0;\n      nmatch = 0;\n    }\n    rVar3 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);\n    uVar2 = (uint)(rVar3 != _REG_NOERROR);\n  }" { (if_statement "if ((eflags & 4U) == 0) {\n      length = strlen(string);\n      bVar1 = preg->field_0x1c;\n      start = 0;\n    }\n    else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n      bVar1 = preg->field_0x1c;\n    }" if (parenthesized_expression "((eflags & 4U) == 0)" ( (binary_expression "(eflags & 4U) == 0" (parenthesized_expression "(eflags & 4U)" ( (binary_expression "eflags & 4U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      length = strlen(string);\n      bVar1 = preg->field_0x1c;\n      start = 0;\n    }" { (expression_statement "length = strlen(string);" (assignment_expression "length = strlen(string)" identifier = (call_expression "strlen(string)" identifier (argument_list "(string)" ( identifier )))) ;) (expression_statement "bVar1 = preg->field_0x1c;" (assignment_expression "bVar1 = preg->field_0x1c" identifier = (field_expression "preg->field_0x1c" identifier -> field_identifier)) ;) (expression_statement "start = 0;" (assignment_expression "start = 0" identifier = number_literal) ;) }) (else_clause "else {\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n      bVar1 = preg->field_0x1c;\n    }" else (compound_statement "{\n      start = pmatch->rm_so;\n      length = pmatch->rm_eo;\n      bVar1 = preg->field_0x1c;\n    }" { (expression_statement "start = pmatch->rm_so;" (assignment_expression "start = pmatch->rm_so" identifier = (field_expression "pmatch->rm_so" identifier -> field_identifier)) ;) (expression_statement "length = pmatch->rm_eo;" (assignment_expression "length = pmatch->rm_eo" identifier = (field_expression "pmatch->rm_eo" identifier -> field_identifier)) ;) (expression_statement "bVar1 = preg->field_0x1c;" (assignment_expression "bVar1 = preg->field_0x1c" identifier = (field_expression "preg->field_0x1c" identifier -> field_identifier)) ;) }))) (if_statement "if ((bVar1 & 0x10) != 0) {\n      pmatch = (regmatch_t *)0x0;\n      nmatch = 0;\n    }" if (parenthesized_expression "((bVar1 & 0x10) != 0)" ( (binary_expression "(bVar1 & 0x10) != 0" (parenthesized_expression "(bVar1 & 0x10)" ( (binary_expression "bVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      pmatch = (regmatch_t *)0x0;\n      nmatch = 0;\n    }" { (expression_statement "pmatch = (regmatch_t *)0x0;" (assignment_expression "pmatch = (regmatch_t *)0x0" identifier = (cast_expression "(regmatch_t *)0x0" ( (type_descriptor "regmatch_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "nmatch = 0;" (assignment_expression "nmatch = 0" identifier = number_literal) ;) })) (expression_statement "rVar3 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags);" (assignment_expression "rVar3 = re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags)" identifier = (call_expression "re_search_internal(preg,string,length,start,length,length,nmatch,pmatch,eflags)" identifier (argument_list "(preg,string,length,start,length,length,nmatch,pmatch,eflags)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar2 = (uint)(rVar3 != _REG_NOERROR);" (assignment_expression "uVar2 = (uint)(rVar3 != _REG_NOERROR)" identifier = (call_expression "(uint)(rVar3 != _REG_NOERROR)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(rVar3 != _REG_NOERROR)" ( (binary_expression "rVar3 != _REG_NOERROR" identifier != identifier) )))) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "undefined1\nFUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined1 uVar5;\n  \n  uVar5 = 2;\n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }\n  return uVar5;\n}\n\n" (function_definition "undefined1\nFUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined1 uVar5;\n  \n  uVar5 = 2;\n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }\n  return uVar5;\n}" type_identifier (function_declarator "FUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" identifier (parameter_list "(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined1 uVar5;\n  \n  uVar5 = 2;\n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }\n  return uVar5;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" identifier = number_literal) ;) (if_statement "if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }" if (parenthesized_expression "((param_5 & 0xfffffff8) == 0)" ( (binary_expression "(param_5 & 0xfffffff8) == 0" (parenthesized_expression "(param_5 & 0xfffffff8)" ( (binary_expression "param_5 & 0xfffffff8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }" { (if_statement "if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" if (parenthesized_expression "((param_5 & 4) == 0)" ( (binary_expression "(param_5 & 4) == 0" (parenthesized_expression "(param_5 & 4)" ( (binary_expression "param_5 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }" { (expression_statement "sVar3 = strlen(param_2);" (assignment_expression "sVar3 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" identifier = (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" else (compound_statement "{\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" { (expression_statement "uVar2 = *param_4;" (assignment_expression "uVar2 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "sVar3 = param_4[1];" (assignment_expression "sVar3 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" identifier = (pointer_expression "*(byte *)(param_1 + 0x1c)" * (cast_expression "(byte *)(param_1 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) }))) (if_statement "if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }" if (parenthesized_expression "((bVar1 & 0x10) != 0)" ( (binary_expression "(bVar1 & 0x10) != 0" (parenthesized_expression "(bVar1 & 0x10)" ( (binary_expression "bVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }" { (expression_statement "param_4 = (undefined4 *)0x0;" (assignment_expression "param_4 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) })) (expression_statement "iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);" (assignment_expression "iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" identifier = (call_expression "FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" identifier (argument_list "(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar5 = iVar4 != 0;" (assignment_expression "uVar5 = iVar4 != 0" identifier = (binary_expression "iVar4 != 0" identifier != number_literal)) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined1\nFUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)\n\n{\n  byte bVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined1 uVar5;\n  \n  uVar5 = 2;\n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }\n  return uVar5;\n}" (type_identifier "undefined1") (function_declarator "FUN_00025590(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" (identifier "FUN_00025590") (parameter_list "(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  byte bVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  int iVar4;\n  undefined1 uVar5;\n  \n  uVar5 = 2;\n  if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }\n  return uVar5;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined1 uVar5;" (type_identifier "undefined1") (identifier "uVar5") (; ";")) (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" (identifier "uVar5") (= "=") (number_literal "2")) (; ";")) (if_statement "if ((param_5 & 0xfffffff8) == 0) {\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }" (if "if") (parenthesized_expression "((param_5 & 0xfffffff8) == 0)" (( "(") (binary_expression "(param_5 & 0xfffffff8) == 0" (parenthesized_expression "(param_5 & 0xfffffff8)" (( "(") (binary_expression "param_5 & 0xfffffff8" (identifier "param_5") (& "&") (number_literal "0xfffffff8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }\n    if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }\n    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);\n    uVar5 = iVar4 != 0;\n  }" ({ "{") (if_statement "if ((param_5 & 4) == 0) {\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }\n    else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" (if "if") (parenthesized_expression "((param_5 & 4) == 0)" (( "(") (binary_expression "(param_5 & 4) == 0" (parenthesized_expression "(param_5 & 4)" (( "(") (binary_expression "param_5 & 4" (identifier "param_5") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      sVar3 = strlen(param_2);\n      bVar1 = *(byte *)(param_1 + 0x1c);\n      uVar2 = 0;\n    }" ({ "{") (expression_statement "sVar3 = strlen(param_2);" (assignment_expression "sVar3 = strlen(param_2)" (identifier "sVar3") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" (else "else") (compound_statement "{\n      uVar2 = *param_4;\n      sVar3 = param_4[1];\n      bVar1 = *(byte *)(param_1 + 0x1c);\n    }" ({ "{") (expression_statement "uVar2 = *param_4;" (assignment_expression "uVar2 = *param_4" (identifier "uVar2") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "sVar3 = param_4[1];" (assignment_expression "sVar3 = param_4[1]" (identifier "sVar3") (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "bVar1 = *(byte *)(param_1 + 0x1c);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x1c)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + 0x1c)" (* "*") (cast_expression "(byte *)(param_1 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (} "}")))) (if_statement "if ((bVar1 & 0x10) != 0) {\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }" (if "if") (parenthesized_expression "((bVar1 & 0x10) != 0)" (( "(") (binary_expression "(bVar1 & 0x10) != 0" (parenthesized_expression "(bVar1 & 0x10)" (( "(") (binary_expression "bVar1 & 0x10" (identifier "bVar1") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_4 = (undefined4 *)0x0;\n      param_3 = 0;\n    }" ({ "{") (expression_statement "param_4 = (undefined4 *)0x0;" (assignment_expression "param_4 = (undefined4 *)0x0" (identifier "param_4") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);" (assignment_expression "iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" (identifier "iVar4") (= "=") (call_expression "FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" (identifier "FUN_0001fed0") (argument_list "(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "sVar3") (, ",") (identifier "uVar2") (, ",") (identifier "sVar3") (, ",") (identifier "sVar3") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar5 = iVar4 != 0;" (assignment_expression "uVar5 = iVar4 != 0" (identifier "uVar5") (= "=") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) (; ";")) (} "}"))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))

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

int function_1(type_1 *preg,char *string,size_t nmatch,type_2 *pmatch,int var_1)

{
  type_3 var_3;
  type_4 start;
  type_5 uVar2;
  size_t length;
  type_6 var_5;
  
  uVar2 = 2;
  if ((var_1 & 0xfffffff8U) == 0) {
    if ((var_1 & 4U) == 0) {
      length = var_2(string);
      var_3 = preg->field_0x1c;
      start = 0;
    }
    else {
      start = pmatch->rm_so;
      length = pmatch->rm_eo;
      var_3 = preg->field_0x1c;
    }
    if ((var_3 & 0x10) != 0) {
      pmatch = (type_2 *)0x0;
      nmatch = 0;
    }
    var_5 = var_4(preg,string,length,start,length,length,nmatch,pmatch,var_1);
    uVar2 = (type_5)(var_5 != var_6);
  }
  return uVar2;
}


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

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

undefined1
MASKED(int param_1,char *param_2,undefined4 param_3,undefined4 *param_4,uint param_5)

{
  byte bVar1;
  undefined4 uVar2;
  size_t sVar3;
  int iVar4;
  undefined1 uVar5;
  
  uVar5 = 2;
  if ((param_5 & 0xfffffff8) == 0) {
    if ((param_5 & 4) == 0) {
      sVar3 = strlen(param_2);
      bVar1 = *(byte *)(param_1 + 0x1c);
      uVar2 = 0;
    }
    else {
      uVar2 = *param_4;
      sVar3 = param_4[1];
      bVar1 = *(byte *)(param_1 + 0x1c);
    }
    if ((bVar1 & 0x10) != 0) {
      param_4 = (undefined4 *)0x0;
      param_3 = 0;
    }
    iVar4 = FUN_0001fed0(param_1,param_2,sVar3,uVar2,sVar3,sVar3,param_3,param_4,param_5);
    uVar5 = iVar4 != 0;
  }
  return uVar5;
}

