Function at 0x10163a40
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, ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [eax + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
push edi
test esi, esi
je 0x10163a8d
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10163a8d
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
test edi, edi
je 0x10163a8d
mov edi, dword [edi + 0x5c]
jmp 0x10163a8f
xor edi, edi
mov dword [esp + 0x28], edi
test esi, esi
je 0x10163a9c
mov esi, dword [esi + 0x58]
jmp 0x10163a9e
xor esi, esi
mov dword [esp + 0x30], esi
test edi, edi
je 0x10163fa3
test esi, esi
je 0x10163fa3
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
call fcn.1001bad0
mov ecx, dword [esi]
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x74]
cmp edx, sym.HncOfficeFramework.dll_public_virtual:_class_CHDCHeaderCtrl____thiscall_CHDCListCtrl::GetHeaderCtrl_void_const
jne 0x10163fb9
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x10163aeb
lea eax, [ecx + 0x48]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x10163afb
mov ecx, dword [ecx + 0x5c]
lea eax, [ecx + 0x48]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x10163b18
mov ecx, dword [ecx + 0x5c]
test ecx, ecx
je 0x10163b18
mov eax, dword [ecx + 0x3c]
sub eax, dword [ecx + 0x38]
sar eax, 2
mov dword [esp + 0x14], eax
jmp 0x10163b20
mov dword [esp + 0x14], 0
cmp dword [ebp + 0x10], 0
je 0x10163b51
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x10163b67
mov ecx, esi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealHScrollPos_void_const
mov ecx, esi
mov dword [esp + 0x20], eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealVScrollPos_void_const
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10163b97
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10163b7d
xor eax, eax
jmp 0x10163b80
mov eax, dword [ecx + 8]
test eax, 0x10000000
je 0x10163b97
test ecx, ecx
je 0x10163b97
and dword [ecx + 8], 0xefffffff
call fcn.1001bbc0
cmp dword [esp + 0x14], 0
jle 0x10163f8f
push 0x54
lea eax, [esp + 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x110]
add esp, 0xc
mov dword [esp + 0x5c], eax
test eax, eax
je 0x10163bfa
lea ecx, [esp + 0xa0]
push ecx
push 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
test eax, eax
je 0x10163bfa
mov eax, dword [esp + 0xb8]
sub eax, dword [esp + 0xb0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xbc]
sub eax, dword [esp + 0xb4]
mov dword [esp + 0x64], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [edi + 0x3c]
mov esi, dword [edi + 0x38]
mov dword [esp + 0x24], eax
je 0x10163d09
mov ecx, dword [esp + 0x10]
push 0x26
mov eax, dword [ecx]
mov eax, dword [eax + 0x2b4]
call eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 0x26
mov dword [edx + 0xc], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x2b4]
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 8]
sub eax, dword [edx]
mov ecx, dword [ecx + 0xc]
cdq
idiv ecx
mov edx, dword [esp + 0x18]
mov dword [edx + 8], eax
imul eax, ecx
mov dword [edi + 0x120], eax
mov ecx, dword [edx + 8]
mov eax, dword [esp + 0x14]
cdq
idiv ecx
xor ecx, ecx
mov dword [esp + 0x14], 0
test edx, edx
mov edx, dword [esp + 0x18]
setne cl
add ecx, eax
mov eax, dword [esp + 0x24]
imul ecx, dword [edx + 0x10]
sub eax, esi
add eax, 3
xor edx, edx
shr eax, 2
cmp esi, dword [esp + 0x24]
cmova eax, edx
mov dword [edi + 0x124], ecx
mov dword [esp + 0x34], eax
test eax, eax
je 0x10163fa3
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop dword [eax + eax]
mov edi, dword [esi]
mov dword [edi + 0x20], ecx
call dword [sym.imp.HncFoundation.dll__HncLayoutIsR2L_0]
mov ecx, dword [esp + 0x18]
lea esi, [esi + 4]
mov dword [edi + 0x1c], 0
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x24], eax
mov ecx, dword [ecx + 0x10]
mov eax, dword [edi + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x34]
jne 0x10163cb0
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0xc
push 0x54
lea eax, [esp + 0xd4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
or ecx, 0xffffffff
add esp, 0xc
mov dword [esp + 0x14], ecx
cmp esi, dword [esp + 0x24]
je 0x10163fa3
nop
mov edi, dword [esi]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
sub ecx, eax
test ecx, 0xfffffffc
jle 0x10163d4a
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x10163d52
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x40]
push 0x1000
push eax
mov eax, esi
sub eax, dword [ecx + 0x38]
mov ecx, dword [esp + 0x20]
sar eax, 2
push eax
call fcn.10163720
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc0]
xorps xmm0, xmm0
push eax
movaps xmmword [esp + 0xa4], xmm0
call sym.HncOfficeFramework.dll_public:_void___thiscall_CHDCScrollItem::GetScrollRect_struct_tagRECT__const
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x10163ed8
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov eax, dword [edi]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
lea eax, [edi + 0x3c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x2c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
lea eax, [edi + 0x4c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x118]
mov dword [esp + 0x74], eax
test byte [edi], 1
je 0x10163e5b
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 [ecx + 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 + 0x14], eax
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x40]
push 0
push eax
mov eax, esi
sub eax, dword [ecx + 0x38]
mov ecx, edi
mov edx, dword [edi]
push 0
sar eax, 2
push eax
push dword [esp + 0x44]
call dword [edx + 0x80]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
sub eax, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [ecx]
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
sub eax, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [ecx]
push eax
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
sub eax, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [ecx]
push eax
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x10163edc
mov edi, dword [esp + 0x30]
add esi, 4
cmp esi, dword [esp + 0x24]
jne 0x10163d30
mov ecx, dword [esp + 0x14]
test ecx, ecx
js 0x10163fa3
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
sub eax, esi
sar eax, 2
cmp eax, ecx
jbe 0x10163fc9
mov eax, dword [edi]
lea edx, [esp + 0xd0]
mov esi, dword [esi + ecx*4]
push 0
push edx
push 0
push ecx
push dword [esp + 0x44]
mov ecx, edi
call dword [eax + 0x80]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
sub eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [edi]
push eax
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x1c]
sub eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [edi]
push eax
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x1c]
sub eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [edi]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call edx
mov edx, dword [esi + 4]
mov dword [esp + 0x24], eax
jmp 0x10163afb
call fcn.10014370
int3