Function at 0x4995af
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
push edi
push dword [ebp + 8]
mov ecx, 0x4d1890
call fcn.00419cea
mov ecx, dword [0x4d18f0]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + eax*4]
mov eax, 0xfffffe6e
mov esi, dword [ecx]
mov ecx, dword [edi + 8]
mov dword [esp + 0x20], esi
cmp ecx, eax
ja 0x499879
je 0x499816
mov eax, 0xfffffdd9
cmp ecx, eax
ja 0x49969f
je 0x499689
cmp ecx, 0xfffffd09
je 0x49966a
cmp ecx, 0xfffffd0e
je 0x499661
cmp ecx, 0xfffffd0f
je 0x49962f
cmp ecx, 0xfffffd16
jne 0x49964a
push ecx
jmp 0x499809
cmp byte [esi + 0x19a], 1
jne 0x499641
push ecx
push dword [edi + 4]
call fcn.00497e54
mov word [esi + 0x199], 0
push edi
push dword [ebp + 0xc]
push 0x4e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov byte [esi + 0x199], 1
jmp 0x49964a
cmp byte [esi + 0x199], 0
mov byte [esi + 0x19a], 1
jne 0x49964a
mov byte [esi + 0x19a], 0
push dword [edi + 8]
jmp 0x499809
push 0
push 0
push 0x130b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x499808
cmp ecx, 0xfffffdda
je 0x4997bc
cmp ecx, 0xfffffdee
je 0x499743
cmp ecx, 0xfffffe3d
je 0x499816
cmp ecx, 0xfffffe64
jne 0x49964a
mov eax, dword [edi]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x100
je 0x49964a
cmp word [edi + 0xc], 0x20
jne 0x49964a
xor esi, esi
push esi
push 9
push 0x110a
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49964a
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push esi
push 0x113e
push dword [esp + 0x28]
mov dword [esp + 0x5c], 4
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49964a
push esi
push dword [esp + 0x74]
jmp 0x49980c
cmp dword [esi + 0x188], 0
je 0x49964a
mov edx, dword [0x4d1914]
push 3
pop ecx
cmp edx, ecx
jl 0x49964a
mov esi, dword [0x4d1904]
mov eax, dword [esi + ecx*4]
mov eax, dword [eax]
test eax, eax
je 0x499788
mov edi, dword [esp + 0x24]
cmp dword [eax + 4], edi
mov edi, dword [ebp + 0x10]
jne 0x499788
movzx eax, byte [eax + 0x93]
cmp eax, dword [edi + 4]
je 0x49978d
inc ecx
cmp ecx, edx
jle 0x499767
cmp ecx, edx
jg 0x49964a
mov eax, dword [esi + ecx*4]
push 0x4f
mov eax, dword [eax]
push dword [eax + 0x54]
lea eax, [edi + 0x10]
push eax
call fcn.0042ce9a
add esp, 0xc
xor eax, eax
mov word [edi + 0xae], ax
xor eax, eax
inc eax
jmp 0x499659
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jns 0x49964a
push 9
call esi
test ax, ax
jns 0x49964a
push 0
push 0
push 0x130b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x10
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setns cl
lea eax, [ecx*2 - 1]
add eax, esi
push eax
push dword [edi + 4]
call fcn.00497e54
jmp 0x49964a
xor esi, esi
push esi
push 9
push 0x110a
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49964a
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push esi
push 0x113e
push dword [edi]
mov dword [esp + 0x5c], 4
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49964a
mov eax, dword [edi + 0x34]
cmp eax, dword [edi + 0x5c]
je 0x49964a
cmp dword [edi + 0xc], 0x1000
je 0x49964a
cmp dword [edi + 0xc], 1
jmp 0x499733
cmp ecx, 0xfffffff0
ja 0x499a27
je 0x499a1c
cmp ecx, 0xfffffec0
je 0x499a0b
cmp ecx, 0xfffffed4
je 0x499a0b
cmp ecx, 0xffffff93
je 0x49995e
cmp ecx, 0xffffff94
jne 0x49964a
mov eax, dword [edi + 4]
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0x28]
mov dword [esp + 0x24], eax
push edx
push eax
mov ecx, 0x4d1890
call fcn.00419ae9
test al, al
je 0x49964a
mov eax, dword [0x4d1904]
mov esi, dword [esp + 0xc]
push 0
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
mov ax, word [edi + 0x10]
mov word [ecx + 0x96], ax
push dword [edi + 4]
call fcn.00497e54
mov edx, dword [0x4d1904]
mov eax, dword [edx + esi*4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
jbe 0x49964a
mov eax, dword [esp + 0x20]
mov ecx, 0x4d18d0
mov dword [0x4d18cc], eax
mov eax, dword [edx + esi*4]
mov eax, dword [eax]
add eax, 0x24
cmp eax, ecx
je 0x499934
push eax
call fcn.0040478a
mov edx, dword [0x4d1904]
mov eax, dword [edx + esi*4]
push 0x497e4b
mov eax, dword [eax]
mov al, byte [eax + 0x98]
mov byte [0x4d18e0], al
push dword [edi + 0x10]
push 0x1030
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x49964a
xor eax, eax
push eax
push eax
push eax
push dword [0x4d193c]
call dword [sym.imp.COMCTL32.dll_ImageList_SetDragCursorImage]
push 0xfffffffffffffff0
push 0xfffffffffffffff8
xor esi, esi
push esi
push dword [0x4d193c]
call dword [sym.imp.COMCTL32.dll_ImageList_BeginDrag]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x28]
mov dword [0x4d1940], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 1
call fcn.00405f80
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
inc esi
mov dword [esp + 0x28], eax
push str._GUI_DRAGID
mov dword [esp + 0x38], esi
call fcn.004045fd
push esi
lea eax, [esp + 0x2c]
mov ecx, 0x4d2350
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00405070
lea ecx, [esp + 0x38]
call fcn.004020f8
lea esi, [edi + 0x20]
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [edi + 0x24]
push dword [esi]
push 0
call dword [sym.imp.COMCTL32.dll_ImageList_DragEnter]
lea ecx, [esp + 0x28]
call fcn.00405f80
jmp 0x49964a
push 1
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x49964a
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x49964a
cmp ecx, 0xfffffff4
je 0x499dd3
cmp ecx, 0xfffffffb
je 0x499b8d
cmp ecx, 0xfffffffe
jne 0x49964a
push 1
push esi
mov esi, 0x4d1890
mov ecx, esi
call fcn.00419a04
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [edi]
mov ecx, esi
call fcn.00419cb3
cmp eax, 0xffffffff
je 0x49964a
mov ecx, dword [0x4d1904]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax]
mov al, byte [eax + 0x90]
cmp al, 0x10
jb 0x49964a
cmp al, 0x11
jbe 0x499b08
cmp al, 0x13
jne 0x49964a
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push esi
push 0x1012
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x49964a
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
push esi
push 0x104b
push dword [edi]
mov dword [esp + 0x84], 4
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x40], 0xe
je 0x49964a
push esi
push dword [esp + 0x98]
jmp 0x49980c
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push esi
push 0x1111
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49964a
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push esi
push 0x113e
push dword [edi]
mov dword [esp + 0x5c], 0xc
mov dword [esp + 0x68], 0xf000
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x30], 0x46
je 0x49964a
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 9
push 0x110b
push dword [edi]
call esi
push dword [esp + 0x34]
push 9
push 0x110b
push dword [edi]
call esi
jmp 0x49964a
push 1
push esi
mov esi, 0x4d1890
mov byte [esp + 0x13], 0
mov ecx, esi
call fcn.00419a04
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [edi]
mov ecx, esi
call fcn.00419cb3
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x499bf9
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call fcn.00419cb3
mov ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
je 0x49964a
mov byte [esp + 0xb], 1
mov eax, dword [0x4d1904]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov al, byte [eax + 0x90]
cmp al, 0x10
je 0x499d03
cmp al, 0x13
jne 0x49964a
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push esi
push 0x1012
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jle 0x499cc1
cmp byte [esp + 0xb], 0
jne 0x499cc1
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
push esi
push 0x104b
push dword [edi]
mov dword [esp + 0x84], 4
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49964a
test byte [esp + 0x40], 0xe
je 0x499cc1
lea eax, [esp + 0xc]
mov ecx, 0x4d1890
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x9c]
call fcn.00419ae9
test al, al
je 0x499cb9
mov ecx, dword [esp + 0xc]
mov eax, dword [0x4d1904]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
test eax, eax
je 0x499cb9
cmp dword [eax + 0xc], esi
jne 0x499cc1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4d1904]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x49964a
mov eax, dword [esp + 0x20]
push esi
push dword [eax]
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
push ecx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x49964a
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push esi
push 0x1111
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x499d8d
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
push esi
push 0x113e
push dword [edi]
mov dword [esp + 0x5c], 4
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [esp + 0x30], 0x46
je 0x499d8d
lea eax, [esp + 0xc]
mov ecx, 0x4d1890
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x78]
call fcn.00419ae9
test al, al
je 0x499d85
mov ecx, dword [esp + 0xc]
mov eax, dword [0x4d1904]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
cmp dword [eax + 0xc], esi
jne 0x499d8d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [esp + 0x10]
mov eax, dword [0x4d1904]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x49964a
mov eax, dword [esp + 0x20]
push esi
push dword [eax]
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0x80
push ecx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x4997b4
push dword [edi]
mov esi, 0x4d1890
mov ecx, esi
call fcn.00419cb3
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x49964a
mov ecx, dword [0x4d1904]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax]
mov al, byte [ecx + 0x90]
cmp al, 0x10
je 0x499e0b
cmp al, 0x13
jne 0x49964a
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x499ebd
sub eax, 0x10000
jne 0x49964a
mov eax, dword [ecx + 0x48]
mov ecx, esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x2c]
call fcn.00419ae9
test al, al
jne 0x499e48
xor eax, eax
jmp 0x499659
mov eax, dword [0x4d1904]
mov esi, dword [esp + 0xc]
push 0xfffffffffffffff0
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax + 0x34]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x8000000
jne 0x499e41
test byte [edi + 0x28], 0x11
mov ecx, dword [0x4d1904]
je 0x499e86
mov eax, dword [ecx + esi*4]
mov eax, dword [eax]
cmp byte [eax + 0x90], 0x14
jne 0x49964a
mov eax, dword [ecx + esi*4]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
cmp eax, 0xffffffff
je 0x499e9c
mov dword [edi + 0x30], eax
mov ecx, dword [0x4d1904]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
test eax, eax
js 0x499e41
cmp dword [esp + 0x20], 0xfe000000
jne 0x499eb8
test byte [edi + 0x24], 1
je 0x499e41
mov dword [edi + 0x34], eax
jmp 0x499e41
push 0x20
pop eax
jmp 0x499659