
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: int isAlterableTable(Parse * pParse, Table * pTab, Table * pTab) */

int __regparm3 isAlterableTable(Parse *pParse,Table *pTab,Table *pTab_1)

{
  int iVar1;
  
  iVar1 = sqlite3_strnicmp(pTab->zName,"sqlite_",7);
  if ((iVar1 != 0) &&
     (((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||
      (pParse->db->nVdbeExec != 0)))) {
    return 0;
  }
  sqlite3ErrorMsg(pParse,"table %s may not be altered",pTab->zName);
  return 1;
}



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

undefined4 __regparm3 FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)

{
  int iVar1;
  
  iVar1 = FUN_00029940(*param_2,"sqlite_",7);
  if ((iVar1 != 0) &&
     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||
      (*(int *)(*param_1 + 0xb0) != 0)))) {
    return 0;
  }
  FUN_000590d0(param_1,"table %s may not be altered",*param_2);
  return 1;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00014d20
ADD EBX,0xeec55
SUB ESP,0x10
PUSH 0x7
LEA EAX,[EBX + 0xfffadc90]
PUSH EAX
PUSH dword ptr [EDX]
CALL 0x00029940
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005c2c8
MOV EDX,dword ptr [EBP]
XOR EAX,EAX
AND DH,0x4
JZ 0x0005c2bb
MOV EDX,dword ptr [EDI]
TEST byte ptr [EDX + 0x1f],0x10
JZ 0x0005c2bb
MOV EDX,dword ptr [EDX + 0xb0]
TEST EDX,EDX
JZ 0x0005c2c8
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffadd4d]
PUSH dword ptr [ESI]
PUSH EAX
PUSH EDI
CALL 0x000590d0
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0xc
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\nundefined4 __regparm3 FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00029940(*param_2,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }\n  FUN_000590d0(param_1,"table %s may not be altered",*param_2);\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00029940(*param_2,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }\n  FUN_000590d0(param_1,"table %s may not be altered",*param_2);\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)" identifier (parameter_list "(int *param_1,undefined4 *param_2,uint *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00029940(*param_2,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }\n  FUN_000590d0(param_1,"table %s may not be altered",*param_2);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00029940(*param_2,"sqlite_",7);" (assignment_expression "iVar1 = FUN_00029940(*param_2,"sqlite_",7)" identifier = (call_expression "FUN_00029940(*param_2,"sqlite_",7)" identifier (argument_list "(*param_2,"sqlite_",7)" ( (pointer_expression "*param_2" * identifier) , (string_literal ""sqlite_"" " string_content ") , number_literal )))) ;) (if_statement "if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0))))" ( (binary_expression "(iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))" ( (parenthesized_expression "(((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0))" ( (binary_expression "((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)" (parenthesized_expression "((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0))" ( (binary_expression "(*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)" (binary_expression "(*param_3 & 0x400) == 0" (parenthesized_expression "(*param_3 & 0x400)" ( (binary_expression "*param_3 & 0x400" (pointer_expression "*param_3" * identifier) & number_literal) )) == number_literal) || (parenthesized_expression "((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)" ( (binary_expression "(*(byte *)(*param_1 + 0x1f) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x1f) & 0x10)" ( (binary_expression "*(byte *)(*param_1 + 0x1f) & 0x10" (pointer_expression "*(byte *)(*param_1 + 0x1f)" * (cast_expression "(byte *)(*param_1 + 0x1f)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1f)" ( (binary_expression "*param_1 + 0x1f" (pointer_expression "*param_1" * identifier) + number_literal) )))) & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "(*(int *)(*param_1 + 0xb0) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xb0) != 0" (pointer_expression "*(int *)(*param_1 + 0xb0)" * (cast_expression "(int *)(*param_1 + 0xb0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xb0)" ( (binary_expression "*param_1 + 0xb0" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) ))) )) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_000590d0(param_1,"table %s may not be altered",*param_2);" (call_expression "FUN_000590d0(param_1,"table %s may not be altered",*param_2)" identifier (argument_list "(param_1,"table %s may not be altered",*param_2)" ( identifier , (string_literal ""table %s may not be altered"" " string_content ") , (pointer_expression "*param_2" * identifier) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: int isAlterableTable(Parse * pParse, Table * pTab, Table * pTab) */\n\nint __regparm3 isAlterableTable(Parse *pParse,Table *pTab,Table *pTab_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_strnicmp(pTab->zName,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     (((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0)))) {\n    return 0;\n  }\n  sqlite3ErrorMsg(pParse,"table %s may not be altered",pTab->zName);\n  return 1;\n}\n\n" comment comment (function_definition "int __regparm3 isAlterableTable(Parse *pParse,Table *pTab,Table *pTab_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_strnicmp(pTab->zName,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     (((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0)))) {\n    return 0;\n  }\n  sqlite3ErrorMsg(pParse,"table %s may not be altered",pTab->zName);\n  return 1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "isAlterableTable(Parse *pParse,Table *pTab,Table *pTab_1)" identifier (parameter_list "(Parse *pParse,Table *pTab,Table *pTab_1)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) , (parameter_declaration "Table *pTab_1" type_identifier (pointer_declarator "*pTab_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_strnicmp(pTab->zName,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     (((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0)))) {\n    return 0;\n  }\n  sqlite3ErrorMsg(pParse,"table %s may not be altered",pTab->zName);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sqlite3_strnicmp(pTab->zName,"sqlite_",7);" (assignment_expression "iVar1 = sqlite3_strnicmp(pTab->zName,"sqlite_",7)" identifier = (call_expression "sqlite3_strnicmp(pTab->zName,"sqlite_",7)" identifier (argument_list "(pTab->zName,"sqlite_",7)" ( (field_expression "pTab->zName" identifier -> field_identifier) , (string_literal ""sqlite_"" " string_content ") , number_literal )))) ;) (if_statement "if ((iVar1 != 0) &&\n     (((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0)))) {\n    return 0;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     (((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0))))" ( (binary_expression "(iVar1 != 0) &&\n     (((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0)))" ( (parenthesized_expression "((((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0))" ( (binary_expression "(((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||\n      (pParse->db->nVdbeExec != 0)" (parenthesized_expression "(((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0))" ( (binary_expression "((uint)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)" (binary_expression "((uint)pTab_1->zName & 0x400) == 0" (parenthesized_expression "((uint)pTab_1->zName & 0x400)" ( (binary_expression "(uint)pTab_1->zName & 0x400" (cast_expression "(uint)pTab_1->zName" ( (type_descriptor "uint" type_identifier) ) (field_expression "pTab_1->zName" identifier -> field_identifier)) & number_literal) )) == number_literal) || (parenthesized_expression "((pParse->db->flags & 0x10000000) == 0)" ( (binary_expression "(pParse->db->flags & 0x10000000) == 0" (parenthesized_expression "(pParse->db->flags & 0x10000000)" ( (binary_expression "pParse->db->flags & 0x10000000" (field_expression "pParse->db->flags" (field_expression "pParse->db" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "(pParse->db->nVdbeExec != 0)" ( (binary_expression "pParse->db->nVdbeExec != 0" (field_expression "pParse->db->nVdbeExec" (field_expression "pParse->db" identifier -> field_identifier) -> field_identifier) != number_literal) ))) )) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sqlite3ErrorMsg(pParse,"table %s may not be altered",pTab->zName);" (call_expression "sqlite3ErrorMsg(pParse,"table %s may not be altered",pTab->zName)" identifier (argument_list "(pParse,"table %s may not be altered",pTab->zName)" ( identifier , (string_literal ""table %s may not be altered"" " string_content ") , (field_expression "pTab->zName" identifier -> field_identifier) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00029940(*param_2,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }\n  FUN_000590d0(param_1,"table %s may not be altered",*param_2);\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00029940(*param_2,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }\n  FUN_000590d0(param_1,"table %s may not be altered",*param_2);\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)" identifier (parameter_list "(int *param_1,undefined4 *param_2,uint *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00029940(*param_2,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }\n  FUN_000590d0(param_1,"table %s may not be altered",*param_2);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00029940(*param_2,"sqlite_",7);" (assignment_expression "iVar1 = FUN_00029940(*param_2,"sqlite_",7)" identifier = (call_expression "FUN_00029940(*param_2,"sqlite_",7)" identifier (argument_list "(*param_2,"sqlite_",7)" ( (pointer_expression "*param_2" * identifier) , (string_literal ""sqlite_"" " string_content ") , number_literal )))) ;) (if_statement "if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0))))" ( (binary_expression "(iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))" ( (parenthesized_expression "(((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0))" ( (binary_expression "((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)" (parenthesized_expression "((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0))" ( (binary_expression "(*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)" (binary_expression "(*param_3 & 0x400) == 0" (parenthesized_expression "(*param_3 & 0x400)" ( (binary_expression "*param_3 & 0x400" (pointer_expression "*param_3" * identifier) & number_literal) )) == number_literal) || (parenthesized_expression "((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)" ( (binary_expression "(*(byte *)(*param_1 + 0x1f) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x1f) & 0x10)" ( (binary_expression "*(byte *)(*param_1 + 0x1f) & 0x10" (pointer_expression "*(byte *)(*param_1 + 0x1f)" * (cast_expression "(byte *)(*param_1 + 0x1f)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1f)" ( (binary_expression "*param_1 + 0x1f" (pointer_expression "*param_1" * identifier) + number_literal) )))) & number_literal) )) == number_literal) ))) )) || (parenthesized_expression "(*(int *)(*param_1 + 0xb0) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xb0) != 0" (pointer_expression "*(int *)(*param_1 + 0xb0)" * (cast_expression "(int *)(*param_1 + 0xb0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xb0)" ( (binary_expression "*param_1 + 0xb0" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) ))) )) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_000590d0(param_1,"table %s may not be altered",*param_2);" (call_expression "FUN_000590d0(param_1,"table %s may not be altered",*param_2)" identifier (argument_list "(param_1,"table %s may not be altered",*param_2)" ( identifier , (string_literal ""table %s may not be altered"" " string_content ") , (pointer_expression "*param_2" * identifier) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) & LIT) )) == LIT) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) ))) )) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression * IDENT) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00029940(*param_2,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }\n  FUN_000590d0(param_1,"table %s may not be altered",*param_2);\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005c270(int *param_1,undefined4 *param_2,uint *param_3)" (identifier "FUN_0005c270") (parameter_list "(int *param_1,undefined4 *param_2,uint *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00029940(*param_2,"sqlite_",7);\n  if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }\n  FUN_000590d0(param_1,"table %s may not be altered",*param_2);\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00029940(*param_2,"sqlite_",7);" (assignment_expression "iVar1 = FUN_00029940(*param_2,"sqlite_",7)" (identifier "iVar1") (= "=") (call_expression "FUN_00029940(*param_2,"sqlite_",7)" (identifier "FUN_00029940") (argument_list "(*param_2,"sqlite_",7)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (string_literal ""sqlite_"" (" """) (string_content "sqlite_") (" """)) (, ",") (number_literal "7") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0))))" (( "(") (binary_expression "(iVar1 != 0) &&\n     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)))" (( "(") (parenthesized_expression "(((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0))" (( "(") (binary_expression "((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||\n      (*(int *)(*param_1 + 0xb0) != 0)" (parenthesized_expression "((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0))" (( "(") (binary_expression "(*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)" (binary_expression "(*param_3 & 0x400) == 0" (parenthesized_expression "(*param_3 & 0x400)" (( "(") (binary_expression "*param_3 & 0x400" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (& "&") (number_literal "0x400")) () ")")) (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)(*param_1 + 0x1f) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*param_1 + 0x1f) & 0x10)" (( "(") (binary_expression "*(byte *)(*param_1 + 0x1f) & 0x10" (pointer_expression "*(byte *)(*param_1 + 0x1f)" (* "*") (cast_expression "(byte *)(*param_1 + 0x1f)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1f)" (( "(") (binary_expression "*param_1 + 0x1f" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1f")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*(int *)(*param_1 + 0xb0) != 0)" (( "(") (binary_expression "*(int *)(*param_1 + 0xb0) != 0" (pointer_expression "*(int *)(*param_1 + 0xb0)" (* "*") (cast_expression "(int *)(*param_1 + 0xb0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xb0)" (( "(") (binary_expression "*param_1 + 0xb0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xb0")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_000590d0(param_1,"table %s may not be altered",*param_2);" (call_expression "FUN_000590d0(param_1,"table %s may not be altered",*param_2)" (identifier "FUN_000590d0") (argument_list "(param_1,"table %s may not be altered",*param_2)" (( "(") (identifier "param_1") (, ",") (string_literal ""table %s may not be altered"" (" """) (string_content "table %s may not be altered") (" """)) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: int isAlterableTable(Parse * pParse, Table * pTab, Table * pTab) */

int __regparm3 function_1(type_1 *pParse,type_2 *pTab,type_2 *pTab_1)

{
  int var_2;
  
  var_2 = var_1(pTab->zName,"sqlite_",7);
  if ((var_2 != 0) &&
     (((((type_3)pTab_1->zName & 0x400) == 0 || ((pParse->db->flags & 0x10000000) == 0)) ||
      (pParse->db->nVdbeExec != 0)))) {
    return 0;
  }
  var_3(pParse,"table %s may not be altered",pTab->zName);
  return 1;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal)))))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (pointer_expression argument: (identifier))))) (return_statement (number_literal)))))

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

undefined4 __regparm3 MASKED(int *param_1,undefined4 *param_2,uint *param_3)

{
  int iVar1;
  
  iVar1 = FUN_00029940(*param_2,"sqlite_",7);
  if ((iVar1 != 0) &&
     ((((*param_3 & 0x400) == 0 || ((*(byte *)(*param_1 + 0x1f) & 0x10) == 0)) ||
      (*(int *)(*param_1 + 0xb0) != 0)))) {
    return 0;
  }
  FUN_000590d0(param_1,"table %s may not be altered",*param_2);
  return 1;
}

