Function at 0x100ba920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8b97
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x102a100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10019ce0
mov ecx, eax
test ecx, ecx
je 0x100baca9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100ba98f
push 0x104
lea ecx, [ebp - 0x14]
call fcn.1001d1a0
mov esi, dword [ebp - 0x14]
push 0x104
push str.settings.ini
push esi
call fcn.100309c8
push dword [esi - 8]
push esi
call fcn.1002e75f
add esp, 0x14
test eax, eax
js 0x100bac9f
cmp eax, dword [esi - 8]
jg 0x100bac9f
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100ba9ec
push 0
push str.Error
push str.Settings_INI_File_Was_Not_Found_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor bl, bl
jmp 0x100bac63
push esi
push 0x10249f4c
mov edx, str.ToggleButton
lea ecx, [ebp - 0x2c]
call fcn.100ba430
add esp, 8
mov ecx, 0x102a1d90
push eax
call fcn.10007cd0
lea ecx, [ebp - 0x2c]
call fcn.10007c80
push esi
push 0x10249f70
mov edx, str.ToggleOnlineButton
lea ecx, [ebp - 0x2c]
call fcn.100ba430
add esp, 8
mov ecx, 0x102a1da8
push eax
call fcn.10007cd0
lea ecx, [ebp - 0x2c]
call fcn.10007c80
push esi
push 0x10249fa0
mov edx, str.ToggleHUDButton
lea ecx, [ebp - 0x2c]
call fcn.100ba430
add esp, 8
mov ecx, 0x102a1dc0
push eax
call fcn.10007cd0
lea ecx, [ebp - 0x2c]
call fcn.10007c80
push esi
push 0x10249fc8
mov edx, str.SaveStateKeybind
lea ecx, [ebp - 0x2c]
call fcn.100ba430
add esp, 8
mov ecx, 0x102a1dd8
push eax
call fcn.10007cd0
lea ecx, [ebp - 0x2c]
call fcn.10007c80
push esi
push 0x10249ff4
mov edx, str.LoadStateKeybind
lea ecx, [ebp - 0x2c]
call fcn.100ba430
add esp, 8
mov ecx, 0x102a1df0
push eax
call fcn.10007cd0
lea ecx, [ebp - 0x2c]
call fcn.10007c80
push esi
push 0x1024a020
mov edx, str.LoadReplayStateKeybind
lea ecx, [ebp - 0x2c]
call fcn.100ba430
add esp, 8
mov ecx, 0x102a1e08
push eax
call fcn.10007cd0
lea ecx, [ebp - 0x2c]
call fcn.10007c80
push esi
push str.none
mov edx, str.DinputDllWrapper
lea ecx, [ebp - 0x2c]
call fcn.100ba430
add esp, 8
mov ecx, 0x102a1e20
push eax
call fcn.10007cd0
lea ecx, [ebp - 0x2c]
call fcn.10007c80
push esi
mov edx, str.1920
mov ecx, str.RenderingWidth
call fcn.100ba6f0
push esi
mov edx, str.1080
mov dword [0x102a1e38], eax
mov ecx, str.RenderingHeight
call fcn.100ba6f0
push esi
mov edx, 0x1024a0e0
mov dword [0x102a1e3c], eax
mov ecx, 0x1024a0e4
call fcn.100ba6f0
push esi
mov edx, 0x1024a0f8
mov dword [0x102a1e40], eax
mov ecx, str.AntiAliasing
call fcn.100ba6f0
push esi
mov edx, 0x1024a11c
mov dword [0x102a1e44], eax
mov ecx, 0x1024a120
call fcn.100ba6f0
push esi
mov edx, 0x1024a130
mov dword [0x102a1e48], eax
mov ecx, 0x1024a134
call fcn.100ba6f0
push esi
mov edx, 0x1024a0e0
mov dword [0x102a1e4c], eax
mov ecx, str.Notifications
call fcn.100ba6f0
push esi
mov edx, 0x1024a0e0
mov dword [0x102a1e50], eax
mov ecx, str.CheckUpdates
call fcn.100ba6f0
push esi
mov edx, 0x1024a0e0
mov dword [0x102a1e51], eax
mov ecx, str.LoadForeignPalettesToggleDefault
call fcn.100ba6f0
add esp, 0x24
mov dword [0x102a1e52], eax
cmp dword [0x102a1da0], 2
jne 0x100babec
cmp dword [0x102a1da4], 0x10
mov eax, 0x102a1d90
cmovae eax, dword [0x102a1d90]
cmp byte [eax], 0x46
je 0x100babfd
push 2
push 0x1024a1c4
mov ecx, 0x102a1d90
call fcn.10007eb0
cmp dword [0x102a1db8], 2
jne 0x100bac1e
cmp dword [0x102a1dbc], 0x10
mov eax, 0x102a1da8
cmovae eax, dword [0x102a1da8]
cmp byte [eax], 0x46
je 0x100bac2f
push 2
push 0x1024a1c8
mov ecx, 0x102a1da8
call fcn.10007eb0
cmp dword [0x102a1dd0], 2
jne 0x100bac50
cmp dword [0x102a1dd4], 0x10
mov eax, 0x102a1dc0
cmovae eax, dword [0x102a1dc0]
cmp byte [eax], 0x46
je 0x100bac61
push 2
push 0x1024a1cc
mov ecx, 0x102a1dc0
call fcn.10007eb0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100bac82
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e823
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10019bb0
push 0x80004005
call fcn.10019bb0
int3