// // GJMessagePopup::onBlock from 0x1002946c0 to 0x1002948fb (571 bytes) // // 1 xrefs: // > GJMessagePopup::loadFromGJMessage @ 0x10029431f // // 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:27:50 +0000 // void __fastcall GJMessagePopup::onBlock(__int64 a1) { __int64 v1; // rax __int128 *v2; // rax __int64 v3; // rax const char *CString; // r14 size_t v5; // rax size_t v6; // r15 char *v7; // r12 char *v8; // r14 size_t v9; // r13 size_t v10; // rax size_t v11; // r15 char *v12; // r12 size_t v13; // r13 __int64 *v14; // rbx char v15; // [rsp+0h] [rbp-80h] _QWORD v16[2]; // [rsp+8h] [rbp-78h] BYREF void *__p; // [rsp+18h] [rbp-68h] __int128 v18; // [rsp+20h] [rbp-60h] BYREF void *v19; // [rsp+30h] [rbp-50h] _QWORD __dst[2]; // [rsp+40h] [rbp-40h] BYREF char *__s; // [rsp+50h] [rbp-30h] v1 = *(_QWORD *)(a1 + 712); if ( (*(_BYTE *)(v1 + 376) & 1) != 0 ) { sub_10001AD30(&v18, *(const void **)(v1 + 392), *(_QWORD *)(v1 + 384)); } else { v2 = (__int128 *)(v1 + 376); v19 = *((void **)v2 + 2); v18 = *v2; } v3 = 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", v15); CString = (const char *)cocos2d::CCString::getCString(v3); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; if ( v5 >= 0x17 ) { v9 = 26; if ( (v5 | 7) != 0x17 ) v9 = (v5 | 7) + 1; v7 = (char *)operator new(v9); __s = v7; __dst[0] = v9 | 1; __dst[1] = v6; LABEL_12: memmove(v7, CString, v6); v7[v6] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_8; goto LABEL_13; } LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( v5 ) goto LABEL_12; BYTE1(__dst[0]) = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_8: v8 = __s; goto LABEL_14; } LABEL_13: v8 = (char *)__dst + 1; LABEL_14: 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); __p = v12; v16[0] = v13 | 1; v16[1] = v11; goto LABEL_21; } LOBYTE(v16[0]) = 2 * v10; v12 = (char *)v16 + 1; if ( v10 ) LABEL_21: memmove(v12, v8, v11); v12[v11] = 0; v14 = (__int64 *)FLAlertLayer::create(a1 + 680, "Confirm Block", v16, "Back", "Block", 0, 380.0, 0.0, 1.0); if ( (v16[0] & 1) != 0 ) operator delete(__p); ButtonSprite::updateBGImage(v14[77], (__int64)"GJ_button_06.png"); (*(void (__fastcall **)(__int64 *, __int64))(*v14 + 72))(v14, 1); (*(void (__fastcall **)(__int64 *))(*v14 + 1312))(v14); if ( (__dst[0] & 1) != 0 ) operator delete(__s); if ( (v18 & 1) != 0 ) operator delete(v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source