Function at 0x140029104
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 [0x1400db080]
mov ebx, r9d
mov esi, r8d
mov ebp, edx
call fcn.1400347c0
mov rdi, rax
call fcn.14002eb98
call fcn.14002b28c
cmp dword [0x1400da4e0], 0
jne 0x140029322
mov r13d, 0x140
lea rcx, [0x1400da3a0]
xor edx, edx
mov r8d, r13d
call sub.msvcrt.dll_memset
lea rax, [0x140028f30]
lea rcx, str.RICHED20.DLL
mov qword [0x1400da3a8], rax
lea rax, [0x140028620]
mov dword [0x1400da3a0], 0x16
mov qword [0x1400da3d8], rax
lea rax, [0x1400288a0]
mov dword [0x1400da3a4], r13d
mov qword [0x1400da3c8], rax
lea rax, [0x1400288ec]
mov qword [0x1400da3d0], rax
lea rax, [0x140028778]
mov qword [0x1400da400], rax
lea rax, [fcn.1400287b8]
mov qword [0x1400da3f0], rax
lea rax, [0x1400287dc]
mov qword [0x1400da3e8], rax
lea rax, [0x140028938]
mov qword [0x1400da418], rax
lea rax, [0x1400289e8]
mov qword [0x1400da420], rax
lea rax, [0x140028b7c]
mov qword [0x1400da468], rax
lea rax, [fcn.140028bd0]
mov qword [0x1400da470], rax
lea rax, [0x140028b60]
mov qword [0x1400da490], rax
lea rax, [fcn.140028abc]
mov qword [0x1400da488], rax
lea rax, [0x140028c7c]
mov qword [0x1400da4c8], rax
lea rax, [0x140028c4c]
mov qword [0x1400da4d0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400da4e8], rax
test rax, rax
jne 0x14002926d
lea rcx, str.RICHED32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x1400da0a8]
test rcx, rcx
je 0x140029318
lea rdx, str.OpenThemeData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400da0a8]
lea rdx, str.CloseThemeData
mov qword [0x1400da388], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400da0a8]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x1400da380], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400da0a8]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x1400da378], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400da0a8]
lea rdx, str.DrawThemeParentBackground
mov qword [0x1400da370], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400da0a8]
lea rdx, str.DrawThemeBackground
mov qword [0x1400da368], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400da360], rax
mov dword [0x1400da4e0], 1
mov eax, dword [0x1400da0a4]
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 [0x1400da4e8], 0
cmove rdx, rax
and qword [rsp + 0x58], 0
mov rax, qword [0x1400d8f08]
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 0x1400294ba
mov rcx, qword [0x1400db070]
mov rdx, r12
call fcn.14003453c
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 [0x1400d8f00]
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, [0x140028f64]
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 [0x1400da390], 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, [0x1400da3a0]
mov r8, rbx
mov rdx, rsi
mov rcx, r12
call fcn.14002ab50
mov edx, 0x10000000
mov rbx, rax
test dword [rsp + 0xa8], edx
je 0x1400294ba
lea r8d, [r13 + 2]
mov rcx, rsi
call fcn.140028bd0
call fcn.14002ebb0
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