// // sub_1004A1D10 from 0x1004a1d10 to 0x1004a1e3c (300 bytes) // // 2 xrefs: // > sub_10045E2D8 @ 0x10045e3e0 // > sub_1004A1B30 @ 0x1004a1c38 // // This function is hookable on this platform (idp: arm, 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 11:06:02 +0000 // void __usercall sub_1004A1D10(unsigned int a1@, __int64 a2@) { unsigned __int8 v2; // w20 int v4; // w23 unsigned int v5; // w24 unsigned __int8 v6; // w25 unsigned __int8 v7; // w8 unsigned int v8; // w27 unsigned int v9; // w28 bool v10; // cf __int128 v11; // [xsp+8h] [xbp-68h] BYREF __int64 v12; // [xsp+18h] [xbp-58h] v2 = a1; v4 = 0; v5 = a1 >> 8; v6 = BYTE2(a1); *(_QWORD *)a2 = 0; *(_QWORD *)(a2 + 8) = 0; *(_QWORD *)(a2 + 16) = 0; do { if ( v4 == 1 ) v7 = v5; else v7 = v2; if ( !v4 ) v7 = v6; v8 = v7; if ( !v7 ) { std::operator+(&v11, "00", a2); goto LABEL_15; } v9 = v7; do { sub_10004F66C(a0123456789abcd_11[v9 & 0xF], (const void **)a2, (__int64)&v11); if ( *(char *)(a2 + 23) < 0 ) operator delete(*(void **)a2); *(_OWORD *)a2 = v11; *(_QWORD *)(a2 + 16) = v12; v10 = v9 >= 0x10; v9 >>= 4; } while ( v10 ); if ( v8 <= 0xF ) { std::operator+(&v11, "0", a2); LABEL_15: if ( *(char *)(a2 + 23) < 0 ) operator delete(*(void **)a2); *(_OWORD *)a2 = v11; *(_QWORD *)(a2 + 16) = v12; } ++v4; } while ( v4 != 3 ); }
GD Web Decomp Icon

GD Web Decomp

Raw Source