Function at 0x140049a60
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1400e9080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xorps xmm0, xmm0
movups xmmword [0x140116940], xmm0
movups xmmword [0x140116950], xmm0
movups xmmword [0x140116960], xmm0
call fcn.140040870
xor esi, esi
cmp dword [0x140116948], 0x12
je 0x14004a110
lea r14, [rbp + 0x5f]
movabs r15, 0xff00ff00ff00ff00
movss xmm6, dword [0x1400d6894]
nop dword [rax]
nop word [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x140116980]
lea rcx, [0x140116940]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140049b20
lea rcx, [0x140116940]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x140116940]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x140116920]
cmp rax, rcx
jne 0x140049b6d
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [0x140116980]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140116920]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 0x21], rsi
lea rdx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rbp - 0x21]
mov rcx, qword [0x140116920]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rbp - 0x21]
mov dword [rbp - 0x11], eax
mov eax, dword [rbp - 0x1d]
mov dword [rbp - 0xd], eax
mov rbx, qword [0x1401168b0]
mov rax, qword [0x140116920]
mov qword [rbx + 0x108], rax
mov dword [rbx + 0x18], 0x3c888889
lea rcx, [rbp + 0x1f]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp + 0x1f]
sub eax, dword [rbp - 0x21]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x118], xmm0
mov eax, dword [rbp + 0x23]
sub eax, dword [rbp - 0x1d]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x11c], xmm0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140049c27
mov byte [rbx + 0x120], 1
mov byte [rbx + 0x430], 1
mov eax, dword [rbx + 0x118]
mov dword [rbx + 0x3dc], eax
mov eax, dword [rbx + 0x11c]
mov dword [rbx + 0x3e0], eax
jmp 0x140049c2e
mov byte [rbx + 0x120], 0
mov ecx, dword [rbp - 5]
mov edx, dword [rbp - 9]
mov eax, dword [0x140119278]
cmp dword [rbp - 0x11], eax
jne 0x140049c5a
cmp edx, dword [0x140119280]
jne 0x140049c5a
mov eax, dword [0x14011927c]
cmp dword [rbp - 0xd], eax
jne 0x140049c5a
cmp ecx, dword [0x140119284]
je 0x140049cbb
movups xmm0, xmmword [rbp - 0x11]
movups xmmword [0x140119278], xmm0
mov dword [0x140116aa4], edx
mov dword [0x140116aa0], ecx
mov dword [0x140116a10], edx
mov dword [0x140116a14], ecx
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, dword [rbp - 0x1d]
mov r8d, dword [rbp - 0x21]
xor edx, edx
mov rcx, qword [0x140116980]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
lea rdx, [0x140116a10]
call qword [rax + 0x80]
cmp qword [0x140116d98], 0
jne 0x140049cca
call fcn.140025bf0
mov rdi, qword [0x1401168b0]
lea rdx, [rbp - 0x31]
mov rcx, qword [0x140116db8]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x25]
sub eax, dword [rbp - 0x2d]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rbp - 0x29]
sub eax, dword [rbp - 0x31]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm0
movss dword [rdi + 0x14], xmm1
lea rcx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
sub rax, qword [0x140116dc0]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140116dc8]
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140116dc0], rcx
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x130], al
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x131], al
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x132], al
mov byte [rdi + 0x133], 0
mov rcx, qword [0x1401168b0]
lea rbx, [rcx + 0x118]
cmp byte [rcx + 0x3af], 0
je 0x140049dd1
cvttss2si eax, dword [rbx]
mov dword [rbp - 0x19], eax
cvttss2si eax, dword [rcx + 0x11c]
mov dword [rbp - 0x15], eax
lea rdx, [rbp - 0x19]
mov rcx, qword [0x140116db8]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x15]
mov ecx, dword [rbp - 0x19]
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 [0x140116db8]
jne 0x140049e29
lea rcx, [rbp - 0x39]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140049e29
lea rdx, [rbp - 0x39]
mov rcx, qword [0x140116db8]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140049e29
movd xmm1, dword [rbp - 0x35]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rbp - 0x39]
cvtdq2ps xmm0, xmm0
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], 0
je 0x140049e39
mov eax, 0xffffffff
jmp 0x140049e46
mov rax, qword [0x1401168b0]
mov eax, dword [rax + 0x1d70]
cmp dword [reloc.WS2_32.dll_htonl], eax
je 0x140049e59
mov dword [reloc.WS2_32.dll_htonl], eax
call fcn.140025e70
call fcn.1400066b0
call fcn.1400454a0
mov ecx, dword [reloc.WS2_32.dll_bind]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r14
mov rbx, qword [r14]
mov rax, rbx
xor rax, r15
mov qword [rbp - 1], rax
mov qword [r14], rsi
mov rax, qword [0x1401168e0]
call rax
nop
mov qword [r14], rbx
test ax, ax
je 0x140049ee1
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140049ee1
mov eax, dword [0x140116e50]
test eax, eax
jne 0x140049ebd
mov ecx, WSASetLastError
call fcn.140044430
mov eax, dword [0x140116e50]
cmp eax, 1
jne 0x140049ed2
mov ecx, 0x43
call fcn.140044430
mov eax, dword [0x140116e50]
cmp eax, 2
jne 0x140049ee1
mov ecx, Ordinal_41
call fcn.140044430
mov ecx, dword [reloc.WS2_32.dll_bind]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r14
mov rbx, qword [r14]
mov rax, rbx
xor rax, r15
mov qword [rbp - 1], rax
mov qword [r14], rsi
mov rax, qword [0x1401168e0]
call rax
nop
mov qword [r14], rbx
test ax, ax
je 0x140049f80
cmp byte [0x140117f65], 0
je 0x140049f80
mov rbx, qword [0x1401169c0]
mov r8, qword [0x1401169e8]
lea rdx, [rbp - 1]
call fcn.140038fe0
nop
mov rdx, rbx
mov rcx, rax
call fcn.140049250
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x140049f80
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049f7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a242
call fcn.1400bcba0
call fcn.140042bb0
call fcn.1400077b0
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 7
call qword [rax + 0x1c8]
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, reloc.WLDAP32.dll_Ordinal_27
call qword [rax + 0x1c8]
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
mov dword [rsp + 0x30], esi
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], esi
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004a040
call fcn.140007c60
mov rax, qword [0x1401168b0]
add rax, 0x1c70
mov rcx, rsi
cmp byte [rax], sil
cmovne rcx, rax
call fcn.1400252f0
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14004a103
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x14004a103
cmp qword [0x140116da8], 0
je 0x14004a0e7
mov rcx, qword [0x140116db0]
test rcx, rcx
je 0x14004a0a3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140116db0], rsi
mov rcx, qword [0x140116da0]
test rcx, rcx
je 0x14004a0bc
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140116da0], rsi
mov rbx, qword [0x1401168b0]
mov rcx, qword [0x140116d98]
test rcx, rcx
je 0x14004a0d5
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140116d98], rsi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rsi
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
lea rdx, [0x140116a10]
call qword [rax + 0x80]
call fcn.140025bf0
cmp dword [0x140116948], 0x12
jne 0x140049ae0
cmp qword [0x140116da8], 0
je 0x14004a177
mov rcx, qword [0x140116db0]
test rcx, rcx
je 0x14004a133
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140116db0], rsi
mov rcx, qword [0x140116da0]
test rcx, rcx
je 0x14004a14c
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140116da0], rsi
mov rbx, qword [0x1401168b0]
mov rcx, qword [0x140116d98]
test rcx, rcx
je 0x14004a165
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140116d98], rsi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rsi
mov qword [0x140116da8], rsi
mov qword [0x140116db8], rsi
mov rbx, qword [0x1401168b0]
mov rcx, rbx
call fcn.140006f40
cmp qword [0x1401168b0], rbx
jne 0x14004a1a4
mov qword [0x1401168b0], rsi
test rbx, rbx
je 0x14004a1cc
mov rcx, rbx
call fcn.140015520
mov rax, qword [0x1401168b0]
test rax, rax
je 0x14004a1c3
dec dword [rax + 0x3c8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140116a88]
test rcx, rcx
je 0x14004a1ee
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140116a88]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x140116990]
test rcx, rcx
je 0x14004a200
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x140116980]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [0x140116950]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400bc750
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3