Function at 0x10126f20
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x1019c020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0xa8], ebx
test esi, esi
jne 0x10126f58
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012b4a2
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x14]
mov dword [ebp - 0x9c], eax
mov ecx, ebx
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.10126de0
mov edi, eax
mov dword [ebp - 0xa0], edi
test edi, edi
mov edi, dword [sym.imp.USER32.dll_GetDC]
push 0
je 0x10126ff9
call edi
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push esi
mov edi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx ecx, word [ebp - 0x26]
movsx eax, word [ebp - 0x22]
movzx esi, word [ebp - 0x1e]
sub eax, ecx
imul eax, edi
movzx edi, word [ebp - 0x1e]
shr esi, 1
movsx ecx, word [ebp - 0x24]
add eax, esi
cdq
idiv edi
mov dword [ebp - 0x9c], eax
movsx eax, word [ebp - 0x20]
sub eax, ecx
mov ecx, dword [ebp - 0x9c]
imul eax, ebx
mov ebx, dword [ebp - 0xa8]
add eax, esi
cdq
idiv edi
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov edx, eax
mov eax, dword [ebp - 0xa0]
jmp 0x1012705b
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x9c]
call dword [eax + 0x10]
lea eax, [ebp - 0x98]
mov ecx, ebx
push eax
push esi
call fcn.10126d10
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x10127043
movq xmm0, qword [str.corrupted_WMF]
movq qword [ebx + 0x44], xmm0
mov eax, dword [0x10153040]
mov dword [ebx + 0x4c], eax
mov ax, word [0x10153044]
mov word [ebx + 0x50], ax
jmp 0x10127392
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
sub ecx, dword [ebp - 0x90]
sub edx, dword [ebp - 0x8c]
cmp dword [ebx + 0x148], 0xffffffff
jne 0x101270b7
push eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x40], 0xa
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
movups xmm0, xmmword [str.output_dimensions_returned]
pop edi
pop esi
movups xmmword [ebx + 0x44], xmm0
movq xmm0, qword [0x10151384]
movq qword [ebx + 0x54], xmm0
mov ax, word [0x1015138c]
mov word [ebx + 0x5c], ax
mov al, byte [0x1015138e]
mov byte [ebx + 0x5e], al
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012b4a2
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
je 0x10127374
test edx, edx
je 0x10127374
mov eax, dword [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x9c], ecx
mov ecx, ebx
cmovne edx, eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xac], edx
push eax
call fcn.101273f0
push 0
call edi
push dword [ebp - 0xac]
mov esi, eax
push dword [ebp - 0x9c]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov dword [ebp - 0xa4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
mov edi, eax
push 0
mov dword [ebp - 0xa8], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
test edi, edi
je 0x10127354
mov esi, dword [ebp - 0xa4]
test esi, esi
je 0x1012733e
mov eax, dword [ebp - 0x9c]
push 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xac]
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push edi
mov dword [ebp - 0xb8], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [ebp - 0xb4], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
call edi
push 0
push 0
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 2
push 0
push 0
push dword [ebp - 0xa8]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push esi
mov esi, dword [ebp - 0xa8]
push esi
call edi
mov edi, dword [ebp - 0xa0]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x10127276
lea ecx, [eax*4 + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x10127227
push dword [ebp - 0xa4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
movq xmm0, qword [str.Cancelled]
movq qword [ebx + 0x44], xmm0
mov ax, word [0x10151398]
jmp 0x1012738e
mov ecx, 0x300
mov word [eax], cx
mov ecx, dword [ebp - 0xb0]
mov word [eax + 2], cx
add eax, 4
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
push dword [ebp - 0xa0]
call dword [sym.imp.GDI32.dll_CreatePalette]
push dword [ebp - 0xa0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push esi
mov esi, dword [ebp - 0xa8]
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 edi
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
push dword [ebp - 0xb4]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [ebx + 0x148], 0
je 0x101272b7
push dword [ebp - 0xa4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1012720f
mov edi, dword [ebp - 0xac]
mov ecx, ebx
push 0xa
push dword [ebp - 0xb8]
push edi
push dword [ebp - 0x9c]
call sym.FreeImageRender.dll_public:_void____thiscall_CxImage::Create_unsigned_int__unsigned_int__unsigned_int__unsigned_int_
test eax, eax
jne 0x101272ef
push dword [ebp - 0xa4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x10127392
push 0
push dword [ebx + 4]
mov ecx, ebx
push 0
call sym.FreeImageRender.dll_public:_unsigned_char____thiscall_CxImage::GetBits_unsigned_int_
mov ebx, dword [ebp - 0xa4]
push eax
push edi
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0xa8]
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012b4a2
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [ebp - 0xa0]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x10127392
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x10127365
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [ebp - 0xa0]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x10127392
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
movq xmm0, qword [str.empty_WMF]
movq qword [ebx + 0x44], xmm0
mov ax, word [0x10153050]
mov word [ebx + 0x4c], ax
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012b4a2
mov esp, ebp
pop ebp
ret 0xc