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

char * rpl_re_compile_pattern(char *pattern,size_t length,re_pattern_buffer *bufp)

{
  reg_syntax_t preg;
  reg_errcode_t rVar1;
  char *pcVar2;
  char *in_stack_ffffffe8;
  size_t in_stack_ffffffec;
  reg_syntax_t in_stack_fffffff0;
  
  preg = rpl_re_syntax_options;
  bufp->field_0x1c =
       bufp->field_0x1c & 0xef | (byte)((rpl_re_syntax_options >> 0x19 & 1) << 4) | 0x80;
  rVar1 = re_compile_internal((regex_t *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)
  ;
  pcVar2 = (char *)0x0;
  if (rVar1 != _REG_NOERROR) {
    pcVar2 = (char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5);
  }
  return pcVar2;
}



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

undefined4 FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar1 = DAT_00035328;
  *(byte *)(param_3 + 0x1c) =
       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;
  iVar2 = FUN_00028780(uVar1);
  uVar3 = 0;
  if (iVar2 != 0) {
    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);
  }
  return uVar3;
}


PUSH ESI
PUSH EBX
CALL 0x00011720
ADD EBX,0xb1d9
SUB ESP,0x10
MOV EAX,dword ptr [ESP + 0x24]
LEA EDX,[EBX + 0x328]
MOV ESI,dword ptr [EDX]
MOV EDX,ESI
SHR EDX,0x19
AND EDX,0x1
MOV ECX,EDX
MOVZX EDX,byte ptr [EAX + 0x1c]
SHL ECX,0x4
AND EDX,0xffffffef
OR EDX,ECX
OR EDX,0xffffff80
MOV byte ptr [EAX + 0x1c],DL
PUSH ESI
MOV EDX,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [ESP + 0x24]
CALL 0x00028780
ADD ESP,0x10
MOV EDX,EAX
XOR EAX,EAX
TEST EDX,EDX
JZ 0x00029e8f
MOV EAX,dword ptr [EBX + EDX*0x4 + 0xffff9100]
SUB ESP,0x4
PUSH 0x5
LEA EAX,[EBX + EAX*0x1 + 0xffff9160]
PUSH EAX
PUSH 0x0
CALL 0x00011140
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = DAT_00035328;\n  *(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;\n  iVar2 = FUN_00028780(uVar1);\n  uVar3 = 0;\n  if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = DAT_00035328;\n  *(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;\n  iVar2 = FUN_00028780(uVar1);\n  uVar3 = 0;\n  if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = DAT_00035328;\n  *(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;\n  iVar2 = FUN_00028780(uVar1);\n  uVar3 = 0;\n  if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = DAT_00035328;" (assignment_expression "uVar1 = DAT_00035328" identifier = identifier) ;) (expression_statement "*(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;" (assignment_expression "*(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80" (pointer_expression "*(byte *)(param_3 + 0x1c)" * (cast_expression "(byte *)(param_3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80" (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4)" (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef" (pointer_expression "*(byte *)(param_3 + 0x1c)" * (cast_expression "(byte *)(param_3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) & number_literal) | (call_expression "(byte)((DAT_00035328 >> 0x19 & 1) << 4)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((DAT_00035328 >> 0x19 & 1) << 4)" ( (binary_expression "(DAT_00035328 >> 0x19 & 1) << 4" (parenthesized_expression "(DAT_00035328 >> 0x19 & 1)" ( (binary_expression "DAT_00035328 >> 0x19 & 1" (binary_expression "DAT_00035328 >> 0x19" identifier >> number_literal) & number_literal) )) << number_literal) )))) | number_literal)) ;) (expression_statement "iVar2 = FUN_00028780(uVar1);" (assignment_expression "iVar2 = FUN_00028780(uVar1)" identifier = (call_expression "FUN_00028780(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }" { (expression_statement "uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);" (assignment_expression "uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" identifier = (call_expression "dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" identifier (argument_list "(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" ( number_literal , (binary_expression ""Success" + *(int *)(&DAT_0002e100 + iVar2 * 4)" (string_literal ""Success"" " string_content ") + (pointer_expression "*(int *)(&DAT_0002e100 + iVar2 * 4)" * (cast_expression "(int *)(&DAT_0002e100 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0002e100 + iVar2 * 4)" ( (binary_expression "&DAT_0002e100 + iVar2 * 4" (pointer_expression "&DAT_0002e100" & identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) , number_literal )))) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * rpl_re_compile_pattern(char *pattern,size_t length,re_pattern_buffer *bufp)\n\n{\n  reg_syntax_t preg;\n  reg_errcode_t rVar1;\n  char *pcVar2;\n  char *in_stack_ffffffe8;\n  size_t in_stack_ffffffec;\n  reg_syntax_t in_stack_fffffff0;\n  \n  preg = rpl_re_syntax_options;\n  bufp->field_0x1c =\n       bufp->field_0x1c & 0xef | (byte)((rpl_re_syntax_options >> 0x19 & 1) << 4) | 0x80;\n  rVar1 = re_compile_internal((regex_t *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)\n  ;\n  pcVar2 = (char *)0x0;\n  if (rVar1 != _REG_NOERROR) {\n    pcVar2 = (char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5);\n  }\n  return pcVar2;\n}\n\n" comment comment (function_definition "char * rpl_re_compile_pattern(char *pattern,size_t length,re_pattern_buffer *bufp)\n\n{\n  reg_syntax_t preg;\n  reg_errcode_t rVar1;\n  char *pcVar2;\n  char *in_stack_ffffffe8;\n  size_t in_stack_ffffffec;\n  reg_syntax_t in_stack_fffffff0;\n  \n  preg = rpl_re_syntax_options;\n  bufp->field_0x1c =\n       bufp->field_0x1c & 0xef | (byte)((rpl_re_syntax_options >> 0x19 & 1) << 4) | 0x80;\n  rVar1 = re_compile_internal((regex_t *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)\n  ;\n  pcVar2 = (char *)0x0;\n  if (rVar1 != _REG_NOERROR) {\n    pcVar2 = (char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5);\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* rpl_re_compile_pattern(char *pattern,size_t length,re_pattern_buffer *bufp)" * (function_declarator "rpl_re_compile_pattern(char *pattern,size_t length,re_pattern_buffer *bufp)" identifier (parameter_list "(char *pattern,size_t length,re_pattern_buffer *bufp)" ( (parameter_declaration "char *pattern" primitive_type (pointer_declarator "*pattern" * identifier)) , (parameter_declaration "size_t length" primitive_type identifier) , (parameter_declaration "re_pattern_buffer *bufp" type_identifier (pointer_declarator "*bufp" * identifier)) )))) (compound_statement "{\n  reg_syntax_t preg;\n  reg_errcode_t rVar1;\n  char *pcVar2;\n  char *in_stack_ffffffe8;\n  size_t in_stack_ffffffec;\n  reg_syntax_t in_stack_fffffff0;\n  \n  preg = rpl_re_syntax_options;\n  bufp->field_0x1c =\n       bufp->field_0x1c & 0xef | (byte)((rpl_re_syntax_options >> 0x19 & 1) << 4) | 0x80;\n  rVar1 = re_compile_internal((regex_t *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)\n  ;\n  pcVar2 = (char *)0x0;\n  if (rVar1 != _REG_NOERROR) {\n    pcVar2 = (char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5);\n  }\n  return pcVar2;\n}" { (declaration "reg_syntax_t preg;" type_identifier identifier ;) (declaration "reg_errcode_t rVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *in_stack_ffffffe8;" primitive_type (pointer_declarator "*in_stack_ffffffe8" * identifier) ;) (declaration "size_t in_stack_ffffffec;" primitive_type identifier ;) (declaration "reg_syntax_t in_stack_fffffff0;" type_identifier identifier ;) (expression_statement "preg = rpl_re_syntax_options;" (assignment_expression "preg = rpl_re_syntax_options" identifier = identifier) ;) (expression_statement "bufp->field_0x1c =\n       bufp->field_0x1c & 0xef | (byte)((rpl_re_syntax_options >> 0x19 & 1) << 4) | 0x80;" (assignment_expression "bufp->field_0x1c =\n       bufp->field_0x1c & 0xef | (byte)((rpl_re_syntax_options >> 0x19 & 1) << 4) | 0x80" (field_expression "bufp->field_0x1c" identifier -> field_identifier) = (binary_expression "bufp->field_0x1c & 0xef | (byte)((rpl_re_syntax_options >> 0x19 & 1) << 4) | 0x80" (binary_expression "bufp->field_0x1c & 0xef | (byte)((rpl_re_syntax_options >> 0x19 & 1) << 4)" (binary_expression "bufp->field_0x1c & 0xef" (field_expression "bufp->field_0x1c" identifier -> field_identifier) & number_literal) | (call_expression "(byte)((rpl_re_syntax_options >> 0x19 & 1) << 4)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((rpl_re_syntax_options >> 0x19 & 1) << 4)" ( (binary_expression "(rpl_re_syntax_options >> 0x19 & 1) << 4" (parenthesized_expression "(rpl_re_syntax_options >> 0x19 & 1)" ( (binary_expression "rpl_re_syntax_options >> 0x19 & 1" (binary_expression "rpl_re_syntax_options >> 0x19" identifier >> number_literal) & number_literal) )) << number_literal) )))) | number_literal)) ;) (expression_statement "rVar1 = re_compile_internal((regex_t *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)\n  ;" (assignment_expression "rVar1 = re_compile_internal((regex_t *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)" identifier = (call_expression "re_compile_internal((regex_t *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)" identifier (argument_list "((regex_t *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)" ( (cast_expression "(regex_t *)preg" ( (type_descriptor "regex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier )))) ;) (expression_statement "pcVar2 = (char *)0x0;" (assignment_expression "pcVar2 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (rVar1 != _REG_NOERROR) {\n    pcVar2 = (char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5);\n  }" if (parenthesized_expression "(rVar1 != _REG_NOERROR)" ( (binary_expression "rVar1 != _REG_NOERROR" identifier != identifier) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5)" identifier = (cast_expression "(char *)dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Success" + __re_error_msgid_idx[rVar1],5)" identifier (argument_list "(0,"Success" + __re_error_msgid_idx[rVar1],5)" ( number_literal , (binary_expression ""Success" + __re_error_msgid_idx[rVar1]" (string_literal ""Success"" " string_content ") + (subscript_expression "__re_error_msgid_idx[rVar1]" identifier [ identifier ])) , number_literal ))))) ;) })) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = DAT_00035328;\n  *(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;\n  iVar2 = FUN_00028780(uVar1);\n  uVar3 = 0;\n  if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = DAT_00035328;\n  *(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;\n  iVar2 = FUN_00028780(uVar1);\n  uVar3 = 0;\n  if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = DAT_00035328;\n  *(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;\n  iVar2 = FUN_00028780(uVar1);\n  uVar3 = 0;\n  if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = DAT_00035328;" (assignment_expression "uVar1 = DAT_00035328" identifier = identifier) ;) (expression_statement "*(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;" (assignment_expression "*(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80" (pointer_expression "*(byte *)(param_3 + 0x1c)" * (cast_expression "(byte *)(param_3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80" (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4)" (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef" (pointer_expression "*(byte *)(param_3 + 0x1c)" * (cast_expression "(byte *)(param_3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) & number_literal) | (call_expression "(byte)((DAT_00035328 >> 0x19 & 1) << 4)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((DAT_00035328 >> 0x19 & 1) << 4)" ( (binary_expression "(DAT_00035328 >> 0x19 & 1) << 4" (parenthesized_expression "(DAT_00035328 >> 0x19 & 1)" ( (binary_expression "DAT_00035328 >> 0x19 & 1" (binary_expression "DAT_00035328 >> 0x19" identifier >> number_literal) & number_literal) )) << number_literal) )))) | number_literal)) ;) (expression_statement "iVar2 = FUN_00028780(uVar1);" (assignment_expression "iVar2 = FUN_00028780(uVar1)" identifier = (call_expression "FUN_00028780(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }" { (expression_statement "uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);" (assignment_expression "uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" identifier = (call_expression "dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" identifier (argument_list "(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" ( number_literal , (binary_expression ""Success" + *(int *)(&DAT_0002e100 + iVar2 * 4)" (string_literal ""Success"" " string_content ") + (pointer_expression "*(int *)(&DAT_0002e100 + iVar2 * 4)" * (cast_expression "(int *)(&DAT_0002e100 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0002e100 + iVar2 * 4)" ( (binary_expression "&DAT_0002e100 + iVar2 * 4" (pointer_expression "&DAT_0002e100" & identifier) + (binary_expression "iVar2 * 4" identifier * number_literal)) ))))) , number_literal )))) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) )) << LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (binary_expression (string_literal " string_content ") + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) , LIT )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = DAT_00035328;\n  *(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;\n  iVar2 = FUN_00028780(uVar1);\n  uVar3 = 0;\n  if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_00029e20(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_00029e20") (parameter_list "(undefined4 param_1,undefined4 param_2,int 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 "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = DAT_00035328;\n  *(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;\n  iVar2 = FUN_00028780(uVar1);\n  uVar3 = 0;\n  if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }\n  return uVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar1 = DAT_00035328;" (assignment_expression "uVar1 = DAT_00035328" (identifier "uVar1") (= "=") (identifier "DAT_00035328")) (; ";")) (expression_statement "*(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;" (assignment_expression "*(byte *)(param_3 + 0x1c) =\n       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80" (pointer_expression "*(byte *)(param_3 + 0x1c)" (* "*") (cast_expression "(byte *)(param_3 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80" (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4)" (binary_expression "*(byte *)(param_3 + 0x1c) & 0xef" (pointer_expression "*(byte *)(param_3 + 0x1c)" (* "*") (cast_expression "(byte *)(param_3 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0xef")) (| "|") (call_expression "(byte)((DAT_00035328 >> 0x19 & 1) << 4)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((DAT_00035328 >> 0x19 & 1) << 4)" (( "(") (binary_expression "(DAT_00035328 >> 0x19 & 1) << 4" (parenthesized_expression "(DAT_00035328 >> 0x19 & 1)" (( "(") (binary_expression "DAT_00035328 >> 0x19 & 1" (binary_expression "DAT_00035328 >> 0x19" (identifier "DAT_00035328") (>> ">>") (number_literal "0x19")) (& "&") (number_literal "1")) () ")")) (<< "<<") (number_literal "4")) () ")")))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "iVar2 = FUN_00028780(uVar1);" (assignment_expression "iVar2 = FUN_00028780(uVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_00028780(uVar1)" (identifier "FUN_00028780") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);\n  }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);" (assignment_expression "uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" (identifier "dcgettext") (argument_list "(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5)" (( "(") (number_literal "0") (, ",") (binary_expression ""Success" + *(int *)(&DAT_0002e100 + iVar2 * 4)" (string_literal ""Success"" (" """) (string_content "Success") (" """)) (+ "+") (pointer_expression "*(int *)(&DAT_0002e100 + iVar2 * 4)" (* "*") (cast_expression "(int *)(&DAT_0002e100 + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0002e100 + iVar2 * 4)" (( "(") (binary_expression "&DAT_0002e100 + iVar2 * 4" (pointer_expression "&DAT_0002e100" (& "&") (identifier "DAT_0002e100")) (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")"))))) (, ",") (number_literal "5") () ")")))) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

char * function_1(char *pattern,size_t length,type_1 *bufp)

{
  type_2 preg;
  type_3 var_3;
  char *pcVar2;
  char *in_stack_ffffffe8;
  size_t in_stack_ffffffec;
  type_2 in_stack_fffffff0;
  
  preg = var_1;
  bufp->field_0x1c =
       bufp->field_0x1c & 0xef | (byte)((var_1 >> 0x19 & 1) << 4) | 0x80;
  var_3 = var_2((type_4 *)preg,in_stack_ffffffe8,in_stack_ffffffec,in_stack_fffffff0)
  ;
  pcVar2 = (char *)0x0;
  if (var_3 != var_4) {
    pcVar2 = (char *)var_5(0,"Success" + __re_error_msgid_idx[var_3],5);
  }
  return pcVar2;
}


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

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

undefined4 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar1 = DAT_00035328;
  *(byte *)(param_3 + 0x1c) =
       *(byte *)(param_3 + 0x1c) & 0xef | (byte)((DAT_00035328 >> 0x19 & 1) << 4) | 0x80;
  iVar2 = FUN_00028780(uVar1);
  uVar3 = 0;
  if (iVar2 != 0) {
    uVar3 = dcgettext(0,"Success" + *(int *)(&DAT_0002e100 + iVar2 * 4),5);
  }
  return uVar3;
}

