Function at 0x1401e6420
Capabilities:
Capture screenshot

Disassembly:
push rbx
push rbp
push r12
push r15
sub rsp, reloc.mfc120u.dll_Ordinal_296
mov rax, qword [0x140462840]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r12d, r9d
mov r15d, r8d
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1401e6458
xor al, al
jmp 0x1401e6768
mov rax, qword [rdx]
mov qword [rsp + 0x120], rsi
mov rcx, rdx
mov qword [rsp + reloc.mfc120u.dll_Ordinal_280], rdi
mov qword [rsp + 0x108], r14
call qword [rax + 0x28]
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, rbp
mov edi, eax
call sym.NitroFree.exe_protected:_struct_HENHMETAFILE______ptr64___cdecl_CxImageWMF::ConvertWmfFiletoEmf_class_CxFile____ptr64__struct_CxImageWMF::tagMETAFILEHEADER____ptr64____ptr64
mov r14, rax
test rax, rax
je 0x1401e6506
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov edx, 0x58
mov rcx, rax
mov rbx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, 0x5a
mov rcx, rbx
mov edi, eax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rdx, rbx
xor ecx, ecx
mov esi, eax
call qword [sym.imp.USER32.dll_ReleaseDC]
movzx r9d, word [rsp + 0x6e]
movsx ecx, word [rsp + 0x66]
movsx eax, word [rsp + 0x6a]
mov r8d, r9d
sub eax, ecx
movsx ecx, word [rsp + 0x68]
shr r8d, 1
imul eax, edi
add eax, r8d
cdq
idiv r9d
mov r10d, eax
movsx eax, word [rsp + 0x6c]
sub eax, ecx
imul eax, esi
add eax, r8d
cdq
idiv r9d
jmp 0x1401e6575
mov rax, qword [rbx]
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call qword [rax + 0x20]
lea r8, [rsp + 0x80]
mov rdx, rbx
mov rcx, rbp
call sym.NitroFree.exe_protected:_struct_HENHMETAFILE______ptr64___cdecl_CxImageWMF::ConvertEmfFiletoEmf_class_CxFile____ptr64__struct_tagENHMETAHEADER____ptr64____ptr64
mov r14, rax
test rax, rax
jne 0x1401e6557
movsd xmm0, qword [str.corrupted_WMF]
movsd qword [rbp + 0x5c], xmm0
mov eax, dword [0x140350010]
mov dword [rbp + 0x64], eax
movzx eax, word [0x140350014]
mov word [rbp + 0x68], ax
xor al, al
jmp 0x1401e6750
mov r10d, dword [rsp + 0x90]
mov eax, dword [rsp + 0x94]
sub r10d, dword [rsp + 0x88]
sub eax, dword [rsp + 0x8c]
cmp dword [rbp + 0x160], 0xffffffff
jne 0x1401e65c9
mov rcx, r14
mov dword [rbp + 0x14], r10d
mov dword [rbp + 0x18], eax
mov dword [rbp + 0x58], 0xa
call qword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
movups xmm0, xmmword [str.output_dimensions_returned]
movups xmmword [rbp + 0x5c], xmm0
movsd xmm1, qword [0x140339480]
movsd qword [rbp + 0x6c], xmm1
movzx eax, word [0x140339488]
mov word [rbp + 0x74], ax
movzx eax, byte [0x14033948a]
mov byte [rbp + 0x76], al
mov al, 1
jmp 0x1401e6750
test r10d, r10d
je 0x1401e68d1
test eax, eax
je 0x1401e68d1
test r15d, r15d
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
cmovne r10d, r15d
test r12d, r12d
mov rcx, rbp
cmovne eax, r12d
mov qword [rsp + 0x110], r13
mov dword [rsp + 0x44], r10d
mov dword [rsp + 0x40], eax
call sym.NitroFree.exe_protected:_void___cdecl_CxImageWMF::ShrinkMetafile_int____ptr64__int____ptr64____ptr64
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r13d, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x44]
mov r8d, r13d
mov edx, r15d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.USER32.dll_ReleaseDC]
test rdi, rdi
je 0x1401e68b5
mov rcx, rdi
test rsi, rsi
je 0x1401e68a1
xor r12d, r12d
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x5c], r13d
lea edx, [r12 + 0xc]
mov qword [rsp + 0x50], r12
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x40], eax
call qword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [r12 + 5]
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, rdi
mov edx, eax
call qword [sym.imp.GDI32.dll_SetBkColor]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov ebx, eax
lea rax, [rsp + 0x50]
lea r9d, [r12 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBkColor]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
movsxd rbx, eax
test eax, eax
je 0x1401e67d5
lea rdx, [rbx*4 + 4]
lea ecx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r15, rax
test rax, rax
jne 0x1401e6786
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
movsd xmm0, qword [str.Cancelled]
movsd qword [rbp + 0x5c], xmm0
movzx eax, word [0x140339498]
mov word [rbp + 0x64], ax
xor al, al
mov r13, qword [rsp + 0x110]
mov rdi, qword [rsp + reloc.mfc120u.dll_Ordinal_280]
mov rsi, qword [rsp + 0x120]
mov r14, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140289bf0
add rsp, reloc.mfc120u.dll_Ordinal_296
pop r15
pop r12
pop rbp
pop rbx
ret
mov eax, 0x300
lea r8, [r15 + 4]
mov edx, ebx
mov rcx, r14
mov word [r15 + 2], bx
mov word [r15], ax
call qword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov rcx, r15
call qword [sym.imp.GDI32.dll_CreatePalette]
mov rcx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectPalette]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_RealizePalette]
mov r15d, dword [rsp + 0x44]
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [rbp + 0x160], r12d
je 0x1401e681d
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1401e672e
mov r9d, dword [rsp + 0x40]
mov r8d, r13d
mov edx, r15d
mov rcx, rbp
mov dword [rsp + 0x20], 0xa
call sym.NitroFree.exe_public:_void____ptr64___cdecl_CxImage::Create_unsigned_long_int__unsigned_long_int__unsigned_long_int__unsigned_long_int____ptr64
test rax, rax
jne 0x1401e6854
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1401e6746
xor edx, edx
mov rcx, rbp
call sym.NitroFree.exe_public:_unsigned_char____ptr64___cdecl_CxImage::GetBits_unsigned_long_int____ptr64
mov rcx, qword [rbp + 8]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rcx
mov r9d, r13d
xor r8d, r8d
mov rcx, rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
test ebx, ebx
setne al
jmp 0x1401e6748
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x1401e6746
test rsi, rsi
je 0x1401e68c3
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x1401e6746
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
movsd xmm0, qword [str.empty_WMF]
movsd qword [rbp + 0x5c], xmm0
movzx eax, word [0x140350020]
mov word [rbp + 0x64], ax
xor al, al
jmp 0x1401e6750