// // GameLevelManager::claimNotificationReward from 0x100576fc0 to 0x1005772b9 (761 bytes) // // 1 xrefs: // > GJNotificationCell::onClaimReward @ 0x1002416d6 // // 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:32:17 +0000 // bool __fastcall GameLevelManager::claimNotificationReward(__int64 a1) { __int64 v1; // rbx __int64 v2; // rax const char *CString; // r14 bool isDLActive; // al __int64 v5; // rax __int64 v6; // rax const std::string::value_type *v7; // rax const char *data; // r15 size_t v9; // rax size_t v10; // r12 char *v11; // r13 size_t v12; // rbx size_t v13; // rax size_t v14; // r15 char *v15; // r12 __int64 v16; // r13 size_t v17; // rbx char v19; // [rsp+0h] [rbp-C0h] char v20; // [rsp+0h] [rbp-C0h] std::string v21; // [rsp+18h] [rbp-A8h] BYREF std::string v22; // [rsp+30h] [rbp-90h] BYREF std::string v23; // [rsp+48h] [rbp-78h] BYREF _QWORD __dst[2]; // [rsp+60h] [rbp-60h] BYREF void *v25; // [rsp+70h] [rbp-50h] __int128 v26; // [rsp+78h] [rbp-48h] BYREF void *v27; // [rsp+88h] [rbp-38h] bool v28; // [rsp+97h] [rbp-29h] v1 = a1; v2 = sub_10088E820("notifReward_%i", v19); CString = (const char *)cocos2d::CCString::getCString(v2); isDLActive = GameLevelManager::isDLActive(a1, CString); if ( !isDLActive ) { v28 = 0; GameLevelManager::addDLToActive(a1, CString); GameLevelManager::getBasePostString(&v23); v5 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v5); sub_10055EFA0(&v21); v6 = sub_10088E820("¬ificationID=%i&secret=%s&chk=%s", v20); v7 = (const std::string::value_type *)cocos2d::CCString::getCString(v6); std::string::append(&v23, v7); if ( (*(_BYTE *)&v21.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v21.__r_.__value_.__l.__data_); v22.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x48u); v22.__r_.__value_.__r.__words[0] = 73; v22.__r_.__value_.__l.__size_ = 64; strcpy(v22.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/claimGJNotificationReward.php"); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) data = v23.__r_.__value_.__l.__data_; else data = v23.__r_.__value_.__s.__data_; v9 = strlen(data); 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); v25 = v11; __dst[0] = v12 | 1; __dst[1] = v10; v1 = a1; } else { LOBYTE(__dst[0]) = 2 * v9; v11 = (char *)__dst + 1; if ( !v9 ) { LABEL_15: v11[v10] = 0; v13 = strlen(CString); if ( v13 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v14 = v13; if ( v13 >= 0x17 ) { v16 = v1; v17 = 26; if ( (v13 | 7) != 0x17 ) v17 = (v13 | 7) + 1; v15 = (char *)operator new(v17); v27 = v15; *(_QWORD *)&v26 = v17 | 1; *((_QWORD *)&v26 + 1) = v14; v1 = v16; } else { LOBYTE(v26) = 2 * v13; v15 = (char *)&v26 + 1; if ( !v13 ) { LABEL_23: v15[v14] = 0; GameLevelManager::ProcessHttpRequest(v1, &v22, (__int64)__dst, &v26, 0x6Eu); if ( (v26 & 1) != 0 ) { operator delete(v27); if ( (__dst[0] & 1) == 0 ) { LABEL_25: if ( (*(_BYTE *)&v22.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_26; goto LABEL_32; } } else if ( (__dst[0] & 1) == 0 ) { goto LABEL_25; } operator delete(v25); if ( (*(_BYTE *)&v22.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_26: if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_28: isDLActive = v28; return !isDLActive; } LABEL_27: operator delete(v23.__r_.__value_.__l.__data_); goto LABEL_28; } LABEL_32: operator delete(v22.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_28; goto LABEL_27; } } memmove(v15, CString, v14); goto LABEL_23; } } memmove(v11, data, v10); goto LABEL_15; } return !isDLActive; }
GD Web Decomp Icon

GD Web Decomp

Raw Source