
/* WARNING: Unknown calling convention */

int unixSectorSize(sqlite3_file *id)

{
  if (id[0x13].pMethods != (sqlite3_io_methods *)0x0) {
    return (int)id[0x13].pMethods;
  }
  if (((uint)id[4].pMethods & 0x100000) != 0) {
    id[0x14].pMethods = (sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000);
  }
  id[0x13].pMethods = (sqlite3_io_methods *)0x1000;
  return 0x1000;
}



int FUN_000358f0(int param_1)

{
  if (*(int *)(param_1 + 0x4c) != 0) {
    return *(int *)(param_1 + 0x4c);
  }
  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {
    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;
  }
  *(undefined4 *)(param_1 + 0x4c) = 0x1000;
  return 0x1000;
}


MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EDX + 0x4c]
TEST EAX,EAX
JZ 0x00035900
RET
TEST byte ptr [EDX + 0x12],0x10
JZ 0x0003590d
OR dword ptr [EDX + 0x50],0x1000
MOV dword ptr [EDX + 0x4c],0x1000
MOV EAX,0x1000
RET
(translation_unit "int FUN_000358f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }\n  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }\n  *(undefined4 *)(param_1 + 0x4c) = 0x1000;\n  return 0x1000;\n}\n\n" (function_definition "int FUN_000358f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }\n  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }\n  *(undefined4 *)(param_1 + 0x4c) = 0x1000;\n  return 0x1000;\n}" primitive_type (function_declarator "FUN_000358f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }\n  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }\n  *(undefined4 *)(param_1 + 0x4c) = 0x1000;\n  return 0x1000;\n}" { (if_statement "if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) != 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(int *)(param_1 + 0x4c);\n  }" { (return_statement "return *(int *)(param_1 + 0x4c);" return (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) ;) })) (if_statement "if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x12) & 0x10) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x12) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x12) & 0x10)" ( (binary_expression "*(byte *)(param_1 + 0x12) & 0x10" (pointer_expression "*(byte *)(param_1 + 0x12)" * (cast_expression "(byte *)(param_1 + 0x12)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }" { (expression_statement "*(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x50) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0x1000;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0x1000" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0x1000;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint unixSectorSize(sqlite3_file *id)\n\n{\n  if (id[0x13].pMethods != (sqlite3_io_methods *)0x0) {\n    return (int)id[0x13].pMethods;\n  }\n  if (((uint)id[4].pMethods & 0x100000) != 0) {\n    id[0x14].pMethods = (sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000);\n  }\n  id[0x13].pMethods = (sqlite3_io_methods *)0x1000;\n  return 0x1000;\n}\n\n" comment (function_definition "int unixSectorSize(sqlite3_file *id)\n\n{\n  if (id[0x13].pMethods != (sqlite3_io_methods *)0x0) {\n    return (int)id[0x13].pMethods;\n  }\n  if (((uint)id[4].pMethods & 0x100000) != 0) {\n    id[0x14].pMethods = (sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000);\n  }\n  id[0x13].pMethods = (sqlite3_io_methods *)0x1000;\n  return 0x1000;\n}" primitive_type (function_declarator "unixSectorSize(sqlite3_file *id)" identifier (parameter_list "(sqlite3_file *id)" ( (parameter_declaration "sqlite3_file *id" type_identifier (pointer_declarator "*id" * identifier)) ))) (compound_statement "{\n  if (id[0x13].pMethods != (sqlite3_io_methods *)0x0) {\n    return (int)id[0x13].pMethods;\n  }\n  if (((uint)id[4].pMethods & 0x100000) != 0) {\n    id[0x14].pMethods = (sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000);\n  }\n  id[0x13].pMethods = (sqlite3_io_methods *)0x1000;\n  return 0x1000;\n}" { (if_statement "if (id[0x13].pMethods != (sqlite3_io_methods *)0x0) {\n    return (int)id[0x13].pMethods;\n  }" if (parenthesized_expression "(id[0x13].pMethods != (sqlite3_io_methods *)0x0)" ( (binary_expression "id[0x13].pMethods != (sqlite3_io_methods *)0x0" (field_expression "id[0x13].pMethods" (subscript_expression "id[0x13]" identifier [ number_literal ]) . field_identifier) != (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (int)id[0x13].pMethods;\n  }" { (return_statement "return (int)id[0x13].pMethods;" return (cast_expression "(int)id[0x13].pMethods" ( (type_descriptor "int" primitive_type) ) (field_expression "id[0x13].pMethods" (subscript_expression "id[0x13]" identifier [ number_literal ]) . field_identifier)) ;) })) (if_statement "if (((uint)id[4].pMethods & 0x100000) != 0) {\n    id[0x14].pMethods = (sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000);\n  }" if (parenthesized_expression "(((uint)id[4].pMethods & 0x100000) != 0)" ( (binary_expression "((uint)id[4].pMethods & 0x100000) != 0" (parenthesized_expression "((uint)id[4].pMethods & 0x100000)" ( (binary_expression "(uint)id[4].pMethods & 0x100000" (cast_expression "(uint)id[4].pMethods" ( (type_descriptor "uint" type_identifier) ) (field_expression "id[4].pMethods" (subscript_expression "id[4]" identifier [ number_literal ]) . field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    id[0x14].pMethods = (sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000);\n  }" { (expression_statement "id[0x14].pMethods = (sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000);" (assignment_expression "id[0x14].pMethods = (sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000)" (field_expression "id[0x14].pMethods" (subscript_expression "id[0x14]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)((uint)id[0x14].pMethods | 0x1000)" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)id[0x14].pMethods | 0x1000)" ( (binary_expression "(uint)id[0x14].pMethods | 0x1000" (cast_expression "(uint)id[0x14].pMethods" ( (type_descriptor "uint" type_identifier) ) (field_expression "id[0x14].pMethods" (subscript_expression "id[0x14]" identifier [ number_literal ]) . field_identifier)) | number_literal) )))) ;) })) (expression_statement "id[0x13].pMethods = (sqlite3_io_methods *)0x1000;" (assignment_expression "id[0x13].pMethods = (sqlite3_io_methods *)0x1000" (field_expression "id[0x13].pMethods" (subscript_expression "id[0x13]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x1000" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return 0x1000;" return number_literal ;) })))
(translation_unit "int FUN_000358f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }\n  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }\n  *(undefined4 *)(param_1 + 0x4c) = 0x1000;\n  return 0x1000;\n}\n\n" (function_definition "int FUN_000358f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }\n  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }\n  *(undefined4 *)(param_1 + 0x4c) = 0x1000;\n  return 0x1000;\n}" primitive_type (function_declarator "FUN_000358f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }\n  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }\n  *(undefined4 *)(param_1 + 0x4c) = 0x1000;\n  return 0x1000;\n}" { (if_statement "if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) != 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(int *)(param_1 + 0x4c);\n  }" { (return_statement "return *(int *)(param_1 + 0x4c);" return (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) ;) })) (if_statement "if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x12) & 0x10) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x12) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x12) & 0x10)" ( (binary_expression "*(byte *)(param_1 + 0x12) & 0x10" (pointer_expression "*(byte *)(param_1 + 0x12)" * (cast_expression "(byte *)(param_1 + 0x12)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }" { (expression_statement "*(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x50) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0x1000;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0x1000" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0x1000;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_000358f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }\n  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }\n  *(undefined4 *)(param_1 + 0x4c) = 0x1000;\n  return 0x1000;\n}" (primitive_type "int") (function_declarator "FUN_000358f0(int param_1)" (identifier "FUN_000358f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }\n  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }\n  *(undefined4 *)(param_1 + 0x4c) = 0x1000;\n  return 0x1000;\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x4c) != 0) {\n    return *(int *)(param_1 + 0x4c);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x4c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) != 0" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(int *)(param_1 + 0x4c);\n  }" ({ "{") (return_statement "return *(int *)(param_1 + 0x4c);" (return "return") (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x12) & 0x10) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x12) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x12) & 0x10)" (( "(") (binary_expression "*(byte *)(param_1 + 0x12) & 0x10" (pointer_expression "*(byte *)(param_1 + 0x12)" (* "*") (cast_expression "(byte *)(param_1 + 0x12)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x12)" (( "(") (binary_expression "param_1 + 0x12" (identifier "param_1") (+ "+") (number_literal "0x12")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x50)" (* "*") (cast_expression "(uint *)(param_1 + 0x50)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x50) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x50)" (* "*") (cast_expression "(uint *)(param_1 + 0x50)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (| "|") (number_literal "0x1000"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0x1000;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0x1000" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "0x1000")) (; ";")) (return_statement "return 0x1000;" (return "return") (number_literal "0x1000") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *id)

{
  if (id[0x13].pMethods != (type_2 *)0x0) {
    return (int)id[0x13].pMethods;
  }
  if (((type_3)id[4].pMethods & 0x100000) != 0) {
    id[0x14].pMethods = (type_2 *)((type_3)id[0x14].pMethods | 0x1000);
  }
  id[0x13].pMethods = (type_2 *)0x1000;
  return 0x1000;
}


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

int MASKED(int param_1)

{
  if (*(int *)(param_1 + 0x4c) != 0) {
    return *(int *)(param_1 + 0x4c);
  }
  if ((*(byte *)(param_1 + 0x12) & 0x10) != 0) {
    *(uint *)(param_1 + 0x50) = *(uint *)(param_1 + 0x50) | 0x1000;
  }
  *(undefined4 *)(param_1 + 0x4c) = 0x1000;
  return 0x1000;
}

