Code:
.text:006B4630 ; =============== S U B R O U T I N E =======================================
.text:006B4630
.text:006B4630 ; Attributes: bp-based frame
.text:006B4630
.text:006B4630 sub_6B4630 proc near ; CODE XREF: sub_4045E0:loc_404845p
.text:006B4630
.text:006B4630 var_10 = byte ptr -10h
.text:006B4630 var_4 = dword ptr -4
.text:006B4630
.text:006B4630 push ebp
.text:006B4631 mov ebp, esp
.text:006B4633 sub esp, 10h
.text:006B4636 mov eax, dword_8EA520
.text:006B463B xor eax, ebp
.text:006B463D mov [ebp+var_4], eax
.text:006B4640 mov eax, dword_CE0B90
.text:006B4645 mov ecx, dword_B95C5C[eax*4]
.text:006B464C push ecx
.text:006B464D push offset aD_2 ; "%d"
.text:006B4652 lea edx, [ebp+var_10]
.text:006B4655 push 0Ch
.text:006B4657 push edx
.text:006B4658 call sub_63A690
.text:006B465D push 0
.text:006B465F push 0
.text:006B4661 push 5
.text:006B4663 push offset sub_6B45D0
.text:006B4668 lea eax, [ebp+var_10]
.text:006B466B push eax
.text:006B466C push 0
.text:006B466E push offset aSetsTheViolenc ; "Sets the violence level of the game"
.text:006B4673 push offset aViolencelevel ; "violenceLevel"
.text:006B4678 call sub_6366F0
.text:006B467D mov ecx, [ebp+var_4]
.text:006B4680 xor ecx, ebp
.text:006B4682 add esp, 30h
.text:006B4685 call sub_409C8A
.text:006B468A mov esp, ebp
.text:006B468C pop ebp
.text:006B468D retn
.text:006B468D sub_6B4630 endp
.text:006B468D
.text:006B468D ; ---------------------------------------------------------------------------
Code:
.data:00B95C5C ; int dword_B95C5C[]
.data:00B95C5C dword_B95C5C dd 2, 1, 7 dup(2) ; DATA XREF: sub_6B45D0+1Br
.data:00B95C5C ; sub_6B45D0:loc_6B45F4r ...
.data:00B95C80 off_B95C80 dd offset aBloodspurtsmal ; DATA XREF: sub_6B45D0:loc_6B4615r
.data:00B95C80 ; "BloodSpurtSmall01_Low.blp"
.data:00B95C84 dd offset aBloodspurtsm_1 ; "BloodSpurtSmall01_Medium.blp"
.data:00B95C88 off_B95C88 dd offset aBloodspurtsm_0 ; DATA XREF: sub_6B45D0+4Cr
.data:00B95C88 ; "BloodSpurtSmall01.blp"
Pseudo-C:
Code:
int __cdecl sub_6B4630()
{
int s; // [sp+10h] [bp+0h]@1
unsigned int v2; // [sp+Ch] [bp-4h]@1
char v3; // [sp+0h] [bp-10h]@1
v2 = (unsigned int)& s ^ dword_8EA520;
sub_63A690(&v3, 12, "%d", dword_B95C5C[dword_CE0B90]);
return sub_6366F0("violenceLevel", "Sets the violence level of the game", 0, &v3, sub_6B45D0, 5, 0, 0);
}
Did anyone else know this existed? It seems to be a console/config option (with custom value 0-5) that sets the level of violence in the game. Well, just thought I'd share this as I'd never seen it before and I expect others may not have either.