Function at 0x102fd670
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xa4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x10351288]
mov eax, dword [edx + 0x2b4]
call eax
mov dword [ebp - 0x18], eax
push 0x88
push 0x1035084c
mov ecx, dword [0x10351288]
mov edx, dword [ecx + 0x4cc]
call edx
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x88]
and ecx, 0x20000000
je 0x102fd6ff
mov edx, dword [ebp + 0xc]
push edx
push fcn.102fa550
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x148]
call ecx
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
call fcn.102fa550
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
call fcn.10314b90
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x102fd729
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 0x30]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
jmp 0x102fd877
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jne 0x102fd745
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
sub eax, 1
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
jmp 0x102fd877
cmp dword [ebp - 0x10], 0
jne 0x102fd771
mov edx, dword [ebp + 0x14]
sub edx, 0x32
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0x14]
add eax, 0x32
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 0x32
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x10]
add edx, 0x32
mov dword [ebp - 0x24], edx
jmp 0x102fd7a9
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sym.tk85.dll_Tk_GetRootCoords
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
add eax, dword [edx + 0x44]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0x40]
mov dword [ebp - 0x24], edx
push 0
mov eax, dword [0x10351288]
mov ecx, dword [eax + 0x3ac]
call ecx
add esp, 4
mov dword [ebp - 0xc], 0
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x102fd7f0
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
test edx, edx
jge 0x102fd7e8
mov eax, dword [ebp - 0xc]
or eax, 2
mov dword [ebp - 0xc], eax
jmp 0x102fd7ee
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
jmp 0x102fd810
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
test edx, edx
jge 0x102fd80a
mov eax, dword [ebp - 0xc]
or eax, 2
mov dword [ebp - 0xc], eax
jmp 0x102fd810
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [0x10351288]
mov edx, dword [ecx + 0x3ac]
call edx
add esp, 4
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
call sym.tk85.dll_Tk_PointerEvent
add esp, 0xc
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x102fd875
mov ecx, dword [ebp - 0x30]
mov dword [ecx], 0
xor eax, eax
mov esp, ebp
pop ebp
ret