Jump to content

Modding Starting stats


seregavlg

Recommended Posts

Initial starts function:

0x3AE34

 

loc_43AE0A:

or edx, 0FFFFFFFFh

lea edi, [esp+3Ch+var_1C]

mov ecx, edx

xor eax, eax

repne scasb

not ecx

sub edi, ecx

lea ebx, [ebp+23h]

mov eax, ecx

mov esi, edi

mov edi, ebx

push 0Ah

shr ecx, 2

rep movsd

mov ecx, eax

xor eax, eax

and ecx, 3

rep movsb

mov [ebp+0Ah], ax

mov [ebp+6], dx

mov [ebp+8], dx

mov [ebp+0Ch], dx

mov [ebp+16h], al

mov [ebp+12h], ax

mov [ebp+0Eh], ax

mov [ebp+10h], ax

call sub_441720

add al, 32h

push 0Fh

mov [ebp+1Ah], al

call sub_441720

add al, 19h

push 1Eh

mov [ebp+1Bh], al

call sub_441720

add al, 28h

push 1Eh

mov [ebp+1Ch], al

call sub_441720

add al, 1Eh

push 14h

mov [ebp+45h], al

call sub_441720

add al, 14h

push 1Eh

mov [ebp+22h], al

call sub_441720

add al, 28h

push 1Eh

mov [ebp+21h], al

call sub_441720

add al, 32h

push 14h

mov [ebp+1Dh], al

call sub_441720

add al, 14h

push 64h

mov [ebp+44h], al

call sub_441720

push 5

mov [ebp+43h], al

mov byte ptr [ebp+41h], 0

call sub_441720

add esp, 28h

add al, 5

mov [ebp+40h], al

mov ax, word ptr [esp+3Ch+var_28]

mov byte ptr [ebp+1Eh], 0

mov word ptr [ebp+14h], 14h

mov byte ptr [ebp+1], 0

mov byte ptr [ebp+4], 0

mov byte ptr [ebp+17h], 0

mov byte ptr [ebp+18h], 0

mov byte ptr [ebp+5], 0

mov byte ptr [ebp+19h], 0

mov byte ptr [ebp+3Fh], 0

mov byte ptr [ebp+42h], 0

mov byte ptr [ebp+3Eh], 0

mov byte ptr [ebp+0], 0

mov byte ptr [ebp+2], 0

pop edi

pop esi

pop ebx

pop ebp

add esp, 2Ch

retn

sub_43AC70 endp

 

*((_BYTE *)v1 + 26) = sub_441720(10) + 50;

*((_BYTE *)v1 + 27) = sub_441720(15) + 25;

*((_BYTE *)v1 + 28) = sub_441720(30) + 40;

*((_BYTE *)v1 + 69) = sub_441720(30) + 30;

*((_BYTE *)v1 + 34) = sub_441720(20) + 20;

*((_BYTE *)v1 + 33) = sub_441720(30) + 40;

*((_BYTE *)v1 + 29) = sub_441720(30) + 50;

*((_BYTE *)v1 + 68) = sub_441720(20) + 20;

*((_BYTE *)v1 + 67) = sub_441720(100);

*((_BYTE *)v1 + 65) = 0;

*((_BYTE *)v1 + 64) = sub_441720(5) + 5;

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...