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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rbx, r8
mov rbp, rdx
mov rsi, rcx
lea rcx, [r8 + 0x10]
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x14016d474
mov rcx, rbx
call fcn.1401443a0
mov byte [rsp + 0x118], al
movzx ecx, byte [rbx + 0x78]
test cl, 0x40
jne 0x14016cc14
and byte [rbx + 0x79], 0xfe
and cl, 0xdb
mov byte [rbx + 0x78], cl
movzx ecx, byte [rbx + 0x79]
test cl, 0x10
je 0x14016cc2f
movzx eax, byte [rbx + 0x78]
test al, 8
jne 0x14016cc2a
test cl, 0x40
je 0x14016cc2f
and al, 0xfb
mov byte [rbx + 0x78], al
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.GDI32.dll_GetTextColor]
mov dword [rsp + 0x78], eax
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.GDI32.dll_GetBkColor]
mov dword [rsp + 0x74], eax
mov edx, 1
mov rcx, rbp
call fcn.14000ba0c
mov dword [rsp + 0x70], eax
xor r14d, r14d
mov r13, r14
mov qword [rsp + 0x50], r14
mov r15d, dword [rbx + 0x90]
cmp r15d, 0xffffffff
jne 0x14016cce5
movzx eax, byte [rbx + 0x78]
test al, 4
jne 0x14016ccca
test al, 8
jne 0x14016ccca
test al, 0x20
je 0x14016ccad
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3e9
mov rcx, rsi
call qword [rax + 0x150]
mov r15d, eax
lea r13, [rsi + 0x138]
mov qword [rsp + 0x50], r13
jmp 0x14016cce5
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3e8
mov rcx, rsi
call qword [rax + 0x150]
mov r15d, eax
jmp 0x14016cce5
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3e9
mov rcx, rsi
call qword [rax + 0x150]
mov r15d, eax
xor dil, dil
mov byte [rsp + 0x110], dil
movzx r8d, byte [rbx + 0x78]
test r8b, 8
je 0x14016cd04
movzx ecx, byte [rbx + 0x79]
test cl, 0x10
je 0x14016cd0c
mov cl, byte [rbx + 0x79]
test cl, 0x40
je 0x14016cd17
mov dil, 1
mov byte [rsp + 0x110], dil
lea rdx, [rsp + 0x60]
mov eax, dword [rbx + 0x10]
mov dword [rdx], eax
mov eax, dword [rbx + 0x14]
mov dword [rdx + 4], eax
mov eax, dword [rbx + 0x18]
mov dword [rdx + 8], eax
mov eax, dword [rbx + 0x1c]
mov dword [rdx + 0xc], eax
lea rdx, [rsp + 0x30]
mov eax, dword [rbx + 0x10]
mov dword [rdx], eax
mov eax, dword [rbx + 0x14]
mov dword [rdx + 4], eax
mov eax, dword [rbx + 0x18]
mov dword [rdx + 8], eax
mov eax, dword [rbx + 0x1c]
mov dword [rdx + 0xc], eax
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x4c], r14d
test cl, 4
je 0x14016cf24
lea rcx, [rsp + 0x40]
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
mov eax, dword [rbx + 0x14]
mov dword [rcx + 4], eax
mov eax, dword [rbx + 0x18]
mov dword [rcx + 8], eax
mov eax, dword [rbx + 0x1c]
mov dword [rcx + 0xc], eax
and r8b, 1
je 0x14016cddc
cmp byte [rsp + 0x118], r14b
je 0x14016cdba
mov rax, qword [rsi]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [rax + 0x200]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov dword [rsp + 0x30], ecx
lea eax, [rcx + 1]
mov dword [rsp + 0x48], eax
jmp 0x14016cdff
mov rax, qword [rsi]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [rax + 0x200]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov dword [rsp + 0x38], ecx
lea eax, [rcx - 1]
mov dword [rsp + 0x40], eax
jmp 0x14016cdff
mov rax, qword [rsi]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rsi
call qword [rax + 0x200]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov dword [rsp + 0x3c], ecx
lea eax, [rcx - 1]
mov dword [rsp + 0x44], eax
test byte [rbx + 0x79], 8
je 0x14016ce0e
cmp dword [rbx + 0x90], 0xffffffff
je 0x14016ce5e
movzx eax, byte [rbx + 0x78]
test al, 0x40
je 0x14016ce4e
test dil, dil
je 0x14016ce4e
test al, 4
je 0x14016ce4e
cmp dword [rbx + 0x90], 0xffffffff
jne 0x14016ce4e
lea rax, [rsi + 0xa8]
test rax, rax
jne 0x14016ce39
mov r8, r14
jmp 0x14016ce3d
mov r8, qword [rax + 8]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_FillRect]
jmp 0x14016ce5e
mov r8d, r15d
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1400194c0
test byte [rbx + 0x79], 0x10
je 0x14016cf24
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
test dil, dil
je 0x14016cecf
movzx eax, byte [rbx + 0x78]
test al, 2
je 0x14016ce88
test al, al
jns 0x14016cf24
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3ef
mov rcx, rsi
call qword [rax + 0x150]
mov edi, eax
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3f2
mov rcx, rsi
call qword [rax + 0x150]
mov r8d, eax
mov r9d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.14001984c
jmp 0x14016cf24
movzx eax, byte [rbx + 0x78]
test al, 2
je 0x14016cedf
test al, 4
je 0x14016cf24
test al, al
jns 0x14016cf24
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3f1
mov rcx, rsi
call qword [rax + 0x150]
mov edi, eax
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3ee
mov rcx, rsi
call qword [rax + 0x150]
mov r8d, eax
mov r9d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.14001984c
test byte [rbx + 0x79], 8
je 0x14016cf33
cmp dword [rbx + 0x90], 0xffffffff
je 0x14016cf9c
movzx eax, byte [rbx + 0x78]
test al, 0x40
je 0x14016cf72
test al, 8
je 0x14016cf72
test al, 4
je 0x14016cf72
cmp dword [rbx + 0x90], 0xffffffff
jne 0x14016cf72
lea rax, [rsi + 0xa8]
test rax, rax
jne 0x14016cf5d
mov r8, r14
jmp 0x14016cf61
mov r8, qword [rax + 8]
lea rdx, [rsp + 0x60]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_FillRect]
jmp 0x14016cf9c
test r13, r13
je 0x14016cf8c
mov r8, qword [r13 + 8]
lea rdx, [rsp + 0x60]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_FillRect]
jmp 0x14016cf9c
mov r8d, r15d
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.1400194c0
movzx eax, byte [rbx + 0x78]
or r13, 0xffffffffffffffff
test al, 8
jne 0x14016d0e3
test al, 0x20
jne 0x14016d0e3
test al, 2
je 0x14016cfc0
test al, 4
je 0x14016d005
test al, al
jns 0x14016d005
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3f1
mov rcx, rsi
call qword [rax + 0x150]
mov edi, eax
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3ee
mov rcx, rsi
call qword [rax + 0x150]
mov r8d, eax
mov r9d, edi
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.14001984c
movzx eax, byte [rbx + 0x78]
test al, 2
jne 0x14016d161
test al, 4
je 0x14016d159
lea rcx, [rsp + 0xa0]
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
mov eax, dword [rbx + 0x14]
mov dword [rcx + 4], eax
mov eax, dword [rbx + 0x18]
mov dword [rcx + 8], eax
mov eax, dword [rbx + 0x1c]
mov dword [rcx + 0xc], eax
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3f4
mov rcx, rsi
call qword [rax + 0x150]
mov edi, eax
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov r12d, 0x3f1
mov edx, r12d
mov rcx, rsi
call qword [rax + 0x150]
mov r8d, eax
mov r9d, edi
lea rdx, [rsp + 0xa0]
mov rcx, rbp
call fcn.14001984c
mov r8d, r13d
mov edx, r13d
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_InflateRect]
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, r12d
mov rcx, rsi
call qword [rax + 0x150]
mov edi, eax
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
lea edx, [r12 - 3]
mov rcx, rsi
call qword [rax + 0x150]
mov r8d, eax
mov r9d, edi
lea rdx, [rsp + 0xa0]
mov rcx, rbp
call fcn.14001984c
jmp 0x14016d16f
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14016d100
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x60]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_FillRect]
movzx eax, byte [rbx + 0x78]
test al, 2
je 0x14016d10c
test al, al
jns 0x14016d169
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3ef
mov rcx, rsi
call qword [rax + 0x150]
mov edi, eax
mov rax, qword [rsi]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, 0x3f2
mov rcx, rsi
call qword [rax + 0x150]
mov r8d, eax
mov r9d, edi
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.14001984c
mov r12d, 0x3f1
jmp 0x14016d16f
mov r12d, 0x3f1
jmp 0x14016d16f
mov r12d, 0x3f1
jmp 0x14016d16f
mov r12d, 0x3f1
movzx eax, byte [rbx + 0x79]
test al, 4
je 0x14016d253
test al, 0x20
jne 0x14016d253
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x90], xmm0
cmp byte [rsp + 0x110], r14b
je 0x14016d1c9
mov rax, qword [rsi]
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call qword [rax + 0x190]
mov rax, qword [rax]
mov r8, rax
shr r8, 0x20
mov edx, eax
lea rcx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_OffsetRect]
mov dword [rsp + 0x50], r14d
mov rax, qword [rsi]
test byte [rbx + 0x78], 0x40
mov ecx, 0x3f7
cmovne r12d, ecx
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov edx, r12d
mov rcx, rsi
call qword [rax + 0x150]
mov dword [rsp + 0x54], eax
cmp byte [rsp + 0x118], r14b
je 0x14016d21c
mov ecx, dword [rsp + 0x98]
mov eax, ecx
sub eax, dword [rsp + 0x90]
test al, 1
je 0x14016d21c
inc ecx
mov dword [rsp + 0x98], ecx
test byte [rbx + 0x78], 1
lea rax, [0x140273798]
lea r9, [0x140273858]
cmovne r9, rax
mov rax, qword [rsi]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x90]
mov rdx, rbp
mov rcx, rsi
call qword [rax + 0x1a8]
mov rax, qword [rbp]
mov edx, r15d
mov rcx, rbp
call qword [rax + 0x58]
mov edx, dword [rsp + 0x30]
add edx, dword [rbx + 0x44]
mov dword [rsp + 0x30], edx
mov eax, dword [rbx + 0x48]
add dword [rsp + 0x34], eax
mov edi, dword [rsp + 0x38]
sub edi, dword [rbx + 0x4c]
mov dword [rsp + 0x38], edi
mov eax, dword [rbx + 0x50]
sub dword [rsp + 0x3c], eax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x80], xmm0
mov rcx, qword [rsp + 0x30]
shr rcx, 0x20
mov rax, qword [rsp + 0x38]
shr rax, 0x20
cmp eax, ecx
jle 0x14016d2dd
cmp edi, edx
jle 0x14016d2dd
mov rax, qword [rsi]
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, rsi
call qword [rax + 0x228]
call fcn.140008c24
mov rcx, rax
test rax, rax
setne r14b
test r14d, r14d
jne 0x14016d2fc
mov ecx, 0x80004005
call fcn.1400052e0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x110], rdi
lea rdx, [0x1401dd700]
test rdx, 0xffffffffffff0000
jne 0x14016d34c
movzx r12d, dx
mov ecx, r12d
call fcn.14001b4a8
test rax, rax
je 0x14016d373
mov r8d, r12d
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.1400060a0
mov rdi, qword [rsp + 0x110]
jmp 0x14016d373
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x110]
call fcn.140005080
mov rdi, qword [rsp + 0x110]
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x14016d3a3
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x110]
call fcn.140005080
mov rdi, qword [rsp + 0x110]
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x3c], eax
jle 0x14016d3d4
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
jle 0x14016d3d4
cmp dword [rdi - 0x10], 0
je 0x14016d3d4
mov rax, qword [rsi]
mov r9, rbx
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
call qword [rax + 0x220]
test byte [rbx + 0x79], 1
je 0x14016d42e
cmp dword [rdi - 0x10], 0
jne 0x14016d3e6
cmp dword [rbx + 0x74], 1
jne 0x14016d42e
mov eax, dword [rsp + 0x84]
cmp dword [rsp + 0x8c], eax
jle 0x14016d42e
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x88], eax
jle 0x14016d42e
mov edx, 0xfffffffe
mov r8d, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_InflateRect]
lea rdx, [rsp + 0x80]
mov rcx, qword [rbp + 8]
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov edx, dword [rsp + 0x70]
mov rcx, rbp
call fcn.14000ba0c
mov r11, qword [rbp]
mov edx, dword [rsp + 0x74]
mov rcx, rbp
call qword [r11 + 0x58]
mov r11, qword [rbp]
mov edx, dword [rsp + 0x78]
mov rcx, rbp
call qword [r11 + 0x60]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x14016d474
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret