// // -[iRate init] from 0x10044a4a0 to 0x10044a8ec (1100 bytes) // // 2 xrefs: // > -[iRate init] @ 0x10044a4cc // > @ 0x1009cf4f0 // // 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 11:05:17 +0000 // iRate *__cdecl -[iRate init](iRate *self, SEL a2) { iRate *v2; // x19 NSNotificationCenter *v3; // x20 UIApplication *v4; // x20 NSNotificationCenter *v5; // x20 NSLocale *v6; // x20 id v7; // x21 NSString *v8; // x20 const __CFString *v9; // x2 NSString *v10; // x20 NSString *v11; // x21 NSUInteger v12; // x22 NSBundle *v13; // x20 id v14; // x21 NSString *v15; // x20 NSUInteger v16; // x21 NSBundle *v17; // x20 id v18; // x21 NSBundle *v19; // x20 id v20; // x21 NSString *v21; // x20 NSUInteger v22; // x21 NSBundle *v23; // x20 id v24; // x21 NSBundle *v25; // x20 NSString *v26; // x21 double v27; // d0 double v28; // d0 double v29; // d0 objc_super v31; // [xsp+0h] [xbp-30h] BYREF v31.receiver = self; v31.super_class = (Class)&OBJC_CLASS___iRate; v2 = -[iRate init](&v31, "init"); if ( !v2 ) return v2; v3 = objc_retainAutoreleasedReturnValue(+[NSNotificationCenter defaultCenter](&OBJC_CLASS___NSNotificationCenter, "defaultCenter")); -[NSNotificationCenter addObserver:selector:name:object:]( v3, "addObserver:selector:name:object:", v2, "applicationWillEnterForeground", UIApplicationWillEnterForegroundNotification, 0); objc_release(v3); v4 = objc_retainAutoreleasedReturnValue(+[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, "sharedApplication")); -[iRate setPreviousOrientation:]( v2, "setPreviousOrientation:", -[UIApplication statusBarOrientation](v4, "statusBarOrientation")); objc_release(v4); v5 = objc_retainAutoreleasedReturnValue(+[NSNotificationCenter defaultCenter](&OBJC_CLASS___NSNotificationCenter, "defaultCenter")); -[NSNotificationCenter addObserver:selector:name:object:]( v5, "addObserver:selector:name:object:", v2, "willRotate", UIDeviceOrientationDidChangeNotification, 0); objc_release(v5); v6 = objc_retainAutoreleasedReturnValue(+[NSLocale currentLocale](&OBJC_CLASS___NSLocale, "currentLocale")); v7 = objc_retainAutoreleasedReturnValue(-[NSLocale objectForKey:](v6, "objectForKey:", NSLocaleCountryCode)); -[iRate setAppStoreCountry:](v2, "setAppStoreCountry:", v7); objc_release(v7); objc_release(v6); v8 = objc_retainAutoreleasedReturnValue(-[iRate appStoreCountry](v2, "appStoreCountry")); LOBYTE(v7) = -[NSString isEqualToString:](v8, "isEqualToString:", CFSTR("150")); objc_release(v8); if ( ((unsigned __int8)v7 & 1) != 0 ) { v9 = CFSTR("eu"); LABEL_6: -[iRate setAppStoreCountry:](v2, "setAppStoreCountry:", v9); goto LABEL_7; } v10 = objc_retainAutoreleasedReturnValue(-[iRate appStoreCountry](v2, "appStoreCountry")); v11 = objc_retainAutoreleasedReturnValue( -[NSString stringByReplacingOccurrencesOfString:withString:options:range:]( v10, "stringByReplacingOccurrencesOfString:withString:options:range:", CFSTR("[A-Za-z]{2}"), &stru_1009C7ED8, 1024, 0, 2)); v12 = -[NSString length](v11, "length"); objc_release(v11); objc_release(v10); if ( v12 ) { v9 = CFSTR("us"); goto LABEL_6; } LABEL_7: v13 = objc_retainAutoreleasedReturnValue(+[NSBundle mainBundle](&OBJC_CLASS___NSBundle, "mainBundle")); v14 = objc_retainAutoreleasedReturnValue( -[NSBundle objectForInfoDictionaryKey:]( v13, "objectForInfoDictionaryKey:", CFSTR("CFBundleShortVersionString"))); -[iRate setApplicationVersion:](v2, "setApplicationVersion:", v14); objc_release(v14); objc_release(v13); v15 = objc_retainAutoreleasedReturnValue(-[iRate applicationVersion](v2, "applicationVersion")); v16 = -[NSString length](v15, "length"); objc_release(v15); if ( !v16 ) { v17 = objc_retainAutoreleasedReturnValue(+[NSBundle mainBundle](&OBJC_CLASS___NSBundle, "mainBundle")); v18 = objc_retainAutoreleasedReturnValue(-[NSBundle objectForInfoDictionaryKey:](v17, "objectForInfoDictionaryKey:", kCFBundleVersionKey)); -[iRate setApplicationVersion:](v2, "setApplicationVersion:", v18); objc_release(v18); objc_release(v17); } v19 = objc_retainAutoreleasedReturnValue(+[NSBundle mainBundle](&OBJC_CLASS___NSBundle, "mainBundle")); v20 = objc_retainAutoreleasedReturnValue(-[NSBundle objectForInfoDictionaryKey:](v19, "objectForInfoDictionaryKey:", CFSTR("CFBundleDisplayName"))); -[iRate setApplicationName:](v2, "setApplicationName:", v20); objc_release(v20); objc_release(v19); v21 = objc_retainAutoreleasedReturnValue(-[iRate applicationName](v2, "applicationName")); v22 = -[NSString length](v21, "length"); objc_release(v21); if ( !v22 ) { v23 = objc_retainAutoreleasedReturnValue(+[NSBundle mainBundle](&OBJC_CLASS___NSBundle, "mainBundle")); v24 = objc_retainAutoreleasedReturnValue(-[NSBundle objectForInfoDictionaryKey:](v23, "objectForInfoDictionaryKey:", kCFBundleNameKey)); -[iRate setApplicationName:](v2, "setApplicationName:", v24); objc_release(v24); objc_release(v23); } v25 = objc_retainAutoreleasedReturnValue(+[NSBundle mainBundle](&OBJC_CLASS___NSBundle, "mainBundle")); v26 = objc_retainAutoreleasedReturnValue(-[NSBundle bundleIdentifier](v25, "bundleIdentifier")); -[iRate setApplicationBundleID:](v2, "setApplicationBundleID:", v26); objc_release(v26); objc_release(v25); -[iRate setUseAllAvailableLanguages:](v2, "setUseAllAvailableLanguages:", 1); -[iRate setOnlyPromptIfLatestVersion:](v2, "setOnlyPromptIfLatestVersion:", 1); -[iRate setOnlyPromptIfMainWindowIsAvailable:](v2, "setOnlyPromptIfMainWindowIsAvailable:", 1); -[iRate setPromptAtLaunch:](v2, "setPromptAtLaunch:", 1); -[iRate setUsesUntilPrompt:](v2, "setUsesUntilPrompt:", 10); -[iRate setEventsUntilPrompt:](v2, "setEventsUntilPrompt:", 10); LODWORD(v27) = 10.0; -[iRate setDaysUntilPrompt:](v2, "setDaysUntilPrompt:", v27); LODWORD(v28) = 0; -[iRate setUsesPerWeekForPrompt:](v2, "setUsesPerWeekForPrompt:", v28); LODWORD(v29) = 1.0; -[iRate setRemindPeriod:](v2, "setRemindPeriod:", v29); -[iRate setVerboseLogging:](v2, "setVerboseLogging:", 0); -[iRate setPreviewMode:](v2, "setPreviewMode:", 0); -[iRate performSelectorOnMainThread:withObject:waitUntilDone:]( v2, "performSelectorOnMainThread:withObject:waitUntilDone:", "applicationLaunched", 0, 0); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source