Function at 0x1003ec00
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1011b92c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x1003ec32
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b3ac1
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebx
mov ecx, esi
call edx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, edi
call sym.NitroPDFPreviewHandler.dll_protected:_struct_HENHMETAFILE______thiscall_CxImageWMF::ConvertWmfFiletoEmf_class_CxFile___struct_CxImageWMF::tagMETAFILEHEADER__
mov ebx, eax
push 0
test ebx, ebx
je 0x1003ecc7
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push esi
mov dword [ebp - 0x9c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [ebp - 0xa0], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx edx, word [ebp - 0x26]
movsx eax, word [ebp - 0x22]
movzx ecx, word [ebp - 0x1e]
sub eax, edx
imul eax, dword [ebp - 0x9c]
mov esi, ecx
shr esi, 1
add eax, esi
cdq
idiv ecx
movsx edx, word [ebp - 0x24]
mov dword [ebp - 0xa4], eax
movsx eax, word [ebp - 0x20]
sub eax, edx
imul eax, dword [ebp - 0xa0]
add eax, esi
cdq
idiv ecx
mov ecx, dword [ebp - 0xa4]
jmp 0x1003ed34
mov ecx, dword [ebp - 0x9c]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, esi
call edx
lea eax, [ebp - 0x98]
push eax
push esi
mov ecx, edi
call sym.NitroPDFPreviewHandler.dll_protected:_struct_HENHMETAFILE______thiscall_CxImageWMF::ConvertEmfFiletoEmf_class_CxFile___struct_tagENHMETAHEADER__
mov ebx, eax
test ebx, ebx
jne 0x1003ed16
mov ecx, dword [str.corrupted_WMF]
mov dword [edi + 0x44], ecx
mov edx, dword [0x100bb188]
mov dword [edi + 0x48], edx
mov eax, dword [0x100bb18c]
mov dword [edi + 0x4c], eax
mov cx, word [0x100bb190]
mov word [edi + 0x50], cx
jmp 0x1003f082
mov ecx, dword [ebp - 0x88]
sub ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], ecx
cmp dword [edi + 0x148], 0xffffffff
mov dword [ebp - 0xa0], eax
jne 0x1003ed7e
push ebx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x40], 0xa
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
add edi, 0x44
mov ecx, 6
mov esi, str.output_dimensions_returned
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ebx
movsb byte es:[edi], byte [esi]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b3ac1
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
je 0x1003f05f
test eax, eax
je 0x1003f05f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003ed9b
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003eda8
mov dword [ebp - 0xa0], eax
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xa4]
push eax
mov ecx, edi
call sym.NitroPDFPreviewHandler.dll_protected:_void___thiscall_CxImageWMF::ShrinkMetafile_int___int__
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
push ecx
mov esi, eax
push edx
push esi
mov dword [ebp - 0x9c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov dword [ebp - 0xa8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [ebp - 0x9c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
cmp esi, eax
je 0x1003f045
cmp dword [ebp - 0xa8], eax
je 0x1003f035
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
push 0xc
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [ebp - 0xb4], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
push 0
push esi
mov dword [ebp - 0x9c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [ebp - 0x9c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov dword [ebp - 0xac], eax
test eax, eax
je 0x1003ef50
lea eax, [eax*4 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x1003eefb
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edx, dword [str.Cancelled]
mov dword [edi + 0x44], edx
mov eax, dword [0x100ba7d0]
mov dword [edi + 0x48], eax
mov cx, word [0x100ba7d4]
mov word [edi + 0x4c], cx
jmp 0x1003f082
mov ecx, dword [ebp - 0xac]
mov edx, 0x300
mov word [eax], dx
mov word [eax + 2], cx
add eax, 4
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp - 0x9c]
push ecx
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0xac]
push 0
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov ecx, dword [ebp - 0xb4]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [edi + 0x148], 0
je 0x1003efaf
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [str.Cancelled]
mov dword [edi + 0x44], eax
mov ecx, dword [0x100ba7d0]
mov dword [edi + 0x48], ecx
mov dx, word [0x100ba7d4]
mov word [edi + 0x4c], dx
jmp 0x1003f082
mov eax, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
push 0xa
push eax
push ebx
push ecx
mov ecx, edi
call sym.NitroPDFPreviewHandler.dll_public:_void____thiscall_CxImage::Create_unsigned_long_int__unsigned_long_int__unsigned_long_int__unsigned_long_int_
test eax, eax
jne 0x1003efea
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1003f082
mov eax, dword [edi + 4]
push 0
push eax
push 0
mov ecx, edi
call sym.NitroPDFPreviewHandler.dll_public:_unsigned_char____thiscall_CxImage::GetBits_unsigned_long_int_
push eax
push ebx
mov ebx, dword [ebp - 0xa8]
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
pop ebx
test edi, edi
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b3ac1
mov esp, ebp
pop ebp
ret 0xc
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x1003f082
mov ecx, dword [ebp - 0xa8]
cmp ecx, eax
je 0x1003f056
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x1003f082
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov ecx, dword [str.empty_WMF]
mov dword [edi + 0x44], ecx
mov edx, dword [0x100bb17c]
mov dword [edi + 0x48], edx
mov ax, word [0x100bb180]
mov word [edi + 0x4c], ax
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.100b3ac1
mov esp, ebp
pop ebp
ret 0xc