// // GameLevelManager::getTopArtists from 0x100566bd0 to 0x100566eeb (795 bytes) // // 2 xrefs: // > TopArtistsLayer::init @ 0x1002fb975 // > TopArtistsLayer::loadPage @ 0x1002fc687 // // 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:11 +0000 // void __fastcall GameLevelManager::getTopArtists(__int64 a1, __int64 a2, int a3) { __int64 v4; // rax const char *CString; // r13 size_t v6; // rax size_t v7; // r12 char *v8; // r14 size_t v9; // rbx char v10; // r12 const char *v11; // r14 __int64 v12; // r13 __int64 v13; // rax __int64 v14; // rax const std::string::value_type *v15; // rax const char *data; // r14 size_t v17; // rax size_t v18; // r15 char *v19; // r12 size_t v20; // r13 char v21; // [rsp+0h] [rbp-C0h] char v22; // [rsp+0h] [rbp-C0h] std::string v23; // [rsp+8h] [rbp-B8h] BYREF __int128 v24; // [rsp+20h] [rbp-A0h] BYREF void *v25; // [rsp+30h] [rbp-90h] std::string v26; // [rsp+40h] [rbp-80h] BYREF _QWORD v27[2]; // [rsp+58h] [rbp-68h] BYREF void *v28; // [rsp+68h] [rbp-58h] int v29; // [rsp+74h] [rbp-4Ch] __int64 v30; // [rsp+78h] [rbp-48h] __int128 __dst; // [rsp+80h] [rbp-40h] BYREF void *__p; // [rsp+90h] [rbp-30h] v30 = a1; v4 = sub_10088E820("topArtists_%i", v21); CString = (const char *)cocos2d::CCString::getCString(v4); v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v7 = v6; v29 = a3; if ( v6 >= 0x17 ) { v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); __p = v8; *(_QWORD *)&__dst = v9 + 1; *((_QWORD *)&__dst + 1) = v7; goto LABEL_8; } LOBYTE(__dst) = 2 * v6; v8 = (char *)&__dst + 1; if ( v6 ) LABEL_8: memmove(v8, CString, v7); v8[v7] = 0; v10 = __dst & 1; if ( (__dst & 1) != 0 ) v11 = (const char *)__p; else v11 = (char *)&__dst + 1; v12 = v30; if ( GameLevelManager::isDLActive(v30, v11) ) goto LABEL_32; GameLevelManager::addDLToActive(v30, v11); GameLevelManager::getBasePostString(&v26); v13 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v13); v14 = sub_10088E820("&page=%i&secret=%s&total=%i", v22); v15 = (const std::string::value_type *)cocos2d::CCString::getCString(v14); std::string::append(&v26, v15); v23.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v23.__r_.__value_.__r.__words[0] = 57; v23.__r_.__value_.__l.__size_ = 54; strcpy(v23.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/getGJTopArtists.php"); if ( (*(_BYTE *)&v26.__r_.__value_.__s.0 & 1) != 0 ) data = v26.__r_.__value_.__l.__data_; else data = v26.__r_.__value_.__s.__data_; v17 = strlen(data); if ( v17 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v18 = v17; if ( v17 >= 0x17 ) { v20 = 26; if ( (v17 | 7) != 0x17 ) v20 = (v17 | 7) + 1; v19 = (char *)operator new(v20); v28 = v19; v27[0] = v20 | 1; v27[1] = v18; v12 = v30; goto LABEL_23; } LOBYTE(v27[0]) = 2 * v17; v19 = (char *)v27 + 1; if ( v17 ) LABEL_23: memmove(v19, data, v18); v19[v18] = 0; v10 = __dst & 1; if ( (__dst & 1) != 0 ) { sub_10001AD30(&v24, __p, *((unsigned __int64 *)&__dst + 1)); } else { v25 = __p; v24 = __dst; } GameLevelManager::ProcessHttpRequest(v12, &v23, (__int64)v27, &v24, 0x3Bu); if ( (v24 & 1) == 0 ) { if ( (v27[0] & 1) == 0 ) goto LABEL_29; LABEL_36: operator delete(v28); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_30: if ( (*(_BYTE *)&v26.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_32; goto LABEL_31; } goto LABEL_37; } operator delete(v25); if ( (v27[0] & 1) != 0 ) goto LABEL_36; LABEL_29: if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_30; LABEL_37: operator delete(v23.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v26.__r_.__value_.__s.0 & 1) != 0 ) LABEL_31: operator delete(v26.__r_.__value_.__l.__data_); LABEL_32: if ( v10 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source