Function at 0x587840
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xa8
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
push esi
push 0
push str.AdapterOrdinal
push 0x6c7e50
call edi
push esi
push 0x280
push str.HorizontalResolution
push 0x6c7e74
mov dword [esp + 0x20], eax
call edi
push esi
push 0x1e0
push str.VerticalResolution
push 0x6c7e94
mov ebp, eax
call edi
push esi
push 0
push str.MultisampleType
push 0x6c7eb0
mov dword [esp + 0x28], eax
call edi
push esi
push 0
push str.MultisampleQuality
push 0x6c7ed0
mov dword [esp + 0x2c], eax
call edi
push esi
push 0
push str.RefreshRate
push 0x6c7ee8
mov dword [esp + 0x30], eax
call edi
push esi
push 1
push str.ShadowQuality
push 0x6c7f04
mov dword [esp + 0x34], eax
call edi
push esi
push 1
push str.ReflectionQuality
push 0x6c7f24
mov dword [esp + 0x38], eax
call edi
push esi
push 2
push str.TrackQuality
push 0x6c7f40
mov dword [esp + 0x3c], eax
call edi
push esi
push 2
push str.TextureQuality
push 0x6c7f5c
mov dword [esp + 0x40], eax
call edi
push esi
push 1
push str.ShaderQuality
push 0x6c7f78
mov dword [esp + 0x44], eax
call edi
push esi
push 1
push str.DrawDistanceQuality
push 0x6c7f98
mov dword [esp + 0x48], eax
call edi
push esi
mov dword [esp + 0x40], eax
push 2
push str.ParticleQuality
push 0x6c7fb4
call edi
push esi
push 3
push str.ShaderVersion
push 0x6c7fd0
mov dword [esp + 0x50], eax
call edi
push esi
push 1
push str.RearViewMirrorQuality
push 0x6c7ff4
mov dword [esp + 0x54], eax
call edi
push esi
push 1
push str.MudQuality
push 0x6c800c
mov dword [esp + 0x58], eax
call edi
push esi
push 0
push str.CarRestore
push 0x6c8024
mov dword [esp + 0x5c], eax
call edi
push esi
push 1
push str.VSync
push str.Graphics
mov dword [esp + 0x60], eax
call edi
push esi
push 2
push str.Quality
push 0x6c804c
mov dword [esp + 0x64], eax
call edi
push esi
push 1
push str.SoftwareEmulation
push 0x6c8068
mov dword [esp + 0x80], eax
call edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.005877b0
push esi
lea ecx, [esp + 0x8c]
push ecx
call fcn.00587620
cmp ebp, 0x280
lea edi, [ebx + 0x30]
mov ecx, 0xc
mov esi, eax
rep movsd dword es:[edi], dword [esi]
jge 0x587a0f
mov ebp, 0x280
mov eax, 0x1e0
cmp dword [esp + 0x18], eax
jge 0x587a1e
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x24]
xor eax, eax
xor ecx, ecx
cmp dword [esp + 0x54], ecx
mov dword [ebx + 0x2c], edx
mov dx, word [esp + 0x18]
setne al
mov word [ebx + 2], dx
mov edx, dword [esp + 0x1c]
mov word [ebx], bp
mov dword [ebx + 0x20], edx
lea esi, [ecx + 1]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, 3
cmp dword [esp + 0x44], eax
je 0x587a65
mov dword [ebx + 4], esi
mov edi, dword [esp + 0x28]
cmp edi, ecx
mov edx, 2
jg 0x587a78
mov dword [esp + 0x28], ecx
jmp 0x587a80
cmp edi, edx
jl 0x587a80
mov dword [esp + 0x28], edx
mov edi, dword [esp + 0x2c]
cmp edi, ecx
jg 0x587a8e
mov dword [esp + 0x2c], ecx
jmp 0x587a96
cmp edi, edx
jl 0x587a96
mov dword [esp + 0x2c], edx
mov edi, dword [esp + 0x30]
cmp edi, ecx
jg 0x587aa4
mov dword [esp + 0x30], ecx
jmp 0x587aac
cmp edi, eax
jl 0x587aac
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
cmp eax, ecx
jg 0x587aba
mov dword [esp + 0x34], ecx
jmp 0x587ac2
cmp eax, edx
jl 0x587ac2
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x38]
cmp eax, ecx
jg 0x587ad0
mov dword [esp + 0x38], ecx
jmp 0x587ad8
cmp eax, esi
jl 0x587ad8
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jg 0x587ae6
mov dword [esp + 0x3c], ecx
jmp 0x587aee
cmp eax, edx
jl 0x587aee
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x40]
cmp eax, ecx
jg 0x587afc
mov dword [esp + 0x40], ecx
jmp 0x587b04
cmp eax, edx
jl 0x587b04
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x4c]
cmp eax, ecx
jg 0x587b12
mov dword [esp + 0x4c], ecx
jmp 0x587b1a
cmp eax, esi
jl 0x587b1a
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x50]
cmp eax, ecx
jg 0x587b28
mov dword [esp + 0x50], ecx
jmp 0x587b30
cmp eax, esi
jl 0x587b30
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x48]
cmp eax, ecx
jg 0x587b3e
mov dword [esp + 0x48], ecx
jmp 0x587b46
cmp eax, edx
jl 0x587b46
mov dword [esp + 0x48], edx
cmp dword [esp + 0x74], 0
mov edi, dword [esp + 0x38]
mov ebp, dword [edi*4 + 0x726988]
mov edi, dword [esp + 0x3c]
mov edi, dword [edi*4 + 0x726990]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx*4 + 0x726954]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx*4 + 0x726960]
mov edx, dword [esp + 0x30]
mov edx, dword [edx*4 + 0x72696c]
mov esi, dword [esp + 0x34]
mov esi, dword [esi*4 + 0x72697c]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x40]
mov edi, dword [edi*4 + 0x72699c]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x4c]
mov edi, dword [edi*4 + 0x7269a8]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x50]
mov edi, dword [edi*4 + 0x7269b0]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x48]
mov edi, dword [edi*4 + 0x7269b8]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x78]
mov dword [ebx + 8], edi
mov edi, dword [esp + 0x7c]
mov dword [ebx + 0xc], edi
mov edi, dword [esp + 0x80]
mov dword [ebx + 0x10], edi
mov edi, dword [esp + 0x84]
mov dword [ebx + 0x14], edi
jne 0x587bf8
mov dword [ebx + 0x18], 0
pop edi
mov dword [0x890330], eax
mov eax, dword [esp + 0x68]
mov dword [0x890334], ecx
mov ecx, dword [esp + 0x64]
mov dword [0x890338], edx
mov edx, dword [esp + 0x60]
mov dword [0x89033c], esi
pop esi
mov dword [0x890340], ebp
mov dword [0x890344], eax
mov eax, dword [esp + 0x54]
mov dword [0x890348], ecx
mov ecx, dword [esp + 0x58]
mov dword [0x89034c], edx
mov edx, dword [esp + 0x68]
pop ebp
mov dword [0x890350], eax
mov dword [0x890354], ecx
mov dword [0x890358], edx
pop ebx
add esp, 0xa8
ret 4