// // sub_774834 from 0x774834 to 0x7748a0 (108 bytes) // // 31 xrefs: // > PlatformToolbox::spriteFromSavedFile @ 0x2be5b2 // > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x2e5198 // > sub_2F0144 @ 0x2f017c // > ObjectManager::replaceAllOccurencesOfString @ 0x2f1f94 // > ObjectManager::replaceAllOccurencesOfString @ 0x2f20cc // > sub_2F622C @ 0x2f6266 // > CommentCell::loadFromComment @ 0x3363c6 // > sub_352E70 @ 0x352eaa // > ShareLevelLayer::init @ 0x3b8f78 // > LevelBrowserLayer::getItemsMatchingSearch @ 0x3bb8b0 // > AnimatedGameObject::displayFrameChanged @ 0x3e5ac8 // > InfoLayer::init @ 0x4307bc // > sub_456D56 @ 0x456d64 // > sub_456F20 @ 0x456f4a // > sub_456F20 @ 0x456faa // > MusicSearchResult::getFilesMatchingSearch @ 0x459254 // > SFXSearchResult::updateObjects @ 0x45da40 // > sub_46B7B4 @ 0x46b7ee // > FriendRequestPopup::loadFromGJFriendRequest @ 0x4acf10 // > SecretLayer::onSubmit @ 0x4ca8bc // > GauntletLayer::setupGauntlet @ 0x4da766 // > sub_4E6B4C @ 0x4e6b84 // > SecretLayer2::onSubmit @ 0x4ed402 // > SecretLayer4::onSubmit @ 0x4f1168 // > GJMultiplayerManager::ProcessHttpRequest @ 0x510706 // > ShareListLayer::init @ 0x592c8c // > SecretGame01Layer::resetGame @ 0x59e192 // > cocos2d::CCFileUtils::addSuffix @ 0x5de790 // > cocos2d::CCFileUtilsAndroid::isAbsolutePath @ 0x5e1400 // > cocos2d::CCFileUtilsAndroid::isFileExist @ 0x5e148a // > sub_5FC64C @ 0x5fc684 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_774834(_DWORD *a1, unsigned __int8 **a2, unsigned int a3) { unsigned __int8 *v3; // r1 unsigned int v4; // r3 unsigned int v5; // r4 unsigned int v7; // r7 unsigned __int8 *v8; // r6 const void *v9; // r8 int v10; // r10 unsigned int v11; // r4 size_t v12; // r9 int v13; // t1 unsigned int v14; // r3 int v15; // r0 v3 = *a2; v4 = *((_DWORD *)v3 - 3); v5 = *(_DWORD *)(*a1 - 12); if ( v4 ) { if ( v4 > v5 ) return -1; v7 = v5 - v4; if ( a3 > v5 - v4 ) { return -1; } else { v8 = (unsigned __int8 *)(*a1 + a3); v9 = v3 + 1; v10 = *v3; v11 = a3 + 1; v12 = v4 - 1; while ( 1 ) { v13 = *v8++; v14 = v11; if ( v13 == v10 ) { v15 = memcmp(v8, v9, v12); v14 = v11; if ( !v15 ) break; } ++v11; if ( v14 > v7 ) return -1; } return v11 - 1; } } else if ( a3 > v5 ) { return -1; } else { return a3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source