// // sub_180017410 from 0x180017410 to 0x180017627 (535 bytes) // // 2 xrefs: // > sub_180017400 @ 0x180017400 // > @ 0x1801f71dc // // 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_180017410(__int64 a1, int a2, _QWORD *a3) { __int64 v3; // rax __int64 v5; // r12 int v6; // eax _BYTE *v7; // rbx char v8; // al _DWORD *v9; // rbx bool i; // zf _DWORD *v11; // r14 unsigned int v12; // r15d int v13; // eax char v14; // r13 unsigned int *v15; // rbx signed int v16; // edi signed int v17; // ebp bool v18; // zf __int64 result; // rax __int64 v20; // rdi __int64 v21; // rax int v22; // [rsp+30h] [rbp-58h] _DWORD *v23; // [rsp+40h] [rbp-48h] v3 = *(_QWORD *)(a1 + 384); v5 = a2; if ( v3 ) v6 = *(_DWORD *)(v3 + 4LL * a2); else v6 = a2; v7 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 376) + 64LL) + *(int *)(*(_QWORD *)(*(_QWORD *)(a1 + 376) + 56LL) + 4LL * v6)); v8 = *v7; v9 = v7 + 8; for ( i = (v8 & 1) == 0; ; i = v14 == 0 ) { if ( i ) return 0; v11 = v9; v23 = v9; v12 = (*v9 >> 1) & 0xFFFFFF; v13 = *v9 >> 25; v14 = *v9 & 1; v15 = v9 + 1; if ( v13 == 4 ) { v16 = 0; v17 = v12 / 0x104; v18 = v12 / 0x104 == 0; if ( (int)(v12 / 0x104) > 0 ) { while ( 1 ) { LOBYTE(v22) = 0; result = (*(__int64 (__fastcall **)(_QWORD *, _QWORD, __int64, _DWORD *, _QWORD, _DWORD, int))(*a3 + 264LL))( a3, *v15, 2, &v11[65 * v16 + 2], 0, v5, v22); if ( (_DWORD)result ) return result; ++v16; v15 += 65; if ( v16 >= v17 ) goto LABEL_17; } } goto LABEL_16; } if ( v13 != 5 ) goto LABEL_22; v20 = 0; v17 = v12 >> 2; if ( v12 >> 2 ) break; LABEL_15: v11 = v23; v18 = v17 == 0; LABEL_16: if ( !v18 ) { LABEL_17: if ( a3[21] ) { v21 = a3[29]; if ( !v21 ) { v21 = sub_1800B6880( *((_QWORD *)off_1801AED20 + 52), 4 * *(_DWORD *)(a1 + 24), (unsigned int)"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_codec_fsb5.cpp", 908, 0); a3[29] = v21; if ( !v21 ) return 38; } *(_DWORD *)(v21 + 4 * v5) = v17; } result = sub_1800E12D0(a3); if ( (_DWORD)result ) return result; } LABEL_22: v9 = (_DWORD *)((char *)v11 + v12 + 4); } while ( 1 ) { result = (*(__int64 (__fastcall **)(_QWORD *, _QWORD, __int64))(*a3 + 264LL))(a3, v15[v20], 2); if ( (_DWORD)result ) return result; if ( ++v20 >= v12 >> 2 ) goto LABEL_15; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source