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

Disassembly:
push rbx
push rsi
push rdi
push r13
sub rsp, 0x68
mov r13, rcx
lea rcx, [r8 + 0x10]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1401323be
movzx r9d, byte [rbx + 0x24]
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x60], r12
movzx eax, r9b
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
and al, 1
test r9b, 4
movzx r14d, al
mov eax, 0
lea ecx, [rax + 0xf]
cmove r14d, eax
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 0x10
mov r15d, eax
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 0x15
mov ebp, eax
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 0x14
mov dword [rsp + 0xa0], eax
call qword [sym.imp.USER32.dll_GetSysColor]
mov r12d, eax
xor eax, eax
test byte [rbx + 0x24], 4
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xac], eax
je 0x140132219
lea ecx, [rax + 0x12]
call qword [sym.imp.USER32.dll_GetSysColor]
mov dword [rsp + 0xac], eax
jmp 0x14013222b
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetSysColor]
mov dword [rsp + 0xac], eax
mov eax, dword [rbx + 0x10]
lea rcx, [rsp + 0x30]
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 edx, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x38]
cmp edx, r9d
jle 0x140132265
mov eax, edx
mov edx, r9d
mov dword [rsp + 0x30], edx
mov r9d, eax
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x3c]
cmp ecx, r8d
jle 0x140132283
mov eax, ecx
mov ecx, r8d
mov dword [rsp + 0x34], ecx
mov r8d, eax
mov dword [rsp + 0x3c], eax
sub r9d, edx
test r9b, 1
je 0x140132292
inc edx
mov dword [rsp + 0x30], edx
sub r8d, ecx
test r8b, 1
je 0x1401322a1
inc ecx
mov dword [rsp + 0x34], ecx
cmp dword [rbx + 0x20], 1
jne 0x1401322ae
mov dword [rbx + 0x20], 0x15
test byte [rbx + 0x24], 0x20
movsxd rax, dword [rbx + 0x20]
lea rsi, [0x14026bd00]
mov rsi, qword [rsi + rax*8]
jne 0x1401322de
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x30]
dec edx
dec ecx
mov r8d, r15d
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], ecx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400194c0
test byte [rbx + 0x24], 2
movaps xmm5, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm5
je 0x14013231e
mov edx, 1
lea rcx, [rsp + 0x40]
mov r8d, edx
call qword [sym.imp.USER32.dll_OffsetRect]
mov rax, qword [r13]
lea rcx, [rsp + 0xa8]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9, rsi
mov rdx, rdi
mov rcx, r13
call qword [rax + 0x1a8]
movzx r11d, byte [rbx + 0x24]
movzx eax, r11b
shr al, 2
and al, 1
je 0x140132361
test r11b, 2
je 0x140132361
mov r9d, r12d
mov r8d, ebp
jmp 0x14013239a
test al, al
je 0x140132394
test r14b, r14b
je 0x140132394
mov r9d, dword [rsp + 0xa0]
lea rdx, [rsp + 0x30]
mov r8d, r15d
mov rcx, rdi
call fcn.14001984c
or r8d, 0xffffffff
lea rcx, [rsp + 0x30]
or edx, r8d
call qword [sym.imp.USER32.dll_InflateRect]
mov r9d, ebp
mov r8d, r12d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14001984c
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0x50]
add rsp, 0x68
pop r13
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call qword [rax + 0x48]
test al, al
jne 0x140132692
movzx eax, byte [rbx + 0x24]
test al, 8
je 0x140132692
test al, 0x20
je 0x140132692
mov rcx, qword [rbx]
lea rdx, str.CExtBarNcAreaButtonMenu
call fcn.14001b150
test eax, eax
je 0x140132675
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
call qword [rax + 0x3d8]
test al, al
jne 0x140132692
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp method.CExtPaintManager.virtual_496
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401323d0