// // sub_D3B70 from 0xd3b70 to 0xd3c12 (162 bytes) // // 2 xrefs: // > sub_D3478 @ 0xd3502 // > sub_D3478 @ 0xd350c // // 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 // int __fastcall sub_D3B70(int *a1, const char *a2) { char *v2; // r5 int result; // r0 char *v5; // r10 char *v6; // r6 unsigned int v7; // r5 signed int v8; // r1 _BYTE v9[64]; // [sp+4h] [bp-64h] BYREF unsigned int v10; // [sp+44h] [bp-24h] BYREF unsigned int v11; // [sp+48h] [bp-20h] BYREF v2 = v9; *a1 = 0; result = sub_D39C0(a2, (int)v9, 64); if ( result >= 0 ) { v5 = &v9[result]; while ( v2 < v5 ) { result = (unsigned __int8)*v2; if ( result == 10 ) break; v6 = (char *)memchr(v2, 44, v5 - v2); if ( !v6 ) v6 = v5; result = sub_D3B68((int)v2, (int)v6, (int)&v11); if ( !result ) break; v7 = v11; v10 = v11; v8 = v11; if ( result < (unsigned int)v6 ) { v8 = v11; if ( *(_BYTE *)result == 45 ) { result = sub_D3B68(result + 1, (int)v6, (int)&v10); if ( !result ) return result; v8 = v10; } } while ( (int)v7 <= v8 ) { if ( v7 <= 0x1F ) { result = (1 << v7) | *a1; *a1 = result; } ++v7; } if ( v6 < v5 ) ++v6; v2 = v6; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source