// // ThreadOptionsPopup::threadUpdateFailed from 0x10094b3c0 to 0x10094b59a (474 bytes) // // 2 xrefs: // > sub_10094B610 @ 0x10094b61c // > @ 0x100bc66f8 // // 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:38:35 +0000 // void __fastcall ThreadOptionsPopup::threadUpdateFailed(__int64 a1, int a2, int a3) { __int64 v4; // rdi __int64 v5; // rax __int64 v6; // rcx __int64 v7; // rdx const char *v8; // r14 __int64 v9; // rbx size_t v10; // rax size_t v11; // r15 char *v12; // r12 size_t v13; // r13 char *v14; // rax __int128 v15; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] __int128 __dst; // [rsp+20h] [rbp-40h] BYREF void *v18; // [rsp+30h] [rbp-30h] if ( *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL) == a2 && *(_DWORD *)(a1 + 1048) == a3 ) { *(_DWORD *)(a1 + 1048) = 0; if ( *(_QWORD *)(GameLevelManager::sharedState() + 1264) != a1 + 1016 ) { if ( (unsigned __int8)sub_1004E9BA0() ) return; LABEL_11: switch ( a3 ) { case 18: v8 = "Remove failed"; break; case 5: LABEL_16: v8 = "Leave failed"; break; case 1: if ( *(_DWORD *)(a1 + 1052) ) { v8 = "Clear failed"; break; } goto LABEL_16; default: v8 = "Action failed"; break; } v9 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272); v10 = strlen(v8); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v11 = v10; if ( v10 >= 0x17 ) { v13 = 26; if ( (v10 | 7) != 0x17 ) v13 = (v10 | 7) + 1; v12 = (char *)operator new(v13); v18 = v12; *(_QWORD *)&__dst = v13 + 1; *((_QWORD *)&__dst + 1) = v11; } else { LOBYTE(__dst) = 2 * v10; v12 = (char *)&__dst + 1; if ( !v10 ) goto LABEL_27; } memcpy(v12, v8, v11); LABEL_27: v12[v11] = 0; LOWORD(v15) = 0; v14 = TextAlertPopup::create(&__dst, 0x96u, &v15, 0.5, 0.60000002); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v9 + 464LL))(v9, v14, 1000); if ( (v15 & 1) != 0 ) operator delete(__p); if ( (__dst & 1) != 0 ) operator delete(v18); return; } v5 = GameLevelManager::sharedState(); v6 = *(_QWORD *)(a1 + 1040); v7 = v6 + 672; if ( !v6 ) v7 = 0; *(_QWORD *)(v5 + 1264) = v7; if ( !(unsigned __int8)sub_1004E9BA0() ) goto LABEL_11; } else { v4 = *(_QWORD *)(a1 + 1040); if ( v4 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1464LL))(v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source