// // sub_18003AC00 from 0x18003ac00 to 0x18003b053 (1107 bytes) // // 2 xrefs: // > sub_1800398D0 @ 0x180039913 // > @ 0x1801f7d40 // // 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 10:53:08 +0000 // __int64 __fastcall sub_18003AC00(__int64 a1) { unsigned int v1; // esi unsigned int v3; // edi __int64 result; // rax int v5; // eax int v6; // edi char v7; // [rsp+30h] [rbp-40h] BYREF int v8; // [rsp+34h] [rbp-3Ch] BYREF int v9; // [rsp+38h] [rbp-38h] BYREF unsigned int v10; // [rsp+3Ch] [rbp-34h] BYREF char v11; // [rsp+40h] [rbp-30h] BYREF char v12; // [rsp+41h] [rbp-2Fh] char v13; // [rsp+42h] [rbp-2Eh] char v14; // [rsp+43h] [rbp-2Dh] char v15; // [rsp+44h] [rbp-2Ch] BYREF int v16; // [rsp+48h] [rbp-28h] BYREF _QWORD v17[2]; // [rsp+50h] [rbp-20h] BYREF v1 = 0; v3 = 0; if ( (unsigned int)sub_1800B3990(*(_QWORD *)(a1 + 368), 4294967168LL, 2) ) goto LABEL_30; while ( 1 ) { result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)v17, 1, 3, (__int64)&v8); if ( (_DWORD)result ) return result; if ( v8 != 3 ) return 13; if ( !(unsigned int)sub_1800B7FB0(v17, "TAG", 3) ) { result = sub_18003A310(a1); if ( (_DWORD)result ) return result; v3 -= 128; result = sub_1800B3D20(*(_QWORD *)(a1 + 368), &v10); if ( (_DWORD)result ) return result; if ( v10 <= 0x80 ) goto LABEL_30; goto LABEL_27; } result = sub_1800B3990(*(_QWORD *)(a1 + 368), v3 - 10, 2); if ( (_DWORD)result ) break; result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)v17, 1, 3, (__int64)&v8); if ( (_DWORD)result ) return result; if ( v8 != 3 ) return 13; if ( (unsigned int)sub_1800B7FB0(v17, "3DI", 3) ) goto LABEL_30; result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)&v15, 1, 2, (__int64)&v9); if ( (_DWORD)result ) return result; if ( v9 != 2 ) return 13; result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)&v7, 1, 1, (__int64)&v9); if ( (_DWORD)result ) return result; if ( v9 != 1 ) return 13; result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)&v11, 1, 4, (__int64)&v9); if ( (_DWORD)result ) return result; if ( v9 != 4 ) return 13; v5 = v14 + ((v13 + ((v12 + (v11 << 7)) << 7)) << 7) + 10; if ( (v7 & 0x10) == 0 ) v5 = v14 + ((v13 + ((v12 + (v11 << 7)) << 7)) << 7); result = sub_1800B3990(*(_QWORD *)(a1 + 368), (unsigned int)(3 - v5), 1); if ( (_DWORD)result ) return result; result = sub_1800B3D20(*(_QWORD *)(a1 + 368), &v16); if ( (_DWORD)result ) return result; v6 = v16; result = sub_18003A710(a1); if ( (_DWORD)result ) return result; result = sub_1800B3990(*(_QWORD *)(a1 + 368), (unsigned int)(v6 - 3), 0); if ( (_DWORD)result ) return result; result = sub_1800B3D20(*(_QWORD *)(a1 + 368), &v10); if ( (_DWORD)result ) return result; v3 = v10; LABEL_27: if ( (unsigned int)sub_1800B3990(*(_QWORD *)(a1 + 368), v3 - 128, 2) ) goto LABEL_30; } if ( (_DWORD)result != 14 ) return result; LABEL_30: result = sub_1800B3990(*(_QWORD *)(a1 + 368), 0, 0); if ( !(_DWORD)result ) { result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)v17, 1, 16, (__int64)&v8); if ( !(_DWORD)result ) { while ( 1 ) { if ( v8 != 16 ) return 13; if ( (unsigned int)sub_1800B7FB0(v17, "TAG", 3) ) { if ( (unsigned int)sub_1800B7FB0(v17, "ID3", 3) ) { if ( v17[0] == 0x11CF668E75B22630LL && v17[1] == 0x6CCE6200AA00D9A6LL ) { result = sub_180039980(a1); if ( (_DWORD)result ) return result; result = sub_1800B3990(*(_QWORD *)(a1 + 368), v1, 0); if ( (_DWORD)result ) return result; } else { result = sub_1800B3990(*(_QWORD *)(a1 + 368), v1, 0); if ( (_DWORD)result ) return result; } return 0; } result = sub_1800B3990(*(_QWORD *)(a1 + 368), 4294967283LL, 1); if ( (_DWORD)result ) return result; result = sub_18003A710(a1); } else { result = sub_1800B3990(*(_QWORD *)(a1 + 368), 4294967283LL, 1); if ( (_DWORD)result ) return result; result = sub_18003A310(a1); } if ( !(_DWORD)result ) { result = sub_1800B3D20(*(_QWORD *)(a1 + 368), &v10); if ( !(_DWORD)result ) { v1 = v10; result = sub_1800B3470(*(_QWORD *)(a1 + 368), (unsigned int)v17, 1, 16, (__int64)&v8); if ( !(_DWORD)result ) continue; } } return result; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source