// // sub_1004B8B0C from 0x1004b8b0c to 0x1004b8c48 (316 bytes) // // 1 xrefs: // > DeathStatsPopup::init @ 0x1004b8800 // // 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:06:15 +0000 // _DWORD *__fastcall sub_1004B8B0C(__int64 a1) { __int64 v2; // x0 int v3; // w22 void *v4; // x21 const char *v5; // x0 int v6; // w20 __int64 v7; // x0 int v8; // w23 void *v9; // x22 const char *v10; // x0 __int64 v11; // x21 _DWORD *result; // x0 __int64 v13; // x0 __int64 v14; // x0 _QWORD v15[2]; // [xsp+8h] [xbp-48h] BYREF char v16; // [xsp+1Fh] [xbp-31h] v2 = *(_QWORD *)(a1 + 1024); if ( !v2 ) goto LABEL_14; CCTextInputNode::getString(v2, v15); v3 = v16; v4 = (void *)v15[0]; if ( v16 >= 0 ) v5 = (const char *)v15; else v5 = (const char *)v15[0]; v6 = atoi(v5); if ( v3 < 0 ) operator delete(v4); if ( v6 > 0 ) { v7 = *(_QWORD *)(a1 + 1032); if ( v7 ) { CCTextInputNode::getString(v7, v15); v8 = v16; v9 = (void *)v15[0]; if ( v16 >= 0 ) v10 = (const char *)v15; else v10 = (const char *)v15[0]; v11 = atoi(v10); if ( v8 < 0 ) operator delete(v9); } else { v11 = 0; } v13 = GameLevelManager::sharedState(); sub_1000B3F20(v13, v6, v11); *(_DWORD *)(a1 + 1048) = v6; *(_DWORD *)(a1 + 1052) = v11; *(_DWORD *)(a1 + 1056) = 0; v14 = *(_QWORD *)(a1 + 1040); if ( v14 ) (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v14 + 928LL))(v14, "Fetching..."); cocos2d::CCNode::unschedule((unsigned int *)a1, (unsigned __int64)sub_1004B8D30, 0); return cocos2d::CCNode::schedule(a1, (unsigned __int64)sub_1004B8D30, 0, 0.15); } else { LABEL_14: result = *(_DWORD **)(a1 + 1040); if ( result ) return (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *, const char *))(*(_QWORD *)result + 928LL))( result, "Enter a valid level ID."); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source