Function at 0x140049040
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
mov rax, qword [0x140098040]
xor rax, rsp
mov qword [rbp + 7], rax
cmp qword [0x140099c28], 0
jne 0x140049098
cmp qword [0x140099c38], 0
je 0x140049098
call fcn.14003b0a0
mov rsi, qword [0x1400994d8]
lea rdx, [rbp - 0x51]
mov rcx, qword [0x140099c48]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x45]
sub eax, dword [rbp - 0x4d]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rbp - 0x49]
sub eax, dword [rbp - 0x51]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsi + 0x10], xmm0
movss dword [rsi + 0x14], xmm1
lea rcx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
sub rax, qword [0x140099c50]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140099c58]
divss xmm1, xmm0
movss dword [rsi + 0x18], xmm1
mov qword [0x140099c50], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rsi + 0x130], al
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rsi + 0x131], al
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rsi + 0x132], al
mov byte [rsi + 0x133], 0
mov rcx, qword [0x1400994d8]
lea rbx, [rcx + 0x118]
cmp byte [rcx + 0x3af], 0
je 0x14004919f
cvttss2si eax, dword [rbx]
mov dword [rbp - 0x39], eax
cvttss2si eax, dword [rcx + 0x11c]
mov dword [rbp - 0x35], eax
lea rdx, [rbp - 0x39]
mov rcx, qword [0x140099c48]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x35]
mov ecx, dword [rbp - 0x39]
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 [0x140099c48]
jne 0x1400491f7
lea rcx, [rbp - 0x59]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400491f7
lea rdx, [rbp - 0x59]
mov rcx, qword [0x140099c48]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400491f7
movd xmm1, dword [rbp - 0x55]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rbp - 0x59]
cvtdq2ps xmm0, xmm0
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
mov rdi, 0xffffffffffffffff
cmp byte [rsi + 0xd0], 0
je 0x14004920b
mov eax, edi
jmp 0x140049218
mov rax, qword [0x1400994d8]
mov eax, dword [rax + 0x1d70]
cmp dword [0x1400986b8], eax
je 0x14004922b
mov dword [0x1400986b8], eax
call fcn.14003b260
call fcn.14001edc0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r14d, r14d
cmp rax, qword [0x140098358]
jne 0x140049278
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [0x140098350]
call qword [sym.imp.USER32.dll_SetWindowPos]
xorps xmm7, xmm7
xorps xmm1, xmm1
mov ecx, 3
call fcn.140025470
mov rbx, qword [0x1400994d8]
lea rcx, [rbx + 0x1a88]
movss xmm1, dword [rbx + 0x1554]
movss xmm0, dword [rbx + 0x1558]
mov dword [rbp - 0x31], 1
movss dword [rbp - 0x2d], xmm1
movss dword [rbp - 0x29], xmm0
lea rdx, [rbp - 0x31]
call fcn.14002b820
mov qword [rbx + 0x1554], r14
mov rbx, qword [0x1400994d8]
mov qword [rbx + 0x1ae4], r14
mov qword [rbx + 0x1aec], r14
mov dword [rbx + 0x1ac8], 1
xorps xmm6, xmm6
mov dword [rbp - 0x51], 2
movups xmm0, xmmword [rbx + 0x1610]
movups xmmword [rbp - 0x4d], xmm0
lea rcx, [rbx + 0x1a78]
lea rdx, [rbp - 0x51]
call fcn.14002b910
movups xmmword [rbx + 0x1610], xmm6
mov rax, qword [0x1400994d8]
movss xmm1, dword [rax + 0x14]
movss xmm0, dword [rax + 0x10]
mov rcx, qword [rax + 0x19f8]
mov eax, dword [rcx + 0xb0]
test al, 1
je 0x14004939e
and eax, 0xfffffff1
mov dword [rcx + 0xb0], eax
mov r8, rcx
comiss xmm0, xmm7
jbe 0x14004935a
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rcx + 0x20], xmm0
mov edx, r14d
jmp 0x140049366
mov byte [rcx + 0x98], r14b
mov edx, 2
mov eax, 0x90
mov dword [r8 + rax], edx
comiss xmm1, xmm7
jbe 0x14004938d
mov dword [rcx + 0x94], r14d
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rcx + 0x24], xmm0
jmp 0x14004939e
mov dword [rcx + 0x94], 2
mov byte [rcx + 0x98], r14b
xor edx, edx
mov r8d, 0xc0201
lea rcx, str.scene
call fcn.1400220a0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14009a0ac], eax
jle 0x140049409
lea rcx, [0x14009a0ac]
call fcn.14004a06c
cmp dword [0x14009a0ac], edi
jne 0x140049409
mov rax, qword [0x1400994d8]
movsd xmm0, qword [rax + 0x1988]
cvtpd2ps xmm0, xmm0
movss dword [0x14009a0a8], xmm0
lea rcx, [0x14009a0ac]
call fcn.14004a000
call fcn.1400172c0
mov ecx, dword [0x14009a080]
inc ecx
mov dword [0x14009a080], ecx
mov rax, qword [0x1400994d8]
movss xmm1, dword [rax + 0x18]
addss xmm1, dword [0x14009a084]
movss dword [0x14009a084], xmm1
movss xmm8, dword [0x14008da64]
comiss xmm1, xmm8
jb 0x140049468
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [0x14009a08c], xmm0
mov dword [0x14009a080], r14d
mov dword [0x14009a084], r14d
inc dword [0x14009a088]
movsd xmm1, qword [rax + 0x1988]
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
subss xmm0, dword [0x14009a0a8]
comiss xmm0, xmm8
jb 0x14004949a
mov dword [0x14009a088], r14d
movss dword [0x14009a0a8], xmm1
lea rbx, [rax + 0x1cc8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov ecx, 0x30
call fcn.140049aa0
mov rdx, rax
mov qword [rbp - 0x21], rax
movdqa xmm0, xmmword [0x14008dda0]
movdqu xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [str.jLproject__discord_dev:_skinardjjk]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14008d9e8]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x14008d9f8]
mov word [rax + 0x20], cx
movzx eax, byte [0x14008d9fa]
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], r14b
mov rax, qword [0x1400994d8]
mov rsi, qword [rax + 0x18f0]
movss xmm6, dword [rax + 0x18f8]
test rdx, rdx
jne 0x14004951c
xorps xmm6, xmm6
jmp 0x140049570
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdx
movss xmm0, dword [0x14008db68]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x14008db5c]
movaps xmm2, xmm6
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.140039170
divss xmm6, dword [rsi]
movss xmm0, dword [rbp - 0x31]
comiss xmm0, xmm7
jbe 0x14004955d
subss xmm0, xmm6
addss xmm0, dword [0x14008da60]
cvttss2si eax, xmm0
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, dword [0x14008dad8]
movss xmm9, dword [0x14008dac4]
addss xmm6, xmm9
movss dword [rbp - 0x59], xmm6
mov dword [rbp - 0x55], 0x40c00000
mov dword [rbp - 0x39], 0x40c00000
mov dword [rbp - 0x35], 0x40800000
mov dword [rsp + 0x28], 0xf
movss dword [rsp + 0x20], xmm7
mov r9d, 0xff323232
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.140036200
movss dword [rbp - 0x59], xmm6
mov dword [rbp - 0x55], 0x41c80000
mov dword [rbp - 0x39], 0x40c00000
mov dword [rbp - 0x35], 0x40c00000
mov dword [rsp + 0x28], 0xf
movss dword [rsp + 0x20], xmm7
mov r9d, 0xff1e1e1e
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.140036200
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova r8, qword [rbp - 0x21]
inc rdi
cmp byte [r8 + rdi], 0
jne 0x140049610
add rdi, r8
cmp r8, rdi
je 0x140049682
mov rax, qword [rbx + 0x38]
movsxd rdx, dword [rbx + 0x60]
add rdx, rdx
mov rcx, qword [rbx + 0x68]
movups xmm0, xmmword [rcx + rdx*8 - 0x10]
movups xmmword [rbp - 0x51], xmm0
mov byte [rsp + 0x48], 0
movss dword [rsp + 0x40], xmm7
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r8
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0xffc8c8c8
movss xmm0, dword [0x14008dae0]
unpcklps xmm0, xmm9
movq r9, xmm0
movss xmm2, dword [rax + 0x10]
mov rdx, rbx
mov rcx, qword [rax + 8]
call fcn.140039390
mov rcx, qword [0x1400994d8]
mov rax, qword [rcx + 0x19f8]
mov byte [rax + 0x7c], 1
mov rcx, qword [rcx + 0x19f8]
mov rcx, qword [rcx + 0x2a0]
call fcn.140033ca0
call fcn.140025000
mov r8, qword [0x1400994d8]
movsxd rax, dword [r8 + 0x1a78]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1a80]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, 0x15f
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8], xmm0
dec dword [r8 + 0x1a78]
movsxd rax, dword [r8 + 0x1a88]
lea rcx, [rax + rax*2]
mov rdx, qword [r8 + 0x1a90]
movsxd rax, dword [rdx + rcx*4 - 0xc]
lea rax, [rax + rax*2]
lea r11, [0x140088e60]
mov r9d, dword [r11 + rax*4 + 8]
cmp dword [r11 + rax*4], 4
jne 0x140049747
mov eax, dword [r11 + rax*4 + 4]
cmp eax, 1
jne 0x14004972a
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r9 + r8 + 0x1550], eax
jmp 0x140049747
cmp eax, 2
jne 0x140049747
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]
lea rcx, [rax + rax*2]
mov rdx, qword [r8 + 0x1a90]
movsxd rax, dword [rdx + rcx*4]
lea r10, [rax + rax*2]
mov r9d, dword [r11 + r10*4 + 8]
cmp dword [r11 + r10*4], 4
jne 0x1400497b0
mov eax, dword [r11 + r10*4 + 4]
cmp eax, 1
jne 0x140049793
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r9 + r8 + 0x1550], eax
jmp 0x1400497b0
cmp eax, 2
jne 0x1400497b0
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.14001f960
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 7
call qword [rax + 0x1c8]
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0x1b
call qword [rax + 0x1c8]
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r14d
movss dword [rsp + 0x28], xmm8
mov dword [rsp + 0x20], r14d
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140049873
call fcn.14001fe10
mov rcx, qword [0x1400994d8]
add rcx, 0x1c70
cmp byte [rcx], 0
cmove rcx, r14
call fcn.14003a7a0
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140049941
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140049941
cmp qword [0x140099c38], 0
je 0x14004991a
mov rcx, qword [0x140099c40]
test rcx, rcx
je 0x1400498d6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140099c40], r14
mov rcx, qword [0x140099c30]
test rcx, rcx
je 0x1400498ef
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140099c30], r14
mov rbx, qword [0x1400994d8]
mov rcx, qword [0x140099c28]
test rcx, rcx
je 0x140049908
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140099c28], r14
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], r14
mov rcx, qword [0x140099530]
mov rax, qword [rcx]
lea rdx, [0x1400994f0]
call qword [rax + 0x80]
cmp qword [0x140099c38], 0
je 0x140049941
call fcn.14003b0a0
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14004997f
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004997a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004997a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140049d24
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140049a80
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop rbp
ret