Function at 0x414080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], esp
push eax
push 0x4272c0
push ecx
call edi
test eax, eax
jne 0x414558
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push edx
xor esi, esi
push str.Preferences
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
call edi
test eax, eax
je 0x414102
lea ecx, [ebp - 0x2c]
push 0x425280
push ecx
mov dword [ebp - 0x2c], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4140fc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x4141ad
ret
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
lea edx, [ebp + 8]
lea eax, [ebp - 0x14]
push edx
push edi
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, 1
push str.RunInBackground
push ecx
mov dword [ebp + 8], ebx
call esi
lea edx, [ebp + 8]
lea eax, [edi + 1]
push edx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.SpeedThrottle
push edx
mov dword [ebp + 8], ebx
call esi
lea eax, [ebp + 8]
lea ecx, [edi + 2]
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push str.AutoFrameskip
push eax
mov dword [ebp + 8], ebx
call esi
lea ecx, [ebp + 8]
lea edx, [edi + 4]
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.Priority
push ecx
mov dword [ebp + 8], 4
call esi
mov ecx, dword [ebp - 0x20]
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x14]
push 0x428e84
push eax
push 0
push str.Sound
push ecx
mov dword [ebp + 8], 4
call esi
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4141bb
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
push str.Graphics
push ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x414209
lea edx, [ebp - 0x30]
push 0x425280
push edx
mov dword [ebp - 0x30], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x414203
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x41436d
ret
lea eax, [ebp + 8]
lea ecx, [edi + 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push str.DoubleSize
push eax
mov dword [ebp + 8], ebx
call esi
lea ecx, [ebp + 8]
lea edx, [edi + 8]
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.BlackAndWhite
push ecx
mov dword [ebp + 8], ebx
call esi
lea edx, [ebp + 8]
lea eax, [edi + 9]
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.MoreThan8Sprites
push edx
mov dword [ebp + 8], ebx
call esi
lea eax, [ebp + 8]
lea ecx, [edi + 0xa]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push str.ShowAllScanlines
push eax
mov dword [ebp + 8], ebx
call esi
lea ecx, [ebp + 8]
lea edx, [edi + 0xb]
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.DrawOverscan
push ecx
mov dword [ebp + 8], ebx
call esi
lea edx, [ebp + 8]
lea eax, [edi + 0xc]
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.FullscreenOnLoad
push edx
mov dword [ebp + 8], ebx
call esi
lea eax, [ebp + 8]
lea ecx, [edi + 0xd]
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
mov dword [ebp + 8], ebx
push str.FullscreenScaling
mov eax, dword [ebp - 0x18]
push eax
call esi
lea ecx, [ebp + 8]
lea edx, [edi + 0xe]
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.CalculatePalette
push ecx
mov dword [ebp + 8], ebx
call esi
lea edx, [ebp + 8]
lea eax, [edi + 0xf]
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.Tint
push edx
mov dword [ebp + 8], ebx
call esi
lea eax, [ebp + 8]
lea ecx, [edi + 0x10]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push 0x428378
push eax
mov dword [ebp + 8], ebx
call esi
lea ecx, [ebp + 8]
lea edx, [edi + 0x24]
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.FullscreenWidth
push ecx
mov dword [ebp + 8], 4
call esi
lea edx, [ebp + 8]
lea eax, [edi + 0x14]
push edx
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.DeviceGUID
push edx
mov dword [ebp + 8], 0x10
call esi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41437b
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
push str.Sound
push edx
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4143c9
lea eax, [ebp - 0x34]
push 0x425280
push eax
mov dword [ebp - 0x34], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4143c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x4144da
ret
lea ecx, [ebp + 8]
lea edx, [edi + 0x2c]
push ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.SoundEnabled
push ecx
mov dword [ebp + 8], ebx
call esi
lea edx, [ebp + 8]
lea eax, [edi + 0x30]
push edx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.SampleRate
push edx
mov dword [ebp + 8], 4
call esi
lea eax, [ebp + 8]
lea ecx, [edi + 0x34]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push str.Rectangle1
push eax
mov dword [ebp + 8], ebx
call esi
lea ecx, [ebp + 8]
lea edx, [edi + 0x35]
push ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.Rectangle2
push ecx
mov dword [ebp + 8], ebx
call esi
lea edx, [ebp + 8]
lea eax, [edi + 0x36]
push edx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.Triangle
push edx
mov dword [ebp + 8], ebx
call esi
lea eax, [ebp + 8]
lea ecx, [edi + 0x37]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push str.Noise
push eax
mov dword [ebp + 8], ebx
call esi
lea ecx, [ebp + 8]
lea edx, [edi + 0x38]
push ecx
lea eax, [ebp - 0x14]
push edx
push eax
push 0
mov dword [ebp + 8], ebx
push str.DPCM
mov ecx, dword [ebp - 0x1c]
push ecx
call esi
lea edx, [ebp + 8]
lea eax, [edi + 0x3c]
push edx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
mov ebx, 4
push str.BufferLength
push edx
mov dword [ebp + 8], ebx
call esi
lea eax, [ebp + 8]
lea ecx, [edi + 0x40]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push str.FilterType
push eax
mov dword [ebp + 8], ebx
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4144dd
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
push edx
push str.Input
push eax
mov dword [ebp - 4], 6
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x414517
lea ecx, [ebp - 0x38]
push 0x425280
push ecx
mov dword [ebp - 0x38], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x24]
lea edx, [edi + 0x44]
push edx
push str.Controller1
push eax
call fcn.004149b0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add edi, 0x144
push edi
push str.Controller2
push ecx
call fcn.004149b0
mov edx, dword [ebp - 0x24]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret