Function at 0x1000194f8
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 0x10001957e
add rcx, 2
test eax, eax
jne 0x10001956b
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 0x1000195d2
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 0x1000196f0
test esi, esi
je 0x1000196f0
test byte [rsp + 0x80], 0x10
jne 0x1000196d8
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 0x1000196d8
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 0x10001962c
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 0x100019853
test byte [rsp + 0x80], 0x10
je 0x100019831
lea rsi, [rsp + 0xac]
lea rdi, [0x100002d28]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x100019831
lea rsi, [rsp + 0xac]
lea rdi, [0x100008034]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x100019831
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.1000194f8
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 0x100019748
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.100020710
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret