Function at 0x100025ad0
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 [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r14, rdx
mov r13, rcx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rax - 0x58], rbx
mov qword [rax - 0x50], rbx
mov qword [rax - 0x48], rbx
mov rsi, rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x34], ebx
lea rcx, [0x1000f6500]
call fcn.100024c34
nop
lea r15d, [rbx + 0x18]
mov rcx, r15
call sub.gdiplus.dll_GdipAlloc
mov rdi, rax
cmp rax, rbx
je 0x10003d16c
lea r12, vtable.Gdiplus::Image.0
mov qword [rax], r12
lea rdx, [rax + 8]
mov qword [rdx], rbx
mov rcx, r13
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [rdi + 0x10], eax
jmp 0x100025b67
mov qword [rsp + 0x78], rdi
cmp rdi, rbx
je 0x10003d17b
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
cmp eax, ebx
jne 0x10003d19a
mov rcx, r14
call qword [sym.imp.USER32.dll_GetDC]
mov r15, rax
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax], rbx
jne 0x100025bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
cmp ecx, ebx
jl 0x10003d256
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x34]
mov rdx, r15
mov rcx, rdi
call fcn.100025fd0
mov r13d, eax
cmp eax, ebx
jl 0x10003d271
mov edx, DispGetParam
lea ecx, [rdx + 0x2a]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
mov qword [rsp + 0x80], rax
cmp rax, rbx
je 0x10003d28c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
cmp rax, rbx
je 0x100025cf9
mov dword [rax], 8
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
mov qword [r12 + 0x10], rax
cmp rax, rbx
je 0x10003d2ab
mov rcx, qword [rsp + 0xf0]
cmp rcx, rbx
jne 0x100025dc6
cmp r15, rbx
je 0x10003d2ca
mov edx, 0x58
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rsp + 0x38], eax
mov r14d, 0x60
jmp 0x100025c6e
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
jne 0x10003d2da
mov r8d, dword [rsp + 0x38]
mov edx, reloc.MFC42u.dll_COleClientItem::DoVerb
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [r12 + 4], eax
cmp r15, rbx
je 0x100025cb7
mov edx, 0x5a
mov rcx, r15
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov r14d, eax
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
jne 0x10003d2e2
mov r8d, r14d
mov edx, reloc.MFC42u.dll_COleClientItem::DoVerb
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [r12 + 8], eax
mov r14, qword [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, 0x20
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov r12, rax
mov qword [rsp + 0x88], rax
cmp rax, rbx
je 0x10003d2ea
mov eax, 3
mov word [r12], ax
mov qword [r12 + 8], rbx
or dword [r12 + 0x14], 0xffffffff
mov dword [r12 + 0x18], 0x20
lea ecx, [rax + 0x15]
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov r11, rax
mov qword [rsp + 0x90], rax
cmp rax, rbx
je 0x10003d309
mov dword [rax], 0x20
mov qword [rax + 8], r14
mov qword [rax + 0x10], rbx
mov rax, qword [rsp + 0xf8]
mov qword [rax], rdi
mov rax, qword [rsp + 0x100]
mov qword [rax], r15
mov rcx, qword [rsp + 0x108]
mov rax, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x110]
mov qword [rax], r12
mov rax, qword [rsp + 0x118]
mov qword [rax], r11
jmp 0x100025d9d
cmp rsi, rbx
jne 0x10003d339
mov eax, r13d
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 eax, dword [rcx]
mov dword [r12 + 4], eax
mov eax, dword [rcx + 4]
mov dword [r12 + 8], eax
jmp 0x100025cf0
mov rdi, rbx
lea r12, vtable.Gdiplus::Image.0
jmp 0x100025b67
mov dword [rsp + 0x68], 0x80070057
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll__CxxThrowException
nop
jmp 0x100025b75
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov qword [rsp + 0x78], rbx
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.1000274a8
cmp eax, ebx
jge 0x10003d1d2
mov dword [rsp + 0x6c], eax
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x6c]
call sub.msvcrt.dll__CxxThrowException
mov rcx, r15
call sub.gdiplus.dll_GdipAlloc
mov rdi, rax
cmp rax, rbx
je 0x10003d1fe
mov qword [rax], r12
lea rdx, [rax + 8]
mov qword [rdx], rbx
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [rdi + 0x10], eax
jmp 0x10003d206
mov rdi, rbx
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x78], rdi
cmp rdi, rbx
jne 0x10003d229
mov dword [rsp + 0x74], 0x80070057
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x74]
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebx
cmp eax, ebx
je 0x100025b83
mov dword [rsp + 0x64], 0x80070057
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll__CxxThrowException
nop
jmp 0x100025b83
mov dword [rsp + 0x5c], ecx
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x5c]
call sub.msvcrt.dll__CxxThrowException
nop
jmp 0x100025bc0
mov dword [rsp + 0x60], eax
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
nop
jmp 0x100025be0
mov dword [rsp + 0x70], 0x80004005
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
jmp 0x100025c02
mov dword [rsp + 0x50], 0x80004005
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
nop
jmp 0x100025c3a
mov r14d, 0x60
mov dword [rsp + 0x38], r14d
jmp 0x100025c6e
mov dword [rdi + 0x10], eax
jmp 0x100025c88
mov dword [rdi + 0x10], eax
jmp 0x100025cd1
mov dword [rsp + 0x58], 0x8007000e
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
nop
jmp 0x100025d17
mov dword [rsp + 0x54], 0x8007000e
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll__CxxThrowException
nop
jmp 0x100025d51
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call sub.msvcrt.dll_free
nop
jmp 0x100025da6