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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
and byte [rcx + 8], 0xf8
mov r12, qword [rsp + 0xc0]
mov dword [rcx + 0xc], r9d
xor r13d, r13d
and r8b, 1
lea rax, vtable.CExtPaintManager::PAINTSCROLLBARDATA.0
mov qword [rcx], rax
xor eax, eax
or r8b, 2
shl r8b, 2
mov rsi, rdx
mov rdi, rcx
or byte [rcx + 8], r8b
mov dword [rcx + 0x10], r13d
mov dword [rcx + 0x14], r13d
mov dword [rcx + 0x18], r13d
mov dword [rcx + 0x1c], r13d
mov dword [rcx + 0x20], r13d
mov dword [rcx + 0x24], r13d
mov dword [rcx + 0x28], r13d
mov dword [rcx + 0x2c], r13d
mov dword [rcx + 0x30], r13d
mov dword [rcx + 0x34], r13d
mov dword [rcx + 0x38], r13d
mov dword [rcx + 0x3c], r13d
mov dword [rcx + 0x40], r13d
mov dword [rcx + 0x44], r13d
mov dword [rcx + 0x48], r13d
mov dword [rcx + 0x4c], r13d
mov dword [rcx + 0x50], r13d
mov dword [rcx + 0x54], r13d
mov dword [rcx + 0x58], r13d
mov dword [rcx + 0x5c], r13d
mov dword [rcx + 0x60], r13d
mov dword [rcx + 0x64], r13d
mov dword [rcx + 0x68], r13d
mov dword [rcx + 0x6c], r13d
mov qword [rcx + 0x80], rdx
mov qword [rcx + 0x88], r12
mov dword [rcx + 0x90], 0x1c
mov dword [rcx + 0x90], eax
mov dword [rcx + 0x94], eax
mov dword [rcx + 0x98], eax
mov dword [rcx + 0x9c], eax
mov dword [rcx + 0xa0], eax
mov dword [rcx + 0xa4], eax
mov dword [rcx + 0xa8], eax
test rdx, rdx
je 0x1400a9162
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x290]
test eax, eax
je 0x1400a8aab
cmp eax, 1
je 0x1400a8aab
cmp eax, 2
je 0x1400a8aa7
cmp eax, 3
jne 0x1400a9162
xor eax, eax
jmp 0x1400a8aad
mov al, 1
and byte [rdi + 8], 0xfe
and al, 1
lea rdx, [rdi + 0x10]
or byte [rdi + 8], al
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetClientRect]
xor r11d, r11d
mov rcx, rsi
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x4c], r11d
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x54], r11d
mov dword [rsp + 0x58], r11d
call fcn.14000a7dc
lea r8, [rsp + 0x40]
test eax, eax
je 0x1400a8b9c
or byte [rdi + 8], 2
mov r9d, 0x17
mov rcx, rsi
lea edx, [r9 - 0x15]
mov dword [rsp + 0x40], 0x1c
call fcn.14000f978
test eax, eax
jne 0x1400a8b54
mov rcx, qword [rsi + 0x40]
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x48]
lea edx, [rax + 2]
call qword [sym.imp.USER32.dll_GetScrollRange]
mov rcx, qword [rsi + 0x40]
mov edx, 2
mov dword [rsp + 0x50], r13d
call qword [sym.imp.USER32.dll_GetScrollPos]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], eax
mov r9d, 0x1c
lea r8, [rsp + 0x40]
lea rcx, [rdi + 0x90]
mov rdx, r9
call fcn.14002f9cc
mov eax, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
mov ebp, dword [rsp + 0x4c]
sub r11d, eax
sub ecx, eax
mov edx, r13d
sub ebp, eax
mov dword [rsp + 0x4c], ebp
mov dword [rsp + 0x58], r11d
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x48], edx
jmp 0x1400a8bc2
mov r9d, 0x1c
lea rcx, [rdi + 0x90]
mov rdx, r9
call fcn.14002f9cc
mov r11d, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
mov ebp, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x48]
cmp edx, ebp
mov r8d, dword [rsp + 0x50]
jge 0x1400a8bfe
cmp ebp, 0x7ffffffe
jge 0x1400a8bfe
test r8d, r8d
je 0x1400a8bfe
mov eax, ebp
sub eax, edx
cmp r8d, eax
jne 0x1400a8bfe
inc ebp
mov dword [rsp + 0x4c], ebp
test ecx, ecx
jle 0x1400a8bf1
inc ecx
mov dword [rsp + 0x54], ecx
test r11d, r11d
jle 0x1400a8bfe
inc r11d
mov dword [rsp + 0x58], r11d
mov dword [rsp + 0xb0], r13d
mov ebx, r13d
mov r13d, ebp
sub r13d, edx
lea rdx, str.CExtZoomScrollBar
mov rcx, rsi
sub r13d, r8d
inc r13d
call fcn.14001b150
test eax, eax
je 0x1400a8d60
lea rbx, [rsi + 0xa8]
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0x20]
movzx edx, byte [rdi + 8]
mov r9, r12
mov r10, qword [rax]
mov r8, rsi
and dl, 1
mov rcx, rax
mov byte [rsp + 0x20], 0
call qword [r10 + 0x470]
test rax, rax
je 0x1400a8d38
lea rsi, [rax + 0x1d0]
add rax, 0x200
mov rcx, rbx
mov qword [rsp + 0xc0], rax
mov rax, qword [rbx]
call qword [rax + 0x20]
test byte [rdi + 8], 1
lea rdx, [rsp + 0xa8]
mov r12, rax
mov qword [rsp + 0xa0], rax
mov rcx, rsi
je 0x1400a8ce9
call fcn.1400b8ee0
mov rcx, qword [rsp + 0xc0]
lea rdx, [rsp + 0xa8]
mov ebx, dword [rax]
call fcn.1400b8ee0
xor r8d, r8d
mov esi, dword [rax]
mov rax, qword [r12]
mov edx, ebx
mov rcx, r12
call qword [rax + 0x20]
mov rcx, qword [rsp + 0xa0]
xor r8d, r8d
mov r9, qword [rcx]
mov edx, esi
mov r12d, eax
call qword [r9 + 0x20]
mov ebx, eax
jmp 0x1400a8dad
call fcn.1400b8ee0
mov rcx, qword [rsp + 0xc0]
lea rdx, [rsp + 0xa8]
mov ebx, dword [rax + 4]
call fcn.1400b8ee0
mov r8d, 1
mov esi, dword [rax + 4]
mov rax, qword [r12]
mov edx, ebx
mov rcx, r12
call qword [rax + 0x20]
mov rcx, qword [rsp + 0xa0]
mov r8d, 1
mov r12d, eax
mov rax, qword [rcx]
mov edx, esi
call qword [rax + 0x20]
mov ebx, eax
jmp 0x1400a8dad
test byte [rdi + 8], 1
je 0x1400a8d4f
mov r12d, dword [rsi + 0x22c]
mov esi, dword [rsi + 0x234]
mov ebx, esi
jmp 0x1400a8dad
mov r12d, dword [rsi + 0x230]
mov esi, dword [rsi + 0x238]
mov ebx, esi
jmp 0x1400a8dad
test byte [rdi + 8], 1
je 0x1400a8d75
mov r12d, dword [rsi + 0x22c]
mov esi, dword [rsi + 0x234]
jmp 0x1400a8d82
mov r12d, dword [rsi + 0x230]
mov esi, dword [rsi + 0x238]
test r13d, r13d
jle 0x1400a8dad
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jne 0x1400a8d9c
mov ebx, r12d
test r12d, r12d
jne 0x1400a8dad
lea ebx, [rcx + 6]
jmp 0x1400a8dad
cmp ebp, ecx
jle 0x1400a8dad
xor edx, edx
mov eax, ebp
div ecx
mov dword [rsp + 0xb0], eax
movzx edx, byte [rdi + 8]
test dl, 2
jne 0x1400a8dba
xor esi, esi
xor ebx, ebx
mov ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0x14]
lea r9, [rsp + 0x30]
mov dword [r9], ecx
mov dword [r9 + 4], eax
mov eax, dword [rdi + 0x18]
mov dword [r9 + 8], eax
mov eax, dword [rdi + 0x1c]
mov dword [rdi + 0x40], ecx
mov dword [r9 + 0xc], eax
mov eax, dword [rdi + 0x14]
mov dword [rdi + 0x50], ecx
mov dword [rdi + 0x44], eax
mov eax, dword [rdi + 0x18]
lea rcx, [rsp + 0x30]
mov dword [rdi + 0x48], eax
mov eax, dword [rdi + 0x1c]
mov dword [rdi + 0x4c], eax
mov eax, dword [rdi + 0x14]
mov dword [rdi + 0x54], eax
mov eax, dword [rdi + 0x18]
mov dword [rdi + 0x58], eax
mov eax, dword [rdi + 0x1c]
mov dword [rdi + 0x5c], eax
test dl, 1
je 0x1400a8f8d
mov edx, r12d
xor r8d, r8d
neg edx
call qword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [rdi + 0x40]
mov edx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
lea ecx, [r12 + rax]
mov eax, dword [rdi + 0x58]
sub eax, r12d
mov dword [rdi + 0x48], ecx
mov ecx, edx
lea r12, [rdi + 0x50]
sub ecx, r8d
cmp ecx, 5
mov dword [r12], eax
jle 0x1400a8f36
test ebx, ebx
jne 0x1400a8e74
cmp dword [rsp + 0xb0], ebx
je 0x1400a8e74
mov edx, dword [rsp + 0x50]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
mov ebx, eax
test byte [rdi + 8], 2
je 0x1400a8e7f
cmp ebx, esi
cmovl ebx, esi
test ebx, ebx
je 0x1400a8f36
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov dword [rdi + 0x60], eax
mov eax, dword [rcx + 4]
mov dword [rdi + 0x64], eax
mov eax, dword [rcx + 8]
mov dword [rdi + 0x68], eax
mov eax, dword [rcx + 0xc]
mov dword [rdi + 0x6c], eax
mov eax, dword [rdi + 0x60]
lea ecx, [rbx + rax]
mov dword [rdi + 0x68], ecx
test r13d, r13d
jle 0x1400a8f36
mov ecx, eax
mov ebp, 0
sub ecx, dword [rdi + 0x68]
sub ecx, r8d
mov r8d, r13d
add ecx, edx
mov edx, dword [rsp + 0x58]
cmovs ecx, ebp
call qword [sym.imp.KERNEL32.dll_MulDiv]
lea rcx, [rdi + 0x60]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.USER32.dll_OffsetRect]
mov r11d, dword [rsp + 0x58]
lea rbx, [rdi + 0x20]
test r11d, r11d
jle 0x1400a8f12
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov dword [rbx], eax
mov eax, dword [rcx + 4]
mov dword [rbx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rbx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rbx + 0xc], eax
mov eax, dword [rdi + 0x60]
mov dword [rdi + 0x28], eax
cmp r11d, r13d
jge 0x1400a8f3c
lea rcx, [rsp + 0x30]
mov eax, dword [rcx + 4]
mov dword [rdi + 0x34], eax
mov eax, dword [rcx + 8]
mov dword [rdi + 0x38], eax
mov eax, dword [rcx + 0xc]
mov dword [rdi + 0x3c], eax
mov eax, dword [rdi + 0x68]
mov dword [rdi + 0x30], eax
jmp 0x1400a8f3c
lea rbx, [rdi + 0x20]
xor ebp, ebp
lea rsi, [rdi + 0x40]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1400a9131
mov rcx, r12
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1400a9131
mov eax, dword [r12]
cmp dword [rdi + 0x48], eax
jle 0x1400a9131
mov r8d, dword [rsi]
mov eax, dword [rdi + 0x58]
sub eax, r8d
cdq
sub eax, edx
sar eax, 1
lea edx, [rax + r8]
mov dword [r12], edx
mov dword [rdi + 0x48], edx
jmp 0x1400a90f0
mov r8d, r12d
xor edx, edx
neg r8d
call qword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [rdi + 0x44]
mov edx, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
lea ecx, [r12 + rax]
mov eax, dword [rdi + 0x5c]
mov dword [rdi + 0x4c], ecx
sub eax, r12d
mov ecx, edx
sub ecx, r8d
mov dword [rdi + 0x54], eax
cmp ecx, 5
jle 0x1400a90ab
test ebx, ebx
jne 0x1400a8fea
cmp dword [rsp + 0xb0], ebx
je 0x1400a8fea
mov edx, dword [rsp + 0x50]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov ebx, eax
test byte [rdi + 8], 2
je 0x1400a8ff5
cmp ebx, esi
cmovl ebx, esi
test ebx, ebx
je 0x1400a90ab
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov dword [rdi + 0x60], eax
mov eax, dword [rcx + 4]
mov dword [rdi + 0x64], eax
mov eax, dword [rcx + 8]
mov dword [rdi + 0x68], eax
mov eax, dword [rcx + 0xc]
mov dword [rdi + 0x6c], eax
mov eax, dword [rdi + 0x64]
lea ecx, [rbx + rax]
mov dword [rdi + 0x6c], ecx
test r13d, r13d
jle 0x1400a90ab
mov ecx, eax
mov ebp, 0
sub ecx, dword [rdi + 0x6c]
sub ecx, r8d
mov r8d, r13d
add ecx, edx
mov edx, dword [rsp + 0x58]
cmovs ecx, ebp
call qword [sym.imp.KERNEL32.dll_MulDiv]
lea rcx, [rdi + 0x60]
xor edx, edx
mov r8d, eax
call qword [sym.imp.USER32.dll_OffsetRect]
mov r11d, dword [rsp + 0x58]
lea rbx, [rdi + 0x20]
test r11d, r11d
jle 0x1400a9088
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov dword [rbx], eax
mov eax, dword [rcx + 4]
mov dword [rbx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rbx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rbx + 0xc], eax
mov eax, dword [rdi + 0x64]
mov dword [rdi + 0x2c], eax
cmp r11d, r13d
jge 0x1400a90b1
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov dword [rdi + 0x30], eax
mov eax, dword [rcx + 8]
mov dword [rdi + 0x38], eax
mov eax, dword [rcx + 0xc]
mov dword [rdi + 0x3c], eax
mov eax, dword [rdi + 0x6c]
mov dword [rdi + 0x34], eax
jmp 0x1400a90b1
lea rbx, [rdi + 0x20]
xor ebp, ebp
lea rsi, [rdi + 0x40]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsRectEmpty]
lea r12, [rdi + 0x50]
test eax, eax
jne 0x1400a9131
mov rcx, r12
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1400a9131
mov eax, dword [rdi + 0x54]
cmp dword [rdi + 0x4c], eax
jle 0x1400a9131
mov ecx, dword [rdi + 0x44]
mov eax, dword [rdi + 0x5c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [rdi + 0x54], ecx
mov dword [rdi + 0x4c], ecx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_SetRect]
lea rcx, [rdi + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_SetRect]
lea rcx, [rdi + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_SetRect]
test byte [rdi + 8], 1
lea rcx, [rdi + 0x70]
je 0x1400a914b
mov eax, dword [rdi + 0x5c]
mov r9d, dword [r12]
mov r8d, dword [rdi + 0x44]
mov edx, dword [rdi + 0x48]
jmp 0x1400a9158
mov eax, dword [rdi + 0x54]
mov r9d, dword [rdi + 0x58]
mov r8d, dword [rdi + 0x4c]
mov edx, dword [rsi]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetRect]
mov rax, rdi
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret