Function at 0x14006c4e8
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r12, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rax - 0x50], rbx
mov qword [rax - 0x58], rbx
mov esi, ebx
mov qword [rsp + 0x48], rbx
lea rcx, [0x140101490]
call fcn.14003e080
nop
lea r13d, [rbx + 0x18]
mov ecx, r13d
call qword [sym.imp.gdiplus.dll_GdipAlloc]
nop dword [rax + rax]
mov rdi, rax
lea r14, vtable.Gdiplus::Image.0
test rax, rax
je 0x14006c581
mov qword [rax], r14
lea rdx, [rax + 8]
mov qword [rdx], rbx
mov rcx, r15
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
nop dword [rax + rax]
mov dword [rdi + 0x10], eax
jmp 0x14006c584
mov rdi, rbx
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x14006c8fa
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
test eax, eax
je 0x14006c627
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax]
call qword [str._S_t_]
mov qword [rsp + 0x78], rbx
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.14006c35c
test eax, eax
js 0x14006c913
mov rcx, r13
call qword [sym.imp.gdiplus.dll_GdipAlloc]
nop dword [rax + rax]
mov rdi, rax
mov rsi, qword [rsp + 0x48]
test rax, rax
je 0x14006c608
mov qword [rax], r14
lea rdx, [rax + 8]
mov qword [rdx], rbx
mov rcx, rsi
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
nop dword [rax + rax]
mov dword [rdi + 0x10], eax
jmp 0x14006c60b
mov rdi, rbx
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x14006c928
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
test eax, eax
jne 0x14006c941
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDC]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax], rbx
jne 0x14006c670
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14006c95a
mov r13d, ebx
mov dword [rsp + 0x34], ebx
test r12, r12
jne 0x14006c681
mov r15d, ebx
jmp 0x14006c6a6
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x34]
mov rdx, r12
mov rcx, rdi
call fcn.14003e200
mov r15d, eax
test eax, eax
js 0x14006c96f
mov r13d, dword [rsp + 0x34]
mov edx, SafeArrayCopy
lea ecx, [rdx + 0x2a]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14006c984
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14006c801
mov dword [rax], 8
mov rdx, qword [rsp + 0x40]
mov ecx, r13d
call qword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
nop dword [rax + rax]
mov qword [r14 + 0x10], rax
test rax, rax
je 0x14006c99d
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x14006c725
mov eax, dword [rcx]
mov dword [r14 + 4], eax
mov eax, dword [rcx + 4]
jmp 0x14006c7e7
test r12, r12
je 0x14006c74a
mov edx, 0x58
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov dword [rsp + 0x34], eax
mov r13d, 0x60
jmp 0x14006c755
mov r13d, 0x60
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.gdiplus.dll_GdipGetImageWidth]
nop dword [rax + rax]
test eax, eax
je 0x14006c775
mov dword [rdi + 0x10], eax
mov r8d, dword [rsp + 0x34]
mov edx, reloc.MFC42u.dll_COleClientItem::DoVerb
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MulDiv]
nop dword [rax + rax]
mov dword [r14 + 4], eax
test r12, r12
je 0x14006c7af
mov edx, 0x5a
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov r13d, eax
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.gdiplus.dll_GdipGetImageHeight]
nop dword [rax + rax]
test eax, eax
je 0x14006c7cf
mov dword [rdi + 0x10], eax
mov r8d, r13d
mov edx, reloc.MFC42u.dll_COleClientItem::DoVerb
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MulDiv]
nop dword [rax + rax]
mov dword [r14 + 8], eax
mov r13, qword [rsp + 0x38]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
jmp 0x14006c806
mov r13, qword [rsp + 0x38]
mov ecx, 0x20
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14006c9b6
mov eax, 3
mov word [r14], ax
mov qword [r14 + 8], rbx
or dword [r14 + 0x14], 0xffffffff
mov dword [r14 + 0x18], 0x20
lea ecx, [rax + 0x15]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov rcx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14006c9cf
mov dword [rax], 0x20
mov qword [rax + 8], r13
mov qword [rax + 0x10], rbx
mov rax, qword [rsp + 0xf8]
mov qword [rax], rdi
mov rax, qword [rsp + 0x100]
mov qword [rax], r12
mov rax, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x40]
mov qword [rax], rdx
mov rax, qword [rsp + 0x110]
mov qword [rax], r14
mov rax, qword [rsp + 0x118]
mov qword [rax], rcx
jmp 0x14006c8be
test rsi, rsi
je 0x14006c8da
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, r15d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rsp + 0x50], 0x80070057
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x54], eax
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x58], 0x80070057
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x5c], 0x80070057
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x5c]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x60], ecx
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x64], eax
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x68], 0x80004005
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x6c], 0x80004005
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x6c]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x70], 0x8007000e
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x74], 0x8007000e
lea rdx, [0x1400f5180]
lea rcx, [rsp + 0x74]
call sub.msvcrt.dll__CxxThrowException
int3