Function at 0x402bf0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
mov eax, dword [0x439018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
call fcn.0040d7d0
mov ebp, eax
call fcn.0040d620
test eax, eax
je 0x402c1a
call fcn.0040d7d0
mov ebx, dword [eax + 0x68]
jmp 0x402c1c
xor ebx, ebx
push esi
push edi
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x24], xmm0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
movd xmm1, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x18]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebp + 8], xmm1
movss dword [ebp + 0xc], xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x1c]
sbb edx, dword [ebx + 0x14]
call fcn.0042f540
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.0042f540
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp + 0x10], xmm1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
call fcn.0040d620
test eax, eax
je 0x402ccb
call fcn.0040d7d0
mov edi, dword [eax + 0x68]
jmp 0x402ccd
xor edi, edi
call fcn.0040d7d0
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x402d79
cmp byte [esi + 0x8d], 0
je 0x402d2c
cvttss2si eax, dword [esi + 0xdb4]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xdb8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x402d23
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [esi + 0x8d], 0
jne 0x402d79
cmp dword [edi + 8], 0
jne 0x402d79
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x402d79
lea eax, [esp + 0x10]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x402d79
movd xmm0, dword [esp + 0x14]
sub esp, 8
cvtdq2ps xmm0, xmm0
mov ecx, esi
movss dword [esp + 4], xmm0
movd xmm0, dword [esp + 0x18]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.00407860
push 0x210
call fcn.0040eb80
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 4
test al, al
je 0x402dc8
push 0xa0
call edi
shr eax, 0xf
test al, 1
jne 0x402dc8
call fcn.0040d7d0
mov esi, eax
push 0
push 0x210
mov ecx, esi
call fcn.00407640
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa0
push 0x210
mov ecx, esi
call fcn.004176b0
push 0x214
call fcn.0040eb80
add esp, 4
test al, al
je 0x402e11
push 0xa1
call edi
shr eax, 0xf
test al, 1
jne 0x402e11
call fcn.0040d7d0
mov esi, eax
push 0
push 0x214
mov ecx, esi
call fcn.00407640
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa1
push 0x214
mov ecx, esi
call fcn.004176b0
push 0x212
call fcn.0040eb80
add esp, 4
test al, al
je 0x402e54
push 0x5b
call edi
shr eax, 0xf
test al, 1
jne 0x402e54
call fcn.0040d7d0
mov esi, eax
push 0
push 0x212
mov ecx, esi
call fcn.00407640
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5b
push 0x212
mov ecx, esi
call fcn.004176b0
push 0x216
call fcn.0040eb80
add esp, 4
test al, al
je 0x402e97
push 0x5c
call edi
shr eax, 0xf
test al, 1
jne 0x402e97
call fcn.0040d7d0
mov esi, eax
push 0
push 0x216
mov ecx, esi
call fcn.00407640
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5c
push 0x216
mov ecx, esi
call fcn.004176b0
cmp byte [ebp + 0x3c], 0
pop edi
pop esi
je 0x402ea4
or eax, 0xffffffff
jmp 0x402ea9
call fcn.0040da80
cmp dword [ebx + 0x20], eax
je 0x402eb6
mov dword [ebx + 0x20], eax
call fcn.00403430
call fcn.00402f20
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.0042f1a3
add esp, 0x24
ret