
void __regparm3 sqlite3VtabModuleUnref(sqlite3 *db,Module *pMod)

{
  if (pMod->xDestroy != (_func_void_void_ptr *)0x0) {
    (*pMod->xDestroy)(pMod->pAux);
  }
  sqlite3DbFreeNN(db,pMod);
  return;
}



void __regparm3 FUN_0002ae80(undefined4 param_1,int param_2)

{
  if (*(code **)(param_2 + 0x10) != (code *)0x0) {
    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));
  }
  FUN_00024720();
  return;
}


PUSH ESI
PUSH EBX
MOV EBX,EDX
MOV ESI,EAX
SUB ESP,0x4
MOV EDX,dword ptr [EDX + 0x10]
TEST EDX,EDX
JZ 0x0002ae9b
SUB ESP,0xc
PUSH dword ptr [EBX + 0xc]
CALL EDX
ADD ESP,0x10
ADD ESP,0x4
MOV EDX,EBX
MOV EAX,ESI
POP EBX
POP ESI
JMP 0x00024720
(translation_unit "void __regparm3 FUN_0002ae80(undefined4 param_1,int param_2)\n\n{\n  if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }\n  FUN_00024720();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002ae80(undefined4 param_1,int param_2)\n\n{\n  if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }\n  FUN_00024720();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002ae80(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }\n  FUN_00024720();\n  return;\n}" { (if_statement "if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }" if (parenthesized_expression "(*(code **)(param_2 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(param_2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(param_2 + 0x10)" * (cast_expression "(code **)(param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }" { (expression_statement "(**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));" (call_expression "(**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc))" (parenthesized_expression "(**(code **)(param_2 + 0x10))" ( (pointer_expression "**(code **)(param_2 + 0x10)" * (pointer_expression "*(code **)(param_2 + 0x10)" * (cast_expression "(code **)(param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3VtabModuleUnref(sqlite3 *db,Module *pMod)\n\n{\n  if (pMod->xDestroy != (_func_void_void_ptr *)0x0) {\n    (*pMod->xDestroy)(pMod->pAux);\n  }\n  sqlite3DbFreeNN(db,pMod);\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3VtabModuleUnref(sqlite3 *db,Module *pMod)\n\n{\n  if (pMod->xDestroy != (_func_void_void_ptr *)0x0) {\n    (*pMod->xDestroy)(pMod->pAux);\n  }\n  sqlite3DbFreeNN(db,pMod);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3VtabModuleUnref(sqlite3 *db,Module *pMod)" identifier (parameter_list "(sqlite3 *db,Module *pMod)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "Module *pMod" type_identifier (pointer_declarator "*pMod" * identifier)) ))) (compound_statement "{\n  if (pMod->xDestroy != (_func_void_void_ptr *)0x0) {\n    (*pMod->xDestroy)(pMod->pAux);\n  }\n  sqlite3DbFreeNN(db,pMod);\n  return;\n}" { (if_statement "if (pMod->xDestroy != (_func_void_void_ptr *)0x0) {\n    (*pMod->xDestroy)(pMod->pAux);\n  }" if (parenthesized_expression "(pMod->xDestroy != (_func_void_void_ptr *)0x0)" ( (binary_expression "pMod->xDestroy != (_func_void_void_ptr *)0x0" (field_expression "pMod->xDestroy" identifier -> field_identifier) != (cast_expression "(_func_void_void_ptr *)0x0" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*pMod->xDestroy)(pMod->pAux);\n  }" { (expression_statement "(*pMod->xDestroy)(pMod->pAux);" (call_expression "(*pMod->xDestroy)(pMod->pAux)" (parenthesized_expression "(*pMod->xDestroy)" ( (pointer_expression "*pMod->xDestroy" * (field_expression "pMod->xDestroy" identifier -> field_identifier)) )) (argument_list "(pMod->pAux)" ( (field_expression "pMod->pAux" identifier -> field_identifier) ))) ;) })) (expression_statement "sqlite3DbFreeNN(db,pMod);" (call_expression "sqlite3DbFreeNN(db,pMod)" identifier (argument_list "(db,pMod)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0002ae80(undefined4 param_1,int param_2)\n\n{\n  if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }\n  FUN_00024720();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002ae80(undefined4 param_1,int param_2)\n\n{\n  if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }\n  FUN_00024720();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002ae80(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }\n  FUN_00024720();\n  return;\n}" { (if_statement "if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }" if (parenthesized_expression "(*(code **)(param_2 + 0x10) != (code *)0x0)" ( (binary_expression "*(code **)(param_2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(param_2 + 0x10)" * (cast_expression "(code **)(param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }" { (expression_statement "(**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));" (call_expression "(**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc))" (parenthesized_expression "(**(code **)(param_2 + 0x10))" ( (pointer_expression "**(code **)(param_2 + 0x10)" * (pointer_expression "*(code **)(param_2 + 0x10)" * (cast_expression "(code **)(param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002ae80(undefined4 param_1,int param_2)\n\n{\n  if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }\n  FUN_00024720();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002ae80(undefined4 param_1,int param_2)" (identifier "FUN_0002ae80") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }\n  FUN_00024720();\n  return;\n}" ({ "{") (if_statement "if (*(code **)(param_2 + 0x10) != (code *)0x0) {\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(code **)(param_2 + 0x10) != (code *)0x0)" (( "(") (binary_expression "*(code **)(param_2 + 0x10) != (code *)0x0" (pointer_expression "*(code **)(param_2 + 0x10)" (* "*") (cast_expression "(code **)(param_2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));\n  }" ({ "{") (expression_statement "(**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));" (call_expression "(**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc))" (parenthesized_expression "(**(code **)(param_2 + 0x10))" (( "(") (pointer_expression "**(code **)(param_2 + 0x10)" (* "*") (pointer_expression "*(code **)(param_2 + 0x10)" (* "*") (cast_expression "(code **)(param_2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(param_2 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" (identifier "FUN_00024720") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *db,type_2 *pMod)

{
  if (pMod->xDestroy != (type_3 *)0x0) {
    (*pMod->xDestroy)(pMod->pAux);
  }
  var_1(db,pMod);
  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)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (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)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void __regparm3 MASKED(undefined4 param_1,int param_2)

{
  if (*(code **)(param_2 + 0x10) != (code *)0x0) {
    (**(code **)(param_2 + 0x10))(*(undefined4 *)(param_2 + 0xc));
  }
  FUN_00024720();
  return;
}

