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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x1023c014]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
push edi
test edx, edx
je 0x10164e3e
mov eax, dword [edx + 0x58]
test eax, eax
je 0x10164e3e
mov eax, dword [eax + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x10164e3e
mov ebx, dword [ebx + 0x5c]
jmp 0x10164e40
xor ebx, ebx
test edx, edx
je 0x10164e49
mov edi, dword [edx + 0x58]
jmp 0x10164e4b
xor edi, edi
mov dword [esp + 0x10], edi
test ebx, ebx
je 0x101652e9
test edi, edi
je 0x101652e9
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
call fcn.1001bad0
mov ecx, dword [edi]
mov dword [esp + 0x44], eax
mov edx, dword [ecx + 0x74]
cmp edx, sym.HncOfficeFramework.dll_public_virtual:_class_CHDCHeaderCtrl____thiscall_CHDCListCtrl::GetHeaderCtrl_void_const
jne 0x10165300
mov ecx, dword [edi + 4]
mov esi, dword [ecx + 4]
test esi, esi
jne 0x10164e94
lea eax, [esi + 0x48]
neg esi
sbb esi, esi
and esi, eax
jmp 0x10164ea0
mov esi, dword [esi + 0x5c]
lea eax, [esi + 0x48]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ecx + 4]
mov edx, ecx
test eax, eax
je 0x10164eb0
mov edi, dword [eax + 0x5c]
test edi, edi
jne 0x10164eba
mov dword [esp + 0xc], 0
jmp 0x10164ecc
mov eax, dword [edi + 0x3c]
sub eax, dword [edi + 0x38]
mov dword [esp + 0xc], eax
sar dword [esp + 0xc], 2
mov eax, dword [ecx + 4]
test eax, eax
jne 0x10164ed6
mov dword [esp + 0x2c], eax
jmp 0x10164ee2
mov eax, dword [eax + 0x5c]
mov ecx, edx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x10164ef5
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x10164ef5
mov ecx, dword [ecx + 0x44]
jmp 0x10164ef7
xor ecx, ecx
and ecx, 4
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x34], ecx
je 0x10164f1a
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
jmp 0x10164f4f
test eax, eax
je 0x10164f2a
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x10164f2a
mov eax, dword [eax + 0x24]
jmp 0x10164f2d
or eax, 0xffffffff
mov edi, dword [esp + 0x10]
mov ecx, edi
push eax
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCListCtrl::SetTopIndex_int_
mov ecx, edi
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealHScrollPos_void_const
mov ecx, edi
mov dword [esp + 0x1c], eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCListCtrl::_GetRealVScrollPos_void_const
mov dword [esp + 0x18], eax
test esi, esi
je 0x10164f7b
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10164f61
xor eax, eax
jmp 0x10164f64
mov eax, dword [ecx + 8]
test eax, 0x10000000
je 0x10164f7b
test ecx, ecx
je 0x10164f7b
and dword [ecx + 8], 0xefffffff
call fcn.1001bbc0
cmp dword [esp + 0xc], 0
jle 0x101652d5
push 0x54
lea eax, [esp + 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x10164fa8
mov eax, dword [esp + 0x20]
mov dword [eax + 8], 0
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x64], eax
test eax, eax
je 0x10164fef
lea ecx, [esp + 0xa4]
push ecx
push 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageInfo]
test eax, eax
je 0x10164fef
mov eax, dword [esp + 0xbc]
sub eax, dword [esp + 0xb4]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xc0]
sub eax, dword [esp + 0xb8]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10164ffe
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
jmp 0x1016501c
mov ecx, edi
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCListCtrl::GetTopIndex_void_const
mov edx, dword [ebx + 0x38]
xor ecx, ecx
test eax, eax
cmovns ecx, eax
mov eax, dword [esp + 0xc]
lea edi, [edx + eax*4]
mov eax, dword [ebp + 0x10]
lea esi, [edx + ecx*4]
cmp esi, edi
je 0x1016522c
xor edx, edx
mov dword [esp + 0x30], edx
jmp 0x10165033
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
test eax, eax
je 0x1016505d
lea eax, [edx + 0x19000]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0x19000
jmp 0x10165099
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x48]
push 0
push eax
mov eax, esi
sub eax, dword [ebx + 0x38]
sar eax, 2
push eax
call fcn.10164b90
push dword [esp + 0x14]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x101652e9
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
sub ecx, eax
test ecx, 0xfffffffc
jle 0x101650b1
mov eax, dword [eax]
mov dword [esp + 0x24], eax
jmp 0x101650b9
mov dword [esp + 0x24], 0
call dword [sym.imp.HncFoundation.dll__HncLayoutIsR2L_0]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x101650e3
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 4]
test dword [esp + 0x2c], 0x10000
mov edx, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x7c], 0
mov ecx, dword [edx]
mov dword [esp + 0x58], ecx
jne 0x10165116
and ecx, 0xfffffffe
mov dword [esp + 0x58], ecx
test cl, 2
je 0x10165116
or ecx, 0x10
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x34], 0
mov eax, dword [edx + 4]
mov dword [esp + 0x68], eax
lea eax, [edx + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x84], eax
lea eax, [edx + 0x2c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x80], eax
lea eax, [edx + 0x4c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x88], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x118]
mov dword [esp + 0x7c], eax
je 0x10165171
test ecx, 0xf000
jne 0x10165171
or ecx, 0x1000
mov dword [esp + 0x58], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x4c]
push eax
mov edx, dword [ecx]
mov eax, esi
sub eax, dword [ebx + 0x38]
push 0
sar eax, 2
push eax
push dword [esp + 0x48]
call dword [edx + 0x80]
cmp dword [ebp + 0x10], 0
je 0x101651c6
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], edx
cmp eax, dword [ecx + 8]
jle 0x101651b7
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
movups xmm0, xmmword [esp + 0x48]
movups xmmword [eax + 0x1c], xmm0
jmp 0x10165221
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub eax, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [ecx]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub eax, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [ecx]
push eax
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub eax, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [ecx]
push eax
push dword [esp + 0x48]
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x30]
add esi, 4
cmp esi, edi
jne 0x10165030
cmp dword [ebp + 0x10], 0
je 0x101652e9
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x44]
push 3
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x2b4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 4]
mov ecx, dword [esi + 0x28]
sub edx, eax
sub ecx, dword [esi + 0x20]
mov eax, edx
cdq
idiv ecx
mov esi, eax
test esi, esi
jle 0x101652d5
mov edi, dword [esp + 0xc]
xor ecx, ecx
mov eax, edi
cdq
idiv esi
test edx, edx
setne cl
add ecx, eax
mov eax, dword [esp + 0x20]
imul ecx, dword [eax + 8]
mov dword [ebx + 0x120], ecx
mov eax, dword [ebx + 0x38]
cmp edi, esi
jge 0x101652b1
mov eax, dword [eax + edi*4 - 4]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x124], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [eax + esi*4 - 4]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x124], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x120], 0
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edi
call edx
mov ecx, dword [edi + 4]
mov esi, eax
jmp 0x10164ea0