
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

int sqlite3_bind_null(sqlite3_stmt *pStmt,int i)

{
  int iVar1;
  
  iVar1 = vdbeUnbind((Vdbe *)pStmt,i);
  if ((iVar1 == 0) && (*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0)) {
    (*sqlite3Config.mutex.xMutexLeave)(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));
  }
  return iVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int FUN_00079c40(int *param_1)

{
  int iVar1;
  
  iVar1 = FUN_00079820();
  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {
    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));
  }
  return iVar1;
}


PUSH ESI
CALL 0x00152e6c
ADD ESI,0x1411e2
PUSH EBX
SUB ESP,0x14
MOV EBX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,EBX
CALL 0x00079820
TEST EAX,EAX
JNZ 0x00079c81
MOV EDX,dword ptr [EBX]
MOV EDX,dword ptr [EDX + 0xc]
TEST EDX,EDX
JZ 0x00079c81
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
PUSH EDX
CALL dword ptr [ESI + 0x61c]
MOV EAX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint FUN_00079c40(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00079820();\n  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00079c40(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00079820();\n  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00079c40(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00079820();\n  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00079820();" (assignment_expression "iVar1 = FUN_00079820()" identifier = (call_expression "FUN_00079820()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }" if (parenthesized_expression "((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0))" ( (binary_expression "(iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }" { (expression_statement "(*DAT_001bb444)(*(int *)(*param_1 + 0xc));" (call_expression "(*DAT_001bb444)(*(int *)(*param_1 + 0xc))" (parenthesized_expression "(*DAT_001bb444)" ( (pointer_expression "*DAT_001bb444" * identifier) )) (argument_list "(*(int *)(*param_1 + 0xc))" ( (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Unknown calling convention */\n\nint sqlite3_bind_null(sqlite3_stmt *pStmt,int i)\n\n{\n  int iVar1;\n  \n  iVar1 = vdbeUnbind((Vdbe *)pStmt,i);\n  if ((iVar1 == 0) && (*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0)) {\n    (*sqlite3Config.mutex.xMutexLeave)(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int sqlite3_bind_null(sqlite3_stmt *pStmt,int i)\n\n{\n  int iVar1;\n  \n  iVar1 = vdbeUnbind((Vdbe *)pStmt,i);\n  if ((iVar1 == 0) && (*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0)) {\n    (*sqlite3Config.mutex.xMutexLeave)(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_bind_null(sqlite3_stmt *pStmt,int i)" identifier (parameter_list "(sqlite3_stmt *pStmt,int i)" ( (parameter_declaration "sqlite3_stmt *pStmt" type_identifier (pointer_declarator "*pStmt" * identifier)) , (parameter_declaration "int i" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = vdbeUnbind((Vdbe *)pStmt,i);\n  if ((iVar1 == 0) && (*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0)) {\n    (*sqlite3Config.mutex.xMutexLeave)(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = vdbeUnbind((Vdbe *)pStmt,i);" (assignment_expression "iVar1 = vdbeUnbind((Vdbe *)pStmt,i)" identifier = (call_expression "vdbeUnbind((Vdbe *)pStmt,i)" identifier (argument_list "((Vdbe *)pStmt,i)" ( (cast_expression "(Vdbe *)pStmt" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if ((iVar1 == 0) && (*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0)) {\n    (*sqlite3Config.mutex.xMutexLeave)(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }" if (parenthesized_expression "((iVar1 == 0) && (*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0))" ( (binary_expression "(iVar1 == 0) && (*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0)" ( (binary_expression "*(sqlite3_mutex **)(*(int *)pStmt + 0xc) != (sqlite3_mutex *)0x0" (pointer_expression "*(sqlite3_mutex **)(*(int *)pStmt + 0xc)" * (cast_expression "(sqlite3_mutex **)(*(int *)pStmt + 0xc)" ( (type_descriptor "sqlite3_mutex **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pStmt + 0xc)" ( (binary_expression "*(int *)pStmt + 0xc" (pointer_expression "*(int *)pStmt" * (cast_expression "(int *)pStmt" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    (*sqlite3Config.mutex.xMutexLeave)(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }" { (expression_statement "(*sqlite3Config.mutex.xMutexLeave)(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));" (call_expression "(*sqlite3Config.mutex.xMutexLeave)(*(sqlite3_mutex **)(*(int *)pStmt + 0xc))" (parenthesized_expression "(*sqlite3Config.mutex.xMutexLeave)" ( (pointer_expression "*sqlite3Config.mutex.xMutexLeave" * (field_expression "sqlite3Config.mutex.xMutexLeave" (field_expression "sqlite3Config.mutex" identifier . field_identifier) . field_identifier)) )) (argument_list "(*(sqlite3_mutex **)(*(int *)pStmt + 0xc))" ( (pointer_expression "*(sqlite3_mutex **)(*(int *)pStmt + 0xc)" * (cast_expression "(sqlite3_mutex **)(*(int *)pStmt + 0xc)" ( (type_descriptor "sqlite3_mutex **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pStmt + 0xc)" ( (binary_expression "*(int *)pStmt + 0xc" (pointer_expression "*(int *)pStmt" * (cast_expression "(int *)pStmt" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00079c40(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00079820();\n  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00079c40(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00079820();\n  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00079c40(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00079820();\n  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00079820();" (assignment_expression "iVar1 = FUN_00079820()" identifier = (call_expression "FUN_00079820()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }" if (parenthesized_expression "((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0))" ( (binary_expression "(iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }" { (expression_statement "(*DAT_001bb444)(*(int *)(*param_1 + 0xc));" (call_expression "(*DAT_001bb444)(*(int *)(*param_1 + 0xc))" (parenthesized_expression "(*DAT_001bb444)" ( (pointer_expression "*DAT_001bb444" * identifier) )) (argument_list "(*(int *)(*param_1 + 0xc))" ( (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == 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 { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00079c40(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00079820();\n  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00079c40(int *param_1)" (identifier "FUN_00079c40") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00079820();\n  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00079820();" (assignment_expression "iVar1 = FUN_00079820()" (identifier "iVar1") (= "=") (call_expression "FUN_00079820()" (identifier "FUN_00079820") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0))" (( "(") (binary_expression "(iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(*param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(*param_1 + 0xc) != 0" (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));\n  }" ({ "{") (expression_statement "(*DAT_001bb444)(*(int *)(*param_1 + 0xc));" (call_expression "(*DAT_001bb444)(*(int *)(*param_1 + 0xc))" (parenthesized_expression "(*DAT_001bb444)" (( "(") (pointer_expression "*DAT_001bb444" (* "*") (identifier "DAT_001bb444")) () ")")) (argument_list "(*(int *)(*param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

int function_1(type_1 *pStmt,int i)

{
  int var_2;
  
  var_2 = var_1((type_2 *)pStmt,i);
  if ((var_2 == 0) && (*(type_3 **)(*(int *)pStmt + 0xc) != (type_3 *)0x0)) {
    (*sqlite3Config.mutex.xMutexLeave)(*(type_3 **)(*(int *)pStmt + 0xc));
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) 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 (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (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)))))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int MASKED(int *param_1)

{
  int iVar1;
  
  iVar1 = FUN_00079820();
  if ((iVar1 == 0) && (*(int *)(*param_1 + 0xc) != 0)) {
    (*DAT_001bb444)(*(int *)(*param_1 + 0xc));
  }
  return iVar1;
}

