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

int sessionDiffCount(void *pCtx)

{
  int iVar1;
  
  if (*(int *)((int)pCtx + 4) != 0) {
    return *(int *)((int)pCtx + 4);
  }
                    /* WARNING: Load size is inaccurate */
  iVar1 = sqlite3_column_count(*pCtx);
  return iVar1;
}



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

void FUN_00032580(undefined4 *param_1)

{
  if (param_1[1] != 0) {
    return;
  }
  FUN_0001bb40(*param_1);
  return;
}


PUSH EBX
CALL 0x00014cf0
ADD EBX,0x11694e
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDX + 0x4]
TEST EAX,EAX
JZ 0x000325a0
ADD ESP,0x8
POP EBX
RET
SUB ESP,0xc
PUSH dword ptr [EDX]
CALL 0x0001bb40
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00032580(undefined4 *param_1)\n\n{\n  if (param_1[1] != 0) {\n    return;\n  }\n  FUN_0001bb40(*param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_00032580(undefined4 *param_1)\n\n{\n  if (param_1[1] != 0) {\n    return;\n  }\n  FUN_0001bb40(*param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00032580(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (param_1[1] != 0) {\n    return;\n  }\n  FUN_0001bb40(*param_1);\n  return;\n}" { (if_statement "if (param_1[1] != 0) {\n    return;\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0001bb40(*param_1);" (call_expression "FUN_0001bb40(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * 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\nint sessionDiffCount(void *pCtx)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)pCtx + 4) != 0) {\n    return *(int *)((int)pCtx + 4);\n  }\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = sqlite3_column_count(*pCtx);\n  return iVar1;\n}\n\n" comment comment (function_definition "int sessionDiffCount(void *pCtx)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)pCtx + 4) != 0) {\n    return *(int *)((int)pCtx + 4);\n  }\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = sqlite3_column_count(*pCtx);\n  return iVar1;\n}" primitive_type (function_declarator "sessionDiffCount(void *pCtx)" identifier (parameter_list "(void *pCtx)" ( (parameter_declaration "void *pCtx" primitive_type (pointer_declarator "*pCtx" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)((int)pCtx + 4) != 0) {\n    return *(int *)((int)pCtx + 4);\n  }\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = sqlite3_column_count(*pCtx);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)((int)pCtx + 4) != 0) {\n    return *(int *)((int)pCtx + 4);\n  }" if (parenthesized_expression "(*(int *)((int)pCtx + 4) != 0)" ( (binary_expression "*(int *)((int)pCtx + 4) != 0" (pointer_expression "*(int *)((int)pCtx + 4)" * (cast_expression "(int *)((int)pCtx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pCtx + 4)" ( (binary_expression "(int)pCtx + 4" (cast_expression "(int)pCtx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(int *)((int)pCtx + 4);\n  }" { (return_statement "return *(int *)((int)pCtx + 4);" return (pointer_expression "*(int *)((int)pCtx + 4)" * (cast_expression "(int *)((int)pCtx + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pCtx + 4)" ( (binary_expression "(int)pCtx + 4" (cast_expression "(int)pCtx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) comment (expression_statement "iVar1 = sqlite3_column_count(*pCtx);" (assignment_expression "iVar1 = sqlite3_column_count(*pCtx)" identifier = (call_expression "sqlite3_column_count(*pCtx)" identifier (argument_list "(*pCtx)" ( (pointer_expression "*pCtx" * identifier) )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_00032580(undefined4 *param_1)\n\n{\n  if (param_1[1] != 0) {\n    return;\n  }\n  FUN_0001bb40(*param_1);\n  return;\n}\n\n" (function_definition "void FUN_00032580(undefined4 *param_1)\n\n{\n  if (param_1[1] != 0) {\n    return;\n  }\n  FUN_0001bb40(*param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00032580(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (param_1[1] != 0) {\n    return;\n  }\n  FUN_0001bb40(*param_1);\n  return;\n}" { (if_statement "if (param_1[1] != 0) {\n    return;\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0001bb40(*param_1);" (call_expression "FUN_0001bb40(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00032580(undefined4 *param_1)\n\n{\n  if (param_1[1] != 0) {\n    return;\n  }\n  FUN_0001bb40(*param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00032580(undefined4 *param_1)" (identifier "FUN_00032580") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (param_1[1] != 0) {\n    return;\n  }\n  FUN_0001bb40(*param_1);\n  return;\n}" ({ "{") (if_statement "if (param_1[1] != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0001bb40(*param_1);" (call_expression "FUN_0001bb40(*param_1)" (identifier "FUN_0001bb40") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int function_1(void *pCtx)

{
  int iVar1;
  
  if (*(int *)((int)pCtx + 4) != 0) {
    return *(int *)((int)pCtx + 4);
  }
                    /* WARNING: Load size is inaccurate */
  iVar1 = var_1(*pCtx);
  return iVar1;
}


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

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

void MASKED(undefined4 *param_1)

{
  if (param_1[1] != 0) {
    return;
  }
  FUN_0001bb40(*param_1);
  return;
}

