// // sub_77C404 from 0x77c404 to 0x77c462 (94 bytes) // // 6 xrefs: // > sub_77D960 @ 0x77d9f6 // > sub_77D87C @ 0x77dbf6 // > sub_77E7B0 @ 0x77e85c // > sub_77E8CC @ 0x77e9b2 // > sub_77E8CC @ 0x77ea94 // > sub_77E8CC @ 0x77eac6 // // 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_77C404(_DWORD *a1) { unsigned __int8 *v1; // r3 int v2; // r5 int v3; // r6 int v4; // r1 unsigned __int8 *v5; // r4 int v6; // r3 _DWORD *result; // r0 v1 = (unsigned __int8 *)a1[3]; v2 = *v1; v3 = 0; if ( v2 == 110 ) { a1[3] = v1 + 1; v3 = 1; v2 = v1[1]; } if ( (unsigned __int8)(v2 - 48) > 9u ) return nullptr; v4 = 0; v5 = (unsigned __int8 *)(a1[3] + 1); do { v6 = 10 * v4 + v2; a1[3] = v5; v2 = *v5; v4 = v6 - 48; ++v5; } while ( (unsigned __int8)(v2 - 48) <= 9u ); if ( ((v6 - 49) | v4) < 0 || v3 ) return nullptr; result = sub_77C350(a1, v4); a1[11] = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source