Function at 0x51da32
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x19c]
and dword [ebp - 4], 0
mov ecx, edi
mov esi, eax
call fcn.004a0f35
mov ebx, eax
and ebx, 0x400000
push 0x25
pop eax
je 0x51daad
cmp dword [ebp + 8], eax
jne 0x51daa4
mov dword [ebp + 8], 0x27
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, 0x26
je 0x51dadb
dec eax
je 0x51dc18
dec eax
je 0x51dbe9
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x3d8]
test eax, eax
jne 0x51ddac
mov ecx, edi
call fcn.0049cd71
jmp 0x51ddac
cmp dword [ebp + 8], 0x27
jne 0x51daad
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x51da6d
je 0x51dba6
cmp ecx, 0xd
je 0x51dae5
cmp ecx, 0x1b
je 0x51db9a
cmp ecx, 0x20
jbe 0x51da85
cmp ecx, 0x22
jbe 0x51db7d
cmp ecx, 0x24
ja 0x51da85
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
cmp dword [0x66a5dc], 0
jne 0x51daf9
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x3d8]
cmp dword [ebp - 4], 0
je 0x51ddac
cmp dword [edi + 0xe04], 0
je 0x51dd93
mov eax, dword [esi + 0xabc]
test eax, eax
jl 0x51dd93
push eax
mov ecx, esi
call fcn.004d4f4c
mov ebx, eax
test ebx, ebx
jne 0x51db3e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x330]
test eax, eax
je 0x51dd93
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xc10]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebp - 0x10]
jge 0x51dce2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x330]
mov ecx, eax
mov eax, dword [ebx + 0x58]
sub eax, dword [ebp - 0x10]
cdq
idiv ecx
mov ebx, eax
dec ebx
jmp 0x51dd06
cmp dword [edi + 0xe08], 0
je 0x51da85
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x3d8]
jmp 0x51db03
xor eax, eax
inc eax
mov dword [edi + 0xf88], eax
push eax
jmp 0x51dbdd
mov ecx, edi
call fcn.0051a1cf
test eax, eax
je 0x51dbc0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x374]
jmp 0x51ddac
mov ecx, dword [edi + 0x120]
test ecx, ecx
je 0x51ddac
mov eax, dword [ecx]
call dword [eax + 0x70]
test eax, eax
je 0x51ddac
push 0
mov ecx, edi
call fcn.0051b55b
jmp 0x51ddac
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x51dadb
cmp dword [esi + 0xc2c], 0
jne 0x51dadb
mov ecx, edi
call fcn.0051d8f4
jmp 0x51ddac
push 0
call fcn.004d48f9
and dword [0x66bcd8], 0
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.0051a1ea
mov esi, eax
test esi, esi
je 0x51dc85
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x51dc50
test eax, eax
je 0x51dc50
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test eax, eax
je 0x51dc85
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc8]
test eax, eax
je 0x51dc85
lea ebx, [esi + 0x8c]
cmp dword [ebx], 0
je 0x51dcd5
mov ecx, edi
call fcn.0051a1ea
cmp eax, esi
jne 0x51dcd5
mov ecx, dword [ebx]
push 0
push 0
push 0x24
call fcn.0051da32
jmp 0x51dcd5
mov ecx, edi
call fcn.0051a1cf
mov esi, eax
test esi, esi
je 0x51dcae
push 0x662b04
mov ecx, esi
call fcn.00497383
test eax, eax
jne 0x51dcae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x378]
jmp 0x51dcd5
mov ecx, edi
call fcn.0051a180
test eax, eax
je 0x51dcd5
xor ecx, ecx
test ebx, ebx
sete cl
push 0
lea ecx, [ecx + ecx + 0x25]
push ecx
push 0x100
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 8]
mov dword [0x66bcd8], eax
jmp 0x51ddac
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebp - 8]
jle 0x51dd93
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x330]
mov ecx, eax
mov eax, dword [ebx + 0x60]
sub eax, dword [ebp - 8]
cdq
idiv ecx
mov ebx, eax
inc ebx
test ebx, ebx
je 0x51dd93
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x330]
mov ecx, eax
mov eax, dword [edi + 0x114]
cdq
idiv ecx
dec eax
dec eax
add dword [ebp + 8], ebx
jns 0x51dd30
xor ebx, ebx
xor ecx, ecx
jmp 0x51dd35
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [esi + 0xb10]
sub edx, eax
lea eax, [edx - 1]
cmp ecx, eax
jge 0x51dd4e
cmp dword [ebp + 8], ebx
jge 0x51dd51
mov dword [ebp + 8], ebx
jmp 0x51dd51
mov dword [ebp + 8], eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00519e15
push ebx
mov ecx, edi
call fcn.0051c1cc
cmp dword [edi + 0xe08], ebx
je 0x51dd86
lea ecx, [edi + 0xe3c]
cmp ecx, ebx
je 0x51dd86
cmp dword [ecx + 0x20], ebx
je 0x51dd86
push 1
push dword [ebp + 8]
call fcn.0049b708
jmp 0x51dd93
cmp eax, ebx
je 0x51dd93
push 0
mov ecx, edi
call fcn.0051c1cc
cmp dword [esi + 0xc44], 0
je 0x51ddac
push dword [esi + 0xabc]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1d8]
pop edi
pop esi
pop ebx
leave
ret 0xc