// // PlayerObject::releaseButton from 0x1004023b0 to 0x100402703 (851 bytes) // // 32 xrefs: // > GJBaseGameLayer::toggleDualMode @ 0x100101ac7 // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x10010786c // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x10010788f // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x1001078a0 // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x1001078b1 // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x100107963 // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x100107981 // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x100107992 // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x1001079a3 // > GJBaseGameLayer::handleButton @ 0x100128fa0 // > GJBaseGameLayer::handleButton @ 0x100129000 // > PlayerObject::releaseAllButtons @ 0x10040749e // > PlayerObject::releaseAllButtons @ 0x1004074ab // > PlayerObject::releaseAllButtons @ 0x1004074b8 // > PlayerObject::releaseAllButtons @ 0x1004074cb // > sub_1004074D0 @ 0x100407514 // > PlayerObject::disablePlayerControls @ 0x1004075dc // > PlayerObject::disablePlayerControls @ 0x1004075e9 // > PlayerObject::disablePlayerControls @ 0x1004075f6 // > PlayerObject::disablePlayerControls @ 0x100407603 // > PlayerObject::loadFromCheckpoint @ 0x100409f84 // > PlayerObject::loadFromCheckpoint @ 0x100409f91 // > PlayerObject::loadFromCheckpoint @ 0x100409f9e // > PlayerObject::loadFromCheckpoint @ 0x100409fab // > PlayerObject::loadFromCheckpoint @ 0x100409ffa // > PlayerObject::loadFromCheckpoint @ 0x10040a007 // > PlayerObject::loadFromCheckpoint @ 0x10040a014 // > PlayerObject::loadFromCheckpoint @ 0x10040a029 // > MenuGameLayer::tryJump @ 0x1004f8ee3 // > MenuGameLayer::resetPlayer @ 0x1004f9594 // > MenuGameLayer::resetPlayer @ 0x1004f9911 // > MenuGameLayer::resetPlayer @ 0x1004f9980 // // 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:30:03 +0000 // __int64 __fastcall PlayerObject::releaseButton(__int64 a1, int a2, __m128 a3, __m128 a4) { _QWORD *v4; // r15 char v5; // al __int64 v6; // rax _QWORD *v7; // r15 __int64 *v8; // r14 int v9; // eax __int64 *v10; // r12 __int64 v11; // rax __int64 v12; // rax _QWORD *v13; // r15 __int64 *v14; // r14 int v15; // eax __int64 *v16; // r12 __int64 v17; // rax _QWORD *v18; // rax _QWORD *v19; // r12 _QWORD *v20; // r13 __int64 v21; // rax v5 = *(_BYTE *)(a1 + 2936); if ( a2 != 5 ) { if ( !v5 ) { v18 = *(_QWORD **)(a1 + 2920); if ( v18 ) { while ( 1 ) { while ( 1 ) { v4 = v18; if ( *((_DWORD *)v18 + 7) <= a2 ) break; v18 = (_QWORD *)*v18; v19 = v4; if ( !*v4 ) goto LABEL_45; } if ( *((_DWORD *)v18 + 7) >= a2 ) break; v18 = (_QWORD *)v18[1]; if ( !v18 ) { v19 = v4 + 1; goto LABEL_45; } } } else { v19 = (_QWORD *)(a1 + 2920); v4 = (_QWORD *)(a1 + 2920); LABEL_45: v20 = v4; v4 = operator new(0x28u); *((_DWORD *)v4 + 7) = a2; *((_BYTE *)v4 + 32) = 0; a3 = 0; *(_OWORD *)v4 = 0; v4[2] = v20; *v19 = v4; v21 = **(_QWORD **)(a1 + 2912); if ( v21 ) *(_QWORD *)(a1 + 2912) = v21; sub_10001B680(*(__int64 **)(a1 + 2920), v4); ++*(_QWORD *)(a1 + 2928); } *((_BYTE *)v4 + 32) = 0; } if ( *(_BYTE *)(a1 + 2531) ) { LODWORD(v4) = 0; return (unsigned int)v4; } if ( *(_BYTE *)(a1 + 2365) == 1 ) sub_1003F05E0(a1); LOBYTE(v4) = 1; if ( a2 == 3 ) { *(_BYTE *)(a1 + 2720) = 0; if ( *(double *)(a1 + 2712) <= 0.0 ) return (unsigned int)v4; } else { if ( a2 != 2 ) { if ( a2 == 1 ) { *(_WORD *)(a1 + 2365) = 0; *(_BYTE *)(a1 + 2388) = 1; if ( *(_BYTE *)(a1 + 2460) == 1 ) PlayerObject::stopDashing(a1, a3, a4); } return (unsigned int)v4; } *(_BYTE *)(a1 + 2721) = 0; if ( *(double *)(a1 + 2712) >= 0.0 ) return (unsigned int)v4; } *(_BYTE *)(a1 + 2808) = 0; return (unsigned int)v4; } if ( !v5 ) { v6 = *(_QWORD *)(a1 + 2920); if ( v6 ) { while ( 1 ) { while ( 1 ) { v8 = (__int64 *)v6; v9 = *(_DWORD *)(v6 + 28); if ( v9 < 3 ) break; v6 = *v8; v7 = v8; if ( !*v8 ) goto LABEL_10; } if ( v9 == 2 ) break; v6 = v8[1]; if ( !v6 ) { v7 = v8 + 1; goto LABEL_10; } } } else { v7 = (_QWORD *)(a1 + 2920); v8 = (__int64 *)(a1 + 2920); LABEL_10: v10 = v8; v8 = (__int64 *)operator new(0x28u); *((_DWORD *)v8 + 7) = 2; *((_BYTE *)v8 + 32) = 0; *(_OWORD *)v8 = 0; v8[2] = (__int64)v10; *v7 = v8; v11 = **(_QWORD **)(a1 + 2912); if ( v11 ) *(_QWORD *)(a1 + 2912) = v11; sub_10001B680(*(__int64 **)(a1 + 2920), v8); ++*(_QWORD *)(a1 + 2928); } *((_BYTE *)v8 + 32) = 0; } if ( !*(_BYTE *)(a1 + 2531) ) { if ( *(_BYTE *)(a1 + 2365) == 1 ) sub_1003F05E0(a1); *(_BYTE *)(a1 + 2721) = 0; if ( *(double *)(a1 + 2712) < 0.0 ) *(_BYTE *)(a1 + 2808) = 0; } if ( !*(_BYTE *)(a1 + 2936) ) { v12 = *(_QWORD *)(a1 + 2920); if ( v12 ) { while ( 1 ) { while ( 1 ) { v14 = (__int64 *)v12; v15 = *(_DWORD *)(v12 + 28); if ( v15 < 4 ) break; v12 = *v14; v13 = v14; if ( !*v14 ) goto LABEL_27; } if ( v15 == 3 ) break; v12 = v14[1]; if ( !v12 ) { v13 = v14 + 1; goto LABEL_27; } } } else { v13 = (_QWORD *)(a1 + 2920); v14 = (__int64 *)(a1 + 2920); LABEL_27: v16 = v14; v14 = (__int64 *)operator new(0x28u); *((_DWORD *)v14 + 7) = 3; *((_BYTE *)v14 + 32) = 0; *(_OWORD *)v14 = 0; v14[2] = (__int64)v16; *v13 = v14; v17 = **(_QWORD **)(a1 + 2912); if ( v17 ) *(_QWORD *)(a1 + 2912) = v17; sub_10001B680(*(__int64 **)(a1 + 2920), v14); ++*(_QWORD *)(a1 + 2928); } *((_BYTE *)v14 + 32) = 0; } if ( !*(_BYTE *)(a1 + 2531) ) { if ( *(_BYTE *)(a1 + 2365) == 1 ) sub_1003F05E0(a1); *(_BYTE *)(a1 + 2720) = 0; if ( *(double *)(a1 + 2712) > 0.0 ) *(_BYTE *)(a1 + 2808) = 0; } LODWORD(v4) = *(unsigned __int8 *)(a1 + 2531); LOBYTE(v4) = (unsigned __int8)v4 ^ 1; return (unsigned int)v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source