Function at 0x1015dd60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x1023c014]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x1015dd99
xor edi, edi
jmp 0x1015dd9c
mov edi, dword [ecx + 0x5c]
call fcn.1001bad0
mov esi, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x1015ddb5
mov dword [esp + 0x24], ecx
jmp 0x1015ddbc
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x1015ddc6
mov dword [esp + 0x20], ecx
jmp 0x1015dde7
mov edx, dword [ecx + 4]
mov eax, edx
and eax, 0xffbfffff
or edx, 0x400000
cmp dword [ecx + 0x74], 1
cmovne edx, eax
mov dword [ecx + 4], edx
mov esi, dword [ebx + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x5c]
call fcn.1001bb30
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1015de01
xor ecx, ecx
jmp 0x1015de04
mov ecx, dword [eax + 0x5c]
lea eax, [ecx + 0x20]
neg ecx
sbb ecx, ecx
and ecx, eax
cmp dword [edi + 0x58], 0
mov dword [esp + 0x3c], ecx
je 0x1015de30
mov dword [edi + 0x58], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0x16
call esi
mov ecx, dword [esp + 0x10]
test eax, eax
push 0
lea eax, [esp + 0x1c]
mov edx, 2
push eax
push 0
cmove ecx, edx
push 0xa
mov dword [esp + 0x20], ecx
call esi
mov ecx, dword [esp + 0x18]
test eax, eax
mov eax, dword [esp + 0x10]
mov edx, 0x1e
cmove ecx, edx
inc eax
imul eax, eax, 0xfa
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
mov eax, 0x22
sub eax, ecx
imul eax, eax, 0xb
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1015de9f
xor esi, esi
jmp 0x1015dea5
mov eax, dword [eax + 0x5c]
mov esi, dword [eax + 8]
cmp dword [edi + 0x40], 0
mov dword [esp + 0x14], esi
mov dword [edi + 0x58], 1
je 0x1015e008
nop word [eax + eax]
cmp dword [edi + 0x58], 0
je 0x1015e008
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1015e008
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1015e008
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, eax
cmp dword [esp + 0x2c], esi
je 0x1015df7d
mov ecx, esi
sub ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x34]
jbe 0x1015df79
mov ecx, esi
sub ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x38]
jbe 0x1015df79
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x1c], esi
cmp ecx, 5
je 0x1015df26
cmp ecx, 6
je 0x1015df26
push ecx
jmp 0x1015df72
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x64]
push dword [esp + 0x28]
mov edx, dword [edx]
push dword [esp + 0x30]
push eax
xor eax, eax
cmp ecx, 5
mov ecx, dword [esp + 0x3c]
setne al
add eax, 0x1000000c
push eax
call dword [edx + 0x160]
push dword [edi + 0x54]
lea eax, [esp + 0x70]
push dword [edi + 0x50]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1015df79
push dword [edi + 0x40]
mov ecx, ebx
call sym.HncOfficeFramework.dll_private:_void___thiscall_CHDCScrollBar::_DoScrollByHitArea_int_
mov dword [esp + 0x2c], esi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1015dffa
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xff00
test cx, ax
je 0x1015e008
mov eax, dword [esp + 0x44]
cmp eax, 0x12
je 0x1015e008
cmp eax, 0x100
je 0x1015e008
cmp eax, 0x202
je 0x1015e008
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x40], esi
jne 0x1015dfd1
cmp eax, 0x10
je 0x1015e008
cmp eax, 2
je 0x1015e008
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1015dffe
mov esi, dword [esp + 0x14]
cmp dword [edi + 0x40], 0
jne 0x1015dec0
mov dword [edi + 0x40], 0
mov dword [edi + 0x58], 0
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 4]
call fcn.1001bbc0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret