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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 1
mov dword [ebp - 0x18], ecx
cmp edi, 0x202
ja 0x4dac14
je 0x4dabf5
cmp edi, 0x111
ja 0x4dabce
je 0x4daac2
mov eax, edi
sub eax, ecx
je 0x4daaaa
sub eax, ecx
jne case.default.0x4daad3
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
lea ecx, [ebp - 0x18]
push ecx
push edx
push ebx
push 2
mov ecx, esi
call eax
jmp case.default.0x4daad3
mov edx, dword [esi]
mov edx, dword [edx + 0x70]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ebx
push ecx
mov ecx, esi
call edx
jmp case.default.0x4daad3
movzx eax, bx
add eax, 0xffffff38
cmp eax, 0xb
ja case.default.0x4daad3
jmp dword [eax*4 + 0x4dad98]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x6a4]
mov byte [esi + 0x6d4], 0
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 0
call edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
movzx ecx, word [ebp - 8]
movzx edx, word [ebp - 0xc]
mov eax, dword [esi + 4]
shl ecx, 0x10
or ecx, edx
push ecx
push 0
push 0x200
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x6a4]
call fcn.004ba1a0
push eax
mov ecx, esi
call fcn.004da5a0
push 1
push 0
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::ShowWindow_bool__bool_]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x6a4]
call fcn.004ba1a0
push eax
mov ecx, esi
call fcn.004da2c0
push 1
push 0
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::ShowWindow_bool__bool_]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0xc
push ecx
push 0
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::ShowWindow_bool__bool_]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0x201
jne case.default.0x4daad3
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x80]
lea eax, [ebp - 0x18]
push eax
push ecx
push ebx
push edi
mov ecx, esi
call edx
jmp case.default.0x4daad3
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x84]
lea ecx, [ebp - 0x18]
push ecx
push edx
push ebx
push 0x202
mov ecx, esi
call eax
jmp case.default.0x4daad3
mov eax, edi
sub eax, 0x40f
je 0x4dacea
sub eax, ecx
je 0x4dac70
sub eax, ecx
jne case.default.0x4daad3
mov ecx, dword [esi + 0x6a4]
call fcn.004ba1a0
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4dac5f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [ebp - 8]
push ecx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 1
push 0
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::ShowWindow_bool__bool_]
jmp case.default.0x4daad3
cmp dword [ebp + 0x10], ecx
jne 0x4dacd6
mov ecx, dword [esi + 0x6a4]
lea edx, [ebp - 0x14]
push edx
call fcn.004ba170
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x6a8]
mov ebx, dword [ecx]
add edx, 5
lea eax, [edx + 0x1a]
mov dword [ebp - 0x20], eax
sub esp, 0x10
mov eax, esp
add edi, 0xffffff77
mov dword [eax], edi
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x4c]
call eax
mov ecx, dword [esi + 0x6a8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 1
call eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp case.default.0x4daad3
mov ecx, dword [esi + 0x6a8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 0
call eax
jmp case.default.0x4daad3
push 0
push 0
lea ecx, [ebp - 0xc]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CPoint::constructor_int__int_]
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 4]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push 0
push ecx
mov ecx, dword [esi + 0x69c]
push 0
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov edx, dword [esi + 4]
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
push ecx
push ebx
push edi
lea ecx, [esi + 0x364]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::CPaintManagerUI::MessageHandler_unsigned_int__unsigned_int__long_int__long_int__]
test al, al
je 0x4dad75
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
push edx
push ebx
push edi
mov ecx, esi
call dword [sym.imp.DuiLib.dll_protected_virtual:_long_int___thiscall_DuiLib::CWindowWnd::HandleMessage_unsigned_int__unsigned_int__long_int_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret 0xc