Function at 0x402a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x130
lea eax, [esp + 8]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareAdamDawesHighwayPursuit
mov edi, ecx
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402d9a
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push esi
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
push 0
mov esi, 4
push str.ScreenMode
push ecx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402aab
mov eax, dword [esp + 0x14]
cmp eax, 3
ja 0x402aab
mov dword [edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.Filtering
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402adc
mov eax, dword [esp + 0x14]
cmp eax, 1
ja 0x402adc
mov dword [edi + 4], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.AntiAliasing
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402b0d
mov eax, dword [esp + 0x14]
cmp eax, 1
ja 0x402b0d
mov dword [edi + 8], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.Brightness
push ecx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402b3e
mov eax, dword [esp + 0x14]
cmp eax, 2
ja 0x402b3e
mov dword [edi + 0xc], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.VertexMode
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402b6f
mov eax, dword [esp + 0x14]
cmp eax, 1
ja 0x402b6f
mov dword [edi + 0x10], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.Music
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402ba0
mov eax, dword [esp + 0x14]
cmp eax, 3
ja 0x402ba0
mov dword [edi + 0x14], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.SoundFX
push ecx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402bd1
mov eax, dword [esp + 0x14]
cmp eax, 3
ja 0x402bd1
mov dword [edi + 0x18], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.Speech
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402c02
mov eax, dword [esp + 0x14]
cmp eax, 3
ja 0x402c02
mov dword [edi + 0x1c], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.Subtitles
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402c33
mov eax, dword [esp + 0x14]
test eax, eax
setne cl
mov byte [edi + 0x20], cl
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.Controller
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402c64
mov eax, dword [esp + 0x14]
cmp eax, 2
jae 0x402c64
mov dword [edi + 0x24], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.Sens
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402c94
mov eax, dword [esp + 0x14]
cmp eax, esi
ja 0x402c94
mov dword [edi + 0x68], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.DeadZone
push ecx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x402cc4
mov eax, dword [esp + 0x14]
cmp eax, esi
ja 0x402cc4
mov dword [edi + 0x6c], eax
mov ebx, dword [esp + 0x1c]
xor esi, esi
test esi, esi
jne 0x402cd2
xor ebx, ebx
jmp 0x402cdc
cmp esi, 1
jne 0x402cdc
mov ebx, 0xffffffe0
push esi
lea edx, [esp + 0x44]
push str.Controls_d
push edx
mov dword [esp + 0x1c], 0x20
call fcn.00426959
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x4c]
push 0
push eax
push ecx
call ebp
test eax, eax
jne 0x402d4d
lea edx, [esp + 0x20]
mov ecx, dword [edx]
cmp ecx, ebx
jl 0x402d39
cmp ecx, 0xff
jg 0x402d39
lea ebp, [eax + esi*8]
mov dword [edi + ebp*4 + 0x28], ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x402d44
lea ecx, [eax + esi*8]
mov dword [edi + ecx*4 + 0x28], 0
inc eax
add edx, 4
cmp eax, 8
jl 0x402d1c
inc esi
cmp esi, 2
jl 0x402cca
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.ScoreUploads
push edx
mov dword [esp + 0x28], 4
call ebp
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x402d8f
mov eax, dword [esp + 8]
cmp eax, 1
ja 0x402d8f
mov dword [edi + 0x70], eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x130
ret