Function at 0x10162020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x1023c014]
xor eax, esp
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10162066
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x10162066
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x10162066
mov esi, dword [esi + 0x5c]
jmp 0x10162068
xor esi, esi
mov dword [esp + 0x2c], esi
test ecx, ecx
je 0x10162075
mov edx, dword [ecx + 0x58]
jmp 0x10162077
xor edx, edx
mov dword [esp + 0x14], edx
test esi, esi
je 0x10162930
test edx, edx
je 0x10162930
mov eax, dword [edx]
mov eax, dword [eax + 0x74]
cmp eax, sym.HncOfficeFramework.dll_public_virtual:_class_CHDCHeaderCtrl____thiscall_CHDCListCtrl::GetHeaderCtrl_void_const
jne 0x10162946
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x101620b4
lea eax, [ecx + 0x48]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x101620c4
mov ecx, dword [ecx + 0x5c]
lea eax, [ecx + 0x48]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x101620e4
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x101620e4
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x38]
sar ecx, 2
mov dword [esp + 0x28], ecx
jmp 0x101620ec
mov dword [esp + 0x28], 0
cmp dword [ebp + 0xc], 0
je 0x1016213a
lea eax, [edi + 0x1c]
mov ecx, edx
push eax
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 4]
call fcn.1001bad0
mov edi, eax
push 2
mov ecx, dword [edi]
mov edx, dword [ecx + 0x2b4]
mov ecx, edi
call edx
mov ecx, dword [edi]
mov esi, eax
push 3
mov edx, dword [ecx + 0x2b4]
mov ecx, edi
call edx
mov edi, dword [esp + 0x34]
sub dword [edi + 0x24], esi
sub dword [edi + 0x28], eax
mov esi, dword [esp + 0x2c]
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x1c]
cmp eax, dword [ecx + 8]
jg 0x1016214d
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 0xc]
jle 0x10162157
push ecx
mov ecx, dword [esp + 0x18]
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
cmp dword [ebp + 0xc], 0
je 0x10162184
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
jmp 0x1016219e
mov ecx, dword [esp + 0x14]
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealHScrollPos_void_const
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealVScrollPos_void_const
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101621ce
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x101621b4
xor eax, eax
jmp 0x101621b7
mov eax, dword [ecx + 8]
test eax, 0x10000000
je 0x101621ce
test ecx, ecx
je 0x101621ce
and dword [ecx + 8], 0xefffffff
call fcn.1001bbc0
cmp dword [esp + 0x28], 0
jle 0x1016291c
push 0x54
lea eax, [esp + 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esi + 0x110]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
mov eax, dword [edx + 4]
test eax, eax
je 0x10162208
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov edx, dword [edx + 4]
test edx, edx
je 0x10162216
mov edx, dword [edx + 8]
test edx, 0x8000000
je 0x10162227
or eax, 0x100
mov dword [esp + 0x5c], eax
test ecx, ecx
je 0x10162266
lea eax, [esp + 0xc0]
push eax
push 0
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
test eax, eax
je 0x10162266
mov ecx, dword [esp + 0xd8]
sub ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xdc]
sub edx, dword [esp + 0xd4]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
jmp 0x1016226e
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov eax, dword [esi + 0x38]
add ecx, dword [edi + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x18]
add eax, edx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
cdq
idiv ecx
mov dword [esp + 0x10], ecx
mov edx, eax
mov ecx, eax
mov dword [edi + 8], edx
imul ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x20], edx
sub eax, ecx
sub eax, dword [edi + 0x1c]
test eax, eax
jle 0x101622c0
test edx, edx
jle 0x101622c0
cdq
idiv dword [esp + 0x20]
mov edx, eax
jmp 0x101622c2
xor edx, edx
mov ecx, dword [esp + 0x10]
mov eax, edx
not eax
and eax, 1
sub ecx, eax
add ecx, edx
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
cdq
idiv ecx
mov edx, 1
cmp eax, edx
cmovl eax, edx
cmp dword [ebp + 0xc], 0
mov dword [edi + 8], eax
je 0x10162544
imul ecx, eax
mov eax, dword [esp + 0x28]
cdq
mov dword [esi + 0x120], ecx
xor ecx, ecx
idiv dword [edi + 8]
test edx, edx
setne cl
add ecx, eax
imul ecx, dword [edi + 0x10]
mov dword [esi + 0x124], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10162335
mov eax, dword [ecx + 0x58]
test eax, eax
je 0x10162335
mov eax, dword [eax + 4]
mov edx, dword [eax + 4]
test edx, edx
je 0x10162335
mov edx, dword [edx + 0x5c]
jmp 0x10162337
xor edx, edx
test ecx, ecx
je 0x10162340
mov eax, dword [ecx + 0x58]
jmp 0x10162342
xor eax, eax
mov dword [esp + 0x10], eax
test edx, edx
je 0x101623d7
test eax, eax
je 0x101623d7
mov eax, dword [eax + 4]
mov ecx, dword [edi + 8]
mov dword [esp + 0x28], ecx
mov esi, dword [eax + 4]
test esi, esi
je 0x10162379
mov edx, dword [esi + 0x5c]
test edx, edx
je 0x10162379
mov eax, dword [edx + 0x3c]
sub eax, dword [edx + 0x38]
sar eax, 2
jmp 0x1016237b
xor eax, eax
cmp ecx, 1
jge 0x101623dd
test eax, eax
jle 0x101623dd
xorps xmm0, xmm0
mov ecx, esi
movaps xmmword [esp + 0xa0], xmm0
call fcn.1001bad0
push 0x26
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x2b4]
call edx
mov ecx, dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0xa0]
push eax
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa0]
cdq
idiv esi
mov ecx, eax
mov eax, 1
cmp ecx, 1
cmovl ecx, eax
jmp 0x101623d9
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x30]
mov esi, edx
mov dword [esp + 0x10], 0
cmp esi, dword [esp + 0x3c]
je 0x10162930
lea eax, [ecx - 1]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov eax, esi
mov edi, dword [esi]
sub eax, edx
sar eax, 2
mov dword [esp + 0x20], eax
cdq
idiv ecx
xor ecx, ecx
mov eax, edx
mov edx, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
cmovne ecx, dword [esp + 0x10]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [edx + 0xc]
add eax, ecx
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0x10]
add eax, dword [esp + 0x18]
mov dword [edi + 0x28], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
sub ecx, eax
test ecx, 0xfffffffc
jle 0x10162457
mov ecx, dword [eax]
jmp 0x10162459
xor ecx, ecx
movups xmm0, xmmword [edi + 0x1c]
lea edx, [esp + 0x48]
push dword [ebp + 0xc]
movups xmmword [esp + 0x4c], xmm0
mov eax, dword [edi + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
mov dword [esp + 0x5c], eax
lea eax, [edi + 0x3c]
mov dword [esp + 0x88], eax
lea eax, [edi + 0x2c]
mov dword [esp + 0x84], eax
lea eax, [edi + 0x4c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x30]
push edx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x118]
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx]
push dword [esp + 0x48]
call dword [eax + 0x80]
movups xmm0, xmmword [esp + 0x48]
mov eax, dword [esp + 0x1c]
movups xmmword [edi + 0x1c], xmm0
cmp dword [esp + 0x24], eax
jne 0x101624dc
mov edx, dword [edi + 0x28]
mov dword [esp + 0x18], edx
jmp 0x101624e3
mov eax, dword [edi + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0x120]
cmp ecx, edx
mov eax, edx
mov edx, dword [esp + 0x2c]
cmovge eax, ecx
mov dword [edx + 0x120], eax
mov ecx, dword [edx + 0x124]
mov eax, dword [edi + 0x28]
cmp ecx, eax
cmovge eax, ecx
mov ecx, dword [esp + 0x28]
add esi, 4
mov dword [edx + 0x124], eax
mov edx, dword [esp + 0x30]
cmp esi, dword [esp + 0x3c]
jne 0x10162404
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x30]
mov esi, edx
cmp esi, dword [esp + 0x3c]
je 0x1016273f
mov ecx, dword [esi]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
test ecx, 0xfffffffc
jle 0x10162572
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jmp 0x1016257a
mov dword [esp + 0x20], 0
mov ecx, esi
sub ecx, edx
mov edx, dword [edi + 4]
sar ecx, 2
mov dword [esp + 0x44], ecx
test edx, edx
je 0x101625a2
mov eax, dword [edx + 0x58]
test eax, eax
je 0x101625a2
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x101625a2
mov eax, dword [eax + 0x5c]
jmp 0x101625a4
xor eax, eax
test edx, edx
je 0x101625ad
mov edx, dword [edx + 0x58]
jmp 0x101625af
xor edx, edx
mov dword [esp + 0x1c], edx
test eax, eax
je 0x1016262f
test edx, edx
je 0x1016262f
test ecx, ecx
js 0x1016262f
lea edx, [eax + 0x38]
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 2
cmp ecx, eax
jge 0x1016262f
push ecx
mov ecx, edx
call fcn.10028140
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xa0]
push eax
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
mov ecx, dword [esp + 0x1c]
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealHScrollPos_void_const
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x1c]
sub edi, eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealVScrollPos_void_const
mov ecx, dword [esp + 0xa4]
sub ecx, eax
mov eax, dword [esp + 0x40]
push ecx
push edi
movups xmm0, xmmword [eax + 0x1c]
lea eax, [esp + 0x50]
push eax
movups xmmword [esp + 0x54], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xb0]
xorps xmm0, xmm0
push eax
movaps xmmword [esp + 0xc4], xmm0
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1016272e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
push 0
push edx
push 0
mov eax, dword [ecx + 4]
lea edi, [ecx + 0x3c]
push dword [esp + 0x50]
mov dword [esp + 0x78], eax
mov eax, dword [ecx]
push dword [esp + 0x48]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], eax
lea eax, [ecx + 0x2c]
mov dword [esp + 0x94], eax
lea eax, [ecx + 0x4c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x98], edi
mov eax, dword [eax + 0x118]
mov dword [esp + 0x90], eax
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
sub eax, dword [ecx + 0x20]
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [ecx + 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x20]
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [edi + 0x1c]
push eax
mov eax, dword [esp + 0x18]
add eax, 0x2c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x20]
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [edi + 0x1c]
push eax
mov eax, dword [esp + 0x18]
add eax, 0x4c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x30]
add esi, 4
cmp esi, dword [esp + 0x3c]
jne 0x10162554
cmp dword [edi + 0x2c], 0
je 0x10162930
push 0xc0c0c0
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x30]
mov ecx, edi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xa0]
push 0
push eax
push 0
call fcn.10162dc0
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0xa4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
cdq
idiv dword [edi + 8]
mov dword [esp + 0x10], 0
test edx, edx
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x10]
setne dl
add edx, eax
cmp dword [edi + 8], 1
mov dword [esp + 0x10], edx
jle 0x101628eb
nop dword [eax + eax]
mov ecx, dword [esp + 0x14]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCListCtrl::GetItemCount_void_const
cmp dword [esp + 0x1c], eax
jg 0x101628eb
mov edx, dword [edi + 4]
mov ecx, esi
sub ecx, dword [esp + 0x30]
sar ecx, 2
test edx, edx
je 0x10162809
mov eax, dword [edx + 0x58]
test eax, eax
je 0x10162809
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10162809
mov eax, dword [eax + 0x5c]
jmp 0x1016280b
xor eax, eax
test edx, edx
je 0x10162814
mov edi, dword [edx + 0x58]
jmp 0x10162816
xor edi, edi
mov dword [esp + 0x20], edi
test eax, eax
je 0x10162894
test edi, edi
je 0x10162894
test ecx, ecx
js 0x10162894
lea edx, [eax + 0x38]
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 2
cmp ecx, eax
jge 0x10162894
push ecx
mov ecx, edx
call fcn.10028140
mov ecx, edi
mov eax, dword [eax]
mov dword [esp + 0x44], eax
lea eax, [esp + 0xb0]
push eax
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealHScrollPos_void_const
mov edi, dword [esp + 0xb0]
mov ecx, dword [esp + 0x20]
sub edi, eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealVScrollPos_void_const
mov ecx, dword [esp + 0xb4]
sub ecx, eax
mov eax, dword [esp + 0x44]
push ecx
push edi
movups xmm0, xmmword [eax + 0x1c]
lea eax, [esp + 0xa8]
push eax
movups xmmword [esp + 0xac], xmm0
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0x38]
dec edi
push 0
push dword [esp + 0xa8]
push edi
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x40]
add eax, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0x3c]
push edi
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x1c]
add esi, 4
mov edi, dword [esp + 0x34]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [edi + 8]
jl 0x101627d0
mov eax, dword [esp + 0x38]
push dword [esp + 0x3c]
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov ecx, dword [esp + 0xec]
pop edi
pop esi
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 8
mov ecx, edx
call eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x101620c4