Function at 0x10041990
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1013807c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x10139e2c]
test edi, edi
jne 0x100419c9
push 0xd6f
push str.C:UsersSalfrtDesktopinactyyProjectImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.100afb33
mov edi, dword [0x10139e2c]
add esp, 0xc
mov eax, dword [edi + 0x98]
cmp dword [eax + 0x34], 0
jle 0x100419e1
cmp dword [eax + 0x14], 0
jne 0x100419f8
cmp dword [eax + 0x18], 0
jne 0x100419f8
push 0xfd
push str.C:UsersSalfrtDesktopinactyyProjectImGuiimgui_impl_win32.cpp
push 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 fcn.100afb33
add esp, 0xc
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [0x10139e8c]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
movd xmm1, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x28]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 0x10], xmm1
movss dword [edi + 0x14], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [0x10139e90]
mov edx, dword [ebp - 0x24]
sbb edx, dword [0x10139e94]
call fcn.100a8660
mov edx, dword [0x10139e9c]
mov ecx, dword [0x10139e98]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.100a8660
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x18], xmm1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [0x10139e90], eax
mov dword [0x10139e94], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xfd], al
call esi
mov esi, dword [0x10139e2c]
shr eax, 0xf
and al, 1
mov byte [edi + 0xff], 0
mov byte [edi + 0xfe], al
test esi, esi
jne 0x10041afa
push 0xd6f
push str.C:UsersSalfrtDesktopinactyyProjectImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.100afb33
mov esi, dword [0x10139e2c]
add esp, 0xc
mov ecx, dword [0x10139e8c]
test ecx, ecx
jne 0x10041b21
push 0xb6
push str.C:UsersSalfrtDesktopinactyyProjectImGuiimgui_impl_win32.cpp
push str.g_hWnd___0
call fcn.100afb33
mov ecx, dword [0x10139e8c]
add esp, 0xc
cmp byte [esi + 0x357], 0
je 0x10041b5b
cvttss2si eax, dword [esi + 0xe4]
mov dword [ebp - 0x1c], eax
cvttss2si eax, dword [esi + 0xe8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x10041b5b
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe4], 0xff7fffff
mov dword [esi + 0xe8], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x10041bd1
mov ecx, dword [0x10139e8c]
cmp eax, ecx
je 0x10041b8f
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x10041bd1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10041bd1
lea eax, [ebp - 0x30]
push eax
push dword [0x10139e8c]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10041bd1
movd xmm0, dword [ebp - 0x30]
movd xmm1, dword [ebp - 0x2c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe4], xmm0
movss dword [esi + 0xe8], xmm1
cmp byte [edi + 0xb0], 0
je 0x10041bdf
or eax, 0xffffffff
jmp 0x10041bea
mov eax, dword [0x10139e2c]
mov eax, dword [eax + 0x1e40]
cmp dword [0x10138e84], eax
je 0x10041bfc
mov dword [0x10138e84], eax
call fcn.10041920
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100a7615
mov esp, ebp
pop ebp
ret