Function at 0x140030170
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x68]
sub rsp, 0x130
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
mov rax, qword [0x14007a280]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, r9
mov qword [rsp + 0x48], r8
mov r13, rdx
mov qword [rsp + 0x50], rcx
mov rdi, rcx
call fcn.140009810
mov r14, rax
cmp byte [rax + 0x93], 0
jne 0x140030608
mov rsi, qword [0x14007a3c8]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call fcn.140009a30
movss xmm0, dword [0x140054168]
lea rcx, [rsp + 0x78]
mov r9b, 1
movss dword [rsp + 0x20], xmm0
xor r8d, r8d
mov rdx, rdi
mov r12d, eax
call fcn.140006490
movss xmm6, dword [rsi + 0x15b0]
addss xmm6, xmm6
addss xmm6, dword [rsp + 0x7c]
call fcn.1400060f0
movss xmm1, dword [rbx + 4]
lea rcx, [rbp - 0x70]
movaps xmm2, xmm0
movaps xmm3, xmm6
movss xmm0, dword [rbx]
unpcklps xmm0, xmm1
movq rdx, xmm0
call fcn.140005f70
lea r8, [rbp - 0x70]
lea rdx, [r14 + 0xd8]
lea rcx, [rsp + 0x60]
call fcn.140003860
movss xmm1, dword [rsp + 0x78]
lea rcx, [rsp + 0x58]
addss xmm1, dword [rsi + 0x15c4]
xorps xmm2, xmm2
mov rbx, rax
xorps xmm7, xmm7
call fcn.140003160
mov r8, rax
lea rdx, [r14 + 0xd8]
lea rcx, [rsp + 0x40]
call fcn.140003860
mov r8, rbx
lea rcx, [rsp + 0x68]
mov rdx, rax
call fcn.140003080
lea r8, [rsp + 0x70]
lea rdx, [r14 + 0xd8]
lea rcx, [rbp - 0x80]
call fcn.140003080
movss xmm1, dword [rsi + 0x15b0]
lea rcx, [rbp - 0x80]
call fcn.14000bd40
xor r9d, r9d
lea rcx, [rbp - 0x80]
xor r8d, r8d
mov edx, r12d
call fcn.14000bae0
test al, al
je 0x140030608
xor edx, edx
mov qword [rsp + 0x128], r15
cmp dword [rsi + 0x1c6c], r12d
mov rcx, r14
sete dl
call fcn.14002ff50
mov edx, r12d
lea rcx, [rsp + 0x68]
movzx edi, al
call fcn.14000bc00
test al, al
je 0x14003031f
mov ecx, r12d
call fcn.1400125d0
mov dword [rsi + 0x1fa8], 1
cmp byte [rsi + 0x420], 0
je 0x14003031f
mov al, 1
jmp 0x140030321
xor al, al
test dil, dil
jne 0x140030342
test al, al
jne 0x140030342
cmp byte [rsi + 0x420], al
je 0x140030388
cmp dword [rsi + 0x1c6c], r12d
jne 0x140030388
call fcn.140006f20
jmp 0x140030388
cmp dword [rsi + 0x1c6c], r12d
je 0x140030375
xor eax, eax
lea rcx, [rsi + 0x144]
mov dword [rsi + 0x130], eax
xor edx, edx
mov r8d, 0x200
mov byte [rsi + 0x134], al
call fcn.1400510f5
mov dword [r13], 0
mov rdx, r14
mov ecx, r12d
call fcn.140012180
mov rcx, r14
call fcn.1400092a0
mov r14d, dword [r13]
xor r15b, r15b
cmp dword [rsi + 0x1c6c], r12d
jne 0x140030487
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400303bb
mov r14d, 1
movzx r15d, r14b
jmp 0x140030464
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400303de
mov r14d, 2
mov r15b, 1
call fcn.140006f20
jmp 0x140030464
mov ecx, 4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400303fd
mov r14d, 4
mov r15b, 1
call fcn.140006f20
jmp 0x140030464
mov ecx, 5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14003041c
mov r14d, 5
mov r15b, 1
call fcn.140006f20
jmp 0x140030464
mov ecx, 6
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14003043b
mov r14d, 6
mov r15b, 1
call fcn.140006f20
jmp 0x140030464
mov ebx, 8
lea rdi, [rsi + 0x14c]
cmp byte [rdi], 0
je 0x140030457
mov r14d, ebx
mov r15b, 1
call fcn.140006f20
inc ebx
inc rdi
cmp ebx, 0xa5
jle 0x140030447
mov dl, 1
mov ecx, recvfrom
call fcn.14000b640
test al, al
je 0x140030483
mov dword [r13], 0
call fcn.140006f20
jmp 0x140030487
mov dword [r13], r14d
mov eax, dword [str.None]
xorps xmm0, xmm0
mov rcx, qword [rsp + 0x48]
mov dword [rbp - 0x50], eax
movzx eax, byte [0x140054010]
mov byte [rbp - 0x4c], al
xor eax, eax
mov qword [rbp - 0x1b], rax
mov word [rbp - 0x13], ax
mov byte [rbp - 0x11], al
movups xmmword [rbp - 0x4b], xmm0
movups xmmword [rbp - 0x3b], xmm0
movups xmmword [rbp - 0x2b], xmm0
movss xmm6, dword [rsi + 0x15b4]
call fcn.1400096b0
mov rdx, qword [rsp + 0x70]
mov r9b, 1
mov rcx, qword [rsp + 0x68]
mov r8d, eax
movss dword [rsp + 0x20], xmm6
call fcn.140010620
movsxd rax, dword [r13]
test eax, eax
je 0x140030504
cmp dword [rsi + 0x1c6c], r12d
je 0x14003050d
mov rdx, rax
lea rax, str.Unknown
mov rdx, qword [rax + rdx*8]
jmp 0x140030514
cmp dword [rsi + 0x1c6c], r12d
jne 0x14003051d
lea rdx, str._Press_a_key_
lea rcx, [rbp - 0x50]
call fcn.14002e210
movss xmm0, dword [rbp - 0x6c]
lea rcx, [rbp - 0x68]
movss xmm2, dword [rsp + 0x6c]
movss xmm3, dword [rbp - 0x70]
addss xmm0, xmm2
movss xmm1, dword [rsp + 0x68]
addss xmm3, xmm1
movss dword [rsp + 0x20], xmm0
call fcn.1400030e0
lea r8, [rsi + 0x15ac]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140003860
lea r8, [rsi + 0x15ac]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003830
lea r8, [rsi + 0x15ac]
mov rdi, rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140003860
lea rdx, [rbp - 0x68]
xor r9d, r9d
mov qword [rsp + 0x30], rdx
lea rcx, [rsi + 0x1608]
mov qword [rsp + 0x28], rcx
lea r8, [rbp - 0x50]
mov rcx, rax
mov qword [rsp + 0x20], 0
mov rdx, rdi
call fcn.140010ad0
movss xmm0, dword [rsp + 0x78]
comiss xmm0, xmm7
jbe 0x1400305fa
movss xmm2, dword [rsp + 0x6c]
lea rcx, [rsp + 0x40]
addss xmm2, dword [rsi + 0x15b0]
movss xmm1, dword [rbp - 0x80]
call fcn.140003160
mov rdx, qword [rsp + 0x50]
mov r9b, 1
xor r8d, r8d
mov rcx, qword [rax]
call fcn.140010a00
movzx eax, r15b
mov r15, qword [rsp + 0x128]
jmp 0x14003060a
xor al, al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14004f050
movaps xmm6, xmmword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0x100]
add rsp, 0x130
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret