Function at 0x14002ba60
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 [0x1400dc130]
mov ebx, r9d
mov esi, r8d
mov ebp, edx
call fcn.140036cf0
mov rdi, rax
call fcn.1400310c8
call fcn.14002d85c
cmp dword [0x1400db6f0], 0
jne 0x14002bc7e
mov r13d, 0x140
lea rcx, [0x1400db5b0]
xor edx, edx
mov r8d, r13d
call sub.msvcrt.dll_memset
lea rax, [0x14002b88c]
lea rcx, str.RICHED20.DLL
mov qword [0x1400db5b8], rax
lea rax, [0x14002af7c]
mov dword [0x1400db5b0], 0x16
mov qword [0x1400db5e8], rax
lea rax, [0x14002b1fc]
mov dword [0x1400db5b4], r13d
mov qword [0x1400db5d8], rax
lea rax, [0x14002b248]
mov qword [0x1400db5e0], rax
lea rax, [0x14002b0d4]
mov qword [0x1400db610], rax
lea rax, [fcn.14002b114]
mov qword [0x1400db600], rax
lea rax, [0x14002b138]
mov qword [0x1400db5f8], rax
lea rax, [0x14002b294]
mov qword [0x1400db628], rax
lea rax, [0x14002b344]
mov qword [0x1400db630], rax
lea rax, [0x14002b4d8]
mov qword [0x1400db678], rax
lea rax, [fcn.14002b52c]
mov qword [0x1400db680], rax
lea rax, [0x14002b4bc]
mov qword [0x1400db6a0], rax
lea rax, [fcn.14002b418]
mov qword [0x1400db698], rax
lea rax, [0x14002b5d8]
mov qword [0x1400db6d8], rax
lea rax, [0x14002b5a8]
mov qword [0x1400db6e0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400db6f8], rax
test rax, rax
jne 0x14002bbc9
lea rcx, str.RICHED32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x1400db008]
test rcx, rcx
je 0x14002bc74
lea rdx, str.OpenThemeData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400db008]
lea rdx, str.CloseThemeData
mov qword [0x1400db598], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400db008]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x1400db590], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400db008]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x1400db588], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400db008]
lea rdx, str.DrawThemeParentBackground
mov qword [0x1400db580], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400db008]
lea rdx, str.DrawThemeBackground
mov qword [0x1400db578], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400db570], rax
mov dword [0x1400db6f0], 1
mov eax, dword [0x1400db004]
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 [0x1400db6f8], 0
cmove rdx, rax
and qword [rsp + 0x58], 0
mov rax, qword [0x1400d9ea4]
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 0x14002be16
mov rcx, qword [0x1400dc120]
mov rdx, r12
call fcn.140036a6c
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 [0x1400d9e9c]
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, [0x14002b8c0]
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 [0x1400db5a0], 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, [0x1400db5b0]
mov r8, rbx
mov rdx, rsi
mov rcx, r12
call fcn.14002d1d8
mov edx, 0x10000000
mov rbx, rax
test dword [rsp + 0xa8], edx
je 0x14002be16
lea r8d, [r13 + 2]
mov rcx, rsi
call fcn.14002b52c
call fcn.1400310e0
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