Function at 0x46f2c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d05c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5c4104]
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 eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.00405650
add eax, 0x10
add esp, 4
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0
call fcn.004720d0
mov ecx, eax
call fcn.00472020
mov eax, dword [ebp - 0x264]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x46f334
xor edi, edi
jmp 0x46f5b9
push 1
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00404a90
mov byte [ebp - 4], 1
mov ecx, 0x5a023c
mov esi, dword [ebp - 0x26c]
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46f386
test dx, dx
je 0x46f382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46f386
add eax, 4
add ecx, 4
test dx, dx
jne 0x46f360
xor eax, eax
jmp 0x46f38b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x46f3b8
lea edx, [ebp - 0x26c]
mov ecx, 0x5a1edc
call fcn.00471c70
test al, al
je 0x46f3b8
push 0x5a023c
lea ecx, [ebp - 0x264]
call fcn.0041be30
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x46f3cf
xor edi, edi
jmp 0x46f579
push 0x5a1ee0
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x270]
call fcn.0041bc20
add esp, 4
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x270]
mov ebx, eax
call fcn.00404e00
cmp ebx, 0xffffffff
je 0x46f568
or esi, 0xffffffff
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x268]
call fcn.00404e80
mov byte [ebp - 4], 2
mov edx, 0x5a1ee8
mov eax, dword [ebp - 0x268]
mov ecx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x46f459
test di, di
je 0x46f455
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x46f459
add ecx, 4
add edx, 4
test di, di
jne 0x46f433
xor ecx, ecx
jmp 0x46f45e
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x46f503
mov edx, 0x59fd94
mov ecx, eax
nop dword [eax]
mov di, word [ecx]
cmp di, word [edx]
jne 0x46f496
test di, di
je 0x46f492
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x46f496
add ecx, 4
add edx, 4
test di, di
jne 0x46f470
xor ecx, ecx
jmp 0x46f49b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x46f503
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004048b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call fcn.00404da0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
call fcn.00404e00
test byte [ebp - 0x260], 0x10
je 0x46f4f1
lea ecx, [ebp - 0x268]
call fcn.0046f2c0
jmp 0x46f4fd
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x268]
lea ecx, [eax - 0x10]
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46f545
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46f541
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46f541
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46f545
mov ecx, edx
call edi
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46f410
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x26c]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov ecx, ebx
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46f5b9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46f5b7
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46f5b7
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46f5b9
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46f602
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x46f5fe
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x46f5fe
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46f602
mov ecx, edx
call esi
mov eax, edi
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.0051ac8e
mov esp, ebp
pop ebp
ret