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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2e0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1000341e0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CControlBar::CControlBar
nop
lea rdx, [0x100002d58]
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDaoException::CDaoException
mov rdi, rax
mov esi, 1
mov r8d, esi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CFormView::SetOccDialogInfo
mov rdi, qword [rdi]
mov rcx, qword [rax]
sub rdi, rcx
movzx edx, word [rcx]
movzx eax, word [rcx + rdi]
sub edx, eax
jne 0x10001959a
add rcx, 2
test eax, eax
jne 0x100019587
test edx, edx
sete dil
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
test dil, dil
je 0x1000195ee
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax - 8]
dec r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDialog::OnCommandHelp
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_AfxDaoGetEngine
nop
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [0x100008040]
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x10001970c
test esi, esi
je 0x10001970c
test byte [rsp + 0x80], 0x10
jne 0x1000196f4
lea rdx, [0x100002d58]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
lea r8, [rsp + 0xac]
mov rdx, rax
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_AfxThrowOleException
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_AfxDaoGetEngine
nop
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1000196f4
mov edx, 0x80
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x100019648
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [0x10000804c]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x10001986f
test byte [rsp + 0x80], 0x10
je 0x10001984d
lea rsi, [rsp + 0xac]
lea rdi, [0x100002d28]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x10001984d
lea rsi, [rsp + 0xac]
lea rdi, [0x100008034]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x10001984d
lea rdx, [0x100003a08]
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CCtrlView::CCtrlView
mov rsi, rax
lea rdx, [rsp + 0xac]
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDaoException::CDaoException
mov rdi, rax
lea rdx, [0x100002d58]
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
mov rdx, rsi
mov rcx, rax
call fcn.100019514
nop
lea rcx, [rsp + 0x40]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x60]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100019764
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1000206f0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret