Function at 0x401d30
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x401e57
push 0x40749c
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401e57
movzx eax, word [edi]
cmp eax, 0x5c
je 0x401e57
test ax, ax
je 0x401e57
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401db0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.004063aa
mov esp, ebp
pop ebp
ret 4
not eax
test al, 0x10
jne 0x401e57
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
je 0x401d94
test eax, eax
jne 0x401dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push 0x4074a4
mov esi, eax
call ebx
lea ecx, [eax + esi + 1]
cmp ecx, 0x104
jg 0x401e57
cmp word [edi + esi*2 - 2], 0x5c
push edi
jne 0x401e0e
push 0x4074b0
lea edx, [esp + 0x270]
push edx
jmp 0x401e1b
push str._s.
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401e70
push 0
push 0x4074cc
lea eax, [esp + 0x270]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.004063aa
mov esp, ebp
pop ebp
ret 4
push edi
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [esp + esi*2 + 0x266], 0x5c
lea eax, [esp + esi*2 + 0x266]
jne 0x401ea0
xor edx, edx
mov word [eax], dx
jmp 0x401ea0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4074d4
lea eax, [esp + 0x48]
push eax
call esi
test eax, eax
je 0x401f77
push 0x4074d8
lea ecx, [esp + 0x48]
push ecx
call esi
test eax, eax
je 0x401f77
push 0x4074e0
call ebx
lea edx, [esp + 0x44]
push edx
mov esi, eax
call ebx
add esi, eax
lea eax, [esp + 0x268]
push eax
call ebx
lea ecx, [eax + esi + 1]
cmp ecx, 0x104
jg 0x401f77
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x478]
push 0x4074e4
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x28]
add esp, 0x10
test al, 0x10
je 0x401f52
test al, 1
je 0x401f3f
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x474]
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x470]
push eax
call fcn.00401d30
jmp 0x401f77
test al, 5
je 0x401f69
push 0x80
lea ecx, [esp + 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401ea0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
je 0x401fb4
push 0
push 0x4074f0
push edi
jmp 0x401e4f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004063aa
mov esp, ebp
pop ebp
ret 4