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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_CControlBar::CControlBar]
nop
lea rdx, [0x1400239f8]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
mov rbx, rax
mov edi, 1
mov r8d, edi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_CFormView::SetOccDialogInfo]
mov r8, qword [rbx]
mov rcx, qword [rax]
sub r8, rcx
movzx edx, word [rcx]
movzx eax, word [rcx + r8]
sub edx, eax
jne 0x1400163c2
add rcx, 2
test eax, eax
jne 0x1400163ae
test edx, edx
sete bl
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
test bl, bl
je 0x140016419
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax - 8]
dec r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_CDialog::OnCommandHelp]
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rdx, str..
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016532
test edi, edi
je 0x140016532
test byte [rbp - 0x80], 0x10
jne 0x14001651e
lea rdx, [0x1400239f8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
lea r8, [rbp - 0x54]
mov rdx, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_AfxThrowOleException]
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_AfxDaoGetEngine]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001651e
mov edx, 0x80
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x140016473
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [0x140028efc]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140016699
test byte [rbp - 0x80], 0x10
je 0x14001667b
movzx ecx, word [rbp - 0x54]
movzx eax, word [rbp - 0x52]
cmp cx, word [0x1400239c8]
jne 0x1400165b1
cmp ax, word [0x1400239ca]
je 0x14001667b
cmp cx, word [0x140028ee4]
jne 0x1400165d4
cmp ax, word [0x140028ee6]
jne 0x1400165d4
movzx eax, word [rbp - 0x50]
cmp ax, word [0x140028ee8]
je 0x14001667b
lea rdx, [0x140024061]
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_CCtrlView::CCtrlView]
mov rdi, rax
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
mov rbx, rax
lea rdx, [0x1400239f8]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov r8, rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_AfxThrowNotSupportedException]
nop
mov rdx, rdi
mov rcx, rax
call fcn.140016334
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140016589
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14001cbc0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret