Function at 0x4997e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f4b1
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x610304]
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 [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x49981e
xor eax, eax
jmp 0x499a11
push eax
lea ecx, [ebp - 0x264]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], ebx
call sym.txupd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
add eax, 0xffffffff
push eax
lea ecx, [ebp - 0x264]
call sym.txupd.exe_public:_wchar_t___thiscall_CTXStringW::GetAt_int_const
cmp ax, 0x5c
je 0x499886
push 0x5d13ac
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x268]
push ecx
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.0049f0c7
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push 0x250
lea edx, [ebp - 0x260]
push ebx
push edx
mov esi, 1
call sub.MSVCR80.dll_memset
push 0x5b0408
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0x18
lea edx, [ebp - 0x260]
push edx
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x26c]
mov edi, eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
cmp edi, 0xffffffff
je 0x4999cb
cmp esi, ebx
je 0x4999c4
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x268]
push edx
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0xc
mov eax, dword [ebp - 0x260]
test al, 0x10
mov byte [ebp - 4], 2
je 0x499957
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x5d1de0
lea eax, [ebp - 0x234]
push eax
call esi
test eax, eax
je 0x4999a1
push 0x5a7b3c
lea ecx, [ebp - 0x234]
push ecx
call esi
test eax, eax
je 0x4999a1
push ebx
lea ecx, [ebp - 0x268]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.004997e0
add esp, 8
jmp 0x4999a1
test al, 1
je 0x499971
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x268]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x268]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4999a1
cmp dword [ebp + 0xc], ebx
je 0x4999a1
push 4
push ebx
lea ecx, [ebp - 0x268]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [ebp - 0x260]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ebp - 0x268]
mov esi, eax
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x4998e3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x264]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
cmp esi, ebx
jne 0x4999fd
cmp dword [ebp + 0xc], ebx
je 0x4999fd
push 4
push ebx
lea ecx, [ebp - 0x264]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
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.00584870
mov esp, ebp
pop ebp
ret