Function at 0x140311e90
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x14057bbc0]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov eax, dword [0x140580cc0]
mov rcx, qword [rsp + 0x180]
add rax, qword [rcx + 0x48]
lea r8, [0x1405880b0]
mov rdx, rax
lea rcx, [0x14057e698]
call fcn.1400931d0
movzx eax, al
test eax, eax
jne 0x140311ee4
jmp 0x140312419
cmp dword [0x1405880b0], 0xffffffff
jne 0x140311ef2
jmp 0x140312419
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x32]
call fcn.14001ec90
mov qword [rsp + 0x58], rax
mov eax, dword [0x1405880b0]
shr eax, 9
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x50]
mov r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xe0]
call fcn.140020c10
lea rcx, [rsp + 0xb8]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0xb8]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x60]
call fcn.140098d60
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea rcx, [0x14057e8c0]
call fcn.140113410
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
lea rcx, [0x14057e698]
call fcn.1400b6b80
mov qword [0x1405880b8], rax
cmp qword [0x1405880b8], 0
jne 0x140311fe9
jmp 0x140312419
mov eax, dword [0x1405880b0]
and eax, 0x1ff
imul eax, eax, 0x78
mov eax, eax
mov rcx, qword [0x1405880b8]
add rcx, rax
mov rax, rcx
lea r8, [0x1405880c0]
mov rdx, rax
lea rcx, [0x14057e698]
call fcn.140068ce0
movzx eax, al
test eax, eax
jne 0x140312028
jmp 0x140312419
lea rdx, [0x1405880c0]
lea rcx, [0x1405880d0]
call fcn.1400a4340
movzx eax, al
test eax, eax
jne 0x140312047
jmp 0x140312419
movzx eax, byte [0x14058848c]
test eax, eax
jne 0x140312070
mov rax, qword [rsp + 0x180]
movss xmm0, dword [rax + 0x104]
comiss xmm0, dword [0x14045c574]
jbe 0x140312070
jmp 0x140312419
movzx eax, byte [0x14057f441]
test eax, eax
je 0x1403120b6
mov eax, dword [0x140580c80]
mov rcx, qword [rsp + 0x180]
add rax, qword [rcx + 0x48]
lea r8, [rsp + 0x108]
mov rdx, rax
lea rcx, [0x14057e698]
call fcn.140093240
nop
movzx eax, byte [rsp + 0x108]
test eax, eax
jne 0x1403120b6
jmp 0x140312419
movzx eax, byte [reloc.WS2_32.dll_accept]
test eax, eax
je 0x1403120ff
mov rax, qword [rsp + 0x180]
mov ecx, dword [0x1405881c0]
cmp dword [rax + 0xf0], ecx
je 0x1403120ea
cmp dword [0x1405881b0], 0
jle 0x1403120ea
mov dword [rsp + 0x34], 1
jmp 0x1403120f2
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [0x1405880b4], al
jmp 0x140312125
cmp dword [0x1405881b0], 0
jle 0x140312112
mov dword [rsp + 0x38], 1
jmp 0x14031211a
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [0x1405880b4], al
movzx eax, byte [0x1405880b4]
test eax, eax
jne 0x140312135
jmp 0x140312419
mov eax, dword [0x140580c74]
mov rcx, qword [rsp + 0x180]
add rax, qword [rcx + 0x48]
lea r8, [rsp + 0x140]
mov rdx, rax
lea rcx, [0x14057e698]
call fcn.140068ce0
mov eax, dword [0x140580f78]
mov rcx, qword [rsp + 0x140]
add rcx, rax
mov rax, rcx
mov ecx, dword [0x140580f74]
add rax, rcx
mov ecx, dword [0x140580d40]
add rax, rcx
lea r8, [rsp + 0x10c]
mov rdx, rax
lea rcx, [0x14057e698]
call fcn.1400b5d70
movzx eax, word [rsp + 0x10c]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x118]
call fcn.14006a220
mov eax, dword [0x140580c8c]
mov rcx, qword [rsp + 0x180]
add rax, qword [rcx + 0x48]
lea r8, [rsp + 0x118]
mov rdx, rax
lea rcx, [0x14057e698]
call fcn.1400b5e50
lea rcx, [rsp + 0x128]
call fcn.14006a220
mov eax, dword [0x140580c8c]
mov rcx, qword [0x140588118]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x128]
mov rdx, rax
lea rcx, [0x14057e698]
call fcn.1400b5e50
movss xmm0, dword [rsp + 0x118]
subss xmm0, dword [rsp + 0x128]
mov edx, 2
call fcn.1400979a0
movsd qword [rsp + 0x88], xmm0
movss xmm1, dword [rsp + 0x11c]
subss xmm1, dword [rsp + 0x12c]
mov edx, 2
movaps xmm0, xmm1
call fcn.1400979a0
movsd xmm1, qword [rsp + 0x88]
addsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0x90], xmm0
movss xmm1, dword [rsp + 0x120]
subss xmm1, dword [rsp + 0x130]
mov edx, 2
movaps xmm0, xmm1
call fcn.1400979a0
movsd xmm1, qword [rsp + 0x90]
addsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.14040fd1c
mulsd xmm0, qword [0x1404db790]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x3c], xmm0
movss xmm1, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140312620
mov dword [rsp + 0x110], eax
mov eax, Ordinal_41
mov eax, eax
mov ecx, dword [0x140588f28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140588498], eax
jle 0x140312320
lea rcx, [0x140588498]
call fcn.140382e34
cmp dword [0x140588498], 0xffffffff
jne 0x140312320
lea rcx, [0x140588490]
call fcn.1400a2c90
lea rcx, [0x140588498]
call fcn.140382dc8
nop
lea rcx, [rsp + 0x138]
call fcn.1400a2c90
nop
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xa8]
call fcn.1400925c0
mov qword [rsp + 0x98], rax
lea r8, [0x140588490]
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0xb0]
call fcn.1400928a0
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140092ce0
movzx eax, al
test eax, eax
je 0x140312419
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jge 0x1403123a6
mov byte [rsp + 0x30], 1
jmp 0x1403123ab
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x14031240a
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
lea rdx, [0x140311e00]
lea rcx, [rsp + 0x148]
call fcn.140323d50
nop
lea rcx, [rsp + 0x148]
call fcn.1403240d0
nop
lea rcx, [rsp + 0x148]
call fcn.140324040
nop
mov rax, qword [rsp + 0x138]
mov qword [0x140588490], rax
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140382d40
add rsp, 0x168
pop rdi
pop rsi
ret