/
/
按钮点击事件的函数完整伪代码
/
/
参数a1是EAX的值,也就是用户名,
int
__usercall TNS_BitBtn1Click@<eax>(
int
a1@<eax>,
int
a2@<ebx>,
int
a3@<esi>)
{
int
v3;
/
/
ebx
int
v4;
/
/
esi
int
v5;
/
/
esi
int
v6;
/
/
ecx
char v7;
/
/
zf
unsigned
int
v9;
/
/
[esp
-
14h
] [ebp
-
2Ch
]
void
*
v10;
/
/
[esp
-
10h
] [ebp
-
28h
]
int
*
v11;
/
/
[esp
-
Ch] [ebp
-
24h
]
int
v12;
/
/
[esp
-
8h
] [ebp
-
20h
]
int
v13;
/
/
[esp
-
4h
] [ebp
-
1Ch
]
int
v14;
/
/
[esp
+
0h
] [ebp
-
18h
]
int
v15;
/
/
[esp
+
4h
] [ebp
-
14h
]
int
*
v16;
/
/
[esp
+
8h
] [ebp
-
10h
]
int
v17;
/
/
[esp
+
Ch] [ebp
-
Ch]
int
v18;
/
/
[esp
+
10h
] [ebp
-
8h
]
int
v19;
/
/
[esp
+
14h
] [ebp
-
4h
]
int
savedregs;
/
/
[esp
+
18h
] [ebp
+
0h
]
v17
=
0
;
v16
=
0
;
v15
=
0
;
v14
=
0
;
v13
=
a2;
v12
=
a3;
v3
=
a1;
v11
=
&savedregs;
v10
=
&loc_42FB67;
v9
=
__readfsdword(
0
);
__writefsdword(
0
, (unsigned
int
)&v9);
dword_431750
=
0x29
;
/
/
41
sub_41AA58(
*
(_DWORD
*
)(a1
+
476
), &v16);
/
/
v16的值
dword_43176C
=
sub_403AB0(v16);
/
/
用户名长度
sub_41AA58(
*
(_DWORD
*
)(v3
+
476
), &v16);
v4
=
7
*
*
(unsigned __int8
*
)v16;
sub_41AA58(
*
(_DWORD
*
)(v3
+
0x1DC
), &v15);
dword_431754
=
16
*
*
(unsigned __int8
*
)(v15
+
1
)
+
v4;
sub_41AA58(
*
(_DWORD
*
)(v3
+
0x1DC
), &v16);
v5
=
11
*
*
((unsigned __int8
*
)v16
+
3
);
sub_41AA58(
*
(_DWORD
*
)(v3
+
0x1DC
), &v15);
dword_431758
=
14
*
*
(unsigned __int8
*
)(v15
+
2
)
+
v5;
if
( sub_406930(dword_43176C) >
=
4
)
/
/
比较用户名长度
{
sub_41AA58(
*
(_DWORD
*
)(v3
+
476
), &v16);
dword_431750
*
=
*
(unsigned __int8
*
)v16;
/
/
乘以v16
dword_431750
*
=
2
;
/
/
乘以
2
sub_403708(&v19, &str_CW[
1
]);
sub_403708(&v18, &str_CRACKED[
1
]);
sub_406718();
sub_4039AC(&v17,
5
, v6, &str___0[
1
], v14, &str___0[
1
], v18);
sub_41AA58(
*
(_DWORD
*
)(v3
+
480
), &v16);
sub_4039FC(v17, v16);
if
( v7 )
sub_42A170(
*
off_430A48,
"Good job dude =)"
,
"Congratz !!"
,
0
);
else
sub_42A170(
*
off_430A48,
"Sorry , The serial is incorect !"
,
"Try Again!"
,
0
);
}
else
{
sub_42A170(
*
off_430A48,
"Sorry , The serial is incorect !"
,
"Try Again!"
,
0
);
}
__writefsdword(
0
, v9);
v11
=
(
int
*
)&loc_42FB6E;
sub_403670(&v14);
sub_403694(&v15,
2
);
return
sub_403694(&v17,
3
);
}