Type Mac BNDOWNLOAD_WriteFileWithTimestamp as void __fastcc (char*, void*, uint32_t, void*)
Register+stack function: ECX is the path passed to the CreateFile shim (0x002ef571, GENERIC_WRITE, CREATE_ALWAYS), EDX -> EDI is the data buffer and [EBP+8] the byte count passed to the WriteFile shim (0x002ef595), [EBP+0xc] is the file time passed three times to the SetFileTime shim (0x0002257e); then the handle is closed. Plain RET, EAX leftover. Windows twin 0x0051e440 is void (LPCSTR this, LPCVOID pData, DWORD nNumberOfBytesToWrite, FILETIME* pFileTime); mapped by role, FILETIME* as void* on Mac.
Changes 1, applied together
Set prototype
mac 0x0005272fsignatureundefined BNDOWNLOAD_WriteFileWithTimestamp(void)→void BNDOWNLOAD_WriteFileWithTimestamp(char* szFileName, void* pData, uint32_t nNumberOfBytesToWrite, void* pFileTime)conventionunknown→__fastcc