// // LevelInfoLayer::showUpdateAlert from 0x1002b07d0 to 0x1002b08bd (237 bytes) // // 3 xrefs: // > LevelInfoLayer::onUpdate @ 0x1002ae4c4 // > LevelInfoLayer::levelUpdateFinished @ 0x1002b07b0 // > sub_1002B08E0 @ 0x1002b0927 // // 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 12:28:01 +0000 // void __fastcall LevelInfoLayer::showUpdateAlert(__int64 a1, int a2) { unsigned int v2; // esi const char *v3; // r14 size_t v4; // rax size_t v5; // rbx char *v6; // r15 size_t v7; // r12 __int64 v8; // rbx _QWORD __dst[2]; // [rsp+8h] [rbp-38h] BYREF void *__p; // [rsp+18h] [rbp-28h] v2 = a2 - 1; if ( v2 > 2 ) return; v3 = off_100B0E698[v2]; v4 = strlen(v3); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v5 = v4; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; v6 = (char *)operator new(v7); __p = v6; __dst[0] = v7 + 1; __dst[1] = v5; } else { LOBYTE(__dst[0]) = 2 * v4; v6 = (char *)__dst + 1; if ( !v4 ) goto LABEL_10; } memcpy(v6, v3, v5); LABEL_10: v6[v5] = 0; v8 = FLAlertLayer::create_1(0, "Update", __dst, "OK", 0, 300.0); if ( (__dst[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source