Function at 0x10001250
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1fc
xor esi, esi
lea eax, [ebp - 0x200]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x210], ebx
call fcn.10006250
movsx ax, byte [ebx]
add esp, 0xc
mov dword [ebp - 0x20a], 0x5c003a
mov dword [ebp - 0x206], 0x5c200c
mov word [ebp - 0x20c], ax
xor eax, eax
mov word [ebp - 0x202], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
je 0x100012c8
test al, 0x10
jne 0x100012db
push 0
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x1000158a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push 6
push eax
call edi
test eax, eax
je 0x10001589
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x20a], 0x5c003a
mov dword [ebp - 0x206], 0x5c200c
movsx ax, byte [eax]
mov word [ebp - 0x20c], ax
xor eax, eax
mov word [ebp - 0x202], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebp + eax*2 - 0x20c], 0x5c200d
mov word [ebp + eax*2 - 0x208], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000135b
test al, 0x10
jne 0x1000136e
push 0
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x10001589
push 6
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x10001589
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x20a], 0x5c003a
mov dword [ebp - 0x206], 0x5c200c
movsx ax, byte [eax]
mov word [ebp - 0x20c], ax
xor eax, eax
mov word [ebp - 0x202], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebp + eax*2 - 0x20c], 0x5c200d
mov word [ebp + eax*2 - 0x208], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebp + eax*2 - 0x20c], 0x5c200e
mov word [ebp + eax*2 - 0x208], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001409
test al, 0x10
jne 0x1000141c
push 0
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x10001589
push 6
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x10001589
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x20a], 0x5c003a
mov dword [ebp - 0x206], 0x5c200c
movsx ax, byte [eax]
mov word [ebp - 0x20c], ax
xor eax, eax
mov word [ebp - 0x202], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebp + eax*2 - 0x20c], 0x5c200d
mov word [ebp + eax*2 - 0x208], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebp + eax*2 - 0x20c], 0x5c200f
mov word [ebp + eax*2 - 0x208], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100014b7
test al, 0x10
jne 0x100014ca
push 0
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x10001589
push 6
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x10001589
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x20a], 0x5c003a
mov dword [ebp - 0x206], 0x5c200c
movsx ax, byte [eax]
mov word [ebp - 0x20c], ax
xor eax, eax
mov word [ebp - 0x202], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebp + eax*2 - 0x20c], 0x5c200d
mov word [ebp + eax*2 - 0x208], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [ebp + eax*2 - 0x20c], 0x5c200c
mov word [ebp + eax*2 - 0x208], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001565
test al, 0x10
jne 0x10001574
push 0
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x10001589
push 6
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
mov ecx, 0x8b550001
push ebp
mov ebp, esp