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

int sqlite3changegroup_new(sqlite3_changegroup **pp)

{
  sqlite3_changegroup *psVar1;
  int iVar2;
  
  psVar1 = (sqlite3_changegroup *)sqlite3_malloc(0xc);
  iVar2 = 7;
  if (psVar1 != (sqlite3_changegroup *)0x0) {
    psVar1->rc = 0;
    iVar2 = 0;
    psVar1->bPatch = 0;
    psVar1->pList = (SessionTable *)0x0;
  }
  *pp = psVar1;
  return iVar2;
}



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

undefined4 FUN_000f3bd0(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)FUN_0003e090(0xc);
  uVar2 = 7;
  if (puVar1 != (undefined4 *)0x0) {
    *puVar1 = 0;
    uVar2 = 0;
    puVar1[1] = 0;
    puVar1[2] = 0;
  }
  *param_1 = puVar1;
  return uVar2;
}


PUSH EBX
CALL 0x00014cf0
ADD EBX,0x552fe
SUB ESP,0x14
PUSH 0xc
CALL 0x0003e090
ADD ESP,0x10
MOV EDX,EAX
MOV EAX,0x7
TEST EDX,EDX
JZ 0x000f3c0a
MOV dword ptr [EDX],0x0
XOR EAX,EAX
MOV dword ptr [EDX + 0x4],0x0
MOV dword ptr [EDX + 0x8],0x0
MOV ECX,dword ptr [ESP + 0x10]
MOV dword ptr [ECX],EDX
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000f3bd0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0xc);\n  uVar2 = 7;\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }\n  *param_1 = puVar1;\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_000f3bd0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0xc);\n  uVar2 = 7;\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }\n  *param_1 = puVar1;\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000f3bd0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0xc);\n  uVar2 = 7;\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }\n  *param_1 = puVar1;\n  return uVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0xc)" identifier = (cast_expression "(undefined4 *)FUN_0003e090(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e090(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "uVar2 = 7;" (assignment_expression "uVar2 = 7" identifier = number_literal) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return uVar2;" 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 sqlite3changegroup_new(sqlite3_changegroup **pp)\n\n{\n  sqlite3_changegroup *psVar1;\n  int iVar2;\n  \n  psVar1 = (sqlite3_changegroup *)sqlite3_malloc(0xc);\n  iVar2 = 7;\n  if (psVar1 != (sqlite3_changegroup *)0x0) {\n    psVar1->rc = 0;\n    iVar2 = 0;\n    psVar1->bPatch = 0;\n    psVar1->pList = (SessionTable *)0x0;\n  }\n  *pp = psVar1;\n  return iVar2;\n}\n\n" comment comment (function_definition "int sqlite3changegroup_new(sqlite3_changegroup **pp)\n\n{\n  sqlite3_changegroup *psVar1;\n  int iVar2;\n  \n  psVar1 = (sqlite3_changegroup *)sqlite3_malloc(0xc);\n  iVar2 = 7;\n  if (psVar1 != (sqlite3_changegroup *)0x0) {\n    psVar1->rc = 0;\n    iVar2 = 0;\n    psVar1->bPatch = 0;\n    psVar1->pList = (SessionTable *)0x0;\n  }\n  *pp = psVar1;\n  return iVar2;\n}" primitive_type (function_declarator "sqlite3changegroup_new(sqlite3_changegroup **pp)" identifier (parameter_list "(sqlite3_changegroup **pp)" ( (parameter_declaration "sqlite3_changegroup **pp" type_identifier (pointer_declarator "**pp" * (pointer_declarator "*pp" * identifier))) ))) (compound_statement "{\n  sqlite3_changegroup *psVar1;\n  int iVar2;\n  \n  psVar1 = (sqlite3_changegroup *)sqlite3_malloc(0xc);\n  iVar2 = 7;\n  if (psVar1 != (sqlite3_changegroup *)0x0) {\n    psVar1->rc = 0;\n    iVar2 = 0;\n    psVar1->bPatch = 0;\n    psVar1->pList = (SessionTable *)0x0;\n  }\n  *pp = psVar1;\n  return iVar2;\n}" { (declaration "sqlite3_changegroup *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "psVar1 = (sqlite3_changegroup *)sqlite3_malloc(0xc);" (assignment_expression "psVar1 = (sqlite3_changegroup *)sqlite3_malloc(0xc)" identifier = (cast_expression "(sqlite3_changegroup *)sqlite3_malloc(0xc)" ( (type_descriptor "sqlite3_changegroup *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) (if_statement "if (psVar1 != (sqlite3_changegroup *)0x0) {\n    psVar1->rc = 0;\n    iVar2 = 0;\n    psVar1->bPatch = 0;\n    psVar1->pList = (SessionTable *)0x0;\n  }" if (parenthesized_expression "(psVar1 != (sqlite3_changegroup *)0x0)" ( (binary_expression "psVar1 != (sqlite3_changegroup *)0x0" identifier != (cast_expression "(sqlite3_changegroup *)0x0" ( (type_descriptor "sqlite3_changegroup *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    psVar1->rc = 0;\n    iVar2 = 0;\n    psVar1->bPatch = 0;\n    psVar1->pList = (SessionTable *)0x0;\n  }" { (expression_statement "psVar1->rc = 0;" (assignment_expression "psVar1->rc = 0" (field_expression "psVar1->rc" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "psVar1->bPatch = 0;" (assignment_expression "psVar1->bPatch = 0" (field_expression "psVar1->bPatch" identifier -> field_identifier) = number_literal) ;) (expression_statement "psVar1->pList = (SessionTable *)0x0;" (assignment_expression "psVar1->pList = (SessionTable *)0x0" (field_expression "psVar1->pList" identifier -> field_identifier) = (cast_expression "(SessionTable *)0x0" ( (type_descriptor "SessionTable *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "*pp = psVar1;" (assignment_expression "*pp = psVar1" (pointer_expression "*pp" * identifier) = identifier) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_000f3bd0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0xc);\n  uVar2 = 7;\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }\n  *param_1 = puVar1;\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000f3bd0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0xc);\n  uVar2 = 7;\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }\n  *param_1 = puVar1;\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000f3bd0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0xc);\n  uVar2 = 7;\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }\n  *param_1 = puVar1;\n  return uVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0xc)" identifier = (cast_expression "(undefined4 *)FUN_0003e090(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e090(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "uVar2 = 7;" (assignment_expression "uVar2 = 7" identifier = number_literal) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_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 "undefined4 FUN_000f3bd0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0xc);\n  uVar2 = 7;\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }\n  *param_1 = puVar1;\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_000f3bd0(undefined4 *param_1)" (identifier "FUN_000f3bd0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0xc);\n  uVar2 = 7;\n  if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }\n  *param_1 = puVar1;\n  return uVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0xc);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0003e090(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003e090(0xc)" (identifier "FUN_0003e090") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "uVar2 = 7;" (assignment_expression "uVar2 = 7" (identifier "uVar2") (= "=") (number_literal "7")) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *puVar1 = 0;\n    uVar2 = 0;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n  }" ({ "{") (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*param_1 = puVar1;" (assignment_expression "*param_1 = puVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "puVar1")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int function_1(type_1 **pp)

{
  type_1 *var_2;
  int iVar2;
  
  var_2 = (type_1 *)var_1(0xc);
  iVar2 = 7;
  if (var_2 != (type_1 *)0x0) {
    var_2->rc = 0;
    iVar2 = 0;
    var_2->bPatch = 0;
    var_2->pList = (type_2 *)0x0;
  }
  *pp = var_2;
  return iVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (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)))))) (expression_statement (assignment_expression left: (identifier) right: (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 (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (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 */

undefined4 MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)FUN_0003e090(0xc);
  uVar2 = 7;
  if (puVar1 != (undefined4 *)0x0) {
    *puVar1 = 0;
    uVar2 = 0;
    puVar1[1] = 0;
    puVar1[2] = 0;
  }
  *param_1 = puVar1;
  return uVar2;
}

