#include "classes.h" // 008f0040 std_string * SpecialSeed::get_display_name(std_string *outName) { uint8_t *text; uint8_t *textEnd; uint8_t local_5; uint8_t ch; Manager *manager; manager = g_manager; if (*GHIDRA_CAST((GHIDRA_CAST(this) + 0x20)) == 0) { outName->_buf[0] = '\0'; outName->_buf[1] = '\0'; outName->_buf[2] = '\0'; outName->_buf[3] = '\0'; outName->_size = 0; outName->_capacity = 0xf; outName->_buf[0] = '\0'; outName->_size = 0; outName->_buf[0] = '\0'; return outName; } text = GHIDRA_CAST((GHIDRA_INT(this) + 0x10)); if (0xf < *GHIDRA_CAST((GHIDRA_CAST(this) + 0x24))) { text = *GHIDRA_CAST(text); } if (*text == 0x23) { local_5 = 0; StringTable::get_string (&g_manager->_stringTable,GHIDRA_CAST("SeedMenu"),*GHIDRA_CAST(&g_manager->_stringTable),text + 1 ,&local_5); if (local_5 == 0) { local_5 = 0; text = StringTable::get_string (&manager->_stringTable,GHIDRA_CAST("SeedMenu"),*GHIDRA_CAST(&manager->_stringTable), text + 1,&local_5); } } outName->_buf[0] = '\0'; outName->_buf[1] = '\0'; outName->_buf[2] = '\0'; outName->_buf[3] = '\0'; outName->_size = 0; outName->_capacity = 0xf; outName->_buf[0] = '\0'; textEnd = text; do { ch = *textEnd; textEnd = textEnd + 1; } while (ch != 0); (GHIDRA_CAST((outName->_buf)))->msvc::string::assign(text,GHIDRA_INT(textEnd) - GHIDRA_INT((text + 1))); return outName; }