student stuData
=
printStructData();
00B74128
lea eax,[ebp
-
634h
]
00B7412E
push eax
00B7412F
call printStructData (
0B7124Eh
)
00B74134
add esp,
4
00B74137
mov ecx,
41h
00B7413C
mov esi,eax
00B7413E
lea edi,[ebp
-
84Ch
]
00B74144
rep movs dword ptr es:[edi],dword ptr [esi]
00B74146
mov ecx,
41h
00B7414B
lea esi,[ebp
-
84Ch
]
00B74151
lea edi,[stuData]
00B74157
rep movs dword ptr es:[edi],dword ptr [esi]
;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
student printStructData()
{
00B73C20
push ebp
00B73C21
mov ebp,esp
00B73C23
sub esp,
1D0h
00B73C29
push ebx
00B73C2A
push esi
00B73C2B
push edi
00B73C2C
lea edi,[ebp
-
1D0h
]
00B73C32
mov ecx,
74h
00B73C37
mov eax,
0CCCCCCCCh
00B73C3C
rep stos dword ptr es:[edi]
00B73C3E
mov eax,dword ptr [__security_cookie (
0B79088h
)]
00B73C43
xor eax,ebp
00B73C45
mov dword ptr [ebp
-
4
],eax
student stu;
stu.age
=
30
;
00B73C48
mov dword ptr [stu],
1Eh
strcpy(stu.name,
"THINCT"
);
00B73C52
push offset string
"THINCT"
(
0B769B0h
)
00B73C57
lea eax,[ebp
-
108h
]
00B73C5D
push eax
00B73C5E
call _strcpy (
0B71230h
)
00B73C63
add esp,
8
return
stu;
00B73C66
mov ecx,
41h
00B73C6B
lea esi,[stu]
00B73C71
mov edi,dword ptr [ebp
+
8
]
00B73C74
rep movs dword ptr es:[edi],dword ptr [esi]
00B73C76
mov eax,dword ptr [ebp
+
8
]
}