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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7fd7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x102a000c]
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.1001a3f0
mov ecx, eax
test ecx, ecx
je 0x100ba5ae
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 0x100ba30f
push 0x104
lea ecx, [ebp - 0x14]
call fcn.1001d7b0
mov esi, dword [ebp - 0x14]
push 0x104
push str.settings.ini
push esi
call fcn.10030a08
push dword [esi - 8]
push esi
call fcn.1002e79f
add esp, 0x14
test eax, eax
js 0x100ba5a4
cmp eax, dword [esi - 8]
jg 0x100ba5a4
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 0x100ba36c
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 0x100ba568
push esi
push 0x10248ddc
mov edx, str.ToggleButton
lea ecx, [ebp - 0x2c]
call fcn.100b9db0
add esp, 8
mov ecx, 0x102a0de8
push eax
call fcn.1000df20
lea ecx, [ebp - 0x2c]
call fcn.10007de0
push esi
push 0x10248e00
mov edx, str.ToggleOnlineButton
lea ecx, [ebp - 0x2c]
call fcn.100b9db0
add esp, 8
mov ecx, 0x102a0e00
push eax
call fcn.1000df20
lea ecx, [ebp - 0x2c]
call fcn.10007de0
push esi
push 0x10248e30
mov edx, str.ToggleHUDButton
lea ecx, [ebp - 0x2c]
call fcn.100b9db0
add esp, 8
mov ecx, 0x102a0e18
push eax
call fcn.1000df20
lea ecx, [ebp - 0x2c]
call fcn.10007de0
push esi
push str.none
mov edx, str.DinputDllWrapper
lea ecx, [ebp - 0x2c]
call fcn.100b9db0
add esp, 8
mov ecx, 0x102a0e30
push eax
call fcn.1000df20
lea ecx, [ebp - 0x2c]
call fcn.10007de0
push esi
mov edx, str.1920
mov ecx, str.RenderingWidth
call fcn.100ba070
push esi
mov edx, str.1080
mov dword [0x102a0e48], eax
mov ecx, str.RenderingHeight
call fcn.100ba070
push esi
mov edx, 0x10248ee0
mov dword [0x102a0e4c], eax
mov ecx, 0x10248ee4
call fcn.100ba070
push esi
mov edx, 0x10248ef8
mov dword [0x102a0e50], eax
mov ecx, str.AntiAliasing
call fcn.100ba070
push esi
mov edx, 0x10248f1c
mov dword [0x102a0e54], eax
mov ecx, 0x10248f20
call fcn.100ba070
push esi
mov edx, 0x10248f30
mov dword [0x102a0e58], eax
mov ecx, 0x10248f34
call fcn.100ba070
push esi
mov edx, 0x10248ee0
mov dword [0x102a0e5c], eax
mov ecx, str.Notifications
call fcn.100ba070
mov dword [0x102a0e60], eax
mov edx, 0x10248ee0
push esi
mov ecx, str.CheckUpdates
call fcn.100ba070
push esi
mov edx, 0x10248ee0
mov dword [0x102a0e61], eax
mov ecx, str.LoadForeignPalettesToggleDefault
call fcn.100ba070
add esp, 0x24
mov dword [0x102a0e62], eax
cmp dword [0x102a0df8], 2
jne 0x100ba4f1
cmp dword [0x102a0dfc], 0x10
mov eax, 0x102a0de8
cmovae eax, dword [0x102a0de8]
cmp byte [eax], 0x46
je 0x100ba502
push 2
push 0x10248fc4
mov ecx, 0x102a0de8
call fcn.10007ee0
cmp dword [0x102a0e10], 2
jne 0x100ba523
cmp dword [0x102a0e14], 0x10
mov eax, 0x102a0e00
cmovae eax, dword [0x102a0e00]
cmp byte [eax], 0x46
je 0x100ba534
push 2
push 0x10248fc8
mov ecx, 0x102a0e00
call fcn.10007ee0
cmp dword [0x102a0e28], 2
jne 0x100ba555
cmp dword [0x102a0e2c], 0x10
mov eax, 0x102a0e18
cmovae eax, dword [0x102a0e18]
cmp byte [eax], 0x46
je 0x100ba566
push 2
push 0x10248fcc
mov ecx, 0x102a0e18
call fcn.10007ee0
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 0x100ba587
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.1001e883
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1001a2c0
push 0x80004005
call fcn.1001a2c0
int3