// // GameLevelManager::reportLevel from 0x100581320 to 0x100581578 (600 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::reportLevel(__int64 a1, unsigned int a2) { __int64 v2; // rax __int64 v3; // rax const char *CString; // r15 size_t v5; // rax size_t v6; // r12 char *v7; // r13 size_t v8; // rbx __int64 v9; // rax const char *v10; // r14 size_t v11; // rax size_t v12; // r15 char *v13; // r12 __int64 v14; // rbx size_t v15; // rbx char v16; // [rsp+0h] [rbp-80h] char v17; // [rsp+0h] [rbp-80h] std::string v18; // [rsp+8h] [rbp-78h] BYREF __int64 v19; // [rsp+20h] [rbp-60h] _QWORD __dst[2]; // [rsp+28h] [rbp-58h] BYREF void *v21; // [rsp+38h] [rbp-48h] __int128 v22; // [rsp+40h] [rbp-40h] BYREF void *v23; // [rsp+50h] [rbp-30h] if ( (unsigned __int8)sub_1005815E0() ) return; sub_1005816E0(a1, a2); v2 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v2); v3 = sub_10088E820("levelID=%i&secret=%s", v16); CString = (const char *)cocos2d::CCString::getCString(v3); v18.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v18.__r_.__value_.__r.__words[0] = 57; v18.__r_.__value_.__l.__size_ = 52; strcpy(v18.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/reportGJLevel.php"); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; v19 = a1; if ( v5 >= 0x17 ) { v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); v21 = v7; __dst[0] = v8 | 1; __dst[1] = v6; goto LABEL_9; } LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( v5 ) LABEL_9: memmove(v7, CString, v6); v7[v6] = 0; v9 = sub_10088E820("%i", v17); v10 = (const char *)cocos2d::CCString::getCString(v9); v11 = strlen(v10); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v12 = v11; if ( v11 >= 0x17 ) { v15 = 26; if ( (v11 | 7) != 0x17 ) v15 = (v11 | 7) + 1; v13 = (char *)operator new(v15); v23 = v13; *(_QWORD *)&v22 = v15 | 1; *((_QWORD *)&v22 + 1) = v12; v14 = v19; } else { LOBYTE(v22) = 2 * v11; v13 = (char *)&v22 + 1; v14 = v19; if ( !v11 ) goto LABEL_18; } memmove(v13, v10, v12); LABEL_18: v13[v12] = 0; GameLevelManager::ProcessHttpRequest(v14, &v18, (__int64)__dst, &v22, 0x13u); if ( (v22 & 1) != 0 ) { operator delete(v23); if ( (__dst[0] & 1) == 0 ) { LABEL_20: if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_21; } } else if ( (__dst[0] & 1) == 0 ) { goto LABEL_20; } operator delete(v21); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) LABEL_21: operator delete(v18.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source