// // sub_774608 from 0x774608 to 0x77469a (146 bytes) // // 0 xrefs: // // 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 // void *__fastcall sub_774608(size_t a1, int a2) { void *result; // r0 unsigned int v5; // r5 int *v6; // r0 void *v7; // r3 int *v8; // r6 int *v9; // r0 if ( !a1 ) return &unk_ACDDA8; if ( a1 > 0x3FFFFFFC ) sub_7731C4("basic_string::_S_create"); if ( a1 + 29 > 0x1000 ) { v5 = a1 + 4096 - (((_WORD)a1 + 29) & 0xFFF); if ( v5 >= 0x3FFFFFFC ) v5 = 1073741820; v6 = (int *)operator new(v5 + 13); v7 = v6 + 3; v8 = v6; v6[1] = v5; v6[2] = 0; goto LABEL_8; } v9 = (int *)operator new(a1 + 13); v8 = v9; v9[1] = a1; v7 = v9 + 3; v9[2] = 0; if ( a1 != 1 ) { LABEL_8: v7 = memset(v7, a2, a1); goto LABEL_9; } *((_BYTE *)v9 + 12) = a2; LABEL_9: result = v7; if ( v8 != &dword_ACDD9C ) { *v8 = a1; *((_BYTE *)v8 + a1 + 12) = 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source