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

void __regparm3 quoteput(char *s,FILE *f,int needs_quotes)

{
  byte *pbVar1;
  byte bVar2;
  char cVar3;
  
  bVar2 = *s;
  pbVar1 = (byte *)s;
  while (bVar2 != 0) {
    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||
        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||
       (bVar2 == 0x3b || bVar2 == 0x2c)) {
      needs_quotes = 1;
    }
    pbVar1 = pbVar1 + 1;
    bVar2 = *pbVar1;
  }
  if (needs_quotes == 0) {
    fputs(s,(FILE *)f);
    return;
  }
  putc(0x22,(FILE *)f);
  cVar3 = *s;
  while (cVar3 != '\0') {
    if ((cVar3 == '\"') || (cVar3 == '\\')) {
      putc(0x5c,(FILE *)f);
    }
    cVar3 = *s;
    s = s + 1;
    putc((int)cVar3,(FILE *)f);
    cVar3 = *s;
  }
  putc(0x22,(FILE *)f);
  return;
}



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

void __regparm3 FUN_0005b7e0(byte *param_1,FILE *param_2,int param_3)

{
  byte *pbVar1;
  byte bVar2;
  
  bVar2 = *param_1;
  pbVar1 = param_1;
  while (bVar2 != 0) {
    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||
        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||
       (bVar2 == 0x3b || bVar2 == 0x2c)) {
      param_3 = 1;
    }
    pbVar1 = pbVar1 + 1;
    bVar2 = *pbVar1;
  }
  if (param_3 == 0) {
    fputs((char *)param_1,param_2);
    return;
  }
  putc(0x22,param_2);
  bVar2 = *param_1;
  while (bVar2 != 0) {
    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {
      putc(0x5c,param_2);
    }
    bVar2 = *param_1;
    param_1 = param_1 + 1;
    putc((int)(char)bVar2,param_2);
    bVar2 = *param_1;
  }
  putc(0x22,param_2);
  return;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00017b80
ADD EBX,0x173813
SUB ESP,0x1c
MOVZX EAX,byte ptr [EAX]
MOV dword ptr [ESP + 0xc],EDX
TEST AL,AL
JZ 0x0005b85d
MOV EDI,dword ptr [EBX + 0xffffffa0]
MOV dword ptr [ESP + 0x4],ESI
MOV dword ptr [ESP + 0x8],EDI
NOP
CMP AL,0x27
SETZ CL
CMP AL,0x22
MOV EDI,ECX
SETZ CL
MOV EDX,EDI
OR DL,CL
JNZ 0x0005b848
CMP AL,0x5c
JZ 0x0005b848
MOV EDX,dword ptr [ESP + 0x8]
MOVZX ECX,AL
TEST byte ptr [EDX + ECX*0x2],0x40
JNZ 0x0005b848
CMP AL,0x3b
SETZ CL
CMP AL,0x2c
SETZ AL
OR CL,AL
JZ 0x0005b84d
LEA ESI,[ESI]
MOV EBP,0x1
ADD dword ptr [ESP + 0x4],0x1
MOV EAX,dword ptr [ESP + 0x4]
MOVZX EAX,byte ptr [EAX]
TEST AL,AL
JNZ 0x0005b810
TEST EBP,EBP
JZ 0x0005b8d0
SUB ESP,0x8
MOV EDI,dword ptr [ESP + 0x14]
PUSH EDI
PUSH 0x22
CALL 0x00016a90
MOVZX EAX,byte ptr [ESI]
ADD ESP,0x10
TEST AL,AL
JNZ 0x0005b8b6
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH 0x22
CALL 0x00016a90
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP AL,0x5c
JZ 0x0005b8ba
MOVSX EAX,byte ptr [ESI]
SUB ESP,0x8
ADD ESI,0x1
PUSH EDI
PUSH EAX
CALL 0x00016a90
MOVZX EAX,byte ptr [ESI]
ADD ESP,0x10
TEST AL,AL
JZ 0x0005b87a
CMP AL,0x22
JNZ 0x0005b898
SUB ESP,0x8
PUSH EDI
PUSH 0x5c
CALL 0x00016a90
ADD ESP,0x10
JMP 0x0005b89c
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH ESI
CALL 0x00016d10
ADD ESP,0x10
ADD ESP,0x1c
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_0005b7e0(byte *param_1,FILE *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  \n  bVar2 = *param_1;\n  pbVar1 = param_1;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }\n  putc(0x22,param_2);\n  bVar2 = *param_1;\n  while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }\n  putc(0x22,param_2);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0005b7e0(byte *param_1,FILE *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  \n  bVar2 = *param_1;\n  pbVar1 = param_1;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }\n  putc(0x22,param_2);\n  bVar2 = *param_1;\n  while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }\n  putc(0x22,param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005b7e0(byte *param_1,FILE *param_2,int param_3)" identifier (parameter_list "(byte *param_1,FILE *param_2,int param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  \n  bVar2 = *param_1;\n  pbVar1 = param_1;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }\n  putc(0x22,param_2);\n  bVar2 = *param_1;\n  while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }\n  putc(0x22,param_2);\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pbVar1 = param_1;" (assignment_expression "pbVar1 = param_1" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }" { (if_statement "if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }" if (parenthesized_expression "((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c))" ( (binary_expression "(((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)" (parenthesized_expression "(((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0))" ( (binary_expression "((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)" (parenthesized_expression "((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c))" ( (binary_expression "(bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)" (parenthesized_expression "(bVar2 == 0x27 || bVar2 == 0x22)" ( (binary_expression "bVar2 == 0x27 || bVar2 == 0x22" (binary_expression "bVar2 == 0x27" identifier == number_literal) || (binary_expression "bVar2 == 0x22" identifier == number_literal)) )) || (parenthesized_expression "(bVar2 == 0x5c)" ( (binary_expression "bVar2 == 0x5c" identifier == number_literal) ))) )) || (parenthesized_expression "((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)" ( (binary_expression "(PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0" (parenthesized_expression "(PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40)" ( (binary_expression "PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40" (subscript_expression "PTR__sch_istable_001cefa0[(uint)bVar2 * 2]" identifier [ (binary_expression "(uint)bVar2 * 2" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) ]) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "(bVar2 == 0x3b || bVar2 == 0x2c)" ( (binary_expression "bVar2 == 0x3b || bVar2 == 0x2c" (binary_expression "bVar2 == 0x3b" identifier == number_literal) || (binary_expression "bVar2 == 0x2c" identifier == number_literal)) ))) )) (compound_statement "{\n      param_3 = 1;\n    }" { (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" identifier = number_literal) ;) })) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar1;" (assignment_expression "bVar2 = *pbVar1" identifier = (pointer_expression "*pbVar1" * identifier)) ;) })) (if_statement "if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    fputs((char *)param_1,param_2);\n    return;\n  }" { (expression_statement "fputs((char *)param_1,param_2);" (call_expression "fputs((char *)param_1,param_2)" identifier (argument_list "((char *)param_1,param_2)" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "putc(0x22,param_2);" (call_expression "putc(0x22,param_2)" identifier (argument_list "(0x22,param_2)" ( number_literal , identifier ))) ;) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }" { (if_statement "if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }" if (parenthesized_expression "((bVar2 == 0x22) || (bVar2 == 0x5c))" ( (binary_expression "(bVar2 == 0x22) || (bVar2 == 0x5c)" (parenthesized_expression "(bVar2 == 0x22)" ( (binary_expression "bVar2 == 0x22" identifier == number_literal) )) || (parenthesized_expression "(bVar2 == 0x5c)" ( (binary_expression "bVar2 == 0x5c" identifier == number_literal) ))) )) (compound_statement "{\n      putc(0x5c,param_2);\n    }" { (expression_statement "putc(0x5c,param_2);" (call_expression "putc(0x5c,param_2)" identifier (argument_list "(0x5c,param_2)" ( number_literal , identifier ))) ;) })) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *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 "putc((int)(char)bVar2,param_2);" (call_expression "putc((int)(char)bVar2,param_2)" identifier (argument_list "((int)(char)bVar2,param_2)" ( (cast_expression "(int)(char)bVar2" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier)) , identifier ))) ;) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "putc(0x22,param_2);" (call_expression "putc(0x22,param_2)" identifier (argument_list "(0x22,param_2)" ( number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 quoteput(char *s,FILE *f,int needs_quotes)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char cVar3;\n  \n  bVar2 = *s;\n  pbVar1 = (byte *)s;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      needs_quotes = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (needs_quotes == 0) {\n    fputs(s,(FILE *)f);\n    return;\n  }\n  putc(0x22,(FILE *)f);\n  cVar3 = *s;\n  while (cVar3 != '\0') {\n    if ((cVar3 == '\"') || (cVar3 == '\\')) {\n      putc(0x5c,(FILE *)f);\n    }\n    cVar3 = *s;\n    s = s + 1;\n    putc((int)cVar3,(FILE *)f);\n    cVar3 = *s;\n  }\n  putc(0x22,(FILE *)f);\n  return;\n}\n\n" comment (function_definition "void __regparm3 quoteput(char *s,FILE *f,int needs_quotes)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  char cVar3;\n  \n  bVar2 = *s;\n  pbVar1 = (byte *)s;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      needs_quotes = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (needs_quotes == 0) {\n    fputs(s,(FILE *)f);\n    return;\n  }\n  putc(0x22,(FILE *)f);\n  cVar3 = *s;\n  while (cVar3 != '\0') {\n    if ((cVar3 == '\"') || (cVar3 == '\\')) {\n      putc(0x5c,(FILE *)f);\n    }\n    cVar3 = *s;\n    s = s + 1;\n    putc((int)cVar3,(FILE *)f);\n    cVar3 = *s;\n  }\n  putc(0x22,(FILE *)f);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "quoteput(char *s,FILE *f,int needs_quotes)" identifier (parameter_list "(char *s,FILE *f,int needs_quotes)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "FILE *f" type_identifier (pointer_declarator "*f" * identifier)) , (parameter_declaration "int needs_quotes" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  char cVar3;\n  \n  bVar2 = *s;\n  pbVar1 = (byte *)s;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      needs_quotes = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (needs_quotes == 0) {\n    fputs(s,(FILE *)f);\n    return;\n  }\n  putc(0x22,(FILE *)f);\n  cVar3 = *s;\n  while (cVar3 != '\0') {\n    if ((cVar3 == '\"') || (cVar3 == '\\')) {\n      putc(0x5c,(FILE *)f);\n    }\n    cVar3 = *s;\n    s = s + 1;\n    putc((int)cVar3,(FILE *)f);\n    cVar3 = *s;\n  }\n  putc(0x22,(FILE *)f);\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (expression_statement "bVar2 = *s;" (assignment_expression "bVar2 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (expression_statement "pbVar1 = (byte *)s;" (assignment_expression "pbVar1 = (byte *)s" identifier = (cast_expression "(byte *)s" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      needs_quotes = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      needs_quotes = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }" { (if_statement "if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      needs_quotes = 1;\n    }" if (parenthesized_expression "((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c))" ( (binary_expression "(((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)" (parenthesized_expression "(((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0))" ( (binary_expression "((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)" (parenthesized_expression "((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c))" ( (binary_expression "(bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)" (parenthesized_expression "(bVar2 == 0x27 || bVar2 == 0x22)" ( (binary_expression "bVar2 == 0x27 || bVar2 == 0x22" (binary_expression "bVar2 == 0x27" identifier == number_literal) || (binary_expression "bVar2 == 0x22" identifier == number_literal)) )) || (parenthesized_expression "(bVar2 == 0x5c)" ( (binary_expression "bVar2 == 0x5c" identifier == number_literal) ))) )) || (parenthesized_expression "((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)" ( (binary_expression "(PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0" (parenthesized_expression "(PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40)" ( (binary_expression "PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40" (subscript_expression "PTR__sch_istable_001cefa0[(uint)bVar2 * 2]" identifier [ (binary_expression "(uint)bVar2 * 2" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) ]) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "(bVar2 == 0x3b || bVar2 == 0x2c)" ( (binary_expression "bVar2 == 0x3b || bVar2 == 0x2c" (binary_expression "bVar2 == 0x3b" identifier == number_literal) || (binary_expression "bVar2 == 0x2c" identifier == number_literal)) ))) )) (compound_statement "{\n      needs_quotes = 1;\n    }" { (expression_statement "needs_quotes = 1;" (assignment_expression "needs_quotes = 1" identifier = number_literal) ;) })) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar1;" (assignment_expression "bVar2 = *pbVar1" identifier = (pointer_expression "*pbVar1" * identifier)) ;) })) (if_statement "if (needs_quotes == 0) {\n    fputs(s,(FILE *)f);\n    return;\n  }" if (parenthesized_expression "(needs_quotes == 0)" ( (binary_expression "needs_quotes == 0" identifier == number_literal) )) (compound_statement "{\n    fputs(s,(FILE *)f);\n    return;\n  }" { (expression_statement "fputs(s,(FILE *)f);" (call_expression "fputs(s,(FILE *)f)" identifier (argument_list "(s,(FILE *)f)" ( identifier , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "putc(0x22,(FILE *)f);" (call_expression "putc(0x22,(FILE *)f)" identifier (argument_list "(0x22,(FILE *)f)" ( number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "cVar3 = *s;" (assignment_expression "cVar3 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (while_statement "while (cVar3 != '\0') {\n    if ((cVar3 == '\"') || (cVar3 == '\\')) {\n      putc(0x5c,(FILE *)f);\n    }\n    cVar3 = *s;\n    s = s + 1;\n    putc((int)cVar3,(FILE *)f);\n    cVar3 = *s;\n  }" while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((cVar3 == '\"') || (cVar3 == '\\')) {\n      putc(0x5c,(FILE *)f);\n    }\n    cVar3 = *s;\n    s = s + 1;\n    putc((int)cVar3,(FILE *)f);\n    cVar3 = *s;\n  }" { (if_statement "if ((cVar3 == '\"') || (cVar3 == '\\')) {\n      putc(0x5c,(FILE *)f);\n    }" if (parenthesized_expression "((cVar3 == '\"') || (cVar3 == '\\'))" ( (binary_expression "(cVar3 == '\"') || (cVar3 == '\\')" (parenthesized_expression "(cVar3 == '\"')" ( (binary_expression "cVar3 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar3 == '\\')" ( (binary_expression "cVar3 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) ))) )) (compound_statement "{\n      putc(0x5c,(FILE *)f);\n    }" { (expression_statement "putc(0x5c,(FILE *)f);" (call_expression "putc(0x5c,(FILE *)f)" identifier (argument_list "(0x5c,(FILE *)f)" ( number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (expression_statement "cVar3 = *s;" (assignment_expression "cVar3 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) (expression_statement "putc((int)cVar3,(FILE *)f);" (call_expression "putc((int)cVar3,(FILE *)f)" identifier (argument_list "((int)cVar3,(FILE *)f)" ( (cast_expression "(int)cVar3" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "cVar3 = *s;" (assignment_expression "cVar3 = *s" identifier = (pointer_expression "*s" * identifier)) ;) })) (expression_statement "putc(0x22,(FILE *)f);" (call_expression "putc(0x22,(FILE *)f)" identifier (argument_list "(0x22,(FILE *)f)" ( number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0005b7e0(byte *param_1,FILE *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  \n  bVar2 = *param_1;\n  pbVar1 = param_1;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }\n  putc(0x22,param_2);\n  bVar2 = *param_1;\n  while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }\n  putc(0x22,param_2);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0005b7e0(byte *param_1,FILE *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  \n  bVar2 = *param_1;\n  pbVar1 = param_1;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }\n  putc(0x22,param_2);\n  bVar2 = *param_1;\n  while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }\n  putc(0x22,param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005b7e0(byte *param_1,FILE *param_2,int param_3)" identifier (parameter_list "(byte *param_1,FILE *param_2,int param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  \n  bVar2 = *param_1;\n  pbVar1 = param_1;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }\n  putc(0x22,param_2);\n  bVar2 = *param_1;\n  while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }\n  putc(0x22,param_2);\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pbVar1 = param_1;" (assignment_expression "pbVar1 = param_1" identifier = identifier) ;) (while_statement "while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }" { (if_statement "if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }" if (parenthesized_expression "((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c))" ( (binary_expression "(((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)" (parenthesized_expression "(((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0))" ( (binary_expression "((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)" (parenthesized_expression "((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c))" ( (binary_expression "(bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)" (parenthesized_expression "(bVar2 == 0x27 || bVar2 == 0x22)" ( (binary_expression "bVar2 == 0x27 || bVar2 == 0x22" (binary_expression "bVar2 == 0x27" identifier == number_literal) || (binary_expression "bVar2 == 0x22" identifier == number_literal)) )) || (parenthesized_expression "(bVar2 == 0x5c)" ( (binary_expression "bVar2 == 0x5c" identifier == number_literal) ))) )) || (parenthesized_expression "((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)" ( (binary_expression "(PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0" (parenthesized_expression "(PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40)" ( (binary_expression "PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40" (subscript_expression "PTR__sch_istable_001cefa0[(uint)bVar2 * 2]" identifier [ (binary_expression "(uint)bVar2 * 2" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal) ]) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "(bVar2 == 0x3b || bVar2 == 0x2c)" ( (binary_expression "bVar2 == 0x3b || bVar2 == 0x2c" (binary_expression "bVar2 == 0x3b" identifier == number_literal) || (binary_expression "bVar2 == 0x2c" identifier == number_literal)) ))) )) (compound_statement "{\n      param_3 = 1;\n    }" { (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" identifier = number_literal) ;) })) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" identifier = (binary_expression "pbVar1 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = *pbVar1;" (assignment_expression "bVar2 = *pbVar1" identifier = (pointer_expression "*pbVar1" * identifier)) ;) })) (if_statement "if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    fputs((char *)param_1,param_2);\n    return;\n  }" { (expression_statement "fputs((char *)param_1,param_2);" (call_expression "fputs((char *)param_1,param_2)" identifier (argument_list "((char *)param_1,param_2)" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "putc(0x22,param_2);" (call_expression "putc(0x22,param_2)" identifier (argument_list "(0x22,param_2)" ( number_literal , identifier ))) ;) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }" while (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }" { (if_statement "if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }" if (parenthesized_expression "((bVar2 == 0x22) || (bVar2 == 0x5c))" ( (binary_expression "(bVar2 == 0x22) || (bVar2 == 0x5c)" (parenthesized_expression "(bVar2 == 0x22)" ( (binary_expression "bVar2 == 0x22" identifier == number_literal) )) || (parenthesized_expression "(bVar2 == 0x5c)" ( (binary_expression "bVar2 == 0x5c" identifier == number_literal) ))) )) (compound_statement "{\n      putc(0x5c,param_2);\n    }" { (expression_statement "putc(0x5c,param_2);" (call_expression "putc(0x5c,param_2)" identifier (argument_list "(0x5c,param_2)" ( number_literal , identifier ))) ;) })) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *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 "putc((int)(char)bVar2,param_2);" (call_expression "putc((int)(char)bVar2,param_2)" identifier (argument_list "((int)(char)bVar2,param_2)" ( (cast_expression "(int)(char)bVar2" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier)) , identifier ))) ;) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "putc(0x22,param_2);" (call_expression "putc(0x22,param_2)" identifier (argument_list "(0x22,param_2)" ( number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT) ]) & LIT) )) != LIT) ))) )) || (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0005b7e0(byte *param_1,FILE *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  \n  bVar2 = *param_1;\n  pbVar1 = param_1;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }\n  putc(0x22,param_2);\n  bVar2 = *param_1;\n  while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }\n  putc(0x22,param_2);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005b7e0(byte *param_1,FILE *param_2,int param_3)" (identifier "FUN_0005b7e0") (parameter_list "(byte *param_1,FILE *param_2,int param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "FILE *param_2" (type_identifier "FILE") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  \n  bVar2 = *param_1;\n  pbVar1 = param_1;\n  while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }\n  if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }\n  putc(0x22,param_2);\n  bVar2 = *param_1;\n  while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }\n  putc(0x22,param_2);\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" (identifier "bVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pbVar1 = param_1;" (assignment_expression "pbVar1 = param_1" (identifier "pbVar1") (= "=") (identifier "param_1")) (; ";")) (while_statement "while (bVar2 != 0) {\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }" (while "while") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }\n    pbVar1 = pbVar1 + 1;\n    bVar2 = *pbVar1;\n  }" ({ "{") (if_statement "if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)) {\n      param_3 = 1;\n    }" (if "if") (parenthesized_expression "((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c))" (( "(") (binary_expression "(((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||\n       (bVar2 == 0x3b || bVar2 == 0x2c)" (parenthesized_expression "(((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0))" (( "(") (binary_expression "((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||\n        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)" (parenthesized_expression "((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c))" (( "(") (binary_expression "(bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)" (parenthesized_expression "(bVar2 == 0x27 || bVar2 == 0x22)" (( "(") (binary_expression "bVar2 == 0x27 || bVar2 == 0x22" (binary_expression "bVar2 == 0x27" (identifier "bVar2") (== "==") (number_literal "0x27")) (|| "||") (binary_expression "bVar2 == 0x22" (identifier "bVar2") (== "==") (number_literal "0x22"))) () ")")) (|| "||") (parenthesized_expression "(bVar2 == 0x5c)" (( "(") (binary_expression "bVar2 == 0x5c" (identifier "bVar2") (== "==") (number_literal "0x5c")) () ")"))) () ")")) (|| "||") (parenthesized_expression "((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)" (( "(") (binary_expression "(PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0" (parenthesized_expression "(PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40)" (( "(") (binary_expression "PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40" (subscript_expression "PTR__sch_istable_001cefa0[(uint)bVar2 * 2]" (identifier "PTR__sch_istable_001cefa0") ([ "[") (binary_expression "(uint)bVar2 * 2" (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2")) (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(bVar2 == 0x3b || bVar2 == 0x2c)" (( "(") (binary_expression "bVar2 == 0x3b || bVar2 == 0x2c" (binary_expression "bVar2 == 0x3b" (identifier "bVar2") (== "==") (number_literal "0x3b")) (|| "||") (binary_expression "bVar2 == 0x2c" (identifier "bVar2") (== "==") (number_literal "0x2c"))) () ")"))) () ")")) (compound_statement "{\n      param_3 = 1;\n    }" ({ "{") (expression_statement "param_3 = 1;" (assignment_expression "param_3 = 1" (identifier "param_3") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "pbVar1 = pbVar1 + 1;" (assignment_expression "pbVar1 = pbVar1 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar1 + 1" (identifier "pbVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = *pbVar1;" (assignment_expression "bVar2 = *pbVar1" (identifier "bVar2") (= "=") (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1"))) (; ";")) (} "}"))) (if_statement "if (param_3 == 0) {\n    fputs((char *)param_1,param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    fputs((char *)param_1,param_2);\n    return;\n  }" ({ "{") (expression_statement "fputs((char *)param_1,param_2);" (call_expression "fputs((char *)param_1,param_2)" (identifier "fputs") (argument_list "((char *)param_1,param_2)" (( "(") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "putc(0x22,param_2);" (call_expression "putc(0x22,param_2)" (identifier "putc") (argument_list "(0x22,param_2)" (( "(") (number_literal "0x22") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" (identifier "bVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (while_statement "while (bVar2 != 0) {\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }" (while "while") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }\n    bVar2 = *param_1;\n    param_1 = param_1 + 1;\n    putc((int)(char)bVar2,param_2);\n    bVar2 = *param_1;\n  }" ({ "{") (if_statement "if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {\n      putc(0x5c,param_2);\n    }" (if "if") (parenthesized_expression "((bVar2 == 0x22) || (bVar2 == 0x5c))" (( "(") (binary_expression "(bVar2 == 0x22) || (bVar2 == 0x5c)" (parenthesized_expression "(bVar2 == 0x22)" (( "(") (binary_expression "bVar2 == 0x22" (identifier "bVar2") (== "==") (number_literal "0x22")) () ")")) (|| "||") (parenthesized_expression "(bVar2 == 0x5c)" (( "(") (binary_expression "bVar2 == 0x5c" (identifier "bVar2") (== "==") (number_literal "0x5c")) () ")"))) () ")")) (compound_statement "{\n      putc(0x5c,param_2);\n    }" ({ "{") (expression_statement "putc(0x5c,param_2);" (call_expression "putc(0x5c,param_2)" (identifier "putc") (argument_list "(0x5c,param_2)" (( "(") (number_literal "0x5c") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" (identifier "bVar2") (= "=") (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 "putc((int)(char)bVar2,param_2);" (call_expression "putc((int)(char)bVar2,param_2)" (identifier "putc") (argument_list "((int)(char)bVar2,param_2)" (( "(") (cast_expression "(int)(char)bVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2"))) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" (identifier "bVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "putc(0x22,param_2);" (call_expression "putc(0x22,param_2)" (identifier "putc") (argument_list "(0x22,param_2)" (( "(") (number_literal "0x22") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_7,type_1 *f,int var_3)

{
  type_2 *var_2;
  type_2 var_1;
  char var_6;
  
  var_1 = *var_7;
  var_2 = (type_2 *)var_7;
  while (var_1 != 0) {
    if ((((var_1 == 0x27 || var_1 == 0x22) || (var_1 == 0x5c)) ||
        ((PTR__sch_istable_001cefa0[(type_3)var_1 * 2] & 0x40) != 0)) ||
       (var_1 == 0x3b || var_1 == 0x2c)) {
      var_3 = 1;
    }
    var_2 = var_2 + 1;
    var_1 = *var_2;
  }
  if (var_3 == 0) {
    var_4(var_7,(type_1 *)f);
    return;
  }
  var_5(0x22,(type_1 *)f);
  var_6 = *var_7;
  while (var_6 != '\0') {
    if ((var_6 == '\"') || (var_6 == '\\')) {
      var_5(0x5c,(type_1 *)f);
    }
    var_6 = *var_7;
    var_7 = var_7 + 1;
    var_5((int)var_6,(type_1 *)f);
    var_6 = *var_7;
  }
  var_5(0x22,(type_1 *)f);
  return;
}


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

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

void __regparm3 MASKED(byte *param_1,FILE *param_2,int param_3)

{
  byte *pbVar1;
  byte bVar2;
  
  bVar2 = *param_1;
  pbVar1 = param_1;
  while (bVar2 != 0) {
    if ((((bVar2 == 0x27 || bVar2 == 0x22) || (bVar2 == 0x5c)) ||
        ((PTR__sch_istable_001cefa0[(uint)bVar2 * 2] & 0x40) != 0)) ||
       (bVar2 == 0x3b || bVar2 == 0x2c)) {
      param_3 = 1;
    }
    pbVar1 = pbVar1 + 1;
    bVar2 = *pbVar1;
  }
  if (param_3 == 0) {
    fputs((char *)param_1,param_2);
    return;
  }
  putc(0x22,param_2);
  bVar2 = *param_1;
  while (bVar2 != 0) {
    if ((bVar2 == 0x22) || (bVar2 == 0x5c)) {
      putc(0x5c,param_2);
    }
    bVar2 = *param_1;
    param_1 = param_1 + 1;
    putc((int)(char)bVar2,param_2);
    bVar2 = *param_1;
  }
  putc(0x22,param_2);
  return;
}

