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

void * DestroyExceptionElement(void *exception)

{
  char *pcVar1;
  
  if (*(char **)((int)exception + 8) != (char *)0x0) {
    pcVar1 = DestroyString(*(char **)((int)exception + 8));
    *(char **)((int)exception + 8) = pcVar1;
  }
  if (*(char **)((int)exception + 0xc) != (char *)0x0) {
    pcVar1 = DestroyString(*(char **)((int)exception + 0xc));
    *(char **)((int)exception + 0xc) = pcVar1;
  }
  RelinquishMagickMemory(exception);
  return (void *)0x0;
}



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

undefined4 FUN_000bec90(int param_1)

{
  undefined4 uVar1;
  
  if (*(int *)(param_1 + 8) != 0) {
    uVar1 = DestroyString(*(int *)(param_1 + 8));
    *(undefined4 *)(param_1 + 8) = uVar1;
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    uVar1 = DestroyString(*(int *)(param_1 + 0xc));
    *(undefined4 *)(param_1 + 0xc) = uVar1;
  }
  RelinquishMagickMemory(param_1);
  return 0;
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x31a369
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x000becba
SUB ESP,0xc
PUSH EAX
CALL 0x00032950
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x000becd0
SUB ESP,0xc
PUSH EAX
CALL 0x00032950
ADD ESP,0x10
MOV dword ptr [ESI + 0xc],EAX
SUB ESP,0xc
PUSH ESI
CALL 0x00033ac8
ADD ESP,0x14
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000bec90(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_000bec90(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" type_identifier (function_declarator "FUN_000bec90(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" { (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 8));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 8))" identifier = (call_expression "DestroyString(*(int *)(param_1 + 8))" identifier (argument_list "(*(int *)(param_1 + 8))" ( (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }" { (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 0xc));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 0xc))" identifier = (call_expression "DestroyString(*(int *)(param_1 + 0xc))" identifier (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar1" (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) )))) = identifier) ;) })) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (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\nvoid * DestroyExceptionElement(void *exception)\n\n{\n  char *pcVar1;\n  \n  if (*(char **)((int)exception + 8) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((int)exception + 8));\n    *(char **)((int)exception + 8) = pcVar1;\n  }\n  if (*(char **)((int)exception + 0xc) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((int)exception + 0xc));\n    *(char **)((int)exception + 0xc) = pcVar1;\n  }\n  RelinquishMagickMemory(exception);\n  return (void *)0x0;\n}\n\n" comment comment (function_definition "void * DestroyExceptionElement(void *exception)\n\n{\n  char *pcVar1;\n  \n  if (*(char **)((int)exception + 8) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((int)exception + 8));\n    *(char **)((int)exception + 8) = pcVar1;\n  }\n  if (*(char **)((int)exception + 0xc) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((int)exception + 0xc));\n    *(char **)((int)exception + 0xc) = pcVar1;\n  }\n  RelinquishMagickMemory(exception);\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* DestroyExceptionElement(void *exception)" * (function_declarator "DestroyExceptionElement(void *exception)" identifier (parameter_list "(void *exception)" ( (parameter_declaration "void *exception" primitive_type (pointer_declarator "*exception" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (*(char **)((int)exception + 8) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((int)exception + 8));\n    *(char **)((int)exception + 8) = pcVar1;\n  }\n  if (*(char **)((int)exception + 0xc) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((int)exception + 0xc));\n    *(char **)((int)exception + 0xc) = pcVar1;\n  }\n  RelinquishMagickMemory(exception);\n  return (void *)0x0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (*(char **)((int)exception + 8) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((int)exception + 8));\n    *(char **)((int)exception + 8) = pcVar1;\n  }" if (parenthesized_expression "(*(char **)((int)exception + 8) != (char *)0x0)" ( (binary_expression "*(char **)((int)exception + 8) != (char *)0x0" (pointer_expression "*(char **)((int)exception + 8)" * (cast_expression "(char **)((int)exception + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)exception + 8)" ( (binary_expression "(int)exception + 8" (cast_expression "(int)exception" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = DestroyString(*(char **)((int)exception + 8));\n    *(char **)((int)exception + 8) = pcVar1;\n  }" { (expression_statement "pcVar1 = DestroyString(*(char **)((int)exception + 8));" (assignment_expression "pcVar1 = DestroyString(*(char **)((int)exception + 8))" identifier = (call_expression "DestroyString(*(char **)((int)exception + 8))" identifier (argument_list "(*(char **)((int)exception + 8))" ( (pointer_expression "*(char **)((int)exception + 8)" * (cast_expression "(char **)((int)exception + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)exception + 8)" ( (binary_expression "(int)exception + 8" (cast_expression "(int)exception" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "*(char **)((int)exception + 8) = pcVar1;" (assignment_expression "*(char **)((int)exception + 8) = pcVar1" (pointer_expression "*(char **)((int)exception + 8)" * (cast_expression "(char **)((int)exception + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)exception + 8)" ( (binary_expression "(int)exception + 8" (cast_expression "(int)exception" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) })) (if_statement "if (*(char **)((int)exception + 0xc) != (char *)0x0) {\n    pcVar1 = DestroyString(*(char **)((int)exception + 0xc));\n    *(char **)((int)exception + 0xc) = pcVar1;\n  }" if (parenthesized_expression "(*(char **)((int)exception + 0xc) != (char *)0x0)" ( (binary_expression "*(char **)((int)exception + 0xc) != (char *)0x0" (pointer_expression "*(char **)((int)exception + 0xc)" * (cast_expression "(char **)((int)exception + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)exception + 0xc)" ( (binary_expression "(int)exception + 0xc" (cast_expression "(int)exception" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = DestroyString(*(char **)((int)exception + 0xc));\n    *(char **)((int)exception + 0xc) = pcVar1;\n  }" { (expression_statement "pcVar1 = DestroyString(*(char **)((int)exception + 0xc));" (assignment_expression "pcVar1 = DestroyString(*(char **)((int)exception + 0xc))" identifier = (call_expression "DestroyString(*(char **)((int)exception + 0xc))" identifier (argument_list "(*(char **)((int)exception + 0xc))" ( (pointer_expression "*(char **)((int)exception + 0xc)" * (cast_expression "(char **)((int)exception + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)exception + 0xc)" ( (binary_expression "(int)exception + 0xc" (cast_expression "(int)exception" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "*(char **)((int)exception + 0xc) = pcVar1;" (assignment_expression "*(char **)((int)exception + 0xc) = pcVar1" (pointer_expression "*(char **)((int)exception + 0xc)" * (cast_expression "(char **)((int)exception + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)exception + 0xc)" ( (binary_expression "(int)exception + 0xc" (cast_expression "(int)exception" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) })) (expression_statement "RelinquishMagickMemory(exception);" (call_expression "RelinquishMagickMemory(exception)" identifier (argument_list "(exception)" ( identifier ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_000bec90(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000bec90(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" type_identifier (function_declarator "FUN_000bec90(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" { (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 8));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 8))" identifier = (call_expression "DestroyString(*(int *)(param_1 + 8))" identifier (argument_list "(*(int *)(param_1 + 8))" ( (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }" { (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 0xc));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 0xc))" identifier = (call_expression "DestroyString(*(int *)(param_1 + 0xc))" identifier (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar1" (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) )))) = identifier) ;) })) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (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 { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000bec90(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000bec90(int param_1)" (identifier "FUN_000bec90") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }\n  RelinquishMagickMemory(param_1);\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 8) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 8));\n    *(undefined4 *)(param_1 + 8) = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 8));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 8))" (identifier "uVar1") (= "=") (call_expression "DestroyString(*(int *)(param_1 + 8))" (identifier "DestroyString") (argument_list "(*(int *)(param_1 + 8))" (( "(") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = DestroyString(*(int *)(param_1 + 0xc));\n    *(undefined4 *)(param_1 + 0xc) = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = DestroyString(*(int *)(param_1 + 0xc));" (assignment_expression "uVar1 = DestroyString(*(int *)(param_1 + 0xc))" (identifier "uVar1") (= "=") (call_expression "DestroyString(*(int *)(param_1 + 0xc))" (identifier "DestroyString") (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = uVar1" (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")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" (identifier "RelinquishMagickMemory") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (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 */

void * function_1(void *exception)

{
  char *pcVar1;
  
  if (*(char **)((int)exception + 8) != (char *)0x0) {
    pcVar1 = var_1(*(char **)((int)exception + 8));
    *(char **)((int)exception + 8) = pcVar1;
  }
  if (*(char **)((int)exception + 0xc) != (char *)0x0) {
    pcVar1 = var_1(*(char **)((int)exception + 0xc));
    *(char **)((int)exception + 0xc) = pcVar1;
  }
  var_2(exception);
  return (void *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))))))) (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: (identifier))))) (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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))))))) (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: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))))

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

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  if (*(int *)(param_1 + 8) != 0) {
    uVar1 = DestroyString(*(int *)(param_1 + 8));
    *(undefined4 *)(param_1 + 8) = uVar1;
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    uVar1 = DestroyString(*(int *)(param_1 + 0xc));
    *(undefined4 *)(param_1 + 0xc) = uVar1;
  }
  RelinquishMagickMemory(param_1);
  return 0;
}

