// // sub_1000A0DD0 from 0x1000a0dd0 to 0x1000a17c4 (2548 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x100092db4 // // This function is hookable on this platform (idp: arm, 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 10:58:31 +0000 // void __fastcall sub_1000A0DD0(__int64 a1, std::string *a2, char *a3) { __int64 v6; // x22 char *v7; // x1 _BOOL4 v8; // w0 _BOOL4 v9; // w22 std::string::size_type v10; // x0 std::string::size_type v11; // x23 std::string::size_type v12; // x0 std::string::size_type v13; // x22 __int64 v14; // x21 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x0 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x0 __int64 v21; // x0 const std::string::value_type *CString; // x0 __int64 v23; // x0 const char *v24; // x0 __int64 v25; // x0 __int64 v26; // x0 char *v27; // x0 __int64 v28; // x0 const std::string::value_type *v29; // x0 __int64 v30; // x0 char *v31; // x0 __int64 v32; // x8 __int64 v33; // x22 __int64 i; // x23 __int64 v35; // x0 char *v36; // x0 std::string::size_type v37; // x0 std::string::size_type v38; // x24 std::string *v39; // x0 unsigned int v40; // w25 std::string *p_a; // x0 __int64 v42; // x0 __int64 v43; // x0 __int64 v44; // x0 __int64 v45; // x0 __int64 v46; // x0 __int64 v47; // x0 __int64 v48; // x0 __int64 v49; // x0 __int64 v50; // x0 char *v51; // x0 __int64 v52; // x0 const std::string::value_type *v53; // x0 __int64 v54; // x0 const std::string::value_type *v55; // x0 __int64 v56; // x0 const std::string::value_type *v57; // x0 __int64 v58; // x0 __int64 v59; // x0 char *v60; // x0 __int64 v61; // x0 const std::string::value_type *v62; // x0 __int64 v63; // x21 __int64 v64; // x0 __int64 v65; // x0 __int64 v66; // x0 __int64 v67; // x0 __int64 v68; // x21 std::string::size_type size; // x8 __int64 v70; // x22 __int64 j; // x23 __int64 v72; // x0 char *v73; // x0 __int64 v74; // x25 __int64 v75; // x26 __int64 v76; // x0 __int64 v77; // x0 __int64 v78; // x0 __int64 v79; // x0 __int64 v80; // x0 __int64 v81; // x0 char *v82; // x0 __int64 v83; // x0 char *v84; // x0 __int64 v85; // x0 const char *v86; // x0 __int64 v87; // x0 const std::string::value_type *v88; // x0 __int64 v89; // x0 __int64 v90; // x0 __int64 v91; // x0 __int64 v92; // x0 __int64 v93; // x0 unsigned int v94; // [xsp+4h] [xbp-2DCh] void *v95[2]; // [xsp+8h] [xbp-2D8h] BYREF char v96; // [xsp+1Fh] [xbp-2C1h] void *v97; // [xsp+20h] [xbp-2C0h] BYREF char v98; // [xsp+37h] [xbp-2A9h] void *v99[2]; // [xsp+38h] [xbp-2A8h] BYREF char v100; // [xsp+4Fh] [xbp-291h] void *v101; // [xsp+50h] [xbp-290h] BYREF char v102; // [xsp+67h] [xbp-279h] std::string __a; // [xsp+68h] [xbp-278h] BYREF std::string v104; // [xsp+80h] [xbp-260h] BYREF unsigned __int64 v105; // [xsp+98h] [xbp-248h] BYREF std::string __str; // [xsp+A0h] [xbp-240h] BYREF void *v107[2]; // [xsp+B8h] [xbp-228h] BYREF char v108; // [xsp+CFh] [xbp-211h] __int128 v109; // [xsp+D0h] [xbp-210h] BYREF __int64 v110; // [xsp+E0h] [xbp-200h] _BYTE __p[60]; // [xsp+E8h] [xbp-1F8h] BYREF __int128 v112; // [xsp+128h] [xbp-1B8h] _QWORD v113[4]; // [xsp+138h] [xbp-1A8h] BYREF __int128 v114; // [xsp+158h] [xbp-188h] BYREF __int128 v115; // [xsp+168h] [xbp-178h] __int128 v116; // [xsp+178h] [xbp-168h] int v117; // [xsp+188h] [xbp-158h] __int128 v118; // [xsp+190h] [xbp-150h] _QWORD v119[4]; // [xsp+1A0h] [xbp-140h] BYREF std::string v120[2]; // [xsp+1C0h] [xbp-120h] BYREF int v121; // [xsp+1F0h] [xbp-F0h] __int128 v122; // [xsp+1F8h] [xbp-E8h] _QWORD v123[4]; // [xsp+208h] [xbp-D8h] BYREF __int64 v124; // [xsp+228h] [xbp-B8h] int v125; // [xsp+230h] [xbp-B0h] std::string v126; // [xsp+238h] [xbp-A8h] BYREF std::string v127; // [xsp+250h] [xbp-90h] BYREF std::string v128; // [xsp+268h] [xbp-78h] BYREF std::allocator v129; // [xsp+287h] [xbp-59h] BYREF v6 = *(_QWORD *)(a1 + 1088); v7 = a3; if ( a3[23] < 0 ) v7 = *(char **)a3; sub_100009900(__p, v7); cocos2d::CCDictionary::removeObjectForKey(v6, __p); if ( (__p[23] & 0x80000000) != 0 ) operator delete(*(void **)__p); v94 = sub_1000C335C(a3); sub_100009900(__p, "-1"); v8 = sub_1000045BC(a2, __p); v9 = v8; if ( (__p[23] & 0x80000000) != 0 ) { operator delete(*(void **)__p); if ( v9 ) goto LABEL_35; } else if ( v8 ) { LABEL_35: v42 = *(_QWORD *)(a1 + 1256); if ( v42 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v42 + 312LL))(v42, v94); return; } v10 = std::string::find(a2, 35, 0); if ( v10 == -1 ) goto LABEL_35; v11 = v10; v12 = std::string::find(a2, 35, v10 + 1); if ( v12 == -1 ) goto LABEL_35; v13 = v12; std::string::basic_string(&v128, a2, 0, v11, (std::allocator *)__p); std::string::basic_string(&v127, a2, v11 + 1, v13 + ~v11, (std::allocator *)__p); std::string::basic_string(&v126, a2, v13 + 1, 0xFFFFFFFFFFFFFFFFLL, (std::allocator *)__p); *(_DWORD *)__p = -1; memset(&__p[4], 0, 56); v112 = 0u; memset(v113, 0, sizeof(v113)); v114 = 0u; v115 = 0u; v116 = 0u; v118 = 0u; memset(v119, 0, sizeof(v119)); memset(v120, 0, sizeof(v120)); v117 = 0; v121 = 0; v124 = 0; memset(v123, 0, sizeof(v123)); v122 = 0u; v125 = 20; v14 = sub_1000A72B8(&v128, ":"); if ( (unsigned int)sub_1002E757C(v14) >= 0x19 ) { v15 = cocos2d::CCArray::stringAtIndex(v14, 0); *(_DWORD *)__p = cocos2d::CCString::intValue(v15); v16 = cocos2d::CCArray::stringAtIndex(v14, 1); *(_DWORD *)&__p[4] = cocos2d::CCString::intValue(v16); v17 = cocos2d::CCArray::stringAtIndex(v14, 2); *(_DWORD *)&__p[8] = cocos2d::CCString::intValue(v17); v18 = cocos2d::CCArray::stringAtIndex(v14, 3); *(_DWORD *)&__p[12] = cocos2d::CCString::intValue(v18); v19 = cocos2d::CCArray::stringAtIndex(v14, 4); *(_DWORD *)&__p[16] = cocos2d::CCString::intValue(v19); v20 = cocos2d::CCArray::stringAtIndex(v14, 5); *(_DWORD *)&__p[20] = cocos2d::CCString::intValue(v20); v21 = cocos2d::CCArray::stringAtIndex(v14, 6); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v21); std::string::assign((std::string *)&__p[24], CString); v23 = cocos2d::CCArray::stringAtIndex(v14, 7); v24 = (const char *)cocos2d::CCString::getCString(v23); *(_QWORD *)&__p[48] = atoll(v24); v25 = cocos2d::CCArray::stringAtIndex(v14, 8); *(_DWORD *)&__p[56] = cocos2d::CCString::intValue(v25); v26 = cocos2d::CCArray::stringAtIndex(v14, 9); v27 = (char *)cocos2d::CCString::getCString(v26); sub_100009900(v107, v27); LevelTools::base64DecodeString(&v109, v107); if ( SHIBYTE(v113[0]) < 0 ) operator delete((void *)v112); v112 = v109; v113[0] = v110; HIBYTE(v110) = 0; LOBYTE(v109) = 0; if ( v108 < 0 ) operator delete(v107[0]); v28 = cocos2d::CCArray::stringAtIndex(v14, 10); v29 = (const std::string::value_type *)cocos2d::CCString::getCString(v28); std::string::assign((std::string *)&v113[1], v29); v30 = cocos2d::CCArray::stringAtIndex(v14, 11); v31 = (char *)cocos2d::CCString::getCString(v30); sub_100009900(&v109, v31); v32 = HIBYTE(v110); if ( v110 < 0 ) v32 = *((_QWORD *)&v109 + 1); if ( v32 ) { v33 = sub_1000A72B8(&v109, ","); for ( i = 0; (unsigned int)i < (unsigned int)sub_1002E757C(v33); i = (unsigned int)(i + 1) ) { v35 = cocos2d::CCArray::stringAtIndex(v33, i); v36 = (char *)cocos2d::CCString::getCString(v35); sub_100009900(&__str, v36); v37 = std::string::find(&__str, 45, 0); if ( v37 != -1 ) { v38 = v37; std::string::basic_string(&v104, &__str, 0, v37, (std::allocator *)&__a); if ( (v104.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v39 = &v104; else v39 = (std::string *)v104.__r_.__value_.__r.__words[0]; v40 = atoi((const char *)v39); std::string::basic_string(&__a, &__str, v38 + 1, 0xFFFFFFFFFFFFFFFFLL, &v129); if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_a = &__a; else p_a = (std::string *)__a.__r_.__value_.__r.__words[0]; v105 = v40 | (unsigned __int64)((__int64)atoi((const char *)p_a) << 32); sub_100011A50((__int64)&v114, &v105); if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__a.__r_.__value_.__l.__data_); if ( SHIBYTE(v104.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v104.__r_.__value_.__l.__data_); } if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); } } v43 = cocos2d::CCArray::stringAtIndex(v14, 12); DWORD2(v115) = cocos2d::CCString::intValue(v43); v44 = cocos2d::CCArray::stringAtIndex(v14, 13); HIDWORD(v115) = cocos2d::CCString::intValue(v44); v45 = cocos2d::CCArray::stringAtIndex(v14, 14); LODWORD(v116) = cocos2d::CCString::intValue(v45); v46 = cocos2d::CCArray::stringAtIndex(v14, 15); DWORD1(v116) = cocos2d::CCString::intValue(v46); v47 = cocos2d::CCArray::stringAtIndex(v14, 16); DWORD2(v116) = cocos2d::CCString::intValue(v47); v48 = cocos2d::CCArray::stringAtIndex(v14, 17); HIDWORD(v116) = cocos2d::CCString::intValue(v48); v49 = cocos2d::CCArray::stringAtIndex(v14, 18); v117 = cocos2d::CCString::intValue(v49); v50 = cocos2d::CCArray::stringAtIndex(v14, 19); v51 = (char *)cocos2d::CCString::getCString(v50); sub_100009900(&v101, v51); LevelTools::base64DecodeString(&__str, &v101); if ( SHIBYTE(v119[0]) < 0 ) operator delete((void *)v118); v118 = *(_OWORD *)&__str.__r_.__value_.__l.__data_; v119[0] = *((_QWORD *)&__str.__r_.__value_.__l + 2); *((_BYTE *)&__str.__r_.__value_.__s + 23) = 0; __str.__r_.__value_.__s.__data_[0] = 0; if ( v102 < 0 ) operator delete(v101); v52 = cocos2d::CCArray::stringAtIndex(v14, 20); v53 = (const std::string::value_type *)cocos2d::CCString::getCString(v52); std::string::assign((std::string *)&v119[1], v53); v54 = cocos2d::CCArray::stringAtIndex(v14, 21); v55 = (const std::string::value_type *)cocos2d::CCString::getCString(v54); std::string::assign(v120, v55); v56 = cocos2d::CCArray::stringAtIndex(v14, 22); v57 = (const std::string::value_type *)cocos2d::CCString::getCString(v56); std::string::assign(&v120[1], v57); v58 = cocos2d::CCArray::stringAtIndex(v14, 23); v121 = cocos2d::CCString::intValue(v58); v59 = cocos2d::CCArray::stringAtIndex(v14, 24); v60 = (char *)cocos2d::CCString::getCString(v59); sub_100009900(v99, v60); LevelTools::base64DecodeString(&__str, v99); if ( SHIBYTE(v123[0]) < 0 ) operator delete((void *)v122); v122 = *(_OWORD *)&__str.__r_.__value_.__l.__data_; v123[0] = *((_QWORD *)&__str.__r_.__value_.__l + 2); *((_BYTE *)&__str.__r_.__value_.__s + 23) = 0; __str.__r_.__value_.__s.__data_[0] = 0; if ( v100 < 0 ) operator delete(v99[0]); if ( (unsigned int)sub_1002E757C(v14) >= 0x1A ) { v61 = cocos2d::CCArray::stringAtIndex(v14, 25); v62 = (const std::string::value_type *)cocos2d::CCString::getCString(v61); std::string::assign((std::string *)&v123[1], v62); } if ( SHIBYTE(v110) < 0 ) operator delete((void *)v109); } v63 = sub_1000A72B8(&v126, ":"); v64 = sub_1002E757C(v63); if ( (unsigned int)v64 >= 3 ) { v65 = cocos2d::CCArray::stringAtIndex(v63, 0); LODWORD(v124) = cocos2d::CCString::intValue(v65); v66 = cocos2d::CCArray::stringAtIndex(v63, 1); HIDWORD(v124) = cocos2d::CCString::intValue(v66); v67 = cocos2d::CCArray::stringAtIndex(v63, 2); v64 = cocos2d::CCString::intValue(v67); v125 = v64; } v68 = sub_1002E736C(v64); size = HIBYTE(v127.__r_.__value_.__r.__words[2]); if ( (v127.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = v127.__r_.__value_.__l.__size_; if ( size ) { v70 = sub_1000A72B8(&v127, "|"); for ( j = 0; (unsigned int)j < (unsigned int)sub_1002E757C(v70); j = (unsigned int)(j + 1) ) { v72 = cocos2d::CCArray::stringAtIndex(v70, j); v73 = (char *)cocos2d::CCString::getCString(v72); sub_100009900(&v109, v73); v74 = sub_1000A72B8(&v109, ":"); if ( SHIBYTE(v110) < 0 ) operator delete((void *)v109); if ( (unsigned int)sub_1002E757C(v74) >= 0xA ) { v75 = sub_1000C3EEC(); v76 = cocos2d::CCArray::stringAtIndex(v74, 0); *(_DWORD *)(v75 + 56) = cocos2d::CCString::intValue(v76); v77 = cocos2d::CCArray::stringAtIndex(v74, 1); *(_DWORD *)(v75 + 60) = cocos2d::CCString::intValue(v77); v78 = cocos2d::CCArray::stringAtIndex(v74, 2); *(_DWORD *)(v75 + 64) = cocos2d::CCString::intValue(v78); v79 = cocos2d::CCArray::stringAtIndex(v74, 3); *(_DWORD *)(v75 + 68) = cocos2d::CCString::intValue(v79); v80 = cocos2d::CCArray::stringAtIndex(v74, 4); *(_DWORD *)(v75 + 72) = cocos2d::CCString::intValue(v80); v81 = cocos2d::CCArray::stringAtIndex(v74, 5); v82 = (char *)cocos2d::CCString::getCString(v81); sub_100009900(&v97, v82); LevelTools::base64DecodeString(&v109, &v97); if ( *(char *)(v75 + 103) < 0 ) operator delete(*(void **)(v75 + 80)); *(_OWORD *)(v75 + 80) = v109; *(_QWORD *)(v75 + 96) = v110; HIBYTE(v110) = 0; LOBYTE(v109) = 0; if ( v98 < 0 ) operator delete(v97); v83 = cocos2d::CCArray::stringAtIndex(v74, 6); v84 = (char *)cocos2d::CCString::getCString(v83); sub_100009900(v95, v84); LevelTools::base64DecodeString(&v109, v95); if ( *(char *)(v75 + 127) < 0 ) operator delete(*(void **)(v75 + 104)); *(_OWORD *)(v75 + 104) = v109; *(_QWORD *)(v75 + 120) = v110; HIBYTE(v110) = 0; LOBYTE(v109) = 0; if ( v96 < 0 ) operator delete(v95[0]); v85 = cocos2d::CCArray::stringAtIndex(v74, 7); v86 = (const char *)cocos2d::CCString::getCString(v85); *(_QWORD *)(v75 + 128) = atoll(v86); v87 = cocos2d::CCArray::stringAtIndex(v74, 8); v88 = (const std::string::value_type *)cocos2d::CCString::getCString(v87); std::string::assign((std::string *)(v75 + 136), v88); v89 = cocos2d::CCArray::stringAtIndex(v74, 9); *(_BYTE *)(v75 + 160) = (unsigned int)cocos2d::CCString::intValue(v89) != 0; if ( (unsigned int)sub_1002E757C(v74) >= 0xD ) { v90 = cocos2d::CCArray::stringAtIndex(v74, 10); *(_DWORD *)(v75 + 164) = cocos2d::CCString::intValue(v90); v91 = cocos2d::CCArray::stringAtIndex(v74, 11); *(_DWORD *)(v75 + 168) = cocos2d::CCString::intValue(v91); v92 = cocos2d::CCArray::stringAtIndex(v74, 12); *(_BYTE *)(v75 + 172) = (unsigned int)cocos2d::CCString::intValue(v92) != 0; } sub_1002E74E0(v68, v75); } } } v93 = *(_QWORD *)(a1 + 1256); if ( v93 ) (*(void (__fastcall **)(__int64, _QWORD, __int64, _BYTE *))(*(_QWORD *)v93 + 304LL))(v93, v94, v68, __p); sub_1000D7E10(__p); if ( SHIBYTE(v126.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v126.__r_.__value_.__l.__data_); if ( SHIBYTE(v127.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v127.__r_.__value_.__l.__data_); if ( SHIBYTE(v128.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v128.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source