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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee620
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x490101
xor al, al
jmp 0x4903a6
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 2
jb 0x4903c4
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x49011b
mov eax, dword [edi]
push 2
push 0x530d50
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2a0]
call fcn.0040a490
cmp dword [ebp - 0x28c], 7
lea ecx, [ebp - 0x288]
lea eax, [ebp - 0x2a0]
cmova eax, dword [ebp - 0x2a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 4], 0
call fcn.0040a900
cmp esi, 0xffffffff
je 0x49030f
nop word [eax + eax]
mov ecx, 0x5263c4
lea eax, [ebp - 0x25c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4901b6
test dx, dx
je 0x4901b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4901b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x490190
xor eax, eax
jmp 0x4901bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4902f2
mov eax, 0x530d58
lea ecx, [ebp - 0x25c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4901f6
test dx, dx
je 0x4901f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4901f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4901d0
xor eax, eax
jmp 0x4901fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4902f2
mov ecx, dword [edi + 0x10]
mov eax, 0x5c
mov word [ebp - 0x18], ax
cmp ecx, 0x7ffffffe
je 0x4903c4
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x490225
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2b8]
call fcn.0040a490
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490250
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040a680
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2b8]
call fcn.0040a900
mov eax, dword [ebp - 0x288]
test al, 0x10
je 0x4902de
test eax, 0x400
jne 0x4902e6
push 1
push 0
mov dl, 1
lea ecx, [ebp - 0x34]
call fcn.004900b0
add esp, 8
jmp 0x4902e6
lea ecx, [ebp - 0x34]
call fcn.00491040
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.0040a900
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x490180
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x490319
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490388
test al, 0x10
je 0x490388
xor esi, esi
nop dword [eax + eax]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x49033a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490365
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x49035d
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x49036f
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x490388
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 1
jl 0x490330
cmp dword [edi + 0x14], 7
jbe 0x490390
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4903a4
test al, 0x10
jne 0x4900fa
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040a970
int3