// // UILayer::doPause from 0x1004c4cd0 to 0x1004c4ddb (267 bytes) // // 3 xrefs: // > UILayer::onPause @ 0x1004c27ed // > UILayer::keyBackClicked @ 0x1004c4c61 // > sub_1004C4C70 @ 0x1004c4cc8 // // This function is hookable on this platform (idp: pc, 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 12:31:07 +0000 // __int64 __fastcall UILayer::doPause(__int64 a1) { __int64 v1; // rax __int64 v2; // rax unsigned int *v3; // rax __int64 *v4; // r15 unsigned __int64 v5; // r12 __int64 v6; // r13 __int64 v7; // rdi __int64 v8; // rdi __int64 result; // rax __int64 v10; // rax _QWORD v11[6]; // [rsp+0h] [rbp-30h] BYREF v11[0] = v1; *(_QWORD *)(a1 + 584) = -1; v2 = *(_QWORD *)(a1 + 616); if ( v2 ) { v3 = *(unsigned int **)(v2 + 56); if ( *v3 ) { v4 = *((__int64 **)v3 + 2); v5 = (unsigned __int64)&v4[*v3 - 1]; do { v6 = *v4; if ( !*v4 ) break; *(_DWORD *)(v6 + 352) = -1; *(_WORD *)(v6 + 383) = 0; v7 = *(_QWORD *)(v6 + 320); if ( v7 ) { BYTE6(v11[0]) = -1; WORD2(v11[0]) = -1; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v7 + 960LL))(v7, (char *)v11 + 4); } v8 = *(_QWORD *)(v6 + 8LL * (*(unsigned __int8 *)(v6 + 381) ^ 1u) + 320); if ( v8 ) { BYTE2(v11[0]) = -1; LOWORD(v11[0]) = -1; (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v8 + 960LL))(v8, v11); } ++v4; } while ( (unsigned __int64)v4 <= v5 ); } } result = GameManager::sharedState(); if ( *(_QWORD *)(result + 544) ) { v10 = GameManager::sharedState(); PlayLayer::pauseGame(*(_BYTE **)(v10 + 544), 0); result = *(_QWORD *)(GameManager::sharedState() + 544); ++*(_DWORD *)(result + 1924); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source