Function at 0x14002f480
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdi
mov qword [r11 + 0x18], r14
push r15
sub rsp, 0x100
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rcx
and qword [rsp + 0x38], 0
and qword [rsp + 0x48], 0
movups xmm0, xmmword [0x1400b94f0]
movdqu xmmword [r11 - 0x38], xmm0
lea r14, [rcx + 0x150]
mov rax, qword [r14]
cmp dword [rax - 8], 0
jne 0x14002f4dc
mov eax, 0x80004001
jmp 0x14002f910
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
test byte [0x1400fdac0], 4
je 0x14002f516
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x1400b9b10]
call fcn.14001b510
mov r8, qword [rdi + 0x120]
add r8, 0x98
mov rdx, r14
lea rcx, [rsp + 0xe0]
call fcn.14002bb5c
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14002f937
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 0x12]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_StgOpenStorage]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14002f94c
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_ReadClassStg]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14002f961
mov rax, qword [rdi + 0x168]
cmp rax, qword [0x1400b94f0]
jne 0x14002f5e7
mov rax, qword [rdi + 0x170]
cmp rax, qword [0x1400b94f8]
je 0x14002f611
mov rax, qword [rdi + 0x168]
cmp rax, qword [rsp + 0xd0]
jne 0x14002f812
mov rax, qword [rdi + 0x170]
cmp rax, qword [rsp + 0xd8]
jne 0x14002f812
mov rax, qword [rdi + 0x120]
mov rcx, qword [rax + 0xa8]
mov rax, qword [rcx]
movabs r10, 0xbf9437493ed5a070
lea rdx, [rsp + 0x48]
mov rax, qword [rax + 0x18]
call qword [case.0x140063541.0]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14002f976
lea r15, [rdi + 0x180]
mov r9, r15
mov r8, qword [rsp + 0x48]
lea rdx, [0x1400b9560]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_OleLoad]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14002f98b
and qword [rsp + 0xc0], 0
mov dword [rsp + 0x80], 0x48
movups xmm0, xmmword [rsp + 0xd0]
movdqu xmmword [rsp + 0x88], xmm0
mov rax, qword [r15]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], rax
and dword [rsp + 0xb4], 0
and dword [rsp + 0xb0], 0
mov rcx, qword [rdi + 0x128]
mov eax, dword [rcx + 0x130]
mov edx, 0x4d7
cmp eax, edx
jne 0x14002f720
test byte [rcx + 0x150], 1
je 0x14002f70a
mov eax, dword [rcx + 0x154]
mov dword [rsp + 0xb0], eax
mov eax, dword [rcx + 0x130]
cmp eax, edx
jne 0x14002f720
test byte [rcx + 0x150], 2
je 0x14002f720
mov eax, dword [rcx + 0x158]
mov dword [rsp + 0xb4], eax
or dword [rsp + 0x84], 0xffffffff
mov dword [rsp + 0xb8], 1
mov dword [rsp + 0xbc], 1
mov rax, qword [rdi + 0x120]
mov rcx, qword [rax + 0xa8]
mov rax, qword [rcx]
movabs r10, 0xb61526ef74517b70
lea rdx, [rsp + 0x80]
mov rax, qword [rax + 0x38]
call qword [case.0x140063541.0]
mov r14d, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x14002f9a0
mov rax, qword [rdi]
movabs r10, 0xebb526f81adb7970
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0xb0]
call qword [case.0x140063541.0]
and dword [rsp + 0x6c], 0
and qword [rsp + 0x78], 0
mov dword [rsp + 0x68], 0x20
mov edx, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0x98]
call fcn.14006cbe0
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x14002f7d6
mov dword [rdi + 0x178], 1
jmp 0x14002f810
test r15, r15
je 0x14002f7fe
mov rcx, qword [r15]
test rcx, rcx
je 0x14002f7fa
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [r15], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.ole32.dll_ReleaseStgMedium]
nop dword [rax + rax]
nop
jmp 0x14002f877
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002f846
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002f868
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov eax, 0x80070057
jmp 0x14002f910
mov rcx, qword [rsp + 0x40]
cmp dword [rcx - 8], 0
je 0x14002f88e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test byte [0x1400fdac0], 4
je 0x14002f8b7
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x1400b9c28]
call fcn.14001b510
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002f8eb
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002f90d
mov rdx, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rdx + 0x10]
call qword [case.0x140063541.0]
nop
mov eax, r14d
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14000bdb0
lea r11, [rsp + 0x100]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop r15
ret
mov dword [rsp + 0x50], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x54], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x58], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x5c], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x5c]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x60], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x64], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll__CxxThrowException
int3