int
__fastcall Ly_VipLuck::SetVLuckRet(Ly_VipLuck *
this
)
{
Byly_GameData *v2;
Fby_ns::Fby_PlayerControler *v3;
int
v4;
Fby_ns::Fby_PlayerControler *v5;
int
v6;
int
v7;
int
v8;
Fby_ns::Fby_PlayerGunInfo *v9;
Fby_ns::Fby_PlayerControler *v10;
int
v11;
Fby_ns::Fby_PlayerControler *v12;
int
v13;
Fby_ns::Fby_PlayerControler *v14;
int
v15;
Byly_GameData *v16;
Byly_GameData *v17;
Byly_GameData *v18;
Byly_GameData *v19;
int
v20;
Byly_GameData *v21;
Byly_GameData *v22;
Byly_GameData *v23;
Byly_GameData *v24;
Byly_GameData *v25;
Byly_GameData *v26;
Byly_GameData *v27;
int
v28;
Fby_ns::Fby_PlayerControler *v29;
int
v30;
Byly_GameData *v31;
int
v32;
Byly_GameData *v33;
Byly_GameData *v34;
int
v35;
Byly_GameData *v36;
int
v37;
Byly_GameData *v38;
Byly_GameData *v39;
Ly_GetReward *v40;
int
v41;
Ly_GetReward *v42;
Ly_GetReward *v43;
Ly_GetReward *v44;
_DWORD *v45;
void
(__fastcall *v46)(_DWORD *,
int
,
int
);
int
v47;
int
v48;
void
(__fastcall *v49)(
int
,
int
,
int
);
int
v50;
int
v52;
int
v53;
int
v54;
char
s[128];
memset
(s, 0,
sizeof
(s));
strcpy
(s, *(
const
char
**)(Byly_Text::g_szGameText + 436));
v2 = (Byly_GameData *)GameSceneBase::m_pGameView;
if
( GameSceneBase::m_pGameView )
{
v2 = (Byly_GameData *)(*(
int
(__fastcall **)(_DWORD *))(*GameSceneBase::m_pGameView + 316))(GameSceneBase::m_pGameView);
if
( v2 )
{
v54 = *((_DWORD *)
this
+ 152);
v28 = *((_DWORD *)
this
+ v54 + 82);
switch
( v28 )
{
case
1:
v3 = (Fby_ns::Fby_PlayerControler *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 444),
s,
*((_DWORD *)
this
+ v54 + 94));
v4 = Fby_ns::Fby_PlayerControler::sharePlayerControler(v3);
v2 = (Byly_GameData *)Fby_ns::Fby_PlayerGunInfo::ChangePlayerMoney(
*(_DWORD *)(v4 + 8),
*((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94),
1,
0);
goto
LABEL_35;
case
2:
v5 = (Fby_ns::Fby_PlayerControler *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 448),
s,
*((_DWORD *)
this
+ v54 + 94));
v6 = Fby_ns::Fby_PlayerControler::sharePlayerControler(v5);
v7 = 1;
v8 = *((_DWORD *)
this
+ 152) + 94;
v9 = *(Fby_ns::Fby_PlayerGunInfo **)(v6 + 8);
break
;
case
3:
v10 = (Fby_ns::Fby_PlayerControler *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 452),
s,
*((_DWORD *)
this
+ v54 + 94));
v11 = Fby_ns::Fby_PlayerControler::sharePlayerControler(v10);
v7 = 4;
v8 = *((_DWORD *)
this
+ 152) + 94;
v9 = *(Fby_ns::Fby_PlayerGunInfo **)(v11 + 8);
break
;
case
4:
v12 = (Fby_ns::Fby_PlayerControler *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 456),
s,
*((_DWORD *)
this
+ v54 + 94));
v13 = Fby_ns::Fby_PlayerControler::sharePlayerControler(v12);
v7 = 5;
v8 = *((_DWORD *)
this
+ 152) + 94;
v9 = *(Fby_ns::Fby_PlayerGunInfo **)(v13 + 8);
break
;
case
5:
v14 = (Fby_ns::Fby_PlayerControler *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 476),
s,
*((_DWORD *)
this
+ v54 + 94));
v15 = Fby_ns::Fby_PlayerControler::sharePlayerControler(v14);
v7 = 7;
v8 = *((_DWORD *)
this
+ 152) + 94;
v9 = *(Fby_ns::Fby_PlayerGunInfo **)(v15 + 8);
break
;
default
:
switch
( v28 )
{
case
6:
v16 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 488),
s,
*((_DWORD *)
this
+ v54 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v16);
*(_DWORD *)(*(_DWORD *)v2 + 172) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
case
7:
v17 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 492),
s,
*((_DWORD *)
this
+ v54 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v17);
*(_DWORD *)(*(_DWORD *)v2 + 176) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
case
8:
v18 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 496),
s,
*((_DWORD *)
this
+ v54 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v18);
*(_DWORD *)(*(_DWORD *)v2 + 180) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
}
goto
LABEL_33;
}
v2 = (Byly_GameData *)Fby_ns::Fby_PlayerGunInfo::AddProp(v9, v7, *((_DWORD *)
this
+ v8), 0);
LABEL_33:
v28 = 1;
goto
LABEL_35;
}
}
v52 = *((_DWORD *)
this
+ 152);
v53 = *((_DWORD *)
this
+ v52 + 82);
switch
( v53 )
{
case
1:
v19 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 444),
s,
*((_DWORD *)
this
+ v52 + 94));
v20 = Byly_GameData::shareBylyGameData(v19);
v2 = (Byly_GameData *)Byly_GameData::SetBylyAddPlayerMoney(v20, *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94));
break
;
case
2:
v21 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 448),
s,
*((_DWORD *)
this
+ v52 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v21);
*(_DWORD *)(*(_DWORD *)v2 + 36) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
case
3:
v22 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 452),
s,
*((_DWORD *)
this
+ v52 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v22);
*(_DWORD *)(*(_DWORD *)v2 + 152) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
case
4:
v23 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 456),
s,
*((_DWORD *)
this
+ v52 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v23);
*(_DWORD *)(*(_DWORD *)v2 + 156) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
case
5:
v24 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 476),
s,
*((_DWORD *)
this
+ v52 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v24);
*(_DWORD *)(*(_DWORD *)v2 + 160) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
case
6:
v25 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 488),
s,
*((_DWORD *)
this
+ v52 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v25);
*(_DWORD *)(*(_DWORD *)v2 + 172) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
case
7:
v26 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 492),
s,
*((_DWORD *)
this
+ v52 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v26);
*(_DWORD *)(*(_DWORD *)v2 + 176) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
case
8:
v27 = (Byly_GameData *)
sprintf
(
s,
*(
const
char
**)(Byly_Text::g_szGameText + 496),
s,
*((_DWORD *)
this
+ v52 + 94));
v2 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v27);
*(_DWORD *)(*(_DWORD *)v2 + 180) += *((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94);
break
;
}
v28 = 0;
LABEL_35:
v29 = (Fby_ns::Fby_PlayerControler *)Byly_GameData::shareBylyGameData(v2);
++*(_DWORD *)(*((_DWORD *)v29 + 188) + 24);
if
( v28 == 1 )
{
v30 = Fby_ns::Fby_PlayerControler::sharePlayerControler(v29);
v31 = (Byly_GameData *)Fby_ns::Fby_PlayerGunInfo::ChangePlayerMoney(*(_DWORD *)(v30 + 8), 0, 1, 0);
}
else
{
v32 = Byly_GameData::shareBylyGameData(v29);
v31 = (Byly_GameData *)Byly_GameData::SetBylyAddPlayerMoney(v32, 0);
}
v33 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v31);
v34 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v33);
v35 = Byly_GameData::GetVIP(v34);
v36 = (Byly_GameData *)Byly_GameData::GetVipTurnTimes(v33, v35);
v37 = Byly_GameData::shareBylyGameData(v36);
v38 = (Byly_GameData *)ECAscIILable::setAscIINum(
*((ECAscIILable **)
this
+ 154),
(
int
)v36 - *(_DWORD *)(*(_DWORD *)(v37 + 752) + 24),
0,
0);
v39 = (Byly_GameData *)Byly_GameData::shareBylyGameData(v38);
v40 = (Ly_GetReward *)Byly_GameData::WriteLyAllData(v39);
v41 = Ly_GetReward::shareLyGetReward(v40);
if
( !(*(
int
(__fastcall **)(
int
))(*(_DWORD *)v41 + 316))(v41) )
{
v42 = (Ly_GetReward *)Ly_GetReward::shareLyGetReward(0);
*((_DWORD *)v42 + 87) = 0;
v43 = (Ly_GetReward *)Ly_GetReward::shareLyGetReward(v42);
v44 = (Ly_GetReward *)Ly_GetReward::SetRewardNum(
v43,
*((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 82),
*((_DWORD *)
this
+ *((_DWORD *)
this
+ 152) + 94));
if
( v28 == 1 )
{
v30 = Fby_ns::Fby_PlayerControler::sharePlayerControler(v29);
v31 = (Byly_GameData *)Fby_ns::Fby_PlayerGunInfo::ChangePlayerMoney(
*(_DWORD *)(v30 + 8),
-*((_DWORD *)
this
+ 143),
1,
0);
}
else
{
v32 = Byly_GameData::shareBylyGameData(v29);
v31 = (Byly_GameData *)Byly_GameData::SetBylyAddPlayerMoney(v32, -*((_DWORD *)
this
+ 143));
}
}
return
ECButton::SetEnabledBtn(*((ECButton **)
this
+ 79), 1);
}