Function at 0x140040ac0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140162600]
xor rax, rsp
mov qword [rbp - 8], rax
call fcn.140018690
mov rsi, rax
mov rax, qword [rax + 0xa0]
cmp dword [rax + 0x48], 0
jle 0x140040b08
cmp qword [rax + 0x20], 0
jne 0x140040b22
cmp qword [rax + 0x28], 0
jne 0x140040b22
mov r8d, 0x15e
lea rdx, str.C:UsersperkrDesktopImpactimguiimgui_impl_win32.cpp
lea rcx, str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_backend._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [0x140162c30]
lea rdx, [rbp - 0x20]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x18]
sub eax, dword [rbp - 0x20]
movd xmm1, eax
mov eax, dword [rbp - 0x14]
sub eax, dword [rbp - 0x1c]
cmp byte [reloc.WS2_32.dll_accept], 0
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsi + 8], xmm1
movss dword [rsi + 0xc], xmm0
je 0x140040b6d
call fcn.1400415a0
xor edi, edi
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x10]
lea ecx, [rdi + 0x11]
sub rax, qword [0x140162c38]
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140162c40]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rsi + 0x10], xmm1
mov rax, qword [rbp - 0x10]
mov qword [0x140162c38], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [rdi + 0x10]
and al, 1
mov byte [rsi + 0x134], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
lea ecx, [rdi + 0x12]
and al, 1
mov byte [rsi + 0x135], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rsi + 0x137], dil
mov byte [rsi + 0x136], al
call fcn.140018690
mov rbx, rax
mov rax, qword [0x140162c30]
test rax, rax
jne 0x140040c28
mov r8d, Ordinal_217
lea rdx, str.C:UsersperkrDesktopImpactimguiimgui_impl_win32.cpp
lea rcx, str.g_hWnd___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x140162c30]
cmp byte [rbx + 0x38f], dil
je 0x140040c68
test dword [rbx], 0x400
cvttss2si ecx, dword [rbx + 0x118]
cvttss2si edx, dword [rbx + 0x11c]
mov dword [rbp - 0x30], ecx
mov dword [rbp - 0x2c], edx
jne 0x140040c62
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x2c]
mov ecx, dword [rbp - 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
lea rcx, [rbp - 0x28]
mov dword [rbx + 0x118], 0xff7fffff
mov dword [rbx + 0x11c], 0xff7fffff
mov dword [rbx + 0x130], edi
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140040d44
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
test rax, rax
je 0x140040d1a
mov rdx, qword [0x140162c30]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
mov rcx, qword [0x140162c30]
test eax, eax
cmovne rdi, rcx
test dword [rbx], 0x400
je 0x140040ce0
mov rcx, rdi
call fcn.140017870
test rax, rax
je 0x140040d1a
movd xmm0, dword [rbp - 0x28]
movd xmm1, dword [rbp - 0x24]
jmp 0x140040d04
cmp rdi, rcx
jne 0x140040d1a
mov rax, qword [rbp - 0x28]
lea rdx, [rbp - 0x30]
mov rcx, rdi
mov qword [rbp - 0x30], rax
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rbp - 0x30]
movd xmm1, dword [rbp - 0x2c]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x11c], xmm1
movss dword [rbx + 0x118], xmm0
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.USER32.dll_WindowFromPoint]
test rax, rax
je 0x140040d44
mov rcx, rax
call fcn.140017870
test rax, rax
je 0x140040d44
test byte [rax + 4], 0x80
jne 0x140040d44
mov eax, dword [rax]
mov dword [rbx + 0x130], eax
cmp byte [rsi + 0xc7], 0
je 0x140040d54
mov eax, 0xffffffff
jmp 0x140040d59
call fcn.140018800
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x140040d6c
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.140041870
call fcn.1400412a0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c5b60
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret