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

int stmtOpen(sqlite3_vtab *p,sqlite3_vtab_cursor **ppCursor)

{
  sqlite3_vtab_cursor *psVar1;
  
  psVar1 = (sqlite3_vtab_cursor *)sqlite3_malloc(0x14);
  if (psVar1 != (sqlite3_vtab_cursor *)0x0) {
    psVar1[1].pVtab = (sqlite3_vtab *)0x0;
    psVar1->pVtab = (sqlite3_vtab *)0x0;
    psVar1[2].pVtab = (sqlite3_vtab *)0x0;
    psVar1[3].pVtab = (sqlite3_vtab *)0x0;
    psVar1[4].pVtab = (sqlite3_vtab *)0x0;
    psVar1[1].pVtab = (sqlite3_vtab *)p[1].pModule;
    *ppCursor = psVar1;
    return 0;
  }
  return 7;
}



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

undefined4 FUN_0003efb0(int param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)FUN_0003e090(0x14);
  if (puVar1 != (undefined4 *)0x0) {
    puVar1[1] = 0;
    *puVar1 = 0;
    puVar1[2] = 0;
    puVar1[3] = 0;
    puVar1[4] = 0;
    puVar1[1] = *(undefined4 *)(param_1 + 0xc);
    *param_2 = puVar1;
    return 0;
  }
  return 7;
}


PUSH EBX
CALL 0x00014cf0
ADD EBX,0x109f1e
SUB ESP,0x14
PUSH 0x14
CALL 0x0003e090
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003f010
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x10],0x0
MOV EDX,dword ptr [EDX + 0xc]
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [ESP + 0x14]
MOV dword ptr [EDX],EAX
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
ADD ESP,0x8
MOV EAX,0x7
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0003efb0(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x14);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }\n  return 7;\n}\n\n" comment (function_definition "undefined4 FUN_0003efb0(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x14);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }\n  return 7;\n}" type_identifier (function_declarator "FUN_0003efb0(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x14);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }\n  return 7;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0x14);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0x14)" identifier = (cast_expression "(undefined4 *)FUN_0003e090(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e090(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 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[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }" { (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[1] = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "puVar1[1] = *(undefined4 *)(param_1 + 0xc)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (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" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = puVar1;" (assignment_expression "*param_2 = puVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint stmtOpen(sqlite3_vtab *p,sqlite3_vtab_cursor **ppCursor)\n\n{\n  sqlite3_vtab_cursor *psVar1;\n  \n  psVar1 = (sqlite3_vtab_cursor *)sqlite3_malloc(0x14);\n  if (psVar1 != (sqlite3_vtab_cursor *)0x0) {\n    psVar1[1].pVtab = (sqlite3_vtab *)0x0;\n    psVar1->pVtab = (sqlite3_vtab *)0x0;\n    psVar1[2].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[3].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[4].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[1].pVtab = (sqlite3_vtab *)p[1].pModule;\n    *ppCursor = psVar1;\n    return 0;\n  }\n  return 7;\n}\n\n" comment comment (function_definition "int stmtOpen(sqlite3_vtab *p,sqlite3_vtab_cursor **ppCursor)\n\n{\n  sqlite3_vtab_cursor *psVar1;\n  \n  psVar1 = (sqlite3_vtab_cursor *)sqlite3_malloc(0x14);\n  if (psVar1 != (sqlite3_vtab_cursor *)0x0) {\n    psVar1[1].pVtab = (sqlite3_vtab *)0x0;\n    psVar1->pVtab = (sqlite3_vtab *)0x0;\n    psVar1[2].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[3].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[4].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[1].pVtab = (sqlite3_vtab *)p[1].pModule;\n    *ppCursor = psVar1;\n    return 0;\n  }\n  return 7;\n}" primitive_type (function_declarator "stmtOpen(sqlite3_vtab *p,sqlite3_vtab_cursor **ppCursor)" identifier (parameter_list "(sqlite3_vtab *p,sqlite3_vtab_cursor **ppCursor)" ( (parameter_declaration "sqlite3_vtab *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "sqlite3_vtab_cursor **ppCursor" type_identifier (pointer_declarator "**ppCursor" * (pointer_declarator "*ppCursor" * identifier))) ))) (compound_statement "{\n  sqlite3_vtab_cursor *psVar1;\n  \n  psVar1 = (sqlite3_vtab_cursor *)sqlite3_malloc(0x14);\n  if (psVar1 != (sqlite3_vtab_cursor *)0x0) {\n    psVar1[1].pVtab = (sqlite3_vtab *)0x0;\n    psVar1->pVtab = (sqlite3_vtab *)0x0;\n    psVar1[2].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[3].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[4].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[1].pVtab = (sqlite3_vtab *)p[1].pModule;\n    *ppCursor = psVar1;\n    return 0;\n  }\n  return 7;\n}" { (declaration "sqlite3_vtab_cursor *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (expression_statement "psVar1 = (sqlite3_vtab_cursor *)sqlite3_malloc(0x14);" (assignment_expression "psVar1 = (sqlite3_vtab_cursor *)sqlite3_malloc(0x14)" identifier = (cast_expression "(sqlite3_vtab_cursor *)sqlite3_malloc(0x14)" ( (type_descriptor "sqlite3_vtab_cursor *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (if_statement "if (psVar1 != (sqlite3_vtab_cursor *)0x0) {\n    psVar1[1].pVtab = (sqlite3_vtab *)0x0;\n    psVar1->pVtab = (sqlite3_vtab *)0x0;\n    psVar1[2].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[3].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[4].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[1].pVtab = (sqlite3_vtab *)p[1].pModule;\n    *ppCursor = psVar1;\n    return 0;\n  }" if (parenthesized_expression "(psVar1 != (sqlite3_vtab_cursor *)0x0)" ( (binary_expression "psVar1 != (sqlite3_vtab_cursor *)0x0" identifier != (cast_expression "(sqlite3_vtab_cursor *)0x0" ( (type_descriptor "sqlite3_vtab_cursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    psVar1[1].pVtab = (sqlite3_vtab *)0x0;\n    psVar1->pVtab = (sqlite3_vtab *)0x0;\n    psVar1[2].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[3].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[4].pVtab = (sqlite3_vtab *)0x0;\n    psVar1[1].pVtab = (sqlite3_vtab *)p[1].pModule;\n    *ppCursor = psVar1;\n    return 0;\n  }" { (expression_statement "psVar1[1].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "psVar1[1].pVtab = (sqlite3_vtab *)0x0" (field_expression "psVar1[1].pVtab" (subscript_expression "psVar1[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar1->pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "psVar1->pVtab = (sqlite3_vtab *)0x0" (field_expression "psVar1->pVtab" identifier -> field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar1[2].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "psVar1[2].pVtab = (sqlite3_vtab *)0x0" (field_expression "psVar1[2].pVtab" (subscript_expression "psVar1[2]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar1[3].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "psVar1[3].pVtab = (sqlite3_vtab *)0x0" (field_expression "psVar1[3].pVtab" (subscript_expression "psVar1[3]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar1[4].pVtab = (sqlite3_vtab *)0x0;" (assignment_expression "psVar1[4].pVtab = (sqlite3_vtab *)0x0" (field_expression "psVar1[4].pVtab" (subscript_expression "psVar1[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "psVar1[1].pVtab = (sqlite3_vtab *)p[1].pModule;" (assignment_expression "psVar1[1].pVtab = (sqlite3_vtab *)p[1].pModule" (field_expression "psVar1[1].pVtab" (subscript_expression "psVar1[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_vtab *)p[1].pModule" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p[1].pModule" (subscript_expression "p[1]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "*ppCursor = psVar1;" (assignment_expression "*ppCursor = psVar1" (pointer_expression "*ppCursor" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0003efb0(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x14);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }\n  return 7;\n}\n\n" (function_definition "undefined4 FUN_0003efb0(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x14);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }\n  return 7;\n}" type_identifier (function_declarator "FUN_0003efb0(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x14);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }\n  return 7;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0x14);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0x14)" identifier = (cast_expression "(undefined4 *)FUN_0003e090(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003e090(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 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[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }" { (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[1] = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "puVar1[1] = *(undefined4 *)(param_1 + 0xc)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (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" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = puVar1;" (assignment_expression "*param_2 = puVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 7;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (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 { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0003efb0(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x14);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }\n  return 7;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003efb0(int param_1,undefined4 *param_2)" (identifier "FUN_0003efb0") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)FUN_0003e090(0x14);\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }\n  return 7;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_0003e090(0x14);" (assignment_expression "puVar1 = (undefined4 *)FUN_0003e090(0x14)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0003e090(0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003e090(0x14)" (identifier "FUN_0003e090") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 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[1] = 0;\n    *puVar1 = 0;\n    puVar1[2] = 0;\n    puVar1[3] = 0;\n    puVar1[4] = 0;\n    puVar1[1] = *(undefined4 *)(param_1 + 0xc);\n    *param_2 = puVar1;\n    return 0;\n  }" ({ "{") (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 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (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 "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[4] = 0;" (assignment_expression "puVar1[4] = 0" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "puVar1[1] = *(undefined4 *)(param_1 + 0xc)" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (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" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*param_2 = puVar1;" (assignment_expression "*param_2 = puVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "puVar1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}")))

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

int function_1(type_1 *p,type_2 **ppCursor)

{
  type_2 *var_2;
  
  var_2 = (type_2 *)var_1(0x14);
  if (var_2 != (type_2 *)0x0) {
    var_2[1].pVtab = (type_1 *)0x0;
    var_2->pVtab = (type_1 *)0x0;
    var_2[2].pVtab = (type_1 *)0x0;
    var_2[3].pVtab = (type_1 *)0x0;
    var_2[4].pVtab = (type_1 *)0x0;
    var_2[1].pVtab = (type_1 *)p[1].pModule;
    *ppCursor = var_2;
    return 0;
  }
  return 7;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator 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)))))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))) (return_statement (number_literal)))))

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

undefined4 MASKED(int param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)FUN_0003e090(0x14);
  if (puVar1 != (undefined4 *)0x0) {
    puVar1[1] = 0;
    *puVar1 = 0;
    puVar1[2] = 0;
    puVar1[3] = 0;
    puVar1[4] = 0;
    puVar1[1] = *(undefined4 *)(param_1 + 0xc);
    *param_2 = puVar1;
    return 0;
  }
  return 7;
}

