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

void freea(void *p)

{
  if (((uint)p & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  if (((uint)p & 8) == 0) {
    return;
  }
  free((void *)((int)p - (uint)*(byte *)((int)p + -1)));
  return;
}



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

void FUN_000214e0(uint param_1)

{
  if ((param_1 & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  if ((param_1 & 8) == 0) {
    return;
  }
  free((void *)(param_1 - *(byte *)(param_1 - 1)));
  return;
}


PUSH EBX
CALL 0x00012890
ADD EBX,0xab1a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST AL,0x7
JNZ 0x00012602
TEST AL,0x8
JNZ 0x00021508
ADD ESP,0x8
POP EBX
RET
MOVZX EDX,byte ptr [EAX + -0x1]
SUB ESP,0xc
SUB EAX,EDX
PUSH EAX
CALL 0x000120d0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000214e0(uint param_1)\n\n{\n  if ((param_1 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  if ((param_1 & 8) == 0) {\n    return;\n  }\n  free((void *)(param_1 - *(byte *)(param_1 - 1)));\n  return;\n}\n\n" comment (function_definition "void FUN_000214e0(uint param_1)\n\n{\n  if ((param_1 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  if ((param_1 & 8) == 0) {\n    return;\n  }\n  free((void *)(param_1 - *(byte *)(param_1 - 1)));\n  return;\n}" primitive_type (function_declarator "FUN_000214e0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  if ((param_1 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  if ((param_1 & 8) == 0) {\n    return;\n  }\n  free((void *)(param_1 - *(byte *)(param_1 - 1)));\n  return;\n}" { (if_statement "if ((param_1 & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "((param_1 & 7) != 0)" ( (binary_expression "(param_1 & 7) != 0" (parenthesized_expression "(param_1 & 7)" ( (binary_expression "param_1 & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((param_1 & 8) == 0) {\n    return;\n  }" if (parenthesized_expression "((param_1 & 8) == 0)" ( (binary_expression "(param_1 & 8) == 0" (parenthesized_expression "(param_1 & 8)" ( (binary_expression "param_1 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "free((void *)(param_1 - *(byte *)(param_1 - 1)));" (call_expression "free((void *)(param_1 - *(byte *)(param_1 - 1)))" identifier (argument_list "((void *)(param_1 - *(byte *)(param_1 - 1)))" ( (cast_expression "(void *)(param_1 - *(byte *)(param_1 - 1))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 - *(byte *)(param_1 - 1))" ( (binary_expression "param_1 - *(byte *)(param_1 - 1)" identifier - (pointer_expression "*(byte *)(param_1 - 1)" * (cast_expression "(byte *)(param_1 - 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 - 1)" ( (binary_expression "param_1 - 1" identifier - number_literal) ))))) ))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid freea(void *p)\n\n{\n  if (((uint)p & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  if (((uint)p & 8) == 0) {\n    return;\n  }\n  free((void *)((int)p - (uint)*(byte *)((int)p + -1)));\n  return;\n}\n\n" comment comment (function_definition "void freea(void *p)\n\n{\n  if (((uint)p & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  if (((uint)p & 8) == 0) {\n    return;\n  }\n  free((void *)((int)p - (uint)*(byte *)((int)p + -1)));\n  return;\n}" primitive_type (function_declarator "freea(void *p)" identifier (parameter_list "(void *p)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  if (((uint)p & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  if (((uint)p & 8) == 0) {\n    return;\n  }\n  free((void *)((int)p - (uint)*(byte *)((int)p + -1)));\n  return;\n}" { (if_statement "if (((uint)p & 7) != 0) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(((uint)p & 7) != 0)" ( (binary_expression "((uint)p & 7) != 0" (parenthesized_expression "((uint)p & 7)" ( (binary_expression "(uint)p & 7" (cast_expression "(uint)p" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (((uint)p & 8) == 0) {\n    return;\n  }" if (parenthesized_expression "(((uint)p & 8) == 0)" ( (binary_expression "((uint)p & 8) == 0" (parenthesized_expression "((uint)p & 8)" ( (binary_expression "(uint)p & 8" (cast_expression "(uint)p" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "free((void *)((int)p - (uint)*(byte *)((int)p + -1)));" (call_expression "free((void *)((int)p - (uint)*(byte *)((int)p + -1)))" identifier (argument_list "((void *)((int)p - (uint)*(byte *)((int)p + -1)))" ( (cast_expression "(void *)((int)p - (uint)*(byte *)((int)p + -1))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p - (uint)*(byte *)((int)p + -1))" ( (binary_expression "(int)p - (uint)*(byte *)((int)p + -1)" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) - (binary_expression "(uint)*(byte *)((int)p + -1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)p + -1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + -1)" ( (binary_expression "(int)p + -1" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000214e0(uint param_1)\n\n{\n  if ((param_1 & 7) != 0) {\n                    \n    abort();\n  }\n  if ((param_1 & 8) == 0) {\n    return;\n  }\n  free((void *)(param_1 - *(byte *)(param_1 - 1)));\n  return;\n}\n\n" (function_definition "void FUN_000214e0(uint param_1)\n\n{\n  if ((param_1 & 7) != 0) {\n                    \n    abort();\n  }\n  if ((param_1 & 8) == 0) {\n    return;\n  }\n  free((void *)(param_1 - *(byte *)(param_1 - 1)));\n  return;\n}" primitive_type (function_declarator "FUN_000214e0(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  if ((param_1 & 7) != 0) {\n                    \n    abort();\n  }\n  if ((param_1 & 8) == 0) {\n    return;\n  }\n  free((void *)(param_1 - *(byte *)(param_1 - 1)));\n  return;\n}" { (if_statement "if ((param_1 & 7) != 0) {\n                    \n    abort();\n  }" if (parenthesized_expression "((param_1 & 7) != 0)" ( (binary_expression "(param_1 & 7) != 0" (parenthesized_expression "(param_1 & 7)" ( (binary_expression "param_1 & 7" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n                    \n    abort();\n  }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if ((param_1 & 8) == 0) {\n    return;\n  }" if (parenthesized_expression "((param_1 & 8) == 0)" ( (binary_expression "(param_1 & 8) == 0" (parenthesized_expression "(param_1 & 8)" ( (binary_expression "param_1 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "free((void *)(param_1 - *(byte *)(param_1 - 1)));" (call_expression "free((void *)(param_1 - *(byte *)(param_1 - 1)))" identifier (argument_list "((void *)(param_1 - *(byte *)(param_1 - 1)))" ( (cast_expression "(void *)(param_1 - *(byte *)(param_1 - 1))" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 - *(byte *)(param_1 - 1))" ( (binary_expression "param_1 - *(byte *)(param_1 - 1)" identifier - (pointer_expression "*(byte *)(param_1 - 1)" * (cast_expression "(byte *)(param_1 - 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 - 1)" ( (binary_expression "param_1 - 1" identifier - number_literal) ))))) ))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))))) ))) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000214e0(uint param_1)\n\n{\n  if ((param_1 & 7) != 0) {\n                    \n    abort();\n  }\n  if ((param_1 & 8) == 0) {\n    return;\n  }\n  free((void *)(param_1 - *(byte *)(param_1 - 1)));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000214e0(uint param_1)" (identifier "FUN_000214e0") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  if ((param_1 & 7) != 0) {\n                    \n    abort();\n  }\n  if ((param_1 & 8) == 0) {\n    return;\n  }\n  free((void *)(param_1 - *(byte *)(param_1 - 1)));\n  return;\n}" ({ "{") (if_statement "if ((param_1 & 7) != 0) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "((param_1 & 7) != 0)" (( "(") (binary_expression "(param_1 & 7) != 0" (parenthesized_expression "(param_1 & 7)" (( "(") (binary_expression "param_1 & 7" (identifier "param_1") (& "&") (number_literal "7")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    abort();\n  }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if ((param_1 & 8) == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((param_1 & 8) == 0)" (( "(") (binary_expression "(param_1 & 8) == 0" (parenthesized_expression "(param_1 & 8)" (( "(") (binary_expression "param_1 & 8" (identifier "param_1") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "free((void *)(param_1 - *(byte *)(param_1 - 1)));" (call_expression "free((void *)(param_1 - *(byte *)(param_1 - 1)))" (identifier "free") (argument_list "((void *)(param_1 - *(byte *)(param_1 - 1)))" (( "(") (cast_expression "(void *)(param_1 - *(byte *)(param_1 - 1))" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 - *(byte *)(param_1 - 1))" (( "(") (binary_expression "param_1 - *(byte *)(param_1 - 1)" (identifier "param_1") (- "-") (pointer_expression "*(byte *)(param_1 - 1)" (* "*") (cast_expression "(byte *)(param_1 - 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 - 1)" (( "(") (binary_expression "param_1 - 1" (identifier "param_1") (- "-") (number_literal "1")) () ")"))))) () ")"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void *p)

{
  if (((type_1)p & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    var_1();
  }
  if (((type_1)p & 8) == 0) {
    return;
  }
  var_2((void *)((int)p - (type_1)*(type_2 *)((int)p + -1)));
  return;
}


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

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

void MASKED(uint param_1)

{
  if ((param_1 & 7) != 0) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  if ((param_1 & 8) == 0) {
    return;
  }
  free((void *)(param_1 - *(byte *)(param_1 - 1)));
  return;
}

