Function at 0x1400c6aac
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 [0x1408c39e0]
call fcn.1400f9380
mov rsi, rax
call fcn.1400dd740
call fcn.1400d7ba8
cmp dword [0x1408bf2c0], 0
jne 0x1400c6cc0
mov ebx, 0x140
lea rcx, [0x1408bf2d0]
xor edx, edx
mov r8d, ebx
call sub.msvcrt.dll_memset
lea rax, [0x1400c6664]
lea rcx, str.RICHED20.DLL
mov qword [0x1408bf2d8], rax
lea rax, [0x1400c64f4]
mov dword [0x1408bf2d0], 0x16
mov qword [0x1408bf308], rax
lea rax, [0x1400c6a40]
mov dword [0x1408bf2d4], ebx
mov qword [0x1408bf2f8], rax
lea rax, [0x1400c71b8]
mov qword [0x1408bf300], rax
lea rax, [fcn.1400c66bc]
mov qword [0x1408bf330], rax
lea rax, [fcn.1400c6698]
mov qword [0x1408bf320], rax
lea rax, [0x1400c6eb0]
mov qword [0x1408bf318], rax
lea rax, [0x1400c698c]
mov qword [0x1408bf348], rax
lea rax, [0x1400c70e8]
mov qword [0x1408bf350], rax
lea rax, [0x1400c6914]
mov qword [0x1408bf398], rax
lea rax, [fcn.1400c6f90]
mov qword [0x1408bf3a0], rax
lea rax, [0x1400c6968]
mov qword [0x1408bf3c0], rax
lea rax, [fcn.1400c700c]
mov qword [0x1408bf3b8], rax
lea rax, [0x1400c6984]
mov qword [0x1408bf3f8], rax
lea rax, [0x1400c70b8]
mov qword [0x1408bf400], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1408bf2c8], rax
test rax, rax
jne 0x1400c6c0b
lea rcx, str.RICHED32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [0x1408bea20]
test rcx, rcx
je 0x1400c6cb6
lea rdx, [0x1401740d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1408bea20]
lea rdx, [0x1401740e0]
mov qword [0x1408bf418], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1408bea20]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x1408bf420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1408bea20]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x1408bf428], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1408bea20]
lea rdx, str.DrawThemeParentBackground
mov qword [0x1408bf430], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1408bea20]
lea rdx, [0x140174158]
mov qword [0x1408bf438], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1408bf440], rax
mov dword [0x1408bf2c0], 1
mov eax, dword [0x1408bea1c]
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 [0x1408bf2c8], 0
cmove rbx, rax
call fcn.1400de944
and qword [rsp + 0x58], 0
mov rax, qword [0x140845c0c]
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 0x1400c6e9b
mov rcx, qword [0x1408c39c0]
mov rdx, rbp
call fcn.1400f9cb0
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 [0x140845c04]
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, [0x1400c66fc]
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 [0x1408bf410], 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, [0x1408bf2d0]
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.1400d6dc8
mov edx, 0x10000000
mov rbx, rax
test dword [rsp + 0xb8], edx
je 0x1400c6e9b
lea r8d, [r12 + 2]
mov rcx, rdi
call fcn.1400c6f90
call fcn.1400dd758
mov rax, rbx
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret