#include "classes.h" // 0040c440 void TexturePtr::release() { char cVar1; int in_ECX; void *local_10; uint8_t *puStack_c; uint32_t uStack_8; uStack_8 = 0xffffffff; puStack_c = &LAB_00af0d10; local_10 = ExceptionList; ExceptionList = &local_10; if (*GHIDRA_CAST((in_ECX + 4)) != GHIDRA_CAST(0x0)) { cVar1 = (**(code **)(**GHIDRA_CAST((in_ECX + 4)) + 0xc)) (__security_cookie ^ GHIDRA_INT(register0x00000010) - 4U); if ((cVar1 != '\0') && (g_imageReleaseFn != (void *)0x0)) { (*g_imageReleaseFn)(); } } ExceptionList = local_10; return; }