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

void cume_distValueFunc(sqlite3_context *pCtx)

{
  void *pvVar1;
  
  pvVar1 = sqlite3_aggregate_context(pCtx,0);
  if (pvVar1 != (void *)0x0) {
    sqlite3_result_double
              (pCtx,(double)*(longlong *)((int)pvVar1 + 8) /
                    (double)*(longlong *)((int)pvVar1 + 0x10));
  }
  return;
}



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

void FUN_00042330(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = sqlite3_aggregate_context(param_1,0);
  if (iVar1 != 0) {
    sqlite3_result_double
              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0001d810
ADD EBX,0x9bcc9
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x28]
PUSH 0x0
PUSH ESI
CALL 0x00016750
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00042372
FILD qword ptr [EAX + 0x8]
SUB ESP,0xc
FSTP qword ptr [ESP + 0x14]
FLD qword ptr [ESP + 0x14]
FILD qword ptr [EAX + 0x10]
FDIVP
FSTP qword ptr [ESP]
PUSH ESI
CALL 0x000169b0
ADD ESP,0x10
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00042330(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_aggregate_context(param_1,0);\n  if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00042330(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_aggregate_context(param_1,0);\n  if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00042330(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_aggregate_context(param_1,0);\n  if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sqlite3_aggregate_context(param_1,0);" (assignment_expression "iVar1 = sqlite3_aggregate_context(param_1,0)" identifier = (call_expression "sqlite3_aggregate_context(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }" { (expression_statement "sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));" (call_expression "sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10))" identifier (argument_list "(param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10))" ( identifier , (binary_expression "(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10)" (cast_expression "(double)*(longlong *)(iVar1 + 8)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(longlong *)(iVar1 + 8)" * (cast_expression "(longlong *)(iVar1 + 8)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) / (cast_expression "(double)*(longlong *)(iVar1 + 0x10)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(longlong *)(iVar1 + 0x10)" * (cast_expression "(longlong *)(iVar1 + 0x10)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))))) ))) ;) })) (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 cume_distValueFunc(sqlite3_context *pCtx)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = sqlite3_aggregate_context(pCtx,0);\n  if (pvVar1 != (void *)0x0) {\n    sqlite3_result_double\n              (pCtx,(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10));\n  }\n  return;\n}\n\n" comment comment (function_definition "void cume_distValueFunc(sqlite3_context *pCtx)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = sqlite3_aggregate_context(pCtx,0);\n  if (pvVar1 != (void *)0x0) {\n    sqlite3_result_double\n              (pCtx,(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10));\n  }\n  return;\n}" primitive_type (function_declarator "cume_distValueFunc(sqlite3_context *pCtx)" identifier (parameter_list "(sqlite3_context *pCtx)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  \n  pvVar1 = sqlite3_aggregate_context(pCtx,0);\n  if (pvVar1 != (void *)0x0) {\n    sqlite3_result_double\n              (pCtx,(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10));\n  }\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (expression_statement "pvVar1 = sqlite3_aggregate_context(pCtx,0);" (assignment_expression "pvVar1 = sqlite3_aggregate_context(pCtx,0)" identifier = (call_expression "sqlite3_aggregate_context(pCtx,0)" identifier (argument_list "(pCtx,0)" ( identifier , number_literal )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n    sqlite3_result_double\n              (pCtx,(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10));\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3_result_double\n              (pCtx,(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10));\n  }" { (expression_statement "sqlite3_result_double\n              (pCtx,(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10));" (call_expression "sqlite3_result_double\n              (pCtx,(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10))" identifier (argument_list "(pCtx,(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10))" ( identifier , (binary_expression "(double)*(longlong *)((int)pvVar1 + 8) /\n                    (double)*(longlong *)((int)pvVar1 + 0x10)" (cast_expression "(double)*(longlong *)((int)pvVar1 + 8)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(longlong *)((int)pvVar1 + 8)" * (cast_expression "(longlong *)((int)pvVar1 + 8)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 8)" ( (binary_expression "(int)pvVar1 + 8" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) / (cast_expression "(double)*(longlong *)((int)pvVar1 + 0x10)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(longlong *)((int)pvVar1 + 0x10)" * (cast_expression "(longlong *)((int)pvVar1 + 0x10)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 0x10)" ( (binary_expression "(int)pvVar1 + 0x10" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00042330(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_aggregate_context(param_1,0);\n  if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00042330(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_aggregate_context(param_1,0);\n  if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00042330(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_aggregate_context(param_1,0);\n  if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sqlite3_aggregate_context(param_1,0);" (assignment_expression "iVar1 = sqlite3_aggregate_context(param_1,0)" identifier = (call_expression "sqlite3_aggregate_context(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }" { (expression_statement "sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));" (call_expression "sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10))" identifier (argument_list "(param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10))" ( identifier , (binary_expression "(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10)" (cast_expression "(double)*(longlong *)(iVar1 + 8)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(longlong *)(iVar1 + 8)" * (cast_expression "(longlong *)(iVar1 + 8)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) / (cast_expression "(double)*(longlong *)(iVar1 + 0x10)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(longlong *)(iVar1 + 0x10)" * (cast_expression "(longlong *)(iVar1 + 0x10)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))))) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) / (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00042330(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_aggregate_context(param_1,0);\n  if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00042330(undefined4 param_1)" (identifier "FUN_00042330") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_aggregate_context(param_1,0);\n  if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = sqlite3_aggregate_context(param_1,0);" (assignment_expression "iVar1 = sqlite3_aggregate_context(param_1,0)" (identifier "iVar1") (= "=") (call_expression "sqlite3_aggregate_context(param_1,0)" (identifier "sqlite3_aggregate_context") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));\n  }" ({ "{") (expression_statement "sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));" (call_expression "sqlite3_result_double\n              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10))" (identifier "sqlite3_result_double") (argument_list "(param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10))" (( "(") (identifier "param_1") (, ",") (binary_expression "(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10)" (cast_expression "(double)*(longlong *)(iVar1 + 8)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(longlong *)(iVar1 + 8)" (* "*") (cast_expression "(longlong *)(iVar1 + 8)" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (/ "/") (cast_expression "(double)*(longlong *)(iVar1 + 0x10)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(longlong *)(iVar1 + 0x10)" (* "*") (cast_expression "(longlong *)(iVar1 + 0x10)" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))))) () ")"))) (; ";")) (} "}"))) (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)

{
  void *var_2;
  
  var_2 = var_1(pCtx,0);
  if (var_2 != (void *)0x0) {
    var_3
              (pCtx,(double)*(type_2 *)((int)var_2 + 8) /
                    (double)*(type_2 *)((int)var_2 + 0x10));
  }
  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: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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)))))))))))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = sqlite3_aggregate_context(param_1,0);
  if (iVar1 != 0) {
    sqlite3_result_double
              (param_1,(double)*(longlong *)(iVar1 + 8) / (double)*(longlong *)(iVar1 + 0x10));
  }
  return;
}

