Function at 0x100ce780
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xac
push esi
mov esi, dword [esp + 0xb4]
push edi
mov edi, ecx
test esi, esi
jne 0x100ce7a2
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebx
push ebp
mov ecx, esi
call edx
mov ebp, eax
lea eax, [esp + 0x38]
push eax
push esi
mov ecx, edi
call fcn.100ce4f0
mov ebx, eax
push 0
test ebx, ebx
je 0x100ce824
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 ebp, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx edx, word [esp + 0x3e]
movsx eax, word [esp + 0x42]
movzx ecx, word [esp + 0x46]
sub eax, edx
imul eax, ebp
mov esi, ecx
shr esi, 1
add eax, esi
cdq
idiv ecx
movsx edx, word [esp + 0x40]
mov ebp, eax
movsx eax, word [esp + 0x44]
sub eax, edx
imul eax, dword [esp + 0x1c]
add eax, esi
cdq
idiv ecx
jmp 0x100ce885
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ebp
mov ecx, esi
call edx
lea eax, [esp + 0x50]
push eax
push esi
mov ecx, edi
call fcn.100ce640
mov ebx, eax
test ebx, ebx
jne 0x100ce875
mov ecx, dword [str.corrupted_WMF]
mov dword [edi + 0x44], ecx
mov edx, dword [0x101cbd48]
mov dword [edi + 0x48], edx
mov eax, dword [0x101cbd4c]
mov dword [edi + 0x4c], eax
mov cx, word [0x101cbd50]
pop ebp
pop ebx
mov word [edi + 0x50], cx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub ebp, dword [esp + 0x58]
sub eax, dword [esp + 0x5c]
cmp dword [edi + 0x148], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
jne 0x100ce8cb
push ebx
mov dword [edi + 0xc], ebp
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, 0x101cb9b0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ebp
pop ebx
movsb byte es:[edi], byte [esi]
pop edi
mov al, 1
pop esi
add esp, 0xac
ret 0xc
test ebp, ebp
je 0x100ceb92
test eax, eax
je 0x100ceb92
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x100ce8ea
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x100ce8f9
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.100ce730
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
mov ebp, eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x100ceb6d
mov ebp, dword [esp + 0x14]
xor eax, eax
cmp ebp, eax
je 0x100ceb50
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
push 0xc
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push esi
call ebp
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 2
push 0
push 0
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x1c]
push eax
push esi
call ebp
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov ebp, eax
test ebp, ebp
je 0x100cea6a
lea ecx, [ebp*4 + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100cea29
mov edx, dword [esp + 0x14]
push edx
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 eax, dword [str.Cancelled]
mov dword [edi + 0x44], eax
mov ecx, dword [0x10204564]
mov dword [edi + 0x48], ecx
mov dx, word [0x10204568]
pop ebp
pop ebx
mov word [edi + 0x4c], dx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc
mov ecx, 0x300
mov word [eax], cx
mov word [eax + 2], bp
add eax, 4
push eax
push ebp
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ebp, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
lea ecx, [esp + 0x28]
push ecx
push ebx
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [edi + 0x148], 0
je 0x100cead0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [str.Cancelled]
mov dword [edi + 0x44], ecx
mov edx, dword [0x10204564]
mov dword [edi + 0x48], edx
mov ax, word [0x10204568]
pop ebp
pop ebx
mov word [edi + 0x4c], ax
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 0xa
push ecx
push ebx
push edx
mov ecx, edi
call fcn.100c5050
test eax, eax
jne 0x100ceb0d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc
mov ecx, dword [edi + 4]
push 0
push ecx
push 0
mov ecx, edi
call fcn.100c4b20
push eax
push ebx
mov ebx, dword [esp + 0x24]
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]
pop ebp
xor eax, eax
pop ebx
test edi, edi
pop edi
setne al
pop esi
add esp, 0xac
ret 0xc
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100ceb7c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edx, dword [str.empty_WMF]
mov dword [edi + 0x44], edx
mov eax, dword [0x101cbd3c]
mov dword [edi + 0x48], eax
mov cx, word [0x101cbd40]
pop ebp
pop ebx
mov word [edi + 0x4c], cx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc