Function at 0x100d5770
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20c
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
je 0x100d5ab8
mov esi, dword [esp + 0x224]
cmp esi, ebp
je 0x100d5ab8
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x20]
push ebp
push ecx
push eax
mov dword [esp + 0x2c], ebp
call fcn.10128970
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x100d57bb
test al, 0x10
je 0x100d57e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
mov dword [0x10281e18], eax
je 0x100d5aca
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
xor edi, edi
call ebx
cmp eax, 0xffffffff
je 0x100d5801
test al, 0x10
jne 0x100d5801
test al, 1
mov edi, 1
je 0x100d5801
mov ebp, edi
mov cl, byte [esp + 0x228]
test cl, 1
je 0x100d5828
test edi, edi
je 0x100d5828
pop edi
pop esi
pop ebp
mov dword [0x10281e18], 0x50
xor eax, eax
pop ebx
add esp, 0x20c
ret
test cl, 2
je 0x100d5848
test ebp, ebp
je 0x100d5848
pop edi
pop esi
pop ebp
mov dword [0x10281e18], 5
xor eax, eax
pop ebx
add esp, 0x20c
ret
cmp eax, 0xffffffff
je 0x100d58bd
test al, 0x10
je 0x100d5893
push 0
push 0x100d8240
push 0x20
push esi
call fcn.100d71a0
add esp, 0x10
push esi
call ebx
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100d58bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10281e18], eax
je 0x100d58bd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100d58bd
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x100d58bd
push esi
call ebx
cmp eax, 0xffffffff
je 0x100d58bd
test al, 0x10
jne 0x100d58bd
test al, 1
je 0x100d58bd
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
mov edx, dword [esp + 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
push edx
mov dword [0x10281e18], 0
call ebx
mov ebp, eax
xor edi, edi
cmp ebp, edi
jne 0x100d5a3a
test byte [esp + 0x228], 4
jne 0x100d5a47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x100d5a47
mov word [esp + 0x14], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
push 0x5c
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x100d594a
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0x104
jae 0x100d594a
push edi
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov word [esp + edi*2 + 0x14], 0
lea ecx, [esp + 0x14]
mov edi, 0x57
test ecx, ecx
jne 0x100d5968
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
mov dword [0x10281e18], edi
call ebp
jmp 0x100d59a3
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x2c], 0
call fcn.10128970
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x100d599d
test al, 0x10
jne 0x100d5a24
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x14]
test ecx, ecx
jne 0x100d59b4
mov dword [0x10281e18], edi
push edi
jmp 0x100d5a15
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d59e3
test al, 0x10
jne 0x100d5a17
lea eax, [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100d5a17
lea eax, [esp + 0x14]
push eax
call fcn.100d6720
add esp, 4
test eax, eax
jne 0x100d5a17
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10281e18], eax
je 0x100d5a17
push eax
call ebp
mov ecx, dword [esp + 0x220]
push esi
push ecx
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10281e18], eax
je 0x100d5a3a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
test byte [esp + 0x228], 8
je 0x100d5a24
call fcn.10128c50
mov eax, dword [0x10284898]
cmp eax, edi
jne 0x100d5a73
push 0x7f
mov dword [0x10281e18], 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100d5a24
mov edx, dword [esp + 0x220]
push edi
push edi
push 0x241
push esi
push edi
push edx
push edi
push edi
call eax
test eax, eax
jne 0x100d5aa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [0x10281e18], eax
je 0x100d5aa2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [0x10281e18], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
mov edi, 0x57
push edi
mov dword [0x10281e18], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret