Function at 0x5beb70
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareEA_GamesNeed_for_Speed_Underground_2
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x5bebc9
lea ecx, [esp + 4]
push ecx
push str.SoftwareEA_GamesNeed_for_Speed_Underground_2
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push str.SoftwareEA_GamesNeed_for_Speed_Underground_2
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x5bee75
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0x870cb0
push 4
push 0
push str.VERSION
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870cb4
push 4
push 0
push str.SIZE
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x870cb8
push 4
push 0
push str.g_CarEnvironmentMapEnable
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x870cbc
push 4
push 0
push str.g_CarEnvironmentMapUpdateData
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870cc0
push 4
push 0
push str.g_CarShadowEnable
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x870cc4
push 4
push 0
push str.g_CarHeadlightEnable
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x870cc8
push 4
push 0
push str.g_CarLightingEnable
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870ccc
push 4
push 0
push str.g_CarDamageEnable
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x870cd0
push 4
push 0
push str.g_CrowdEnable
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x870cd4
push 4
push 0
push str.g_RoadReflectionEnable
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870cd8
push 4
push 0
push str.g_FogEnable
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x870cdc
push 4
push 0
push str.g_MotionBlurEnable
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x870ce0
push 4
push 0
push str.g_LightStreaksEnable
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870ce4
push 4
push 0
push str.g_LightGlowEnable
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x870ce8
push 4
push 0
push str.g_AnimatedTextureEnable
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x870cec
push 4
push 0
push str.g_ParticleSystemEnable
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870cf0
push 4
push 0
push str.g_DepthOfFieldEnable
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x870cf4
push 4
push 0
push str.g_WorldLodLevel
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x870cf8
push 4
push 0
push str.g_CarLodLevel
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870cfc
push 4
push 0
push str.g_OverBrightEnable
push ecx
call esi
push 4
mov edx, dword [esp + 8]
push 0x870d00
push 4
push 0
push str.g_BleachByPassEnable
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x870d04
push 4
push 0
push str.g_TintingEnable
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870d08
push 4
push 0
push str.g_FSAALevel
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x870d0c
push 4
push 0
push str.g_HorizonFogEnable
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x870d10
push 4
push 0
push str.g_RainEnable
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870d18
push 4
push 0
push str.g_TextureFiltering
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x870d1c
push 4
push 0
push str.g_RacingResolution
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x87099c
push 4
push 0
push str.g_PerformanceLevel
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x870d24
push 4
push 0
push str.g_VSyncOn
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret