// // sub_10057DE80 from 0x10057de80 to 0x10057e178 (760 bytes) // // 1 xrefs: // > sub_10095E970 @ 0x10095e9c1 // // 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:19 +0000 // void __fastcall sub_10057DE80(__int64 a1, int a2) { std::string *v2; // rax __int64 v3; // rax __int64 v4; // rax const std::string::value_type *CString; // rax const char *data; // r14 size_t v7; // rax size_t v8; // r15 char *v9; // r12 char *v10; // r14 size_t v11; // r13 size_t v12; // rax size_t v13; // r15 char *v14; // r12 size_t v15; // r13 char v16; // [rsp+0h] [rbp-B0h] std::string v17; // [rsp+8h] [rbp-A8h] BYREF __int128 v18; // [rsp+20h] [rbp-90h] BYREF char *__s; // [rsp+30h] [rbp-80h] _QWORD __dst[2]; // [rsp+40h] [rbp-70h] BYREF void *v21; // [rsp+50h] [rbp-60h] __int128 v22; // [rsp+58h] [rbp-58h] BYREF void *__p; // [rsp+68h] [rbp-48h] std::string v24; // [rsp+70h] [rbp-40h] BYREF std::to_string(&v24, a2); v2 = std::string::insert(&v24, 0, "lctrlget_"); __s = v2->__r_.__value_.__l.__data_; v18 = *(_OWORD *)&v2->__r_.__value_.__l.0; *(_OWORD *)&v2->__r_.__value_.__l.0 = 0; v2->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v24.__r_.__value_.__l.__data_); GameLevelManager::getBasePostString(&v24); v3 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); cocos2d::CCString::getCString(v3); v4 = sub_10088E820("&levelID=%i&secret=%s", v16); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v4); std::string::append(&v24, CString); v17.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v17.__r_.__value_.__r.__words[0] = 65; v17.__r_.__value_.__l.__size_ = 57; strcpy(v17.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/getGJLevelControls.php"); if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 ) data = v24.__r_.__value_.__l.__data_; else data = v24.__r_.__value_.__s.__data_; v7 = strlen(data); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v8 = v7; if ( v7 >= 0x17 ) { v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = (char *)operator new(v11); v21 = v9; __dst[0] = v11 | 1; __dst[1] = v8; LABEL_14: memmove(v9, data, v8); v9[v8] = 0; if ( (v18 & 1) != 0 ) goto LABEL_10; goto LABEL_15; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) goto LABEL_14; BYTE1(__dst[0]) = 0; if ( (v18 & 1) != 0 ) { LABEL_10: v10 = __s; goto LABEL_16; } LABEL_15: v10 = (char *)&v18 + 1; LABEL_16: v12 = strlen(v10); 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); __p = v14; *(_QWORD *)&v22 = v15 | 1; *((_QWORD *)&v22 + 1) = v13; goto LABEL_23; } LOBYTE(v22) = 2 * v12; v14 = (char *)&v22 + 1; if ( v12 ) LABEL_23: memmove(v14, v10, v13); v14[v13] = 0; GameLevelManager::ProcessHttpRequest(a1, &v17, (__int64)__dst, &v22, 0x1Eu); if ( (v22 & 1) != 0 ) { operator delete(__p); if ( (__dst[0] & 1) == 0 ) { LABEL_26: if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_27; goto LABEL_33; } } else if ( (__dst[0] & 1) == 0 ) { goto LABEL_26; } operator delete(v21); if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_27: if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_28; goto LABEL_34; } LABEL_33: operator delete(v17.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_28: if ( (v18 & 1) == 0 ) return; goto LABEL_29; } LABEL_34: operator delete(v24.__r_.__value_.__l.__data_); if ( (v18 & 1) != 0 ) LABEL_29: operator delete(__s); }
GD Web Decomp Icon

GD Web Decomp

Raw Source