
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int dotlockCheckReservedLock(sqlite3_file *id,int *pResOut)

{
  int iVar1;
  
  iVar1 = (*aSyscall[2].pCurrent)(id[6].pMethods,0);
  *pResOut = (uint)(iVar1 == 0);
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 FUN_0001e600(int param_1,uint *param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);
  *param_2 = (uint)(iVar1 == 0);
  return 0;
}


SUB ESP,0x14
PUSH 0x0
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x000a94f3
ADD EAX,0xbf9f2
PUSH dword ptr [EDX + 0x18]
CALL dword ptr [EAX + 0x145c]
XOR EDX,EDX
TEST EAX,EAX
MOV EAX,dword ptr [ESP + 0x24]
SETZ DL
MOV dword ptr [EAX],EDX
XOR EAX,EAX
ADD ESP,0x1c
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nundefined4 FUN_0001e600(int param_1,uint *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);\n  *param_2 = (uint)(iVar1 == 0);\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0001e600(int param_1,uint *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);\n  *param_2 = (uint)(iVar1 == 0);\n  return 0;\n}" type_identifier (function_declarator "FUN_0001e600(int param_1,uint *param_2)" identifier (parameter_list "(int param_1,uint *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);\n  *param_2 = (uint)(iVar1 == 0);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);" (assignment_expression "iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0)" identifier = (call_expression "(*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_access_000df45c)" ( (pointer_expression "*(code *)PTR_access_000df45c" * (cast_expression "(code *)PTR_access_000df45c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x18),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "*param_2 = (uint)(iVar1 == 0);" (assignment_expression "*param_2 = (uint)(iVar1 == 0)" (pointer_expression "*param_2" * identifier) = (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nint dotlockCheckReservedLock(sqlite3_file *id,int *pResOut)\n\n{\n  int iVar1;\n  \n  iVar1 = (*aSyscall[2].pCurrent)(id[6].pMethods,0);\n  *pResOut = (uint)(iVar1 == 0);\n  return 0;\n}\n\n" comment comment (function_definition "int dotlockCheckReservedLock(sqlite3_file *id,int *pResOut)\n\n{\n  int iVar1;\n  \n  iVar1 = (*aSyscall[2].pCurrent)(id[6].pMethods,0);\n  *pResOut = (uint)(iVar1 == 0);\n  return 0;\n}" primitive_type (function_declarator "dotlockCheckReservedLock(sqlite3_file *id,int *pResOut)" identifier (parameter_list "(sqlite3_file *id,int *pResOut)" ( (parameter_declaration "sqlite3_file *id" type_identifier (pointer_declarator "*id" * identifier)) , (parameter_declaration "int *pResOut" primitive_type (pointer_declarator "*pResOut" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*aSyscall[2].pCurrent)(id[6].pMethods,0);\n  *pResOut = (uint)(iVar1 == 0);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*aSyscall[2].pCurrent)(id[6].pMethods,0);" (assignment_expression "iVar1 = (*aSyscall[2].pCurrent)(id[6].pMethods,0)" identifier = (call_expression "(*aSyscall[2].pCurrent)(id[6].pMethods,0)" (parenthesized_expression "(*aSyscall[2].pCurrent)" ( (pointer_expression "*aSyscall[2].pCurrent" * (field_expression "aSyscall[2].pCurrent" (subscript_expression "aSyscall[2]" identifier [ number_literal ]) . field_identifier)) )) (argument_list "(id[6].pMethods,0)" ( (field_expression "id[6].pMethods" (subscript_expression "id[6]" identifier [ number_literal ]) . field_identifier) , number_literal )))) ;) (expression_statement "*pResOut = (uint)(iVar1 == 0);" (assignment_expression "*pResOut = (uint)(iVar1 == 0)" (pointer_expression "*pResOut" * identifier) = (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0001e600(int param_1,uint *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);\n  *param_2 = (uint)(iVar1 == 0);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001e600(int param_1,uint *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);\n  *param_2 = (uint)(iVar1 == 0);\n  return 0;\n}" type_identifier (function_declarator "FUN_0001e600(int param_1,uint *param_2)" identifier (parameter_list "(int param_1,uint *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);\n  *param_2 = (uint)(iVar1 == 0);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);" (assignment_expression "iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0)" identifier = (call_expression "(*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_access_000df45c)" ( (pointer_expression "*(code *)PTR_access_000df45c" * (cast_expression "(code *)PTR_access_000df45c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x18),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "*param_2 = (uint)(iVar1 == 0);" (assignment_expression "*param_2 = (uint)(iVar1 == 0)" (pointer_expression "*param_2" * identifier) = (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001e600(int param_1,uint *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);\n  *param_2 = (uint)(iVar1 == 0);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001e600(int param_1,uint *param_2)" (identifier "FUN_0001e600") (parameter_list "(int param_1,uint *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);\n  *param_2 = (uint)(iVar1 == 0);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);" (assignment_expression "iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0)" (parenthesized_expression "(*(code *)PTR_access_000df45c)" (( "(") (pointer_expression "*(code *)PTR_access_000df45c" (* "*") (cast_expression "(code *)PTR_access_000df45c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_access_000df45c"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x18),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*param_2 = (uint)(iVar1 == 0);" (assignment_expression "*param_2 = (uint)(iVar1 == 0)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int function_1(type_1 *id,int *pResOut)

{
  int var_1;
  
  var_1 = (*aSyscall[2].pCurrent)(id[6].pMethods,0);
  *pResOut = (uint)(var_1 == 0);
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) 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))))) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 MASKED(int param_1,uint *param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_access_000df45c)(*(undefined4 *)(param_1 + 0x18),0);
  *param_2 = (uint)(iVar1 == 0);
  return 0;
}

