Function at 0x1004b810
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [0x100c6d88]
lea eax, [esp + 0x20]
push esi
push edi
push eax
push dword [0x100c6e7c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
movd xmm1, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, dword [0x100c6e80]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x100c6e84]
call fcn.10078f60
mov edx, dword [0x100c6e8c]
mov ecx, dword [0x100c6e88]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.10078f60
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x100c6e84], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x100c6e80], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xf9], al
call esi
mov esi, dword [0x100c6d88]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xfb], 0
mov byte [ebx + 0xfa], al
cmp byte [esi + 0x353], 0
je 0x1004b937
cvttss2si eax, dword [esi + 0xe0]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xe4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x100c6e7c]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe0], 0xff7fffff
mov dword [esi + 0xe4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1004b9b1
mov ecx, dword [0x100c6e7c]
cmp eax, ecx
je 0x1004b96b
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1004b9b1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1004b9b1
lea eax, [esp + 0x18]
push eax
push dword [0x100c6e7c]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1004b9b1
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe0], xmm0
movss dword [esi + 0xe4], xmm1
cmp byte [ebx + 0xac], 0
mov eax, dword [0x100c6d88]
je 0x1004b9c4
or ecx, 0xffffffff
jmp 0x1004b9ca
mov ecx, dword [eax + 0x1c74]
cmp dword [0x100c0df0], ecx
je 0x1004bb06
test byte [eax + 8], 0x20
mov dword [0x100c0df0], ecx
jne 0x1004bb06
mov ecx, dword [eax + 0x1c74]
cmp ecx, 0xffffffff
je 0x1004bafe
cmp byte [eax + 0xac], 0
jne 0x1004bafe
mov eax, 0x7f00
cmp ecx, 7
ja case.0x1004ba10.0
jmp dword [ecx*4 + 0x1004bb14]
mov eax, 0x7f01
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.1004b5a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov eax, 0x7f86
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.1004b5a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov eax, 0x7f84
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.1004b5a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov eax, 0x7f85
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.1004b5a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov eax, 0x7f83
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.1004b5a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov eax, 0x7f82
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.1004b5a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov eax, 0x7f89
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.1004b5a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.1004b5a0
pop edi
pop esi
pop ebx
add esp, 0x30
ret