Function at 0x140016144
Capabilities:
Link many functions at runtime

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rbp, rcx
mov rcx, qword [0x140117790]
call fcn.140029c48
mov rsi, rax
call fcn.14001c7a4
call fcn.140017fd0
cmp dword [0x1401164b0], 0
jne 0x140016358
mov ebx, 0x140
lea rcx, [0x1401164c0]
xor edx, edx
mov r8d, ebx
call sub.msvcrt.dll_memset
lea rax, [0x140015cfc]
lea rcx, str.RICHED20.DLL
mov qword [0x1401164c8], rax
lea rax, [0x140015b8c]
mov dword [0x1401164c0], 0x16
mov qword [0x1401164f8], rax
lea rax, [0x1400160d8]
mov dword [0x1401164c4], ebx
mov qword [0x1401164e8], rax
lea rax, [0x140016850]
mov qword [0x1401164f0], rax
lea rax, [fcn.140015d54]
mov qword [0x140116520], rax
lea rax, [fcn.140015d30]
mov qword [0x140116510], rax
lea rax, [0x140016548]
mov qword [0x140116508], rax
lea rax, [0x140016024]
mov qword [0x140116538], rax
lea rax, [0x140016780]
mov qword [0x140116540], rax
lea rax, [0x140015fac]
mov qword [0x140116588], rax
lea rax, [fcn.140016628]
mov qword [0x140116590], rax
lea rax, [0x140016000]
mov qword [0x1401165b0], rax
lea rax, [fcn.1400166a4]
mov qword [0x1401165a8], rax
lea rax, [0x14001601c]
mov qword [0x1401165e8], rax
lea rax, [0x140016750]
mov qword [0x1401165f0], rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov qword [0x1401164b8], rax
test rax, rax
jne 0x1400162a3
lea rcx, str.RICHED32.DLL
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov rcx, qword [0x140116350]
test rcx, rcx
je 0x14001634e
lea rdx, str.OpenThemeData
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x140116350]
lea rdx, str.CloseThemeData
mov qword [0x140116608], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x140116350]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x140116610], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x140116350]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x140116618], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x140116350]
lea rdx, str.DrawThemeParentBackground
mov qword [0x140116620], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, qword [0x140116350]
lea rdx, str.DrawThemeBackground
mov qword [0x140116628], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140116630], rax
mov dword [0x1401164b0], 1
mov eax, dword [0x14011634c]
lea rbx, str.RichEdit20W
lea r9, [rsp + 0xb0]
neg eax
lea rax, str.RichEdit
lea r8, [rsp + 0xa8]
sbb edi, edi
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
not edi
and edi, 0x200
cmp qword [0x1401164b8], 0
cmove rbx, rax
call fcn.140019dc8
and qword [rsp + 0x58], 0
mov rax, qword [0x1401156b8]
mov r9d, dword [rsp + 0xb8]
or r12, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
mov rax, qword [rsi]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb0]
or r9d, 0x503111c4
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov rdx, rbx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov ecx, edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.DLL_CreateWindowExW]
mov rbx, rax
test rax, rax
je 0x140016533
mov rcx, qword [0x1401177d0]
mov rdx, rbp
call fcn.140029cf4
lea edx, [r12 + 9]
lea r8d, [r12 + 0x11]
mov qword [rax + 0x30], r12
mov qword [rax + 0x28], r12
mov rcx, qword [rsi + 0x10]
mov qword [rax + 0x38], rcx
mov rcx, qword [0x1401156b0]
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea rdx, str.PB_ClientRect
mov rcx, rbx
mov r8, rax
call qword [sym.imp.USER32.DLL_SetPropW]
xor r9d, r9d
mov r8, r12
mov edx, 0xc5
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageW]
lea r8, [0x140015d94]
lea edx, [r12 - 3]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SetWindowLongPtrW]
mov dword [rsp + 0x30], 0x37
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [0x140116600], rax
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov r9d, 0x541
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.DLL_RedrawWindow]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x43b
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageW]
xor r8d, r8d
mov edx, 0x445
or rax, 1
mov rcx, rbx
mov r9, rax
call qword [sym.imp.USER32.DLL_SendMessageW]
lea r9, [0x1401164c0]
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.140017bd0
mov edx, 0x10000000
mov rbx, rax
test dword [rsp + 0xb8], edx
je 0x140016533
lea r8d, [r12 + 2]
mov rcx, rdi
call fcn.140016628
call fcn.14001c7bc
mov rax, rbx
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret