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

void row_numberValueFunc(sqlite3_context *pCtx)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)sqlite3_aggregate_context(pCtx,8);
  if (puVar1 == (undefined4 *)0x0) {
    uVar3 = 0;
    uVar2 = 0;
  }
  else {
    uVar3 = *puVar1;
    uVar2 = puVar1[1];
  }
  sqlite3_result_int64(pCtx,CONCAT44(uVar2,uVar3));
  return;
}



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

void FUN_00031220(undefined4 param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);
  if (puVar1 == (undefined4 *)0x0) {
    uVar3 = 0;
    uVar2 = 0;
  }
  else {
    uVar3 = *puVar1;
    uVar2 = puVar1[1];
  }
  sqlite3_result_int64(param_1,uVar3,uVar2);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0001ddf0
ADD EBX,0xd4dd9
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
PUSH 0x8
PUSH ESI
CALL 0x00016750
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00031260
MOV EDX,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0x4]
SUB ESP,0x4
PUSH ECX
PUSH EDX
PUSH ESI
CALL 0x00016c80
ADD ESP,0x14
POP EBX
POP ESI
RET
XOR EDX,EDX
XOR ECX,ECX
JMP 0x00031248
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00031220(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(param_1,uVar3,uVar2);\n  return;\n}\n\n" comment (function_definition "void FUN_00031220(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(param_1,uVar3,uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_00031220(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(param_1,uVar3,uVar2);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);" (assignment_expression "puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8)" identifier = (cast_expression "(undefined4 *)sqlite3_aggregate_context(param_1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(param_1,8)" identifier (argument_list "(param_1,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = 0;\n    uVar2 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" else (compound_statement "{\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" { (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar2 = puVar1[1];" (assignment_expression "uVar2 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "sqlite3_result_int64(param_1,uVar3,uVar2);" (call_expression "sqlite3_result_int64(param_1,uVar3,uVar2)" identifier (argument_list "(param_1,uVar3,uVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid row_numberValueFunc(sqlite3_context *pCtx)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(pCtx,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(pCtx,CONCAT44(uVar2,uVar3));\n  return;\n}\n\n" comment comment (function_definition "void row_numberValueFunc(sqlite3_context *pCtx)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(pCtx,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(pCtx,CONCAT44(uVar2,uVar3));\n  return;\n}" primitive_type (function_declarator "row_numberValueFunc(sqlite3_context *pCtx)" identifier (parameter_list "(sqlite3_context *pCtx)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(pCtx,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(pCtx,CONCAT44(uVar2,uVar3));\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)sqlite3_aggregate_context(pCtx,8);" (assignment_expression "puVar1 = (undefined4 *)sqlite3_aggregate_context(pCtx,8)" identifier = (cast_expression "(undefined4 *)sqlite3_aggregate_context(pCtx,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(pCtx,8)" identifier (argument_list "(pCtx,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = 0;\n    uVar2 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" else (compound_statement "{\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" { (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar2 = puVar1[1];" (assignment_expression "uVar2 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "sqlite3_result_int64(pCtx,CONCAT44(uVar2,uVar3));" (call_expression "sqlite3_result_int64(pCtx,CONCAT44(uVar2,uVar3))" identifier (argument_list "(pCtx,CONCAT44(uVar2,uVar3))" ( identifier , (call_expression "CONCAT44(uVar2,uVar3)" identifier (argument_list "(uVar2,uVar3)" ( identifier , identifier ))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00031220(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(param_1,uVar3,uVar2);\n  return;\n}\n\n" (function_definition "void FUN_00031220(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(param_1,uVar3,uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_00031220(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(param_1,uVar3,uVar2);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);" (assignment_expression "puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8)" identifier = (cast_expression "(undefined4 *)sqlite3_aggregate_context(param_1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(param_1,8)" identifier (argument_list "(param_1,8)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = 0;\n    uVar2 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" else (compound_statement "{\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" { (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar2 = puVar1[1];" (assignment_expression "uVar2 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "sqlite3_result_int64(param_1,uVar3,uVar2);" (call_expression "sqlite3_result_int64(param_1,uVar3,uVar2)" identifier (argument_list "(param_1,uVar3,uVar2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00031220(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(param_1,uVar3,uVar2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00031220(undefined4 param_1)" (identifier "FUN_00031220") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  \n  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);\n  if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }\n  sqlite3_result_int64(param_1,uVar3,uVar2);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);" (assignment_expression "puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)sqlite3_aggregate_context(param_1,8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sqlite3_aggregate_context(param_1,8)" (identifier "sqlite3_aggregate_context") (argument_list "(param_1,8)" (( "(") (identifier "param_1") (, ",") (number_literal "8") () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    uVar3 = 0;\n    uVar2 = 0;\n  }\n  else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = 0;\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" (else "else") (compound_statement "{\n    uVar3 = *puVar1;\n    uVar2 = puVar1[1];\n  }" ({ "{") (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" (identifier "uVar3") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "uVar2 = puVar1[1];" (assignment_expression "uVar2 = puVar1[1]" (identifier "uVar2") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (expression_statement "sqlite3_result_int64(param_1,uVar3,uVar2);" (call_expression "sqlite3_result_int64(param_1,uVar3,uVar2)" (identifier "sqlite3_result_int64") (argument_list "(param_1,uVar3,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *pCtx)

{
  type_2 *var_2;
  type_2 uVar2;
  type_2 uVar3;
  
  var_2 = (type_2 *)var_1(pCtx,8);
  if (var_2 == (type_2 *)0x0) {
    uVar3 = 0;
    uVar2 = 0;
  }
  else {
    uVar3 = *var_2;
    uVar2 = var_2[1];
  }
  var_3(pCtx,var_4(uVar2,uVar3));
  return;
}


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

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

void MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  
  puVar1 = (undefined4 *)sqlite3_aggregate_context(param_1,8);
  if (puVar1 == (undefined4 *)0x0) {
    uVar3 = 0;
    uVar2 = 0;
  }
  else {
    uVar3 = *puVar1;
    uVar2 = puVar1[1];
  }
  sqlite3_result_int64(param_1,uVar3,uVar2);
  return;
}

