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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
lea eax, [ebp - 0x20c]
cmp edi, 0xffffffff
je 0x4023e9
push edi
xor ebx, ebx
push ebx
push eax
push 0x104
push dword [ebp + 0xc]
call dword [esi + 0x10]
test eax, eax
setne al
jmp 0x402401
push 0
push eax
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
setne al
xor ebx, ebx
test al, al
jne 0x40240c
xor eax, eax
jmp 0x4025e0
push 0x4034a0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x402405
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20c]
cmp edi, 0xffffffff
je 0x402449
push edi
push ebx
push eax
push ebx
lea eax, [ebp - 0x45c]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [esi + 0x18]
jmp 0x402461
push ebx
push eax
push ebx
lea eax, [ebp - 0x45c]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
push eax
lea ecx, [ebp - 4]
call fcn.00401dad
cmp dword [ebp - 4], 0xffffffff
jne 0x402483
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
neg eax
sbb eax, eax
inc eax
jmp 0x4025e0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp + 0x13], 0
push 0x40349c
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40257f
push 0x403494
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40257f
lea eax, [ebp - 0x430]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x402545
mov eax, dword [ebp - 0x45c]
test al, 1
je 0x402525
and eax, 0xfffffffe
cmp edi, 0xffffffff
je 0x4024fc
push edi
push eax
lea eax, [ebp - 0x664]
push eax
call dword [esi + 0x14]
jmp 0x40250a
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
jne 0x40251f
call ebx
cmp eax, 2
je 0x40251f
cmp eax, 3
jne 0x402545
mov eax, dword [ebp - 0x45c]
test al, 0x10
lea eax, [ebp - 0x664]
je 0x402553
push edi
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004023b6
cmp eax, 0xffffffff
je 0x40257b
cmp eax, 1
je 0x40257f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402405
cmp edi, 0xffffffff
je 0x40255f
push edi
push eax
call dword [esi + 0x1c]
jmp 0x402566
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x40257f
call ebx
cmp eax, 2
je 0x40257f
cmp eax, 5
jne 0x402545
mov byte [ebp + 0x13], 1
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40248d
call ebx
push dword [ebp - 4]
cmp eax, 0x12
jne 0x402548
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x13], 0
je 0x4025b2
or eax, 0xffffffff
jmp 0x4025e0
cmp edi, 0xffffffff
je 0x4025c0
push edi
push dword [ebp + 0xc]
call dword [esi + 0x24]
jmp 0x4025c9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
jne 0x4025dd
call ebx
cmp eax, 3
jne 0x402405
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc