Function at 0x427700
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x68]
test eax, eax
je 0x427904
mov eax, dword [esi + 4]
test eax, eax
je 0x427904
mov ebx, dword [esp + 0x48]
mov eax, dword [eax + 0x20]
push ebx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x427775
call dword [sym.imp.USER32.dll_GetCapture]
mov ecx, dword [esi + 4]
cmp eax, dword [ecx + 0x20]
jne 0x42774e
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
mov ecx, esi
mov dword [esi + 0x74], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0xffffffff
call fcn.00427980
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
cmp dword [esi + 0x78], 0xffffffff
jle 0x427904
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x48]
mov edi, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x10]
sub eax, edx
sub ecx, edi
mov edi, dword [esi + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x78]
sub ecx, edi
cmp eax, 2
mov dword [esp + 0x10], ecx
je 0x42785d
cmp eax, 3
je 0x42785d
test eax, eax
jne 0x427813
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00426f10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x427854
push 0x14
mov ecx, esi
call fcn.00427460
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
cmp eax, 1
jne 0x427904
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00426f10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x427854
push 0x14
mov ecx, esi
call fcn.00427520
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
push 0
push 0x14
jmp 0x4278f6
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00426e30
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00426d80
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call edi
test eax, eax
jne 0x427904
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call edi
test eax, eax
je 0x4278f2
mov eax, dword [esi + 0x28]
push 0
test eax, eax
jne 0x4278ce
mov ecx, dword [esi + 4]
xor edx, edx
mov dx, word [esi + 0x20]
xor eax, eax
mov ax, word [esi + 0x78]
shl edx, 0x10
or edx, eax
push edx
mov edx, dword [ecx + 0x20]
push 0x114
push edx
jmp 0x4278ec
mov edx, dword [esi + 4]
xor eax, eax
mov ax, word [esi + 0x20]
xor ecx, ecx
mov cx, word [esi + 0x78]
shl eax, 0x10
or eax, ecx
push eax
mov eax, dword [edx + 0x20]
push 0x115
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x32
mov ecx, dword [esi + 4]
push ebx
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4