// // sub_10009C3E4 from 0x10009c3e4 to 0x10009ca00 (1564 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x100092d50 // // 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:29 +0000 // void __fastcall sub_10009C3E4(__int64 a1, _QWORD *a2) { _BOOL4 v4; // w0 _BOOL4 v5; // w21 __int64 v6; // x0 __int64 v7; // x20 __int64 v8; // x0 char *CString; // x0 __int64 v10; // x0 char *v11; // x0 __int64 v12; // x0 const std::string::value_type *v13; // x0 std::string *p_a; // x20 size_t v15; // x0 bool v16; // w0 bool v17; // w20 __int64 v18; // x20 __int64 v19; // x0 __int64 v20; // x0 __int64 v21; // x0 __int64 v22; // x0 int v23; // w21 _DWORD *v24; // x22 float v25; // s0 __int64 v26; // x0 __int64 v27; // x0 int v28; // w21 __int64 v29; // x0 __int64 v30; // x0 char *v31; // x0 _QWORD *v32; // x0 __int64 v33; // x0 bool v34; // w21 __int64 v35; // x0 __int64 v36; // x0 int v37; // w21 __int64 v38; // x0 __int64 v39; // x0 __int64 v40; // x21 __int64 v41; // x0 char *v42; // x0 __int64 v43; // x0 __int64 v44; // x23 __int64 v45; // x0 __int64 v46; // x22 __int64 v47; // x0 char *v48; // x0 __int64 v49; // x0 __int64 v50; // x24 __int64 v51; // x0 __int64 v52; // x20 __int64 v53; // x25 __int64 v54; // x0 __int64 v55; // x0 __int64 v56; // x21 void (__fastcall ***v57)(_QWORD, __int64); // x0 void *v58[2]; // [xsp+30h] [xbp-180h] BYREF __int64 v59; // [xsp+40h] [xbp-170h] void *v60[2]; // [xsp+50h] [xbp-160h] BYREF __int64 v61; // [xsp+60h] [xbp-150h] void *v62[2]; // [xsp+68h] [xbp-148h] BYREF __int64 v63; // [xsp+78h] [xbp-138h] void *__dst[2]; // [xsp+80h] [xbp-130h] BYREF __int64 v65; // [xsp+90h] [xbp-120h] void *v66[2]; // [xsp+98h] [xbp-118h] BYREF char v67; // [xsp+AFh] [xbp-101h] void *__p[2]; // [xsp+B0h] [xbp-100h] BYREF char v69; // [xsp+C7h] [xbp-E9h] void *v70[2]; // [xsp+C8h] [xbp-E8h] BYREF char v71; // [xsp+DFh] [xbp-D1h] std::string __a; // [xsp+E0h] [xbp-D0h] BYREF void *v73[2]; // [xsp+F8h] [xbp-B8h] BYREF char v74; // [xsp+10Fh] [xbp-A1h] std::string __str; // [xsp+110h] [xbp-A0h] BYREF std::string v76; // [xsp+128h] [xbp-88h] BYREF _BYTE v77[20]; // [xsp+154h] [xbp-5Ch] BYREF sub_1000ADC9C(a1, "rew_state"); sub_100009900(&v76, "-1"); v4 = sub_1000045BC(a2, &v76); v5 = v4; if ( SHIBYTE(v76.__r_.__value_.__r.__words[2]) < 0 ) { operator delete(v76.__r_.__value_.__l.__data_); if ( v5 ) { LABEL_3: v6 = *(_QWORD *)(a1 + 1408); if ( !v6 ) return; goto LABEL_4; } } else if ( v4 ) { goto LABEL_3; } v7 = sub_1000A72B8(a2, "|"); if ( (unsigned int)sub_1002E757C(v7) > 1 ) { v8 = cocos2d::CCArray::stringAtIndex(v7, 0); CString = (char *)cocos2d::CCString::getCString(v8); sub_100009900(&__str, CString); v10 = cocos2d::CCArray::stringAtIndex(v7, 1); v11 = (char *)cocos2d::CCString::getCString(v10); sub_100009900(v73, v11); std::string::basic_string(&v76, &__str, 5u, 0xFFFFFFFFFFFFFFFFLL, (std::allocator *)&__a); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); __str = v76; if ( SHIBYTE(v76.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__a, __str.__r_.__value_.__l.__data_, __str.__r_.__value_.__l.__size_); else __a = __str; v12 = sub_1003065B0("%c%s%s%c%c%s", 112, "C26", "fpYa", 81, 67, "tg"); v13 = (const std::string::value_type *)cocos2d::CCString::getCString(v12); p_a = &__a; std::string::append(&__a, v13); if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) p_a = (std::string *)__a.__r_.__value_.__r.__words[0]; v15 = strlen((const char *)p_a); sub_10011BEE8(p_a, v15, v77); sub_10011C380(v77, &v76); sub_100009900(v70, (char *)&v76); v16 = sub_1000045BC(v70, v73); v17 = v16; if ( v71 < 0 ) { operator delete(v70[0]); if ( v17 ) { LABEL_18: sub_100009900(__p, "59182"); cocos2d::ZipUtils::base64DecodeEnc(v70, &__str, __p); if ( v69 < 0 ) operator delete(__p[0]); v18 = sub_1000A72B8(v70, ":"); if ( (unsigned int)sub_1002E757C(v18) <= 0xB ) { v19 = *(_QWORD *)(a1 + 1408); if ( !v19 ) goto LABEL_61; LABEL_33: (*(void (__fastcall **)(__int64))(*(_QWORD *)v19 + 8LL))(v19); LABEL_61: if ( v71 < 0 ) operator delete(v70[0]); LABEL_63: if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__a.__r_.__value_.__l.__data_); if ( v74 < 0 ) operator delete(v73[0]); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); return; } v21 = cocos2d::CCArray::stringAtIndex(v18, 1); v22 = cocos2d::CCString::intValue(v21); v23 = v22; if ( (int)v22 < 1 ) { v19 = *(_QWORD *)(a1 + 1408); if ( !v19 ) goto LABEL_61; goto LABEL_33; } v24 = (_DWORD *)GameManager::sharedState(v22); v24[167] = v23; v25 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0; v24[166] = (int)v25; v24[165] = v23 + (int)v25; v26 = cocos2d::CCArray::stringAtIndex(v18, 2); v27 = cocos2d::CCString::intValue(v26); v28 = v27; v29 = GameManager::sharedState(v27); if ( v28 != *(_DWORD *)(v29 + 896) - *(_DWORD *)(v29 + 900) ) { v19 = *(_QWORD *)(a1 + 1408); if ( !v19 ) goto LABEL_61; goto LABEL_33; } v30 = cocos2d::CCArray::stringAtIndex(v18, 3); v31 = (char *)cocos2d::CCString::getCString(v30); v32 = sub_100009900(v66, v31); v33 = GameManager::sharedState(v32); if ( *(char *)(v33 + 631) < 0 ) { sub_1000097D0(__dst, *(void **)(v33 + 608), *(_QWORD *)(v33 + 616)); } else { *(_OWORD *)__dst = *(_OWORD *)(v33 + 608); v65 = *(_QWORD *)(v33 + 624); } v34 = sub_1000045BC(v66, __dst); if ( SHIBYTE(v65) < 0 ) operator delete(__dst[0]); if ( v34 ) { v35 = cocos2d::CCArray::stringAtIndex(v18, 4); v36 = cocos2d::CCString::intValue(v35); v37 = v36; v38 = GJAccountManager::sharedState(v36); if ( v37 == *(_DWORD *)(v38 + 352) - *(_DWORD *)(v38 + 356) ) { v39 = cocos2d::CCArray::stringAtIndex(v18, 5); v40 = cocos2d::CCString::intValue(v39); v41 = cocos2d::CCArray::stringAtIndex(v18, 6); v42 = (char *)cocos2d::CCString::getCString(v41); sub_100009900(__dst, v42); v43 = cocos2d::CCArray::stringAtIndex(v18, 7); v44 = cocos2d::CCString::intValue(v43); v45 = cocos2d::CCArray::stringAtIndex(v18, 8); v46 = cocos2d::CCString::intValue(v45); v47 = cocos2d::CCArray::stringAtIndex(v18, 9); v48 = (char *)cocos2d::CCString::getCString(v47); sub_100009900(v62, v48); v49 = cocos2d::CCArray::stringAtIndex(v18, 10); v50 = cocos2d::CCString::intValue(v49); v51 = cocos2d::CCArray::stringAtIndex(v18, 11); v52 = cocos2d::CCString::intValue(v51); v53 = GameStatsManager::sharedState(v52); if ( SHIBYTE(v65) < 0 ) { sub_1000097D0(v60, __dst[0], (unsigned __int64)__dst[1]); } else { *(_OWORD *)v60 = *(_OWORD *)__dst; v61 = v65; } v55 = GameStatsManager::storeRewardState(v53, 1, v44, v40, v60); if ( SHIBYTE(v61) < 0 ) operator delete(v60[0]); v56 = GameStatsManager::sharedState(v55); if ( SHIBYTE(v63) < 0 ) { sub_1000097D0(v58, v62[0], (unsigned __int64)v62[1]); } else { *(_OWORD *)v58 = *(_OWORD *)v62; v59 = v63; } GameStatsManager::storeRewardState(v56, 2, v50, v46, v58); if ( SHIBYTE(v59) < 0 ) operator delete(v58[0]); v57 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 1408); if ( v57 ) (**v57)(v57, v52); if ( SHIBYTE(v63) < 0 ) operator delete(v62[0]); if ( SHIBYTE(v65) < 0 ) operator delete(__dst[0]); goto LABEL_59; } v54 = *(_QWORD *)(a1 + 1408); if ( !v54 ) { LABEL_59: if ( v67 < 0 ) operator delete(v66[0]); goto LABEL_61; } } else { v54 = *(_QWORD *)(a1 + 1408); if ( !v54 ) goto LABEL_59; } (*(void (__fastcall **)(__int64))(*(_QWORD *)v54 + 8LL))(v54); goto LABEL_59; } } else if ( v16 ) { goto LABEL_18; } v20 = *(_QWORD *)(a1 + 1408); if ( v20 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v20 + 8LL))(v20); goto LABEL_63; } v6 = *(_QWORD *)(a1 + 1408); if ( v6 ) LABEL_4: (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 8LL))(v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source