// // sub_14003AE70 from 0x14003ae70 to 0x14003b10b (667 bytes) // // 2 xrefs: // > MusicDownloadManager::generateCustomContentURL @ 0x140343e01 // > @ 0x1406c3d74 // // 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 // // Hidden C++ exception states: #wind=1 _QWORD *__fastcall sub_14003AE70(_QWORD *Src, _BYTE *a2, __int64 a3) { __int64 v4; // rbp int v5; // r13d int v6; // ebx __int64 v7; // rcx __int64 v8; // r9 unsigned __int8 v9; // r15 unsigned __int8 v10; // r12 __int64 v11; // rax bool v12; // cf __int64 v13; // rbx _BYTE *v15; // [rsp+88h] [rbp+10h] int v16; // [rsp+90h] [rbp+18h] char v17; // [rsp+98h] [rbp+20h] char v18; // [rsp+99h] [rbp+21h] char v19; // [rsp+9Ah] [rbp+22h] char v20; // [rsp+9Bh] [rbp+23h] v16 = a3; v4 = 0; v5 = 16; *(_OWORD *)Src = 0; Src[2] = 0; Src[3] = 15; *(_BYTE *)Src = 0; v6 = 0; v7 = 0; do { --v5; *((_BYTE *)&v16 + v7) = *a2; ++v6; ++v7; v15 = ++a2; v8 = BYTE2(v16); v9 = BYTE1(v16); v10 = v16; if ( v7 == 3 ) { v17 = (unsigned __int8)v16 >> 2; v18 = (BYTE1(v16) >> 4) + 16 * (v16 & 3); sub_14003B190(Src); sub_14003B190(Src); sub_14003B190(Src); sub_14003B190(Src); v6 = 0; v7 = 0; a2 = v15; v8 = BYTE2(v16); } } while ( v5 ); if ( v6 ) { v11 = v6; v12 = (unsigned __int64)v6 < 3; if ( v6 < 3LL ) { do { if ( !v12 ) _report_rangecheckfailure(v7, a2, a3, v8, 1); *((_BYTE *)&v16 + v11++) = 0; v12 = (unsigned __int64)v11 < 3; } while ( v11 < 3 ); LOBYTE(v8) = BYTE2(v16); v9 = BYTE1(v16); v10 = v16; } v17 = v10 >> 2; v18 = (v9 >> 4) + 16 * (v10 & 3); v19 = ((unsigned __int8)v8 >> 6) + 4 * (v9 & 0xF); v20 = v8 & 0x3F; if ( v6 + 1 > 0 ) { do { sub_14003B190(Src); ++v4; } while ( v4 < v6 + 1 ); } if ( v6 < 3 ) { v13 = (unsigned int)(3 - v6); do { sub_14003B190(Src); --v13; } while ( v13 ); } } return Src; }
GD Web Decomp Icon

GD Web Decomp

Raw Source