// // GameToolbox::intToShortString from 0x140069150 to 0x1400692ea (410 bytes) // // 8 xrefs: // > LevelCell::loadCustomLevelCell @ 0x1400b031c // > LevelCell::loadCustomLevelCell @ 0x1400b04ae // > LevelListCell::loadFromList @ 0x1400bf954 // > LevelListCell::loadFromList @ 0x1400bfacf // > LevelListLayer::updateStatsArt @ 0x1403057ac // > LevelListLayer::updateStatsArt @ 0x14030592f // > LevelListLayer::updateStatsArt @ 0x140305fb4 // > @ 0x1406c5e68 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=1 _QWORD *__fastcall GameToolbox::intToShortString(_QWORD *a1, int a2) { float v4; // xmm0_4 void *v5; // rax _BYTE *v6; // rax size_t v7; // r8 _OWORD v9[2]; // [rsp+20h] [rbp-248h] BYREF _BYTE v10[528]; // [rsp+40h] [rbp-228h] BYREF *(_QWORD *)&v9[0] = a1; fmt::BasicWriter::BasicWriter(v10); if ( a2 < 0 ) { a2 = -a2; *(_QWORD *)&v9[0] = &word_140533640; *((_QWORD *)&v9[0] + 1) = 0; fmt::BasicWriter::operator<<(v10, v9); } if ( a2 >= 1000 ) { v4 = (float)a2; if ( a2 >= 10000 ) { if ( a2 >= 1000000 ) { floorf(v4 / 100000.0); fmt::BasicWriter::operator<<(v10); v5 = &unk_14053363C; goto LABEL_11; } floorf(v4 / 1000.0); } else { floorf(v4 / 100.0); } fmt::BasicWriter::operator<<(v10); v5 = &unk_140533638; LABEL_11: v9[0] = (unsigned __int64)v5; fmt::BasicWriter::operator<<(v10, v9); goto LABEL_12; } fmt::BasicWriter::operator<<(v10, (unsigned int)a2); LABEL_12: v6 = (_BYTE *)fmt::BasicWriter::c_str(v10); *(_OWORD *)a1 = 0; a1[2] = 0; a1[3] = 0; v7 = -1; do ++v7; while ( v6[v7] ); sub_14003A930(a1, v6, v7); fmt::BasicWriter::~BasicWriter(v10); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source