Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool __usercall year_count@<eax>(bool result@<eax>, int a2@<edx>, int a3@<ebx>, int a4@<ebp>)
- {
- int v4; // edx@1
- int v5; // eax@2
- int week_; // edx@5
- signed __int16 day__; // si@8
- int v8; // eax@29
- int v9; // eax@34
- LOWORD(a3) = month;
- LOWORD(a2) = tick;
- LOWORD(result) = speed;
- v4 = result + a2;
- tick = v4;
- if ( (signed __int16)v4 >= 36 )
- {
- LOWORD(result) = second;
- v5 = result + 1;
- second = v5;
- tick = v4 - 36;
- if ( (signed __int16)v5 < 60 )
- return sub_783A0(v5);
- second = 0;
- if ( ++minute < 60 )
- {
- LABEL_35:
- v5 = sub_4AA7C(*(_DWORD *)&hour >> 16);
- return sub_783A0(v5);
- }
- minute = 0;
- if ( ++hour >= 24 )
- {
- LOWORD(v4) = week;
- BYTE1(v5) = alien_demen_flag;
- week_ = v4 + 1;
- if ( !alien_demen_flag )
- {
- week = week_;
- hour = 0;
- if ( (_WORD)week_ == 7 )
- week = 0;
- day__ = day + 1;
- if ( day == 28 )
- {
- if ( month != 1 )
- goto LABEL_25;
- v5 = (unsigned __int16)year / 4;
- week_ = (unsigned __int16)year % 4;
- if ( !week_ )
- goto LABEL_25;
- day__ = 1;
- }
- else
- {
- if ( day__ == 30 )
- {
- if ( month == 1 )
- {
- v5 = (year == 0) / 4;
- week_ = (year == 0) % 4;
- if ( week_ )
- {
- day__ = 1;
- a3 *= 2;
- }
- }
- goto LABEL_25;
- }
- if ( day__ == 31 )
- {
- if ( month == 3 || month == 5 || month == 8 || month == 10 )
- {
- day__ = 1;
- ++a3;
- }
- goto LABEL_25;
- }
- if ( day__ != 32 )
- {
- LABEL_25:
- if ( (_WORD)a3 == 12 )
- {
- a3 = 0;
- ++year;
- }
- month = a3;
- day = day__;
- if ( !week )
- {
- LOBYTE(week_) = alien_demen_flag;
- ++cur_income;
- if ( !alien_demen_flag )
- {
- v8 = sub_941DC(0);
- sub_6EDAC(v8);
- v5 = market();
- }
- }
- if ( !alien_demen_flag )
- {
- gen_teh_unit(v5, week_, a3);
- sub_6FD6C();
- sub_97B90();
- }
- goto LABEL_33;
- }
- day__ = 1;
- }
- ++a3;
- goto LABEL_25;
- }
- week = week_;
- minute = 0;
- second = 0;
- tick = 0;
- dword_E72D0 = 0;
- hour = 0;
- }
- LABEL_33:
- if ( !alien_demen_flag )
- {
- sub_6F3A8();
- sub_6F7D4();
- diplomatic_screen();
- Research();
- Manufacturing(a4);
- v9 = gen_org_veh();
- sub_6CA60(v9);
- sub_6FCC0();
- gen_police_veh();
- }
- goto LABEL_35;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement