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

void __regparm3 make_format(char *pformat,size_t prefix_len,char *allowed_flags,char *suffix)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  char *__dest;
  
  pcVar5 = pformat + 1;
  pcVar1 = pformat + prefix_len;
  __dest = pcVar5;
  do {
    if (pcVar1 <= pcVar5) {
LAB_00012ec8:
      strcpy(__dest,suffix);
      return;
    }
    cVar4 = *pcVar5;
    pcVar3 = strchr("\'-+ #0I",(int)cVar4);
    if (pcVar3 == (char *)0x0) {
      if (pcVar5 < pcVar1) {
        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);
        pcVar1 = __dest;
        while( true ) {
          __dest = pcVar1 + 1;
          pcVar5 = pcVar5 + 1;
          *pcVar1 = cVar4;
          if (__dest == pcVar3) break;
          cVar4 = *pcVar5;
          pcVar1 = __dest;
        }
      }
      goto LAB_00012ec8;
    }
    pcVar2 = strchr(allowed_flags,(int)cVar4);
    pcVar3 = __dest;
    if (pcVar2 != (char *)0x0) {
      pcVar3 = __dest + 1;
      *__dest = cVar4;
    }
    pcVar5 = pcVar5 + 1;
    __dest = pcVar3;
  } while( true );
}



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

void __regparm3 FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  char *__dest;
  
  pcVar5 = (char *)(param_1 + 1);
  pcVar1 = (char *)(param_1 + param_2);
  __dest = pcVar5;
  do {
    if (pcVar1 <= pcVar5) {
LAB_00012ec8:
      strcpy(__dest,param_4);
      return;
    }
    cVar4 = *pcVar5;
    pcVar3 = strchr("\'-+ #0I",(int)cVar4);
    if (pcVar3 == (char *)0x0) {
      if (pcVar5 < pcVar1) {
        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);
        pcVar1 = __dest;
        while( true ) {
          __dest = pcVar1 + 1;
          pcVar5 = pcVar5 + 1;
          *pcVar1 = cVar4;
          if (__dest == pcVar3) break;
          cVar4 = *pcVar5;
          pcVar1 = __dest;
        }
      }
      goto LAB_00012ec8;
    }
    pcVar2 = strchr(param_3,(int)cVar4);
    pcVar3 = __dest;
    if (pcVar2 != (char *)0x0) {
      pcVar3 = __dest + 1;
      *__dest = cVar4;
    }
    pcVar5 = pcVar5 + 1;
    __dest = pcVar3;
  } while( true );
}


PUSH EBP
PUSH EDI
LEA EDI,[EAX + 0x1]
ADD EAX,EDX
PUSH ESI
MOV ESI,EDI
PUSH EBX
CALL 0x00012ce0
ADD EBX,0x181d0
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [ESP + 0x4],EAX
LEA ECX,[EBX + 0xffff7884]
MOV dword ptr [ESP + 0x8],ECX
CMP EDI,EAX
JC 0x00012e80
JMP 0x00012ec8
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [ESP + 0x18]
CALL 0x00012340
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00012e77
MOVZX EAX,byte ptr [ESP + 0x3]
ADD EDI,0x1
MOV byte ptr [EDI + -0x1],AL
ADD ESI,0x1
CMP dword ptr [ESP + 0x4],ESI
JBE 0x00012ec8
MOVSX EBP,byte ptr [ESI]
SUB ESP,0x8
MOV EAX,EBP
MOV byte ptr [ESP + 0xb],AL
PUSH EBP
PUSH dword ptr [ESP + 0x14]
CALL 0x00012340
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00012e58
MOV EAX,dword ptr [ESP + 0x4]
MOVZX EBP,byte ptr [ESP + 0x3]
CMP ESI,EAX
JNC 0x00012ec8
SUB EAX,ESI
MOV EDX,EBP
ADD EAX,EDI
JMP 0x00012ebb
MOVZX EDX,byte ptr [ESI]
ADD EDI,0x1
ADD ESI,0x1
MOV byte ptr [EDI + -0x1],DL
CMP EDI,EAX
JNZ 0x00012eb8
SUB ESP,0x8
PUSH dword ptr [ESP + 0x38]
PUSH EDI
CALL 0x00012230
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = (char *)(param_1 + 1);\n  pcVar1 = (char *)(param_1 + param_2);\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = (char *)(param_1 + 1);\n  pcVar1 = (char *)(param_1 + param_2);\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)" identifier (parameter_list "(int param_1,int param_2,char *param_3,char *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type 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  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = (char *)(param_1 + 1);\n  pcVar1 = (char *)(param_1 + param_2);\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "pcVar5 = (char *)(param_1 + 1);" (assignment_expression "pcVar5 = (char *)(param_1 + 1)" identifier = (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar1 = (char *)(param_1 + param_2);" (assignment_expression "pcVar1 = (char *)(param_1 + param_2)" identifier = (cast_expression "(char *)(param_1 + param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2)" ( (binary_expression "param_1 + param_2" identifier + identifier) )))) ;) (expression_statement "__dest = pcVar5;" (assignment_expression "__dest = pcVar5" identifier = identifier) ;) (do_statement "do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );" do (compound_statement "{\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  }" { (if_statement "if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }" if (parenthesized_expression "(pcVar1 <= pcVar5)" ( (binary_expression "pcVar1 <= pcVar5" identifier <= identifier) )) (compound_statement "{\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }" { (labeled_statement "LAB_00012ec8:\n      strcpy(__dest,param_4);" statement_identifier : (expression_statement "strcpy(__dest,param_4);" (call_expression "strcpy(__dest,param_4)" identifier (argument_list "(__dest,param_4)" ( identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar3 = strchr("\'-+ #0I",(int)cVar4);" (assignment_expression "pcVar3 = strchr("\'-+ #0I",(int)cVar4)" identifier = (call_expression "strchr("\'-+ #0I",(int)cVar4)" identifier (argument_list "("\'-+ #0I",(int)cVar4)" ( (string_literal ""\'-+ #0I"" " escape_sequence string_content ") , (cast_expression "(int)cVar4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }" { (if_statement "if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }" if (parenthesized_expression "(pcVar5 < pcVar1)" ( (binary_expression "pcVar5 < pcVar1" identifier < identifier) )) (compound_statement "{\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }" { (expression_statement "pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);" (assignment_expression "pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5)" identifier = (binary_expression "__dest + ((int)pcVar1 - (int)pcVar5)" identifier + (parenthesized_expression "((int)pcVar1 - (int)pcVar5)" ( (binary_expression "(int)pcVar1 - (int)pcVar5" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar1 = __dest;" (assignment_expression "pcVar1 = __dest" identifier = identifier) ;) (while_statement "while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }" { (expression_statement "__dest = pcVar1 + 1;" (assignment_expression "__dest = pcVar1 + 1" identifier = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = cVar4;" (assignment_expression "*pcVar1 = cVar4" (pointer_expression "*pcVar1" * identifier) = identifier) ;) (if_statement "if (__dest == pcVar3) break;" if (parenthesized_expression "(__dest == pcVar3)" ( (binary_expression "__dest == pcVar3" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar1 = __dest;" (assignment_expression "pcVar1 = __dest" identifier = identifier) ;) })) })) (goto_statement "goto LAB_00012ec8;" goto statement_identifier ;) })) (expression_statement "pcVar2 = strchr(param_3,(int)cVar4);" (assignment_expression "pcVar2 = strchr(param_3,(int)cVar4)" identifier = (call_expression "strchr(param_3,(int)cVar4)" identifier (argument_list "(param_3,(int)cVar4)" ( identifier , (cast_expression "(int)cVar4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "pcVar3 = __dest;" (assignment_expression "pcVar3 = __dest" identifier = identifier) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }" { (expression_statement "pcVar3 = __dest + 1;" (assignment_expression "pcVar3 = __dest + 1" identifier = (binary_expression "__dest + 1" identifier + number_literal)) ;) (expression_statement "*__dest = cVar4;" (assignment_expression "*__dest = cVar4" (pointer_expression "*__dest" * identifier) = identifier) ;) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "__dest = pcVar3;" (assignment_expression "__dest = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 make_format(char *pformat,size_t prefix_len,char *allowed_flags,char *suffix)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = pformat + 1;\n  pcVar1 = pformat + prefix_len;\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,suffix);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(allowed_flags,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 make_format(char *pformat,size_t prefix_len,char *allowed_flags,char *suffix)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = pformat + 1;\n  pcVar1 = pformat + prefix_len;\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,suffix);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(allowed_flags,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "make_format(char *pformat,size_t prefix_len,char *allowed_flags,char *suffix)" identifier (parameter_list "(char *pformat,size_t prefix_len,char *allowed_flags,char *suffix)" ( (parameter_declaration "char *pformat" primitive_type (pointer_declarator "*pformat" * identifier)) , (parameter_declaration "size_t prefix_len" primitive_type identifier) , (parameter_declaration "char *allowed_flags" primitive_type (pointer_declarator "*allowed_flags" * identifier)) , (parameter_declaration "char *suffix" primitive_type (pointer_declarator "*suffix" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = pformat + 1;\n  pcVar1 = pformat + prefix_len;\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,suffix);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(allowed_flags,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "pcVar5 = pformat + 1;" (assignment_expression "pcVar5 = pformat + 1" identifier = (binary_expression "pformat + 1" identifier + number_literal)) ;) (expression_statement "pcVar1 = pformat + prefix_len;" (assignment_expression "pcVar1 = pformat + prefix_len" identifier = (binary_expression "pformat + prefix_len" identifier + identifier)) ;) (expression_statement "__dest = pcVar5;" (assignment_expression "__dest = pcVar5" identifier = identifier) ;) (do_statement "do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,suffix);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(allowed_flags,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );" do (compound_statement "{\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,suffix);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(allowed_flags,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  }" { (if_statement "if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,suffix);\n      return;\n    }" if (parenthesized_expression "(pcVar1 <= pcVar5)" ( (binary_expression "pcVar1 <= pcVar5" identifier <= identifier) )) (compound_statement "{\nLAB_00012ec8:\n      strcpy(__dest,suffix);\n      return;\n    }" { (labeled_statement "LAB_00012ec8:\n      strcpy(__dest,suffix);" statement_identifier : (expression_statement "strcpy(__dest,suffix);" (call_expression "strcpy(__dest,suffix)" identifier (argument_list "(__dest,suffix)" ( identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar3 = strchr("\'-+ #0I",(int)cVar4);" (assignment_expression "pcVar3 = strchr("\'-+ #0I",(int)cVar4)" identifier = (call_expression "strchr("\'-+ #0I",(int)cVar4)" identifier (argument_list "("\'-+ #0I",(int)cVar4)" ( (string_literal ""\'-+ #0I"" " escape_sequence string_content ") , (cast_expression "(int)cVar4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }" { (if_statement "if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }" if (parenthesized_expression "(pcVar5 < pcVar1)" ( (binary_expression "pcVar5 < pcVar1" identifier < identifier) )) (compound_statement "{\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }" { (expression_statement "pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);" (assignment_expression "pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5)" identifier = (binary_expression "__dest + ((int)pcVar1 - (int)pcVar5)" identifier + (parenthesized_expression "((int)pcVar1 - (int)pcVar5)" ( (binary_expression "(int)pcVar1 - (int)pcVar5" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar1 = __dest;" (assignment_expression "pcVar1 = __dest" identifier = identifier) ;) (while_statement "while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }" { (expression_statement "__dest = pcVar1 + 1;" (assignment_expression "__dest = pcVar1 + 1" identifier = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = cVar4;" (assignment_expression "*pcVar1 = cVar4" (pointer_expression "*pcVar1" * identifier) = identifier) ;) (if_statement "if (__dest == pcVar3) break;" if (parenthesized_expression "(__dest == pcVar3)" ( (binary_expression "__dest == pcVar3" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar1 = __dest;" (assignment_expression "pcVar1 = __dest" identifier = identifier) ;) })) })) (goto_statement "goto LAB_00012ec8;" goto statement_identifier ;) })) (expression_statement "pcVar2 = strchr(allowed_flags,(int)cVar4);" (assignment_expression "pcVar2 = strchr(allowed_flags,(int)cVar4)" identifier = (call_expression "strchr(allowed_flags,(int)cVar4)" identifier (argument_list "(allowed_flags,(int)cVar4)" ( identifier , (cast_expression "(int)cVar4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "pcVar3 = __dest;" (assignment_expression "pcVar3 = __dest" identifier = identifier) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }" { (expression_statement "pcVar3 = __dest + 1;" (assignment_expression "pcVar3 = __dest + 1" identifier = (binary_expression "__dest + 1" identifier + number_literal)) ;) (expression_statement "*__dest = cVar4;" (assignment_expression "*__dest = cVar4" (pointer_expression "*__dest" * identifier) = identifier) ;) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "__dest = pcVar3;" (assignment_expression "__dest = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __regparm3 FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = (char *)(param_1 + 1);\n  pcVar1 = (char *)(param_1 + param_2);\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}\n\n" (function_definition "void __regparm3 FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = (char *)(param_1 + 1);\n  pcVar1 = (char *)(param_1 + param_2);\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)" identifier (parameter_list "(int param_1,int param_2,char *param_3,char *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type 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  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = (char *)(param_1 + 1);\n  pcVar1 = (char *)(param_1 + param_2);\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "pcVar5 = (char *)(param_1 + 1);" (assignment_expression "pcVar5 = (char *)(param_1 + 1)" identifier = (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar1 = (char *)(param_1 + param_2);" (assignment_expression "pcVar1 = (char *)(param_1 + param_2)" identifier = (cast_expression "(char *)(param_1 + param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2)" ( (binary_expression "param_1 + param_2" identifier + identifier) )))) ;) (expression_statement "__dest = pcVar5;" (assignment_expression "__dest = pcVar5" identifier = identifier) ;) (do_statement "do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );" do (compound_statement "{\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  }" { (if_statement "if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }" if (parenthesized_expression "(pcVar1 <= pcVar5)" ( (binary_expression "pcVar1 <= pcVar5" identifier <= identifier) )) (compound_statement "{\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }" { (labeled_statement "LAB_00012ec8:\n      strcpy(__dest,param_4);" statement_identifier : (expression_statement "strcpy(__dest,param_4);" (call_expression "strcpy(__dest,param_4)" identifier (argument_list "(__dest,param_4)" ( identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar3 = strchr("\'-+ #0I",(int)cVar4);" (assignment_expression "pcVar3 = strchr("\'-+ #0I",(int)cVar4)" identifier = (call_expression "strchr("\'-+ #0I",(int)cVar4)" identifier (argument_list "("\'-+ #0I",(int)cVar4)" ( (string_literal ""\'-+ #0I"" " escape_sequence string_content ") , (cast_expression "(int)cVar4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }" { (if_statement "if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }" if (parenthesized_expression "(pcVar5 < pcVar1)" ( (binary_expression "pcVar5 < pcVar1" identifier < identifier) )) (compound_statement "{\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }" { (expression_statement "pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);" (assignment_expression "pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5)" identifier = (binary_expression "__dest + ((int)pcVar1 - (int)pcVar5)" identifier + (parenthesized_expression "((int)pcVar1 - (int)pcVar5)" ( (binary_expression "(int)pcVar1 - (int)pcVar5" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar1 = __dest;" (assignment_expression "pcVar1 = __dest" identifier = identifier) ;) (while_statement "while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }" { (expression_statement "__dest = pcVar1 + 1;" (assignment_expression "__dest = pcVar1 + 1" identifier = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = cVar4;" (assignment_expression "*pcVar1 = cVar4" (pointer_expression "*pcVar1" * identifier) = identifier) ;) (if_statement "if (__dest == pcVar3) break;" if (parenthesized_expression "(__dest == pcVar3)" ( (binary_expression "__dest == pcVar3" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar1 = __dest;" (assignment_expression "pcVar1 = __dest" identifier = identifier) ;) })) })) (goto_statement "goto LAB_00012ec8;" goto statement_identifier ;) })) (expression_statement "pcVar2 = strchr(param_3,(int)cVar4);" (assignment_expression "pcVar2 = strchr(param_3,(int)cVar4)" identifier = (call_expression "strchr(param_3,(int)cVar4)" identifier (argument_list "(param_3,(int)cVar4)" ( identifier , (cast_expression "(int)cVar4" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "pcVar3 = __dest;" (assignment_expression "pcVar3 = __dest" identifier = identifier) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }" { (expression_statement "pcVar3 = __dest + 1;" (assignment_expression "pcVar3 = __dest + 1" identifier = (binary_expression "__dest + 1" identifier + number_literal)) ;) (expression_statement "*__dest = cVar4;" (assignment_expression "*__dest = cVar4" (pointer_expression "*__dest" * identifier) = identifier) ;) })) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (expression_statement "__dest = pcVar3;" (assignment_expression "__dest = pcVar3" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;)) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3 FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = (char *)(param_1 + 1);\n  pcVar1 = (char *)(param_1 + param_2);\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00012e20(int param_1,int param_2,char *param_3,char *param_4)" (identifier "FUN_00012e20") (parameter_list "(int param_1,int param_2,char *param_3,char *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (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  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  char *pcVar5;\n  char *__dest;\n  \n  pcVar5 = (char *)(param_1 + 1);\n  pcVar1 = (char *)(param_1 + param_2);\n  __dest = pcVar5;\n  do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "pcVar5 = (char *)(param_1 + 1);" (assignment_expression "pcVar5 = (char *)(param_1 + 1)" (identifier "pcVar5") (= "=") (cast_expression "(char *)(param_1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pcVar1 = (char *)(param_1 + param_2);" (assignment_expression "pcVar1 = (char *)(param_1 + param_2)" (identifier "pcVar1") (= "=") (cast_expression "(char *)(param_1 + param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + param_2)" (( "(") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "__dest = pcVar5;" (assignment_expression "__dest = pcVar5" (identifier "__dest") (= "=") (identifier "pcVar5")) (; ";")) (do_statement "do {\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  } while( true );" (do "do") (compound_statement "{\n    if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }\n    cVar4 = *pcVar5;\n    pcVar3 = strchr("\'-+ #0I",(int)cVar4);\n    if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }\n    pcVar2 = strchr(param_3,(int)cVar4);\n    pcVar3 = __dest;\n    if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }\n    pcVar5 = pcVar5 + 1;\n    __dest = pcVar3;\n  }" ({ "{") (if_statement "if (pcVar1 <= pcVar5) {\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }" (if "if") (parenthesized_expression "(pcVar1 <= pcVar5)" (( "(") (binary_expression "pcVar1 <= pcVar5" (identifier "pcVar1") (<= "<=") (identifier "pcVar5")) () ")")) (compound_statement "{\nLAB_00012ec8:\n      strcpy(__dest,param_4);\n      return;\n    }" ({ "{") (labeled_statement "LAB_00012ec8:\n      strcpy(__dest,param_4);" (statement_identifier "LAB_00012ec8") (: ":") (expression_statement "strcpy(__dest,param_4);" (call_expression "strcpy(__dest,param_4)" (identifier "strcpy") (argument_list "(__dest,param_4)" (( "(") (identifier "__dest") (, ",") (identifier "param_4") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" (identifier "cVar4") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (expression_statement "pcVar3 = strchr("\'-+ #0I",(int)cVar4);" (assignment_expression "pcVar3 = strchr("\'-+ #0I",(int)cVar4)" (identifier "pcVar3") (= "=") (call_expression "strchr("\'-+ #0I",(int)cVar4)" (identifier "strchr") (argument_list "("\'-+ #0I",(int)cVar4)" (( "(") (string_literal ""\'-+ #0I"" (" """) (escape_sequence "\'") (string_content "-+ #0I") (" """)) (, ",") (cast_expression "(int)cVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar4")) () ")")))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }\n      goto LAB_00012ec8;\n    }" ({ "{") (if_statement "if (pcVar5 < pcVar1) {\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }" (if "if") (parenthesized_expression "(pcVar5 < pcVar1)" (( "(") (binary_expression "pcVar5 < pcVar1" (identifier "pcVar5") (< "<") (identifier "pcVar1")) () ")")) (compound_statement "{\n        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);\n        pcVar1 = __dest;\n        while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }\n      }" ({ "{") (expression_statement "pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);" (assignment_expression "pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5)" (identifier "pcVar3") (= "=") (binary_expression "__dest + ((int)pcVar1 - (int)pcVar5)" (identifier "__dest") (+ "+") (parenthesized_expression "((int)pcVar1 - (int)pcVar5)" (( "(") (binary_expression "(int)pcVar1 - (int)pcVar5" (cast_expression "(int)pcVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar1")) (- "-") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) () ")")))) (; ";")) (expression_statement "pcVar1 = __dest;" (assignment_expression "pcVar1 = __dest" (identifier "pcVar1") (= "=") (identifier "__dest")) (; ";")) (while_statement "while( true ) {\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          __dest = pcVar1 + 1;\n          pcVar5 = pcVar5 + 1;\n          *pcVar1 = cVar4;\n          if (__dest == pcVar3) break;\n          cVar4 = *pcVar5;\n          pcVar1 = __dest;\n        }" ({ "{") (expression_statement "__dest = pcVar1 + 1;" (assignment_expression "__dest = pcVar1 + 1" (identifier "__dest") (= "=") (binary_expression "pcVar1 + 1" (identifier "pcVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar1 = cVar4;" (assignment_expression "*pcVar1 = cVar4" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (= "=") (identifier "cVar4")) (; ";")) (if_statement "if (__dest == pcVar3) break;" (if "if") (parenthesized_expression "(__dest == pcVar3)" (( "(") (binary_expression "__dest == pcVar3" (identifier "__dest") (== "==") (identifier "pcVar3")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "cVar4 = *pcVar5;" (assignment_expression "cVar4 = *pcVar5" (identifier "cVar4") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (expression_statement "pcVar1 = __dest;" (assignment_expression "pcVar1 = __dest" (identifier "pcVar1") (= "=") (identifier "__dest")) (; ";")) (} "}"))) (} "}"))) (goto_statement "goto LAB_00012ec8;" (goto "goto") (statement_identifier "LAB_00012ec8") (; ";")) (} "}"))) (expression_statement "pcVar2 = strchr(param_3,(int)cVar4);" (assignment_expression "pcVar2 = strchr(param_3,(int)cVar4)" (identifier "pcVar2") (= "=") (call_expression "strchr(param_3,(int)cVar4)" (identifier "strchr") (argument_list "(param_3,(int)cVar4)" (( "(") (identifier "param_3") (, ",") (cast_expression "(int)cVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar4")) () ")")))) (; ";")) (expression_statement "pcVar3 = __dest;" (assignment_expression "pcVar3 = __dest" (identifier "pcVar3") (= "=") (identifier "__dest")) (; ";")) (if_statement "if (pcVar2 != (char *)0x0) {\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }" (if "if") (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pcVar3 = __dest + 1;\n      *__dest = cVar4;\n    }" ({ "{") (expression_statement "pcVar3 = __dest + 1;" (assignment_expression "pcVar3 = __dest + 1" (identifier "pcVar3") (= "=") (binary_expression "__dest + 1" (identifier "__dest") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*__dest = cVar4;" (assignment_expression "*__dest = cVar4" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (identifier "cVar4")) (; ";")) (} "}"))) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__dest = pcVar3;" (assignment_expression "__dest = pcVar3" (identifier "__dest") (= "=") (identifier "pcVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_1,size_t var_2,char *allowed_flags,char *suffix)

{
  char *var_3;
  char *var_9;
  char *var_7;
  char cVar4;
  char *var_4;
  char *var_8;
  
  var_4 = var_1 + 1;
  var_3 = var_1 + var_2;
  var_8 = var_4;
  do {
    if (var_3 <= var_4) {
LAB_00012ec8:
      var_5(var_8,suffix);
      return;
    }
    cVar4 = *var_4;
    var_7 = var_6("\'-+ #0I",(int)cVar4);
    if (var_7 == (char *)0x0) {
      if (var_4 < var_3) {
        var_7 = var_8 + ((int)var_3 - (int)var_4);
        var_3 = var_8;
        while( true ) {
          var_8 = var_3 + 1;
          var_4 = var_4 + 1;
          *var_3 = cVar4;
          if (var_8 == var_7) break;
          cVar4 = *var_4;
          var_3 = var_8;
        }
      }
      goto LAB_00012ec8;
    }
    var_9 = var_6(allowed_flags,(int)cVar4);
    var_7 = var_8;
    if (var_9 != (char *)0x0) {
      var_7 = var_8 + 1;
      *var_8 = cVar4;
    }
    var_4 = var_4 + 1;
    var_8 = var_7;
  } while( true );
}


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

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

void __regparm3 MASKED(int param_1,int param_2,char *param_3,char *param_4)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  char *pcVar5;
  char *__dest;
  
  pcVar5 = (char *)(param_1 + 1);
  pcVar1 = (char *)(param_1 + param_2);
  __dest = pcVar5;
  do {
    if (pcVar1 <= pcVar5) {
LAB_00012ec8:
      strcpy(__dest,param_4);
      return;
    }
    cVar4 = *pcVar5;
    pcVar3 = strchr("\'-+ #0I",(int)cVar4);
    if (pcVar3 == (char *)0x0) {
      if (pcVar5 < pcVar1) {
        pcVar3 = __dest + ((int)pcVar1 - (int)pcVar5);
        pcVar1 = __dest;
        while( true ) {
          __dest = pcVar1 + 1;
          pcVar5 = pcVar5 + 1;
          *pcVar1 = cVar4;
          if (__dest == pcVar3) break;
          cVar4 = *pcVar5;
          pcVar1 = __dest;
        }
      }
      goto LAB_00012ec8;
    }
    pcVar2 = strchr(param_3,(int)cVar4);
    pcVar3 = __dest;
    if (pcVar2 != (char *)0x0) {
      pcVar3 = __dest + 1;
      *__dest = cVar4;
    }
    pcVar5 = pcVar5 + 1;
    __dest = pcVar3;
  } while( true );
}

