// // ProfilePage::onBlockUser from 0x1008a28c0 to 0x1008a2b30 (624 bytes) // // 1 xrefs: // > ProfilePage::setupAccountButtons @ 0x1008a1f10 // // 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:37:15 +0000 // void __fastcall ProfilePage::onBlockUser(__int64 a1, __int64 a2) { __int64 v2; // rax __int64 v3; // rax __int128 *v4; // rax const char *v5; // rdx char *v6; // rax const char *CString; // r14 size_t v8; // rax size_t v9; // r15 char *v10; // r12 char *v11; // r14 size_t v12; // r13 size_t v13; // rax size_t v14; // r15 char *v15; // r12 size_t v16; // r13 __int64 *v17; // rbx __int128 v18; // [rsp+8h] [rbp-78h] BYREF void *__p; // [rsp+18h] [rbp-68h] __int128 v20; // [rsp+20h] [rbp-60h] BYREF void *v21; // [rsp+30h] [rbp-50h] _QWORD __dst[2]; // [rsp+40h] [rbp-40h] BYREF char *__s; // [rsp+50h] [rbp-30h] v2 = GJAccountManager::sharedState(a1, a2); if ( *(_DWORD *)(v2 + 352) <= *(_DWORD *)(v2 + 356) ) { GJAccountManager::sharedState(a1, a2); sub_1000A24A0(); return; } v3 = *(_QWORD *)(a1 + 728); if ( (*(_BYTE *)(v3 + 320) & 1) != 0 ) { sub_10001AD30(&v20, *(const void **)(v3 + 336), *(_QWORD *)(v3 + 328)); if ( (v20 & 1) == 0 ) goto LABEL_4; } else { v4 = (__int128 *)(v3 + 320); v21 = *((void **)v4 + 2); v20 = *v4; if ( (v20 & 1) == 0 ) { LABEL_4: v5 = (char *)&v20 + 1; goto LABEL_8; } } v5 = (const char *)v21; LABEL_8: v6 = sub_10088E820( "Are you sure you want to block %s?\n" "%s will no longer be able to:\n" "- View your profile\n" "- Send messages\n" "- Send friend requests\n" "- Messages from this user will be removed\n" "You will leave group chats they own or group chats with only the two of you. Other shared group chats a" "re not affected.", v5, v5); CString = (const char *)cocos2d::CCString::getCString((__int64)v6); v8 = strlen(CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) { v12 = 26; if ( (v8 | 7) != 0x17 ) v12 = (v8 | 7) + 1; v10 = (char *)operator new(v12); __s = v10; __dst[0] = v12 | 1; __dst[1] = v9; LABEL_16: memmove(v10, CString, v9); v10[v9] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_12; goto LABEL_17; } LOBYTE(__dst[0]) = 2 * v8; v10 = (char *)__dst + 1; if ( v8 ) goto LABEL_16; BYTE1(__dst[0]) = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_12: v11 = __s; goto LABEL_18; } LABEL_17: v11 = (char *)__dst + 1; LABEL_18: v13 = strlen(v11); if ( v13 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v14 = v13; if ( v13 >= 0x17 ) { v16 = 26; if ( (v13 | 7) != 0x17 ) v16 = (v13 | 7) + 1; v15 = (char *)operator new(v16); __p = v15; *(_QWORD *)&v18 = v16 | 1; *((_QWORD *)&v18 + 1) = v14; } else { LOBYTE(v18) = 2 * v13; v15 = (char *)&v18 + 1; if ( !v13 ) goto LABEL_26; } memmove(v15, v11, v14); LABEL_26: v15[v14] = 0; v17 = (__int64 *)FLAlertLayer::create( (int)a1 + 664, (int)"Confirm Block", &v18, (int)"Back", (int)"Block", 0, 380.0, 0.0, 1.0); if ( (v18 & 1) != 0 ) operator delete(__p); ButtonSprite::updateBGImage(v17[77], (__int64)"GJ_button_06.png"); (*(void (__fastcall **)(__int64 *, __int64))(*v17 + 72))(v17, 3); (*(void (__fastcall **)(__int64 *))(*v17 + 1312))(v17); if ( (__dst[0] & 1) != 0 ) operator delete(__s); if ( (v20 & 1) != 0 ) operator delete(v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source