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

char * sqlite3_expanded_sql(sqlite3_stmt *pStmt)

{
  char *zRawSql;
  
  zRawSql = sqlite3_sql(pStmt);
  if (zRawSql != (char *)0x0) {
    sqlite3_mutex_enter(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));
    zRawSql = sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql);
    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));
  }
  return zRawSql;
}



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

int FUN_000649b0(int *param_1)

{
  int iVar1;
  
  iVar1 = FUN_0001bcb0(param_1);
  if (iVar1 != 0) {
    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));
    iVar1 = FUN_00064570();
    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));
  }
  return iVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00014cf0
ADD EBX,0xe4518
SUB ESP,0xc
PUSH EDI
CALL 0x0001bcb0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000649fa
MOV EAX,dword ptr [EDI]
SUB ESP,0xc
PUSH dword ptr [EAX + 0xc]
CALL 0x000197c0
MOV EDX,ESI
MOV EAX,EDI
CALL 0x00064570
MOV ESI,EAX
POP EAX
MOV EAX,dword ptr [EDI]
PUSH dword ptr [EAX + 0xc]
CALL 0x000197f0
ADD ESP,0x10
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000649b0(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0001bcb0(param_1);\n  if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_000649b0(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0001bcb0(param_1);\n  if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000649b0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0001bcb0(param_1);\n  if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0001bcb0(param_1);" (assignment_expression "iVar1 = FUN_0001bcb0(param_1)" identifier = (call_expression "FUN_0001bcb0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }" { (expression_statement "FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(*param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(*param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) (expression_statement "iVar1 = FUN_00064570();" (assignment_expression "iVar1 = FUN_00064570()" identifier = (call_expression "FUN_00064570()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(*param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(*param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * sqlite3_expanded_sql(sqlite3_stmt *pStmt)\n\n{\n  char *zRawSql;\n  \n  zRawSql = sqlite3_sql(pStmt);\n  if (zRawSql != (char *)0x0) {\n    sqlite3_mutex_enter(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n    zRawSql = sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql);\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return zRawSql;\n}\n\n" comment comment (function_definition "char * sqlite3_expanded_sql(sqlite3_stmt *pStmt)\n\n{\n  char *zRawSql;\n  \n  zRawSql = sqlite3_sql(pStmt);\n  if (zRawSql != (char *)0x0) {\n    sqlite3_mutex_enter(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n    zRawSql = sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql);\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return zRawSql;\n}" primitive_type (pointer_declarator "* sqlite3_expanded_sql(sqlite3_stmt *pStmt)" * (function_declarator "sqlite3_expanded_sql(sqlite3_stmt *pStmt)" identifier (parameter_list "(sqlite3_stmt *pStmt)" ( (parameter_declaration "sqlite3_stmt *pStmt" type_identifier (pointer_declarator "*pStmt" * identifier)) )))) (compound_statement "{\n  char *zRawSql;\n  \n  zRawSql = sqlite3_sql(pStmt);\n  if (zRawSql != (char *)0x0) {\n    sqlite3_mutex_enter(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n    zRawSql = sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql);\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }\n  return zRawSql;\n}" { (declaration "char *zRawSql;" primitive_type (pointer_declarator "*zRawSql" * identifier) ;) (expression_statement "zRawSql = sqlite3_sql(pStmt);" (assignment_expression "zRawSql = sqlite3_sql(pStmt)" identifier = (call_expression "sqlite3_sql(pStmt)" identifier (argument_list "(pStmt)" ( identifier )))) ;) (if_statement "if (zRawSql != (char *)0x0) {\n    sqlite3_mutex_enter(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n    zRawSql = sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql);\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }" if (parenthesized_expression "(zRawSql != (char *)0x0)" ( (binary_expression "zRawSql != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3_mutex_enter(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n    zRawSql = sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql);\n    sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));\n  }" { (expression_statement "sqlite3_mutex_enter(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));" (call_expression "sqlite3_mutex_enter(*(sqlite3_mutex **)(*(int *)pStmt + 0xc))" identifier (argument_list "(*(sqlite3_mutex **)(*(int *)pStmt + 0xc))" ( (pointer_expression "*(sqlite3_mutex **)(*(int *)pStmt + 0xc)" * (cast_expression "(sqlite3_mutex **)(*(int *)pStmt + 0xc)" ( (type_descriptor "sqlite3_mutex **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pStmt + 0xc)" ( (binary_expression "*(int *)pStmt + 0xc" (pointer_expression "*(int *)pStmt" * (cast_expression "(int *)pStmt" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) (expression_statement "zRawSql = sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql);" (assignment_expression "zRawSql = sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql)" identifier = (call_expression "sqlite3VdbeExpandSql((Vdbe *)pStmt,zRawSql)" identifier (argument_list "((Vdbe *)pStmt,zRawSql)" ( (cast_expression "(Vdbe *)pStmt" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc));" (call_expression "sqlite3_mutex_leave(*(sqlite3_mutex **)(*(int *)pStmt + 0xc))" identifier (argument_list "(*(sqlite3_mutex **)(*(int *)pStmt + 0xc))" ( (pointer_expression "*(sqlite3_mutex **)(*(int *)pStmt + 0xc)" * (cast_expression "(sqlite3_mutex **)(*(int *)pStmt + 0xc)" ( (type_descriptor "sqlite3_mutex **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pStmt + 0xc)" ( (binary_expression "*(int *)pStmt + 0xc" (pointer_expression "*(int *)pStmt" * (cast_expression "(int *)pStmt" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ))) ;) })) (return_statement "return zRawSql;" return identifier ;) })))
(translation_unit "int FUN_000649b0(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0001bcb0(param_1);\n  if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000649b0(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0001bcb0(param_1);\n  if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000649b0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0001bcb0(param_1);\n  if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0001bcb0(param_1);" (assignment_expression "iVar1 = FUN_0001bcb0(param_1)" identifier = (call_expression "FUN_0001bcb0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }" { (expression_statement "FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(*param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(*param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) (expression_statement "iVar1 = FUN_00064570();" (assignment_expression "iVar1 = FUN_00064570()" identifier = (call_expression "FUN_00064570()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(*param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(*param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000649b0(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0001bcb0(param_1);\n  if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_000649b0(int *param_1)" (identifier "FUN_000649b0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0001bcb0(param_1);\n  if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_0001bcb0(param_1);" (assignment_expression "iVar1 = FUN_0001bcb0(param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_0001bcb0(param_1)" (identifier "FUN_0001bcb0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));\n    iVar1 = FUN_00064570();\n    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));\n  }" ({ "{") (expression_statement "FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(*param_1 + 0xc))" (identifier "FUN_000197c0") (argument_list "(*(undefined4 *)(*param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00064570();" (assignment_expression "iVar1 = FUN_00064570()" (identifier "iVar1") (= "=") (call_expression "FUN_00064570()" (identifier "FUN_00064570") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(*param_1 + 0xc))" (identifier "FUN_000197f0") (argument_list "(*(undefined4 *)(*param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

char * function_1(type_1 *pStmt)

{
  char *var_2;
  
  var_2 = var_1(pStmt);
  if (var_2 != (char *)0x0) {
    var_3(*(type_2 **)(*(int *)pStmt + 0xc));
    var_2 = var_4((type_3 *)pStmt,var_2);
    var_5(*(type_2 **)(*(int *)pStmt + 0xc));
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (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: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (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: (pointer_expression argument: (identifier)) right: (number_literal)))))))))) (return_statement (identifier)))))

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

int MASKED(int *param_1)

{
  int iVar1;
  
  iVar1 = FUN_0001bcb0(param_1);
  if (iVar1 != 0) {
    FUN_000197c0(*(undefined4 *)(*param_1 + 0xc));
    iVar1 = FUN_00064570();
    FUN_000197f0(*(undefined4 *)(*param_1 + 0xc));
  }
  return iVar1;
}

