// // GameLevelManager::getGJChallenges from 0x100580570 to 0x10058093d (973 bytes) // // 3 xrefs: // > ChallengesPage::init @ 0x10038737e // > ChallengesPage::updateTimers @ 0x100387733 // > ChallengesPage::tryGetChallenges @ 0x100387e97 // // 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:20 +0000 // bool __fastcall GameLevelManager::getGJChallenges(__int64 a1) { bool isDLActive; // al __int64 v2; // rax const char *CString; // r14 size_t v4; // rax std::string::size_type v5; // r15 char *data; // r12 size_t v7; // r13 __int64 v8; // rax __int64 v9; // rax const std::string::value_type *v10; // rax const char *v11; // r14 size_t v12; // rax size_t v13; // r15 char *v14; // r12 size_t v15; // r13 char v17; // [rsp+0h] [rbp-100h] char v18; // [rsp+0h] [rbp-100h] std::string v19; // [rsp+10h] [rbp-F0h] BYREF __int128 v20; // [rsp+28h] [rbp-D8h] BYREF void *__p; // [rsp+38h] [rbp-C8h] char v22; // [rsp+40h] [rbp-C0h] BYREF void *v23; // [rsp+50h] [rbp-B0h] std::string v24; // [rsp+58h] [rbp-A8h] BYREF __int128 v25; // [rsp+70h] [rbp-90h] BYREF void *v26; // [rsp+80h] [rbp-80h] std::string v27; // [rsp+88h] [rbp-78h] BYREF std::string __dst; // [rsp+A0h] [rbp-60h] BYREF _QWORD v29[2]; // [rsp+B8h] [rbp-48h] BYREF void *v30; // [rsp+C8h] [rbp-38h] bool v31; // [rsp+D7h] [rbp-29h] isDLActive = GameLevelManager::isDLActive(a1, "get_chal"); if ( !isDLActive ) { v31 = 0; GameLevelManager::addDLToActive(a1, "get_chal"); GameLevelManager::getBasePostString(&v27); GameManager::sharedState(); v2 = sub_10088E820("%i", v17); CString = (const char *)cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v5 = v4; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; data = (char *)operator new(v7); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v7 | 1; __dst.__r_.__value_.__l.__size_ = v5; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v4); data = __dst.__r_.__value_.__s.__data_; if ( !v4 ) { LABEL_10: data[v5] = 0; strcpy((char *)&v20, "\n19847"); cocos2d::ZipUtils::base64EncodeEnc(&v19, &__dst, &v20); if ( (v20 & 1) != 0 ) operator delete(__p); v8 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v8); sub_10051B980(&v22, 5); v9 = sub_10088E820("&world=%i&gdl=%i&secret=%s&chk=%s%s", v18); v10 = (const std::string::value_type *)cocos2d::CCString::getCString(v9); std::string::append(&v27, v10); if ( (v22 & 1) != 0 ) operator delete(v23); v24.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v24.__r_.__value_.__r.__words[0] = 57; v24.__r_.__value_.__l.__size_ = 54; strcpy(v24.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/getGJChallenges.php"); if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) != 0 ) v11 = v27.__r_.__value_.__l.__data_; else v11 = v27.__r_.__value_.__s.__data_; v12 = strlen(v11); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v13 = v12; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; v14 = (char *)operator new(v15); v30 = v14; v29[0] = v15 | 1; v29[1] = v13; } else { LOBYTE(v29[0]) = 2 * v12; v14 = (char *)v29 + 1; if ( !v12 ) { LABEL_25: v14[v13] = 0; LOBYTE(v25) = 16; strcpy((char *)&v25 + 1, "get_chal"); GameLevelManager::ProcessHttpRequest(a1, &v24, (__int64)v29, &v25, 0x35u); if ( (v25 & 1) != 0 ) { operator delete(v26); if ( (v29[0] & 1) == 0 ) { LABEL_27: if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_28; goto LABEL_36; } } else if ( (v29[0] & 1) == 0 ) { goto LABEL_27; } operator delete(v30); if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_28: if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_29; goto LABEL_37; } LABEL_36: operator delete(v24.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_29: if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_30; goto LABEL_38; } LABEL_37: operator delete(v19.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_30: if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_32: isDLActive = v31; return !isDLActive; } LABEL_31: operator delete(v27.__r_.__value_.__l.__data_); goto LABEL_32; } LABEL_38: operator delete(__dst.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_32; goto LABEL_31; } } memmove(v14, v11, v13); goto LABEL_25; } } memmove(data, CString, v5); goto LABEL_10; } return !isDLActive; }
GD Web Decomp Icon

GD Web Decomp

Raw Source