// // sub_10094A810 from 0x10094a810 to 0x10094a9ae (414 bytes) // // 1 xrefs: // > ThreadOptionsPopup::init @ 0x100949d0d // // 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 // __int64 __fastcall sub_10094A810(__int64 a1, __int64 a2) { int v2; // ebx int v3; // r14d __int64 v4; // rax int v5; // ecx __int64 v6; // rax const char *v7; // rdi const char *v8; // rsi const char *CString; // r14 char *v10; // rax size_t v11; // rax size_t v12; // r15 int v13; // ebx char *v14; // r12 size_t v15; // r13 __int64 *v16; // rbx __int128 __dst; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] v2 = a1; v3 = *(_DWORD *)(*(_QWORD *)(a1 + 1032) + 200LL); v4 = GJAccountManager::sharedState(a1, a2); v5 = *(_DWORD *)(v4 + 352) - *(_DWORD *)(v4 + 356); v6 = *(_QWORD *)(a1 + 1032); v7 = "the owner"; if ( v3 == v5 ) v7 = "the new owner"; v8 = "a member"; if ( *(_DWORD *)(v6 + 208) == 1 ) v8 = v7; if ( v3 == v5 ) { if ( *(int *)(v6 + 168) < 2 ) { CString = "Leave this group chat?\nYou are the last member, so the group chat will end."; goto LABEL_11; } v10 = sub_10088E820( "Leave this group chat?\n" "Ownership will pass to the member who\n" "has been here the longest.\n" "You can only rejoin if %s invites you back.", v8); } else { v10 = sub_10088E820("Leave this group chat?\nYou can only rejoin if %s invites you back.", v8); } CString = (const char *)cocos2d::CCString::getCString((__int64)v10); LABEL_11: v11 = strlen(CString); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v12 = v11; v13 = v2 + 1024; if ( v11 >= 0x17 ) { v15 = 26; if ( (v11 | 7) != 0x17 ) v15 = (v11 | 7) + 1; v14 = (char *)operator new(v15); __p = v14; *(_QWORD *)&__dst = v15 + 1; *((_QWORD *)&__dst + 1) = v12; goto LABEL_18; } LOBYTE(__dst) = 2 * v11; v14 = (char *)&__dst + 1; if ( v11 ) LABEL_18: memmove(v14, CString, v12); v14[v12] = 0; v16 = (__int64 *)FLAlertLayer::create( v13, (int)"Leave Group Chat", &__dst, (int)"Back", (int)"Leave", 0, 380.0, 0.0, 1.0); if ( (__dst & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64 *, __int64))(*v16 + 72))(v16, 3); ButtonSprite::updateBGImage(v16[77], (__int64)"GJ_button_06.png"); return (*(__int64 (__fastcall **)(__int64 *))(*v16 + 1312))(v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source