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

Disassembly:
mov eax, 0x10d857d
call fcn.0107a498
sub esp, 0x18
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], 0x80
call fcn.0108a8ea
dec eax
jne 0x108b8e0
cmp dword [0x10f4644], edi
jne 0x108b8e0
cmp dword [0x10eae48], edi
push esi
je 0x108b6db
xor eax, eax
mov ax, word [0x10f1de0]
push eax
call dword [sym.imp.ntdll.dll_iswalpha]
test eax, eax
pop ecx
je 0x108b6db
cmp word [0x10f1de2], 0x3a
jne 0x108b6db
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], edi
call sub.MFC42u.dll_CString::CString_2
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call sub.MFC42u.dll_CString::CString_2
xor eax, eax
mov ax, word [0x10f1de0]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
call fcn.0108a223
mov esi, eax
cmp esi, edi
jne 0x108b68b
cmp dword [ebp - 0x24], edi
je 0x108b66d
mov dword [ebp - 0x20], 0x20000080
jmp 0x108b6c3
lea eax, [ebp - 0x1c]
push eax
push 0x2714
call fcn.0108c524
push dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
call sub.MFC42u.dll_CString::Format
pop ecx
pop ecx
jmp 0x108b6a9
lea eax, [ebp - 0x1c]
push eax
push 0x2715
call fcn.0108c524
push esi
push dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
call sub.MFC42u.dll_CString::Format
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax - 8], edi
jle 0x108b6c3
lea ecx, [ebp + 8]
push edi
call sub.MFC42u.dll_CString::GetBuffer
push eax
push edi
call fcn.01053108
pop ecx
pop ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::CString
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push dword [ebp - 0x20]
mov esi, 0x10f1de0
push 4
push edi
push edi
push 0xc0000000
push esi
mov dword [0x10f462c], edi
call ebx
cmp eax, 0xffffffff
mov dword [0x10f45ec], eax
jne 0x108b869
mov edi, 0x10f21e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
mov dword [0x10f21e0], eax
mov dword [ebp - 0x10], eax
jne 0x108b7fb
lea ecx, [ebp - 0x18]
call sub.MFC42u.dll_CString::CString_2
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call sub.MFC42u.dll_CString::CString_2
push esi
push edi
mov byte [ebp - 4], 3
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x108b844
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
and word [eax], 0
pop ecx
pop ecx
push 0x2805
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::LoadStringW
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call sub.MFC42u.dll_CString::Format
add esp, 0xc
call fcn.01022d6e
cmp word [eax + 0xb88], 2
je 0x108b7b7
push 1
push 0
push 0x40
push 4
push dword [ebp - 0x18]
push 0x2806
call fcn.01056de7
cmp eax, 6
jne 0x108b83c
push edi
call fcn.0108a121
test eax, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
je 0x108b840
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.dll_CString::CString
xor eax, eax
push eax
push dword [ebp - 0x20]
push 4
push eax
push eax
push 0xc0000000
push esi
call ebx
cmp eax, 0xffffffff
mov dword [0x10f45ec], eax
je 0x108b710
jmp 0x108b867
xor edi, edi
push edi
push dword [ebp - 0x20]
push 4
push edi
push edi
push 0x80000000
push esi
call ebx
cmp eax, 0xffffffff
mov dword [0x10f45ec], eax
jne 0x108b827
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10f21e0], eax
mov dword [ebp - 0x10], eax
jmp 0x108b867
mov dword [0x10f21e0], edi
mov dword [ebp - 0x10], edi
mov dword [0x10f462c], 1
jmp 0x108b867
push 3
jmp 0x108b846
push 0x57
jmp 0x108b84d
push 0x57
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
pop eax
mov dword [0x10f21e0], eax
mov dword [ebp - 0x10], eax
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.dll_CString::CString
xor edi, edi
cmp dword [0x10f21e0], 0xb7
pop ebx
jne 0x108b87c
mov dword [0x10f21e0], edi
cmp dword [0x10f45ec], 0xffffffff
je 0x108b8df
push esi
mov dword [0x10f4644], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x108b8a3
or eax, 0x2000
push eax
jmp 0x108b8a8
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.0108a6b5
push edi
push dword [0x10f463c]
push dword [0x10f4638]
push dword [0x10f45ec]
call fcn.0108a996
push edi
push dword [0x10e61f8]
push edx
push eax
call fcn.0107a890
mov dword [0x10f4630], eax
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
leave
ret 4