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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rbp + 0x27], rax
cmp dword [rcx + 0x64], 0xffffffff
mov rbx, rdx
mov rsi, rcx
jne 0x14004a5d1
mov ecx, dword [rcx + 0x28]
cmp ecx, 0xffffffff
je 0x14004a5d1
cmp byte [rsi], 0
mov edx, dword [rsi + 0x18]
mov r8d, dword [rsi + 0x1c]
je 0x14004a3b1
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]
jmp 0x14004a3cb
lea eax, [rcx + r8]
mov dword [rbp - 0x19], edx
mov dword [rbp - 0x15], eax
mov eax, dword [rsi + 0x20]
mov dword [rbp - 0x11], eax
lea eax, [rcx + r8]
add eax, dword [rsi + 0x3c]
add eax, dword [rsi + 0x4c]
mov r8d, 0x10
mov dword [rbp - 0xd], eax
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
mov eax, dword [rsi + 0x60]
test al, 0x20
je 0x14004a45d
cmp byte [rsi], 0
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
je 0x14004a400
mov eax, dword [rbp - 0x19]
inc eax
mov dword [rbp - 1], eax
jmp 0x14004a40d
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 0x14004a438
mov eax, dword [rbp - 0x11]
dec eax
mov dword [rbp - 9], eax
jmp 0x14004a445
mov rax, qword [rbp - 0x11]
shr rax, 0x20
dec eax
mov dword [rbp - 5], eax
mov r8d, 0x11
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
jmp 0x14004a59c
test al, 8
je 0x14004a59c
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 0x14004a4ac
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 0x14004a4bf
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, 0x10
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, 0xf
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 0x14004a5d1
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.140056c90
add rsp, 0x90
pop rsi
pop rbx
pop rbp
ret