Name parameters that already have a pointer type, by the role the body shows
Ghidra v1799 · 2663303
These parameters already have a pointer or struct type but a generic name, so this renames them only. Each name comes from the struct fields the body reads or from the callee parameter it reaches. Least proven: pControl on the three MAINMENU handlers, whose bodies only null-check it, so that name rests on the existing type; pOwner, from SKILLASS_EquipSummonItems's plate and one inventory read; pRect, from four ints written through it. The chosen pModuleRequest on WARDEN_DownloadModule's third parameter looks wrong: [EBP+0x10] is pushed as pfnCacheWriteData's nSize. Left out as unread or unsettled: OOGUTIL_ProcessGameListEntry, MAINMENU_Unused16, SFILE_CloseStream1 to 5.
Changes 24, applied together
Rename variable
win 0x00515c30 ECXnamenParam→pSoundRename variable
win 0x005159b0 ECXnamenParam→pSoundRename variable
win 0x00515a60 ECXnamenParam→pSoundRename variable
win 0x006b10d0 Stack[0x4]namenParam→pCmpRename variable
win 0x006b1290 Stack[0x4]namenParam→pCmpRename variable
win 0x006b1210 Stack[0x4]namenParam→pCmpRename variable
win 0x006b0430 Stack[0x4]namenParam→pDcmpRename variable
win 0x00526540 ECXnamenParam1→wszFirstRename variable
win 0x00526540 EDXnamenParam2→wszSecondRename variable
win 0x005262f0 ECXnamenParam→pCodePointRename variable
win 0x00527be0 EDXnamenParam→wszSourceRename variable
win 0x005d6b60 EDXnamenParam1→pOwnerRename variable
win 0x004c7c40 EDXnamenParam1→pEventUnitRename variable
win 0x004dc110 EDXnamedwParam1→pEventUnitRename variable
win 0x00619c40 Stack[0x4]namedwParam2→pRoomRename variable
win 0x00619c40 Stack[0x8]namedwParam3→pRectRename variable
win 0x00435030 Stack[0x4]namenParam→pControlRename variable
win 0x004361b0 Stack[0x4]namenParam→pControlRename variable
win 0x00436910 Stack[0x4]namenParam→pControlRename variable
win 0x0047ffb0 Stack[0x4]namedwParam1→szKeyRename variable
win 0x0047ffb0 Stack[0x8]namedwParam2→pDataRename variable
win 0x004b6a30 ECXnamedwParam→pUserParamRename variable
win 0x00601450 Stack[0x8]namedwParam→pPaletteRemapRename variable
win 0x006b58a0 EDXnamedwParam→ppTexture