Function at 0x40a3c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x11
xor ebp, ebp
xor edi, edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x40a463
push 1
mov ecx, esi
mov dword [0x41b448], 1
call fcn.0040ae30
fld dword [esi + 0x9c]
sub esp, 8
fstp qword [esp]
push str._.1f_X
push 0x4326e4
call fcn.0040bfc5
mov eax, dword [esi + 0x6c]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
add esp, 0x10
push 0x2be2
push eax
call edi
mov ecx, dword [esi + 0x6c]
push 0x2be2
push ecx
call edi
mov edx, dword [esi + 0x6c]
push ebp
push 0x1770
push 0x2be2
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x4324d0]
mov ecx, dword [0x4324d4]
mov dword [0x4324e0], ebp
mov edi, 0x4324d0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x40a50d
mov eax, dword [0x41b448]
mov ebx, 1
cmp eax, ebx
jne 0x40a48f
fld dword [esi + 0x9c]
sub esp, 8
fstp qword [esp]
push 0x41e284
push 0x4326e4
call fcn.0040bfc5
add esp, 0x10
mov dword [0x41b448], ebp
mov dword [0x4324e0], ebx
mov edx, dword [esi + 0x6c]
lea eax, [esp + 0x10]
push eax
mov dword [0x4326b0], edx
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [esi + 0x64], ebp
jne 0x40a4e6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, 0x4324d8
call 0x407810
test eax, eax
je 0x40a4e6
mov eax, dword [0x4324d0]
mov ecx, dword [0x4324d4]
mov edi, 0x4324d0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x40a50d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004010c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [0x4324d0], ecx
mov dword [0x4324d4], edx
lea ebx, [esi + 0x2c]
lea eax, [esi + 0x3c]
push edi
push ebx
push eax
mov ecx, esi
call fcn.0040a0f0
mov eax, dword [esi + 0x5c]
cmp eax, ebp
je 0x40a529
cmp dword [esi + 0x4c], ebp
jne 0x40a53a
cmp dword [esi + 0x4c], ebp
je 0x40a53a
cmp eax, ebp
jne 0x40a53a
push ebx
mov ecx, esi
call fcn.00409cd0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp eax, ebp
jne 0x40a594
fld dword [esi + 0x9c]
fcomp qword [0x4324a8]
fnstsw ax
test ah, 0x40
je 0x40a594
cmp dword [0x4324a4], edx
jne 0x40a594
cmp dword [0x4324a0], ecx
jne 0x40a594
cmp dword [esp + 0x2c], ebp
jne 0x40a594
mov eax, dword [0x432498]
mov edi, dword [esi + 0x8c]
cmp eax, edi
jne 0x40a594
mov eax, dword [0x43249c]
mov edi, dword [esi + 0x90]
cmp eax, edi
je 0x40a69d
mov eax, dword [esi + 0x8c]
mov dword [0x432498], eax
mov eax, dword [esi + 0x90]
mov dword [0x43249c], eax
mov dword [0x4324a0], ecx
mov dword [0x4324a4], edx
fld dword [esi + 0x9c]
fstp qword [0x4324a8]
cmp dword [esi + 0x4c], ebp
jne 0x40a5d9
cmp dword [0x4326b4], ebp
je 0x40a5d9
mov ecx, dword [esi + 0x54]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [esi + 0x5c], ebp
je 0x40a5e6
push ebp
mov ecx, esi
call fcn.0040ae40
mov edx, dword [esi + 0x6c]
lea edi, [esi + 0xc]
push edi
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x6c]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x18]
push eax
push ecx
call ebp
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x40a668
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x40a668
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [ebx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0x1c]
push edx
call dword [0x4326c8]
mov eax, dword [esi + 0x6c]
push edi
push eax
call ebp
mov ecx, dword [esi + 0x6c]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
push edi
push ecx
call ebx
test eax, eax
je 0x40a65a
mov edx, dword [esi + 0x6c]
add edi, 8
push edi
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x3c]
sub edx, eax
push 0x14
push edx
mov edx, dword [esi + 0x44]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x6c]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x6c]
push 0x101
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov edx, dword [esi + 0x6c]
push 0x13
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, esi
call fcn.0040acf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4