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

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x506420
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x51e0b8
je 0x46fde1
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x46fdf7
cmp ecx, dword [esi - 0x10]
jne 0x46fdf7
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x46fe22
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x46fe0b
call fcn.004069b7
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.004068e0
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0046f310
push 0x5292f8
call fcn.004d828d
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push 0x5292f8
call fcn.004072ec
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.004d3e90
mov esi, dword [ebp - 0x10]
lea eax, [ebp]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, eax
xor ecx, ecx
cmp edx, 0xffffffff
mov dword [ebp - 0x18], edx
setne cl
or ebx, 0xffffffff
test ecx, ecx
je 0x4700b6
cmp word [ebp + 0x2c], 0x2e
jne 0x46febc
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x46fea8
cmp ax, 0x2e
jne 0x46febc
cmp word [ebp + 0x30], 0
jne 0x46febc
lea eax, [ebp]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, dword [ebp - 0x18]
mov edi, eax
test edi, edi
jmp 0x46fe85
test byte [ebp], 0x10
mov eax, dword [ebp - 0x1c]
je 0x46ffd5
mov edi, dword [eax]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x51e0b8
je 0x46fedc
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi - 4], 0
lea eax, [edi - 4]
jl 0x46fef2
cmp ecx, dword [edi - 0x10]
jne 0x46fef2
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x46ff1c
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x46fe06
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
lea ecx, [ebx + 0x10]
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
call fcn.004068e0
add esp, 8
lea eax, [ebx + 0x10]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.0046f310
lea eax, [ebp + 0x2c]
push eax
call fcn.004d828d
add esp, 4
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004072ec
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.0046fd90
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x46ff76
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406951
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4700ac
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x46ffc4
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
test edi, edi
jmp 0x46fe85
mov ecx, edx
call ebx
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
test edi, edi
jmp 0x46fe85
mov edx, dword [eax]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x470047
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x47003b
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x47003b
call fcn.0040737c
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x470030
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov edi, dword [ecx + 4]
cmp ecx, 0x51e0b8
jne 0x47002c
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebx + 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x10], eax
jmp 0x470047
mov ecx, edx
call edi
lea eax, [ebx + 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x10], eax
jmp 0x470047
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040937e
lea ecx, [ebp - 0x10]
call fcn.0046f310
lea eax, [ebp + 0x2c]
push eax
call fcn.004d828d
add esp, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004072ec
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
mov esi, dword [ebp - 0x10]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x470091
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi - 4], 1
jle 0x4700a5
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406951
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x18]
test edi, edi
jmp 0x46fe85
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4700f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x4700f0
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4700f2
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004d207d
lea esp, [ebp + 0x254]
pop ebp
ret