Function at 0x4cc560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5e3390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x54], 1
ja 0x4cc587
cmp ebx, dword [edi + 0x2c]
je 0x4cc7e0
mov eax, dword [edi + 0x3c]
and eax, 0xc00
push esi
cmp eax, 0x400
jne 0x4cc5b0
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4cc5b0
mov esi, 1
jmp 0x4cc5b2
xor esi, esi
mov ecx, dword [edi + 0x3c]
mov eax, ecx
and eax, 0x20
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x54], eax
neg eax
sbb edx, edx
mov eax, ecx
shr eax, 0xb
not eax
mov dword [ebp - 0x48], edx
test al, 1
je 0x4cc5d7
mov eax, dword [edi + 0x2c]
jmp 0x4cc5d9
xor eax, eax
mov dword [ebp - 0x50], eax
test ecx, 0x800
je 0x4cc5e8
test ebx, ebx
je 0x4cc603
push ebx
push eax
push 0x40000259
push edi
call fcn.004cc1f0
add esp, 0x10
test eax, eax
jne 0x4cc7df
mov edx, dword [ebp - 0x48]
mov eax, dword [edi + 0x54]
test eax, eax
je 0x4cc6a4
cmp eax, 1
jne 0x4cc659
mov eax, dword [edi + 0x2c]
and byte [eax + 0x26], 0xfd
test esi, esi
je 0x4cc63d
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x4cc63d
test byte [esi + 0x26], 0x20
je 0x4cc637
push 0
push esi
push edi
call fcn.004c7cb0
add esp, 0xc
mov esi, dword [esi]
test esi, esi
jne 0x4cc625
test dword [edi + 0x3c], 0x10000
jne 0x4cc6a4
push 0
push dword [ebp - 0x48]
push dword [edi + 0x2c]
push edi
call fcn.004c9800
add esp, 0x10
jmp 0x4cc6a4
push edi
call fcn.004c83e0
mov esi, eax
add esp, 4
test esi, esi
je 0x4cc6a4
cmp esi, ebx
je 0x4cc686
and byte [esi + 0x26], 0xfd
test dword [edi + 0x3c], 0x10000
jne 0x4cc686
push 0
push edx
push esi
push edi
call fcn.004c9800
add esp, 0x10
cmp dword [edi + 0x54], 1
jbe 0x4cc6a4
nop dword [eax]
mov esi, dword [esi + 8]
test esi, esi
je 0x4cc69f
test byte [esi + 0x26], 2
je 0x4cc690
test esi, esi
mov edx, dword [ebp - 0x48]
jne 0x4cc668
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], ebx
test ebx, ebx
je 0x4cc781
or byte [ebx + 0x26], 2
cmp dword [ebp - 0x4c], 0
mov dword [edi + 0x54], 1
je 0x4cc70e
push ebx
push edi
call fcn.004c9960
add esp, 8
test eax, eax
je 0x4cc6e9
test byte [ebx + 0x26], 0x20
jne 0x4cc6e9
push 0
push ebx
push edi
call fcn.004c7e10
add esp, 0xc
mov esi, dword [ebx]
test esi, esi
je 0x4cc708
nop
test byte [esi + 0x26], 0x20
jne 0x4cc702
push 0
push esi
push edi
call fcn.004c7e10
add esp, 0xc
mov esi, dword [esi]
test esi, esi
jne 0x4cc6f0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test dword [edi + 0x3c], 0x10000
jne 0x4cc788
lea eax, [ebp - 0x24]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp - 0x54], 0
jne 0x4cc749
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x48]
push 0x1207
push dword [edi + 4]
call esi
jmp 0x4cc755
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push 1
push ebx
push edi
call fcn.004c8720
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
js 0x4cc788
movzx ecx, word [edi + 0x46]
add ecx, eax
lea eax, [ebp - 0x14]
push 1
push eax
push dword [edi]
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4cc788
mov dword [edi + 0x54], 0
test dword [edi + 0x3c], 0x800
jne 0x4cc7b4
push ebx
push dword [ebp - 0x50]
push 0x4000025a
push edi
call fcn.004cc1f0
add esp, 0x10
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push 0xfffffffffffffff4
push eax
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x40], eax
push ecx
push eax
push 0x4e
push dword [edi + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0x4000025a
movups xmmword [ebp - 0x34], xmm0
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret