Function at 0x140040410
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x18], r8
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov r14, qword [0x141718fa0]
mov r12, r9
mov r15d, edx
mov r13, rcx
test r14, r14
je case.0x140040acf.527
lea rbx, [r14 + 8]
mov r14, qword [r14 + 0x90]
cmp edx, 0x200
ja 0x140040aa5
je case.0x140040496.160
lea eax, [rdx - 7]
cmp eax, 0xfe
ja case.0x140040acf.527
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x40ccc]
mov ecx, dword [rdx + rax*4 + 0x40cb0]
add rcx, rdx
jmp rcx
lea eax, [r15 - 0x100]
mov esi, 0x100
test eax, 0xfffffffb
sete dil
cmp r8, rsi
jae case.0x140040acf.527
mov ecx, reloc.WS2_32.dll_recvfrom
movaps xmmword [rsp + 0x80], xmm6
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x14025d844]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x38d1], 0
je 0x1400404fc
test al, al
je 0x1400404e8
movaps xmm3, xmm6
jmp 0x1400404eb
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x1000
mov rcx, rbx
call fcn.140012310
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x38d1], 0
je 0x140040532
test al, al
je 0x14004051e
movaps xmm3, xmm6
jmp 0x140040521
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x2000
mov rcx, rbx
call fcn.140012310
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x38d1], 0
je 0x140040568
test al, al
je 0x140040554
movaps xmm3, xmm6
jmp 0x140040557
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x4000
mov rcx, rbx
call fcn.140012310
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0x38d1], 0
je 0x14004059c
test al, al
jne 0x140040588
xorps xmm6, xmm6
movaps xmm3, xmm6
movzx r8d, al
mov edx, 0x8000
mov rcx, rbx
call fcn.140012310
mov rbx, qword [rbp + 0x77]
movaps xmm6, xmmword [rsp + 0x80]
cmp rbx, 0xd
jne 0x1400405be
shr r12, 0x10
mov eax, 0x10d
test si, r12w
cmovne ebx, eax
movsxd rcx, ebx
call fcn.14003fdf0
mov esi, eax
cmp eax, 0x262
jne 0x1400405e2
test dil, dil
jne 0x1400405e6
mov r8d, ebx
mov dl, 1
mov ecx, eax
call fcn.14003f260
jmp 0x1400405e6
test esi, esi
je 0x1400405f4
mov r8d, ebx
movzx edx, dil
mov ecx, esi
call fcn.14003f260
cmp ebx, 0x10
jne 0x140040654
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x140040622
mov r8d, 0xa0
movzx edx, dil
mov ecx, 0x210
call fcn.14003f260
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140040acf.527
mov r8d, 0xa1
movzx edx, dil
mov ecx, 0x214
call fcn.14003f260
jmp case.0x140040acf.527
cmp ebx, 0x11
jne 0x1400406b4
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x140040682
mov r8d, 0xa2
movzx edx, dil
mov ecx, 0x20f
call fcn.14003f260
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140040acf.527
mov r8d, 0xa3
movzx edx, dil
mov ecx, 0x213
call fcn.14003f260
jmp case.0x140040acf.527
cmp ebx, 0x12
jne case.0x140040acf.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x1400406e6
mov r8d, 0xa4
movzx edx, dil
mov ecx, 0x211
call fcn.14003f260
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x140040acf.527
mov r8d, 0xa5
movzx edx, dil
mov ecx, 0x215
call fcn.14003f260
jmp case.0x140040acf.527
cmp r15d, 7
sete byte [rbp - 0x29]
cmp qword [rbx + 0xe38], 0
jne 0x140040744
mov r8d, 0x657
lea rdx, str.C:UsersAzaDownloadsNVM_RebrandNVM_Rebrandexamplesexample_win32_directx11ImGuiimgui.cpp
lea rcx, str.Ctx___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r13, qword [rbx + 0xe38]
mov edi, dword [r13 + 0x3fb0]
sub edi, 1
movsxd rsi, edi
js 0x14004079e
imul r14, rsi, 0x1c
nop
cmp edi, dword [r13 + 0x3fb0]
jl 0x140040783
mov r8d, 0x771
lea rdx, str.C:UsersAzaDownloadsNVM_RebrandNVM_Rebrandexamplesexample_win32_directx11ImGuiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [r13 + 0x3fb8]
add rcx, r14
cmp dword [rcx], 6
je 0x140040807
dec edi
sub r14, 0x1c
sub rsi, 1
jns 0x140040760
cmp byte [r13 + 0x38d8], 0
sete al
movzx ecx, byte [rbp - 0x29]
cmp al, cl
je case.0x140040acf.527
cmp byte [rbx + 0x72], 0
je 0x1400407c5
cmp r15d, 7
jne case.0x140040acf.527
xor eax, eax
lea rdx, [rbp - 0x21]
mov qword [rbp - 0x11], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov dword [rbp - 9], eax
mov eax, dword [r13 + 0x3fd4]
mov dword [rbp - 0x19], eax
inc eax
mov byte [rbp - 0x15], cl
lea rcx, [r13 + 0x3fb0]
mov dword [r13 + 0x3fd4], eax
mov dword [rbp - 0x21], 6
call fcn.14002e400
jmp case.0x140040acf.527
test rcx, rcx
je 0x14004079e
movzx eax, byte [rcx + 0xc]
jmp 0x1400407a9
call fcn.14003ed40
jmp case.0x140040acf.527
mov rcx, r13
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1400408d6
mov rsi, qword [rbp + 0x77]
lea rax, [rsi - 1]
cmp rax, 0xfffe
ja case.0x140040acf.527
test si, si
jne 0x140040853
cmp word [rbx + 0x38d4], si
je case.0x140040acf.527
cmp byte [rbx + 0x38d1], 0
je case.0x140040acf.527
mov ecx, 0xfc00
movzx eax, si
and ax, cx
mov edx, 0xd800
movzx ecx, word [rbx + 0x38d4]
cmp ax, dx
jne 0x14004089a
test cx, cx
je 0x14004088e
mov edx, 0xfffd
mov rcx, rbx
call fcn.140012270
mov word [rbx + 0x38d4], si
jmp case.0x140040acf.527
test cx, cx
je 0x1400408c6
mov ecx, 0xdc00
cmp ax, cx
je 0x1400408b8
mov edx, 0xfffd
mov rcx, rbx
call fcn.140012270
jmp 0x1400408bd
mov esi, 0xfffd
xor edi, edi
mov word [rbx + 0x38d4], di
movzx edx, si
mov rcx, rbx
call fcn.140012270
jmp case.0x140040acf.527
mov eax, 1
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x77]
mov qword [rsp + 0x20], rcx
xor edi, edi
mov ecx, dword [r14 + 0x2c]
mov r9d, eax
mov edx, eax
mov word [rbp - 0x29], di
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx r14d, word [rbp - 0x29]
cmp qword [rbx + 0xe38], rdi
jne 0x140040929
mov r8d, 0x539
lea rdx, str.C:UsersAzaDownloadsNVM_RebrandNVM_Rebrandexamplesexample_win32_directx11ImGuiimgui.cpp
lea rcx, str.Ctx___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0xe38]
test r14d, r14d
je case.0x140040acf.527
cmp byte [rbx + 0x38d1], dil
je case.0x140040acf.527
mov eax, dword [rcx + 0x3fd4]
lea rdx, [rbp - 0x21]
mov dword [rbp - 0x19], eax
mov esi, 2
inc eax
mov qword [rbp - 0x11], rdi
mov dword [rcx + 0x3fd4], eax
add rcx, 0x3fb0
mov dword [rbp - 9], edi
mov dword [rbp - 0x21], 5
mov dword [rbp - 0x1d], esi
mov dword [rbp - 0x15], r14d
call fcn.14002e400
jmp case.0x140040acf.527
cmp r12w, 1
jne case.0x140040acf.527
call fcn.14003f0c0
test al, al
je case.0x140040acf.527
mov eax, 1
jmp 0x140040c8e
call qword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov ecx, 0xffffff80
xor edi, edi
and rax, rcx
mov esi, 2
mov ecx, 0xff515700
cmp rax, rcx
jne 0x1400409cc
mov dword [rbp - 0x29], esi
jmp 0x1400409dc
mov ecx, edi
mov edx, 0xff515780
cmp rax, rdx
sete cl
mov dword [rbp - 0x29], ecx
mov ecx, dword [r14 + 0x10]
cmp r15d, 0x200
mov eax, edi
mov qword [r14 + 8], r13
setne al
inc eax
mov dword [rbp - 0x25], eax
cmp ecx, eax
je 0x140040a4d
cmp r15d, 0x200
mov dword [rbp + 7], Ordinal_26
mov eax, reloc.WS2_32.dll_select
mov dword [rbp + 0xb], 0x80000000
cmovne esi, eax
mov qword [rbp + 0xf], r13
mov dword [rbp - 0x1d], esi
mov dword [rbp + 0x17], edi
mov dword [rbp - 0x21], Ordinal_26
mov qword [rbp - 0x19], r13
mov dword [rbp - 0x11], edi
test ecx, ecx
je 0x140040a3c
lea rcx, [rbp + 7]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov eax, dword [rbp - 0x25]
mov dword [r14 + 0x10], eax
movsx eax, r12w
shr r12, 0x10
mov dword [rbp - 1], eax
movsx eax, r12w
mov dword [rbp + 3], eax
cmp r15d, 0xa0
jne 0x140040a7d
lea rdx, [rbp - 1]
mov rcx, r13
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x140040acf.527
mov edx, dword [rbp - 0x29]
mov rcx, rbx
call fcn.140012a10
movd xmm2, dword [rbp + 3]
mov rcx, rbx
movd xmm1, dword [rbp - 1]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.1400125f0
jmp case.0x140040acf.527
lea eax, [rdx - 0x201]
cmp eax, 0xa2
ja case.0x140040acf.527
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x40de8]
mov ecx, dword [rdx + rax*4 + 0x40dcc]
add rcx, rdx
jmp rcx
xor edi, edi
cmp r15d, 0x2a3
mov eax, edi
setne al
inc eax
cmp dword [r14 + 0x10], eax
jne case.0x140040acf.527
cmp qword [r14 + 8], r13
jne 0x140040af5
mov qword [r14 + 8], rdi
movss xmm1, dword [0x14025da3c]
mov rcx, rbx
movaps xmm2, xmm1
mov dword [r14 + 0x10], edi
call fcn.1400125f0
jmp case.0x140040acf.527
call fcn.1400403d0
xor edi, edi
mov dword [rbp - 0x25], eax
lea ecx, [r15 - 0x204]
mov eax, 1
test ecx, 0xfffffffd
mov r12d, edi
lea ecx, [r15 - 0x207]
mov esi, 2
cmove r12d, eax
test ecx, 0xfffffffd
lea eax, [r15 - 0x20b]
cmove r12d, esi
test eax, 0xfffffffd
jne 0x140040b6f
mov rax, qword [rbp + 0x77]
mov r12d, edi
shr rax, 0x10
cmp ax, 1
setne r12b
add r12d, 3
cmp dword [r14 + 0x14], edi
jne 0x140040b89
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x140040b89
mov rcx, r13
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [r14 + 0x14]
mov rcx, rbx
mov edx, dword [rbp - 0x25]
bts eax, r12d
mov dword [r14 + 0x14], eax
call fcn.140012a10
mov r8b, 1
mov edx, r12d
mov rcx, rbx
call fcn.1400127d0
jmp case.0x140040acf.527
call fcn.1400403d0
xor edi, edi
mov r12d, eax
cmp r15d, 0x205
mov esi, edi
sete sil
cmp r15d, 0x208
jne 0x140040bda
mov esi, 2
jmp 0x140040bf8
cmp r15d, 0x20c
jne 0x140040bf8
mov rax, qword [rbp + 0x77]
mov esi, edi
shr rax, 0x10
cmp ax, 1
setne sil
add esi, 3
mov eax, dword [r14 + 0x14]
btr eax, esi
mov dword [r14 + 0x14], eax
test eax, eax
jne 0x140040c18
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r13
jne 0x140040c18
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, r12d
mov rcx, rbx
call fcn.140012a10
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400127d0
jmp case.0x140040acf.527
shr r8, 0x10
xorps xmm1, xmm1
movsx eax, r8w
mov rcx, rbx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x14025d904]
call fcn.140012950
jmp case.0x140040acf.527
shr r8, 0x10
xorps xmm2, xmm2
movsx eax, r8w
mov rcx, rbx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x14025dce0]
divss xmm1, dword [0x14025d904]
call fcn.140012950
jmp case.0x140040acf.527
cmp r8d, 7
jne case.0x140040acf.527
mov byte [r14 + 0x31], 1
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret