Function at 0x1002cb60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10072170]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10072a88], 0
push esi
push edi
jne 0x1002cc48
cmp dword [0x10072a6c], 0
je 0x1002cc48
call fcn.10012b10
mov edi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [edi + 0x88]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10023010
mov eax, dword [0x10072a6c]
push 0
push 0x10072a88
push 0
push 0x15
push 0x200
push 1
push dword [ebp - 0x20]
mov dword [0x10072a88], 0
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
test eax, eax
js 0x1002cc48
mov eax, dword [0x10072a88]
lea edx, [ebp - 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
jne 0x1002cc48
xor esi, esi
cmp dword [ebp - 0x20], esi
jle 0x1002cc2e
nop
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x30]
push eax
mov eax, esi
imul eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x38]
imul eax, esi
add eax, dword [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memcpy
inc esi
add esp, 0xc
cmp esi, dword [ebp - 0x20]
jl 0x1002cc00
mov eax, dword [0x10072a88]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov ecx, dword [edi + 0x88]
mov eax, dword [0x10072a88]
mov dword [ecx], eax
call fcn.10012b10
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push dword [0x10072a68]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
movd xmm0, eax
lea eax, [ebp - 0x2c]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
push eax
cvtdq2ps xmm0, xmm0
movss dword [edi], xmm1
movss dword [edi + 4], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [0x10072a70]
mov edx, dword [ebp - 0x28]
sbb edx, dword [0x10072a74]
call fcn.1002fb40
mov edx, dword [0x10072a7c]
mov ecx, dword [0x10072a78]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.1002fb40
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 8], xmm1
mov eax, dword [ebp - 0x2c]
mov dword [0x10072a70], eax
mov eax, dword [ebp - 0x28]
mov dword [0x10072a74], eax
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xe5], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xe6], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xe8], 0
cmp byte [edi + 0x363], 0
mov byte [edi + 0xe7], al
je 0x1002cd54
cvttss2si eax, dword [edi + 0xcc]
mov dword [ebp - 0x1c], eax
cvttss2si eax, dword [edi + 0xd0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x10072a68]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [edi + 0xe4], 0
pop edi
pop esi
je 0x1002cd67
push 0
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.10019650
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f7ae
mov esp, ebp
pop ebp
ret