I need someone to explain this to me. As I understand it, __LOCAL_SIZE is the total size of all local variables in a naked function, like the one I've got here:
I'm not sure how many bytes in size an int is on my machine, but I'm certain it's not 204 - my disassembler says otherwise. Is it taking into account stri as well? Or am I misunderstanding it.
_declspec(naked) int StringLen(char* stri)
mov ebp, esp
sub esp, __LOCAL_SIZE
mov esp, ebp
xor eax, eax
(Yes, I know the function hasn't been written yet.)