Function at 0x14007826c
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov qword [rsp + 0xb0], r9
mov qword [rsp + 0x38], r8
mov r15, rdx
mov rsi, rcx
mov r13, qword [rsp + 0x180]
mov qword [rsp + 0xb8], r13
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + reloc.MFC42u.dll_CMiniFrameWnd::CMiniFrameWnd]
mov qword [rsp + 0xd0], rax
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], rbx
mov r14d, ebx
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x30], ebx
lea rcx, [0x1400fe250]
call fcn.1400484b8
nop
lea ecx, [rbx + 0x18]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14007879b
lea r12, vtable.Gdiplus::Image.0
mov qword [rax], r12
lea rdx, [rax + 8]
mov qword [rdx], rbx
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
nop dword [rax + rax]
mov qword [rsp + 0x48], rdi
mov dword [rdi + 0x10], ebx
test eax, eax
je 0x1400783e8
mov rax, qword [rdi]
movabs r10, 0x8e301fd2545c7b70
lea edx, [rbx + 1]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140063541.0]
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1400787c4
test eax, eax
js 0x1400786c6
mov ecx, SafeArrayCopy
call qword [sym.imp.gdiplus.dll_GdipAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400786f4
mov qword [rax], r12
lea rdx, [rax + 8]
mov qword [rdx], rbx
mov r14, qword [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
nop dword [rax + rax]
mov qword [rsp + 0x48], rdi
mov dword [rdi + 0x10], ebx
test eax, eax
jne 0x1400786db
mov rcx, r15
call qword [sym.imp.USER32.dll_GetDC]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0xd8], rax
cmp qword [r13], rbx
jne 0x140078428
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140078422
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14007870d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rdx, r12
mov rcx, rdi
call fcn.140048524
mov r15d, eax
test eax, eax
js 0x140078722
mov edx, SafeArrayCopy
lea ecx, [rdx + 0x2a]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov r13, rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140078737
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400785ba
mov dword [rax], 8
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rdx, rax
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
nop dword [rax + rax]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x140078750
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400784dd
mov eax, dword [rcx]
mov dword [rsi + 4], eax
mov eax, dword [rcx + 4]
jmp 0x1400785a6
test r12, r12
je 0x140078502
mov edx, 0x58
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
mov r13d, 0x60
jmp 0x14007850d
mov r13d, 0x60
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x38], ebx
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.gdiplus.dll_GdipGetImageWidth]
nop dword [rax + rax]
test eax, eax
je 0x14007852d
mov dword [rdi + 0x10], eax
mov r8d, dword [rsp + 0x30]
mov edx, reloc.MFC42u.dll_COleClientItem::DoVerb
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MulDiv]
nop dword [rax + rax]
mov dword [rsi + 4], eax
test r12, r12
je 0x140078566
mov edx, 0x5a
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov r13d, eax
mov dword [rsp + 0x38], ebx
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.gdiplus.dll_GdipGetImageHeight]
nop dword [rax + rax]
test eax, eax
je 0x140078586
mov dword [rdi + 0x10], eax
mov r8d, r13d
mov edx, reloc.MFC42u.dll_COleClientItem::DoVerb
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MulDiv]
nop dword [rax + rax]
mov r13, qword [rsp + 0xa8]
mov dword [rsi + 8], eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
jmp 0x1400785c7
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov ecx, 0x20
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x140078769
mov eax, 3
mov word [rsi], ax
mov qword [rsi + 8], rbx
or dword [rsi + 0x14], 0xffffffff
mov dword [rsi + 0x18], 0x20
lea ecx, [rax + 0x15]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140078782
mov dword [rax], 0x20
mov qword [rax + 8], r13
mov qword [rax + 0x10], rbx
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rdi
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], r12
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0xc0]
mov qword [rdx], rcx
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rsi
mov rcx, qword [rsp + 0xd0]
mov qword [rcx], rax
jmp 0x14007867c
test r14, r14
je 0x14007869f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov eax, r15d
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14000bdb0
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x50], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x54], 0x80070057
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x58], 0x80070057
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], 0x80004005
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x68], 0x80004005
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x6c], 0x8007000e
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x6c]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x70], 0x8007000e
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x74], 0x80070057
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x74]
call sub.msvcrt.dll__CxxThrowException
int3