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

int fsdirConnect(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)

{
  int iVar1;
  sqlite3_vtab *psVar2;
  
  iVar1 = sqlite3_declare_vtab(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");
  psVar2 = (sqlite3_vtab *)0x0;
  if (iVar1 == 0) {
    psVar2 = (sqlite3_vtab *)sqlite3_malloc(0xc);
    if (psVar2 == (sqlite3_vtab *)0x0) {
      return 7;
    }
    psVar2->pModule = (sqlite3_module *)0x0;
    psVar2->nRef = 0;
    psVar2->zErrMsg = (char *)0x0;
  }
  *ppVtab = psVar2;
  return iVar1;
}



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

int FUN_0001c960(undefined4 param_1)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *in_stack_00000014;
  
  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");
  puVar2 = (undefined4 *)0x0;
  if (iVar1 == 0) {
    puVar2 = (undefined4 *)FUN_00069440(0xc);
    if (puVar2 == (undefined4 *)0x0) {
      return 7;
    }
    *puVar2 = 0;
    puVar2[1] = 0;
    puVar2[2] = 0;
  }
  *in_stack_00000014 = puVar2;
  return iVar1;
}


PUSH ESI
PUSH EBX
CALL 0x000172e0
ADD EBX,0x19e4c1
SUB ESP,0xc
LEA EAX,[EBX + 0xfff99228]
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00105cb0
ADD ESP,0x10
MOV ESI,EAX
XOR EAX,EAX
TEST ESI,ESI
JZ 0x0001c9a0
MOV EDX,dword ptr [ESP + 0x20]
MOV dword ptr [EDX],EAX
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH 0xc
CALL 0x00069440
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001c9d0
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
JMP 0x0001c98b
MOV ESI,0x7
JMP 0x0001c991
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001c960(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *in_stack_00000014;\n  \n  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  puVar2 = (undefined4 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }\n  *in_stack_00000014 = puVar2;\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_0001c960(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *in_stack_00000014;\n  \n  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  puVar2 = (undefined4 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }\n  *in_stack_00000014 = puVar2;\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001c960(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *in_stack_00000014;\n  \n  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  puVar2 = (undefined4 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }\n  *in_stack_00000014 = puVar2;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *in_stack_00000014;" type_identifier (pointer_declarator "*in_stack_00000014" * identifier) ;) (expression_statement "iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");" (assignment_expression "iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" identifier = (call_expression "FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" identifier (argument_list "(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" ( identifier , (string_literal ""CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)"" " string_content ") )))) ;) (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }" { (expression_statement "puVar2 = (undefined4 *)FUN_00069440(0xc);" (assignment_expression "puVar2 = (undefined4 *)FUN_00069440(0xc)" identifier = (cast_expression "(undefined4 *)FUN_00069440(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00069440(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "*in_stack_00000014 = puVar2;" (assignment_expression "*in_stack_00000014 = puVar2" (pointer_expression "*in_stack_00000014" * identifier) = identifier) ;) (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\nint fsdirConnect(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)\n\n{\n  int iVar1;\n  sqlite3_vtab *psVar2;\n  \n  iVar1 = sqlite3_declare_vtab(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  psVar2 = (sqlite3_vtab *)0x0;\n  if (iVar1 == 0) {\n    psVar2 = (sqlite3_vtab *)sqlite3_malloc(0xc);\n    if (psVar2 == (sqlite3_vtab *)0x0) {\n      return 7;\n    }\n    psVar2->pModule = (sqlite3_module *)0x0;\n    psVar2->nRef = 0;\n    psVar2->zErrMsg = (char *)0x0;\n  }\n  *ppVtab = psVar2;\n  return iVar1;\n}\n\n" comment comment (function_definition "int fsdirConnect(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)\n\n{\n  int iVar1;\n  sqlite3_vtab *psVar2;\n  \n  iVar1 = sqlite3_declare_vtab(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  psVar2 = (sqlite3_vtab *)0x0;\n  if (iVar1 == 0) {\n    psVar2 = (sqlite3_vtab *)sqlite3_malloc(0xc);\n    if (psVar2 == (sqlite3_vtab *)0x0) {\n      return 7;\n    }\n    psVar2->pModule = (sqlite3_module *)0x0;\n    psVar2->nRef = 0;\n    psVar2->zErrMsg = (char *)0x0;\n  }\n  *ppVtab = psVar2;\n  return iVar1;\n}" primitive_type (function_declarator "fsdirConnect(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)" identifier (parameter_list "(sqlite3 *db,void *pAux,int argc,char **argv,sqlite3_vtab **ppVtab,char **pzErr)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "void *pAux" primitive_type (pointer_declarator "*pAux" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) , (parameter_declaration "sqlite3_vtab **ppVtab" type_identifier (pointer_declarator "**ppVtab" * (pointer_declarator "*ppVtab" * identifier))) , (parameter_declaration "char **pzErr" primitive_type (pointer_declarator "**pzErr" * (pointer_declarator "*pzErr" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  sqlite3_vtab *psVar2;\n  \n  iVar1 = sqlite3_declare_vtab(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  psVar2 = (sqlite3_vtab *)0x0;\n  if (iVar1 == 0) {\n    psVar2 = (sqlite3_vtab *)sqlite3_malloc(0xc);\n    if (psVar2 == (sqlite3_vtab *)0x0) {\n      return 7;\n    }\n    psVar2->pModule = (sqlite3_module *)0x0;\n    psVar2->nRef = 0;\n    psVar2->zErrMsg = (char *)0x0;\n  }\n  *ppVtab = psVar2;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_vtab *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (expression_statement "iVar1 = sqlite3_declare_vtab(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");" (assignment_expression "iVar1 = sqlite3_declare_vtab(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" identifier = (call_expression "sqlite3_declare_vtab(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" identifier (argument_list "(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" ( identifier , (string_literal ""CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)"" " string_content ") )))) ;) (expression_statement "psVar2 = (sqlite3_vtab *)0x0;" (assignment_expression "psVar2 = (sqlite3_vtab *)0x0" identifier = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    psVar2 = (sqlite3_vtab *)sqlite3_malloc(0xc);\n    if (psVar2 == (sqlite3_vtab *)0x0) {\n      return 7;\n    }\n    psVar2->pModule = (sqlite3_module *)0x0;\n    psVar2->nRef = 0;\n    psVar2->zErrMsg = (char *)0x0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    psVar2 = (sqlite3_vtab *)sqlite3_malloc(0xc);\n    if (psVar2 == (sqlite3_vtab *)0x0) {\n      return 7;\n    }\n    psVar2->pModule = (sqlite3_module *)0x0;\n    psVar2->nRef = 0;\n    psVar2->zErrMsg = (char *)0x0;\n  }" { (expression_statement "psVar2 = (sqlite3_vtab *)sqlite3_malloc(0xc);" (assignment_expression "psVar2 = (sqlite3_vtab *)sqlite3_malloc(0xc)" identifier = (cast_expression "(sqlite3_vtab *)sqlite3_malloc(0xc)" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (if_statement "if (psVar2 == (sqlite3_vtab *)0x0) {\n      return 7;\n    }" if (parenthesized_expression "(psVar2 == (sqlite3_vtab *)0x0)" ( (binary_expression "psVar2 == (sqlite3_vtab *)0x0" identifier == (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "psVar2->pModule = (sqlite3_module *)0x0;" (assignment_expression "psVar2->pModule = (sqlite3_module *)0x0" (field_expression "psVar2->pModule" identifier -> field_identifier) = (cast_expression "(sqlite3_module *)0x0" ( (type_descriptor "sqlite3_module *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar2->nRef = 0;" (assignment_expression "psVar2->nRef = 0" (field_expression "psVar2->nRef" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar2->zErrMsg = (char *)0x0;" (assignment_expression "psVar2->zErrMsg = (char *)0x0" (field_expression "psVar2->zErrMsg" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "*ppVtab = psVar2;" (assignment_expression "*ppVtab = psVar2" (pointer_expression "*ppVtab" * identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0001c960(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *in_stack_00000014;\n  \n  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  puVar2 = (undefined4 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }\n  *in_stack_00000014 = puVar2;\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001c960(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *in_stack_00000014;\n  \n  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  puVar2 = (undefined4 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }\n  *in_stack_00000014 = puVar2;\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001c960(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *in_stack_00000014;\n  \n  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  puVar2 = (undefined4 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }\n  *in_stack_00000014 = puVar2;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *in_stack_00000014;" type_identifier (pointer_declarator "*in_stack_00000014" * identifier) ;) (expression_statement "iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");" (assignment_expression "iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" identifier = (call_expression "FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" identifier (argument_list "(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" ( identifier , (string_literal ""CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)"" " string_content ") )))) ;) (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }" { (expression_statement "puVar2 = (undefined4 *)FUN_00069440(0xc);" (assignment_expression "puVar2 = (undefined4 *)FUN_00069440(0xc)" identifier = (cast_expression "(undefined4 *)FUN_00069440(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00069440(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "*in_stack_00000014 = puVar2;" (assignment_expression "*in_stack_00000014 = puVar2" (pointer_expression "*in_stack_00000014" * identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001c960(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *in_stack_00000014;\n  \n  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  puVar2 = (undefined4 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }\n  *in_stack_00000014 = puVar2;\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0001c960(undefined4 param_1)" (identifier "FUN_0001c960") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *in_stack_00000014;\n  \n  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");\n  puVar2 = (undefined4 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }\n  *in_stack_00000014 = puVar2;\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *in_stack_00000014;" (type_identifier "undefined4") (pointer_declarator "*in_stack_00000014" (* "*") (identifier "in_stack_00000014")) (; ";")) (expression_statement "iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");" (assignment_expression "iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" (identifier "iVar1") (= "=") (call_expression "FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" (identifier "FUN_00105cb0") (argument_list "(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)")" (( "(") (identifier "param_1") (, ",") (string_literal ""CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)"" (" """) (string_content "CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)") (" """)) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar1 == 0) {\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00069440(0xc);\n    if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }\n    *puVar2 = 0;\n    puVar2[1] = 0;\n    puVar2[2] = 0;\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)FUN_00069440(0xc);" (assignment_expression "puVar2 = (undefined4 *)FUN_00069440(0xc)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_00069440(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00069440(0xc)" (identifier "FUN_00069440") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      return 7;\n    }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 7;\n    }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*in_stack_00000014 = puVar2;" (assignment_expression "*in_stack_00000014 = puVar2" (pointer_expression "*in_stack_00000014" (* "*") (identifier "in_stack_00000014")) (= "=") (identifier "puVar2")) (; ";")) (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 */

int function_1(type_1 *db,void *pAux,int argc,char **argv,type_2 **ppVtab,char **pzErr)

{
  int var_2;
  type_2 *var_4;
  
  var_2 = var_1(db,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");
  var_4 = (type_2 *)0x0;
  if (var_2 == 0) {
    var_4 = (type_2 *)var_3(0xc);
    if (var_4 == (type_2 *)0x0) {
      return 7;
    }
    var_4->pModule = (type_3 *)0x0;
    var_4->nRef = 0;
    var_4->zErrMsg = (char *)0x0;
  }
  *ppVtab = var_4;
  return var_2;
}


(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)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (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 (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

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

int MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *in_stack_00000014;
  
  iVar1 = FUN_00105cb0(param_1,"CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)");
  puVar2 = (undefined4 *)0x0;
  if (iVar1 == 0) {
    puVar2 = (undefined4 *)FUN_00069440(0xc);
    if (puVar2 == (undefined4 *)0x0) {
      return 7;
    }
    *puVar2 = 0;
    puVar2[1] = 0;
    puVar2[2] = 0;
  }
  *in_stack_00000014 = puVar2;
  return iVar1;
}

