Function at 0x140028370
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rbp - 8], rax
cmp qword [0x14003eff8], 0
jne 0x1400283a2
call fcn.140024520
mov rcx, qword [0x14003f018]
lea rdx, [rbp - 0x38]
mov rdi, qword [0x14003ef20]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x30]
lea rcx, [rbp - 0x20]
sub eax, dword [rbp - 0x38]
movd xmm1, eax
mov eax, dword [rbp - 0x2c]
sub eax, dword [rbp - 0x34]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp - 0x20]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x14003f020]
cvtsi2ss xmm0, qword [0x14003f028]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x14003f020], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x14003ef20]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], 0
mov byte [rdi + 0x132], al
cmp byte [rcx + 0x3af], 0
lea rbx, [rcx + 0x118]
je 0x1400284a9
cvttss2si eax, dword [rbx]
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x10], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x14003f018]
mov dword [rbp - 0xc], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0xc]
mov ecx, dword [rbp - 0x10]
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 [0x14003f018]
jne 0x140028501
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140028501
mov rcx, qword [0x14003f018]
lea rdx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140028501
movd xmm0, dword [rbp - 0x40]
movd xmm1, dword [rbp - 0x3c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], 0
je 0x140028511
mov eax, 0xffffffff
jmp 0x14002851e
mov rax, qword [0x14003ef20]
mov eax, dword [rax + 0x1d70]
cmp dword [0x14003e858], eax
je 0x140028531
mov dword [0x14003e858], eax
call fcn.140024690
call fcn.140009880
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
cmp rax, qword [0x14003e508]
jne 0x140028579
lea edx, [rdi + 3]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x14003e500]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, qword [0x14003ef20]
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x20], 3
movss xmm0, dword [rbx + 0x1560]
lea rcx, [rbx + 0x1a88]
movss dword [rbp - 0x1c], xmm0
call fcn.140014c80
mov dword [rbx + 0x1560], edi
lea rdx, [rbp - 0x20]
mov rbx, qword [0x14003ef20]
mov dword [rbp - 0x20], 1
movss xmm1, dword [rbx + 0x1554]
lea rcx, [rbx + 0x1a88]
movss xmm0, dword [rbx + 0x1558]
movss dword [rbp - 0x1c], xmm1
movss dword [rbp - 0x18], xmm0
call fcn.140014c80
mov qword [rbx + 0x1554], rdi
lea rdx, [rbp - 0x38]
mov rbx, qword [0x14003ef20]
mov dword [rbp - 0x38], 2
mov qword [rbx + 0x1ae4], rdi
lea rcx, [rbx + 0x1a78]
mov qword [rbx + 0x1aec], rdi
mov dword [rbx + 0x1ac8], 1
movups xmm0, xmmword [rbx + 0x1610]
movups xmmword [rbp - 0x34], xmm0
call fcn.140014d70
mov qword [rbx + 0x1610], rdi
mov qword [rbx + 0x1618], rdi
mov rax, qword [0x14003ef20]
mov rcx, qword [rax + 0x19f8]
movss xmm0, dword [rax + 0x10]
movss xmm2, dword [rax + 0x14]
mov eax, dword [rcx + 0xb0]
test al, 1
je 0x1400286c5
and eax, 0xfffffff1
xorps xmm1, xmm1
comiss xmm0, xmm1
mov dword [rcx + 0xb0], eax
mov r8, rcx
jbe 0x140028682
cvttss2si eax, xmm0
mov edx, edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rcx + 0x20], xmm0
jmp 0x14002868e
mov byte [rcx + 0x98], dil
mov edx, 2
comiss xmm2, xmm1
mov eax, 0x90
mov dword [rax + r8], edx
jbe 0x1400286b4
cvttss2si eax, xmm2
mov dword [rcx + 0x94], edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rcx + 0x24], xmm0
jmp 0x1400286c5
mov dword [rcx + 0x94], 2
mov byte [rcx + 0x98], dil
xor edx, edx
lea rcx, str.scene
mov r8d, 0xc0201
call fcn.14000c3c0
mov eax, dword [0x14003e514]
lea r9, [0x14003e2a0]
movss xmm0, dword [0x1400389ac]
cdq
sub eax, edx
movd ecx, xmm0
sar eax, 1
lea r8d, [rax - 0x190]
mov eax, dword [0x14003e510]
cdq
sub eax, edx
sar eax, 1
mov edx, eax
lea rax, str.denwold
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
call fcn.1400276f0
call fcn.140003240
mov rcx, qword [0x14003ef20]
xor r9d, r9d
mov rax, qword [rcx + 0x19f8]
mov byte [rax + 0x7c], 1
mov rax, qword [rcx + 0x19f8]
mov rcx, qword [rax + 0x2a0]
mov rax, qword [rcx + 0x38]
movss xmm1, dword [rax + 0x24]
movss xmm0, dword [rax + 0x20]
movss xmm2, dword [rax + 0x1c]
unpcklps xmm0, xmm1
movss xmm1, dword [rax + 0x18]
movq r8, xmm0
unpcklps xmm1, xmm2
movq rdx, xmm1
call fcn.14001d480
call fcn.14000f1e0
mov r8, qword [0x14003ef20]
lea r11, [0x14002b8e0]
mov rcx, qword [r8 + 0x1a80]
movsxd rax, dword [r8 + 0x1a78]
lea rdx, [rax + rax*4]
movsxd rax, dword [rcx + rdx*4 - 0x14]
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
add rax, 0x15f
add rax, rax
movups xmmword [r8 + rax*8], xmm0
dec dword [r8 + 0x1a78]
movsxd rax, dword [r8 + 0x1a88]
mov rdx, qword [r8 + 0x1a90]
lea rcx, [rax + rax*2]
movsxd rax, dword [rdx + rcx*4 - 0xc]
lea rax, [rax + rax*2]
cmp dword [r11 + rax*4], 4
mov r9d, dword [r11 + rax*4 + 8]
jne 0x14002881b
mov eax, dword [r11 + rax*4 + 4]
cmp eax, 1
jne 0x1400287fe
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r9 + r8 + 0x1550], eax
jmp 0x14002881b
cmp eax, 2
jne 0x14002881b
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r9 + r8 + 0x1550], eax
mov eax, dword [rdx + rcx*4 - 4]
mov dword [r9 + r8 + 0x1554], eax
movsxd rcx, dword [r8 + 0x1a88]
lea eax, [rcx - 1]
mov dword [r8 + 0x1a88], eax
lea rax, [rcx - 2]
mov rdx, qword [r8 + 0x1a90]
lea rcx, [rax + rax*2]
movsxd rax, dword [rdx + rcx*4]
lea r10, [rax + rax*2]
cmp dword [r11 + r10*4], 4
mov r9d, dword [r11 + r10*4 + 8]
jne 0x140028884
mov eax, dword [r11 + r10*4 + 4]
cmp eax, 1
jne 0x140028867
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r9 + r8 + 0x1550], eax
jmp 0x140028884
cmp eax, 2
jne 0x140028884
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r9 + r8 + 0x1550], eax
mov eax, dword [rdx + rcx*4 + 8]
mov dword [r9 + r8 + 0x1554], eax
dec dword [r8 + 0x1a88]
call fcn.14000a430
mov rcx, qword [0x14003ef70]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x14003ef70]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x14003ef70]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x14003ef70]
mov r9d, 1
movss xmm0, dword [0x140038904]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x14003ef70]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14002894a
call fcn.14000a8e0
mov rcx, qword [0x14003ef20]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140023c40
mov rcx, qword [0x14003ef70]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x14003ef70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140028a0c
mov rcx, qword [0x14003ef70]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140028a0c
cmp qword [0x14003f008], rdi
je 0x1400289f0
mov rcx, qword [0x14003f010]
test rcx, rcx
je 0x1400289ac
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14003f010], rdi
mov rcx, qword [0x14003f000]
test rcx, rcx
je 0x1400289c5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14003f000], rdi
mov rcx, qword [0x14003eff8]
mov rbx, qword [0x14003ef20]
test rcx, rcx
je 0x1400289de
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14003eff8], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x14003ef70]
lea rdx, [0x14003ef30]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140024520
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140028af0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret