// // sub_773F48 from 0x773f48 to 0x773fe8 (160 bytes) // // 1 xrefs: // > sub_74E8E0 @ 0x74e95c // // 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_773F48(_DWORD *result, size_t a2, int a3) { _DWORD *v3; // r5 unsigned int v6; // r6 int *v7; // r0 void *v8; // r3 int *v9; // r7 int *v10; // r0 v3 = result; if ( !a2 ) { *result = &unk_ACDDA8; return result; } if ( a2 > 0x3FFFFFFC ) sub_7731C4("basic_string::_S_create"); if ( a2 + 29 <= 0x1000 ) { v10 = (int *)operator new(a2 + 13); v9 = v10; v10[1] = a2; v8 = v10 + 3; v10[2] = 0; if ( a2 == 1 ) { *((_BYTE *)v10 + 12) = a3; goto LABEL_9; } } else { v6 = a2 + 4096 - (((_WORD)a2 + 29) & 0xFFF); if ( v6 >= 0x3FFFFFFC ) v6 = 1073741820; v7 = (int *)operator new(v6 + 13); v8 = v7 + 3; v9 = v7; v7[1] = v6; v7[2] = 0; } v8 = memset(v8, a3, a2); LABEL_9: result = v3; if ( v9 != &dword_ACDD9C ) { *v9 = a2; *((_BYTE *)v9 + a2 + 12) = 0; } *v3 = v8; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source