Type Mac BNCLIENT_InitState as void __cdecl (void)
Mac body reads no args: zeroes three BNCLIENT state globals and initialises a critical section via the shim at 0x0002aeda; plain RET. Its caller BNCLIENT_GetCallbacks (0x0005ad3c) overwrites EAX right after the call, so the result is unused.
Changes 1, applied together
Set prototype
mac 0x000557ecsignatureundefined BNCLIENT_InitState(void)→void BNCLIENT_InitState(void)conventionunknown→__cdecl