Function at 0x140041790
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov rax, qword [0x140450200]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15, r9
mov qword [rbp - 9], r8
mov ebx, edx
mov r13, rcx
call fcn.140018f00
test rax, rax
je case.0x140041bf5.527
call fcn.140019440
mov r12, rax
call fcn.140018f00
xor edi, edi
test rax, rax
je 0x1400417f3
call fcn.140019440
mov rsi, qword [rax + 0x88]
jmp 0x1400417f6
mov rsi, rdi
cmp ebx, 0x200
ja 0x140041bcb
je case.0x14004182f.160
lea eax, [rbx - 7]
cmp eax, 0xfe
ja case.0x140041bf5.527
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x41de0]
mov ecx, dword [rdx + rax*4 + 0x41dc8]
add rcx, rdx
jmp rcx
lea eax, [rbx - 0x100]
mov esi, 0x100
test eax, 0xfffffffb
sete dil
cmp qword [rbp - 9], rsi
jae case.0x140041bf5.527
call fcn.140019440
mov ecx, reloc.WS2_32.dll_recvfrom
mov rbx, rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x1000
and al, 1
mov rcx, rbx
movzx r8d, al
call fcn.14000d620
mov ecx, recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x2000
and al, 1
mov rcx, rbx
movzx r8d, al
call fcn.14000d620
mov ecx, sendto
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x4000
and al, 1
mov rcx, rbx
movzx r8d, al
call fcn.14000d620
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edx, 0x8000
and al, 1
mov rcx, rbx
movzx r8d, al
call fcn.14000d620
mov rbx, qword [rbp - 9]
cmp rbx, 0xd
jne 0x1400418f7
mov rax, r15
shr rax, 0x10
test si, ax
mov eax, 0x10d
cmovne ebx, eax
movsxd rcx, ebx
call fcn.140041240
shr r15, 0x10
movzx esi, r15b
test eax, eax
je 0x14004191c
mov r9d, esi
mov r8d, ebx
movzx edx, dil
mov ecx, eax
call fcn.1400405b0
cmp ebx, 0x10
jne 0x140041982
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x14004194d
mov r9d, esi
mov r8d, 0xa0
movzx edx, dil
mov ecx, 0x210
call fcn.1400405b0
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140041bf5.527
mov r9d, esi
mov r8d, 0xa1
movzx edx, dil
mov ecx, 0x214
call fcn.1400405b0
jmp case.0x140041bf5.527
cmp ebx, 0x11
jne 0x1400419e8
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x1400419b3
mov r9d, esi
mov r8d, 0xa2
movzx edx, dil
mov ecx, 0x20f
call fcn.1400405b0
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140041bf5.527
mov r9d, esi
mov r8d, 0xa3
movzx edx, dil
mov ecx, 0x213
call fcn.1400405b0
jmp case.0x140041bf5.527
cmp ebx, 0x12
jne case.0x140041bf5.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x140041a1d
mov r9d, esi
mov r8d, 0xa4
movzx edx, dil
mov ecx, 0x211
call fcn.1400405b0
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140041bf5.527
mov r9d, esi
mov r8d, 0xa5
movzx edx, dil
mov ecx, 0x215
call fcn.1400405b0
jmp case.0x140041bf5.527
cmp ebx, 7
mov rcx, r12
sete dl
call fcn.14000cfd0
jmp case.0x140041bf5.527
mov rcx, r13
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x140041a93
mov rdx, qword [rbp - 9]
lea rax, [rdx - 1]
cmp rax, 0xfffe
ja case.0x140041bf5.527
mov rcx, r12
call fcn.14000d240
jmp case.0x140041bf5.527
mov r15d, 1
mov word [rbp - 0x11], di
lea rax, [rbp - 0x11]
mov dword [rsp + 0x28], r15d
mov r9d, r15d
mov qword [rsp + 0x20], rax
mov edx, r15d
lea r8, [rbp - 9]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx edx, word [rbp - 0x11]
mov rcx, r12
call fcn.14000d150
jmp case.0x140041bf5.527
cmp r15w, 1
jne case.0x140041bf5.527
call fcn.1400410c0
test al, al
je case.0x140041bf5.527
mov eax, 1
jmp 0x140041da7
call fcn.140040570
mov ecx, dword [rsi + 0x10]
mov r14d, eax
mov dword [rbp - 0x49], eax
cmp ebx, 0x200
mov eax, edi
mov qword [rsi + 8], r13
setne al
inc eax
mov dword [rbp - 0x11], eax
cmp ecx, eax
je 0x140041b74
cmp ebx, 0x200
mov dword [rbp - 0x41], 0x18
mov eax, sendto
mov dword [rbp - 0x3d], 0x80000000
mov r14d, 2
mov qword [rbp - 0x39], r13
cmovne r14d, eax
mov dword [rbp - 0x31], edi
mov dword [rbp - 0x25], r14d
mov dword [rbp - 0x29], 0x18
mov qword [rbp - 0x21], r13
mov dword [rbp - 0x19], edi
test ecx, ecx
je 0x140041b60
lea rcx, [rbp - 0x41]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov eax, dword [rbp - 0x11]
mov r14d, dword [rbp - 0x49]
mov dword [rsi + 0x10], eax
movsx eax, r15w
shr r15, 0x10
mov dword [rbp - 1], eax
movsx eax, r15w
mov dword [rbp + 3], eax
cmp ebx, 0xa0
jne 0x140041ba3
lea rdx, [rbp - 1]
mov rcx, r13
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x140041bf5.527
mov edx, r14d
mov rcx, r12
call fcn.14000da30
movd xmm2, dword [rbp + 3]
mov rcx, r12
movd xmm1, dword [rbp - 1]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.14000d800
jmp case.0x140041bf5.527
lea eax, [rbx - 0x201]
cmp eax, 0xa2
ja case.0x140041bf5.527
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x41efc]
mov ecx, dword [rdx + rax*4 + 0x41ee0]
add rcx, rdx
jmp rcx
cmp ebx, 0x2a3
mov eax, edi
setne al
inc eax
cmp dword [rsi + 0x10], eax
jne case.0x140041bf5.527
cmp qword [rsi + 8], r13
jne 0x140041c17
mov qword [rsi + 8], rdi
movss xmm1, dword [0x1400d5784]
mov rcx, r12
movaps xmm2, xmm1
mov dword [rsi + 0x10], edi
call fcn.14000d800
jmp case.0x140041bf5.527
call fcn.140040570
mov dword [rbp - 0x49], eax
cmp ebx, 0x204
je 0x140041c4d
mov r15d, edi
cmp ebx, 0x206
jne 0x140041c53
mov r15d, 1
lea ecx, [rbx - 0x207]
mov r14d, 2
test ecx, 0xfffffffd
lea eax, [rbx - 0x20b]
cmove r15d, r14d
test eax, 0xfffffffd
jne 0x140041c8a
mov rax, qword [rbp - 9]
shr rax, 0x10
cmp ax, 1
setne dil
lea r15d, [rdi + 3]
cmp dword [rsi + 0x14], 0
jne 0x140041ca4
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x140041ca4
mov rcx, r13
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [rsi + 0x14]
mov rcx, r12
mov edx, dword [rbp - 0x49]
bts eax, r15d
mov dword [rsi + 0x14], eax
call fcn.14000da30
mov r8b, 1
mov edx, r15d
mov rcx, r12
call fcn.14000d650
jmp case.0x140041bf5.527
call fcn.140040570
cmp ebx, 0x205
mov r14d, edi
mov r15d, eax
sete r14b
cmp ebx, 0x208
jne 0x140041cf1
mov r14d, 2
jmp 0x140041d10
cmp ebx, 0x20c
jne 0x140041d10
mov rax, qword [rbp - 9]
mov r14d, edi
shr rax, 0x10
cmp ax, 1
setne r14b
add r14d, 3
mov eax, dword [rsi + 0x14]
btr eax, r14d
mov dword [rsi + 0x14], eax
test eax, eax
jne 0x140041d2f
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r13
jne 0x140041d2f
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, r15d
mov rcx, r12
call fcn.14000da30
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000d650
jmp case.0x140041bf5.527
mov rax, qword [rbp - 9]
xorps xmm1, xmm1
shr rax, 0x10
mov rcx, r12
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x1400db940]
call fcn.14000daa0
jmp case.0x140041bf5.527
mov rax, qword [rbp - 9]
xorps xmm2, xmm2
shr rax, 0x10
mov rcx, r12
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x1400d58c0]
divss xmm1, dword [0x1400db940]
call fcn.14000daa0
jmp case.0x140041bf5.527
cmp dword [rbp - 9], 7
jne case.0x140041bf5.527
mov byte [rsi + 0x2d], 1
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400cb540
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret