Function at 0x4cd0c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
movsx edi, ax
shr eax, 0x10
movsx ebx, ax
mov eax, dword [esi + 0xb0]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ebx
je 0x4cd1a3
cmp dword [esi + 0xb4], edi
jne 0x4cd0fe
cmp dword [esi + 0xb8], ebx
je 0x4cd1a3
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4cd1a3
mov eax, dword [esi + 0xfc]
cmp eax, 0xffffffff
je 0x4cd1a3
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esi + 0x104], ebp
call dword [edx + 0x50]
cmp eax, ebp
mov dword [esi + 0xb0], ebp
jne 0x4cd3e3
mov dword [esi + 0x104], 1
call dword [sym.imp.USER32.dll_GetMessagePos]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
and edi, 0xffff
shl edi, 0x10
and eax, 0xffff
or edi, eax
cmp ebx, 5
je 0x4cd190
mov edx, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [edx + 0x44]
push edi
push ebx
mov ecx, esi
call fcn.004cda20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov ecx, dword [esi + 8]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0xe0], ebp
je 0x4cd1c6
mov edx, dword [esi + 8]
lea ecx, [esi + 0x28]
push edx
call fcn.004d0e30
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
push ebx
lea eax, [esi + 0x344]
push edi
push eax
call ebp
test eax, eax
je 0x4cd259
push 2
lea ecx, [esi + 4]
call fcn.004d1640
cmp byte [esi + 0x1e4], 1
je 0x4cd3e3
mov eax, dword [esi + 0x104]
mov byte [esi + 0x1e4], 1
test eax, eax
je 0x4cd20a
mov byte [esi + 0x1e4], 2
mov edx, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi + 0xfc]
mov dword [esi + 0xfc], 0xffffffff
cmp eax, 0xffffffff
je 0x4cd230
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi + 0x104]
test eax, eax
je 0x4cd3e3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x44]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
cmp byte [esi + 0x1e4], 4
je 0x4cd272
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1e4], 4
call dword [eax + 0x28]
push ebx
lea ecx, [esp + 0x28]
push edi
push ecx
call ebp
test eax, eax
je 0x4cd3dc
push 2
lea ecx, [esi + 4]
call fcn.004d1640
mov eax, dword [esi + 0xf4]
mov edx, dword [esi + 0xfc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xdc]
cmp eax, 0xffffffff
mov dword [esp + 0x10], edx
mov dword [esi + 0xfc], 0xffffffff
je 0x4cd2ba
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jle 0x4cd37d
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov ebp, dword [ecx + ebx*4]
mov edi, ebp
shl edi, 5
sub edi, ebp
shl edi, 4
mov cl, byte [edi + edx + 0x44]
lea eax, [edi + edx]
test cl, 8
jne 0x4cd325
mov ecx, dword [eax + 0x19c]
test ecx, ecx
je 0x4cd325
test byte [eax + 0x48], 4
jne 0x4cd325
mov ecx, dword [esp + 0x20]
add eax, 0x1a4
push ecx
movsx ecx, word [esp + 0x40]
push ecx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4cd325
mov edx, dword [esi + 0xec]
test byte [edi + edx + 0x48], 1
je 0x4cd330
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x4cd2c8
jmp 0x4cd37d
mov edi, dword [esp + 0x10]
mov dword [esi + 0xfc], ebp
cmp ebp, edi
je 0x4cd3e3
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4cd360
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esi + 0x28]
call fcn.004d0de0
cmp edi, 0xffffffff
je 0x4cd37d
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xfc]
cmp edx, eax
je 0x4cd37d
mov eax, dword [esi]
mov ecx, edx
push ecx
mov ecx, esi
call dword [eax + 0x28]
cmp dword [esi + 0xfc], 0xffffffff
jne 0x4cd3b7
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4cd397
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4cd3e3
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
push eax
call fcn.004d0de0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov eax, dword [esi + 0x104]
test eax, eax
je 0x4cd3e3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
call fcn.004cd740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov ecx, esi
call fcn.004ccfd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8