18-09-2013, 19:36
Sweet! Glæder mig allerede til Part 2 :)
Til folk der er interesseret;
P.S: Hvis du har "PRO" versionen af "IDA PRO", kan du kompilere en "C" fil hvor du kan se funktions argumenter.
Til folk der er interesseret;
Kode:
int __thiscall sub_401410(void *this)
{
int v1; // eax@1
void *v2; // ST08_4@1
int v3; // esi@1
int v4; // eax@1
int v5; // eax@1
int v6; // eax@1
int v8; // ST08_4@4
int v9; // eax@4
int v10; // eax@4
v2 = this;
v3 = dword_404440 + rand() % (dword_404444 - dword_404440);
v4 = sub_401960((int)std__cout, (int)"Player is attacking mob. Player does ");
v5 = std__basic_ostream_char_std__char_traits_char____operator__(v4, v3, v2);
v6 = sub_401960(v5, (int)" damage");
std__basic_ostream_char_std__char_traits_char____operator__(v6);
v1 = dword_404430 - v3;
dword_404430 = v1;
if ( v1 <= 0 )
{
sub_401960((int)std__cout, (int)"Mob died and player won!");
std__basic_istream_char_std__char_traits_char____operator__(std__cin);
exit(1);
}
v8 = v1;
v9 = sub_401960((int)std__cout, (int)"Mob life: ");
v10 = std__basic_ostream_char_std__char_traits_char____operator__(v9, v8, std__endl);
return std__basic_ostream_char_std__char_traits_char____operator__(v10);
}
P.S: Hvis du har "PRO" versionen af "IDA PRO", kan du kompilere en "C" fil hvor du kan se funktions argumenter.