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

void __regparm3 printSchemaLine(FILE *out,char *z,char *zTail)

{
  int iVar1;
  char *pcVar2;
  
  iVar1 = sqlite3_strglob("CREATE TABLE [\'\"]*",z);
  if (iVar1 == 0) {
    z = z + 0xd;
    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";
  }
  else {
    pcVar2 = "%s%s";
  }
  __fprintf_chk(out,1,pcVar2,z,zTail);
  return;
}



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

void __regparm3 FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  char *pcVar2;
  
  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);
  if (iVar1 == 0) {
    param_2 = param_2 + 0xd;
    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";
  }
  else {
    pcVar2 = "%s%s";
  }
  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);
  return;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00017230
ADD EBX,0x155b29
SUB ESP,0x14
PUSH EDX
LEA EAX,[EBX + 0xfff9b8f3]
PUSH EAX
CALL 0x00041500
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00026340
SUB ESP,0xc
ADD ESI,0xd
LEA EAX,[EBX + 0xfff9e008]
PUSH EBP
PUSH ESI
PUSH EAX
PUSH 0x1
PUSH EDI
CALL 0x00015590
ADD ESP,0x20
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffa3e8a]
PUSH EBP
PUSH ESI
JMP 0x0002632a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);\n  if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);\n  if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);\n  if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);" (assignment_expression "iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2)" identifier = (call_expression "FUN_00041500("CREATE TABLE [\'\"]*",param_2)" identifier (argument_list "("CREATE TABLE [\'\"]*",param_2)" ( (string_literal ""CREATE TABLE [\'\"]*"" " string_content escape_sequence escape_sequence string_content ") , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }" { (expression_statement "param_2 = param_2 + 0xd;" (assignment_expression "param_2 = param_2 + 0xd" identifier = (binary_expression "param_2 + 0xd" identifier + number_literal)) ;) (expression_statement "pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";" (assignment_expression "pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s"" identifier = (string_literal ""CREATE TABLE IF NOT EXISTS %s%s"" " string_content ")) ;) }) (else_clause "else {\n    pcVar2 = "%s%s";\n  }" else (compound_statement "{\n    pcVar2 = "%s%s";\n  }" { (expression_statement "pcVar2 = "%s%s";" (assignment_expression "pcVar2 = "%s%s"" identifier = (string_literal ""%s%s"" " string_content ")) ;) }))) (expression_statement "__fprintf_chk(param_1,1,pcVar2,param_2,param_3);" (call_expression "__fprintf_chk(param_1,1,pcVar2,param_2,param_3)" identifier (argument_list "(param_1,1,pcVar2,param_2,param_3)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 printSchemaLine(FILE *out,char *z,char *zTail)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = sqlite3_strglob("CREATE TABLE [\'\"]*",z);\n  if (iVar1 == 0) {\n    z = z + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(out,1,pcVar2,z,zTail);\n  return;\n}\n\n" comment (function_definition "void __regparm3 printSchemaLine(FILE *out,char *z,char *zTail)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = sqlite3_strglob("CREATE TABLE [\'\"]*",z);\n  if (iVar1 == 0) {\n    z = z + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(out,1,pcVar2,z,zTail);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "printSchemaLine(FILE *out,char *z,char *zTail)" identifier (parameter_list "(FILE *out,char *z,char *zTail)" ( (parameter_declaration "FILE *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "char *z" primitive_type (pointer_declarator "*z" * identifier)) , (parameter_declaration "char *zTail" primitive_type (pointer_declarator "*zTail" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = sqlite3_strglob("CREATE TABLE [\'\"]*",z);\n  if (iVar1 == 0) {\n    z = z + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(out,1,pcVar2,z,zTail);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "iVar1 = sqlite3_strglob("CREATE TABLE [\'\"]*",z);" (assignment_expression "iVar1 = sqlite3_strglob("CREATE TABLE [\'\"]*",z)" identifier = (call_expression "sqlite3_strglob("CREATE TABLE [\'\"]*",z)" identifier (argument_list "("CREATE TABLE [\'\"]*",z)" ( (string_literal ""CREATE TABLE [\'\"]*"" " string_content escape_sequence escape_sequence string_content ") , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    z = z + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    z = z + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }" { (expression_statement "z = z + 0xd;" (assignment_expression "z = z + 0xd" identifier = (binary_expression "z + 0xd" identifier + number_literal)) ;) (expression_statement "pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";" (assignment_expression "pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s"" identifier = (string_literal ""CREATE TABLE IF NOT EXISTS %s%s"" " string_content ")) ;) }) (else_clause "else {\n    pcVar2 = "%s%s";\n  }" else (compound_statement "{\n    pcVar2 = "%s%s";\n  }" { (expression_statement "pcVar2 = "%s%s";" (assignment_expression "pcVar2 = "%s%s"" identifier = (string_literal ""%s%s"" " string_content ")) ;) }))) (expression_statement "__fprintf_chk(out,1,pcVar2,z,zTail);" (call_expression "__fprintf_chk(out,1,pcVar2,z,zTail)" identifier (argument_list "(out,1,pcVar2,z,zTail)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);\n  if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);\n  if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);\n  if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);" (assignment_expression "iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2)" identifier = (call_expression "FUN_00041500("CREATE TABLE [\'\"]*",param_2)" identifier (argument_list "("CREATE TABLE [\'\"]*",param_2)" ( (string_literal ""CREATE TABLE [\'\"]*"" " string_content escape_sequence escape_sequence string_content ") , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }" { (expression_statement "param_2 = param_2 + 0xd;" (assignment_expression "param_2 = param_2 + 0xd" identifier = (binary_expression "param_2 + 0xd" identifier + number_literal)) ;) (expression_statement "pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";" (assignment_expression "pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s"" identifier = (string_literal ""CREATE TABLE IF NOT EXISTS %s%s"" " string_content ")) ;) }) (else_clause "else {\n    pcVar2 = "%s%s";\n  }" else (compound_statement "{\n    pcVar2 = "%s%s";\n  }" { (expression_statement "pcVar2 = "%s%s";" (assignment_expression "pcVar2 = "%s%s"" identifier = (string_literal ""%s%s"" " string_content ")) ;) }))) (expression_statement "__fprintf_chk(param_1,1,pcVar2,param_2,param_3);" (call_expression "__fprintf_chk(param_1,1,pcVar2,param_2,param_3)" identifier (argument_list "(param_1,1,pcVar2,param_2,param_3)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence escape_sequence string_content ") , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);\n  if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000262f0(undefined4 param_1,int param_2,undefined4 param_3)" (identifier "FUN_000262f0") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);\n  if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }\n  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);" (assignment_expression "iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00041500("CREATE TABLE [\'\"]*",param_2)" (identifier "FUN_00041500") (argument_list "("CREATE TABLE [\'\"]*",param_2)" (( "(") (string_literal ""CREATE TABLE [\'\"]*"" (" """) (string_content "CREATE TABLE [") (escape_sequence "\'") (escape_sequence "\"") (string_content "]*") (" """)) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }\n  else {\n    pcVar2 = "%s%s";\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = param_2 + 0xd;\n    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";\n  }" ({ "{") (expression_statement "param_2 = param_2 + 0xd;" (assignment_expression "param_2 = param_2 + 0xd" (identifier "param_2") (= "=") (binary_expression "param_2 + 0xd" (identifier "param_2") (+ "+") (number_literal "0xd"))) (; ";")) (expression_statement "pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";" (assignment_expression "pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s"" (identifier "pcVar2") (= "=") (string_literal ""CREATE TABLE IF NOT EXISTS %s%s"" (" """) (string_content "CREATE TABLE IF NOT EXISTS %s%s") (" """))) (; ";")) (} "}")) (else_clause "else {\n    pcVar2 = "%s%s";\n  }" (else "else") (compound_statement "{\n    pcVar2 = "%s%s";\n  }" ({ "{") (expression_statement "pcVar2 = "%s%s";" (assignment_expression "pcVar2 = "%s%s"" (identifier "pcVar2") (= "=") (string_literal ""%s%s"" (" """) (string_content "%s%s") (" """))) (; ";")) (} "}")))) (expression_statement "__fprintf_chk(param_1,1,pcVar2,param_2,param_3);" (call_expression "__fprintf_chk(param_1,1,pcVar2,param_2,param_3)" (identifier "__fprintf_chk") (argument_list "(param_1,1,pcVar2,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (identifier "pcVar2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *out,char *var_3,char *zTail)

{
  int var_2;
  char *pcVar2;
  
  var_2 = var_1("CREATE TABLE [\'\"]*",var_3);
  if (var_2 == 0) {
    var_3 = var_3 + 0xd;
    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";
  }
  else {
    pcVar2 = "%s%s";
  }
  var_4(out,1,pcVar2,var_3,zTail);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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 (string_literal (string_content) (escape_sequence) (escape_sequence) (string_content)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier) (identifier)))) (return_statement))))

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

void __regparm3 MASKED(undefined4 param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  char *pcVar2;
  
  iVar1 = FUN_00041500("CREATE TABLE [\'\"]*",param_2);
  if (iVar1 == 0) {
    param_2 = param_2 + 0xd;
    pcVar2 = "CREATE TABLE IF NOT EXISTS %s%s";
  }
  else {
    pcVar2 = "%s%s";
  }
  __fprintf_chk(param_1,1,pcVar2,param_2,param_3);
  return;
}

