Function at 0x49f366
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
push 4
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x49f3d3
jmp 0x49fa31
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49f3f4
push 5
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x49f563
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49f563
push 0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
and eax, 0x20
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x49f496
xor eax, eax
mov ax, word [0x5336b8]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f479
mov dword [ebp - 0x4c], 0xbb9
jmp 0x49f490
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f490
mov dword [ebp - 0x4c], 0xbb9
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x54], 0
je 0x49f4a7
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x38]
push eax
call fcn.004f40c0
add esp, 4
test eax, eax
je 0x49f4c2
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0xe6], 0
je 0x49f51c
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x44], 2
je 0x49f50c
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.004f4151
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x49f54a
mov dword [ebp - 0x24], 0
add dword [ebp - 0x44], 0x9c4
cmp dword [ebp - 0xc], 0
je 0x49f55e
inc dword [ebp - 0x44]
jmp 0x49f908
cmp dword [ebp - 0x38], 0
je 0x49f6b2
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x49f5ae
push 2
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x49f5a1
push 8
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f5a8
mov dword [ebp - 0x4c], 0xbbd
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], 1
add dword [ebp - 0x44], 0x9c4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0xe6], 0
je 0x49f69d
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0xffffffff
je 0x49f680
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov ecx, eax
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*4 + 0x44]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x18]
push eax
call fcn.004d96e6
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49f671
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
jne 0x49f671
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x18]
add eax, 0x50
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
cmp dword [eax + 4], 0
jl 0x49f671
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x18]
push eax
call fcn.004d9749
add esp, 4
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0xe6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x49f908
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x4a]
add eax, eax
add eax, 0xdac
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x4a], 0
je 0x49f6e3
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x40]
test byte [eax + 0x23], 1
je 0x49f706
cmp dword [ebp - 0x24], 0
jne 0x49f706
mov dword [ebp - 0xc], 1
jmp 0x49f70d
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x49f71a
inc dword [ebp - 0x44]
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x49f7f9
xor eax, eax
mov ax, word [0x531af8]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f751
mov dword [ebp - 0x4c], 0xbba
jmp 0x49f7f3
xor eax, eax
mov ax, word [0x531afc]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f774
mov dword [ebp - 0x4c], 0xbbb
jmp 0x49f7f3
xor eax, eax
mov ax, word [0x531b04]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f797
mov dword [ebp - 0x4c], 0xbbc
jmp 0x49f7f3
cmp dword [0x531b4c], 0
je 0x49f7c0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f7c0
mov dword [ebp - 0x4c], 0xbba
jmp 0x49f7f3
push 8
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f7dc
mov dword [ebp - 0x4c], 0xbbd
jmp 0x49f7f3
push 2
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49f7f3
mov dword [ebp - 0x4c], 0xbbd
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x32], 0
jle 0x49f85b
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
jmp 0x49f837
mov dword [ebp - 0x4c], 0
jmp 0x49f856
cmp dword [ebp - 0x58], 0xbbc
jl 0x49f856
cmp dword [ebp - 0x58], 0xbbe
jle 0x49f826
jmp 0x49f856
jmp 0x49f8fe
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
jmp 0x49f8a8
cmp dword [ebp - 0x28], 0
je 0x49f881
mov dword [ebp - 0x4c], 0xbbe
jmp 0x49f89e
cmp dword [ebp - 0x34], 0
je 0x49f897
mov dword [ebp - 0x4c], 0xbbd
jmp 0x49f89e
mov dword [ebp - 0x4c], 0
jmp 0x49f8c7
cmp dword [ebp - 0x5c], 0xbbc
jl 0x49f86b
cmp dword [ebp - 0x5c], 0xbbe
jle 0x49f8c7
jmp 0x49f86b
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x60], 0
je 0x49f8ee
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x1d6]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x4c], 0
je 0x49f91e
mov dword [ebp - 0x3c], 0
jmp 0x49f925
mov dword [ebp - 0x4c], 0xbb8
push 0
push 0xcd
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x49f96b
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x4c]
push eax
push 0xcd
mov eax, dword [ebp + 8]
push eax
call fcn.004e0bea
add esp, 0x10
mov eax, dword [ebp - 0x3c]
push eax
push 0xcd
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0xc9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x49f9b1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x44]
push eax
push 0xc9
mov eax, dword [ebp + 8]
push eax
call fcn.004e0bea
add esp, 0x10
mov eax, dword [ebp - 0x24]
push eax
push 0xc9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [ebp - 0x2c]
push eax
push 0xca
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0xcc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x49fa04
mov eax, dword [ebp - 0x20]
push eax
push 0xcc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [ebp - 0x2c]
push eax
push 0xd3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0xcb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x49fa31
mov eax, dword [ebp - 0x2c]
push eax
push 0xcb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
pop edi
pop esi
pop ebx
leave
ret