#include "classes.h" // 0095fd70 void Cutscene::TemporaryPart::vfunc_1() { uint8_t *extraout_EAX; uint8_t *extraout_EAX_00; uint8_t *fontPath; void *ptr; char *pcVar1; uint32_t uVar2; char *terminusPath [4]; uint32_t terminusPathSize; uint32_t terminusPathCapacity; void *redirectedPath [4]; uint32_t redirectedPathSize; uint32_t redirectedPathCapacity; char *pathText [4]; uint32_t pathTextSize; uint32_t pathTextCapacity; uint32_t local_14; void *local_10; uint8_t *puStack_c; char *local_8; Manager *manager; manager = g_manager; local_8 = GHIDRA_CAST(0xffffffff); puStack_c = &LAB_00b0c7f5; local_10 = ExceptionList; local_14 = __security_cookie ^ GHIDRA_UINT((pathText + 10)); ExceptionList = &local_10; pathText[0] = msvc::_Allocate(0x20); pathTextSize = 0x1b; pathTextCapacity = 0x1f; builtin_strncpy(pathText[0],"font/TeamMeatFont20Bold.fnt",0x1c); local_8 = GHIDRA_CAST(0x0); ModManager::TryRedirectPath (GHIDRA_CAST(&manager->_modManager),GHIDRA_CAST(redirectedPath),GHIDRA_CAST(pathText) ); (*GHIDRA_CAST((GHIDRA_CAST(&(local_8)) + 0x0))) = 1; fontPath = extraout_EAX; if (0xf < *GHIDRA_CAST((extraout_EAX + 0x14))) { fontPath = *GHIDRA_CAST(extraout_EAX); } Font::Load(GHIDRA_CAST((GHIDRA_INT(this) + 0x40)),fontPath,0); local_8 = GHIDRA_CAST(((*GHIDRA_CAST((GHIDRA_CAST(&(GHIDRA_UINT(local_8))) + 0x1))) << 8)); if (0xf < redirectedPathCapacity) { uVar2 = redirectedPathCapacity + 1; ptr = redirectedPath[0]; if (0xfff < uVar2) { ptr = *(void **)(GHIDRA_INT(redirectedPath[0]) + -4); uVar2 = redirectedPathCapacity + 0x24; if (0x1f < GHIDRA_UINT((GHIDRA_INT(redirectedPath[0]) + (-4 - GHIDRA_INT(ptr))))) goto LAB_0095fe96; } operator_delete(ptr,uVar2); } local_8 = GHIDRA_CAST(0xffffffff); redirectedPathSize = 0; redirectedPathCapacity = 0xf; redirectedPath[0] = (void *)(GHIDRA_UINT(redirectedPath[0]) & 0xffffff00); if (0xf < pathTextCapacity) { uVar2 = pathTextCapacity + 1; pcVar1 = pathText[0]; if (0xfff < uVar2) { pcVar1 = *GHIDRA_CAST((pathText[0] + -4)); uVar2 = pathTextCapacity + 0x24; if (GHIDRA_CAST(0x1f) < pathText[0] + (-4 - GHIDRA_INT(pcVar1))) { LAB_0095fe96: /* WARNING: Subroutine does not return */ _invalid_parameter_noinfo_noreturn(); } } operator_delete(pcVar1,uVar2); } manager = g_manager; terminusPath[0] = msvc::_Allocate(0x20); terminusPathSize = 0x11; terminusPathCapacity = 0x1f; builtin_strncpy(terminusPath[0],"font/terminus.fnt",0x12); local_8 = GHIDRA_CAST(0x2); ModManager::TryRedirectPath (GHIDRA_CAST(&manager->_modManager),GHIDRA_CAST(pathText),GHIDRA_CAST(terminusPath)); local_8 = GHIDRA_CAST(CONCAT31((*GHIDRA_CAST((GHIDRA_CAST(&(local_8)) + 0x1))),3)); fontPath = extraout_EAX_00; if (0xf < *GHIDRA_CAST((extraout_EAX_00 + 0x14))) { fontPath = *GHIDRA_CAST(extraout_EAX_00); } Font::Load(GHIDRA_CAST((GHIDRA_INT(this) + 0x8c)),fontPath,0); if (0xf < pathTextCapacity) { uVar2 = pathTextCapacity + 1; pcVar1 = pathText[0]; if (0xfff < uVar2) { pcVar1 = *GHIDRA_CAST((pathText[0] + -4)); uVar2 = pathTextCapacity + 0x24; if (GHIDRA_CAST(0x1f) < pathText[0] + (-4 - GHIDRA_INT(pcVar1))) goto LAB_0095ff7d; } operator_delete(pcVar1,uVar2); } pathTextSize = 0; pathTextCapacity = 0xf; pathText[0] = GHIDRA_CAST((GHIDRA_UINT(pathText[0]) & 0xffffff00)); if (0xf < terminusPathCapacity) { uVar2 = terminusPathCapacity + 1; pcVar1 = terminusPath[0]; if (0xfff < uVar2) { pcVar1 = *GHIDRA_CAST((terminusPath[0] + -4)); uVar2 = terminusPathCapacity + 0x24; if (GHIDRA_CAST(0x1f) < terminusPath[0] + (-4 - GHIDRA_INT(pcVar1))) { LAB_0095ff7d: /* WARNING: Subroutine does not return */ _invalid_parameter_noinfo_noreturn(); } } operator_delete(pcVar1,uVar2); } ExceptionList = local_10; return; }