Function at 0x4adac0
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x278
mov eax, dword [0x5153d4]
xor eax, esp
mov dword [esp + 0x274], eax
push esi
push edi
push str.tomb3
push str.SoftwareCore_DesignTomb_Raider_III
lea eax, [esp + 0x180]
push str._s_s
push eax
call fcn.004216a0
add esp, 0x10
lea eax, [esp + 0x178]
push 0x7cc928
push 0x7cc90c
push 0
push 0xf003f
push 0
push 0x50f980
push 0
push eax
push DirectSoundEnumerateA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [0x7732a4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [edi], 0
je 0x4adb62
mov eax, dword [0x7732a8]
push 4
mov eax, dword [eax]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push 0x5104dc
push dword [0x7cc90c]
call esi
mov edi, dword [0x7732a4]
mov edx, dword [0x7732a8]
mov eax, dword [edi + 4]
imul ecx, dword [edx], 0x3a0
cmp dword [ecx + eax + 0x398], 0
je 0x4adbca
mov eax, dword [edx + 4]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push 0x5104e0
push dword [0x7cc90c]
call esi
mov eax, dword [0x7732a8]
push 4
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.D3DTF
push dword [0x7cc90c]
call esi
mov edx, dword [0x7732a8]
mov edi, dword [0x7732a4]
cmp dword [edi + 8], 0
je 0x4adbf5
mov eax, dword [edx + 8]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push 0x5104ec
push dword [0x7cc90c]
call esi
mov edx, dword [0x7732a8]
mov eax, dword [edx + 0xc]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push 0x50f918
push dword [0x7cc90c]
call esi
mov eax, dword [0x7732a8]
push 4
mov eax, dword [eax + 0x14]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.zbuffer
push dword [0x7cc90c]
call esi
mov eax, dword [0x7732a8]
push 4
mov eax, dword [eax + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.dither
push dword [0x7cc90c]
call esi
mov eax, dword [0x7732a8]
push 4
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.filter
push dword [0x7cc90c]
call esi
mov eax, dword [0x7732a8]
push 4
mov eax, dword [eax + 0x20]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.sound
push dword [0x7cc90c]
call esi
movsx eax, word [0x51548c]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.SFXVolume
push dword [0x7cc90c]
call esi
movsx eax, word [0x515480]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.MusicVolume
push dword [0x7cc90c]
call esi
movzx eax, byte [0x7732f4]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.Window
push dword [0x7cc90c]
call esi
mov eax, dword [0x7732d0]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.WindowX
push dword [0x7cc90c]
call esi
mov eax, dword [0x7732d4]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.WindowY
push dword [0x7cc90c]
call esi
movss xmm0, dword [0x5167d4]
lea eax, [esp + 0x38]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push str._.5f
push eax
call fcn.004216a0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jns 0x4add8a
lea ecx, [esp + 0x38]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4add81
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x3c]
push eax
push 1
push 0
push str.Gamma
push dword [0x7cc90c]
call esi
push 0x1e
push str.HPKMSO6
push 3
push 0
push str.keyLayout
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773324]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.footprints
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773325]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.pickup_display
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773326]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.improved_rain
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773327]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.improved_lasers
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773328]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.uwdust
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773329]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.flexible_crawl
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77332a]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push 4
push eax
push 4
push 0
push str.duck_roll
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77332b]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.flexible_sprint
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77332c]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.slide_to_run
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77332d]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.kayak_mist
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77332e]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.dozy
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77332f]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.disable_gamma
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773330]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.disable_ckey
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773331]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.crawl_tilt
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773332]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push 4
push eax
push 4
push 0
push str.improved_poison_bar
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773333]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.custom_water_color
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773334]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.psx_text_colors
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773335]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.upv_wake
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773336]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.psx_fov
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773337]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.psx_boxes
push dword [0x7cc90c]
call esi
movzx eax, byte [0x773338]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.psx_mono
push dword [0x7cc90c]
call esi
cmp byte [0x77333e], 0
jne 0x4ae0c7
movzx eax, byte [0x773339]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.psx_saving
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77333a]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.psx_crystal_sfx
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77333b]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.blue_crystal_light
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77333c]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.improved_electricity
push dword [0x7cc90c]
call esi
movzx eax, byte [0x77333d]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.psx_contrast
push dword [0x7cc90c]
call esi
mov eax, dword [0x77333f]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.shadow_mode
push dword [0x7cc90c]
call esi
mov eax, dword [0x773343]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.bar_mode
push dword [0x7cc90c]
call esi
mov eax, dword [0x773347]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.sophia_rings
push dword [0x7cc90c]
call esi
mov eax, dword [0x77334b]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.bar_pos
push dword [0x7cc90c]
call esi
mov eax, dword [0x77334f]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 4
push 0
push str.ammo_counter
push dword [0x7cc90c]
call esi
movss xmm0, dword [0x773353]
lea eax, [esp + 0x78]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push str._.5f
push eax
call fcn.004216a0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jns 0x4ae239
lea ecx, [esp + 0x78]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ae230
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x7c]
push eax
push 1
push 0
push str.GUI_Scale
push dword [0x7cc90c]
call esi
movss xmm0, dword [0x773357]
lea eax, [esp + 0xb8]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push str._.5f
push eax
call fcn.004216a0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jns 0x4ae299
lea ecx, [esp + 0xb8]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ae290
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0xbc]
push eax
push 1
push 0
push str.INV_Scale
push dword [0x7cc90c]
call esi
movss xmm0, dword [0x77335b]
lea eax, [esp + 0xf8]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push str._.5f
push eax
call fcn.004216a0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jns 0x4ae2f9
lea ecx, [esp + 0xf8]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ae2f0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0xfc]
push eax
push 1
push 0
push str.unwater_music_mute
push dword [0x7cc90c]
call esi
movss xmm0, dword [0x77335f]
lea eax, [esp + 0x138]
cvtps2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push str._.5f
push eax
call fcn.004216a0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jns 0x4ae359
lea ecx, [esp + 0x138]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ae350
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x13c]
push eax
push 1
push 0
push str.inv_music_mute
push dword [0x7cc90c]
call esi
push dword [0x7cc90c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
xor ecx, esp
call fcn.004b557b
mov esp, ebp
pop ebp
ret