Function at 0x1007a380
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xac
push esi
mov esi, dword [esp + 0xb4]
push edi
mov edi, ecx
test esi, esi
jne 0x1007a3a2
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.1007a120
mov ebx, eax
push 0
test ebx, ebx
je 0x1007a424
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 0x1007a485
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.1007a270
mov ebx, eax
test ebx, ebx
jne 0x1007a475
mov ecx, dword [str.corrupted_WMF]
mov dword [edi + 0x44], ecx
mov edx, dword [0x101621f8]
mov dword [edi + 0x48], edx
mov eax, dword [0x101621fc]
mov dword [edi + 0x4c], eax
mov cx, word [0x10162200]
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 0x1007a4cb
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, 0x10161fd0
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 0x1007a792
test eax, eax
je 0x1007a792
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x1007a4ea
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x1007a4f9
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.1007a330
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 0x1007a76d
mov ebp, dword [esp + 0x14]
xor eax, eax
cmp ebp, eax
je 0x1007a750
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 0x1007a66a
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 0x1007a629
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 [0x10161fbc]
mov dword [edi + 0x48], ecx
mov dx, word [0x10161fc0]
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 0x1007a6d0
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 [0x10161fbc]
mov dword [edi + 0x48], edx
mov ax, word [0x10161fc0]
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.1006b6f0
test eax, eax
jne 0x1007a70d
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.1006b210
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 0x1007a77c
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 [0x101621ec]
mov dword [edi + 0x48], eax
mov cx, word [0x101621f0]
pop ebp
pop ebx
mov word [edi + 0x4c], cx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 0xc