Function at 0x4092f0
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 0x4142b1
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x41908c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], eax
jb 0x409338
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
je 0x40934b
mov al, 1
jmp 0x40966c
xor eax, eax
mov word [ebp - 0x2dc], ax
xor edi, edi
push 3
mov eax, 0x417074
lea esi, [ebp - 0x2e0]
mov dword [ebp - 0x2c8], 7
mov dword [ebp - 0x2cc], edi
call fcn.004083c0
mov dword [ebp - 4], edi
push ebx
mov ecx, esi
lea edi, [ebp - 0x4c]
call fcn.00408750
add esp, 4
mov edi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c8], edi
jb 0x4093a9
mov ecx, dword [ebp - 0x2dc]
push ecx
call fcn.0040a3a5
add esp, 4
mov eax, dword [ebp - 0x48]
xor edx, edx
mov dword [ebp - 0x2c8], 7
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], dx
cmp dword [ebp - 0x34], edi
jae 0x4093d1
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x29c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2a0], esi
cmp esi, 0xffffffff
je 0x409623
cmp word [ebp - 0x270], 0x2e
jne 0x40941e
mov ax, word [ebp - 0x26e]
test ax, ax
je 0x409604
cmp ax, 0x2e
jne 0x40941e
cmp word [ebp - 0x26c], 0
je 0x409604
xor edx, edx
lea eax, [ebp - 0x270]
mov word [ebp - 0x2c0], dx
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409444
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x270]
lea esi, [ebp - 0x2c4]
call fcn.004083c0
push ebx
mov ecx, esi
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00408750
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2ac], 8
jb 0x409493
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.0040a3a5
add esp, 4
mov al, byte [ebp - 0x29c]
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], cx
test al, 0x10
je 0x4094f3
lea edx, [ebp - 0x30]
push edx
call fcn.004092f0
add esp, 4
test al, al
jne 0x4095ee
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x30]
call fcn.004081d0
lea ecx, [ebp - 0x4c]
call fcn.004081d0
xor al, al
jmp 0x40966c
test al, 1
je 0x40951b
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov eax, esi
cmp ecx, 8
jae 0x409509
lea eax, [ebp - 0x2c]
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov word [ebp - 0x2f8], ax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x2e8], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409540
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x270]
lea esi, [ebp - 0x2fc]
call fcn.004083c0
push ebx
mov ecx, esi
lea edi, [ebp - 0x318]
mov byte [ebp - 4], 6
call fcn.00408750
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x409581
mov eax, dword [eax + 4]
jmp 0x409584
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov esi, 8
sete bl
cmp dword [ebp - 0x300], esi
jb 0x4095ac
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.0040a3a5
add esp, 4
xor edx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x300], 7
mov dword [ebp - 0x304], 0
mov word [ebp - 0x314], dx
cmp dword [ebp - 0x2e4], esi
jb 0x4095e4
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.0040a3a5
add esp, 4
test bl, bl
jne 0x409639
mov ebx, dword [ebp - 0x2a8]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x409604
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040a3a5
add esp, 4
mov esi, dword [ebp - 0x2a0]
lea edx, [ebp - 0x29c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4093f0
lea edi, [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebx + 0x18], edi
jb 0x409645
mov edx, dword [ebp - 0x2a4]
mov eax, dword [edx]
jmp 0x40964b
mov ecx, dword [ebp - 0x2a0]
push ecx
jmp 0x4094d6
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
cmp dword [ebp - 0x34], 8
jb 0x40966a
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040a3a5
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 - 0x14]
xor ecx, ebp
call fcn.00409e7c
mov esp, ebp
pop ebp
ret