Function at 0x40db90
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
lea esi, [ebx + 0x5c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0040c590
mov ecx, dword [0x43a258]
lea eax, [ebx + 0x104]
push ecx
push eax
mov ecx, esi
call fcn.0040d7d0
test eax, eax
je 0x40dbf0
mov edx, dword [eax + 0x20]
push eax
mov eax, dword [eax + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.0040d030
lea esi, [ebx + 0xb8]
mov edi, 0x5c
mov dword [esp + 0x10], esi
jmp 0x40dc05
mov esi, dword [esp + 0x10]
push 0x10000
push 0xffffff
push ecx
lea edx, [esi - 4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00423e11
lea eax, [edi + 2]
lea ecx, [ebx + 0x5c]
push eax
push 0x5a
call fcn.0040c940
mov ebp, dword [esi]
mov esi, 0x129
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, 0x66666667
mov ecx, edx
imul ebp
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, 9
mov ebp, edx
ja case.default.0x40dc5c
jmp dword [ecx*4 + 0x40dea0]
mov ecx, dword [str.num0]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [str.num1]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [str.num2]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [str.num3]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [str.num4]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [str.num5]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [str.num6]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [str.num7]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [str.num8]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
jmp 0x40ddb4
mov ecx, dword [0x43a208]
lea edx, [ebx + 0x118]
push ecx
push edx
mov ecx, 0x43c460
call fcn.0040d7d0
test eax, eax
je case.default.0x40dc5c
push eax
push edi
lea eax, [esp + 0x28]
push esi
push eax
mov ecx, 0x43c460
call fcn.0040d030
sub esi, 0xf
cmp esi, 0xcf
jge 0x40dc34
mov edx, dword [esp + 0x10]
add edi, 0x19
add edx, 8
cmp edi, 0x156
mov dword [esp + 0x10], edx
jl 0x40dc01
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x38], 0x129
mov dword [esp + 0x3c], 5
mov dword [esp + 0x40], 0x142
mov dword [esp + 0x44], 0x1e
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40de95
mov ecx, dword [0x43a2ec]
lea edi, [ebx + 0x104]
lea esi, [ebx + 0x5c]
push ecx
push edi
mov ecx, esi
call fcn.0040d7d0
test eax, eax
je 0x40de59
mov edx, dword [eax + 0x20]
push eax
mov eax, dword [eax + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.0040d030
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x40de95
mov edx, dword [0x43a2d4]
mov ecx, esi
push edx
push edi
call fcn.0040d7d0
test eax, eax
je 0x40de8e
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
push eax
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.0040d030
mov byte [ebx + 0xb0], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret