// // FriendRequestPopup::onBlock from 0x1002925c0 to 0x1002927d4 (532 bytes) // // 1 xrefs: // > FriendRequestPopup::loadFromGJFriendRequest @ 0x100292184 // // 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 FriendRequestPopup::onBlock(__int64 a1, double a2) { __int64 v2; // rax const char *CString; // r14 size_t v4; // rax size_t v5; // r15 char *v6; // r12 char *v7; // r14 size_t v8; // r13 size_t v9; // rax size_t v10; // r15 char *v11; // r12 size_t v12; // r13 __int64 *v13; // rbx std::string v14; // [rsp+0h] [rbp-70h] BYREF _QWORD v15[2]; // [rsp+18h] [rbp-58h] BYREF void *__p; // [rsp+28h] [rbp-48h] _QWORD __dst[2]; // [rsp+30h] [rbp-40h] BYREF char *__s; // [rsp+40h] [rbp-30h] GameLevelManager::sharedState(a2); GameLevelManager::tryGetUsername(&v14); v2 = sub_10088E820( "Are you sure you want to block %s?\n" "They will no longer be able to:\n" "-View your profile.\n" "-Send you a friend request.\n" "-Send you messages, and all older messages from them will be deleted.", *(_BYTE *)&v14.__r_.__value_.__l.0); CString = (const char *)cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v5 = v4; if ( v4 >= 0x17 ) { v8 = 26; if ( (v4 | 7) != 0x17 ) v8 = (v4 | 7) + 1; v6 = (char *)operator new(v8); __s = v6; __dst[0] = v8 | 1; __dst[1] = v5; LABEL_9: memmove(v6, CString, v5); v6[v5] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_5; goto LABEL_10; } LOBYTE(__dst[0]) = 2 * v4; v6 = (char *)__dst + 1; if ( v4 ) goto LABEL_9; BYTE1(__dst[0]) = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_5: v7 = __s; goto LABEL_11; } LABEL_10: v7 = (char *)__dst + 1; LABEL_11: v9 = strlen(v7); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v10 = v9; if ( v9 >= 0x17 ) { v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; v11 = (char *)operator new(v12); __p = v11; v15[0] = v12 | 1; v15[1] = v10; goto LABEL_18; } LOBYTE(v15[0]) = 2 * v9; v11 = (char *)v15 + 1; if ( v9 ) LABEL_18: memmove(v11, v7, v10); v11[v10] = 0; v13 = (__int64 *)FLAlertLayer::create(a1 + 680, "Confirm Block", v15, "Back", "Block", 0, 380.0, 0.0, 1.0); if ( (v15[0] & 1) != 0 ) operator delete(__p); ButtonSprite::updateBGImage(v13[77], (__int64)"GJ_button_06.png"); (*(void (__fastcall **)(__int64 *, __int64))(*v13 + 72))(v13, 1); (*(void (__fastcall **)(__int64 *))(*v13 + 1312))(v13); if ( (__dst[0] & 1) != 0 ) operator delete(__s); if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v14.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source