Function at 0x140043d70
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x140174940]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x88], rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov ecx, dword [rsi + 8]
test cl, 0x17
jne 0x140044474
cmp dword [rsi + 0x24], ebx
jne 0x140043ddf
cmp dword [rsi + 0x28], ebx
je 0x140044474
lea r14, [rsi + 0x34]
lea r12, [rsi + 0x258]
cmp word [r14], 0
je 0x140043e66
mov rcx, r12
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
mov dword [rsp + 0x50], 1
test r14, r14
jne 0x140043e19
mov eax, ebx
jmp 0x140043e2b
mov rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], 0
jne 0x140043e20
mov rdx, qword [r12]
mov dword [rsp + 0x20], eax
mov r9, r14
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x50], eax
jmp 0x140043ee1
lea r15, [rsi + 0x23c]
mov rcx, r12
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
mov dword [rsp + 0x50], 2
test r15, r15
jne 0x140043e95
mov eax, ebx
jmp 0x140043eab
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x140043ea0
mov rdx, qword [r12]
mov dword [rsp + 0x20], eax
mov r9, r15
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
mov eax, 2
and eax, 0xfffffffd
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rdi + 0x3e0]
mov rdx, r14
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rax, qword [r12]
mov edx, dword [rax - 0x10]
mov rax, qword [rdi + 0x3b8]
mov r8d, dword [rax - 0x10]
cmp edx, r8d
jle 0x140043f54
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.mfc140u.dll_CMFCToolBar::LoadState]
nop
mov rdx, rax
lea rcx, [rdi + 0x3d8]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, [0x1400f6ad4]
lea rcx, [rdi + 0x3d8]
call qword [sym.imp.mfc140u.dll_CDialogTemplate::SetTemplate]
jmp 0x140043f68
lea rdx, [case.0x14009db83.3]
lea rcx, [rdi + 0x3d8]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14009b8d0
mov rax, qword [rdi + 0x3d8]
lea rcx, [rsp + 0x58]
cmp dword [rax - 0x10], 0
jne 0x140043fc2
lea rdx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
jmp 0x140043fd7
mov r9, qword [rsp + 0x60]
mov r8, rax
lea rdx, [0x1400f90b0]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsi + 0x1c]
lea rdx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1400444e9
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0xd8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x1400444e9
mov eax, 0x76c
movzx edx, word [rsp + 0xc8]
cmp dx, ax
jb 0x140044078
movzx eax, word [rsp + 0xd4]
movzx ecx, word [rsp + 0xd2]
movzx r10d, word [rsp + 0xd0]
movzx r9d, word [rsp + 0xce]
movzx r8d, word [rsp + 0xca]
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r10d
lea rcx, [rsp + 0x80]
call fcn.140043290
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rbx
mov r9d, dword [rsi + 0x24]
shl r9, 0x20
mov eax, dword [rsi + 0x28]
add r9, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
lea rcx, [rdi + 0x3f0]
call fcn.14001d6f0
nop
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
cmp dword [rdi + 0x3e8], 0
je 0x1400440e9
lea rdx, [rsp + 0x68]
lea rcx, [rdi + 0x3f0]
call fcn.14001d4a0
test eax, eax
jne 0x14004443d
mov rax, qword [rdi + 0x178]
cmp dword [rax + 0x19c], 0
je 0x140044130
mov rdx, r14
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
nop
mov rax, qword [rdi]
mov r9d, 1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [rax + 0x1b8]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov r8d, 0x20
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x98]
call sub.mfc140u.dll_CDynLinkLibrary::CDynLinkLibrary
nop
movzx r8d, word [rdi + 0x180]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, str.Opening_file__s_for_Input
mov edx, 4
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
lea rcx, [rsp + 0x98]
call fcn.14009b9b0
test eax, eax
je 0x1400443f0
mov rbx, qword [rdi + 0x3d8]
lea rcx, [rdi + 0x280]
lea rdx, str.reldir
call sub.mfc140u.dll_Ordinal_1637
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rax, qword [rdi]
lea rdx, [rsp + 0x98]
mov rcx, rdi
call qword [rax + 0xd0]
mov r14d, eax
mov dword [rsp + 0x70], eax
cmp eax, 1
jne 0x1400442a4
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x60]
test eax, eax
jne 0x140044279
mov r8d, 0x2000
mov rdx, qword [rdi + 0x188]
lea rcx, [rsp + 0x98]
call sub.mfc140u.dll_COleLinkingDoc::XOleItemContainer::ParseDisplayName
mov ebx, eax
test eax, eax
je 0x140044279
mov rcx, qword [rdi + 0x178]
cmp dword [rcx + 0xf0], 0
je 0x1400443a9
mov r8d, 0x19
mov edx, eax
mov rcx, qword [rdi + 0x188]
call fcn.14009b790
test al, al
je 0x1400443a9
mov rcx, qword [rdi + 0xf8]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0xb0]
lea rax, [rsi + 0x34]
movzx r8d, word [rdi + 0x180]
mov qword [rsp + 0x20], rax
lea r9, str.Binary_data_detected__aborting_import_of__s
mov edx, 2
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
mov r14d, 3
mov dword [rsp + 0x70], r14d
lea r8, [rsi + 0x34]
mov rcx, qword [rdi + 0xf8]
add rcx, 0x10
lea rdx, str.origfile
call fcn.1400aeba0
mov rcx, qword [rdi + 0xf8]
mov rax, qword [rcx]
call qword [rax + ATL::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char>]
lea rcx, [rsp + 0x98]
call fcn.14009b9b0
test eax, eax
je 0x1400442c2
lea rcx, [rsp + 0x98]
call sub.mfc140u.dll_CWinAppEx::CleanState
cmp r14d, 2
je 0x1400443c4
cmp dword [rdi + 0x3d0], 0
je 0x14004430a
lea rdx, [rsi + 0x34]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
nop
mov rax, qword [rdi]
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [rax + 0x1b8]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
cmp r14d, 3
jne 0x140044330
mov rcx, qword [rdi + 0xf8]
mov rax, qword [rcx]
lea r8, [rsi + 0x34]
mov r9d, dword [rdi + 0x3e8]
mov rdx, qword [rsp + 0x48]
call qword [rax + 0x160]
cmp dword [rdi + 0x3e8], 0
jne 0x140044430
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140044430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.14009d3d0
nop
movzx r8d, word [rdi + 0x180]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, str.Unable_to_delete_file___s__err_s
mov edx, 1
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x140044430
mov rax, qword [rdi]
mov r8d, ebx
mov rdx, qword [rdi + 0x188]
mov rcx, rdi
call qword [rax + 0x90]
jmp 0x1400441d2
movzx r8d, word [rdi + 0x180]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, str.Skipping_file__s_for_next_poll
mov edx, 5
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
jmp 0x140044430
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rcx, [rsi + 0x34]
movzx r8d, word [rdi + 0x180]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea r9, str.Error__d_opening__s___s_
mov edx, 2
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
nop
lea rcx, [rsp + 0x98]
call sub.mfc140u.dll_CDockingManager::CDockingManager
lea rcx, [rdi + 0x3f0]
lea rdx, [rsp + 0x68]
call fcn.14001d480
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x1400444a7
test cl, 7
je 0x1400444a7
lea rax, [rsi + 0x34]
movzx r8d, word [rdi + 0x180]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r9, str.Warning_file__s_has_hidden__system_or_readonly_attribute_set__attr:_x_
mov edx, 2
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
nop
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1400c7c30
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x80070057
call fcn.140001e20
int3