// // sub_100097B50 from 0x100097b50 to 0x100097c87 (311 bytes) // // 1 xrefs: // > @ 0x1008b46a8 // // 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 // char *__fastcall sub_100097B50(__int64 a1, char *a2, __int64 a3) { char v5; // al char *v6; // r15 void *v7; // rdi char *result; // rax v5 = *a2; if ( *a2 >= 0 ) { ++a2; while ( (_DefaultRuneLocale.__runetype[(unsigned __int8)v5] & 0x4000) != 0 ) { v5 = *a2++; if ( v5 < 0 ) { --a2; goto LABEL_10; } } if ( v5 == 47 ) { *(_DWORD *)(a1 + 88) = 2; v5 = *a2; if ( !*a2 ) { LABEL_26: v6 = nullptr; if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 40) ) return nullptr; goto LABEL_27; } } else { --a2; if ( !v5 ) goto LABEL_26; } } LABEL_10: v6 = a2; do { if ( v5 >= 0 && (_DefaultRuneLocale.__runetype[(unsigned __int8)v5] & 0x500) == 0 && v5 != 95 && v5 != 58 ) { if ( v5 == 45 ) { if ( v6 <= a2 ) break; goto LABEL_12; } if ( v6 <= a2 || v5 != 46 ) break; } LABEL_12: v5 = *++v6; } while ( v5 ); if ( v6 <= a2 ) goto LABEL_26; if ( (*(_BYTE *)(a1 + 25) & 2) != 0 ) { v7 = *(void **)(a1 + 32); if ( v7 ) operator delete[](v7); } *(_QWORD *)(a1 + 32) = a2; *(_QWORD *)(a1 + 40) = v6; *(_DWORD *)(a1 + 24) = 256; if ( *(_QWORD *)(a1 + 32) == *(_QWORD *)(a1 + 40) ) return nullptr; LABEL_27: result = sub_1000978B0(a1, v6); if ( !result ) return nullptr; if ( *result ) { if ( !*(_DWORD *)(a1 + 88) ) return sub_100095400((__int64 *)a1, result, a3); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source