// // sub_724670 from 0x724670 to 0x7246d0 (96 bytes) // // 4 xrefs: // > sub_71E0C4 @ 0x71e0e4 // > sub_71ED0C @ 0x71efcc // > sub_71ED0C @ 0x71f40e // > sub_71ED0C @ 0x71f58a // // 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 // _DWORD *__fastcall sub_724670(int a1) { _DWORD *v2; // r0 _DWORD *v3; // r4 size_t v4; // r2 _DWORD *v5; // r5 _DWORD *v7; // r0 if ( a1 <= 0 ) { v7 = (_DWORD *)WebPSafeMalloc(4400, 0, 1); v3 = v7; if ( v7 ) { v5 = v7 + 820; v7[809] = a1; v4 = 4400; *v7 = v7 + 820; goto LABEL_4; } } else { v2 = (_DWORD *)WebPSafeMalloc(4 * ((1 << a1) + 1100), (4 * ((1 << a1) + 1100)) >> 31, 1); v3 = v2; if ( v2 ) { v4 = 4 * ((1 << a1) + 1100); v2[809] = a1; v5 = v2 + 820; *v2 = v2 + 820; LABEL_4: memset(v3, 0, v4); v3[809] = a1; *v3 = v5; return v3; } } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source