// // GameLevelManager::uploadDeathData from 0x100551eb0 to 0x100552b75 (3269 bytes) // // 1 xrefs: // > LevelInfoLayer::onEnterTransitionDidFinish @ 0x1002b0d82 // // 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:04 +0000 // __int64 __fastcall GameLevelManager::uploadDeathData(_QWORD *a1, __int64 a2) { __int64 v2; // rax __int64 v3; // r15 void *v4; // rdi time_t v5; // rax const std::string::value_type *v6; // rsi const std::string::value_type *data; // r14 unsigned __int64 v8; // rcx char v9; // al __int64 v10; // rax __int64 v11; // r12 __int64 v12; // rbx __int64 v13; // rax int v14; // ecx bool v15; // cc int v16; // ecx unsigned int v17; // eax unsigned int v18; // eax size_t v19; // r13 std::string::size_type v20; // r14 char *v21; // r15 const void *v22; // rsi size_t v23; // r13 unsigned int v24; // edx const std::string::value_type *v25; // rsi std::string::size_type v26; // rdx int v27; // r15d std::string *v28; // rax std::string *v29; // rax const std::string::value_type *v30; // rsi std::string::size_type size; // rdx std::string *v32; // rax std::string *v33; // rax const std::string::value_type *v34; // rsi std::string::size_type v35; // rdx std::string *v36; // rax std::string *v37; // rax const std::string::value_type *v38; // rsi std::string::size_type v39; // rdx std::string *v40; // rax const std::string::value_type *v41; // rsi std::string::size_type v42; // rdx unsigned int v43; // eax std::string *v44; // rax const std::string::value_type *v45; // rsi std::string::size_type v46; // rdx std::string *v47; // rax std::string *v48; // rax const std::string::value_type *v49; // rsi std::string *v50; // rax std::string::size_type v51; // rdx unsigned int v52; // ecx std::string::size_type v53; // rdx __int64 v54; // rax const std::string::value_type *CString; // rax const char *v56; // rbx size_t v57; // rax size_t v58; // r14 char *v59; // r15 size_t v60; // r12 size_t v61; // rax size_t v62; // rbx char *v63; // r14 size_t v64; // r15 size_t v66; // [rsp+8h] [rbp-1E8h] __int64 v67; // [rsp+10h] [rbp-1E0h] std::string v68; // [rsp+18h] [rbp-1D8h] BYREF __int64 v69; // [rsp+30h] [rbp-1C0h] std::string v70; // [rsp+38h] [rbp-1B8h] BYREF _QWORD v71[2]; // [rsp+50h] [rbp-1A0h] BYREF void *v72; // [rsp+60h] [rbp-190h] __int128 v73; // [rsp+68h] [rbp-188h] BYREF void *v74; // [rsp+78h] [rbp-178h] unsigned int v75; // [rsp+84h] [rbp-16Ch] std::string v76; // [rsp+88h] [rbp-168h] BYREF unsigned __int64 v77; // [rsp+A0h] [rbp-150h] char *v78; // [rsp+A8h] [rbp-148h] std::string v79; // [rsp+B0h] [rbp-140h] BYREF _QWORD *v80; // [rsp+C8h] [rbp-128h] std::string v81; // [rsp+D0h] [rbp-120h] BYREF std::string v82; // [rsp+F0h] [rbp-100h] BYREF size_t v83; // [rsp+108h] [rbp-E8h] BYREF std::string::size_type v84; // [rsp+110h] [rbp-E0h] void *v85; // [rsp+118h] [rbp-D8h] std::string v86; // [rsp+120h] [rbp-D0h] BYREF std::string __s; // [rsp+140h] [rbp-B0h] BYREF std::string __dst; // [rsp+160h] [rbp-90h] BYREF std::string v89; // [rsp+180h] [rbp-70h] BYREF _QWORD v90[4]; // [rsp+1A0h] [rbp-50h] v80 = a1; v2 = GJAccountManager::sharedState((__int64)a1, a2); if ( *(_DWORD *)(v2 + 352) <= *(_DWORD *)(v2 + 356) ) return __stack_chk_guard; if ( GameLevelManager::isDLActive((__int64)v80, "UploadDeathData") ) return __stack_chk_guard; v3 = 0; v4 = nullptr; v5 = time(nullptr); v6 = (const std::string::value_type *)qword_100BE5598; if ( v5 - qword_100BE5598 < 300 && qword_100BE5598 != 0 ) return __stack_chk_guard; v67 = v5; *(_WORD *)&v82.__r_.__value_.__l.0 = 0; data = v82.__r_.__value_.__s.__data_; *(_WORD *)&v76.__r_.__value_.__l.0 = 0; v78 = v76.__r_.__value_.__s.__data_; v90[0] = v80[95]; v90[1] = v80[106]; v90[2] = v80[117]; v8 = 0; while ( 1 ) { v10 = v90[v8]; if ( v10 ) break; v9 = 0; if ( v8 > 1 ) goto LABEL_106; LABEL_6: ++v8; if ( v9 ) goto LABEL_106; } v77 = v8; v11 = *(_QWORD *)(v10 + 56); while ( 1 ) { while ( 1 ) { if ( !v11 ) { v9 = 0; v8 = v77; if ( v77 > 1 ) goto LABEL_106; goto LABEL_6; } v12 = *(_QWORD *)(v11 + 264); v11 = *(_QWORD *)(v11 + 288); if ( v12 ) { if ( *(_BYTE *)(v12 + 1744) ) { if ( (unsigned int)(*(_DWORD *)(v12 + 1140) - 1) >= 2 ) { v13 = GJAccountManager::sharedState((__int64)v4, (__int64)v6); v14 = *(_DWORD *)(v13 + 352); v15 = v14 <= *(_DWORD *)(v13 + 356); v16 = v14 - *(_DWORD *)(v13 + 356); if ( !v15 ) { v17 = *(_DWORD *)(v12 + 1748); if ( (int)v17 > 0 && (v17 > 0x3E7 || (*(_DWORD *)(v12 + 328) - 1640531535 * v16 - *(_DWORD *)(v12 + 332)) % 0x3E8u < v17) ) { break; } } } } } } v18 = *(unsigned __int8 *)(v12 + 1720); if ( (v18 & 1) != 0 ) v19 = *(_QWORD *)(v12 + 1728); else v19 = v18 >> 1; v20 = v19 + 1; if ( v19 + 1 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v69 = v3; if ( v20 >= 0x17 ) { v75 = v18; v66 = v19; v23 = (v20 | 7) + 1; if ( (v20 | 7) == 0x17 ) v23 = 26; v21 = (char *)operator new(v23); __dst.__r_.__value_.__r.__words[0] = v23 | 1; __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)v21; __dst.__r_.__value_.__l.__size_ = v20; v19 = v66; if ( (v75 & 1) == 0 ) goto LABEL_28; } else { memset(&__dst, 0, sizeof(__dst)); __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v20); v21 = __dst.__r_.__value_.__s.__data_; if ( !v19 ) goto LABEL_30; if ( (v18 & 1) == 0 ) { LABEL_28: v22 = (const void *)(v12 + 1721); goto LABEL_29; } } v22 = *(const void **)(v12 + 1736); LABEL_29: memmove(v21, v22, v19); LABEL_30: *(_WORD *)&v21[v19] = 59; v24 = *(unsigned __int8 *)(v12 + 1544); if ( (v24 & 1) != 0 ) { v25 = *(const std::string::value_type **)(v12 + 1560); v26 = *(_QWORD *)(v12 + 1552); } else { v25 = (const std::string::value_type *)(v12 + 1545); v26 = v24 >> 1; } data = v82.__r_.__value_.__s.__data_; v27 = v69; v28 = std::string::append(&__dst, v25, v26); v89 = *v28; *(_OWORD *)&v28->__r_.__value_.__l.0 = 0; v28->__r_.__value_.__r.__words[2] = 0; v29 = std::string::append(&v89, ";"); v81 = *v29; *(_OWORD *)&v29->__r_.__value_.__l.0 = 0; v29->__r_.__value_.__r.__words[2] = 0; GameToolbox::intToString((size_t *)&__s, *(_DWORD *)(v12 + 1656)); if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 ) { v30 = __s.__r_.__value_.__l.__data_; size = __s.__r_.__value_.__l.__size_; } else { size = *(_BYTE *)&__s.__r_.__value_.__l.0 >> 1; v30 = __s.__r_.__value_.__s.__data_; } v32 = std::string::append(&v81, v30, size); v86 = *v32; *(_OWORD *)&v32->__r_.__value_.__l.0 = 0; v32->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(__s.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v81.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_38: if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_39; goto LABEL_46; } } else if ( (*(_BYTE *)&v81.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_38; } operator delete(v81.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_39: if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_41; LABEL_40: operator delete(__dst.__r_.__value_.__l.__data_); goto LABEL_41; } LABEL_46: operator delete(v89.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_40; LABEL_41: cocos2d::ZipUtils::compressString(&v81, (unsigned __int8 *)&v86, 0, 0xFFFFFFFFLL, 0); if ( (*(_BYTE *)&v82.__r_.__value_.__s.0 & 1) == 0 ) { if ( !(*(_BYTE *)&v82.__r_.__value_.__l.0 >> 1) ) goto LABEL_50; LABEL_49: std::string::append(&v82, ";"); goto LABEL_50; } if ( v82.__r_.__value_.__l.__size_ ) goto LABEL_49; LABEL_50: GameToolbox::intToString((size_t *)&v70, *(_DWORD *)(v12 + 328) - *(_DWORD *)(v12 + 332)); v33 = std::string::append(&v70, ","); v79 = *v33; *(_OWORD *)&v33->__r_.__value_.__l.0 = 0; v33->__r_.__value_.__r.__words[2] = 0; GameToolbox::intToString(&v83, *(_DWORD *)(v12 + 788)); if ( (v83 & 1) != 0 ) { v34 = (const std::string::value_type *)v85; v35 = v84; } else { v35 = (unsigned __int8)v83 >> 1; v34 = (char *)&v83 + 1; } v36 = std::string::append(&v79, v34, v35); __s = *v36; *(_OWORD *)&v36->__r_.__value_.__l.0 = 0; v36->__r_.__value_.__r.__words[2] = 0; v37 = std::string::append(&__s, ","); __dst = *v37; *(_OWORD *)&v37->__r_.__value_.__l.0 = 0; v37->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v81.__r_.__value_.__s.0 & 1) != 0 ) { v38 = v81.__r_.__value_.__l.__data_; v39 = v81.__r_.__value_.__l.__size_; } else { v39 = *(_BYTE *)&v81.__r_.__value_.__l.0 >> 1; v38 = v81.__r_.__value_.__s.__data_; } v40 = std::string::append(&__dst, v38, v39); v89 = *v40; *(_OWORD *)&v40->__r_.__value_.__l.0 = 0; v40->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) != 0 ) { v41 = v89.__r_.__value_.__l.__data_; v42 = v89.__r_.__value_.__l.__size_; } else { v42 = *(_BYTE *)&v89.__r_.__value_.__l.0 >> 1; v41 = v89.__r_.__value_.__s.__data_; } std::string::append(&v82, v41, v42); if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v89.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_61: if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_62; goto LABEL_70; } } else if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_61; } operator delete(__dst.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_62: if ( (v83 & 1) == 0 ) goto LABEL_63; goto LABEL_71; } LABEL_70: operator delete(__s.__r_.__value_.__l.__data_); if ( (v83 & 1) == 0 ) { LABEL_63: if ( (*(_BYTE *)&v79.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_64; goto LABEL_72; } LABEL_71: operator delete(v85); if ( (*(_BYTE *)&v79.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_64: if ( (*(_BYTE *)&v70.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_65; goto LABEL_73; } LABEL_72: operator delete(v79.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v70.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_65: v43 = (unsigned int)v76.__r_.__value_.__l.0; if ( (*(_BYTE *)&v76.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_74; goto LABEL_66; } LABEL_73: operator delete(v70.__r_.__value_.__l.__data_); v43 = (unsigned int)v76.__r_.__value_.__l.0; if ( (*(_BYTE *)&v76.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_74: if ( !(v43 >> 1) ) goto LABEL_76; LABEL_75: std::string::append(&v76, ","); goto LABEL_76; } LABEL_66: if ( v76.__r_.__value_.__l.__size_ ) goto LABEL_75; LABEL_76: GameToolbox::intToString((size_t *)&v70, *(_DWORD *)(v12 + 328) - *(_DWORD *)(v12 + 332)); v44 = std::string::append(&v70, ":"); v79 = *v44; *(_OWORD *)&v44->__r_.__value_.__l.0 = 0; v44->__r_.__value_.__r.__words[2] = 0; GameToolbox::intToString(&v83, *(_DWORD *)(v12 + 920) - *(_DWORD *)(v12 + 924)); if ( (v83 & 1) != 0 ) { v45 = (const std::string::value_type *)v85; v46 = v84; } else { v46 = (unsigned __int8)v83 >> 1; v45 = (char *)&v83 + 1; } v47 = std::string::append(&v79, v45, v46); __s = *v47; *(_OWORD *)&v47->__r_.__value_.__l.0 = 0; v47->__r_.__value_.__r.__words[2] = 0; v48 = std::string::append(&__s, ":"); __dst = *v48; *(_OWORD *)&v48->__r_.__value_.__l.0 = 0; v48->__r_.__value_.__r.__words[2] = 0; v49 = "0"; if ( *(_BYTE *)(v12 + 649) ) v49 = "1"; v50 = std::string::append(&__dst, v49); v89 = *v50; *(_OWORD *)&v50->__r_.__value_.__l.0 = 0; v50->__r_.__value_.__r.__words[2] = 0; if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) != 0 ) { v6 = v89.__r_.__value_.__l.__data_; v51 = v89.__r_.__value_.__l.__size_; } else { v51 = *(_BYTE *)&v89.__r_.__value_.__l.0 >> 1; v6 = v89.__r_.__value_.__s.__data_; } v4 = &v76; std::string::append(&v76, v6, v51); if ( (*(_BYTE *)&v89.__r_.__value_.__s.0 & 1) != 0 ) break; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_95; LABEL_86: if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_96; LABEL_87: if ( (v83 & 1) != 0 ) goto LABEL_97; LABEL_88: if ( (*(_BYTE *)&v79.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_98; LABEL_89: if ( (*(_BYTE *)&v70.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_99; LABEL_90: if ( (*(_BYTE *)&v81.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_100; LABEL_91: if ( (*(_BYTE *)&v86.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_101; LABEL_92: v52 = v27 + 1; if ( v27 > 28 ) goto LABEL_105; LABEL_102: v3 = v52; } v4 = v89.__r_.__value_.__l.__data_; operator delete(v89.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_86; LABEL_95: v4 = __dst.__r_.__value_.__l.__data_; operator delete(__dst.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_87; LABEL_96: v4 = __s.__r_.__value_.__l.__data_; operator delete(__s.__r_.__value_.__l.__data_); if ( (v83 & 1) == 0 ) goto LABEL_88; LABEL_97: v4 = v85; operator delete(v85); if ( (*(_BYTE *)&v79.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_89; LABEL_98: v4 = v79.__r_.__value_.__l.__data_; operator delete(v79.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v70.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_90; LABEL_99: v4 = v70.__r_.__value_.__l.__data_; operator delete(v70.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v81.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_91; LABEL_100: v4 = v81.__r_.__value_.__l.__data_; operator delete(v81.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v86.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_92; LABEL_101: v4 = v86.__r_.__value_.__l.__data_; operator delete(v86.__r_.__value_.__l.__data_); v52 = v27 + 1; if ( v27 <= 28 ) goto LABEL_102; LABEL_105: v9 = 1; v3 = v52; v8 = v77; if ( v77 <= 1 ) goto LABEL_6; LABEL_106: if ( (*(_BYTE *)&v82.__r_.__value_.__s.0 & 1) != 0 ) { if ( !v82.__r_.__value_.__l.__size_ ) goto LABEL_139; } else if ( !(*(_BYTE *)&v82.__r_.__value_.__l.0 >> 1) ) { goto LABEL_139; } qword_100BE5598 = v67; GameLevelManager::addDLToActive((__int64)v80, "UploadDeathData"); GameLevelManager::getBasePostString(&v86); std::string::append(&v86, "&data="); if ( (*(_BYTE *)&v82.__r_.__value_.__s.0 & 1) != 0 ) { data = v82.__r_.__value_.__l.__data_; v53 = v82.__r_.__value_.__l.__size_; } else { v53 = *(_BYTE *)&v82.__r_.__value_.__l.0 >> 1; } std::string::append(&v86, data, v53); std::string::append(&v86, "&secret="); v54 = sub_10088E820("%c%s%s%c%c%s", (char)"7"); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v54); std::string::append(&v86, CString); v68.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v68.__r_.__value_.__r.__words[0] = 65; v68.__r_.__value_.__l.__size_ = 56; strcpy(v68.__r_.__value_.__l.__data_, "https://www.boomlings.com/database/uploadGJDeathData.php"); if ( (*(_BYTE *)&v86.__r_.__value_.__s.0 & 1) != 0 ) v56 = v86.__r_.__value_.__l.__data_; else v56 = v86.__r_.__value_.__s.__data_; v57 = strlen(v56); if ( v57 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v58 = v57; if ( v57 >= 0x17 ) { v60 = 26; if ( (v57 | 7) != 0x17 ) v60 = (v57 | 7) + 1; v59 = (char *)operator new(v60); v72 = v59; v71[0] = v60 | 1; v71[1] = v58; goto LABEL_123; } LOBYTE(v71[0]) = 2 * v57; v59 = (char *)v71 + 1; if ( v57 ) LABEL_123: memmove(v59, v56, v58); v59[v58] = 0; if ( (*(_BYTE *)&v76.__r_.__value_.__s.0 & 1) != 0 ) v78 = v76.__r_.__value_.__l.__data_; v61 = strlen(v78); if ( v61 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v62 = v61; if ( v61 >= 0x17 ) { v64 = 26; if ( (v61 | 7) != 0x17 ) v64 = (v61 | 7) + 1; v63 = (char *)operator new(v64); v74 = v63; *(_QWORD *)&v73 = v64 | 1; *((_QWORD *)&v73 + 1) = v62; goto LABEL_133; } LOBYTE(v73) = 2 * v61; v63 = (char *)&v73 + 1; if ( v61 ) LABEL_133: memmove(v63, v78, v62); v63[v62] = 0; GameLevelManager::ProcessHttpRequest((__int64)v80, &v68, (__int64)v71, &v73, 0x69u); if ( (v73 & 1) == 0 ) { if ( (v71[0] & 1) == 0 ) goto LABEL_136; LABEL_145: operator delete(v72); if ( (*(_BYTE *)&v68.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_146; LABEL_137: if ( (*(_BYTE *)&v86.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_139; goto LABEL_138; } operator delete(v74); if ( (v71[0] & 1) != 0 ) goto LABEL_145; LABEL_136: if ( (*(_BYTE *)&v68.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_137; LABEL_146: operator delete(v68.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v86.__r_.__value_.__s.0 & 1) != 0 ) LABEL_138: operator delete(v86.__r_.__value_.__l.__data_); LABEL_139: if ( (*(_BYTE *)&v76.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v76.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v82.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v82.__r_.__value_.__l.__data_); return __stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source