Function at 0x1005b65
Capabilities:
Read clipboard data
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
push esi
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x1005b9f
push 2
call esi
test eax, eax
jne 0x1005b9f
push 3
call esi
test eax, eax
jne 0x1005b9f
push 0xe
call esi
test eax, eax
jne 0x1005b9f
push 0xd
call esi
test eax, eax
je 0x1005bae
push dword [0x1009448]
call fcn.01002a5f
test eax, eax
jne 0x1005bb5
xor eax, eax
jmp 0x1005fda
push 0x200
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x1005fd3
push ebx
push edi
push dword [0x1009448]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [ebp - 0x10]
mov ebx, eax
call edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [0x1009448]
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
push 1
push 1
push 0x40
push 0x40
call dword [sym.imp.GDI32.dll_CreateBitmap]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x1005c23
push 0x10022fc
call fcn.01004c8a
pop ecx
push dword [ebp - 0x10]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call edi
push 0x40
mov dword [ebp - 0x30], eax
pop eax
push 0xff0062
push eax
push eax
push esi
push esi
push ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_PatBlt]
push 0xe
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1005ccc
push 0xe
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1005cc2
lea ecx, [ebp - 0xac]
push ecx
push 0x64
push eax
call dword [sym.imp.GDI32.dll_GetEnhMetaFileHeader]
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
push 7
push ebx
call dword [sym.imp.GDI32.dll_SetMapMode]
push esi
push 0x40
push 0x40
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push esi
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push ebx
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
jmp 0x1005db5
push 0x10022d0
jmp 0x1005dc8
push 3
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1005dda
push 3
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1005dd3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1005dc3
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
mov eax, dword [ebp - 4]
push dword [eax]
push ebx
call dword [sym.imp.GDI32.dll_SetMapMode]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ecx, eax
mov dword [ebp - 8], eax
push esi
jl 0x1005d5d
shl eax, 6
cdq
idiv ecx
push eax
push 0x40
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
shl eax, 6
cdq
idiv dword [ecx + 4]
push esi
push 0x40
pop ecx
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push esi
push ebx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov esi, dword [ebp - 4]
jmp 0x1005d93
mov eax, ecx
shl eax, 6
cdq
idiv dword [ebp - 8]
push 0x40
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push esi
push esi
mov esi, dword [ebp - 4]
mov eax, dword [esi + 4]
shl eax, 6
cdq
idiv dword [esi + 8]
push 0x40
pop ecx
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push dword [esi + 0xc]
push ebx
call dword [sym.imp.GDI32.dll_PlayMetaFile]
test eax, eax
jne 0x1005dac
push 0x10022b8
call fcn.01004c8a
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
jmp 0x1005f71
push 0x1002298
call fcn.01004c8a
pop ecx
jmp 0x1005f71
push 0x100227c
jmp 0x1005dc8
push 2
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1005e51
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1005f71
lea ecx, [ebp - 0x48]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push dword [ebp - 8]
push dword [ebp - 0x14]
call edi
push 3
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0xcc0020
push dword [ebp - 0x40]
mov dword [ebp - 8], eax
push dword [ebp - 0x44]
push esi
push esi
push dword [ebp - 0x14]
push 0x40
push 0x40
push esi
push esi
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 8]
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call edi
jmp 0x1005f71
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1005edc
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1005f71
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 0x1002270
push 0x22
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x190
push esi
push esi
push esi
push 0xfffffffffffffffa
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push ebx
mov dword [ebp - 0x18], eax
call edi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 0x18]
jmp 0x1005f62
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1005f71
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1005f71
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 0x1002270
push 0x22
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x190
push esi
push esi
push esi
push 0xfffffffffffffffa
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push ebx
mov dword [ebp - 8], eax
call edi
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x18]
push ebx
call edi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x30]
push ebx
call edi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov esi, 0x200
push esi
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
cmp eax, esi
pop edi
pop ebx
je 0x1005faf
push 0x1002258
call fcn.01004c8a
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x1c]
push dword [0x100944c]
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
inc esi
jmp section..htext
pop esi
leave
ret