Function at 0x140062728
Capabilities:
Delete file

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov qword [r11 - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400ece98]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov qword [rsp + 0xb8], r9
mov qword [rsp + 0x38], r8
mov r12, rdx
mov r15, rcx
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x90], rax
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 + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [r11 - 0xb0], rbx
mov qword [r11 - 0xb8], rbx
mov qword [r11 - 0xc0], rbx
mov r14d, ebx
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400eeed0]
call fcn.14003d574
nop
lea r13d, [rbx + 0x18]
mov ecx, r13d
call qword [sym.imp.gdiplus.dll_GdipAlloc]
nop dword [rax + rax]
mov rdi, rax
lea rsi, vtable.Gdiplus::Image.0
test rax, rax
je 0x140062820
mov qword [rax], rsi
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 0x140062823
mov rdi, rbx
mov qword [rsp + 0x80], rdi
test rdi, rdi
je 0x140062bb4
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
test eax, eax
je 0x1400628cf
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x14004e05b.0]
mov qword [rsp + 0x80], rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14006259c
test eax, eax
js 0x140062bcd
mov rcx, r13
call qword [sym.imp.gdiplus.dll_GdipAlloc]
nop dword [rax + rax]
mov rdi, rax
mov r14, qword [rsp + 0x40]
test rax, rax
je 0x1400628ad
mov qword [rax], rsi
lea rdx, [rax + 8]
mov qword [rdx], rbx
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
nop dword [rax + rax]
mov dword [rdi + 0x10], eax
jmp 0x1400628b0
mov rdi, rbx
mov qword [rsp + 0x80], rdi
test rdi, rdi
je 0x140062be2
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
test eax, eax
jne 0x140062bfb
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDC]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], rbx
jne 0x140062918
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 0x140062c14
mov esi, ebx
mov dword [rsp + 0x30], ebx
test r12, r12
jne 0x140062928
mov r15d, ebx
jmp 0x140062956
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov rdx, r12
mov rcx, rdi
call fcn.14003d78c
mov r15d, eax
test eax, eax
js 0x140062c29
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov esi, dword [rsp + 0x30]
mov rdx, r13
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x140062c3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x140062ab7
mov dword [rax], 8
mov rdx, qword [rsp + 0x70]
mov ecx, esi
call qword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
nop dword [rax + rax]
mov qword [r13 + 0x10], rax
test rax, rax
je 0x140062c57
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400629dc
mov eax, dword [rcx]
mov dword [r13 + 4], eax
mov eax, dword [rcx + 4]
jmp 0x140062a9a
test r12, r12
je 0x140062a00
mov edx, 0x58
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
mov esi, 0x60
jmp 0x140062a09
mov esi, 0x60
mov dword [rsp + 0x30], esi
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 0x140062a29
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 [r13 + 4], eax
test r12, r12
je 0x140062a62
mov edx, 0x5a
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
nop dword [rax + rax]
mov esi, 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 0x140062a82
mov dword [rdi + 0x10], eax
mov r8d, esi
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 [r13 + 8], eax
mov r13, qword [rsp + 0x88]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
jmp 0x140062abf
mov r13, qword [rsp + 0x88]
mov ecx, 0x20
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetDayState]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140062c70
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 + 0x98], rax
test rax, rax
je 0x140062c89
mov dword [rax], 0x20
mov qword [rax + 8], r13
mov qword [rax + 0x10], rbx
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rdi
mov rcx, qword [rsp + 0x90]
mov qword [rcx], r12
mov rcx, qword [rsp + 0x70]
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 0x140062b71
test r14, r14
je 0x140062b8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, r14
call sub.msvcrt.dll_free
mov eax, r15d
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1400842d0
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x48], 0x80070057
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x4c], eax
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x4c]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x50], 0x80070057
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x54], 0x80070057
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x58], ecx
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x5c], eax
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x5c]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x60], 0x80004005
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x64], 0x80004005
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x68], 0x8007000e
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x6c], 0x8007000e
lea rdx, [0x1400e2f00]
lea rcx, [rsp + 0x6c]
call sub.msvcrt.dll__CxxThrowException
int3