Function at 0x10046ec0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c05c1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1023c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
cmp esi, 0x205
ja 0x10046f13
cmp esi, 0x200
jae 0x10046f1e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi - 0x207]
cmp eax, 1
ja case.default.0x10046f93
mov eax, dword [ebp + 0x10]
movsx ebx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
call fcn.100437d0
mov dword [ebp + 8], eax
test eax, eax
je case.default.0x10046f93
mov ecx, eax
call dword [sym.imp.HncBaseDraw.dll_public:_int___thiscall_CHncDrawContext::GetMapMode_void_const]
cmp eax, 1
jne 0x10046f7a
movzx eax, word [edi + 0x98]
push eax
push 0x64
push ebx
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
movzx ecx, word [edi + 0x98]
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x14], ebx
push ecx
mov ecx, dword [ebp - 0x10]
push 0x64
push ecx
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
add esp, 0xc
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov ecx, edi
call fcn.100438a0
add esi, 0xfffffe00
cmp esi, 4
ja case.default.0x10046f93
jmp dword [esi*4 + 0x100472a4]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 2
call esi
test ax, ax
js 0x10047146
push 4
call esi
test ax, ax
js 0x10047146
call dword [sym.imp.HncFoundation.dll__HncCheckTabletOfficePackage_0]
neg eax
sbb esi, esi
and esi, 4
add esi, 4
call dword [sym.imp.USER32.dll_GetMessageTime]
cmp dword [edi + 0xd4], 0
mov dword [ebp + 8], eax
jne 0x10046fe8
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov dword [edi + 0xd4], eax
mov eax, dword [edi + 0xd8]
mov ecx, dword [ebp - 0x10]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jge 0x10047032
mov eax, dword [edi + 0xdc]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp + 8]
cmp eax, esi
jge 0x10047035
mov eax, edx
sub eax, dword [edi + 0xd0]
cmp eax, dword [edi + 0xd4]
jge 0x10047035
mov al, byte [edi + 0xe0]
inc al
and al, 3
mov byte [edi + 0xe0], al
jmp 0x1004703e
mov edx, dword [ebp + 8]
mov byte [edi + 0xe0], 0
xor al, al
movzx eax, al
inc eax
mov dword [edi + 0xdc], ecx
mov dword [edi + 0xd0], edx
mov ecx, edi
mov dword [edi + 0xd8], ebx
sub eax, 1
je 0x1004715f
sub eax, 1
je 0x10047083
sub esp, 8
sub eax, 1
call fcn.10047710
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.10049830
mov ecx, dword [edi + 8]
push 1
add ecx, 8
call fcn.100627c0
call dword [sym.imp.HncFoundation.dll__HncCheckTabletOfficePackage_0]
mov ecx, edi
push 0x8388
push 0
test eax, eax
je 0x100470b4
call fcn.10043e00
push 0x8389
jmp 0x100470be
call fcn.10043e00
push 0x8387
push 1
mov ecx, edi
call fcn.10043e00
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
cmp eax, sym.HncOfficeFramework.dll_protected_virtual:_unsigned_long_int___thiscall_CHDCEditBase::vGetExtendedStyle_void_const
jne 0x1004729c
mov eax, dword [ecx - 0x50]
mov eax, dword [eax + 4]
test eax, eax
je 0x100470f3
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x100470f3
mov eax, dword [eax + 0x80]
jmp 0x100470f5
xor eax, eax
test al, 4
je 0x10047146
lea ecx, [ebp + 8]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.1004b5b0
push 0x20
lea ecx, [ebp + 8]
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::ReverseFind_unsigned_short_int_const]
cmp eax, 0xffffffff
je 0x1004713d
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
dec ecx
cmp eax, ecx
jne 0x1004713d
push 0x8380
push 1
mov ecx, edi
call fcn.10043e00
lea ecx, [ebp + 8]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.100472c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 2
call esi
test ax, ax
js 0x10047146
push 4
call esi
test ax, ax
js 0x10047146
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, edi
call fcn.10047490
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ax, ax
js 0x10047146
push 4
call esi
test ax, ax
jns case.default.0x10046f93
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x5c], 0
je 0x10047146
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0x101de9b8
mov dword [ebp - 0x24], 0x101de814
mov dword [ebp - 0x1c], 0x101df338
mov dword [ebp - 0x18], 0
push 0x60
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push 0x1c20
push ecx
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
add esp, 0xc
mov esi, eax
push 0x60
push 0x1c20
push ebx
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
add esp, 0xc
mov ecx, edi
push esi
push eax
push 1
lea eax, [ebp - 0x34]
push eax
call fcn.10043910
test eax, eax
je 0x10047146
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x34]
push 1
push eax
push 1
add ecx, 8
call fcn.10062940
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call eax
jmp 0x100470f5