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

char * __regparm3 fts3QuoteId(char *zInput)

{
  char cVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  char *pcVar5;
  
  sVar2 = strlen(zInput);
  pcVar3 = (char *)sqlite3_malloc64((longlong)(int)(sVar2 * 2 + 3));
  if (pcVar3 != (char *)0x0) {
    *pcVar3 = '\"';
    cVar1 = *zInput;
    pcVar4 = pcVar3 + 1;
    while (cVar1 != '\0') {
      pcVar5 = pcVar4 + 1;
      if (cVar1 == '\"') {
        pcVar5 = pcVar4 + 2;
        *pcVar4 = '\"';
        pcVar4 = pcVar4 + 1;
      }
      cVar1 = *zInput;
      zInput = zInput + 1;
      *pcVar4 = cVar1;
      pcVar4 = pcVar5;
      cVar1 = *zInput;
    }
    pcVar4[0] = '\"';
    pcVar4[1] = '\0';
  }
  return pcVar3;
}



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

void __regparm3 FUN_00043650(char *param_1)

{
  int iVar1;
  char cVar2;
  size_t sVar3;
  undefined1 *puVar4;
  char *pcVar5;
  char *pcVar6;
  
  sVar3 = strlen(param_1);
  iVar1 = sVar3 * 2 + 3;
  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);
  if (puVar4 != (undefined1 *)0x0) {
    *puVar4 = 0x22;
    cVar2 = *param_1;
    pcVar5 = puVar4 + 1;
    while (cVar2 != '\0') {
      pcVar6 = pcVar5 + 1;
      if (cVar2 == '\"') {
        pcVar6 = pcVar5 + 2;
        *pcVar5 = '\"';
        pcVar5 = pcVar5 + 1;
      }
      cVar2 = *param_1;
      param_1 = param_1 + 1;
      *pcVar5 = cVar2;
      pcVar5 = pcVar6;
      cVar2 = *param_1;
    }
    pcVar5[0] = '\"';
    pcVar5[1] = '\0';
  }
  return;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00014d20
ADD EBX,0x10787b
SUB ESP,0x10
PUSH EAX
CALL 0x00014230
POP ECX
POP EDX
LEA EAX,[EAX + EAX*0x1 + 0x3]
CDQ
PUSH EDX
PUSH EAX
CALL 0x000408d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000436bb
MOV byte ptr [EAX],0x22
MOVZX ECX,byte ptr [ESI]
LEA EDX,[EAX + 0x1]
TEST CL,CL
JZ 0x000436c8
LEA ESI,[ESI]
LEA EBX,[EDX + 0x1]
CMP CL,0x22
JNZ 0x000436a2
LEA ECX,[EDX + 0x2]
MOV byte ptr [EDX],0x22
MOV EDX,EBX
MOV EBX,ECX
MOVZX ECX,byte ptr [ESI]
ADD ESI,0x1
MOV byte ptr [EDX],CL
MOVZX ECX,byte ptr [ESI]
MOV EDX,EBX
TEST CL,CL
JNZ 0x00043690
MOV EDX,0x22
MOV word ptr [EBX],DX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EBX,EDX
JMP 0x000436b3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00043650(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  \n  sVar3 = strlen(param_1);\n  iVar1 = sVar3 * 2 + 3;\n  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);\n  if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00043650(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  \n  sVar3 = strlen(param_1);\n  iVar1 = sVar3 * 2 + 3;\n  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);\n  if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00043650(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  \n  sVar3 = strlen(param_1);\n  iVar1 = sVar3 * 2 + 3;\n  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);\n  if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar1 = sVar3 * 2 + 3;" (assignment_expression "iVar1 = sVar3 * 2 + 3" identifier = (binary_expression "sVar3 * 2 + 3" (binary_expression "sVar3 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);" (assignment_expression "puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f)" identifier = (cast_expression "(undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000408d0(iVar1,iVar1 >> 0x1f)" identifier (argument_list "(iVar1,iVar1 >> 0x1f)" ( identifier , (binary_expression "iVar1 >> 0x1f" identifier >> number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }" if (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }" { (expression_statement "*puVar4 = 0x22;" (assignment_expression "*puVar4 = 0x22" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar5 = puVar4 + 1;" (assignment_expression "pcVar5 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (while_statement "while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }" { (expression_statement "pcVar6 = pcVar5 + 1;" (assignment_expression "pcVar6 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }" if (parenthesized_expression "(cVar2 == '\"')" ( (binary_expression "cVar2 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }" { (expression_statement "pcVar6 = pcVar5 + 2;" (assignment_expression "pcVar6 = pcVar5 + 2" identifier = (binary_expression "pcVar5 + 2" identifier + number_literal)) ;) (expression_statement "*pcVar5 = '\"';" (assignment_expression "*pcVar5 = '\"'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar5 = cVar2;" (assignment_expression "*pcVar5 = cVar2" (pointer_expression "*pcVar5" * identifier) = identifier) ;) (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" identifier = identifier) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "pcVar5[0] = '\"';" (assignment_expression "pcVar5[0] = '\"'" (subscript_expression "pcVar5[0]" identifier [ number_literal ]) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "pcVar5[1] = '\0';" (assignment_expression "pcVar5[1] = '\0'" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 fts3QuoteId(char *zInput)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(zInput);\n  pcVar3 = (char *)sqlite3_malloc64((longlong)(int)(sVar2 * 2 + 3));\n  if (pcVar3 != (char *)0x0) {\n    *pcVar3 = '\"';\n    cVar1 = *zInput;\n    pcVar4 = pcVar3 + 1;\n    while (cVar1 != '\0') {\n      pcVar5 = pcVar4 + 1;\n      if (cVar1 == '\"') {\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }\n      cVar1 = *zInput;\n      zInput = zInput + 1;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      cVar1 = *zInput;\n    }\n    pcVar4[0] = '\"';\n    pcVar4[1] = '\0';\n  }\n  return pcVar3;\n}\n\n" comment (function_definition "char * __regparm3 fts3QuoteId(char *zInput)\n\n{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(zInput);\n  pcVar3 = (char *)sqlite3_malloc64((longlong)(int)(sVar2 * 2 + 3));\n  if (pcVar3 != (char *)0x0) {\n    *pcVar3 = '\"';\n    cVar1 = *zInput;\n    pcVar4 = pcVar3 + 1;\n    while (cVar1 != '\0') {\n      pcVar5 = pcVar4 + 1;\n      if (cVar1 == '\"') {\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }\n      cVar1 = *zInput;\n      zInput = zInput + 1;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      cVar1 = *zInput;\n    }\n    pcVar4[0] = '\"';\n    pcVar4[1] = '\0';\n  }\n  return pcVar3;\n}" primitive_type (pointer_declarator "* __regparm3 fts3QuoteId(char *zInput)" * (ERROR "__regparm3" identifier) (function_declarator "fts3QuoteId(char *zInput)" identifier (parameter_list "(char *zInput)" ( (parameter_declaration "char *zInput" primitive_type (pointer_declarator "*zInput" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  sVar2 = strlen(zInput);\n  pcVar3 = (char *)sqlite3_malloc64((longlong)(int)(sVar2 * 2 + 3));\n  if (pcVar3 != (char *)0x0) {\n    *pcVar3 = '\"';\n    cVar1 = *zInput;\n    pcVar4 = pcVar3 + 1;\n    while (cVar1 != '\0') {\n      pcVar5 = pcVar4 + 1;\n      if (cVar1 == '\"') {\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }\n      cVar1 = *zInput;\n      zInput = zInput + 1;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      cVar1 = *zInput;\n    }\n    pcVar4[0] = '\"';\n    pcVar4[1] = '\0';\n  }\n  return pcVar3;\n}" { (declaration "char cVar1;" 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 "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "sVar2 = strlen(zInput);" (assignment_expression "sVar2 = strlen(zInput)" identifier = (call_expression "strlen(zInput)" identifier (argument_list "(zInput)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)sqlite3_malloc64((longlong)(int)(sVar2 * 2 + 3));" (assignment_expression "pcVar3 = (char *)sqlite3_malloc64((longlong)(int)(sVar2 * 2 + 3))" identifier = (cast_expression "(char *)sqlite3_malloc64((longlong)(int)(sVar2 * 2 + 3))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64((longlong)(int)(sVar2 * 2 + 3))" identifier (argument_list "((longlong)(int)(sVar2 * 2 + 3))" ( (call_expression "(longlong)(int)(sVar2 * 2 + 3)" (call_expression "(longlong)(int)" (parenthesized_expression "(longlong)" ( identifier )) (argument_list "(int)" ( identifier ))) (argument_list "(sVar2 * 2 + 3)" ( (binary_expression "sVar2 * 2 + 3" (binary_expression "sVar2 * 2" identifier * number_literal) + number_literal) ))) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    *pcVar3 = '\"';\n    cVar1 = *zInput;\n    pcVar4 = pcVar3 + 1;\n    while (cVar1 != '\0') {\n      pcVar5 = pcVar4 + 1;\n      if (cVar1 == '\"') {\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }\n      cVar1 = *zInput;\n      zInput = zInput + 1;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      cVar1 = *zInput;\n    }\n    pcVar4[0] = '\"';\n    pcVar4[1] = '\0';\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    *pcVar3 = '\"';\n    cVar1 = *zInput;\n    pcVar4 = pcVar3 + 1;\n    while (cVar1 != '\0') {\n      pcVar5 = pcVar4 + 1;\n      if (cVar1 == '\"') {\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }\n      cVar1 = *zInput;\n      zInput = zInput + 1;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      cVar1 = *zInput;\n    }\n    pcVar4[0] = '\"';\n    pcVar4[1] = '\0';\n  }" { (expression_statement "*pcVar3 = '\"';" (assignment_expression "*pcVar3 = '\"'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "cVar1 = *zInput;" (assignment_expression "cVar1 = *zInput" identifier = (pointer_expression "*zInput" * identifier)) ;) (expression_statement "pcVar4 = pcVar3 + 1;" (assignment_expression "pcVar4 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (while_statement "while (cVar1 != '\0') {\n      pcVar5 = pcVar4 + 1;\n      if (cVar1 == '\"') {\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }\n      cVar1 = *zInput;\n      zInput = zInput + 1;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      cVar1 = *zInput;\n    }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar5 = pcVar4 + 1;\n      if (cVar1 == '\"') {\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }\n      cVar1 = *zInput;\n      zInput = zInput + 1;\n      *pcVar4 = cVar1;\n      pcVar4 = pcVar5;\n      cVar1 = *zInput;\n    }" { (expression_statement "pcVar5 = pcVar4 + 1;" (assignment_expression "pcVar5 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\"') {\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }" if (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar5 = pcVar4 + 2;\n        *pcVar4 = '\"';\n        pcVar4 = pcVar4 + 1;\n      }" { (expression_statement "pcVar5 = pcVar4 + 2;" (assignment_expression "pcVar5 = pcVar4 + 2" identifier = (binary_expression "pcVar4 + 2" identifier + number_literal)) ;) (expression_statement "*pcVar4 = '\"';" (assignment_expression "*pcVar4 = '\"'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar1 = *zInput;" (assignment_expression "cVar1 = *zInput" identifier = (pointer_expression "*zInput" * identifier)) ;) (expression_statement "zInput = zInput + 1;" (assignment_expression "zInput = zInput + 1" identifier = (binary_expression "zInput + 1" identifier + number_literal)) ;) (expression_statement "*pcVar4 = cVar1;" (assignment_expression "*pcVar4 = cVar1" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4 = pcVar5;" (assignment_expression "pcVar4 = pcVar5" identifier = identifier) ;) (expression_statement "cVar1 = *zInput;" (assignment_expression "cVar1 = *zInput" identifier = (pointer_expression "*zInput" * identifier)) ;) })) (expression_statement "pcVar4[0] = '\"';" (assignment_expression "pcVar4[0] = '\"'" (subscript_expression "pcVar4[0]" identifier [ number_literal ]) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_00043650(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  \n  sVar3 = strlen(param_1);\n  iVar1 = sVar3 * 2 + 3;\n  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);\n  if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00043650(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  \n  sVar3 = strlen(param_1);\n  iVar1 = sVar3 * 2 + 3;\n  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);\n  if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00043650(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  \n  sVar3 = strlen(param_1);\n  iVar1 = sVar3 * 2 + 3;\n  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);\n  if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar1 = sVar3 * 2 + 3;" (assignment_expression "iVar1 = sVar3 * 2 + 3" identifier = (binary_expression "sVar3 * 2 + 3" (binary_expression "sVar3 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);" (assignment_expression "puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f)" identifier = (cast_expression "(undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000408d0(iVar1,iVar1 >> 0x1f)" identifier (argument_list "(iVar1,iVar1 >> 0x1f)" ( identifier , (binary_expression "iVar1 >> 0x1f" identifier >> number_literal) ))))) ;) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }" if (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }" { (expression_statement "*puVar4 = 0x22;" (assignment_expression "*puVar4 = 0x22" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar5 = puVar4 + 1;" (assignment_expression "pcVar5 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (while_statement "while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }" { (expression_statement "pcVar6 = pcVar5 + 1;" (assignment_expression "pcVar6 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) (if_statement "if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }" if (parenthesized_expression "(cVar2 == '\"')" ( (binary_expression "cVar2 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }" { (expression_statement "pcVar6 = pcVar5 + 2;" (assignment_expression "pcVar6 = pcVar5 + 2" identifier = (binary_expression "pcVar5 + 2" identifier + number_literal)) ;) (expression_statement "*pcVar5 = '\"';" (assignment_expression "*pcVar5 = '\"'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" identifier = (binary_expression "pcVar5 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar5 = cVar2;" (assignment_expression "*pcVar5 = cVar2" (pointer_expression "*pcVar5" * identifier) = identifier) ;) (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" identifier = identifier) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "pcVar5[0] = '\"';" (assignment_expression "pcVar5[0] = '\"'" (subscript_expression "pcVar5[0]" identifier [ number_literal ]) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "pcVar5[1] = '\0';" (assignment_expression "pcVar5[1] = '\0'" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT >> LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00043650(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  \n  sVar3 = strlen(param_1);\n  iVar1 = sVar3 * 2 + 3;\n  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);\n  if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00043650(char *param_1)" (identifier "FUN_00043650") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  undefined1 *puVar4;\n  char *pcVar5;\n  char *pcVar6;\n  \n  sVar3 = strlen(param_1);\n  iVar1 = sVar3 * 2 + 3;\n  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);\n  if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" (identifier "sVar3") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar1 = sVar3 * 2 + 3;" (assignment_expression "iVar1 = sVar3 * 2 + 3" (identifier "iVar1") (= "=") (binary_expression "sVar3 * 2 + 3" (binary_expression "sVar3 * 2" (identifier "sVar3") (* "*") (number_literal "2")) (+ "+") (number_literal "3"))) (; ";")) (expression_statement "puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);" (assignment_expression "puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000408d0(iVar1,iVar1 >> 0x1f)" (identifier "FUN_000408d0") (argument_list "(iVar1,iVar1 >> 0x1f)" (( "(") (identifier "iVar1") (, ",") (binary_expression "iVar1 >> 0x1f" (identifier "iVar1") (>> ">>") (number_literal "0x1f")) () ")"))))) (; ";")) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }" (if "if") (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined1 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *puVar4 = 0x22;\n    cVar2 = *param_1;\n    pcVar5 = puVar4 + 1;\n    while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }\n    pcVar5[0] = '\"';\n    pcVar5[1] = '\0';\n  }" ({ "{") (expression_statement "*puVar4 = 0x22;" (assignment_expression "*puVar4 = 0x22" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0x22")) (; ";")) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar5 = puVar4 + 1;" (assignment_expression "pcVar5 = puVar4 + 1" (identifier "pcVar5") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (while_statement "while (cVar2 != '\0') {\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }" (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar6 = pcVar5 + 1;\n      if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }\n      cVar2 = *param_1;\n      param_1 = param_1 + 1;\n      *pcVar5 = cVar2;\n      pcVar5 = pcVar6;\n      cVar2 = *param_1;\n    }" ({ "{") (expression_statement "pcVar6 = pcVar5 + 1;" (assignment_expression "pcVar6 = pcVar5 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (cVar2 == '\"') {\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }" (if "if") (parenthesized_expression "(cVar2 == '\"')" (( "(") (binary_expression "cVar2 == '\"'" (identifier "cVar2") (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (compound_statement "{\n        pcVar6 = pcVar5 + 2;\n        *pcVar5 = '\"';\n        pcVar5 = pcVar5 + 1;\n      }" ({ "{") (expression_statement "pcVar6 = pcVar5 + 2;" (assignment_expression "pcVar6 = pcVar5 + 2" (identifier "pcVar6") (= "=") (binary_expression "pcVar5 + 2" (identifier "pcVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*pcVar5 = '\"';" (assignment_expression "*pcVar5 = '\"'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (= "=") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) (; ";")) (expression_statement "pcVar5 = pcVar5 + 1;" (assignment_expression "pcVar5 = pcVar5 + 1" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 1" (identifier "pcVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar5 = cVar2;" (assignment_expression "*pcVar5 = cVar2" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (= "=") (identifier "cVar2")) (; ";")) (expression_statement "pcVar5 = pcVar6;" (assignment_expression "pcVar5 = pcVar6" (identifier "pcVar5") (= "=") (identifier "pcVar6")) (; ";")) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "pcVar5[0] = '\"';" (assignment_expression "pcVar5[0] = '\"'" (subscript_expression "pcVar5[0]" (identifier "pcVar5") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) (; ";")) (expression_statement "pcVar5[1] = '\0';" (assignment_expression "pcVar5[1] = '\0'" (subscript_expression "pcVar5[1]" (identifier "pcVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * __regparm3 function_1(char *var_7)

{
  char var_5;
  size_t var_3;
  char *var_4;
  char *var_6;
  char *pcVar5;
  
  var_3 = var_1(var_7);
  var_4 = (char *)var_2((longlong)(int)(var_3 * 2 + 3));
  if (var_4 != (char *)0x0) {
    *var_4 = '\"';
    var_5 = *var_7;
    var_6 = var_4 + 1;
    while (var_5 != '\0') {
      pcVar5 = var_6 + 1;
      if (var_5 == '\"') {
        pcVar5 = var_6 + 2;
        *var_6 = '\"';
        var_6 = var_6 + 1;
      }
      var_5 = *var_7;
      var_7 = var_7 + 1;
      *var_6 = var_5;
      var_6 = pcVar5;
      var_5 = *var_7;
    }
    var_6[0] = '\"';
    var_6[1] = '\0';
  }
  return var_4;
}


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

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

void __regparm3 MASKED(char *param_1)

{
  int iVar1;
  char cVar2;
  size_t sVar3;
  undefined1 *puVar4;
  char *pcVar5;
  char *pcVar6;
  
  sVar3 = strlen(param_1);
  iVar1 = sVar3 * 2 + 3;
  puVar4 = (undefined1 *)FUN_000408d0(iVar1,iVar1 >> 0x1f);
  if (puVar4 != (undefined1 *)0x0) {
    *puVar4 = 0x22;
    cVar2 = *param_1;
    pcVar5 = puVar4 + 1;
    while (cVar2 != '\0') {
      pcVar6 = pcVar5 + 1;
      if (cVar2 == '\"') {
        pcVar6 = pcVar5 + 2;
        *pcVar5 = '\"';
        pcVar5 = pcVar5 + 1;
      }
      cVar2 = *param_1;
      param_1 = param_1 + 1;
      *pcVar5 = cVar2;
      pcVar5 = pcVar6;
      cVar2 = *param_1;
    }
    pcVar5[0] = '\"';
    pcVar5[1] = '\0';
  }
  return;
}

