Function at 0x14008ba60
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14015b0c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14008bac1
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp qword [0x140211ed8], 0
jne 0x14008bad0
call fcn.140078e90
mov rsi, qword [0x140211aa8]
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140211ef8]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rsp + 0x48]
sub eax, dword [rsp + 0x40]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsi + 0x10], xmm0
movss dword [rsi + 0x14], xmm1
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
sub rax, qword [0x140211f00]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140211f08]
divss xmm1, xmm0
movss dword [rsi + 0x18], xmm1
mov qword [0x140211f00], rcx
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rsi + 0xe0c], al
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rsi + 0xe0d], al
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rsi + 0xe0e], al
mov byte [rsi + 0xe0f], 0
mov rcx, qword [0x140211aa8]
lea rbx, [rcx + 0xdf4]
cmp byte [rcx + 0xd3], 0
je 0x14008bbe3
cvttss2si eax, dword [rbx]
mov dword [rsp + 0x50], eax
cvttss2si eax, dword [rcx + 0xdf8]
mov dword [rsp + 0x54], eax
lea rdx, [rsp + 0x50]
mov rcx, qword [0x140211ef8]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x140211ef8]
jne 0x14008bc3f
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14008bc3f
lea rdx, [rsp + 0x38]
mov rcx, qword [0x140211ef8]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14008bc3f
movd xmm1, dword [rsp + 0x3c]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rsp + 0x38]
cvtdq2ps xmm0, xmm0
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rsi + 0x70], 0
je 0x14008bc4c
mov eax, 0xffffffff
jmp 0x14008bc59
mov rax, qword [0x140211aa8]
mov eax, dword [rax + 0x4230]
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x14008bc6c
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.140079540
call fcn.140056b30
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jne 0x14008bc81
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, reloc.WLDAP32.dll_Ordinal_45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14008bca8
cmp byte [0x1402123c0], 0
sete al
mov byte [0x1402123c0], al
jmp 0x14008bcaf
movzx eax, byte [0x1402123c0]
test al, al
je 0x14008bd02
cmp byte [0x140211ab9], 1
je 0x14008bcfb
mov edx, 0xffffffec
mov rcx, qword [0x140211b68]
call qword [sym.imp.USER32.dll_GetWindowLongA]
btr eax, 0x13
mov r8d, eax
mov edx, 0xffffffec
mov rcx, qword [0x140211b68]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140211b68]
call qword [sym.imp.USER32.dll_SetFocus]
mov byte [0x140211ab9], 1
call fcn.14008a1d0
jmp 0x14008bd4a
cmp byte [0x140211ab9], 0
je 0x14008bd4a
mov edx, 0xffffffec
mov rcx, qword [0x140211b68]
call qword [sym.imp.USER32.dll_GetWindowLongA]
bts eax, 0x13
mov r8d, eax
mov edx, 0xffffffec
mov rcx, qword [0x140211b68]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140211b68]
call qword [sym.imp.USER32.dll_SetFocus]
mov byte [0x140211ab9], 0
call fcn.140058e00
call fcn.140058a80
mov rcx, qword [0x140211b20]
mov rax, qword [rcx]
lea r8, [0x1402123b0]
mov rdx, qword [0x140211b50]
call qword [rax + 0x190]
mov rax, qword [0x140211aa8]
mov rax, qword [rax + 0x4088]
mov rcx, qword [rax]
add rcx, 0x48
xor esi, esi
cmp byte [rcx], sil
cmove rcx, rsi
call fcn.140078360
mov rcx, qword [0x140211b40]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [rsi + 1]
call qword [rax + 0x40]
mov ebx, esi
cmp dword [rsp + 0x68], 0x12
setne bl
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14008bdcc
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + reloc.WLDAP32.dll_Ordinal_32]
mov qword [rdi + 0x38], rsi
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14012d800
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret