Function at 0x1019d620
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x1023c014]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], edi
cmp dword [edi + 0x10], 0
je case.default.0x1019d6a8
lea ecx, [eax + 0x14]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1019d65e
xor esi, esi
jmp 0x1019d661
mov esi, dword [eax + 0x5c]
test eax, eax
jne 0x1019d66b
mov dword [esp + 8], eax
jmp 0x1019d672
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
push ecx
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCHeaderCtrl::_HitTest_struct_tagPOINT_const__
mov dword [esp + 0xc], eax
mov ecx, edi
mov eax, dword [esp + 0x10]
add eax, 0x14
push eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCHeaderCtrl::_HitTestDivider_struct_tagPOINT_const__
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov ecx, dword [eax]
add ecx, 0xfffffe00
cmp ecx, 3
ja case.default.0x1019d6a8
jmp dword [ecx*4 + 0x1019dc0c]
test edx, edx
js case.default.0x1019d6a8
push edx
push 0xfffffebb
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCHeaderCtrl::_SendNotify_unsigned_int__int_
test eax, eax
je case.default.0x1019d6a8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
test edx, edx
js 0x1019d879
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1019d6fc
mov dword [esp + 8], eax
jmp 0x1019d706
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
push edx
push 0xfffffeba
mov ecx, edi
mov dword [esp + 0x18], 1
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCHeaderCtrl::_SendNotify_unsigned_int__int_
test eax, eax
je 0x1019d737
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x24]
push 0x7f84
push 0
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], 0xffffffff
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
nop dword [eax]
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je case.default.0x1019d6a8
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov dx, ax
mov eax, 0xff00
and dx, ax
mov eax, dword [esp + 0x64]
cmp eax, 0x12
je 0x1019d7aa
xor ecx, ecx
test dx, dx
cmovne ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
cmp eax, 0x202
jne 0x1019d7b2
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 8]
cmp dword [esp + 0x60], ecx
jne 0x1019d7ce
cmp eax, 0x10
je 0x1019d7c6
cmp eax, 2
jne 0x1019d7ce
mov dword [esp + 0x10], 0
cmp eax, 0x101
ja 0x1019d7f6
cmp eax, 0x100
jae 0x1019d836
cmp eax, 0x20
jne 0x1019d800
push 1
push 0
push 0
push 0
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x1019d816
add eax, 0xfffffdfc
cmp eax, 1
jbe 0x1019d836
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x10], 0
jne 0x1019d760
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
push 1
push 0
push 0
push 0
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov dword [esi + 0x40], 0xffffffff
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0xffffffffffffffff
push 0xfffffeb9
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCHeaderCtrl::_SendNotify_unsigned_int__int_
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
test byte [esp + 8], 0x40
je 0x1019d88e
lea ecx, [eax + 0x14]
mov eax, dword [ecx]
mov dword [esi + 0x4c], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x3c], eax
jmp 0x1019dbe3
cmp dword [esi + 0x3c], 0xffffffff
jne 0x1019d8be
cmp dword [esi + 0x44], 0xffffffff
jne 0x1019d8be
test edx, edx
js 0x1019d8be
push 0x7f84
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esi + 0x40]
test eax, eax
js 0x1019d8e7
push eax
push 0xfffffeb8
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCHeaderCtrl::_SendNotify_unsigned_int__int_
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x3c], 0
jl 0x1019da01
test byte [esp + 8], 0x40
je case.default.0x1019d6a8
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
sub eax, dword [edx + 0x14]
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jle case.default.0x1019d6a8
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
push 0xfffffeca
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCHeaderCtrl::_SendNotify_unsigned_int__int_
test eax, eax
jne case.default.0x1019d6a8
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x3c], 0xffffffff
call sym.HncOfficeFramework.dll_public:_struct__IMAGELIST____thiscall_CHDCHeaderCtrl::CreateDragImage_int_
mov dword [esp + 8], eax
xorps xmm0, xmm0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, edi
push eax
movaps xmmword [esp + 0x18], xmm0
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCHeaderCtrl::GetItemRect_int__struct_tagRECT__const
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
cdq
sub eax, edx
sar esi, 1
push esi
sar eax, 1
push eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.COMCTL32.dll_ImageList_BeginDrag]
push dword [esp + 8]
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, dword [esp + 0x28]
lea ecx, [esi + edi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1019d9da
push ecx
push dword [esp + 0x28]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DragEnter]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax + 0x5c]
push ecx
push dword [esp + 0x28]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DragEnter]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x44], 0
jl case.default.0x1019d6a8
mov ecx, dword [esp + 0x10]
xorps xmm0, xmm0
add ecx, 0x14
movaps xmmword [esp + 0x10], xmm0
push ecx
mov edx, dword [ecx]
mov ecx, edi
mov dword [esp + 0xc], edx
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCHeaderCtrl::_HitTestDraging_struct_tagPOINT_const__
mov ecx, dword [edi + 4]
lea edx, [esp + 0x60]
mov dword [esp + 0x28], eax
mov ecx, dword [ecx + 4]
call fcn.1001bb30
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push dword [esi + 0x44]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCHeaderCtrl::GetItemRect_int__struct_tagRECT__const
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
add eax, dword [esp + 0x14]
cmp edx, dword [esp + 0x60]
push eax
cmovl edx, dword [esp + 0x64]
cmp dword [esp + 0x6c], edx
mov dword [esp + 0x10], eax
cmovl edx, dword [esp + 0x6c]
push edx
mov dword [esp + 0x10], edx
call dword [sym.imp.COMCTL32.dll_ImageList_DragMove]
mov eax, dword [esp + 0x28]
cmp dword [esi + 0x48], eax
je case.default.0x1019d6a8
mov dword [esi + 0x48], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x1019daa1
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DragLeave]
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
call fcn.1001bc30
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1019dae2
push dword [esp + 0xc]
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DragEnter]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax + 0x5c]
push dword [esp + 0xc]
mov edx, dword [esp + 0xc]
push edx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DragEnter]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x40]
test eax, eax
js 0x1019db68
push eax
push 0xfffffeb9
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCHeaderCtrl::_SendNotify_unsigned_int__int_
lea eax, [esp + 0x60]
mov ecx, edi
push eax
push dword [esi + 0x40]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCHeaderCtrl::GetItemRect_int__struct_tagRECT__const
test eax, eax
je 0x1019db68
mov dword [esp + 0x30], 1
call dword [sym.imp.HncFoundation.dll__HncLayoutIsR2L_0]
mov edx, dword [esp + 0x10]
mov eax, 0
mov ecx, dword [edx + 0x14]
sub ecx, dword [esp + 0x60]
cmovns eax, ecx
mov ecx, edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push dword [esi + 0x40]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCHeaderCtrl::SetItem_int__struct__HD_ITEMW__
cmp dword [esi + 0x44], 0
jl 0x1019dbce
cmp dword [esi + 0x3c], 0xffffffff
jne 0x1019dbce
call dword [sym.imp.COMCTL32.dll_ImageList_EndDrag]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x1019db8a
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DragLeave]
push dword [esi + 0x44]
mov ecx, edi
push 0xfffffec9
call sym.HncOfficeFramework.dll_private:_long_int___thiscall_CHDCHeaderCtrl::_SendNotify_unsigned_int__int_
test eax, eax
jne 0x1019dbce
mov eax, dword [esp + 0x10]
mov ecx, edi
add eax, 0x14
mov dword [esp + 0x30], 0x80
push eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCHeaderCtrl::_HitTestDraging_struct_tagPOINT_const__
mov dword [esp + 0x50], eax
mov ecx, edi
lea eax, [esp + 0x30]
push eax
push dword [esi + 0x44]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCHeaderCtrl::SetItem_int__struct__HD_ITEMW__
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
call fcn.1001bbc0
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4