// // GameLevelManager::restoreItems from 0x100581030 to 0x100581280 (592 bytes) // // 0 xrefs: // // 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 // void __fastcall GameLevelManager::restoreItems(__int64 a1) { __int64 v1; // rax __int64 v2; // rax __int64 v3; // rax __int64 v4; // rax const char *CString; // r14 size_t v6; // rax size_t v7; // r15 char *v8; // r12 size_t v9; // r13 char v10; // [rsp+0h] [rbp-90h] std::string v11; // [rsp+8h] [rbp-88h] BYREF __int128 v12; // [rsp+20h] [rbp-70h] BYREF void *v13; // [rsp+30h] [rbp-60h] _QWORD __dst[2]; // [rsp+38h] [rbp-58h] BYREF void *v15; // [rsp+48h] [rbp-48h] __int128 v16; // [rsp+50h] [rbp-40h] BYREF void *__p; // [rsp+60h] [rbp-30h] if ( GameLevelManager::isDLActive(a1, "restoreKey") ) return; GameLevelManager::addDLToActive(a1, "restoreKey"); v1 = GameManager::sharedState(); if ( (*(_BYTE *)(v1 + 608) & 1) != 0 ) { sub_10001AD30(&v16, *(const void **)(v1 + 624), *(_QWORD *)(v1 + 616)); } else { v2 = v1 + 608; __p = *(void **)(v2 + 16); v16 = *(_OWORD *)v2; } v3 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v3); v4 = sub_10088E820("udid=%s&secret=%s", v10); CString = (const char *)cocos2d::CCString::getCString(v4); v11.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v11.__r_.__value_.__r.__words[0] = 57; v11.__r_.__value_.__l.__size_ = 53; strcpy(v11.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/restoreGJItems.php"); v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v7 = v6; if ( v6 >= 0x17 ) { v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); v15 = v8; __dst[0] = v9 | 1; __dst[1] = v7; goto LABEL_12; } LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( v6 ) LABEL_12: memmove(v8, CString, v7); v8[v7] = 0; LOBYTE(v12) = 20; strcpy((char *)&v12 + 1, "restoreKey"); GameLevelManager::ProcessHttpRequest(a1, &v11, (__int64)__dst, &v12, 0x11u); if ( (v12 & 1) == 0 ) { if ( (__dst[0] & 1) == 0 ) goto LABEL_15; LABEL_20: operator delete(v15); if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_16: if ( (v16 & 1) == 0 ) return; goto LABEL_17; } goto LABEL_21; } operator delete(v13); if ( (__dst[0] & 1) != 0 ) goto LABEL_20; LABEL_15: if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_16; LABEL_21: operator delete(v11.__r_.__value_.__l.__data_); if ( (v16 & 1) != 0 ) LABEL_17: operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source