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

int __regparm3 idxPrepareStmt(sqlite3 *db,sqlite3_stmt **ppStmt,char **pzErrmsg,char *zSql)

{
  int iVar1;
  
  iVar1 = sqlite3_prepare_v2(db,zSql,-1,ppStmt,(char **)0x0);
  if (iVar1 == 0) {
    return 0;
  }
  *ppStmt = (sqlite3_stmt *)0x0;
  idxDatabaseError(db,pzErrmsg);
  return iVar1;
}



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

int __regparm2 FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);
  if (iVar1 == 0) {
    return 0;
  }
  *param_2 = 0;
  FUN_0001b8f0();
  return iVar1;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,ECX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00017230
ADD EBX,0x1604f9
SUB ESP,0x18
PUSH 0x0
PUSH EDX
PUSH -0x1
PUSH dword ptr [ESP + 0x38]
PUSH EAX
CALL 0x000e2d60
ADD ESP,0x20
MOV EBX,EAX
TEST EAX,EAX
JNZ 0x0001b960
ADD ESP,0xc
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EBP],0x0
MOV EAX,ESI
MOV EDX,EDI
CALL 0x0001b8f0
ADD ESP,0xc
MOV EAX,EBX
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\nint __regparm2 FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *param_2 = 0;\n  FUN_0001b8f0();\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm2 FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *param_2 = 0;\n  FUN_0001b8f0();\n  return iVar1;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *param_2 = 0;\n  FUN_0001b8f0();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);" (assignment_expression "iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0)" identifier = (call_expression "FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0)" identifier (argument_list "(param_1,param_3,0xffffffff,param_2,0)" ( identifier , identifier , number_literal , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "FUN_0001b8f0();" (call_expression "FUN_0001b8f0()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 idxPrepareStmt(sqlite3 *db,sqlite3_stmt **ppStmt,char **pzErrmsg,char *zSql)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_prepare_v2(db,zSql,-1,ppStmt,(char **)0x0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *ppStmt = (sqlite3_stmt *)0x0;\n  idxDatabaseError(db,pzErrmsg);\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 idxPrepareStmt(sqlite3 *db,sqlite3_stmt **ppStmt,char **pzErrmsg,char *zSql)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_prepare_v2(db,zSql,-1,ppStmt,(char **)0x0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *ppStmt = (sqlite3_stmt *)0x0;\n  idxDatabaseError(db,pzErrmsg);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "idxPrepareStmt(sqlite3 *db,sqlite3_stmt **ppStmt,char **pzErrmsg,char *zSql)" identifier (parameter_list "(sqlite3 *db,sqlite3_stmt **ppStmt,char **pzErrmsg,char *zSql)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "sqlite3_stmt **ppStmt" type_identifier (pointer_declarator "**ppStmt" * (pointer_declarator "*ppStmt" * identifier))) , (parameter_declaration "char **pzErrmsg" primitive_type (pointer_declarator "**pzErrmsg" * (pointer_declarator "*pzErrmsg" * identifier))) , (parameter_declaration "char *zSql" primitive_type (pointer_declarator "*zSql" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_prepare_v2(db,zSql,-1,ppStmt,(char **)0x0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *ppStmt = (sqlite3_stmt *)0x0;\n  idxDatabaseError(db,pzErrmsg);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sqlite3_prepare_v2(db,zSql,-1,ppStmt,(char **)0x0);" (assignment_expression "iVar1 = sqlite3_prepare_v2(db,zSql,-1,ppStmt,(char **)0x0)" identifier = (call_expression "sqlite3_prepare_v2(db,zSql,-1,ppStmt,(char **)0x0)" identifier (argument_list "(db,zSql,-1,ppStmt,(char **)0x0)" ( identifier , identifier , number_literal , identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*ppStmt = (sqlite3_stmt *)0x0;" (assignment_expression "*ppStmt = (sqlite3_stmt *)0x0" (pointer_expression "*ppStmt" * identifier) = (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "idxDatabaseError(db,pzErrmsg);" (call_expression "idxDatabaseError(db,pzErrmsg)" identifier (argument_list "(db,pzErrmsg)" ( identifier , identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int __regparm2 FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *param_2 = 0;\n  FUN_0001b8f0();\n  return iVar1;\n}\n\n" (function_definition "int __regparm2 FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *param_2 = 0;\n  FUN_0001b8f0();\n  return iVar1;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *param_2 = 0;\n  FUN_0001b8f0();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);" (assignment_expression "iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0)" identifier = (call_expression "FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0)" identifier (argument_list "(param_1,param_3,0xffffffff,param_2,0)" ( identifier , identifier , number_literal , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "FUN_0001b8f0();" (call_expression "FUN_0001b8f0()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm2 FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *param_2 = 0;\n  FUN_0001b8f0();\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0001b920(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" (identifier "FUN_0001b920") (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  *param_2 = 0;\n  FUN_0001b8f0();\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);" (assignment_expression "iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0)" (identifier "iVar1") (= "=") (call_expression "FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0)" (identifier "FUN_000e2d60") (argument_list "(param_1,param_3,0xffffffff,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (number_literal "0xffffffff") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0001b8f0();" (call_expression "FUN_0001b8f0()" (identifier "FUN_0001b8f0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *db,type_2 **ppStmt,char **pzErrmsg,char *zSql)

{
  int var_2;
  
  var_2 = var_1(db,zSql,-1,ppStmt,(char **)0x0);
  if (var_2 == 0) {
    return 0;
  }
  *ppStmt = (type_2 *)0x0;
  var_3(db,pzErrmsg);
  return var_2;
}


(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) 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 (identifier) (identifier) (number_literal) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (identifier)))))

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

int __regparm2 MASKED(undefined4 param_1,undefined4 *param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = FUN_000e2d60(param_1,param_3,0xffffffff,param_2,0);
  if (iVar1 == 0) {
    return 0;
  }
  *param_2 = 0;
  FUN_0001b8f0();
  return iVar1;
}

