Function at 0x401d28
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x403d73
mov eax, dword fs:[0]
push eax
sub esp, 0xab8
mov eax, dword [0x408018]
xor eax, esp
mov dword [esp + 0xab0], eax
push ebx
push esi
push edi
mov eax, dword [0x408018]
xor eax, esp
push eax
lea eax, [esp + 0xac8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
and dword [esp + 0x20], 0
mov dword [esp + 0x2c], ebx
and dword [esp + 0x2c], 2
mov dword [esp + 0x1c], esi
je 0x401d8e
test bl, 4
je 0x401d8e
mov ecx, esi
call fcn.004019fd
mov edi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCStr::constructor_wchar_t_const__]
push esi
lea ecx, [esp + 0x28]
call edi
and dword [esp + 0xad0], 0
push 0x40569c
lea ecx, [esp + 0x28]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCStr::Append_wchar_t_const__]
push dword [esp + 0x24]
lea eax, [esp + 0x34c]
call fcn.00402986
mov byte [esp + 0xad0], 1
mov eax, dword [eax]
lea ecx, [esp + 0x44c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x28], eax
mov byte [esp + 0xad0], 0
lea eax, [esp + 0x34c]
cmp dword [esp + 0x348], eax
je 0x401e05
push dword [esp + 0x348]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
xor eax, eax
inc eax
and bl, al
cmp dword [esp + 0x28], 0xffffffff
mov byte [esp + 0x17], bl
je 0x402162
test eax, eax
je 0x402162
lea eax, [esp + 0x44c]
call fcn.004010ab
test al, al
jne 0x402147
test byte [esp + 0x44c], 0x10
je 0x40200f
lea eax, [esp + 0x44c]
call fcn.004010ab
test al, al
jne 0x40200f
test bl, bl
jne 0x401e84
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x38]
call edi
mov byte [esp + 0xad0], 2
push dword [eax]
mov esi, dword [ebp + 0xc]
or dword [esp + 0x24], 1
call fcn.0040153d
test al, al
je 0x401e86
mov bl, 1
and dword [esp + 0xad0], 0
test byte [esp + 0x20], 1
je 0x401eab
and dword [esp + 0x20], 0xfffffffe
cmp dword [esp + 0x34], 0
je 0x401eab
lea ecx, [esp + 0x34]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
test bl, bl
je 0x402147
push dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
call edi
mov byte [esp + 0xad0], 3
mov esi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCStr::Append_wchar_t_const__]
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x1c]
call esi
push 0x4056a4
lea ecx, [esp + 0x1c]
call esi
cmp dword [ebp + 0xc], 2
jne 0x401ef0
push 1
push 2
jmp 0x401ef5
push 0
push dword [ebp + 0xc]
push dword [esp + 0x20]
call fcn.00401d28
lea eax, [esp + 0x8ac]
push eax
call fcn.00402bbd
mov byte [esp + 0xad0], 4
push dword [esp + 0x1c]
lea eax, [esp + 0x8b0]
push eax
call fcn.00402bef
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x8b0]
push eax
call fcn.00402bef
push dword [esp + 0x8ac]
lea eax, [esp + 0x248]
call fcn.00402986
mov byte [esp + 0xad0], 5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov byte [esp + 0xad0], 4
lea eax, [esp + 0x248]
cmp dword [esp + 0x244], eax
je 0x401f84
push dword [esp + 0x244]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test esi, esi
je 0x401fd8
push dword [esp + 0x8ac]
lea esi, [esp + 0xc0]
call fcn.004029cb
mov byte [esp + 0xad0], 6
push dword [eax]
push str.Deleting_directory__s_n
call dword [sym.imp.MSVCR80.dll_printf]
pop ecx
pop ecx
mov byte [esp + 0xad0], 4
lea eax, [esp + 0xc0]
cmp dword [esp + 0xbc], eax
je 0x401fd8
push dword [esp + 0xbc]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov byte [esp + 0xad0], 3
lea eax, [esp + 0x8ac]
push eax
call fcn.0040194d
mov byte [esp + 0xad0], 0
cmp dword [esp + 0x18], 0
je 0x402147
lea ecx, [esp + 0x18]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
jmp 0x402147
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x34]
call edi
mov byte [esp + 0xad0], 7
push dword [eax]
mov esi, dword [ebp + 0xc]
call fcn.004014ac
mov bl, al
mov byte [esp + 0xad0], 0
cmp dword [esp + 0x30], 0
je 0x40204a
lea ecx, [esp + 0x30]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
test bl, bl
je 0x402147
lea eax, [esp + 0x69c]
push eax
call fcn.00402bbd
mov byte [esp + 0xad0], 8
push dword [esp + 0x1c]
lea eax, [esp + 0x6a0]
push eax
call fcn.00402bef
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x6a0]
push eax
call fcn.00402bef
test byte [ebp + 0x10], 4
je 0x40209f
mov ecx, dword [esp + 0x69c]
call fcn.004019fd
push dword [esp + 0x69c]
lea eax, [esp + 0x144]
call fcn.00402986
mov byte [esp + 0xad0], 9
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov byte [esp + 0xad0], 8
lea eax, [esp + 0x144]
cmp dword [esp + 0x140], eax
je 0x4020ea
push dword [esp + 0x140]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test esi, esi
je 0x402132
push dword [esp + 0x69c]
lea esi, [esp + 0x3c]
call fcn.004029cb
mov byte [esp + 0xad0], 0xa
push dword [eax]
push str.Deleting__s_n
call dword [sym.imp.MSVCR80.dll_printf]
pop ecx
pop ecx
mov byte [esp + 0xad0], 8
lea eax, [esp + 0x3c]
cmp dword [esp + 0x38], eax
je 0x402132
push dword [esp + 0x38]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov byte [esp + 0xad0], 0
lea eax, [esp + 0x69c]
push eax
call fcn.0040194d
lea eax, [esp + 0x44c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov bl, byte [esp + 0x17]
jmp 0x401e19
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], 0
je 0x402204
push dword [esp + 0x1c]
lea eax, [esp + 0x144]
call fcn.00402986
mov byte [esp + 0xad0], 0xb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov byte [esp + 0xad0], 0
lea eax, [esp + 0x144]
cmp dword [esp + 0x140], eax
je 0x4021bf
push dword [esp + 0x140]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test esi, esi
je 0x402204
push dword [esp + 0x1c]
lea esi, [esp + 0x3c]
call fcn.004029cb
mov byte [esp + 0xad0], 0xc
push dword [eax]
push str.Deleting_directory__s_n
call dword [sym.imp.MSVCR80.dll_printf]
pop ecx
pop ecx
mov byte [esp + 0xad0], 0
lea eax, [esp + 0x3c]
cmp dword [esp + 0x38], eax
je 0x402204
push dword [esp + 0x38]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
or dword [esp + 0xad0], 0xffffffff
cmp dword [esp + 0x24], 0
je 0x40221d
lea ecx, [esp + 0x24]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
mov ecx, dword [esp + 0xac8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xab0]
xor ecx, esp
call fcn.004030fc
mov esp, ebp
pop ebp
ret 0xc