// // sub_D1C7E8 from 0xd1c7e8 to 0xd1c8c4 (220 bytes) // // 8 xrefs: // > sub_CFB530 @ 0xcfb54c // > sub_CFB560 @ 0xcfb57c // > sub_CFB590 @ 0xcfb5ac // > sub_CFB5C0 @ 0xcfb5dc // > sub_CFB5F0 @ 0xcfb60c // > sub_CFB620 @ 0xcfb63c // > sub_CFB650 @ 0xcfb66c // > sub_CFB680 @ 0xcfb69c // // 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 // __int64 __fastcall sub_D1C7E8(_QWORD *a1, wchar_t *s) { __int64 result; // x0 __int64 v5; // x24 wchar_t *v6; // x0 wchar_t *v7; // x21 _QWORD *v8; // x20 if ( !s ) sub_D138D8("basic_string::_S_construct null not valid"); result = wcslen(s); v5 = 4 * result; if ( 4 * result ) { v6 = (wchar_t *)sub_D1B424(v5 >> 2, 0); v7 = v6; v8 = v6 + 6; if ( v5 >> 2 == 1 ) { result = (unsigned int)*s; v7[6] = result; } else { result = (__int64)wmemcpy(v6 + 6, s, v5 >> 2); } if ( v7 != (wchar_t *)&qword_124B6D0 ) { v7[4] = 0; *(_QWORD *)v7 = v5 >> 2; v7[(unsigned __int64)v5 / 4 + 6] = 0; } *a1 = v8; } else { *a1 = &unk_124B6E8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source