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

reg_errcode_t free_tree(void *extra,bin_tree_t *node)

{
  re_bitset_ptr_t __ptr;
  uint uVar1;
  
  uVar1 = *(uint *)&(node->token).field_0x4 & 0x400ff;
  if (uVar1 == 6) {
    __ptr = (node->token).opr.sbcset;
    free((void *)*__ptr);
    free((void *)__ptr[1]);
    free((void *)__ptr[2]);
    free((void *)__ptr[3]);
    free(__ptr);
    return _REG_NOERROR;
  }
  if (uVar1 != 3) {
    return _REG_NOERROR;
  }
  free((node->token).opr.sbcset);
  return _REG_NOERROR;
}



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

undefined4 FUN_00093a30(undefined4 param_1,int param_2)

{
  undefined4 *__ptr;
  uint uVar1;
  
  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;
  if (uVar1 == 6) {
    __ptr = *(undefined4 **)(param_2 + 0x14);
    free((void *)*__ptr);
    free((void *)__ptr[1]);
    free((void *)__ptr[2]);
    free((void *)__ptr[3]);
    free(__ptr);
    return 0;
  }
  if (uVar1 != 3) {
    return 0;
  }
  free(*(void **)(param_2 + 0x14));
  return 0;
}


PUSH ESI
PUSH EBX
CALL 0x00016f80
ADD EBX,0x492ad
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EDX + 0x18]
AND EAX,0x400ff
CMP EAX,0x6
JZ 0x00093a80
CMP EAX,0x3
JZ 0x00093a60
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [EDX + 0x14]
CALL 0x00013e50
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV ESI,dword ptr [EDX + 0x14]
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x00013e50
POP EAX
PUSH dword ptr [ESI + 0x4]
CALL 0x00013e50
POP EDX
PUSH dword ptr [ESI + 0x8]
CALL 0x00013e50
POP ECX
PUSH dword ptr [ESI + 0xc]
CALL 0x00013e50
MOV dword ptr [ESP],ESI
CALL 0x00013e50
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00093a30(undefined4 param_1,int param_2)\n\n{\n  undefined4 *__ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }\n  if (uVar1 != 3) {\n    return 0;\n  }\n  free(*(void **)(param_2 + 0x14));\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00093a30(undefined4 param_1,int param_2)\n\n{\n  undefined4 *__ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }\n  if (uVar1 != 3) {\n    return 0;\n  }\n  free(*(void **)(param_2 + 0x14));\n  return 0;\n}" type_identifier (function_declarator "FUN_00093a30(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *__ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }\n  if (uVar1 != 3) {\n    return 0;\n  }\n  free(*(void **)(param_2 + 0x14));\n  return 0;\n}" { (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff" identifier = (binary_expression "*(uint *)(param_2 + 0x18) & 0x400ff" (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }" if (parenthesized_expression "(uVar1 == 6)" ( (binary_expression "uVar1 == 6" identifier == number_literal) )) (compound_statement "{\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }" { (expression_statement "__ptr = *(undefined4 **)(param_2 + 0x14);" (assignment_expression "__ptr = *(undefined4 **)(param_2 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x14)" * (cast_expression "(undefined4 **)(param_2 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "free((void *)*__ptr);" (call_expression "free((void *)*__ptr)" identifier (argument_list "((void *)*__ptr)" ( (cast_expression "(void *)*__ptr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier)) ))) ;) (expression_statement "free((void *)__ptr[1]);" (call_expression "free((void *)__ptr[1])" identifier (argument_list "((void *)__ptr[1])" ( (cast_expression "(void *)__ptr[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ])) ))) ;) (expression_statement "free((void *)__ptr[2]);" (call_expression "free((void *)__ptr[2])" identifier (argument_list "((void *)__ptr[2])" ( (cast_expression "(void *)__ptr[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[2]" identifier [ number_literal ])) ))) ;) (expression_statement "free((void *)__ptr[3]);" (call_expression "free((void *)__ptr[3])" identifier (argument_list "((void *)__ptr[3])" ( (cast_expression "(void *)__ptr[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[3]" identifier [ number_literal ])) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar1 != 3) {\n    return 0;\n  }" if (parenthesized_expression "(uVar1 != 3)" ( (binary_expression "uVar1 != 3" identifier != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "free(*(void **)(param_2 + 0x14));" (call_expression "free(*(void **)(param_2 + 0x14))" identifier (argument_list "(*(void **)(param_2 + 0x14))" ( (pointer_expression "*(void **)(param_2 + 0x14)" * (cast_expression "(void **)(param_2 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" 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\nreg_errcode_t free_tree(void *extra,bin_tree_t *node)\n\n{\n  re_bitset_ptr_t __ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)&(node->token).field_0x4 & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = (node->token).opr.sbcset;\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return _REG_NOERROR;\n  }\n  if (uVar1 != 3) {\n    return _REG_NOERROR;\n  }\n  free((node->token).opr.sbcset);\n  return _REG_NOERROR;\n}\n\n" comment comment (function_definition "reg_errcode_t free_tree(void *extra,bin_tree_t *node)\n\n{\n  re_bitset_ptr_t __ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)&(node->token).field_0x4 & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = (node->token).opr.sbcset;\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return _REG_NOERROR;\n  }\n  if (uVar1 != 3) {\n    return _REG_NOERROR;\n  }\n  free((node->token).opr.sbcset);\n  return _REG_NOERROR;\n}" type_identifier (function_declarator "free_tree(void *extra,bin_tree_t *node)" identifier (parameter_list "(void *extra,bin_tree_t *node)" ( (parameter_declaration "void *extra" primitive_type (pointer_declarator "*extra" * identifier)) , (parameter_declaration "bin_tree_t *node" type_identifier (pointer_declarator "*node" * identifier)) ))) (compound_statement "{\n  re_bitset_ptr_t __ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)&(node->token).field_0x4 & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = (node->token).opr.sbcset;\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return _REG_NOERROR;\n  }\n  if (uVar1 != 3) {\n    return _REG_NOERROR;\n  }\n  free((node->token).opr.sbcset);\n  return _REG_NOERROR;\n}" { (declaration "re_bitset_ptr_t __ptr;" type_identifier identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)&(node->token).field_0x4 & 0x400ff;" (assignment_expression "uVar1 = *(uint *)&(node->token).field_0x4 & 0x400ff" identifier = (binary_expression "*(uint *)&(node->token).field_0x4 & 0x400ff" (pointer_expression "*(uint *)&(node->token).field_0x4" * (cast_expression "(uint *)&(node->token).field_0x4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(node->token).field_0x4" & (field_expression "(node->token).field_0x4" (parenthesized_expression "(node->token)" ( (field_expression "node->token" identifier -> field_identifier) )) . field_identifier)))) & number_literal)) ;) (if_statement "if (uVar1 == 6) {\n    __ptr = (node->token).opr.sbcset;\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return _REG_NOERROR;\n  }" if (parenthesized_expression "(uVar1 == 6)" ( (binary_expression "uVar1 == 6" identifier == number_literal) )) (compound_statement "{\n    __ptr = (node->token).opr.sbcset;\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return _REG_NOERROR;\n  }" { (expression_statement "__ptr = (node->token).opr.sbcset;" (assignment_expression "__ptr = (node->token).opr.sbcset" identifier = (field_expression "(node->token).opr.sbcset" (field_expression "(node->token).opr" (parenthesized_expression "(node->token)" ( (field_expression "node->token" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "free((void *)*__ptr);" (call_expression "free((void *)*__ptr)" identifier (argument_list "((void *)*__ptr)" ( (cast_expression "(void *)*__ptr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier)) ))) ;) (expression_statement "free((void *)__ptr[1]);" (call_expression "free((void *)__ptr[1])" identifier (argument_list "((void *)__ptr[1])" ( (cast_expression "(void *)__ptr[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ])) ))) ;) (expression_statement "free((void *)__ptr[2]);" (call_expression "free((void *)__ptr[2])" identifier (argument_list "((void *)__ptr[2])" ( (cast_expression "(void *)__ptr[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[2]" identifier [ number_literal ])) ))) ;) (expression_statement "free((void *)__ptr[3]);" (call_expression "free((void *)__ptr[3])" identifier (argument_list "((void *)__ptr[3])" ( (cast_expression "(void *)__ptr[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[3]" identifier [ number_literal ])) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return _REG_NOERROR;" return identifier ;) })) (if_statement "if (uVar1 != 3) {\n    return _REG_NOERROR;\n  }" if (parenthesized_expression "(uVar1 != 3)" ( (binary_expression "uVar1 != 3" identifier != number_literal) )) (compound_statement "{\n    return _REG_NOERROR;\n  }" { (return_statement "return _REG_NOERROR;" return identifier ;) })) (expression_statement "free((node->token).opr.sbcset);" (call_expression "free((node->token).opr.sbcset)" identifier (argument_list "((node->token).opr.sbcset)" ( (field_expression "(node->token).opr.sbcset" (field_expression "(node->token).opr" (parenthesized_expression "(node->token)" ( (field_expression "node->token" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (return_statement "return _REG_NOERROR;" return identifier ;) })))
(translation_unit "undefined4 FUN_00093a30(undefined4 param_1,int param_2)\n\n{\n  undefined4 *__ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }\n  if (uVar1 != 3) {\n    return 0;\n  }\n  free(*(void **)(param_2 + 0x14));\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00093a30(undefined4 param_1,int param_2)\n\n{\n  undefined4 *__ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }\n  if (uVar1 != 3) {\n    return 0;\n  }\n  free(*(void **)(param_2 + 0x14));\n  return 0;\n}" type_identifier (function_declarator "FUN_00093a30(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *__ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }\n  if (uVar1 != 3) {\n    return 0;\n  }\n  free(*(void **)(param_2 + 0x14));\n  return 0;\n}" { (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff" identifier = (binary_expression "*(uint *)(param_2 + 0x18) & 0x400ff" (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }" if (parenthesized_expression "(uVar1 == 6)" ( (binary_expression "uVar1 == 6" identifier == number_literal) )) (compound_statement "{\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }" { (expression_statement "__ptr = *(undefined4 **)(param_2 + 0x14);" (assignment_expression "__ptr = *(undefined4 **)(param_2 + 0x14)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x14)" * (cast_expression "(undefined4 **)(param_2 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "free((void *)*__ptr);" (call_expression "free((void *)*__ptr)" identifier (argument_list "((void *)*__ptr)" ( (cast_expression "(void *)*__ptr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier)) ))) ;) (expression_statement "free((void *)__ptr[1]);" (call_expression "free((void *)__ptr[1])" identifier (argument_list "((void *)__ptr[1])" ( (cast_expression "(void *)__ptr[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ])) ))) ;) (expression_statement "free((void *)__ptr[2]);" (call_expression "free((void *)__ptr[2])" identifier (argument_list "((void *)__ptr[2])" ( (cast_expression "(void *)__ptr[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[2]" identifier [ number_literal ])) ))) ;) (expression_statement "free((void *)__ptr[3]);" (call_expression "free((void *)__ptr[3])" identifier (argument_list "((void *)__ptr[3])" ( (cast_expression "(void *)__ptr[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[3]" identifier [ number_literal ])) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar1 != 3) {\n    return 0;\n  }" if (parenthesized_expression "(uVar1 != 3)" ( (binary_expression "uVar1 != 3" identifier != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "free(*(void **)(param_2 + 0x14));" (call_expression "free(*(void **)(param_2 + 0x14))" identifier (argument_list "(*(void **)(param_2 + 0x14))" ( (pointer_expression "*(void **)(param_2 + 0x14)" * (cast_expression "(void **)(param_2 + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00093a30(undefined4 param_1,int param_2)\n\n{\n  undefined4 *__ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }\n  if (uVar1 != 3) {\n    return 0;\n  }\n  free(*(void **)(param_2 + 0x14));\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00093a30(undefined4 param_1,int param_2)" (identifier "FUN_00093a30") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *__ptr;\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;\n  if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }\n  if (uVar1 != 3) {\n    return 0;\n  }\n  free(*(void **)(param_2 + 0x14));\n  return 0;\n}" ({ "{") (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_2 + 0x18) & 0x400ff" (pointer_expression "*(uint *)(param_2 + 0x18)" (* "*") (cast_expression "(uint *)(param_2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0x400ff"))) (; ";")) (if_statement "if (uVar1 == 6) {\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }" (if "if") (parenthesized_expression "(uVar1 == 6)" (( "(") (binary_expression "uVar1 == 6" (identifier "uVar1") (== "==") (number_literal "6")) () ")")) (compound_statement "{\n    __ptr = *(undefined4 **)(param_2 + 0x14);\n    free((void *)*__ptr);\n    free((void *)__ptr[1]);\n    free((void *)__ptr[2]);\n    free((void *)__ptr[3]);\n    free(__ptr);\n    return 0;\n  }" ({ "{") (expression_statement "__ptr = *(undefined4 **)(param_2 + 0x14);" (assignment_expression "__ptr = *(undefined4 **)(param_2 + 0x14)" (identifier "__ptr") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "free((void *)*__ptr);" (call_expression "free((void *)*__ptr)" (identifier "free") (argument_list "((void *)*__ptr)" (( "(") (cast_expression "(void *)*__ptr" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*__ptr" (* "*") (identifier "__ptr"))) () ")"))) (; ";")) (expression_statement "free((void *)__ptr[1]);" (call_expression "free((void *)__ptr[1])" (identifier "free") (argument_list "((void *)__ptr[1])" (( "(") (cast_expression "(void *)__ptr[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]"))) () ")"))) (; ";")) (expression_statement "free((void *)__ptr[2]);" (call_expression "free((void *)__ptr[2])" (identifier "free") (argument_list "((void *)__ptr[2])" (( "(") (cast_expression "(void *)__ptr[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]"))) () ")"))) (; ";")) (expression_statement "free((void *)__ptr[3]);" (call_expression "free((void *)__ptr[3])" (identifier "free") (argument_list "((void *)__ptr[3])" (( "(") (cast_expression "(void *)__ptr[3]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[3]" (identifier "__ptr") ([ "[") (number_literal "3") (] "]"))) () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (uVar1 != 3) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(uVar1 != 3)" (( "(") (binary_expression "uVar1 != 3" (identifier "uVar1") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "free(*(void **)(param_2 + 0x14));" (call_expression "free(*(void **)(param_2 + 0x14))" (identifier "free") (argument_list "(*(void **)(param_2 + 0x14))" (( "(") (pointer_expression "*(void **)(param_2 + 0x14)" (* "*") (cast_expression "(void **)(param_2 + 0x14)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(void *extra,type_2 *node)

{
  type_3 __ptr;
  type_4 var_1;
  
  var_1 = *(type_4 *)&(node->token).field_0x4 & 0x400ff;
  if (var_1 == 6) {
    __ptr = (node->token).opr.sbcset;
    var_2((void *)*__ptr);
    var_2((void *)__ptr[1]);
    var_2((void *)__ptr[2]);
    var_2((void *)__ptr[3]);
    var_2(__ptr);
    return _REG_NOERROR;
  }
  if (var_1 != 3) {
    return _REG_NOERROR;
  }
  var_2((node->token).opr.sbcset);
  return _REG_NOERROR;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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: (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (number_literal)))))

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

undefined4 MASKED(undefined4 param_1,int param_2)

{
  undefined4 *__ptr;
  uint uVar1;
  
  uVar1 = *(uint *)(param_2 + 0x18) & 0x400ff;
  if (uVar1 == 6) {
    __ptr = *(undefined4 **)(param_2 + 0x14);
    free((void *)*__ptr);
    free((void *)__ptr[1]);
    free((void *)__ptr[2]);
    free((void *)__ptr[3]);
    free(__ptr);
    return 0;
  }
  if (uVar1 != 3) {
    return 0;
  }
  free(*(void **)(param_2 + 0x14));
  return 0;
}

