Function at 0x427440
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x2e
call esi
test al, 1
je 0x42745e
mov byte [0x43160d], 1
push 0x2d
call esi
test al, 1
je 0x427474
cmp byte [0x43160e], 0
sete byte [0x43160e]
push 0x23
call esi
test al, 1
je 0x42748a
cmp byte [0x431038], 0
sete byte [0x431038]
cmp dword [0x431938], 0
jne 0x4274a1
cmp dword [0x431940], 0
je 0x4274a1
call fcn.004223f0
mov ebx, dword [0x431610]
lea eax, [ebp - 0x28]
push eax
push dword [0x431958]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
movd xmm1, eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x10]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x10]
mov ecx, edi
sub ecx, dword [0x431960]
mov esi, dword [ebp - 0xc]
mov edx, esi
sbb edx, dword [0x431964]
call fcn.004299b0
mov edx, dword [0x43196c]
mov ecx, dword [0x431968]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 4], xmm0
call fcn.004299b0
movss xmm1, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x431964], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x431960], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xfd], al
call esi
mov esi, dword [0x431610]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xff], 0
mov byte [ebx + 0xfe], al
cmp byte [esi + 0x357], 0
je 0x4275c6
cvttss2si eax, dword [esi + 0xe4]
mov dword [ebp - 8], eax
cvttss2si eax, dword [esi + 0xe8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [0x431958]
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x4275c6
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe4], 0xff7fffff
mov dword [esi + 0xe8], 0xff7fffff
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [0x431958]
jne 0x42762a
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x42762a
lea eax, [ebp - 0x18]
push eax
push dword [0x431958]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x42762a
movd xmm0, dword [ebp - 0x18]
movd xmm1, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe4], xmm0
movss dword [esi + 0xe8], xmm1
cmp byte [ebx + 0xb0], 0
je 0x427638
or eax, 0xffffffff
jmp 0x427643
mov eax, dword [0x431610]
mov eax, dword [eax + 0x1e40]
cmp dword [0x431200], eax
je 0x427655
mov dword [0x431200], eax
call fcn.00422690
call fcn.004227c0
call fcn.00405780
call fcn.00426c40
cmp byte [0x43160e], 0
je 0x427672
call fcn.004271c0
call fcn.00407900
mov eax, dword [0x431878]
push 0
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x431878]
push 0
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x431878]
push 0
push 0xae
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x431878]
push 0
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0
push 1
push 0
push 0
push eax
call dword [ecx + 0xac]
mov eax, dword [0x431878]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x427711
call fcn.00407c10
mov eax, dword [0x431610]
mov eax, dword [eax + 0x1cfc]
mov ecx, dword [eax]
xor eax, eax
add ecx, 0x34
cmp byte [ecx], al
cmove ecx, eax
call fcn.00421eb0
mov eax, dword [0x431878]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x431878]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x4277cd
mov eax, dword [0x431878]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x4277cd
cmp dword [0x431940], 0
je 0x4277af
mov ecx, dword [0x431944]
test ecx, ecx
je 0x427769
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x431944], 0
mov ecx, dword [0x43193c]
test ecx, ecx
je 0x427783
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x43193c], 0
mov ecx, dword [0x431938]
test ecx, ecx
je 0x4277af
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x431610]
mov dword [0x431938], 0
mov eax, dword [eax + 0x98]
mov dword [eax + 4], 0
mov eax, dword [0x431878]
push 0x431820
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [0x431940], 0
je 0x4277cd
call fcn.004223f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret