Function at 0x10524d4
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [0x108cf00]
push edi
add esi, 4
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
mov ebx, ecx
push eax
mov dword [ebp - 4], ebx
movsd dword es:[edi], dword [esi]
call fcn.0100872f
mov eax, dword [ebp + 8]
sub eax, 0x200
je 0x105262f
dec eax
dec eax
je 0x1052526
sub eax, 0x1fe
jne 0x105280b
mov ecx, ebx
call fcn.0105150a
jmp 0x105280b
mov eax, dword [ebx + 0x40]
cmp eax, dword [0x108af30]
je 0x1052545
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x1052545
push 1
push 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, ebx
call fcn.0105150a
cmp dword [0x108af30], 0
jne 0x10525f3
call fcn.010049d9
mov ecx, eax
call sub.MFC42u.dll_CFrameWnd::GetActiveView
test eax, eax
jne 0x105256d
xor esi, esi
jmp 0x1052570
mov esi, dword [eax + 0x40]
test esi, esi
je 0x105261d
push 1
mov ebx, 0x108b4b8
push 0x104a3f8
mov ecx, ebx
call fcn.0100d1f5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x20d
test ax, ax
jge 0x10525ad
mov ecx, dword [esi + 0xec]
push 0
push 1
push edi
call fcn.0104cb3c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
push 0x108b24c
mov dword [0x108b24c], eax
mov dword [0x108b250], ecx
add esi, 0xec
mov ecx, dword [esi]
push 0x15e
call fcn.0103584e
mov ecx, dword [esi]
push 0
push 0
push edi
call fcn.0104cb3c
mov ecx, ebx
call fcn.0100d848
mov ebx, dword [ebp - 4]
jmp 0x105261d
call fcn.010049fd
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 1
push ecx
push eax
mov ecx, 0x108aea0
call fcn.0104ef6b
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.01036c4c
push 1
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x105280b
mov eax, dword [0x108eeb4]
add eax, 0xfffffffd
cmp eax, 7
ja case.0x1052640.3
jmp dword [eax*4 + 0x1052812]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
mov dword [ebp - 0x18], eax
jl 0x105265a
lea eax, [ecx - 1]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0xc]
cmp dword [0x108af30], 0
jne 0x10527d4
mov edi, dword [ebx + 0x40]
cmp dword [edi + 0x4c], 0
je 0x10526b8
mov ebx, dword [edi + 0x50]
cmp ebx, 1
je 0x1052694
cmp ebx, dword [edi + 0x2c]
jg 0x1052694
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cdq
idiv ebx
imul eax, ebx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [edi + 0x54]
cmp ebx, 1
je 0x10526b5
cmp ebx, dword [edi + 0x30]
jg 0x10526b5
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, esi
cdq
idiv ebx
imul eax, ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov ebx, dword [ebp - 4]
sub ecx, dword [ebp - 0x18]
sub esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
mov ecx, dword [0x108a1ec]
push eax
mov dword [ebp - 4], esi
call fcn.0102e7f6
jmp 0x10527ef
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
jg 0x105265a
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x10], ecx
jmp 0x105265a
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
cmp esi, eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
jg 0x105265d
lea esi, [eax + 1]
mov dword [ebp - 0xc], esi
jmp 0x105265d
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
cmp eax, esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jl 0x105272b
lea eax, [esi - 1]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
jl 0x105265d
lea eax, [ecx - 1]
mov dword [ebp - 0x18], eax
jmp 0x105265d
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
cmp eax, esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
jl 0x105275a
lea eax, [esi - 1]
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp - 0x18]
jg 0x105265d
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x10], ecx
jmp 0x105265d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], esi
jl 0x1052788
lea eax, [ecx - 1]
mov dword [ebp - 0x18], eax
cmp esi, dword [ebp - 0x14]
jg 0x105265d
mov esi, dword [ebp - 0x14]
inc esi
jmp 0x105270a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
jg 0x1052788
lea ecx, [eax + 1]
mov dword [ebp - 0x10], ecx
jmp 0x1052788
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
cmp eax, esi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jl 0x105265d
lea eax, [esi - 1]
mov dword [ebp - 0x14], eax
jmp 0x105265d
sub ecx, dword [ebp - 0x18]
sub esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
mov ecx, dword [0x108a1ec]
push eax
mov dword [ebp - 4], esi
call fcn.0103560a
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.01008309
mov ecx, dword [0x108cf00]
push 1
lea eax, [ebp - 0x18]
push eax
call fcn.0105e4bb
pop edi
pop esi
pop ebx
leave
ret 0xc