Function at 0x49d384
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
mov dword [ebp - 0x144], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x150], eax
jmp 0x49dd42
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 8]
mov dword [ebp - 0x154], eax
jmp 0x49d408
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 0x7d0
push eax
call fcn.004d540f
add esp, 4
jmp 0x49d42d
push 0xffffffffffffffff
call fcn.004d540f
add esp, 4
jmp 0x49d42d
cmp dword [ebp - 0x154], 0xfffffdf6
je 0x49d3f4
cmp dword [ebp - 0x154], 0xfffffdf7
je 0x49d3c5
jmp 0x49d42d
jmp case.0x49df08.5
cmp dword [0x531b54], 0
je 0x49d462
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 2
call dword [0x531b54]
test eax, eax
je 0x49d462
xor eax, eax
jmp 0x49df96
mov dword [ebp - 0x144], 1
jmp case.0x49df08.5
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004e58b1
add esp, 0x14
cmp dword [0x531ad4], 0
je 0x49d4bc
mov eax, dword [ebp - 0x138]
and eax, 0xffff
push eax
call fcn.004bb4d4
add esp, 4
jmp 0x49d4cf
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x138]
push eax
call fcn.0049c920
add esp, 8
jmp case.0x49df08.5
push 0
push 0
call fcn.004a2343
add esp, 8
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
push 0
push 1
call fcn.004a2343
add esp, 8
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
call fcn.004e590b
add esp, 0xc
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x138]
and eax, 0xffff
push eax
call fcn.004a2343
add esp, 8
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
cmp dword [0x531ad4], 0
je 0x49d572
push 2
call fcn.0049c470
add esp, 4
mov eax, 1
jmp 0x49df96
jmp case.0x49df08.5
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x531ad8], 0
je 0x49d5a4
push 0
push 2
push 0x52cf70
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_WinHelpA]
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebp - 0x144], 0
mov dword [0x533648], 0
jmp case.0x49df08.5
mov eax, dword [0x533168]
add eax, dword [0x531acc]
add eax, 0x1e
mov ecx, dword [ebp + 0x14]
shr ecx, 0x10
and ecx, 0xffff
movsx ecx, cx
cmp eax, ecx
jle 0x49d665
cmp dword [ebp + 0x10], 1
je 0x49d665
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x49d665
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 6
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
shr ecx, 0x10
and ecx, 0xffff
movzx ecx, cx
sub eax, ecx
add eax, dword [0x533168]
add eax, dword [0x531acc]
add eax, 0x1e
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x49d702
push 1
mov eax, dword [ebp + 0x14]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
sub eax, dword [0x531acc]
sub eax, dword [0x533168]
push eax
movsx eax, word [ebp + 0x14]
push eax
mov eax, dword [0x531acc]
push eax
push 0
mov eax, dword [0x533648]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
mov eax, dword [ebp + 0x14]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
inc eax
push eax
mov eax, dword [ebp + 0x14]
and eax, 0xffff
add eax, 2
push eax
mov eax, dword [ebp + 0x14]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
sub eax, dword [0x533168]
push eax
push 0xffffffffffffffff
mov eax, dword [0x531ab8]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
mov eax, dword [0x531acc]
inc eax
push eax
movsx eax, word [ebp + 0x14]
add eax, 2
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [0x531ab4]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
call fcn.004bb2a2
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
call fcn.004b6dbb
jmp 0x49df96
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004b719f
add esp, 8
jmp 0x49df96
cmp dword [0x531b10], 0
je 0x49d756
mov dword [ebp - 0x144], 0
jmp 0x49d761
call fcn.004b6dbb
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x144], 0
je 0x49d8a1
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
xor eax, eax
mov ax, word [0x531af8]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x49d7b9
mov dword [ebp - 0x14c], 1
mov dword [ebp - 0x128], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x14c], 0
je 0x49d8a1
push 0x52daa0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x49d8a1
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x66
mov eax, dword [0x52da00]
push eax
call fcn.0047a899
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 0x56
call fcn.004e3fc4
add esp, 8
push 0x52daa0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49d847
cmp dword [ebp - 4], 5
jl 0x49d847
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [ebp - 4], 5
jl 0x49d888
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49d888
push 4
push 0x52d870
lea eax, [ebp - 0x120]
push eax
mov eax, dword [0x533644]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x49d897
mov dword [ebp - 0x128], 1
jmp 0x49d8a1
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x144], 0
je 0x49d8db
cmp dword [ebp - 0x14c], 0
je 0x49d8db
cmp dword [ebp - 0x128], 0
je 0x49d8d3
call dword [sym.imp.ole32.dll_OleFlushClipboard]
jmp 0x49d8db
push 0
call dword [sym.imp.ole32.dll_OleSetClipboard]
cmp dword [ebp - 0x144], 0
je 0x49d91b
cmp dword [0x531b48], 0
je 0x49d91b
cmp dword [0x531e90], 0
je 0x49d91b
call fcn.00520787
mov dword [0x531e90], 0
call fcn.004c3b0d
call fcn.004c4660
jmp case.0x49df08.5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
cmp dword [0x531b18], eax
jne 0x49d945
call fcn.0049fa36
jmp 0x49dacf
mov eax, dword [ebp - 0x13c]
cmp dword [0x531b14], eax
jne 0x49d961
call fcn.004a1850
jmp 0x49dacf
mov eax, dword [ebp - 0x13c]
cmp dword [0x531b20], eax
jne 0x49d995
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0049fb1d
add esp, 0xc
jmp 0x49dacf
mov eax, dword [ebp - 0x13c]
cmp dword [0x531b1c], eax
jne 0x49d9b1
call fcn.004a0571
jmp 0x49dacf
mov eax, dword [0x531b24]
cmp dword [ebp - 0x13c], eax
jne 0x49d9cc
call fcn.004a1681
jmp 0x49dacf
mov eax, dword [ebp - 0x13c]
cmp dword [0x531b30], eax
jne 0x49d9e8
call fcn.0049f1f2
jmp 0x49dacf
mov eax, dword [ebp - 0x13c]
cmp dword [0x531b2c], eax
jne 0x49da04
call fcn.0049f256
jmp 0x49dacf
mov eax, dword [ebp - 0x13c]
cmp dword [0x531b28], eax
jne 0x49da20
call fcn.004a17ef
jmp 0x49dacf
push 3
mov eax, dword [0x531b24]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [ebp - 0x13c]
jne 0x49da44
call fcn.004a07d0
jmp 0x49dacf
push 1
mov eax, dword [0x531b24]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [ebp - 0x13c]
jne 0x49da68
call fcn.004a0d52
jmp 0x49dacf
push 5
mov eax, dword [0x531b24]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [ebp - 0x13c]
jne 0x49da8c
call fcn.004a1419
jmp 0x49dacf
push 0
mov eax, dword [0x531b28]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [ebp - 0x13c]
jne 0x49dab0
call fcn.004a0fd2
jmp 0x49dacf
push 1
mov eax, dword [0x531b28]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [ebp - 0x13c]
jne 0x49dacf
call fcn.004a1209
jmp case.0x49df08.5
call fcn.004accff
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
call fcn.00507438
mov eax, dword [ebp + 0x14]
push eax
call fcn.004ad0ea
add esp, 4
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
mov eax, dword [ebp + 0x14]
push eax
call fcn.004acea3
add esp, 4
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
mov eax, dword [ebp + 0x10]
push eax
call fcn.004d10ef
add esp, 4
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
push 0x53368c
push 0x7d
call fcn.0049c80a
add esp, 8
jmp case.0x49df08.5
push 0x533690
push 0x7e
call fcn.0049c80a
add esp, 8
jmp case.0x49df08.5
cmp dword [0x531b10], 0
jne 0x49db80
cmp dword [0x533660], 0
je 0x49db92
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
jmp 0x49df96
cmp dword [ebp + 0x14], 0
je 0x49dbe1
push 0x105
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
lea eax, [ebp - 0x120]
push eax
call fcn.004fb4e0
add esp, 4
test eax, eax
je 0x49dbce
jmp case.0x49df08.5
push 0
lea eax, [ebp - 0x120]
push eax
push 3
call fcn.004b407f
add esp, 0xc
jmp case.0x49df08.5
push 0x42
call fcn.0049c6f9
add esp, 4
jmp case.0x49df08.5
push 0x44
call fcn.0049c6f9
add esp, 4
jmp case.0x49df08.5
push 0x55
call fcn.0049c6f9
add esp, 4
jmp case.0x49df08.5
push 1
call fcn.004aca15
add esp, 4
jmp case.0x49df08.5
push 0x4e
call fcn.0049c6f9
add esp, 4
jmp case.0x49df08.5
call fcn.004adc51
jmp 0x49df96
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], eax
je 0x49dc51
call fcn.004adb7f
jmp case.0x49df08.5
mov eax, dword [ebp + 0x14]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x138], ax
cmp dword [ebp - 0x148], 0xffffffff
je 0x49dc95
mov eax, dword [ebp - 0x138]
and eax, 0xffff
push eax
call fcn.004bb44f
add esp, 4
jmp case.0x49df08.5
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x158], eax
jmp 0x49dcc6
mov eax, dword [ebp - 8]
push eax
call fcn.004e0ca7
add esp, 4
jmp 0x49dcd8
cmp dword [ebp - 0x158], 1
je 0x49dcb0
jmp 0x49dcd8
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov eax, dword [eax]
mov dword [ebp - 0x15c], eax
jmp 0x49dd1c
mov eax, dword [ebp - 0x130]
push eax
call fcn.004e0cee
add esp, 4
jmp 0x49dd2e
cmp dword [ebp - 0x15c], 1
je 0x49dd03
jmp 0x49dd2e
mov dword [ebp - 0x144], 0
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 5
ja 0x49dd67
je 0x49d5cd
cmp dword [ebp - 0x150], 2
je 0x49d577
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 0x10
ja 0x49dda6
je 0x49d73a
cmp dword [ebp - 0x150], 6
je 0x49d50a
cmp dword [ebp - 0x150], 7
je 0x49d4ef
cmp dword [ebp - 0x150], 8
je 0x49d4d4
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 0x1a
ja 0x49ddcb
je 0x49dae8
cmp dword [ebp - 0x150], 0x11
je 0x49d711
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 0x2b
ja 0x49de0a
je 0x49dce7
cmp dword [ebp - 0x150], 0x1b
je 0x49db08
cmp dword [ebp - 0x150], 0x1d
je 0x49dad4
cmp dword [ebp - 0x150], 0x20
je 0x49d551
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 0x4e
ja 0x49de2f
je 0x49d3a8
cmp dword [ebp - 0x150], 0x2c
je 0x49dc9a
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 0x117
ja 0x49de6a
je 0x49d920
cmp dword [ebp - 0x150], 0x111
je 0x49d471
cmp dword [ebp - 0x150], 0x112
je 0x49d432
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 0x219
ja 0x49de95
je 0x49d720
cmp dword [ebp - 0x150], 0x11f
je 0x49dc56
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 0x30f
ja 0x49dec0
je 0x49dc31
cmp dword [ebp - 0x150], 0x305
je 0x49db23
jmp case.0x49df08.5
cmp dword [ebp - 0x150], 0x4c8
ja 0x49deeb
je 0x49dbe6
cmp dword [ebp - 0x150], 0x311
je 0x49dc40
jmp case.0x49df08.5
sub dword [ebp - 0x150], 0x4c9
cmp dword [ebp - 0x150], 7
ja case.0x49df08.5
mov eax, dword [ebp - 0x150]
jmp dword [eax*4 + 0x49df0f]
cmp dword [ebp - 0x144], 0
je 0x49df8f
cmp dword [0x533648], 0
je 0x49df6f
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [0x533648]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_DefFrameProcA]
jmp 0x49df96
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x49df96
xor eax, eax
jmp 0x49df96
pop edi
pop esi
pop ebx
leave
ret 0x10