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

char * extract_process_subst(char *string,char *starter,int *sindex,int xflags)

{
  char *pcVar1;
  
  if (no_longjmp_on_fatal_error != 0) {
    xflags = xflags | 0x40;
  }
  pcVar1 = xparse_dolparen(string,string + *sindex,sindex,xflags);
  return pcVar1;
}



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

void extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)

{
  if (no_longjmp_on_fatal_error != 0) {
    param_4 = param_4 | 0x40;
  }
  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);
  return;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0xe1b6a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
CMP dword ptr [EBX + 0x704c],0x0
JZ 0x000684b7
OR ECX,0x40
PUSH ECX
PUSH EDX
MOV ECX,dword ptr [EDX]
ADD ECX,EAX
PUSH ECX
PUSH EAX
CALL 0x00040900
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)\n\n{\n  if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }\n  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);\n  return;\n}\n\n" comment (function_definition "void extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)\n\n{\n  if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }\n  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int *param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }\n  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);\n  return;\n}" { (if_statement "if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }" if (parenthesized_expression "(no_longjmp_on_fatal_error != 0)" ( (binary_expression "no_longjmp_on_fatal_error != 0" identifier != number_literal) )) (compound_statement "{\n    param_4 = param_4 | 0x40;\n  }" { (expression_statement "param_4 = param_4 | 0x40;" (assignment_expression "param_4 = param_4 | 0x40" identifier = (binary_expression "param_4 | 0x40" identifier | number_literal)) ;) })) (expression_statement "xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);" (call_expression "xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4)" identifier (argument_list "(param_1,*param_3 + param_1,param_3,param_4)" ( identifier , (binary_expression "*param_3 + param_1" (pointer_expression "*param_3" * identifier) + identifier) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * extract_process_subst(char *string,char *starter,int *sindex,int xflags)\n\n{\n  char *pcVar1;\n  \n  if (no_longjmp_on_fatal_error != 0) {\n    xflags = xflags | 0x40;\n  }\n  pcVar1 = xparse_dolparen(string,string + *sindex,sindex,xflags);\n  return pcVar1;\n}\n\n" comment (function_definition "char * extract_process_subst(char *string,char *starter,int *sindex,int xflags)\n\n{\n  char *pcVar1;\n  \n  if (no_longjmp_on_fatal_error != 0) {\n    xflags = xflags | 0x40;\n  }\n  pcVar1 = xparse_dolparen(string,string + *sindex,sindex,xflags);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* extract_process_subst(char *string,char *starter,int *sindex,int xflags)" * (function_declarator "extract_process_subst(char *string,char *starter,int *sindex,int xflags)" identifier (parameter_list "(char *string,char *starter,int *sindex,int xflags)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "char *starter" primitive_type (pointer_declarator "*starter" * identifier)) , (parameter_declaration "int *sindex" primitive_type (pointer_declarator "*sindex" * identifier)) , (parameter_declaration "int xflags" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (no_longjmp_on_fatal_error != 0) {\n    xflags = xflags | 0x40;\n  }\n  pcVar1 = xparse_dolparen(string,string + *sindex,sindex,xflags);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (no_longjmp_on_fatal_error != 0) {\n    xflags = xflags | 0x40;\n  }" if (parenthesized_expression "(no_longjmp_on_fatal_error != 0)" ( (binary_expression "no_longjmp_on_fatal_error != 0" identifier != number_literal) )) (compound_statement "{\n    xflags = xflags | 0x40;\n  }" { (expression_statement "xflags = xflags | 0x40;" (assignment_expression "xflags = xflags | 0x40" identifier = (binary_expression "xflags | 0x40" identifier | number_literal)) ;) })) (expression_statement "pcVar1 = xparse_dolparen(string,string + *sindex,sindex,xflags);" (assignment_expression "pcVar1 = xparse_dolparen(string,string + *sindex,sindex,xflags)" identifier = (call_expression "xparse_dolparen(string,string + *sindex,sindex,xflags)" identifier (argument_list "(string,string + *sindex,sindex,xflags)" ( identifier , (binary_expression "string + *sindex" identifier + (pointer_expression "*sindex" * identifier)) , identifier , identifier )))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)\n\n{\n  if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }\n  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);\n  return;\n}\n\n" (function_definition "void extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)\n\n{\n  if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }\n  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int *param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }\n  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);\n  return;\n}" { (if_statement "if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }" if (parenthesized_expression "(no_longjmp_on_fatal_error != 0)" ( (binary_expression "no_longjmp_on_fatal_error != 0" identifier != number_literal) )) (compound_statement "{\n    param_4 = param_4 | 0x40;\n  }" { (expression_statement "param_4 = param_4 | 0x40;" (assignment_expression "param_4 = param_4 | 0x40" identifier = (binary_expression "param_4 | 0x40" identifier | number_literal)) ;) })) (expression_statement "xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);" (call_expression "xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4)" identifier (argument_list "(param_1,*param_3 + param_1,param_3,param_4)" ( identifier , (binary_expression "*param_3 + param_1" (pointer_expression "*param_3" * identifier) + identifier) , 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)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * IDENT) + IDENT) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)\n\n{\n  if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }\n  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);\n  return;\n}" (primitive_type "void") (function_declarator "extract_process_subst(int param_1,undefined4 param_2,int *param_3,uint param_4)" (identifier "extract_process_subst") (parameter_list "(int param_1,undefined4 param_2,int *param_3,uint param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }\n  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);\n  return;\n}" ({ "{") (if_statement "if (no_longjmp_on_fatal_error != 0) {\n    param_4 = param_4 | 0x40;\n  }" (if "if") (parenthesized_expression "(no_longjmp_on_fatal_error != 0)" (( "(") (binary_expression "no_longjmp_on_fatal_error != 0" (identifier "no_longjmp_on_fatal_error") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_4 = param_4 | 0x40;\n  }" ({ "{") (expression_statement "param_4 = param_4 | 0x40;" (assignment_expression "param_4 = param_4 | 0x40" (identifier "param_4") (= "=") (binary_expression "param_4 | 0x40" (identifier "param_4") (| "|") (number_literal "0x40"))) (; ";")) (} "}"))) (expression_statement "xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);" (call_expression "xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4)" (identifier "xparse_dolparen") (argument_list "(param_1,*param_3 + param_1,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (binary_expression "*param_3 + param_1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (identifier "param_1")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * function_1(char *var_4,char *starter,int *sindex,int var_2)

{
  char *pcVar1;
  
  if (var_1 != 0) {
    var_2 = var_2 | 0x40;
  }
  pcVar1 = var_3(var_4,var_4 + *sindex,sindex,var_2);
  return pcVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) (identifier) (identifier)))) (return_statement))))

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

void MASKED(int param_1,undefined4 param_2,int *param_3,uint param_4)

{
  if (no_longjmp_on_fatal_error != 0) {
    param_4 = param_4 | 0x40;
  }
  xparse_dolparen(param_1,*param_3 + param_1,param_3,param_4);
  return;
}

