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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x1023c014]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], edi
mov esi, dword [edi + 4]
test esi, esi
je 0x10160db6
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10160db6
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10160db6
mov eax, dword [eax + 0x5c]
jmp 0x10160db8
xor eax, eax
mov dword [esp + 0x18], eax
test esi, esi
je 0x10160dc5
mov esi, dword [esi + 0x58]
jmp 0x10160dc7
xor esi, esi
mov dword [esp + 0x28], esi
test eax, eax
je 0x101613d6
test esi, esi
je 0x101613d6
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
cmp eax, sym.HncOfficeFramework.dll_public_virtual:_class_CHDCHeaderCtrl____thiscall_CHDCListCtrl::GetHeaderCtrl_void_const
jne 0x101613ec
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x10160e04
lea eax, [ecx + 0x48]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esp + 8], ecx
jmp 0x10160e14
mov ecx, dword [ecx + 0x5c]
lea eax, [ecx + 0x48]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esp + 8], ecx
mov eax, dword [edx + 4]
test eax, eax
je 0x10160e31
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x10160e31
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x38]
sar ecx, 2
mov dword [esp + 0xc], ecx
jmp 0x10160e39
mov dword [esp + 0xc], 0
lea eax, [edi + 0x24]
mov ecx, esi
push eax
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
cmp dword [ebp + 0xc], 0
je 0x10160e71
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
jmp 0x10160e87
mov ecx, esi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealHScrollPos_void_const
mov ecx, esi
mov dword [esp + 0x14], eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealVScrollPos_void_const
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
test eax, eax
je 0x10160eb7
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10160e9d
xor eax, eax
jmp 0x10160ea0
mov eax, dword [ecx + 8]
test eax, 0x10000000
je 0x10160eb7
test ecx, ecx
je 0x10160eb7
and dword [ecx + 8], 0xefffffff
call fcn.1001bbc0
cmp dword [esp + 0xc], 0
jle 0x101613be
push 0x54
lea eax, [esp + 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esi + 4]
mov ecx, dword [eax + 0x110]
mov dword [esp + 0x5c], ecx
mov eax, dword [edx + 4]
test eax, eax
je 0x10160ef1
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 4]
mov dword [esp + 0x54], eax
mov edx, dword [edx + 4]
test edx, edx
je 0x10160eff
mov edx, dword [edx + 8]
test edx, 0x8000000
je 0x10160f10
or eax, 0x100
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x10160f4d
lea eax, [esp + 0xb0]
push eax
push 0
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
test eax, eax
je 0x10160f4d
mov eax, dword [esp + 0xc8]
sub eax, dword [esp + 0xc0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xcc]
sub eax, dword [esp + 0xc4]
mov dword [esp + 0x64], eax
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x1c]
add ecx, 0x60
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x20]
add eax, 0x60
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x24]
cdq
idiv ecx
mov dword [edi + 8], eax
imul eax, ecx
xor ecx, ecx
mov dword [esi + 0x120], eax
mov eax, dword [esp + 0xc]
cdq
idiv dword [edi + 8]
test edx, edx
setne cl
xor edx, edx
add ecx, eax
mov eax, dword [esp + 8]
imul ecx, dword [edi + 0x18]
mov dword [esi + 0x124], ecx
mov esi, dword [esp + 0x2c]
sub eax, esi
add eax, 3
shr eax, 2
cmp esi, dword [esp + 8]
cmova eax, edx
mov dword [esp + 0x20], eax
test eax, eax
je 0x10161012
mov dword [esp + 0x30], edx
nop
mov edi, dword [esi]
call dword [sym.imp.HncFoundation.dll__HncLayoutIsR2L_0]
mov ecx, dword [esp + 0x34]
lea esi, [esi + 4]
mov edx, dword [esp + 0x30]
mov dword [edi + 0x20], edx
mov dword [edi + 0x1c], 0
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x18]
add eax, edx
add edx, eax
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jne 0x10160fd0
mov edi, ecx
cmp dword [ebp + 0xc], 0
jne 0x101613d6
push 0x54
lea eax, [esp + 0xd4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
or edx, 0xffffffff
add esp, 0xc
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x2c]
mov esi, edx
cmp esi, dword [esp + 8]
je 0x10161285
mov ecx, dword [esi]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
test ecx, 0xfffffffc
jle 0x10161065
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x1016106d
mov dword [esp + 0x1c], 0
mov eax, esi
lea ecx, [esp + 0x40]
push 0
sub eax, edx
sar eax, 2
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.10161810
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xa0]
xorps xmm0, xmm0
push eax
movaps xmmword [esp + 0xb4], xmm0
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x101611df
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [ecx]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
lea eax, [ecx + 0x3c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x20], eax
lea eax, [ecx + 0x2c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], eax
lea eax, [ecx + 0x4c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x118]
mov dword [esp + 0x74], eax
test byte [ecx], 1
je 0x10161174
movaps xmm0, xmmword [esp + 0x40]
mov eax, dword [esp + 0x90]
movaps xmmword [esp + 0xd0], xmm0
movaps xmm0, xmmword [esp + 0x50]
movaps xmmword [esp + 0xe0], xmm0
movaps xmm0, xmmword [esp + 0x60]
mov dword [esp + 0x120], eax
mov eax, esi
sub eax, dword [edx + 0x38]
movaps xmmword [esp + 0xf0], xmm0
movaps xmm0, xmmword [esp + 0x70]
movaps xmmword [esp + 0x100], xmm0
movaps xmm0, xmmword [esp + 0x80]
sar eax, 2
movaps xmmword [esp + 0x110], xmm0
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x40]
push 0
push edx
push 0
push dword [esp + 0x44]
mov eax, dword [ecx]
push dword [esp + 0x34]
call dword [eax + 0x80]
mov eax, dword [esp + 0x10]
sub eax, dword [edi + 0x28]
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x24]
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x10]
sub eax, dword [edi + 0x28]
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x24]
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x10]
sub eax, dword [edi + 0x28]
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x24]
push eax
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x2c]
add esi, 4
cmp esi, dword [esp + 8]
jne 0x10161047
mov edx, dword [esp + 0x30]
test edx, edx
js 0x10161285
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
sub eax, esi
sar eax, 2
cmp eax, edx
jbe 0x101613fc
mov ecx, dword [esp + 0x28]
lea edi, [esp + 0xd0]
mov esi, dword [esi + edx*4]
push 0
push edi
mov eax, dword [ecx]
push 0
push edx
push dword [esp + 0x34]
call dword [eax + 0x80]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
sub eax, dword [edi + 0x28]
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x24]
push eax
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x10]
sub eax, dword [edi + 0x28]
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x24]
push eax
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x10]
sub eax, dword [edi + 0x28]
push eax
mov eax, dword [esp + 0x18]
sub eax, dword [edi + 0x24]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [edi + 0x34], 0
je 0x101613d6
push 0xc0c0c0
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp + 0x38], eax
lea eax, [esp + 0xa0]
push 0
push eax
push 0
call fcn.10161810
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xc]
cdq
idiv dword [edi + 8]
mov dword [esp + 8], 0
test edx, edx
mov dword [esp + 0xc], 1
mov edx, dword [esp + 8]
setne dl
add edx, eax
cmp dword [edi + 8], 1
mov dword [esp + 8], edx
jle 0x1016138d
nop
mov ecx, dword [esp + 0x28]
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCListCtrl::GetItemCount_void_const
cmp dword [esp + 0xc], eax
jg 0x1016138d
push 0
lea eax, [esp + 0xa4]
mov ecx, edi
push eax
mov eax, esi
sub eax, dword [esp + 0x34]
sar eax, 2
push eax
call fcn.10161810
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0x24]
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 + 8]
imul eax, dword [esp + 0x3c]
add eax, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0x28]
push edi
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0xc]
add esi, 4
mov edi, dword [esp + 0x34]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [edi + 8]
jl 0x10161310
mov eax, dword [esp + 0x24]
push dword [esp + 0x38]
push dword [eax + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x18]
mov dword [eax + 0x120], 0
mov dword [eax + 0x124], 0
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call eax
mov edx, dword [esi + 4]
mov dword [esp + 8], eax
jmp 0x10160e14
call fcn.10014370
int3