Function at 0x409f50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x41c0ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x409f8a
mov eax, dword [edi]
jmp 0x409f8c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
je 0x409f9f
mov al, 1
jmp 0x40a277
push 3
xor eax, eax
push 0x419858
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00409050
lea eax, [ebp - 0x40]
push eax
mov edx, edi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.004095d0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
jb 0x409ff2
push dword [ebp - 0x40]
call fcn.0040ae54
add esp, 4
xor eax, eax
cmp dword [ebp - 0x8c], 8
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push ecx
push eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2f4], esi
cmp esi, 0xffffffff
je 0x40a242
lea esp, [esp]
mov cx, word [ebp - 0x2c4]
cmp cx, 0x2e
jne 0x40a070
mov ax, word [ebp - 0x2c2]
test ax, ax
je 0x40a22c
cmp ax, cx
jne 0x40a070
cmp word [ebp - 0x2c0], 0
je 0x40a22c
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
test cx, cx
jne 0x40a08d
xor ecx, ecx
jmp 0x40a0a5
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a096
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x58]
call fcn.00409050
lea eax, [ebp - 0x58]
push eax
mov edx, edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004095d0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x44], 8
jb 0x40a0df
push dword [ebp - 0x58]
call fcn.0040ae54
add esp, 4
xor eax, eax
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
test al, 0x10
je 0x40a12c
lea ecx, [ebp - 0x28]
call fcn.00409f50
test al, al
jne 0x40a217
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
jb 0x40a125
push dword [ebp - 0x28]
call fcn.0040ae54
add esp, 4
xor bl, bl
jmp 0x40a25e
test al, 1
je 0x40a15a
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [ebp - 0x2f4]
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp word [ebp - 0x2c4], ax
jne 0x40a17b
xor ecx, ecx
jmp 0x40a193
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a184
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x70]
call fcn.00409050
lea eax, [ebp - 0x70]
push eax
mov edx, edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.004095d0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40a1c3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete bl
cmp dword [ebp - 0x74], 8
jb 0x40a1e3
push dword [ebp - 0x88]
call fcn.0040ae54
add esp, 4
xor eax, eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x40a20f
push dword [ebp - 0x70]
call fcn.0040ae54
add esp, 4
test bl, bl
jne 0x40a10d
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x40a22c
push dword [ebp - 0x28]
call fcn.0040ae54
add esp, 4
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a040
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x40a251
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
cmp dword [ebp - 0x8c], 8
jb 0x40a275
push dword [ebp - 0xa0]
call fcn.0040ae54
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a51f
mov esp, ebp
pop ebp
ret