// // UILayer::resetAllButtons from 0x1004c2f20 to 0x1004c3007 (231 bytes) // // 5 xrefs: // > PlayLayer::showEndLayer @ 0x100082b33 // > sub_100084250 @ 0x100084283 // > PlayLayer::pauseGame @ 0x10008da7f // > PlayLayer::resumeAndRestart @ 0x10008db9a // > PlayLayer::resume @ 0x10008dd64 // // 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:06 +0000 // __int64 __fastcall UILayer::resetAllButtons(__int64 a1) { __int64 result; // rax __int64 *v2; // r15 unsigned __int64 v3; // r12 __int64 v4; // r13 __int64 v5; // rdi __int64 v6; // rdi _QWORD v7[7]; // [rsp-38h] [rbp-38h] BYREF *(_QWORD *)(a1 + 584) = -1; *(_WORD *)(a1 + 578) = 0; *(_BYTE *)(a1 + 580) = 0; result = *(_QWORD *)(a1 + 616); if ( result ) { v7[0] = *(_QWORD *)(a1 + 616); result = *(_QWORD *)(result + 56); if ( *(_DWORD *)result ) { v2 = *(__int64 **)(result + 16); v3 = (unsigned __int64)&v2[*(unsigned int *)result - 1]; do { v4 = *v2; if ( !*v2 ) break; *(_DWORD *)(v4 + 352) = -1; *(_WORD *)(v4 + 383) = 0; v5 = *(_QWORD *)(v4 + 320); if ( v5 ) { BYTE6(v7[0]) = -1; WORD2(v7[0]) = -1; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 960LL))(v5, (char *)v7 + 4); } result = *(unsigned __int8 *)(v4 + 381) ^ 1u; v6 = *(_QWORD *)(v4 + 8 * result + 320); if ( v6 ) { BYTE2(v7[0]) = -1; LOWORD(v7[0]) = -1; result = (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v6 + 960LL))(v6, v7); } ++v2; } while ( (unsigned __int64)v2 <= v3 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source