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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ce34
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x5bf364]
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 ebx, edx
mov dword [ebp - 0x264], ebx
mov edx, ecx
mov dword [ebp - 0x268], edx
lea ecx, [ebp - 0x29c]
call fcn.00405c90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x29c]
push edx
mov dword [ebp - method.CMStringArray.virtual_0], vtable.CWString.0
call fcn.0049c380
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x29c]
call fcn.0049beb0
mov edx, eax
mov eax, dword [edx + 0x14]
cmp eax, 2
jb 0x4974e5
mov ecx, dword [edx + 0xc]
movzx ecx, word [ecx + eax - 2]
test cx, cx
jne 0x4974e5
add eax, 0xfffffffe
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x27c]
mov esi, dword [ebp - 0x278]
sub eax, esi
mov dword [ebp - 0x270], 0x5c
cmp eax, 4
jl 0x49751a
mov ecx, dword [ebp - 0x280]
mov eax, dword [ebp - 0x270]
mov dword [ecx + esi], eax
add dword [ebp - 0x278], 4
jmp 0x497532
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x28c]
call fcn.004992e0
mov ecx, dword [ebp - 0x270]
mov dword [eax + esi], ecx
push 0x58d01c
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x2c8]
call fcn.0049d910
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x497563
cmp dword [eax + 0x24], ecx
mov ecx, 0x580994
je 0x497563
mov ecx, dword [eax + 0x1c]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
call fcn.00405c00
mov byte [ebp - 4], 1
mov dword [ebp - method.CMStringArray.virtual_0], vtable.CVolObject.0
cmp edi, 0xffffffff
je 0x4976af
xor eax, eax
cmp dword [ebp - 0x264], 2
cmove ebx, eax
cmp word [ebp - 0x234], 0x2e
jne 0x4975d3
mov ax, word [ebp - 0x232]
test ax, ax
je 0x49768c
cmp ax, 0x2e
jne 0x4975d3
cmp word [ebp - 0x230], 0
je 0x49768c
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x29c]
push eax
je 0x49763c
lea ecx, [ebp - 0x2f4]
call fcn.0049d910
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x49760f
cmp dword [eax + 0x24], ecx
mov ecx, 0x580994
je 0x49760f
mov ecx, dword [eax + 0x1c]
push 0
mov edx, ebx
call fcn.00497450
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2e4]
call fcn.00405c00
mov byte [ebp - 4], 1
mov dword [ebp - method.CMStringArray.virtual_0], vtable.CVolObject.0
jmp 0x497688
lea ecx, [ebp - 0x320]
call fcn.0049d910
add esp, 4
mov byte [ebp - 4], 8
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x497662
cmp dword [eax + 0x24], ecx
mov ecx, 0x580994
je 0x497662
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x310]
call fcn.00405c00
mov byte [ebp - 4], 1
mov dword [ebp - method.CMStringArray.virtual_0], vtable.CVolObject.0
test esi, esi
je 0x4976ba
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4975a5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x264]
test ebx, ebx
je 0x4976c5
mov esi, 1
jmp 0x4976d3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
jmp 0x4976d3
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x28c]
call fcn.00405c00
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - method.CMStringArray.virtual_0], vtable.CVolObject.0
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.0050ec8c
mov esp, ebp
pop ebp
ret