// // sub_10058A510 from 0x10058a510 to 0x10058a5fc (236 bytes) // // 2 xrefs: // > sub_1005E8058 @ 0x1005e805c // > sub_1005E8060 @ 0x1005e8064 // // 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 // __int64 __fastcall sub_10058A510(__int64 a1, int a2) { __int64 v4; // x0 __int64 v5; // x0 int v6; // w19 unsigned int v8; // [xsp+8h] [xbp-38h] BYREF __int64 v9; // [xsp+10h] [xbp-30h] if ( !a1 ) return 0; v4 = qword_100882CA8; if ( !qword_100882CA8 ) { sub_100588CAC(3); qword_100882CA8 = sub_1005DEB20(sub_10058A418, sub_10058A47C); sub_100588CAC(2); v4 = qword_100882CA8; if ( !qword_100882CA8 ) return 0; } v9 = a1; v8 = a2 & 0xFFFF7FFF; v5 = sub_1005DF1B8(v4, &v8); if ( !v5 ) return 0; if ( (a2 & 0x8000) == 0 ) { v6 = -1; while ( *(_DWORD *)(v5 + 4) ) { if ( ++v6 > 9 ) return 0; v9 = *(_QWORD *)(v5 + 16); v5 = sub_1005DF1B8(qword_100882CA8, &v8); if ( !v5 ) return 0; } } return *(_QWORD *)(v5 + 16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source