Function at 0x1000def0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
push str.1.__s.
push str.IsReadOnlyFilePath
push 3
call fcn.1000e720
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000de50
add esp, 4
test eax, eax
je 0x1000df43
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10004cd0
add esp, 8
test eax, eax
jne 0x1000df79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
push str.2.__08X.__s.
push str.IsReadOnlyFilePath
push 2
call fcn.1000e720
add esp, 0x14
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000e175
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x1000df94
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 1]
cmp ecx, 0x5c
je 0x1000e05e
mov edx, dword [0x10029248]
mov dword [ebp - 0x14], edx
mov eax, dword [0x1002924c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx]
mov byte [ebp - 0x10], dl
push 0
push 0
push 3
push 0
push 3
push 0x20000000
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x1000e03d
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0x70024
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1000e020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push str.6.__08X.
push str.IsReadOnlyFilePath
push 3
call fcn.1000e720
add esp, 0x10
cmp dword [ebp - 8], 0x13
jne 0x1000e01e
mov dword [ebp - 0xc], 1
jmp 0x1000e031
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000e175
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000e05e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push str.7.__08X.
push str.IsReadOnlyFilePath
push 3
call fcn.1000e720
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000e0e3
mov dl, byte [0x100273cc]
mov byte [ebp - 0x20], dl
xor eax, eax
mov word [ebp - 0x1f], ax
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1001f2fe
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
jne 0x1000e0b3
cmp dword [ebp - 4], 0xffffffff
jne 0x1000e0dc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.3.__08X.__08X.
push str.IsReadOnlyFilePath
push 3
call fcn.1000e720
add esp, 0x14
mov eax, 1
jmp 0x1000e175
xor eax, eax
jmp 0x1000e175
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.4.__08X.__08X.
push str.IsReadOnlyFilePath
push 3
call fcn.1000e720
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1000e14d
mov ecx, dword [ebp - 4]
or ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x1000e14d
mov eax, dword [ebp - 4]
and al, 0xfe
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x1000e14d
mov edx, dword [ebp - 4]
or edx, 1
test edx, edx
je 0x1000e173
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1000e173
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.5.__08X.__08X.
push str.IsReadOnlyFilePath
push 3
call fcn.1000e720
add esp, 0x14
mov eax, 1
jmp 0x1000e175
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret