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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1401737a8]
xor rax, rsp
mov qword [rbp + 0x27], rax
cmp dword [rcx + 0x64], 0xffffffff
mov rbx, rdx
mov rsi, rcx
jne 0x14006c8e3
mov ecx, dword [rcx + 0x28]
cmp ecx, 0xffffffff
je 0x14006c8e3
cmp byte [rsi], 0
mov edx, dword [rsi + 0x18]
mov r8d, dword [rsi + 0x1c]
je 0x14006c6c4
lea eax, [rcx + rdx]
mov dword [rbp - 0x15], r8d
mov dword [rbp - 0x19], eax
lea eax, [rcx + rdx]
add eax, dword [rsi + 0x3c]
add eax, dword [rsi + 0x4c]
mov dword [rbp - 0x11], eax
mov eax, dword [rsi + 0x24]
mov dword [rbp - 0xd], eax
jmp 0x14006c6e0
lea eax, [rcx + r8]
mov dword [rbp - 0x19], edx
add ecx, dword [rsi + 0x3c]
add ecx, r8d
mov dword [rbp - 0x15], eax
add ecx, dword [rsi + 0x4c]
mov eax, dword [rsi + 0x20]
mov dword [rbp - 0xd], ecx
mov dword [rbp - 0x11], eax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
mov eax, dword [rsi + 0x60]
test al, 0x20
je 0x14006c76f
cmp byte [rsi], 0
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
je 0x14006c712
mov eax, dword [rbp - 0x19]
inc eax
mov dword [rbp - 1], eax
jmp 0x14006c71f
mov rax, qword [rbp - 0x19]
shr rax, 0x20
inc eax
mov dword [rbp + 3], eax
mov r8d, 6
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
cmp byte [rsi], 0
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
je 0x14006c74a
mov eax, dword [rbp - 0x11]
dec eax
mov dword [rbp - 9], eax
jmp 0x14006c757
mov rax, qword [rbp - 0x11]
shr rax, 0x20
dec eax
mov dword [rbp - 5], eax
mov r8d, reloc.COMCTL32.dll_InitCommonControls
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
jmp 0x14006c8ae
test al, 8
je 0x14006c8ae
movaps xmm0, xmmword [rbp - 0x19]
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], r12
movzx r12d, byte [rsi]
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
movdqa xmmword [rbp - 9], xmm0
test r12b, r12b
je 0x14006c7be
mov eax, dword [rbp - 0x19]
add eax, dword [rbp - 0x11]
mov r15d, dword [rbp - 5]
cdq
sub eax, edx
sar eax, 1
lea r14d, [rax - 1]
jmp 0x14006c7d1
mov eax, dword [rbp - 0xd]
add eax, dword [rbp - 0x15]
mov r14d, dword [rbp - 9]
cdq
sub eax, edx
sar eax, 1
lea r15d, [rax - 1]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, reloc.WS2_32.dll_ntohs
mov edi, eax
call qword [sym.imp.USER32.dll_GetSysColor]
mov edx, 0xff00
mov dword [rbp + 7], r14d
movzx ecx, al
lea r9, [rbp - 9]
shl cx, 8
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov word [rbp + 0xf], cx
mov r8d, 2
movzx ecx, ax
mov dword [rbp + 0xb], r15d
shr eax, 0x10
and cx, dx
movzx eax, al
shl ax, 8
mov word [rbp + 0x13], ax
mov eax, dword [rbp - 1]
mov dword [rbp + 0x17], eax
mov eax, dword [rbp + 3]
mov dword [rbp + 0x1b], eax
movzx eax, dil
shl ax, 8
mov word [rbp + 0x1f], ax
movzx eax, di
and ax, dx
mov word [rbp + 0x11], cx
xor ecx, ecx
shr edi, 0x10
mov word [rbp + 0x21], ax
lea rdx, [rbp + 7]
mov word [rbp + 0x15], cx
mov word [rbp + 0x25], cx
mov dword [rbp - 9], ecx
movzx eax, dil
shl ax, 8
test r12b, r12b
mov word [rbp + 0x23], ax
mov dword [rbp - 5], 1
sete cl
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov dword [rsp + 0x20], 1
call qword [sym.imp.MSIMG32.dll_GradientFill]
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r12, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xb8]
mov rcx, qword [rsi - 0x40]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 9
jae 0x14006c8e3
cmp byte [rsi], 0
lea rdx, [rbp - 0x19]
mov r9d, 0xa
mov r8d, 5
cmovne r9d, r8d
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawEdge]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400e17a0
add rsp, 0x90
pop rsi
pop rbx
pop rbp
ret