Function at 0x140027104
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov r12, rcx
mov rcx, qword [0x1400d7fe0]
mov ebx, r9d
mov esi, r8d
mov ebp, edx
call fcn.140032780
mov rdi, rax
call fcn.14002cb98
call fcn.14002928c
cmp dword [0x1400d7440], 0
jne 0x140027322
mov r13d, 0x140
lea rcx, [0x1400d7300]
xor edx, edx
mov r8d, r13d
call sub.msvcrt.dll_memset
lea rax, [0x140026f30]
lea rcx, str.RICHED20.DLL
mov qword [0x1400d7308], rax
lea rax, [0x140026620]
mov dword [0x1400d7300], 0x16
mov qword [0x1400d7338], rax
lea rax, [0x1400268a0]
mov dword [0x1400d7304], r13d
mov qword [0x1400d7328], rax
lea rax, [0x1400268ec]
mov qword [0x1400d7330], rax
lea rax, [0x140026778]
mov qword [0x1400d7360], rax
lea rax, [fcn.1400267b8]
mov qword [0x1400d7350], rax
lea rax, [0x1400267dc]
mov qword [0x1400d7348], rax
lea rax, [0x140026938]
mov qword [0x1400d7378], rax
lea rax, [0x1400269e8]
mov qword [0x1400d7380], rax
lea rax, [0x140026b7c]
mov qword [0x1400d73c8], rax
lea rax, [fcn.140026bd0]
mov qword [0x1400d73d0], rax
lea rax, [0x140026b60]
mov qword [0x1400d73f0], rax
lea rax, [fcn.140026abc]
mov qword [0x1400d73e8], rax
lea rax, [0x140026c7c]
mov qword [0x1400d7428], rax
lea rax, [0x140026c4c]
mov qword [0x1400d7430], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d7448], rax
test rax, rax
jne 0x14002726d
lea rcx, str.RICHED32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x1400d7008]
test rcx, rcx
je 0x140027318
lea rdx, str.OpenThemeData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7008]
lea rdx, str.CloseThemeData
mov qword [0x1400d72e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7008]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x1400d72e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7008]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x1400d72d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7008]
lea rdx, str.DrawThemeParentBackground
mov qword [0x1400d72d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7008]
lea rdx, str.DrawThemeBackground
mov qword [0x1400d72c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d72c0], rax
mov dword [0x1400d7440], 1
mov eax, dword [0x1400d7004]
mov r9d, dword [rsp + 0xa8]
lea rdx, str.RichEdit20A
neg eax
lea rax, str.RichEdit
sbb ecx, ecx
not ecx
and ecx, 0x200
cmp qword [0x1400d7448], 0
cmove rdx, rax
and qword [rsp + 0x58], 0
mov rax, qword [0x1400d5f58]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi]
or r13, 0xffffffffffffffff
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ebx
or r9d, 0x503111c4
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.DLL_CreateWindowExA]
mov rbx, rax
test rax, rax
je 0x1400274ba
mov rcx, qword [0x1400d7fd0]
mov rdx, r12
call fcn.1400324fc
lea edx, [r13 + 9]
lea r8d, [r13 + 0x11]
mov qword [rax + 0x30], r13
mov qword [rax + 0x28], r13
mov rcx, qword [rdi + 0x10]
mov qword [rax + 0x38], rcx
mov rcx, qword [0x1400d5f50]
mov rsi, 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_SetPropA]
xor r9d, r9d
mov r8, r13
mov edx, 0xc5
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageA]
lea r8, [0x140026f64]
lea edx, [r13 - 3]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SetWindowLongPtrA]
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 [0x1400d72f0], 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_SendMessageA]
xor r8d, r8d
mov edx, 0x445
or rax, 1
mov rcx, rbx
mov r9, rax
call qword [sym.imp.USER32.DLL_SendMessageA]
lea r9, [0x1400d7300]
mov r8, rbx
mov rdx, rsi
mov rcx, r12
call fcn.140028b50
mov edx, 0x10000000
mov rbx, rax
test dword [rsp + 0xa8], edx
je 0x1400274ba
lea r8d, [r13 + 2]
mov rcx, rsi
call fcn.140026bd0
call fcn.14002cbb0
lea r11, [rsp + 0x60]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret