Function at 0x491194
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x4e2cbc]
cmp byte [eax], 0
je 0x4911b6
mov edx, 0x491490
mov eax, 0xdd
call fcn.00458594
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
xor ecx, ecx
mov edx, 0x49149c
call fcn.004d778c
mov esi, dword [0x4e2ac0]
mov esi, dword [esi]
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
xor ecx, ecx
mov edx, 0x4914a0
call fcn.004d778c
mov edi, dword [0x4e2ac0]
mov edi, dword [edi]
mov edx, dword [0x4e2e60]
mov edx, dword [edx]
mov eax, 0x4914ac
call fcn.0042824c
test eax, eax
jne 0x49122b
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
xor ecx, ecx
mov edx, 0x4914b0
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0xffffffff
jmp 0x49126c
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
xor ecx, ecx
mov edx, 0x4914b0
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffe60
xor ecx, ecx
mov edx, 0x4914b0
call fcn.004d778c
mov eax, dword [0x4e2ac0]
mov eax, dword [eax]
call fcn.004283d8
mov dword [ebp - 0xc], eax
mov eax, dword [0x4e2900]
mov eax, dword [eax]
push eax
call sub.user32.dll_OpenClipboard
push 2
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x491421
mov eax, dword [0x4e2e20]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov ebx, eax
push 2
call sub.user32.dll_GetClipboardData
mov edx, dword [0x4e2ccc]
mov dword [edx], eax
mov eax, dword [0x4e2cec]
push eax
push 0x18
mov eax, dword [0x4e2ccc]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_GetObjectA
mov eax, dword [0x4e2cec]
mov eax, dword [eax + 4]
mov edx, dword [0x4e2ebc]
mov dword [edx], eax
mov eax, dword [0x4e2cec]
mov eax, dword [eax + 8]
mov edx, dword [0x4e2e1c]
mov dword [edx], eax
mov eax, dword [0x4e2cec]
movzx eax, word [eax + 0x12]
mov edx, dword [0x4e2a80]
mov dword [edx], eax
mov eax, dword [0x4e2cec]
movzx eax, word [eax + 0x12]
mov edx, 0x18
call fcn.00423434
mov ecx, eax
mov eax, 1
shl eax, cl
mov edx, dword [0x4e2dd8]
mov dword [edx], eax
mov eax, dword [0x4e30d4]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], 0x3ff00000
mov eax, dword [0x4e2ccc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GlobalLock
mov eax, dword [0x4e2ccc]
mov eax, dword [eax]
push eax
push ebx
call sub.gdi32.dll_SelectObject
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4913b4
push 0
push esi
push edi
mov eax, dword [0x4e2ebc]
mov eax, dword [eax]
push eax
mov eax, dword [0x4e2e1c]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x4e2e20]
mov eax, dword [eax]
xor ecx, ecx
mov edx, ebx
call fcn.004263b0
mov eax, dword [0x4e2c80]
mov eax, dword [eax]
mov edx, dword [0x4e2e20]
cmp eax, dword [edx]
je 0x491455
push 0xcc0020
push edi
push esi
mov eax, dword [0x4e2e20]
mov eax, dword [eax]
push eax
mov eax, dword [0x4e2e1c]
mov eax, dword [eax]
push eax
mov eax, dword [0x4e2ebc]
mov eax, dword [eax]
push eax
push edi
push esi
mov eax, dword [0x4e2c80]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x491455
mov eax, dword [ebp - 8]
call fcn.00428448
push eax
push 0
push 0
push ebx
mov eax, dword [0x4e2e1c]
mov eax, dword [eax]
push eax
mov eax, dword [0x4e2ebc]
mov eax, dword [eax]
push eax
push edi
push esi
mov eax, dword [0x4e2e20]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x4e2c80]
mov eax, dword [eax]
mov edx, dword [0x4e2e20]
cmp eax, dword [edx]
je 0x491455
mov eax, dword [ebp - 8]
call fcn.00428448
push eax
push 0
push 0
push ebx
mov eax, dword [0x4e2e1c]
mov eax, dword [eax]
push eax
mov eax, dword [0x4e2ebc]
mov eax, dword [eax]
push eax
push edi
push esi
mov eax, dword [0x4e2c80]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x491455
mov eax, dword [0x4e2ebc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x4e2e1c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x4e30d4]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], 0x3ff00000
mov eax, dword [0x4e2a80]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x4e2dd8]
xor edx, edx
mov dword [eax], edx
call sub.user32.dll_CloseClipboard
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.gdi32.dll_SelectObject
push ebx
call sub.gdi32.dll_DeleteDC
mov eax, dword [0x4e2ccc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [0x4e2b30]
mov byte [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret