Function at 0x140003840
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [rsp + 0x180]
movzx eax, byte [rax + 0x32]
test eax, eax
je 0x140003cae
cmp dword [rsp + 0x188], 8
jne 0x140003935
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rcx, rax
call fcn.140016cb0
test rax, rax
jbe 0x1400038a9
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rcx, rax
call fcn.140016ce0
mov rax, qword [rsp + 0x180]
movzx eax, byte [rax + 0x30]
test eax, eax
je 0x140003930
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rcx, rax
call fcn.140016c80
movzx eax, al
test eax, eax
jne 0x1400038f6
mov rax, qword [rsp + 0x180]
add rax, 0x38
lea rdx, [0x1400d73b4]
mov rcx, rax
call fcn.140019100
movzx eax, al
test eax, eax
je 0x14000390d
mov rax, qword [rsp + 0x180]
movss xmm0, dword [0x1400d8690]
movss dword [rax + 0x5c], xmm0
jmp 0x140003930
mov rax, qword [rsp + 0x180]
add rax, 0x38
xor edx, edx
mov rcx, rax
call fcn.1400020f0
mov rax, qword [rsp + 0x180]
movss dword [rax + 0x5c], xmm0
jmp 0x140003cae
mov rax, qword [rsp + 0x180]
movzx eax, byte [rax + 0x30]
test eax, eax
jne 0x140003a6b
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jne 0x14000397c
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jne 0x14000397c
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x1400039f2
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov r8d, dword [rsp + 0x188]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x180]
call fcn.140003cc0
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x90]
call fcn.140003fa0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140016e40
nop
lea rcx, [rsp + 0x90]
call fcn.140016f40
jmp 0x140003a66
lea rax, [rsp + 0x150]
mov qword [rsp + 0x40], rax
mov r8d, dword [rsp + 0x188]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x180]
call fcn.140003cc0
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call fcn.140003f00
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.140016e40
nop
lea rcx, [rsp + 0xb0]
call fcn.140016f40
jmp 0x140003c1a
cmp dword [rsp + 0x188], 0xbd
jne 0x140003ab3
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rcx, rax
call fcn.140016c80
movzx eax, al
test eax, eax
je 0x140003ab3
mov rax, qword [rsp + 0x180]
add rax, 0x38
lea rdx, [0x1400d73b4]
mov rcx, rax
call fcn.140016e10
jmp 0x140003c1a
mov rax, qword [rsp + 0x180]
movzx eax, byte [rax + 0x31]
test eax, eax
je 0x140003b1b
cmp dword [rsp + 0x188], 0xbe
jne 0x140003b1b
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rdx, [0x1400d73b8]
mov rcx, qword [rsp + 0x60]
call fcn.140016c10
cmp rax, 0xffffffffffffffff
jne 0x140003b16
mov rax, qword [rsp + 0x180]
add rax, 0x38
lea rdx, [0x1400d73b8]
mov rcx, rax
call fcn.140016e10
jmp 0x140003c1a
cmp dword [rsp + 0x188], 0x30
jl 0x140003c1a
cmp dword [rsp + 0x188], 0x39
jg 0x140003c1a
mov eax, dword [rsp + 0x188]
sub eax, 0x30
mov dword [rsp + 0x188], eax
mov edx, dword [rsp + 0x188]
lea rcx, [rsp + 0xf0]
call fcn.1400021b0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov r8, qword [rsp + 0x70]
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140019130
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.140016f70
lea rcx, [rsp + 0xd0]
call fcn.140016f40
nop
lea rcx, [rsp + 0xf0]
call fcn.140016f40
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rcx, rax
call fcn.140016c80
movzx eax, al
test eax, eax
je 0x140003bf7
mov rax, qword [rsp + 0x180]
movss xmm0, dword [0x1400d8690]
movss dword [rax + 0x5c], xmm0
jmp 0x140003c1a
mov rax, qword [rsp + 0x180]
add rax, 0x38
xor edx, edx
mov rcx, rax
call fcn.1400020f0
mov rax, qword [rsp + 0x180]
movss dword [rax + 0x5c], xmm0
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rcx, rax
call fcn.140016cb0
mov rcx, qword [rsp + 0x180]
movsxd rcx, dword [rcx + 0x58]
cmp rax, rcx
jbe 0x140003cae
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x180]
mov eax, dword [rax + 0x58]
inc eax
cdqe
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x80]
call fcn.140016bb0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x180]
add rax, 0x38
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.140016f70
lea rcx, [rsp + 0x110]
call fcn.140016f40
add rsp, 0x178
ret