// // sub_B998CC from 0xb998cc to 0xb99a3c (368 bytes) // // 3 xrefs: // > sub_B71478 @ 0xb71538 // > sub_B9A2F0 @ 0xb9a680 // > sub_BAF794 @ 0xbaf938 // // 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_B998CC(__int64 a1, const void *a2, size_t a3, __int64 a4) { __int64 v5; // x19 __int64 *v9; // x25 _QWORD *v10; // x19 _QWORD *v11; // x19 void *v12; // x0 void *v13; // x24 __int64 v14; // x1 v5 = *(_QWORD *)a1; v9 = *(__int64 **)(v5 + 8 * (*(__int64 (__fastcall **)(const void *, size_t, _QWORD))(a1 + 8))(a2, a3, *(int *)(a1 + 32))); v10 = (_QWORD *)*v9; if ( *v9 ) { while ( !(*(__int64 (__fastcall **)(_QWORD, _QWORD, const void *, size_t))(a1 + 16))( *(_QWORD *)(*v10 + 8LL), *(_QWORD *)(*v10 + 16LL), a2, a3) ) { v10 = (_QWORD *)v10[2]; if ( !v10 ) goto LABEL_6; } sub_B994E4((__int64)v9, v10, a1); --*(_QWORD *)(a1 + 40); } LABEL_6: v11 = off_1231000(0x18u); if ( !v11 ) return 0; v12 = off_1231000(a3); v13 = v12; if ( !v12 ) { off_1231008(v11); return 0; } memcpy(v12, a2, a3); v11[1] = v13; v14 = v9[1]; v11[2] = a3; *v11 = a4; if ( (unsigned int)sub_B9941C(v9, v14, (__int64)v11) ) { ++*(_QWORD *)(a1 + 40); return a4; } else { off_1231008((void *)v11[1]); off_1231008(v11); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source