Function at 0x401480
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404210
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.._ITT.ini
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4016d7
cmp eax, 0x10
je 0x4016d7
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1c]
push str.._ITT.ini
push 0xa
push eax
push 0x4052ec
push str.Steering
push str.Player_1
call esi
mov ecx, 0x4052ec
lea eax, [ebp - 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401513
test dl, dl
je 0x40150f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401513
add eax, 2
add ecx, 2
test dl, dl
jne 0x4014f3
xor eax, eax
jmp 0x401518
sbb eax, eax
or eax, 1
push str.._ITT.ini
push 0xa
test eax, eax
lea eax, [ebp - 0x1c]
push eax
push 0x4052f0
push str.Acceleration
push str.Player_1
sete byte [0x408019]
call esi
mov ecx, 0x4052ec
lea eax, [ebp - 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401565
test dl, dl
je 0x401561
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401565
add eax, 2
add ecx, 2
test dl, dl
jne 0x401545
xor eax, eax
jmp 0x40156a
sbb eax, eax
or eax, 1
push str.._ITT.ini
push 0xa
test eax, eax
lea eax, [ebp - 0x1c]
push eax
push 0x4052f0
push str.Braking
push str.Player_1
sete byte [0x408595]
call esi
mov ecx, 0x4052ec
lea eax, [ebp - 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015b7
test dl, dl
je 0x4015b3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015b7
add eax, 2
add ecx, 2
test dl, dl
jne 0x401597
xor eax, eax
jmp 0x4015bc
sbb eax, eax
or eax, 1
push str.._ITT.ini
push 0xa
test eax, eax
lea eax, [ebp - 0x1c]
push eax
push 0x4052ec
push str.Steering
push str.Player_2
sete byte [0x4085a1]
call esi
mov ecx, 0x4052ec
lea eax, [ebp - 0x1c]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401610
test dl, dl
je 0x40160c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401610
add eax, 2
add ecx, 2
test dl, dl
jne 0x4015f0
xor eax, eax
jmp 0x401615
sbb eax, eax
or eax, 1
push str.._ITT.ini
push 0xa
test eax, eax
lea eax, [ebp - 0x1c]
push eax
push 0x4052f0
push str.Acceleration
push str.Player_2
sete byte [0x408018]
call esi
mov ecx, 0x4052ec
lea eax, [ebp - 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401662
test dl, dl
je 0x40165e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401662
add eax, 2
add ecx, 2
test dl, dl
jne 0x401642
xor eax, eax
jmp 0x401667
sbb eax, eax
or eax, 1
push str.._ITT.ini
push 0xa
test eax, eax
lea eax, [ebp - 0x1c]
push eax
push 0x4052f0
push str.Braking
push str.Player_2
sete byte [0x408597]
call esi
mov eax, 0x4052ec
lea ecx, [ebp - 0x1c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4016c2
test dl, dl
je 0x4016b0
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4016c2
add ecx, 2
add eax, 2
test dl, dl
jne 0x401694
xor eax, eax
test eax, eax
mov al, 1
sete byte [0x408594]
jmp 0x401866
sbb eax, eax
or eax, 1
test eax, eax
mov al, 1
sete byte [0x408594]
jmp 0x401866
push 0xb0
lea eax, [ebp - 0xd0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0xd0]
call fcn.00402b00
mov edx, str._Player_1__n
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov edx, str.Steering_
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov edx, 0x4052ec
mov ecx, eax
call fcn.00402ea0
mov edx, 0x4052e8
mov ecx, eax
call fcn.00402ea0
mov edx, str.Acceleration_
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov edx, 0x4052f0
mov ecx, eax
call fcn.00402ea0
mov edx, 0x4052e8
mov ecx, eax
call fcn.00402ea0
mov edx, str.Braking_
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov edx, 0x4052f0
mov ecx, eax
call fcn.00402ea0
mov edx, 0x405310
mov ecx, eax
call fcn.00402ea0
mov edx, str._Player_2__n
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov edx, str.Steering_
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov edx, 0x4052ec
mov ecx, eax
call fcn.00402ea0
mov edx, 0x4052e8
mov ecx, eax
call fcn.00402ea0
mov edx, str.Acceleration_
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov edx, 0x4052f0
mov ecx, eax
call fcn.00402ea0
mov edx, 0x4052e8
mov ecx, eax
call fcn.00402ea0
mov edx, str.Braking_
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov edx, 0x4052f0
mov ecx, eax
call fcn.00402ea0
mov edx, 0x405310
mov ecx, eax
call fcn.00402ea0
mov edx, str.__Save_by_writing_ON_or_OFF_for_these_tricks._This_will_enable_or_disable_them._n
lea ecx, [ebp - 0xd0]
call fcn.00402ea0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xcc]
call fcn.00402a20
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004034a2
mov esp, ebp
pop ebp
ret