Function at 0x180031310
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1800b3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [0x1800b4290]
test rdi, rdi
jne 0x180031356
mov r8d, 0xc58
lea rdx, str.D:FolderscodingCAsteroid_PCAsteroidPCimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdi, qword [0x1800b4290]
mov rax, qword [rdi + 0xa8]
cmp dword [rax + 0x40], 0
jle 0x180031371
cmp qword [rax + 0x18], 0
jne 0x18003138b
cmp qword [rax + 0x20], 0
jne 0x18003138b
mov r8d, 0xce
lea rdx, str.D:FolderscodingCAsteroid_PCAsteroidPCimguiimgui_impl_win32.cpp
lea rcx, str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_back_end._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 [0x1800b4948]
lea rdx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
sub rax, qword [0x1800b4950]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1800b4958]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov rax, qword [rsp + 0x40]
mov qword [0x1800b4950], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x148], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x149], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov r9, qword [0x1800b4290]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x14b], 0
mov byte [rdi + 0x14a], al
test r9, r9
jne 0x18003147b
mov r8d, 0xc58
lea rdx, str.D:FolderscodingCAsteroid_PCAsteroidPCimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r9, qword [0x1800b4290]
cmp byte [r9 + 0x3a3], 0
lea rbx, [r9 + 0x130]
je 0x1800314c1
cvttss2si eax, dword [rbx]
mov rcx, qword [0x1800b4948]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [r9 + 0x134]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x180031532
mov rdx, qword [0x1800b4948]
cmp rax, rdx
je 0x1800314f2
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x180031532
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x180031532
mov rcx, qword [0x1800b4948]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x180031532
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
je 0x180031542
mov eax, 0xffffffff
jmp 0x18003154f
mov rax, qword [0x1800b4290]
mov eax, dword [rax + 0x1e90]
cmp dword [0x1800b3654], eax
je 0x180031562
mov dword [0x1800b3654], eax
call fcn.180030e70
call fcn.180031010
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800892b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret