// // sub_1004B4EC4 from 0x1004b4ec4 to 0x1004b4fac (232 bytes) // // 1 xrefs: // > sub_1004AECD4 @ 0x1004aed6c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // _QWORD *__fastcall sub_1004B4EC4(_QWORD *result, __int64 a2) { int v2; // w8 __int64 v3; // x8 __int64 v4; // x9 __int128 v5; // q0 __int128 v6; // q1 __int128 v7; // q2 __int64 v8; // x9 _QWORD *v9; // x9 __int64 v10; // t1 __int64 v11; // x9 __int64 v12; // x9 __int64 v13; // x9 __int64 v14; // x9 v2 = *(_DWORD *)(a2 + 24); if ( (v2 & 0x400) == 0 ) return result; *(_DWORD *)(a2 + 24) = v2 & 0xFFFFFBFF; if ( (v2 & 0x20) == 0 ) { v3 = result[3]; v4 = *(_QWORD *)(v3 + 72); result[3] = v4; if ( v4 ) *(_QWORD *)(v4 + 48) = 0; *(_QWORD *)(v3 + 72) = 0; *(_DWORD *)(v3 + 24) &= ~0x20u; v6 = *(_OWORD *)(a2 + 48); v5 = *(_OWORD *)(a2 + 64); v7 = *(_OWORD *)(a2 + 32); *(_OWORD *)(v3 + 16) = *(_OWORD *)(a2 + 16); *(_OWORD *)(v3 + 48) = v6; *(_OWORD *)v3 = *(_OWORD *)a2; *(_OWORD *)(v3 + 64) = v5; *(_OWORD *)(v3 + 32) = v7; *(_DWORD *)(v3 + 24) |= 0x400u; v8 = *(_QWORD *)(v3 + 48); if ( v8 ) { result = (_QWORD *)(v8 + 72); if ( *(_QWORD *)(v8 + 72) != a2 ) { v10 = *(_QWORD *)(v8 + 56); v9 = (_QWORD *)(v8 + 56); if ( v10 == a2 ) result = v9; else result = v9 + 1; } } *result = v3; v11 = *(_QWORD *)(v3 + 72); if ( v11 ) *(_QWORD *)(v11 + 48) = v3; v12 = *(_QWORD *)(v3 + 56); if ( v12 ) *(_QWORD *)(v12 + 48) = v3; v13 = *(_QWORD *)(v3 + 64); if ( !v13 ) return result; LABEL_18: *(_QWORD *)(v13 + 48) = v3; return result; } v3 = *(_QWORD *)(a2 + 48); v14 = *(_QWORD *)(a2 + 72); if ( v3 ) { *(_QWORD *)(v3 + 72) = v14; v13 = *(_QWORD *)(a2 + 72); if ( !v13 ) return result; goto LABEL_18; } result[3] = v14; if ( v14 ) *(_QWORD *)(v14 + 48) = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source