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

char * xmalloc_substitute_string(char *src,int count,char *sub,char *repl)

{
}



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

char * __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)

{
  size_t sVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  int iVar5;
  size_t sVar6;
  char *__dest;
  char *pcVar7;
  byte bVar8;
  
  bVar8 = 0;
  sVar1 = strlen(param_3);
  sVar2 = strlen(param_4);
  strlen(param_1);
  pcVar3 = (char *)FUN_00019b1c();
  __dest = pcVar3;
  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {
    iVar5 = (int)pcVar4 - (int)param_1;
    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {
      *__dest = *param_1;
      param_1 = param_1 + (uint)bVar8 * -2 + 1;
      __dest = __dest + (uint)bVar8 * -2 + 1;
    }
    for (; sVar6 != 0; sVar6 = sVar6 - 1) {
      *__dest = *pcVar7;
      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;
      __dest = __dest + (uint)bVar8 * -2 + 1;
    }
    param_1 = pcVar4 + sVar1;
  }
  strcpy(__dest,param_1);
  return pcVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x28
CALL 0x00017640
ADD EBX,0x1f5f9
MOV ESI,EAX
MOV EBP,EDX
MOV dword ptr [ESP + 0x18],ECX
PUSH ECX
CALL 0x00016b40
POP EDX
MOV dword ptr [ESP + 0xc],EAX
PUSH dword ptr [ESP + 0x3c]
CALL 0x00016b40
MOV EDI,EAX
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP],ESI
CALL 0x00016b40
ADD ESP,0x10
MOV ECX,EDI
SUB ECX,dword ptr [ESP]
IMUL ECX,EBP
LEA EAX,[EAX + ECX*0x1 + 0x1]
CALL 0x00019b1c
MOV dword ptr [ESP + 0x8],EAX
MOV EBP,EAX
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH ESI
CALL 0x00017590
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000b14a1
MOV ECX,EAX
SUB ECX,ESI
MOV EDI,EBP
MOVSB.REP ES:EDI,ESI
MOV ESI,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x4]
MOVSB.REP ES:EDI,ESI
MOV EBP,EDI
MOV EDX,dword ptr [ESP]
LEA ESI,[EAX + EDX*0x1]
JMP 0x000b1471
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x000167f0
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  sVar1 = strlen(param_3);\n  sVar2 = strlen(param_4);\n  strlen(param_1);\n  pcVar3 = (char *)FUN_00019b1c();\n  __dest = pcVar3;\n  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }\n  strcpy(__dest,param_1);\n  return pcVar3;\n}\n\n" comment (function_definition "char * __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  sVar1 = strlen(param_3);\n  sVar2 = strlen(param_4);\n  strlen(param_1);\n  pcVar3 = (char *)FUN_00019b1c();\n  __dest = pcVar3;\n  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }\n  strcpy(__dest,param_1);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)" identifier (parameter_list "(char *param_1,undefined4 param_2,char *param_3,char *param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  sVar1 = strlen(param_3);\n  sVar2 = strlen(param_4);\n  strlen(param_1);\n  pcVar3 = (char *)FUN_00019b1c();\n  __dest = pcVar3;\n  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }\n  strcpy(__dest,param_1);\n  return pcVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(param_3);" (assignment_expression "sVar1 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(param_4);" (assignment_expression "sVar2 = strlen(param_4)" identifier = (call_expression "strlen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "strlen(param_1);" (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "pcVar3 = (char *)FUN_00019b1c();" (assignment_expression "pcVar3 = (char *)FUN_00019b1c()" identifier = (cast_expression "(char *)FUN_00019b1c()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b1c()" identifier (argument_list "()" ( ))))) ;) (expression_statement "__dest = pcVar3;" (assignment_expression "__dest = pcVar3" identifier = identifier) ;) (while_statement "while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }" while (parenthesized_expression "(pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0)" ( (comma_expression "pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = strstr(param_1,param_3)" identifier = (call_expression "strstr(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) , (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }" { (expression_statement "iVar5 = (int)pcVar4 - (int)param_1;" (assignment_expression "iVar5 = (int)pcVar4 - (int)param_1" identifier = (binary_expression "(int)pcVar4 - (int)param_1" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (for_statement "for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" for ( ; (comma_expression "sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0" (assignment_expression "sVar6 = sVar2" identifier = identifier) , (comma_expression "pcVar7 = param_4, iVar5 != 0" (assignment_expression "pcVar7 = param_4" identifier = identifier) , (binary_expression "iVar5 != 0" identifier != number_literal))) ; (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ) (compound_statement "{\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" { (expression_statement "*__dest = *param_1;" (assignment_expression "*__dest = *param_1" (pointer_expression "*__dest" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (uint)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar8 * -2 + 1" (binary_expression "param_1 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "__dest = __dest + (uint)bVar8 * -2 + 1;" (assignment_expression "__dest = __dest + (uint)bVar8 * -2 + 1" identifier = (binary_expression "__dest + (uint)bVar8 * -2 + 1" (binary_expression "__dest + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (for_statement "for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" for ( ; (binary_expression "sVar6 != 0" identifier != number_literal) ; (assignment_expression "sVar6 = sVar6 - 1" identifier = (binary_expression "sVar6 - 1" identifier - number_literal)) ) (compound_statement "{\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" { (expression_statement "*__dest = *pcVar7;" (assignment_expression "*__dest = *pcVar7" (pointer_expression "*__dest" * identifier) = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pcVar7 + (uint)bVar8 * -2 + 1" (binary_expression "pcVar7 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "__dest = __dest + (uint)bVar8 * -2 + 1;" (assignment_expression "__dest = __dest + (uint)bVar8 * -2 + 1" identifier = (binary_expression "__dest + (uint)bVar8 * -2 + 1" (binary_expression "__dest + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "param_1 = pcVar4 + sVar1;" (assignment_expression "param_1 = pcVar4 + sVar1" identifier = (binary_expression "pcVar4 + sVar1" identifier + identifier)) ;) })) (expression_statement "strcpy(__dest,param_1);" (call_expression "strcpy(__dest,param_1)" identifier (argument_list "(__dest,param_1)" ( identifier , identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * xmalloc_substitute_string(char *src,int count,char *sub,char *repl)\n\n{\n}\n\n" comment (function_definition "char * xmalloc_substitute_string(char *src,int count,char *sub,char *repl)\n\n{\n}" primitive_type (pointer_declarator "* xmalloc_substitute_string(char *src,int count,char *sub,char *repl)" * (function_declarator "xmalloc_substitute_string(char *src,int count,char *sub,char *repl)" identifier (parameter_list "(char *src,int count,char *sub,char *repl)" ( (parameter_declaration "char *src" primitive_type (pointer_declarator "*src" * identifier)) , (parameter_declaration "int count" primitive_type identifier) , (parameter_declaration "char *sub" primitive_type (pointer_declarator "*sub" * identifier)) , (parameter_declaration "char *repl" primitive_type (pointer_declarator "*repl" * identifier)) )))) (compound_statement "{\n}" { })))
(translation_unit "char * __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  sVar1 = strlen(param_3);\n  sVar2 = strlen(param_4);\n  strlen(param_1);\n  pcVar3 = (char *)FUN_00019b1c();\n  __dest = pcVar3;\n  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }\n  strcpy(__dest,param_1);\n  return pcVar3;\n}\n\n" (function_definition "char * __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  sVar1 = strlen(param_3);\n  sVar2 = strlen(param_4);\n  strlen(param_1);\n  pcVar3 = (char *)FUN_00019b1c();\n  __dest = pcVar3;\n  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }\n  strcpy(__dest,param_1);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)" identifier (parameter_list "(char *param_1,undefined4 param_2,char *param_3,char *param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  sVar1 = strlen(param_3);\n  sVar2 = strlen(param_4);\n  strlen(param_1);\n  pcVar3 = (char *)FUN_00019b1c();\n  __dest = pcVar3;\n  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }\n  strcpy(__dest,param_1);\n  return pcVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "byte bVar8;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(param_3);" (assignment_expression "sVar1 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(param_4);" (assignment_expression "sVar2 = strlen(param_4)" identifier = (call_expression "strlen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) (expression_statement "strlen(param_1);" (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "pcVar3 = (char *)FUN_00019b1c();" (assignment_expression "pcVar3 = (char *)FUN_00019b1c()" identifier = (cast_expression "(char *)FUN_00019b1c()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b1c()" identifier (argument_list "()" ( ))))) ;) (expression_statement "__dest = pcVar3;" (assignment_expression "__dest = pcVar3" identifier = identifier) ;) (while_statement "while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }" while (parenthesized_expression "(pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0)" ( (comma_expression "pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = strstr(param_1,param_3)" identifier = (call_expression "strstr(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) , (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }" { (expression_statement "iVar5 = (int)pcVar4 - (int)param_1;" (assignment_expression "iVar5 = (int)pcVar4 - (int)param_1" identifier = (binary_expression "(int)pcVar4 - (int)param_1" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (for_statement "for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" for ( ; (comma_expression "sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0" (assignment_expression "sVar6 = sVar2" identifier = identifier) , (comma_expression "pcVar7 = param_4, iVar5 != 0" (assignment_expression "pcVar7 = param_4" identifier = identifier) , (binary_expression "iVar5 != 0" identifier != number_literal))) ; (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ) (compound_statement "{\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" { (expression_statement "*__dest = *param_1;" (assignment_expression "*__dest = *param_1" (pointer_expression "*__dest" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + (uint)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "param_1 + (uint)bVar8 * -2 + 1" (binary_expression "param_1 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "__dest = __dest + (uint)bVar8 * -2 + 1;" (assignment_expression "__dest = __dest + (uint)bVar8 * -2 + 1" identifier = (binary_expression "__dest + (uint)bVar8 * -2 + 1" (binary_expression "__dest + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (for_statement "for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" for ( ; (binary_expression "sVar6 != 0" identifier != number_literal) ; (assignment_expression "sVar6 = sVar6 - 1" identifier = (binary_expression "sVar6 - 1" identifier - number_literal)) ) (compound_statement "{\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" { (expression_statement "*__dest = *pcVar7;" (assignment_expression "*__dest = *pcVar7" (pointer_expression "*__dest" * identifier) = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pcVar7 + (uint)bVar8 * -2 + 1" (binary_expression "pcVar7 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "__dest = __dest + (uint)bVar8 * -2 + 1;" (assignment_expression "__dest = __dest + (uint)bVar8 * -2 + 1" identifier = (binary_expression "__dest + (uint)bVar8 * -2 + 1" (binary_expression "__dest + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "param_1 = pcVar4 + sVar1;" (assignment_expression "param_1 = pcVar4 + sVar1" identifier = (binary_expression "pcVar4 + sVar1" identifier + identifier)) ;) })) (expression_statement "strcpy(__dest,param_1);" (call_expression "strcpy(__dest,param_1)" identifier (argument_list "(__dest,param_1)" ( identifier , identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (for_statement for ( ; (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT))) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (for_statement for ( ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "char * __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  sVar1 = strlen(param_3);\n  sVar2 = strlen(param_4);\n  strlen(param_1);\n  pcVar3 = (char *)FUN_00019b1c();\n  __dest = pcVar3;\n  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }\n  strcpy(__dest,param_1);\n  return pcVar3;\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000b141b(char *param_1,undefined4 param_2,char *param_3,char *param_4)" (identifier "FUN_000b141b") (parameter_list "(char *param_1,undefined4 param_2,char *param_3,char *param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")")))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  int iVar5;\n  size_t sVar6;\n  char *__dest;\n  char *pcVar7;\n  byte bVar8;\n  \n  bVar8 = 0;\n  sVar1 = strlen(param_3);\n  sVar2 = strlen(param_4);\n  strlen(param_1);\n  pcVar3 = (char *)FUN_00019b1c();\n  __dest = pcVar3;\n  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }\n  strcpy(__dest,param_1);\n  return pcVar3;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" (identifier "bVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar1 = strlen(param_3);" (assignment_expression "sVar1 = strlen(param_3)" (identifier "sVar1") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "sVar2 = strlen(param_4);" (assignment_expression "sVar2 = strlen(param_4)" (identifier "sVar2") (= "=") (call_expression "strlen(param_4)" (identifier "strlen") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (expression_statement "strlen(param_1);" (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "pcVar3 = (char *)FUN_00019b1c();" (assignment_expression "pcVar3 = (char *)FUN_00019b1c()" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_00019b1c()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019b1c()" (identifier "FUN_00019b1c") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "__dest = pcVar3;" (assignment_expression "__dest = pcVar3" (identifier "__dest") (= "=") (identifier "pcVar3")) (; ";")) (while_statement "while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }" (while "while") (parenthesized_expression "(pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0)" (( "(") (comma_expression "pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = strstr(param_1,param_3)" (identifier "pcVar4") (= "=") (call_expression "strstr(param_1,param_3)" (identifier "strstr") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")) (compound_statement "{\n    iVar5 = (int)pcVar4 - (int)param_1;\n    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }\n    param_1 = pcVar4 + sVar1;\n  }" ({ "{") (expression_statement "iVar5 = (int)pcVar4 - (int)param_1;" (assignment_expression "iVar5 = (int)pcVar4 - (int)param_1" (identifier "iVar5") (= "=") (binary_expression "(int)pcVar4 - (int)param_1" (cast_expression "(int)pcVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar4")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (for_statement "for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" (for "for") (( "(") (; ";") (comma_expression "sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0" (assignment_expression "sVar6 = sVar2" (identifier "sVar6") (= "=") (identifier "sVar2")) (, ",") (comma_expression "pcVar7 = param_4, iVar5 != 0" (assignment_expression "pcVar7 = param_4" (identifier "pcVar7") (= "=") (identifier "param_4")) (, ",") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")))) (; ";") (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      *__dest = *param_1;\n      param_1 = param_1 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" ({ "{") (expression_statement "*__dest = *param_1;" (assignment_expression "*__dest = *param_1" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + (uint)bVar8 * -2 + 1;" (assignment_expression "param_1 = param_1 + (uint)bVar8 * -2 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + (uint)bVar8 * -2 + 1" (binary_expression "param_1 + (uint)bVar8 * -2" (identifier "param_1") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__dest = __dest + (uint)bVar8 * -2 + 1;" (assignment_expression "__dest = __dest + (uint)bVar8 * -2 + 1" (identifier "__dest") (= "=") (binary_expression "__dest + (uint)bVar8 * -2 + 1" (binary_expression "__dest + (uint)bVar8 * -2" (identifier "__dest") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (for_statement "for (; sVar6 != 0; sVar6 = sVar6 - 1) {\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" (for "for") (( "(") (; ";") (binary_expression "sVar6 != 0" (identifier "sVar6") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "sVar6 = sVar6 - 1" (identifier "sVar6") (= "=") (binary_expression "sVar6 - 1" (identifier "sVar6") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *__dest = *pcVar7;\n      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;\n      __dest = __dest + (uint)bVar8 * -2 + 1;\n    }" ({ "{") (expression_statement "*__dest = *pcVar7;" (assignment_expression "*__dest = *pcVar7" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + (uint)bVar8 * -2 + 1" (binary_expression "pcVar7 + (uint)bVar8 * -2" (identifier "pcVar7") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__dest = __dest + (uint)bVar8 * -2 + 1;" (assignment_expression "__dest = __dest + (uint)bVar8 * -2 + 1" (identifier "__dest") (= "=") (binary_expression "__dest + (uint)bVar8 * -2 + 1" (binary_expression "__dest + (uint)bVar8 * -2" (identifier "__dest") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "param_1 = pcVar4 + sVar1;" (assignment_expression "param_1 = pcVar4 + sVar1" (identifier "param_1") (= "=") (binary_expression "pcVar4 + sVar1" (identifier "pcVar4") (+ "+") (identifier "sVar1"))) (; ";")) (} "}"))) (expression_statement "strcpy(__dest,param_1);" (call_expression "strcpy(__dest,param_1)" (identifier "strcpy") (argument_list "(__dest,param_1)" (( "(") (identifier "__dest") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}")))

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

char * function_1(char *src,int count,char *sub,char *repl)

{
}


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

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

char * __regparm3 MASKED(char *param_1,undefined4 param_2,char *param_3,char *param_4)

{
  size_t sVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  int iVar5;
  size_t sVar6;
  char *__dest;
  char *pcVar7;
  byte bVar8;
  
  bVar8 = 0;
  sVar1 = strlen(param_3);
  sVar2 = strlen(param_4);
  strlen(param_1);
  pcVar3 = (char *)FUN_00019b1c();
  __dest = pcVar3;
  while (pcVar4 = strstr(param_1,param_3), pcVar4 != (char *)0x0) {
    iVar5 = (int)pcVar4 - (int)param_1;
    for (; sVar6 = sVar2, pcVar7 = param_4, iVar5 != 0; iVar5 = iVar5 + -1) {
      *__dest = *param_1;
      param_1 = param_1 + (uint)bVar8 * -2 + 1;
      __dest = __dest + (uint)bVar8 * -2 + 1;
    }
    for (; sVar6 != 0; sVar6 = sVar6 - 1) {
      *__dest = *pcVar7;
      pcVar7 = pcVar7 + (uint)bVar8 * -2 + 1;
      __dest = __dest + (uint)bVar8 * -2 + 1;
    }
    param_1 = pcVar4 + sVar1;
  }
  strcpy(__dest,param_1);
  return pcVar3;
}

