//
// StartPosObject::getDisplayName from 0x1406535b0 to 0x1406536a5 (245 bytes)
//
// 4 xrefs:
// > PauseLayer::onChangeStartpos @ 0x1404d946d
// > StartPosBrowser::setupList @ 0x1404dbf39
// > UILayer::handleAction @ 0x140672af9
// > ??> @ 0x140931574
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:35:44 +0000
//
__int64 __fastcall StartPosObject::getDisplayName(__int64 a1, __int64 a2)
{
char v2; // al
__int64 v4; // rdx
bool v6; // di
_BYTE v8[16]; // [rsp+30h] [rbp-38h] BYREF
__int64 v9; // [rsp+40h] [rbp-28h]
v2 = 0;
v4 = *(_QWORD *)(a1 + 1856);
v6 = false;
if ( v4 )
{
sub_14003F4F0((__int64)v8, v4 + 488);
v2 = 5;
if ( v9 )
v6 = true;
}
if ( (v2 & 1) != 0 )
sub_14003D310((__int64)v8);
if ( v6 )
{
sub_14003F4F0((__int64)v8, *(_QWORD *)(a1 + 1856) + 488LL);
LevelTools::base64DecodeString(a2, (__int64)v8);
}
else
{
*(_OWORD *)a2 = 0;
*(_QWORD *)(a2 + 16) = 7;
*(_QWORD *)(a2 + 24) = 15;
*(_DWORD *)a2 = 1634627157;
*(_WORD *)(a2 + 4) = 25965;
*(_WORD *)(a2 + 6) = 100;
}
return a2;
}