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

MemFile * __regparm3 memdbFromDbSchema(sqlite3 *db,char *zSchema)

{
  int iVar1;
  MemFile *pMVar2;
  int in_GS_OFFSET;
  MemFile *p;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x48f46;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  p = (MemFile *)0x0;
  iVar1 = sqlite3_file_control(db,zSchema,7,&p);
  if (iVar1 == 0) {
    pMVar2 = p;
    if ((p->base).pMethods != &memdb_io_methods) {
      pMVar2 = (MemFile *)0x0;
    }
  }
  else {
    pMVar2 = (MemFile *)0x0;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pMVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int * __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  int *piVar2;
  int in_GS_OFFSET;
  int *local_14;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x48f46;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_14 = (int *)0x0;
  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);
  if (iVar1 == 0) {
    piVar2 = local_14;
    if ((undefined *)*local_14 != &DAT_0017baa0) {
      piVar2 = (int *)0x0;
    }
  }
  else {
    piVar2 = (int *)0x0;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return piVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBX
CALL 0x00017230
ADD EBX,0x132ee2
SUB ESP,0x18
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xc],ECX
XOR ECX,ECX
LEA ECX,[ESP + 0x8]
MOV dword ptr [ESP + 0x8],0x0
PUSH ECX
PUSH 0x7
PUSH EDX
PUSH EAX
CALL 0x00048df0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00048fa0
MOV EDX,dword ptr [ESP + 0x8]
LEA ECX,[EBX + 0xfffffc78]
CMP dword ptr [EDX],ECX
CMOVNZ EDX,EAX
MOV EBX,dword ptr [ESP + 0xc]
XOR EBX,dword ptr GS:[0x14]
MOV EAX,EDX
JNZ 0x00048fa4
ADD ESP,0x18
POP EBX
RET
XOR EDX,EDX
JMP 0x00048f88
CALL 0x00116110
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  int *local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = (int *)0x0;\n  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);\n  if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" comment (function_definition "int * __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  int *local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = (int *)0x0;\n  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);\n  if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00048f40(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  int *local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = (int *)0x0;\n  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);\n  if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x48f46;" (assignment_expression "uStack_8 = 0x48f46" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14 = (int *)0x0;" (assignment_expression "local_14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);" (assignment_expression "iVar1 = FUN_00048df0(param_1,param_2,7,&local_14)" identifier = (call_expression "FUN_00048df0(param_1,param_2,7,&local_14)" identifier (argument_list "(param_1,param_2,7,&local_14)" ( identifier , identifier , number_literal , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }" { (expression_statement "piVar2 = local_14;" (assignment_expression "piVar2 = local_14" identifier = identifier) ;) (if_statement "if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }" if (parenthesized_expression "((undefined *)*local_14 != &DAT_0017baa0)" ( (binary_expression "(undefined *)*local_14 != &DAT_0017baa0" (cast_expression "(undefined *)*local_14" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_14" * identifier)) != (pointer_expression "&DAT_0017baa0" & identifier)) )) (compound_statement "{\n      piVar2 = (int *)0x0;\n    }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }) (else_clause "else {\n    piVar2 = (int *)0x0;\n  }" else (compound_statement "{\n    piVar2 = (int *)0x0;\n  }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return piVar2;\n  }" { (return_statement "return piVar2;" return identifier ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nMemFile * __regparm3 memdbFromDbSchema(sqlite3 *db,char *zSchema)\n\n{\n  int iVar1;\n  MemFile *pMVar2;\n  int in_GS_OFFSET;\n  MemFile *p;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  p = (MemFile *)0x0;\n  iVar1 = sqlite3_file_control(db,zSchema,7,&p);\n  if (iVar1 == 0) {\n    pMVar2 = p;\n    if ((p->base).pMethods != &memdb_io_methods) {\n      pMVar2 = (MemFile *)0x0;\n    }\n  }\n  else {\n    pMVar2 = (MemFile *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pMVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (ERROR "MemFile * __regparm3 memdbFromDbSchema(sqlite3 *db,char *zSchema)" (binary_expression "MemFile * __regparm3 memdbFromDbSchema(sqlite3 *db,char *zSchema)" identifier * (ERROR "__regparm3" identifier) (call_expression "memdbFromDbSchema(sqlite3 *db,char *zSchema)" identifier (argument_list "(sqlite3 *db,char *zSchema)" ( (binary_expression "sqlite3 *db" identifier * identifier) , (binary_expression "char *zSchema" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  MemFile *pMVar2;\n  int in_GS_OFFSET;\n  MemFile *p;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  p = (MemFile *)0x0;\n  iVar1 = sqlite3_file_control(db,zSchema,7,&p);\n  if (iVar1 == 0) {\n    pMVar2 = p;\n    if ((p->base).pMethods != &memdb_io_methods) {\n      pMVar2 = (MemFile *)0x0;\n    }\n  }\n  else {\n    pMVar2 = (MemFile *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pMVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "MemFile *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "MemFile *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x48f46;" (assignment_expression "uStack_8 = 0x48f46" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "p = (MemFile *)0x0;" (assignment_expression "p = (MemFile *)0x0" identifier = (cast_expression "(MemFile *)0x0" ( (type_descriptor "MemFile *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = sqlite3_file_control(db,zSchema,7,&p);" (assignment_expression "iVar1 = sqlite3_file_control(db,zSchema,7,&p)" identifier = (call_expression "sqlite3_file_control(db,zSchema,7,&p)" identifier (argument_list "(db,zSchema,7,&p)" ( identifier , identifier , number_literal , (pointer_expression "&p" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    pMVar2 = p;\n    if ((p->base).pMethods != &memdb_io_methods) {\n      pMVar2 = (MemFile *)0x0;\n    }\n  }\n  else {\n    pMVar2 = (MemFile *)0x0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    pMVar2 = p;\n    if ((p->base).pMethods != &memdb_io_methods) {\n      pMVar2 = (MemFile *)0x0;\n    }\n  }" { (expression_statement "pMVar2 = p;" (assignment_expression "pMVar2 = p" identifier = identifier) ;) (if_statement "if ((p->base).pMethods != &memdb_io_methods) {\n      pMVar2 = (MemFile *)0x0;\n    }" if (parenthesized_expression "((p->base).pMethods != &memdb_io_methods)" ( (binary_expression "(p->base).pMethods != &memdb_io_methods" (field_expression "(p->base).pMethods" (parenthesized_expression "(p->base)" ( (field_expression "p->base" identifier -> field_identifier) )) . field_identifier) != (pointer_expression "&memdb_io_methods" & identifier)) )) (compound_statement "{\n      pMVar2 = (MemFile *)0x0;\n    }" { (expression_statement "pMVar2 = (MemFile *)0x0;" (assignment_expression "pMVar2 = (MemFile *)0x0" identifier = (cast_expression "(MemFile *)0x0" ( (type_descriptor "MemFile *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }) (else_clause "else {\n    pMVar2 = (MemFile *)0x0;\n  }" else (compound_statement "{\n    pMVar2 = (MemFile *)0x0;\n  }" { (expression_statement "pMVar2 = (MemFile *)0x0;" (assignment_expression "pMVar2 = (MemFile *)0x0" identifier = (cast_expression "(MemFile *)0x0" ( (type_descriptor "MemFile *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pMVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pMVar2;\n  }" { (return_statement "return pMVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "int * __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  int *local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = (int *)0x0;\n  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);\n  if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "int * __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  int *local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = (int *)0x0;\n  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);\n  if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }\n                    \n  FUN_00116110();\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00048f40(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  int *local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = (int *)0x0;\n  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);\n  if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x48f46;" (assignment_expression "uStack_8 = 0x48f46" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14 = (int *)0x0;" (assignment_expression "local_14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);" (assignment_expression "iVar1 = FUN_00048df0(param_1,param_2,7,&local_14)" identifier = (call_expression "FUN_00048df0(param_1,param_2,7,&local_14)" identifier (argument_list "(param_1,param_2,7,&local_14)" ( identifier , identifier , number_literal , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }" { (expression_statement "piVar2 = local_14;" (assignment_expression "piVar2 = local_14" identifier = identifier) ;) (if_statement "if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }" if (parenthesized_expression "((undefined *)*local_14 != &DAT_0017baa0)" ( (binary_expression "(undefined *)*local_14 != &DAT_0017baa0" (cast_expression "(undefined *)*local_14" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_14" * identifier)) != (pointer_expression "&DAT_0017baa0" & identifier)) )) (compound_statement "{\n      piVar2 = (int *)0x0;\n    }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }) (else_clause "else {\n    piVar2 = (int *)0x0;\n  }" else (compound_statement "{\n    piVar2 = (int *)0x0;\n  }" { (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return piVar2;\n  }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int * __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  int *local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = (int *)0x0;\n  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);\n  if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }\n                    \n  FUN_00116110();\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_00048f40(undefined4 param_1,undefined4 param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00048f40(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00048f40") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  int *local_14;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x48f46;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14 = (int *)0x0;\n  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);\n  if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int *local_14;" (primitive_type "int") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x48f46;" (assignment_expression "uStack_8 = 0x48f46" (identifier "uStack_8") (= "=") (number_literal "0x48f46")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_14 = (int *)0x0;" (assignment_expression "local_14 = (int *)0x0" (identifier "local_14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);" (assignment_expression "iVar1 = FUN_00048df0(param_1,param_2,7,&local_14)" (identifier "iVar1") (= "=") (call_expression "FUN_00048df0(param_1,param_2,7,&local_14)" (identifier "FUN_00048df0") (argument_list "(param_1,param_2,7,&local_14)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "7") (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }\n  else {\n    piVar2 = (int *)0x0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = local_14;\n    if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }\n  }" ({ "{") (expression_statement "piVar2 = local_14;" (assignment_expression "piVar2 = local_14" (identifier "piVar2") (= "=") (identifier "local_14")) (; ";")) (if_statement "if ((undefined *)*local_14 != &DAT_0017baa0) {\n      piVar2 = (int *)0x0;\n    }" (if "if") (parenthesized_expression "((undefined *)*local_14 != &DAT_0017baa0)" (( "(") (binary_expression "(undefined *)*local_14 != &DAT_0017baa0" (cast_expression "(undefined *)*local_14" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_14" (* "*") (identifier "local_14"))) (!= "!=") (pointer_expression "&DAT_0017baa0" (& "&") (identifier "DAT_0017baa0"))) () ")")) (compound_statement "{\n      piVar2 = (int *)0x0;\n    }" ({ "{") (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" (identifier "piVar2") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    piVar2 = (int *)0x0;\n  }" (else "else") (compound_statement "{\n    piVar2 = (int *)0x0;\n  }" ({ "{") (expression_statement "piVar2 = (int *)0x0;" (assignment_expression "piVar2 = (int *)0x0" (identifier "piVar2") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar2;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return piVar2;\n  }" ({ "{") (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 * __regparm3 memdbFromDbSchema(sqlite3 *db,char *zSchema)

{
  int var_3;
  type_1 *pMVar2;
  int var_1;
  type_1 *p;
  int var_4;
  type_2 uStack_8;
  
  uStack_8 = 0x48f46;
  var_4 = *(int *)(var_1 + 0x14);
  p = (type_1 *)0x0;
  var_3 = var_2(db,zSchema,7,&p);
  if (var_3 == 0) {
    pMVar2 = p;
    if ((p->base).pMethods != &memdb_io_methods) {
      pMVar2 = (type_1 *)0x0;
    }
  }
  else {
    pMVar2 = (type_1 *)0x0;
  }
  if (var_4 == *(int *)(var_1 + 0x14)) {
    return pMVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


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

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

int * __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  int *piVar2;
  int in_GS_OFFSET;
  int *local_14;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x48f46;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_14 = (int *)0x0;
  iVar1 = FUN_00048df0(param_1,param_2,7,&local_14);
  if (iVar1 == 0) {
    piVar2 = local_14;
    if ((undefined *)*local_14 != &DAT_0017baa0) {
      piVar2 = (int *)0x0;
    }
  }
  else {
    piVar2 = (int *)0x0;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return piVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

