// // sub_1001EEF50 from 0x1001eef50 to 0x1001ef2e8 (920 bytes) // // 5 xrefs: // > AccountLayer::customSetup @ 0x1001ee9dc // > sub_1001EF344 @ 0x1001ef358 // > sub_1001EF3CC @ 0x1001ef3e0 // > AccountLayer::accountStatusChanged @ 0x1001ef458 // > sub_1001EF45C @ 0x1001ef464 // // 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:00:37 +0000 // __int64 __fastcall sub_1001EEF50(__int64 a1, int a2) { __int64 v4; // x0 __int64 *v5; // x22 __int64 v6; // x0 __int64 v7; // x0 __int64 v8; // x21 __int64 v9; // x21 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x21 __int64 v13; // x21 __int64 v14; // x21 const void **v15; // x8 __int64 v16; // x0 const char *p_dst; // x8 __int64 v18; // x0 __int64 CString; // x0 __int64 v20; // x21 const char *v21; // x8 __int64 v22; // x0 __int64 v23; // x0 __int64 v24; // x21 __int64 v25; // x0 __int64 v26; // x22 __int64 v27; // x0 __int64 v28; // x0 __int64 v29; // x21 __int64 v30; // x0 __int64 result; // x0 __int64 v32; // x19 __int64 v33; // x0 __int64 v34; // x0 const void *v35[2]; // [xsp+8h] [xbp-88h] BYREF char v36; // [xsp+1Fh] [xbp-71h] const void *v37[2]; // [xsp+20h] [xbp-70h] BYREF char v38; // [xsp+37h] [xbp-59h] const void *v39[2]; // [xsp+38h] [xbp-58h] BYREF char v40; // [xsp+4Fh] [xbp-41h] __int128 __dst; // [xsp+50h] [xbp-40h] BYREF __int64 v42; // [xsp+60h] [xbp-30h] v4 = GJAccountManager::sharedState(a1); if ( *(_DWORD *)(v4 + 352) == *(_DWORD *)(v4 + 356) ) { v5 = (__int64 *)(a1 + 648); v6 = TextArea::colorAllCharactersTo(*(_QWORD *)(a1 + 648), 0xFFFFFF); goto LABEL_14; } v7 = GJAccountManager::sharedState(v4); if ( *(char *)(v7 + 391) < 0 ) { sub_1000097D0(&__dst, *(void **)(v7 + 368), *(_QWORD *)(v7 + 376)); } else { __dst = *(_OWORD *)(v7 + 368); v42 = *(_QWORD *)(v7 + 384); } if ( v42 >= 0 ) v8 = SHIBYTE(v42); else v8 = *((_QWORD *)&__dst + 1); if ( (SHIBYTE(v42) & 0x8000000000000000LL) != 0 ) operator delete((void *)__dst); v5 = (__int64 *)(a1 + 648); v6 = TextArea::colorAllCharactersTo(*(_QWORD *)(a1 + 648), 0xFFFFFF); if ( !v8 ) { LABEL_14: v11 = GJAccountManager::sharedState(v6); v12 = *(_QWORD *)(a1 + 640); if ( *(_DWORD *)(v11 + 352) == *(_DWORD *)(v11 + 356) ) { (*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v12 + 928LL))(*(_QWORD *)(a1 + 640), "Not logged in"); v13 = *v5; sub_100009900(v35, "Create an account to back up\nand load your data from the cloud"); TextArea::setString(v13, v35); v14 = 0; if ( (v36 & 0x80000000) == 0 ) goto LABEL_34; v15 = v35; goto LABEL_33; } v16 = GJAccountManager::sharedState(v11); if ( *(char *)(v16 + 351) < 0 ) { sub_1000097D0(&__dst, *(void **)(v16 + 328), *(_QWORD *)(v16 + 336)); } else { __dst = *(_OWORD *)(v16 + 328); v42 = *(_QWORD *)(v16 + 344); } p_dst = (const char *)&__dst; if ( v42 < 0 ) p_dst = (const char *)__dst; v18 = sub_1003065B0("Linked to account: %s", p_dst); CString = cocos2d::CCString::getCString(v18); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 928LL))(v12, CString); if ( SHIBYTE(v42) < 0 ) operator delete((void *)__dst); v20 = *v5; sub_100009900(v37, "Login required"); TextArea::setString(v20, v37); v14 = 0; if ( v38 < 0 ) { v15 = v37; LABEL_33: operator delete((void *)*v15); goto LABEL_34; } goto LABEL_34; } v9 = *(_QWORD *)(a1 + 640); v10 = GJAccountManager::sharedState(v6); if ( *(char *)(v10 + 351) < 0 ) { sub_1000097D0(&__dst, *(void **)(v10 + 328), *(_QWORD *)(v10 + 336)); } else { __dst = *(_OWORD *)(v10 + 328); v42 = *(_QWORD *)(v10 + 344); } v21 = (const char *)&__dst; if ( v42 < 0 ) v21 = (const char *)__dst; v22 = sub_1003065B0("Linked to account: %s", v21); v23 = cocos2d::CCString::getCString(v22); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 928LL))(v9, v23); if ( SHIBYTE(v42) < 0 ) operator delete((void *)__dst); v24 = *v5; sub_100009900(v39, ""); TextArea::setString(v24, v39); v14 = 1; if ( v40 < 0 ) { v15 = v39; goto LABEL_33; } LABEL_34: v25 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 656) + 344LL))( *(_QWORD *)(a1 + 656), (unsigned int)v14 ^ 1); v26 = *(_QWORD *)(a1 + 664); v27 = GJAccountManager::sharedState(v25); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v26 + 344LL))( v26, *(_DWORD *)(v27 + 352) == *(_DWORD *)(v27 + 356)); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 672) + 344LL))(*(_QWORD *)(a1 + 672), v14); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 680) + 344LL))(*(_QWORD *)(a1 + 680), v14); v28 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 688) + 344LL))( *(_QWORD *)(a1 + 688), (unsigned int)v14 ^ 1); v29 = *(_QWORD *)(a1 + 696); v30 = GJAccountManager::sharedState(v28); result = (*(__int64 (__fastcall **)(__int64, bool))(*(_QWORD *)v29 + 344LL))( v29, *(_DWORD *)(v30 + 352) != *(_DWORD *)(v30 + 356)); if ( a2 ) { if ( (*(_BYTE *)(a1 + 716) & 1) == 0 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 672) + 1056LL))(*(_QWORD *)(a1 + 672), 0); v32 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 672) + 1072LL))(*(_QWORD *)(a1 + 672)); v33 = *(_QWORD *)(v32 + 648); memset(&__dst, 125, 3); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v33 + 960LL))(v33, &__dst); v34 = *(_QWORD *)(v32 + 624); memset(&__dst, 125, 3); return (*(__int64 (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v34 + 1072LL))(v34, &__dst); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source