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

int pragmaVtabColumn(sqlite3_vtab_cursor *pVtabCursor,sqlite3_context *ctx,int i)

{
  sqlite3_value *pValue;
  uint uVar1;
  
  uVar1 = (uint)*(byte *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1);
  if ((int)uVar1 <= i) {
    sqlite3_result_text(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,
                        (_func_void_void_ptr *)&DAT_ffffffff);
    return 0;
  }
  pValue = sqlite3_column_value((sqlite3_stmt *)pVtabCursor[1].pVtab,i);
  sqlite3_result_value(ctx,pValue);
  return 0;
}



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

undefined4 FUN_000493a0(int *param_1,undefined4 param_2,int param_3)

{
  undefined4 uVar1;
  
  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {
    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff
                        ,0xffffffff);
    return 0;
  }
  uVar1 = sqlite3_column_value(param_1[1],param_3);
  sqlite3_result_value(param_2,uVar1);
  return 0;
}


PUSH EBX
CALL 0x0001d810
ADD EBX,0x94c5a
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [EDX]
MOVZX ECX,byte ptr [ECX + 0x15]
CMP ECX,EAX
JG 0x000493e0
SUB EAX,ECX
PUSH -0x1
PUSH -0x1
PUSH dword ptr [EDX + EAX*0x4 + 0x10]
PUSH dword ptr [ESP + 0x20]
CALL 0x00016480
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [EDX + 0x4]
CALL 0x00016ba0
POP EDX
POP ECX
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x00016940
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000493a0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }\n  uVar1 = sqlite3_column_value(param_1[1],param_3);\n  sqlite3_result_value(param_2,uVar1);\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_000493a0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }\n  uVar1 = sqlite3_column_value(param_1[1],param_3);\n  sqlite3_result_value(param_2,uVar1);\n  return 0;\n}" type_identifier (function_declarator "FUN_000493a0(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }\n  uVar1 = sqlite3_column_value(param_1[1],param_3);\n  sqlite3_result_value(param_2,uVar1);\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }" if (parenthesized_expression "((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3)" ( (binary_expression "(int)(uint)*(byte *)(*param_1 + 0x15) <= param_3" (binary_expression "(int)(uint)*(byte *)(*param_1 + 0x15)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(*param_1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x15)" ( (binary_expression "*param_1 + 0x15" (pointer_expression "*param_1" * identifier) + number_literal) )))) <= identifier) )) (compound_statement "{\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }" { (expression_statement "sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);" (call_expression "sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff)" identifier (argument_list "(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff)" ( identifier , (subscript_expression "param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4]" identifier [ (binary_expression "(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4" (parenthesized_expression "(param_3 - (uint)*(byte *)(*param_1 + 0x15))" ( (binary_expression "param_3 - (uint)*(byte *)(*param_1 + 0x15)" identifier - (binary_expression "(uint)*(byte *)(*param_1 + 0x15)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x15)" ( (binary_expression "*param_1 + 0x15" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) + number_literal) ]) , number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = sqlite3_column_value(param_1[1],param_3);" (assignment_expression "uVar1 = sqlite3_column_value(param_1[1],param_3)" identifier = (call_expression "sqlite3_column_value(param_1[1],param_3)" identifier (argument_list "(param_1[1],param_3)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "sqlite3_result_value(param_2,uVar1);" (call_expression "sqlite3_result_value(param_2,uVar1)" identifier (argument_list "(param_2,uVar1)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint pragmaVtabColumn(sqlite3_vtab_cursor *pVtabCursor,sqlite3_context *ctx,int i)\n\n{\n  sqlite3_value *pValue;\n  uint uVar1;\n  \n  uVar1 = (uint)*(byte *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1);\n  if ((int)uVar1 <= i) {\n    sqlite3_result_text(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }\n  pValue = sqlite3_column_value((sqlite3_stmt *)pVtabCursor[1].pVtab,i);\n  sqlite3_result_value(ctx,pValue);\n  return 0;\n}\n\n" comment comment (function_definition "int pragmaVtabColumn(sqlite3_vtab_cursor *pVtabCursor,sqlite3_context *ctx,int i)\n\n{\n  sqlite3_value *pValue;\n  uint uVar1;\n  \n  uVar1 = (uint)*(byte *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1);\n  if ((int)uVar1 <= i) {\n    sqlite3_result_text(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }\n  pValue = sqlite3_column_value((sqlite3_stmt *)pVtabCursor[1].pVtab,i);\n  sqlite3_result_value(ctx,pValue);\n  return 0;\n}" primitive_type (function_declarator "pragmaVtabColumn(sqlite3_vtab_cursor *pVtabCursor,sqlite3_context *ctx,int i)" identifier (parameter_list "(sqlite3_vtab_cursor *pVtabCursor,sqlite3_context *ctx,int i)" ( (parameter_declaration "sqlite3_vtab_cursor *pVtabCursor" type_identifier (pointer_declarator "*pVtabCursor" * identifier)) , (parameter_declaration "sqlite3_context *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "int i" primitive_type identifier) ))) (compound_statement "{\n  sqlite3_value *pValue;\n  uint uVar1;\n  \n  uVar1 = (uint)*(byte *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1);\n  if ((int)uVar1 <= i) {\n    sqlite3_result_text(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }\n  pValue = sqlite3_column_value((sqlite3_stmt *)pVtabCursor[1].pVtab,i);\n  sqlite3_result_value(ctx,pValue);\n  return 0;\n}" { (declaration "sqlite3_value *pValue;" type_identifier (pointer_declarator "*pValue" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = (uint)*(byte *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1);" (assignment_expression "uVar1 = (uint)*(byte *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1)" identifier = (binary_expression "(uint)*(byte *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pVtabCursor->pVtab[1].zErrMsg + 1)" ( (binary_expression "(int)&pVtabCursor->pVtab[1].zErrMsg + 1" (cast_expression "(int)&pVtabCursor->pVtab[1].zErrMsg" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pVtabCursor->pVtab[1].zErrMsg" & (field_expression "pVtabCursor->pVtab[1].zErrMsg" (subscript_expression "pVtabCursor->pVtab[1]" (field_expression "pVtabCursor->pVtab" identifier -> field_identifier) [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) (if_statement "if ((int)uVar1 <= i) {\n    sqlite3_result_text(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }" if (parenthesized_expression "((int)uVar1 <= i)" ( (binary_expression "(int)uVar1 <= i" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n    sqlite3_result_text(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,\n                        (_func_void_void_ptr *)&DAT_ffffffff);\n    return 0;\n  }" { (expression_statement "sqlite3_result_text(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,\n                        (_func_void_void_ptr *)&DAT_ffffffff);" (call_expression "sqlite3_result_text(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,\n                        (_func_void_void_ptr *)&DAT_ffffffff)" identifier (argument_list "(ctx,(char *)pVtabCursor[(i - uVar1) + 4].pVtab,-1,\n                        (_func_void_void_ptr *)&DAT_ffffffff)" ( identifier , (cast_expression "(char *)pVtabCursor[(i - uVar1) + 4].pVtab" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pVtabCursor[(i - uVar1) + 4].pVtab" (subscript_expression "pVtabCursor[(i - uVar1) + 4]" identifier [ (binary_expression "(i - uVar1) + 4" (parenthesized_expression "(i - uVar1)" ( (binary_expression "i - uVar1" identifier - identifier) )) + number_literal) ]) . field_identifier)) , number_literal , (cast_expression "(_func_void_void_ptr *)&DAT_ffffffff" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier)) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pValue = sqlite3_column_value((sqlite3_stmt *)pVtabCursor[1].pVtab,i);" (assignment_expression "pValue = sqlite3_column_value((sqlite3_stmt *)pVtabCursor[1].pVtab,i)" identifier = (call_expression "sqlite3_column_value((sqlite3_stmt *)pVtabCursor[1].pVtab,i)" identifier (argument_list "((sqlite3_stmt *)pVtabCursor[1].pVtab,i)" ( (cast_expression "(sqlite3_stmt *)pVtabCursor[1].pVtab" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pVtabCursor[1].pVtab" (subscript_expression "pVtabCursor[1]" identifier [ number_literal ]) . field_identifier)) , identifier )))) ;) (expression_statement "sqlite3_result_value(ctx,pValue);" (call_expression "sqlite3_result_value(ctx,pValue)" identifier (argument_list "(ctx,pValue)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000493a0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }\n  uVar1 = sqlite3_column_value(param_1[1],param_3);\n  sqlite3_result_value(param_2,uVar1);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000493a0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }\n  uVar1 = sqlite3_column_value(param_1[1],param_3);\n  sqlite3_result_value(param_2,uVar1);\n  return 0;\n}" type_identifier (function_declarator "FUN_000493a0(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }\n  uVar1 = sqlite3_column_value(param_1[1],param_3);\n  sqlite3_result_value(param_2,uVar1);\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }" if (parenthesized_expression "((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3)" ( (binary_expression "(int)(uint)*(byte *)(*param_1 + 0x15) <= param_3" (binary_expression "(int)(uint)*(byte *)(*param_1 + 0x15)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(*param_1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x15)" ( (binary_expression "*param_1 + 0x15" (pointer_expression "*param_1" * identifier) + number_literal) )))) <= identifier) )) (compound_statement "{\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }" { (expression_statement "sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);" (call_expression "sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff)" identifier (argument_list "(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff)" ( identifier , (subscript_expression "param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4]" identifier [ (binary_expression "(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4" (parenthesized_expression "(param_3 - (uint)*(byte *)(*param_1 + 0x15))" ( (binary_expression "param_3 - (uint)*(byte *)(*param_1 + 0x15)" identifier - (binary_expression "(uint)*(byte *)(*param_1 + 0x15)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(*param_1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x15)" ( (binary_expression "*param_1 + 0x15" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) + number_literal) ]) , number_literal , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = sqlite3_column_value(param_1[1],param_3);" (assignment_expression "uVar1 = sqlite3_column_value(param_1[1],param_3)" identifier = (call_expression "sqlite3_column_value(param_1[1],param_3)" identifier (argument_list "(param_1[1],param_3)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "sqlite3_result_value(param_2,uVar1);" (call_expression "sqlite3_result_value(param_2,uVar1)" identifier (argument_list "(param_2,uVar1)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT - (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) + LIT) ]) , LIT , LIT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000493a0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }\n  uVar1 = sqlite3_column_value(param_1[1],param_3);\n  sqlite3_result_value(param_2,uVar1);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000493a0(int *param_1,undefined4 param_2,int param_3)" (identifier "FUN_000493a0") (parameter_list "(int *param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }\n  uVar1 = sqlite3_column_value(param_1[1],param_3);\n  sqlite3_result_value(param_2,uVar1);\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }" (if "if") (parenthesized_expression "((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3)" (( "(") (binary_expression "(int)(uint)*(byte *)(*param_1 + 0x15) <= param_3" (binary_expression "(int)(uint)*(byte *)(*param_1 + 0x15)" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(byte *)(*param_1 + 0x15)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x15)" (( "(") (binary_expression "*param_1 + 0x15" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x15")) () ")")))) (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);\n    return 0;\n  }" ({ "{") (expression_statement "sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff);" (call_expression "sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff)" (identifier "sqlite3_result_text") (argument_list "(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff\n                        ,0xffffffff)" (( "(") (identifier "param_2") (, ",") (subscript_expression "param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4]" (identifier "param_1") ([ "[") (binary_expression "(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4" (parenthesized_expression "(param_3 - (uint)*(byte *)(*param_1 + 0x15))" (( "(") (binary_expression "param_3 - (uint)*(byte *)(*param_1 + 0x15)" (identifier "param_3") (- "-") (binary_expression "(uint)*(byte *)(*param_1 + 0x15)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(*param_1 + 0x15)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x15)" (( "(") (binary_expression "*param_1 + 0x15" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x15")) () ")"))))) () ")")) (+ "+") (number_literal "4")) (] "]")) (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = sqlite3_column_value(param_1[1],param_3);" (assignment_expression "uVar1 = sqlite3_column_value(param_1[1],param_3)" (identifier "uVar1") (= "=") (call_expression "sqlite3_column_value(param_1[1],param_3)" (identifier "sqlite3_column_value") (argument_list "(param_1[1],param_3)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "sqlite3_result_value(param_2,uVar1);" (call_expression "sqlite3_result_value(param_2,uVar1)" (identifier "sqlite3_result_value") (argument_list "(param_2,uVar1)" (( "(") (identifier "param_2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(type_1 *pVtabCursor,type_2 *ctx,int var_1)

{
  type_3 *pValue;
  type_4 var_3;
  
  var_3 = (type_4)*(type_5 *)((int)&pVtabCursor->pVtab[1].zErrMsg + 1);
  if ((int)var_3 <= var_1) {
    var_2(ctx,(char *)pVtabCursor[(var_1 - var_3) + 4].pVtab,-1,
                        (type_6 *)&DAT_ffffffff);
    return 0;
  }
  pValue = var_4((type_7 *)pVtabCursor[1].pVtab,var_1);
  var_5(ctx,pValue);
  return 0;
}


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

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

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

{
  undefined4 uVar1;
  
  if ((int)(uint)*(byte *)(*param_1 + 0x15) <= param_3) {
    sqlite3_result_text(param_2,param_1[(param_3 - (uint)*(byte *)(*param_1 + 0x15)) + 4],0xffffffff
                        ,0xffffffff);
    return 0;
  }
  uVar1 = sqlite3_column_value(param_1[1],param_3);
  sqlite3_result_value(param_2,uVar1);
  return 0;
}

