Function at 0x4cf150
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov esi, ecx
mov eax, edi
shr eax, 0x10
movsx ebp, di
movsx ebx, ax
mov dword [esi + 0x78], ebp
lea ecx, [esi + 0x34]
mov dword [esi + 0x7c], ebx
call fcn.004d11d0
push ebx
lea ecx, [esi + 0x310]
push ebp
push ecx
mov dword [esi + 0xa8], 1
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4cf1c1
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1a8], 2
call fcn.004cf760
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
push edi
push eax
mov ecx, esi
call dword [edx + 0x14]
mov ecx, esi
call fcn.004cf550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esi + 0xc4]
mov edi, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x4cf1df
mov ecx, dword [esp + 0x28]
push ecx
push edi
mov ecx, esi
call fcn.004ceeb0
jmp 0x4cf1e9
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
cmp edi, 4
jne 0x4cf21f
cmp dword [esi + 0xc4], 0xffffffff
jne 0x4cf21f
mov eax, dword [esi + 8]
push eax
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
mov eax, dword [esi + 0xe0]
push 0x1080
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esi + 0xc4]
cmp eax, 0xffffffff
je 0x4cf3f8
mov edx, dword [esi + 0xb0]
mov ecx, eax
shl ecx, 6
sub ecx, eax
push ebx
push ebp
lea eax, [edx + ecx*8 + 0x1ac]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4cf3f8
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1a8], 4
call fcn.004cf760
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xb0]
mov ecx, eax
shl ecx, 6
sub ecx, eax
cmp byte [edx + ecx*8 + 0x44], 0
jne 0x4cf28b
cmp edi, 4
jne 0x4cf3f8
jmp 0x4cf1f7
push eax
mov ecx, esi
mov dword [esi + 0xc8], 1
call fcn.004cf760
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4cf311
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esi + 0x7c]
sub ecx, edx
test eax, eax
jge 0x4cf2e1
neg eax
test ecx, ecx
jge 0x4cf2e7
neg ecx
cmp eax, 5
jg 0x4cf2f1
cmp ecx, 5
jle 0x4cf311
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4cf311
mov dword [esi + 0x74], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
cmp edi, 5
je 0x4cf323
mov eax, dword [esp + 0x28]
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi + 0xc4]
cmp eax, 0xffffffff
je 0x4cf3f8
mov edx, dword [esi + 0xb0]
mov ecx, eax
shl ecx, 6
sub ecx, eax
lea eax, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 0x48]
test ch, 0x10
je 0x4cf3b0
lea ecx, [esp + 0x10]
push 0
add eax, 0x1ac
push ecx
push eax
mov ecx, esi
call fcn.004d0fe0
push ebx
lea edx, [esp + 0x14]
push ebp
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4cf3f8
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xb0]
push eax
mov eax, dword [esi + 0xc4]
mov ecx, eax
mov dword [esi + 0x84], 1
shl ecx, 6
sub ecx, eax
xor eax, eax
mov ax, word [edx + ecx*8 + 0x40]
mov ecx, dword [esi + 0xe0]
or eax, 0x10000000
push eax
push 0x111
push ecx
jmp 0x4cf3e1
test cl, 8
je 0x4cf3f8
mov edx, dword [esi + 8]
xor ecx, ecx
and edi, 0xffff
mov dword [esi + 0x84], 1
mov cx, word [eax + 0x40]
push edx
mov edx, dword [esi + 0xe0]
shl edi, 0x10
or ecx, edi
push ecx
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
mov dword [esi + 0x84], 0
call fcn.004cf550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8