Function at 0x140017220
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x140103040]
xor rax, rsp
mov qword [rsp + 0x88], rax
cmp byte [0x1401034a1], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov rsi, r8
mov rdi, rdx
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x38], r9
movups xmmword [rsp + 0x68], xmm0
je 0x14001749f
mov qword [rsp + 0x90], rbx
nop
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400172d3
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rsp + 0x50], 0x12
jne 0x1400172b4
mov byte [0x1401034a1], 0
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140017290
cmp byte [0x1401034a1], 0
je 0x140017497
mov rax, qword [0x140107220]
test rax, rax
je 0x1400172f5
mov rcx, qword [rax + 0xa0]
jmp 0x1400172f7
xor ecx, ecx
cmp qword [rcx + 0x48], 0
jne 0x140017303
call fcn.140064e30
call fcn.140066060
call fcn.14003a5d0
cmp dword [0x1401075e8], 0
jbe 0x14001741f
call fcn.1400045c0
lea rcx, [0x1401073a0]
call fcn.14000bf60
mov ecx, 0x70
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140017348
cmp byte [0x140107388], 0
sete byte [0x140107388]
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140017365
cmp byte [0x140107381], 0
sete byte [0x140107381]
mov ecx, 0x72
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140017390
cmp byte [0x14010349f], 0
sete byte [0x14010349f]
cmp byte [0x1401034a3], 0
sete byte [0x1401034a3]
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400173ad
cmp byte [0x140107380], 0
sete byte [0x140107380]
call fcn.140016570
call fcn.140011e60
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.140022460
mov r8d, dword [0x1401075e8]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140017418
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rbx
test eax, eax
je 0x140017412
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], 0x103
sete al
test al, al
jne 0x14001741f
jmp 0x140017418
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x1401034a1], 0
call fcn.14003c650
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
xor r9d, r9d
xorps xmm0, xmm0
mov rcx, rdi
movups xmmword [rsp + 0x78], xmm0
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rax, qword [rdi]
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [rax + 0x190]
mov rax, qword [0x140107220]
mov rcx, qword [rax + 0x4bd8]
mov rax, qword [rcx]
xor ecx, ecx
add rax, 0x50
cmp byte [rax], cl
cmovne rcx, rax
call fcn.1400643a0
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x40]
cmp byte [0x1401034a1], 0
jne 0x140017270
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008a5e0
add rsp, 0x98
pop rdi
pop rsi
ret