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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004ebd0
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x1000a7d4
cmp word [ebx], 0
je 0x1000a7d4
call fcn.1000a970
test al, al
je 0x1000a5be
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov edi, ebx
mov byte [ebp - 4], 1
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1000a5f7
sub edi, ecx
mov esi, 0
sar edi, 1
je 0x1000a65f
lea ecx, [ecx]
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x1000a621
cmp eax, 0x2f
je 0x1000a621
push eax
jmp 0x1000a62f
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x20]
call fcn.1000a7f0
push 0x5c
push 1
lea ecx, [ebp - 0x4c]
call fcn.10002220
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x1000a65a
cmp eax, 0x2f
je 0x1000a65a
lea eax, [edi - 1]
cmp esi, eax
jne 0x1000a65a
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x20]
call fcn.1000a7f0
inc esi
cmp esi, edi
jb 0x1000a610
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
sub esp, 8
mov byte [ebp - 0xd], 1
mov ecx, esi
mov dword [ebp - 0x14], 0x3a
push eax
call fcn.1000a8c0
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
cmp eax, 0xffffffff
mov eax, 0x2aaaaaab
setne bl
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
cmp ebx, eax
jae 0x1000a769
lea eax, [ebx + ebx*2]
lea esi, [esi + eax*8]
lea ebx, [ebx]
cmp dword [esi + 0x14], 8
jb 0x1000a6ba
mov edi, dword [esi]
jmp 0x1000a6bc
mov edi, esi
cmp dword [0x1006e3e8], 0xffffffff
jne 0x1000a6f7
lea eax, [ebp - 0x34]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1000a6ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1006e3e8], 0x3a8
cmp eax, 0x57
je 0x1000a6f7
mov dword [0x1006e3e8], 0xd698
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000a707
test al, 0x10
jne 0x1000a753
cmp dword [esi + 0x14], 8
jb 0x1000a711
mov eax, dword [esi]
jmp 0x1000a713
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000a746
cmp dword [esi + 0x14], 8
jb 0x1000a736
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1000a753
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1000a753
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000a762
inc ebx
add esi, 0x18
cmp ebx, dword [ebp - 0x14]
jb 0x1000a6b0
jmp 0x1000a766
mov byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x38], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1000a77d
push dword [ebp - 0x4c]
call edi
add esp, 4
test esi, esi
je 0x1000a7c0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ebx, eax
je 0x1000a7ba
jmp 0x1000a790
cmp dword [esi + 0x14], 8
jb 0x1000a7a0
push dword [esi]
call edi
mov eax, dword [ebp - 0x1c]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x1000a790
push ebx
call edi
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret