Function at 0x14006d788
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, 0xc0
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 + 0x38], rbx
mov qword [rax - 0x50], rbx
mov qword [rax - 0x58], rbx
mov qword [rax - 0x60], rbx
mov esi, ebx
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400ff450]
call fcn.14003d820
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 0x14006d820
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 0x14006d823
mov rdi, rbx
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x14006dbbe
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
test eax, eax
je 0x14006d8c6
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax]
call qword [str._E_t_]
mov qword [rsp + 0x78], rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14006d5fc
test eax, eax
js 0x14006dbd7
mov rcx, r13
call qword [sym.imp.gdiplus.dll_GdipAlloc]
nop dword [rax + rax]
mov rdi, rax
mov rsi, qword [rsp + 0x40]
test rax, rax
je 0x14006d8a7
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 0x14006d8aa
mov rdi, rbx
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x14006dbec
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
test eax, eax
jne 0x14006dc05
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDC]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x110]
cmp qword [rax], rbx
jne 0x14006d90f
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 0x14006dc1e
mov r14d, ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x38], rbx
test r12, r12
jne 0x14006d92a
mov r15d, ebx
jmp 0x14006d959
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov rdx, r12
mov rcx, rdi
call fcn.14003d9a0
mov r15d, eax
test eax, eax
js 0x14006dc33
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov r14d, dword [rsp + 0x34]
mov rdx, r13
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x14006dc48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x14006dac2
mov dword [rax], 8
mov rdx, qword [rsp + 0x70]
mov ecx, r14d
call qword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
nop dword [rax + rax]
mov qword [r13 + 0x10], rax
test rax, rax
je 0x14006dc61
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x14006d9e3
mov eax, dword [rcx]
mov dword [r13 + 4], eax
mov eax, dword [rcx + 4]
jmp 0x14006daa5
test r12, r12
je 0x14006da08
mov edx, 0x58
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov dword [rsp + 0x34], eax
mov r14d, 0x60
jmp 0x14006da13
mov r14d, 0x60
mov dword [rsp + 0x34], r14d
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 0x14006da33
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 [r13 + 4], eax
test r12, r12
je 0x14006da6d
mov edx, 0x5a
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov r14d, 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 0x14006da8d
mov dword [rdi + 0x10], eax
mov r8d, r14d
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 [r13 + 8], eax
mov r13, qword [rsp + 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
jmp 0x14006daca
mov r13, qword [rsp + 0x80]
mov ecx, 0x20
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14006dc7a
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 + 0x88], rax
test rax, rax
je 0x14006dc93
mov dword [rax], 0x20
mov qword [rax + 8], r13
mov qword [rax + 0x10], rbx
mov rax, qword [rsp + 0x108]
mov qword [rax], rdi
mov rax, qword [rsp + 0x110]
mov qword [rax], r12
mov rax, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x70]
mov qword [rax], rdx
mov rax, qword [rsp + 0x120]
mov qword [rax], r14
mov rax, qword [rsp + 0x128]
mov qword [rax], rcx
jmp 0x14006db82
test rsi, rsi
je 0x14006db9e
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 + 0xc0]
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 + 0x48], 0x80070057
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x4c], eax
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x4c]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x50], 0x80070057
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x54], 0x80070057
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x58], ecx
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x5c], eax
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x5c]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x60], 0x80004005
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x64], 0x80004005
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x68], 0x8007000e
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x6c], 0x8007000e
lea rdx, [0x1400f3540]
lea rcx, [rsp + 0x6c]
call sub.msvcrt.dll__CxxThrowException
int3