I Kinda Like to Use a little pattern for structures. I Use ECX for the Struct Pointer, EAX for the Data, And IF NEED BE (IE, For A 2nd Struct) I Keep Edx in Reserve. So The Proc Might Go Like SO:
Code: Function proc structaddr: DWORD mov ecx, structaddr mov eax, FirstElementVal mov [ecx] .STRUCTURE.member, eax add ecx, SIZEOF DWORD mov eax, SecondElementVal mov [ecx] .STRUCTURE.member, eax; and so on ret Function ENDP