
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void arm_free_section(arm_section * arm_sec, arm_section * arm_sec) */

void __regparm3 arm_free_section(arm_section *arm_sec,arm_section *arm_sec_1)

{
  if (arm_sec != (arm_section *)0x0) {
    free(arm_sec);
  }
  if (arm_sec_1->data != (uchar *)0x0) {
    free(arm_sec_1->data);
  }
  return;
}



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

void __regparm3 FUN_00023e30(void *param_1,undefined4 *param_2)

{
  if (param_1 != (void *)0x0) {
    free(param_1);
  }
  if ((void *)*param_2 != (void *)0x0) {
    free((void *)*param_2);
  }
  return;
}


PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00013f70
ADD EBX,0x901c7
SUB ESP,0x4
TEST EAX,EAX
JZ 0x00023e52
SUB ESP,0xc
PUSH EAX
CALL 0x000130a0
ADD ESP,0x10
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x00023e64
SUB ESP,0xc
PUSH EAX
CALL 0x000130a0
ADD ESP,0x10
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\nvoid __regparm3 FUN_00023e30(void *param_1,undefined4 *param_2)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00023e30(void *param_1,undefined4 *param_2)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023e30(void *param_1,undefined4 *param_2)" identifier (parameter_list "(void *param_1,undefined4 *param_2)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }\n  return;\n}" { (if_statement "if (param_1 != (void *)0x0) {\n    free(param_1);\n  }" if (parenthesized_expression "(param_1 != (void *)0x0)" ( (binary_expression "param_1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(param_1);\n  }" { (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (if_statement "if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }" if (parenthesized_expression "((void *)*param_2 != (void *)0x0)" ( (binary_expression "(void *)*param_2 != (void *)0x0" (cast_expression "(void *)*param_2" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free((void *)*param_2);\n  }" { (expression_statement "free((void *)*param_2);" (call_expression "free((void *)*param_2)" identifier (argument_list "((void *)*param_2)" ( (cast_expression "(void *)*param_2" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void arm_free_section(arm_section * arm_sec, arm_section * arm_sec) */\n\nvoid __regparm3 arm_free_section(arm_section *arm_sec,arm_section *arm_sec_1)\n\n{\n  if (arm_sec != (arm_section *)0x0) {\n    free(arm_sec);\n  }\n  if (arm_sec_1->data != (uchar *)0x0) {\n    free(arm_sec_1->data);\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 arm_free_section(arm_section *arm_sec,arm_section *arm_sec_1)\n\n{\n  if (arm_sec != (arm_section *)0x0) {\n    free(arm_sec);\n  }\n  if (arm_sec_1->data != (uchar *)0x0) {\n    free(arm_sec_1->data);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "arm_free_section(arm_section *arm_sec,arm_section *arm_sec_1)" identifier (parameter_list "(arm_section *arm_sec,arm_section *arm_sec_1)" ( (parameter_declaration "arm_section *arm_sec" type_identifier (pointer_declarator "*arm_sec" * identifier)) , (parameter_declaration "arm_section *arm_sec_1" type_identifier (pointer_declarator "*arm_sec_1" * identifier)) ))) (compound_statement "{\n  if (arm_sec != (arm_section *)0x0) {\n    free(arm_sec);\n  }\n  if (arm_sec_1->data != (uchar *)0x0) {\n    free(arm_sec_1->data);\n  }\n  return;\n}" { (if_statement "if (arm_sec != (arm_section *)0x0) {\n    free(arm_sec);\n  }" if (parenthesized_expression "(arm_sec != (arm_section *)0x0)" ( (binary_expression "arm_sec != (arm_section *)0x0" identifier != (cast_expression "(arm_section *)0x0" ( (type_descriptor "arm_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(arm_sec);\n  }" { (expression_statement "free(arm_sec);" (call_expression "free(arm_sec)" identifier (argument_list "(arm_sec)" ( identifier ))) ;) })) (if_statement "if (arm_sec_1->data != (uchar *)0x0) {\n    free(arm_sec_1->data);\n  }" if (parenthesized_expression "(arm_sec_1->data != (uchar *)0x0)" ( (binary_expression "arm_sec_1->data != (uchar *)0x0" (field_expression "arm_sec_1->data" identifier -> field_identifier) != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(arm_sec_1->data);\n  }" { (expression_statement "free(arm_sec_1->data);" (call_expression "free(arm_sec_1->data)" identifier (argument_list "(arm_sec_1->data)" ( (field_expression "arm_sec_1->data" identifier -> field_identifier) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00023e30(void *param_1,undefined4 *param_2)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00023e30(void *param_1,undefined4 *param_2)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023e30(void *param_1,undefined4 *param_2)" identifier (parameter_list "(void *param_1,undefined4 *param_2)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }\n  return;\n}" { (if_statement "if (param_1 != (void *)0x0) {\n    free(param_1);\n  }" if (parenthesized_expression "(param_1 != (void *)0x0)" ( (binary_expression "param_1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(param_1);\n  }" { (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (if_statement "if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }" if (parenthesized_expression "((void *)*param_2 != (void *)0x0)" ( (binary_expression "(void *)*param_2 != (void *)0x0" (cast_expression "(void *)*param_2" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free((void *)*param_2);\n  }" { (expression_statement "free((void *)*param_2);" (call_expression "free((void *)*param_2)" identifier (argument_list "((void *)*param_2)" ( (cast_expression "(void *)*param_2" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00023e30(void *param_1,undefined4 *param_2)\n\n{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00023e30(void *param_1,undefined4 *param_2)" (identifier "FUN_00023e30") (parameter_list "(void *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  if (param_1 != (void *)0x0) {\n    free(param_1);\n  }\n  if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != (void *)0x0) {\n    free(param_1);\n  }" (if "if") (parenthesized_expression "(param_1 != (void *)0x0)" (( "(") (binary_expression "param_1 != (void *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(param_1);\n  }" ({ "{") (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (if_statement "if ((void *)*param_2 != (void *)0x0) {\n    free((void *)*param_2);\n  }" (if "if") (parenthesized_expression "((void *)*param_2 != (void *)0x0)" (( "(") (binary_expression "(void *)*param_2 != (void *)0x0" (cast_expression "(void *)*param_2" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free((void *)*param_2);\n  }" ({ "{") (expression_statement "free((void *)*param_2);" (call_expression "free((void *)*param_2)" (identifier "free") (argument_list "((void *)*param_2)" (( "(") (cast_expression "(void *)*param_2" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void arm_free_section(arm_section * arm_sec, arm_section * arm_sec) */

void __regparm3 function_1(type_1 *var_1,type_1 *arm_sec_1)

{
  if (var_1 != (type_1 *)0x0) {
    var_2(var_1);
  }
  if (arm_sec_1->data != (type_2 *)0x0) {
    var_2(arm_sec_1->data);
  }
  return;
}


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

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

void __regparm3 MASKED(void *param_1,undefined4 *param_2)

{
  if (param_1 != (void *)0x0) {
    free(param_1);
  }
  if ((void *)*param_2 != (void *)0x0) {
    free((void *)*param_2);
  }
  return;
}

