REDIVIVUS

Proposals / #1623

Mac D2COMP_AllocZeroedBlock: void* __cdecl (void)

checked · by KierTaylor · submitted 2026-11-08

It reads no register or stack args. It allocates 4 bytes through Fog (0x002f3336 with [ESP]=4 and file/line 0x866) and, on failure, reports via the out-of-memory handler (0x00034519, line 0x867). It then zeroes the block (bzero 0x00028d7f, size 4) and returns it (MOV EAX,ESI at 0x00041528). Callers: AllocCharSelectComponent and D2COMP_CreateCompositeUnit.

Changes 1, applied together

  1. Set prototype mac 0x000414bf

    signatureundefined D2COMP_AllocZeroedBlock(void)→void* D2COMP_AllocZeroedBlock(void)
    conventionunknown→__cdecl