Function at 0x10046860
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101eb100]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call fcn.10021f90
test eax, eax
je 0x10046888
call fcn.100221a0
mov edi, dword [eax + 0x70]
test edi, edi
jne 0x100468a1
jmp 0x1004688a
xor edi, edi
push 0x186
push str.D:CheatAbuserMTA_SexcutorClientmodsdeathmatchAbuserMTAMenuImGuiimgui_impl_win32.cpp
push str.bd___nullptr___Context_or_backend_not_initialized__Did_you_call_ImGui_ImplWin32_Init____
call fcn.100c31de
add esp, 0xc
push ebx
push esi
call fcn.100221a0
mov ebx, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], ebx
push eax
movups xmmword [ebp - 0x14], xmm0
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
movd xmm0, eax
lea eax, [ebp - 0x24]
cvtdq2ps xmm0, xmm0
push eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movss dword [ebx + 0xc], xmm0
xorps xmm0, xmm0
movss dword [ebx + 8], xmm1
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [edi + 0x10]
mov edx, dword [ebp - 0x20]
sbb edx, dword [edi + 0x14]
call fcn.100bc590
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.100bc590
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebx + 0x10], xmm1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
call fcn.10021f90
test eax, eax
je 0x1004694c
call fcn.100221a0
mov esi, dword [eax + 0x70]
jmp 0x1004694e
xor esi, esi
call fcn.100221a0
cmp dword [esi], 0
mov ebx, eax
jne 0x10046971
push 0x131
push str.D:CheatAbuserMTA_SexcutorClientmodsdeathmatchAbuserMTAMenuImGuiimgui_impl_win32.cpp
push str.bd__hWnd___0
call fcn.100c31de
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [esi]
cmp eax, ecx
jne 0x10046a07
cmp byte [ebx + 0x7f], 0
je 0x100469be
cvttss2si eax, dword [ebx + 0xa4]
mov dword [ebp - 0x1c], eax
cvttss2si eax, dword [ebx + 0xa8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x100469b8
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [ebx + 0x7f], 0
jne 0x10046a07
cmp dword [esi + 8], 0
jne 0x10046a07
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10046a07
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10046a07
movd xmm0, dword [ebp - 0x18]
sub esp, 8
cvtdq2ps xmm0, xmm0
mov ecx, ebx
movss dword [esp + 4], xmm0
movd xmm0, dword [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.100191e0
push 0x210
call fcn.100241a0
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 4
test al, al
je 0x10046a56
push 0xa0
call ebx
shr eax, 0xf
test al, 1
jne 0x10046a56
call fcn.100221a0
mov esi, eax
push 0
push 0x210
mov ecx, esi
call fcn.10019030
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa0
push 0x210
mov ecx, esi
call fcn.1002f0d0
push 0x214
call fcn.100241a0
add esp, 4
test al, al
je 0x10046a9f
push 0xa1
call ebx
shr eax, 0xf
test al, 1
jne 0x10046a9f
call fcn.100221a0
mov esi, eax
push 0
push 0x214
mov ecx, esi
call fcn.10019030
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa1
push 0x214
mov ecx, esi
call fcn.1002f0d0
push 0x212
call fcn.100241a0
add esp, 4
test al, al
je 0x10046ae2
push 0x5b
call ebx
shr eax, 0xf
test al, 1
jne 0x10046ae2
call fcn.100221a0
mov esi, eax
push 0
push 0x212
mov ecx, esi
call fcn.10019030
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5b
push 0x212
mov ecx, esi
call fcn.1002f0d0
push 0x216
call fcn.100241a0
add esp, 4
test al, al
je 0x10046b25
push 0x5c
call ebx
shr eax, 0xf
test al, 1
jne 0x10046b25
call fcn.100221a0
mov esi, eax
push 0
push 0x216
mov ecx, esi
call fcn.10019030
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x5c
push 0x216
mov ecx, esi
call fcn.1002f0d0
mov eax, dword [ebp - 0x28]
pop esi
pop ebx
cmp byte [eax + 0x3c], 0
je 0x10046b35
or eax, 0xffffffff
jmp 0x10046b3a
call fcn.100227b0
cmp dword [edi + 0x20], eax
je 0x10046b47
mov dword [edi + 0x20], eax
call fcn.10047090
call fcn.10046b60
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100bbfd9
mov esp, ebp
pop ebp
ret