Function at 0x10012f20
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
mov ebx, ecx
push edi
test esi, esi
mov dword [esp + 0x18], ebx
je 0x100132c9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x3c]
mov ebp, eax
push ecx
push esi
mov ecx, ebx
call fcn.10013330
mov edi, eax
test edi, edi
je 0x10012fc0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0x58
push esi
call ebp
push 0x5a
push esi
mov ebx, eax
call ebp
push esi
push 0
mov ebp, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx edx, word [esp + 0x42]
movsx eax, word [esp + 0x46]
sub eax, edx
mov ecx, dword [esp + 0x4a]
imul eax, ebx
cdq
and ecx, 0xffff
mov ebx, dword [esp + 0x18]
idiv ecx
movsx edx, word [esp + 0x44]
mov esi, eax
movsx eax, word [esp + 0x48]
sub eax, edx
mov dword [esp + 0x14], esi
imul eax, ebp
cdq
idiv ecx
mov dword [esp + 0x10], eax
jmp 0x10013006
mov eax, dword [esi]
push 0
push ebp
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x54]
push ecx
push esi
mov ecx, ebx
call fcn.100134c0
mov edi, eax
test edi, edi
jne 0x10012fea
lea edx, [ebx + 0x44]
mov edi, str.corrupted_WMF
jmp 0x100132ac
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
sub esi, edx
sub eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x148]
test ecx, ecx
je 0x10013024
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
lea edx, [ebx + 0x44]
mov edi, str.Cancelled
jmp 0x100132ac
test esi, esi
je 0x1001329d
test eax, eax
je 0x1001329d
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x10013043
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x10013052
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.10013550
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
xor ebx, ebx
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, ebx
je 0x1001327c
cmp ebp, ebx
je 0x1001325f
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0xc
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push esi
call ebx
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push 2
push 0
push 0
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0x20]
push edx
push esi
call ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov ebx, eax
test ebx, ebx
je 0x1001319a
lea eax, [ebx*4 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x1001315f
mov ecx, dword [esp + 0x1c]
push ecx
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]
mov edx, dword [esp + 0x18]
mov edi, str.Cancelled
add edx, 0x44
jmp 0x100132ac
lea ecx, [ebp + 4]
mov word [ebp], 0x300
push ecx
push ebx
push edi
mov word [ebp + 2], bx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push edi
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov eax, dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x148]
test eax, eax
je 0x100131e3
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea edx, [edi + 0x44]
mov edi, str.Cancelled
jmp 0x100132ac
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0xa
push ecx
push edx
push eax
mov ecx, edi
call fcn.100072f0
test eax, eax
jne 0x1001321c
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
mov ecx, dword [edi + 4]
push 0
push ecx
push 0
mov ecx, edi
call fcn.100074a0
mov edx, dword [esp + 0x18]
push eax
push edx
push 0
push ebp
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebp
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setne al
add esp, 0xa8
ret 0xc
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
cmp ebp, ebx
je 0x10013287
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
lea edx, [ebx + 0x44]
mov edi, str.empty_WMF
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc