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

void __regparm3 sqlite3Fts5IterClose(Fts5IndexIter *pIndexIter)

{
  int iVar1;
  sqlite3_blob *pBlob;
  Fts5Iter *pIter;
  
  iVar1 = (int)pIndexIter[1].iRowid;
  fts5MultiIterFree((Fts5Iter *)pIndexIter);
  pBlob = *(sqlite3_blob **)(iVar1 + 0x24);
  if (pBlob != (sqlite3_blob *)0x0) {
    *(undefined4 *)(iVar1 + 0x24) = 0;
    sqlite3_blob_close(pBlob);
  }
  return;
}



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

void __regparm3 FUN_0008b5d0(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 0x14);
  FUN_000347d0(0x8b5d7);
  iVar2 = *(int *)(iVar1 + 0x24);
  if (iVar2 != 0) {
    *(undefined4 *)(iVar1 + 0x24) = 0;
    FUN_0008b570(iVar2);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00014d20
ADD EBX,0xbf8fd
SUB ESP,0x4
MOV ESI,dword ptr [EAX + 0x14]
CALL 0x000347d0
MOV EAX,dword ptr [ESI + 0x24]
TEST EAX,EAX
JZ 0x0008b602
SUB ESP,0xc
MOV dword ptr [ESI + 0x24],0x0
PUSH EAX
CALL 0x0008b570
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0008b5d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  FUN_000347d0(0x8b5d7);\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0008b5d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  FUN_000347d0(0x8b5d7);\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0008b5d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  FUN_000347d0(0x8b5d7);\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_000347d0(0x8b5d7);" (call_expression "FUN_000347d0(0x8b5d7)" identifier (argument_list "(0x8b5d7)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0x24);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x24)" identifier = (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0008b570(iVar2);" (call_expression "FUN_0008b570(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 sqlite3Fts5IterClose(Fts5IndexIter *pIndexIter)\n\n{\n  int iVar1;\n  sqlite3_blob *pBlob;\n  Fts5Iter *pIter;\n  \n  iVar1 = (int)pIndexIter[1].iRowid;\n  fts5MultiIterFree((Fts5Iter *)pIndexIter);\n  pBlob = *(sqlite3_blob **)(iVar1 + 0x24);\n  if (pBlob != (sqlite3_blob *)0x0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    sqlite3_blob_close(pBlob);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 sqlite3Fts5IterClose(Fts5IndexIter *pIndexIter)\n\n{\n  int iVar1;\n  sqlite3_blob *pBlob;\n  Fts5Iter *pIter;\n  \n  iVar1 = (int)pIndexIter[1].iRowid;\n  fts5MultiIterFree((Fts5Iter *)pIndexIter);\n  pBlob = *(sqlite3_blob **)(iVar1 + 0x24);\n  if (pBlob != (sqlite3_blob *)0x0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    sqlite3_blob_close(pBlob);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3Fts5IterClose(Fts5IndexIter *pIndexIter)" identifier (parameter_list "(Fts5IndexIter *pIndexIter)" ( (parameter_declaration "Fts5IndexIter *pIndexIter" type_identifier (pointer_declarator "*pIndexIter" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  sqlite3_blob *pBlob;\n  Fts5Iter *pIter;\n  \n  iVar1 = (int)pIndexIter[1].iRowid;\n  fts5MultiIterFree((Fts5Iter *)pIndexIter);\n  pBlob = *(sqlite3_blob **)(iVar1 + 0x24);\n  if (pBlob != (sqlite3_blob *)0x0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    sqlite3_blob_close(pBlob);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_blob *pBlob;" type_identifier (pointer_declarator "*pBlob" * identifier) ;) (declaration "Fts5Iter *pIter;" type_identifier (pointer_declarator "*pIter" * identifier) ;) (expression_statement "iVar1 = (int)pIndexIter[1].iRowid;" (assignment_expression "iVar1 = (int)pIndexIter[1].iRowid" identifier = (cast_expression "(int)pIndexIter[1].iRowid" ( (type_descriptor "int" primitive_type) ) (field_expression "pIndexIter[1].iRowid" (subscript_expression "pIndexIter[1]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "fts5MultiIterFree((Fts5Iter *)pIndexIter);" (call_expression "fts5MultiIterFree((Fts5Iter *)pIndexIter)" identifier (argument_list "((Fts5Iter *)pIndexIter)" ( (cast_expression "(Fts5Iter *)pIndexIter" ( (type_descriptor "Fts5Iter *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "pBlob = *(sqlite3_blob **)(iVar1 + 0x24);" (assignment_expression "pBlob = *(sqlite3_blob **)(iVar1 + 0x24)" identifier = (pointer_expression "*(sqlite3_blob **)(iVar1 + 0x24)" * (cast_expression "(sqlite3_blob **)(iVar1 + 0x24)" ( (type_descriptor "sqlite3_blob **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (pBlob != (sqlite3_blob *)0x0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    sqlite3_blob_close(pBlob);\n  }" if (parenthesized_expression "(pBlob != (sqlite3_blob *)0x0)" ( (binary_expression "pBlob != (sqlite3_blob *)0x0" identifier != (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    sqlite3_blob_close(pBlob);\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "sqlite3_blob_close(pBlob);" (call_expression "sqlite3_blob_close(pBlob)" identifier (argument_list "(pBlob)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0008b5d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  FUN_000347d0(0x8b5d7);\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0008b5d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  FUN_000347d0(0x8b5d7);\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0008b5d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  FUN_000347d0(0x8b5d7);\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_000347d0(0x8b5d7);" (call_expression "FUN_000347d0(0x8b5d7)" identifier (argument_list "(0x8b5d7)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)(iVar1 + 0x24);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x24)" identifier = (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_0008b570(iVar2);" (call_expression "FUN_0008b570(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0008b5d0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  FUN_000347d0(0x8b5d7);\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0008b5d0(int param_1)" (identifier "FUN_0008b5d0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x14);\n  FUN_000347d0(0x8b5d7);\n  iVar2 = *(int *)(iVar1 + 0x24);\n  if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_000347d0(0x8b5d7);" (call_expression "FUN_000347d0(0x8b5d7)" (identifier "FUN_000347d0") (argument_list "(0x8b5d7)" (( "(") (number_literal "0x8b5d7") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar1 + 0x24);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x24)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x24)" (* "*") (cast_expression "(int *)(iVar1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    FUN_0008b570(iVar2);\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0008b570(iVar2);" (call_expression "FUN_0008b570(iVar2)" (identifier "FUN_0008b570") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (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 *pIndexIter)

{
  int var_2;
  type_2 *var_3;
  type_3 *pIter;
  
  var_2 = (int)pIndexIter[1].iRowid;
  var_1((type_3 *)pIndexIter);
  var_3 = *(type_2 **)(var_2 + 0x24);
  if (var_3 != (type_2 *)0x0) {
    *(type_4 *)(var_2 + 0x24) = 0;
    var_4(var_3);
  }
  return;
}


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

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

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(param_1 + 0x14);
  FUN_000347d0(0x8b5d7);
  iVar2 = *(int *)(iVar1 + 0x24);
  if (iVar2 != 0) {
    *(undefined4 *)(iVar1 + 0x24) = 0;
    FUN_0008b570(iVar2);
  }
  return;
}

