Function at 0x46c720
Capabilities:
Check if file exists
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 0x4fb070
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
mov eax, bind
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x46cb32
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46c79f
mov eax, dword [esi]
push 4
push str..
push ecx
push eax
push ecx
push dword [ebp - 0x294]
lea ecx, [ebp - 0x2ac]
call fcn.004065c0
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406290
mov edx, dword [ebp - 0x298]
cmp edx, 8
jb 0x46c809
mov ecx, dword [ebp - 0x2ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c7ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cb37
push edx
push ecx
call fcn.00476a87
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46c813
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46ca97
test al, 0x10
jne 0x46c851
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46c831
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x46c845
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46ca97
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46ca88
nop word [eax + eax]
mov ecx, 0x519000
lea eax, [ebp - 0x264]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46c8b6
test dx, dx
je 0x46c8b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46c8b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x46c890
xor eax, eax
jmp 0x46c8bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x46ca54
mov eax, 0x521eb0
lea ecx, [ebp - 0x264]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x46c8f6
test dx, dx
je 0x46c8f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x46c8f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x46c8d0
xor eax, eax
jmp 0x46c8fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x46ca54
mov ecx, dword [esi + 0x10]
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x46cb32
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46c920
mov eax, dword [esi]
push 1
push 0x518990
push ecx
push eax
push ecx
push dword [ebp - 0x294]
lea ecx, [ebp - 0x2c4]
call fcn.004065c0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c950
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c4]
call fcn.0040df20
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2ac], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x40]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x2ac]
push eax
movq qword [ebp - 0x29c], xmm0
call fcn.00406290
mov edx, dword [ebp - 0x298]
cmp edx, 8
jb 0x46c9eb
mov ecx, dword [ebp - 0x2ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c9e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cb37
push edx
push ecx
call fcn.00476a87
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2b0]
cmp edx, 8
jb 0x46ca2f
mov ecx, dword [ebp - 0x2c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ca25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cb37
push edx
push ecx
call fcn.00476a87
add esp, 8
test byte [ebp - 0x290], 0x10
jne 0x46ca4c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46ca54
lea ecx, [ebp - 0x40]
call fcn.0046c720
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x46c880
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46ca7c
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x46ca90
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46cacd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cac3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cb37
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x46cb17
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cb0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cb37
push edx
push ecx
call fcn.00476a87
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
ret
call fcn.00401410
call fcn.004ca66d
int3