Function at 0x489610
Capabilities:
Check for unmoving mouse cursor
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [esp + 0x14], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], esi
cmp eax, 0x111
ja 0x489d80
je 0x489964
dec eax
cmp eax, 0x4d
ja case.0x489665.3
movzx eax, byte [eax + 0x48a190]
jmp dword [eax*4 + 0x48a17c]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x1c]
call fcn.00488b10
push 0
push 0x32
push 0x2e
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp case.0x489665.3
push 0x2e
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_KillTimer]
jmp case.0x489665.3
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4897e0
mov eax, dword [esi + 8]
cmp eax, 0xfffffeb9
jne 0x489712
mov eax, dword [esi + 0x14]
test eax, eax
je case.0x489665.3
test byte [eax], 1
je case.0x489665.3
cmp dword [eax + 4], 4
jge case.0x489665.3
mov dword [eax + 4], 4
xorps xmm0, xmm0
mov eax, dword [esi + 0x14]
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x40], 8
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0xc]
push 0x1060
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x489665.3
cmp eax, 0xfffffebf
jne case.0x489665.3
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, eax
cmp ecx, dword [edi + 0xec]
jne 0x489788
mov eax, dword [esi + 0x14]
test eax, eax
je 0x489788
test byte [eax], 1
je 0x489788
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x489756
mov ecx, dword [edi + 0x60]
mov eax, dword [eax + 4]
push edi
push 0x4407fd08
mov dword [ecx + 0x2d8], eax
jmp 0x4897c8
cmp ecx, 1
jne 0x48976f
mov ecx, dword [edi + 0x60]
mov eax, dword [eax + 4]
push edi
push 0x4407fd08
mov dword [ecx + 0x2e0], eax
jmp 0x4897c8
cmp ecx, 2
jne 0x489780
mov ecx, dword [edi + 0x60]
mov eax, dword [eax + 4]
mov dword [ecx + 0x2dc], eax
push edi
push 0x4407fd08
jmp 0x4897c8
cmp ecx, dword [edi + 0xf0]
jne case.0x489665.3
mov eax, dword [esi + 0x14]
test eax, eax
je case.0x489665.3
test byte [eax], 1
je case.0x489665.3
cmp dword [esi + 0xc], 0
mov ecx, dword [edi + 0x60]
mov eax, dword [eax + 4]
jne 0x4897bc
mov dword [ecx + 0x2e4], eax
jmp 0x4897c2
mov dword [ecx + 0x2e8], eax
push edi
push 0xc1573a64
mov ecx, dword [edi + 0x60]
push 0xcf9552e6
mov ecx, dword [ecx + 0x478]
call fcn.004072f0
jmp case.0x489665.3
cmp eax, 0x65
jne 0x489897
mov eax, dword [esi + 8]
cmp eax, 0xfffffff4
jne 0x489856
mov eax, dword [esi + 0xc]
cmp eax, 1
je 0x4898b0
cmp eax, 0x10001
jne case.0x489665.3
mov ecx, dword [edi + 0x68]
lea eax, [esp + 0x14]
push eax
push 0xb5df6393
push 0
call fcn.0046fe20
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
lea eax, [esp + 0x14]
push eax
push 0x8d6b8734
mov ecx, dword [edi + 0x68]
push 0
call fcn.0046fe20
mov eax, dword [esp + 0x14]
mov dword [esi + 0x30], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xfffffffb
jne case.0x489665.3
cmp dword [esi + 0xc], 0xffffffff
je case.0x489665.3
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push dword [esp + 0x18]
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0
push dword [edi + 0xf4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
jmp case.0x489665.3
cmp eax, 0x66
jne case.0x489665.3
mov eax, dword [esi + 8]
cmp eax, 0xfffffff4
jne 0x4898fe
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4898cb
mov eax, 0x20
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x10001
jne case.0x489665.3
mov ecx, dword [edi + 0x68]
lea eax, [esp + 0x14]
push eax
push 0xb5df6393
push 0
call fcn.0046fe20
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x2c]
jmp 0x48982d
cmp eax, 0xfffffffb
jne case.0x489665.3
cmp dword [esi + 0xc], 0xffffffff
je case.0x489665.3
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push dword [esp + 0x18]
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0
push dword [edi + 0xf8]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
jmp case.0x489665.3
push esi
push dword [ebp + 0x10]
push dword [esp + 0x1c]
call fcn.00486550
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test eax, eax
jne case.0x489665.3
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov ecx, eax
cmp eax, 0xeb4c
jne 0x48998b
call fcn.00413b70
jmp case.0x489665.3
cmp eax, 0xe949
jne 0x48999c
call fcn.00413890
jmp case.0x489665.3
cmp eax, 0x4b7b
jne 0x489a56
push 0x74
call fcn.004d3886
mov edi, dword [0x522478]
mov esi, eax
push edi
mov ecx, esi
mov dword [esp + 0x30], esi
call fcn.00408080
mov dword [esi + 0x60], 0x68
mov dword [esi], vtable.pd_dialog.0
test edi, edi
je 0x4899ea
mov eax, dword [edi + 0x60]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x6c]
jmp 0x489a01
mov dword [esi + 0x64], 0
xor eax, eax
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], eax
mov dword [esi], vtable.pd_dialog_encrypt.0
push esi
push 0x408500
push dword [esi + 0x58]
push dword [esi + 0x60]
push dword [0x5223e0]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x1c]
mov esi, dword [esp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xf18e
jne 0x489a64
call fcn.00413930
jmp case.0x489665.3
cmp eax, 0x98da
jne 0x489a72
call fcn.004139d0
jmp case.0x489665.3
cmp eax, 0x7e31
je case.0x489665.3
cmp eax, 0x177c
jne 0x489a8b
push 0
mov ecx, edi
call fcn.00489350
jmp case.0x489665.3
cmp eax, 0xdb33
jne 0x489a9d
push 1
mov ecx, edi
call fcn.00489350
jmp case.0x489665.3
cmp eax, 0x910d
jne 0x489aaf
push 2
mov ecx, edi
call fcn.00489350
jmp case.0x489665.3
cmp eax, 0x957b
jne 0x489b2a
push 0x74
call fcn.004d3886
mov edi, dword [0x522478]
mov esi, eax
push edi
mov ecx, esi
mov dword [esp + 0x30], esi
call fcn.00408080
mov dword [esi + 0x60], 0x77
mov dword [esi], vtable.pd_dialog.0
test edi, edi
je 0x489b05
mov eax, dword [edi + 0x60]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x70], eax
mov dword [esi], vtable.pd_dialog_flow.0
jmp 0x489a0a
xor eax, eax
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], eax
mov dword [esi], vtable.pd_dialog_flow.0
jmp 0x489a0a
cmp eax, 0xa1af
jne 0x489ba5
push 0x74
call fcn.004d3886
mov edi, dword [0x522478]
mov esi, eax
push edi
mov ecx, esi
mov dword [esp + 0x30], esi
call fcn.00408080
mov dword [esi + 0x60], 0x79
mov dword [esi], vtable.pd_dialog.0
test edi, edi
je 0x489b80
mov eax, dword [edi + 0x60]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x70], eax
mov dword [esi], vtable.pd_dialog_flow_ignore_word.0
jmp 0x489a0a
xor eax, eax
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], eax
mov dword [esi], vtable.pd_dialog_flow_ignore_word.0
jmp 0x489a0a
cmp eax, 0x120
jne 0x489bb9
push ecx
mov ecx, edi
call fcn.00489480
jmp case.0x489665.3
cmp eax, 0x6a
jne 0x489d58
push dword [edi + 0xe8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x489665.3
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x2000
push 0x42
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x2000
mov esi, eax
push 0
push esi
call fcn.004d6ed0
add esp, 0xc
push 2
push 0xffffffffffffffff
push 0x100c
push dword [edi + 0xf0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
mov dword [esp + 0x24], ecx
cmp ecx, 0xffffffff
je 0x489d39
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x68]
push eax
push ecx
push 0x1073
push dword [edi + 0xf0]
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489c80
mov eax, dword [esp + 0x20]
sub ecx, edx
sar ecx, 1
sub eax, ecx
lea esi, [esi + ecx*2]
cmp eax, 4
jbe 0x489d39
dec eax
mov dword [esp + 0x70], 1
mov dword [esp + 0x20], eax
mov ecx, 0x20
mov dword [esp + 0x80], eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x28]
mov word [esi], cx
add esi, 2
push 0x1073
push dword [edi + 0xf0]
mov dword [esp + 0x8c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489ce6
mov eax, dword [esp + 0x20]
sub ecx, edx
sar ecx, 1
sub eax, ecx
lea esi, [esi + ecx*2]
cmp eax, 4
jbe 0x489d39
push 2
push dword [esp + 0x28]
mov dword [esi], 0xa000d
sub eax, 2
push 0x100c
push dword [edi + 0xf0]
add esi, 4
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
mov dword [esp + 0x24], eax
cmp ecx, 0xffffffff
jne 0x489c40
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x489a2b
mov eax, 0x8a
cmp cx, ax
jne case.0x489665.3
mov ecx, dword [edi + 0x60]
push 1
push 0x9a52ae1b
mov ecx, dword [ecx + 0x478]
call fcn.00407030
jmp case.0x489665.3
sub eax, 0x113
je 0x48a171
sub eax, 0xee
je 0x48a0ff
sub eax, 3
jne case.0x489665.3
mov eax, esi
movsx edx, si
mov esi, dword [edi + 0x140]
shr eax, 0x10
movsx ecx, ax
mov eax, dword [edi + 0x138]
mov dword [esp + 0x24], eax
add esi, dword [esp + 0x24]
mov eax, dword [edi + 0x13c]
mov dword [esp + 0x20], esi
mov esi, dword [edi + 0x144]
add esi, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
cmp edx, dword [esp + 0x24]
jl case.0x489665.3
cmp edx, dword [esp + 0x20]
jg case.0x489665.3
cmp ecx, eax
jl case.0x489665.3
cmp ecx, dword [esp + 0x1c]
jg case.0x489665.3
mov esi, dword [edi + 0x16c]
sub ecx, eax
test esi, esi
je 0x489a2b
mov edx, dword [esi + 0xc]
mov eax, edx
sub eax, dword [edi + 0x15c]
cmp eax, ecx
jg 0x489e33
mov eax, dword [esi + 0x10]
sub eax, dword [edi + 0x15c]
add eax, 0x28
add eax, edx
cmp ecx, eax
jl 0x489e3f
mov esi, dword [esi + 4]
test esi, esi
jne 0x489e12
jmp 0x489a2b
cmp dword [edi + 0x178], 0xffffffff
jne 0x489e5d
mov eax, dword [edi + 0x120]
mov dword [edi + 0x178], eax
or eax, 1
mov dword [edi + 0x120], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push dword [esp + 0x18]
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x100
push dword [edi + 0xfc]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
jne 0x489edc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x24]
jl 0x48a0e4
cmp eax, dword [esp + 0x20]
jg 0x48a0e4
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x38]
jl 0x48a0e4
cmp eax, dword [esp + 0x1c]
jg 0x48a0e4
jmp 0x489a2b
cmp eax, 0x121
jne 0x489f92
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x489a2b
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi + 0x48]
lea eax, [eax*2 + 4]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x489f2f
mov word [ecx], ax
jmp 0x489f73
lea eax, [eax*2 - 2]
push eax
lea eax, [esi + 0x4c]
push eax
push ecx
call fcn.004d6950
mov ecx, dword [esi + 0x48]
mov edx, 0xd
mov eax, dword [esp + 0x40]
add esp, 0xc
mov word [eax + ecx*2 - 2], dx
mov edx, 0xa
mov ecx, dword [esi + 0x48]
mov eax, dword [esp + 0x34]
mov word [eax + ecx*2], dx
xor edx, edx
mov ecx, dword [esi + 0x48]
mov eax, dword [esp + 0x34]
mov word [eax + ecx*2 + 2], dx
mov esi, dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x48a0e4
cmp eax, 0x124
jne 0x489fd8
push 2
push 1
add esi, 0x14
push esi
push ecx
mov ecx, dword [edi + 0x60]
mov ecx, dword [ecx + 0x4a8]
call fcn.004094a0
push 3
lea eax, [esp + 0x6c]
push eax
call fcn.004ae980
push ecx
mov ecx, dword [edi + 0x60]
lea eax, [esp + 0x6c]
push 0
push esi
push eax
mov ecx, dword [ecx + 0x49c]
call fcn.004a7df0
jmp 0x48a0e4
cmp eax, 0x151
jne 0x48a00d
push 0
push 1
add esi, 0x14
push esi
push ecx
mov ecx, dword [edi + 0x60]
mov ecx, dword [ecx + 0x4a8]
call fcn.004094a0
push esi
push 0x20
push ecx
mov ecx, dword [edi + 0x60]
mov ecx, dword [ecx + 0x4a8]
call fcn.00409370
jmp 0x48a0e4
cmp eax, 0x122
jne 0x48a0e4
mov ecx, dword [edi + 0x6c]
lea edx, [esp + 0x34]
push 0x123
push edx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0x6c]
lea edx, [esp + 0x3c]
push 1
push edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0x70]
push 4
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [eax + 0x70]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x48a0e4
mov eax, dword [edi + 0x60]
mov esi, dword [eax + 0x4a8]
mov dword [esp + 0x38], esi
lea eax, [esi + 4]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x34]
xor eax, eax
test edx, edx
je 0x48a0da
mov esi, dword [esi + 0x38]
mov ecx, esi
nop
cmp dword [ecx], 0x77fc87de
je 0x48a092
inc eax
add ecx, 0x14
cmp eax, edx
jb 0x48a080
jmp 0x48a0da
lea eax, [eax + eax*4]
mov edx, dword [esi + eax*4 + 0xc]
test edx, edx
je 0x48a0da
mov edi, dword [esp + 0x38]
cmp dword [edx + 0x68], 2
mov esi, dword [edx + 0xc]
jne 0x48a0d0
mov dword [edx + 0x68], 0
lea ecx, [edx + 0x64]
xor eax, eax
cmp dword [ecx], 0
jne 0x48a0d0
inc eax
add ecx, 4
cmp eax, 8
jb 0x48a0b6
test eax, eax
je 0x48a0d0
push edx
mov ecx, edi
call fcn.00408e90
mov edx, esi
test esi, esi
jne 0x48a0a1
mov edi, dword [esp + 0x28]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x178]
mov dword [edi + 0x120], eax
mov dword [edi + 0x178], 0xffffffff
jmp 0x489a2b
mov edx, dword [edi + 0x140]
mov ecx, dword [edi + 0x144]
add ecx, dword [edi + 0x13c]
movsx eax, si
mov dword [esp + 0x1c], eax
mov eax, esi
shr eax, 0x10
cwde
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x138]
add edx, eax
cmp dword [esp + 0x1c], eax
jl 0x48a14d
cmp dword [esp + 0x1c], edx
jg 0x48a14d
mov eax, dword [esp + 0x28]
cmp eax, dword [edi + 0x13c]
jl 0x48a14d
cmp eax, ecx
jg 0x48a14d
xor dword [edi + 0x120], 1
mov eax, dword [edi + 0x178]
cmp eax, 0xffffffff
je case.0x489665.3
mov dword [edi + 0x120], eax
mov dword [edi + 0x178], 0xffffffff
jmp case.0x489665.3
call fcn.004892d0
jmp case.0x489665.3