Function at 0x14002cbfc
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 r14
push r15
sub rsp, 0x60
mov r14, rcx
mov rcx, qword [0x1400faf50]
mov ebx, r9d
mov edi, r8d
mov ebp, edx
call fcn.14003d18c
mov rsi, rax
call fcn.140033388
call fcn.14002f4f8
cmp dword [0x1400fa160], 0
jne 0x14002ce1a
mov r15d, 0x140
lea rcx, [0x1400fa170]
xor edx, edx
mov r8d, r15d
call sub.msvcrt.dll_memset
lea rax, [0x14002c834]
lea rcx, str.RICHED20.DLL
mov qword [0x1400fa178], rax
lea rax, [0x14002c6dc]
mov dword [0x1400fa170], 0x16
mov qword [0x1400fa1a8], rax
lea rax, [0x14002cb94]
mov dword [0x1400fa174], r15d
mov qword [0x1400fa198], rax
lea rax, [0x14002d2b8]
mov qword [0x1400fa1a0], rax
lea rax, [0x14002c88c]
mov qword [0x1400fa1d0], rax
lea rax, [fcn.14002c868]
mov qword [0x1400fa1c0], rax
lea rax, [0x14002cfd4]
mov qword [0x1400fa1b8], rax
lea rax, [0x14002cae4]
mov qword [0x1400fa1e8], rax
lea rax, [0x14002d1e8]
mov qword [0x1400fa1f0], rax
lea rax, [0x14002ca6c]
mov qword [0x1400fa238], rax
lea rax, [fcn.14002d098]
mov qword [0x1400fa240], rax
lea rax, [0x14002cac0]
mov qword [0x1400fa260], rax
lea rax, [fcn.14002d114]
mov qword [0x1400fa258], rax
lea rax, [0x14002cadc]
mov qword [0x1400fa298], rax
lea rax, [0x14002d1b8]
mov qword [0x1400fa2a0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400fa168], rax
test rax, rax
jne 0x14002cd65
lea rcx, str.RICHED32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x1400f9ea0]
test rcx, rcx
je 0x14002ce10
lea rdx, str.OpenThemeData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f9ea0]
lea rdx, str.CloseThemeData
mov qword [0x1400fa2b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f9ea0]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x1400fa2c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f9ea0]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x1400fa2c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f9ea0]
lea rdx, str.DrawThemeParentBackground
mov qword [0x1400fa2d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f9ea0]
lea rdx, str.DrawThemeBackground
mov qword [0x1400fa2d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa2e0], rax
mov dword [0x1400fa160], 1
mov eax, dword [0x1400f9e9c]
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 [0x1400fa168], 0
cmove rdx, rax
and qword [rsp + 0x58], 0
mov rax, qword [0x1400f8d30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsi]
or r15, 0xffffffffffffffff
mov qword [rsp + 0x48], r15
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], edi
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.DLL_CreateWindowExA]
mov rbx, rax
test rax, rax
je 0x14002cfb2
mov rcx, qword [0x1400faf90]
mov rdx, r14
call fcn.14003d238
lea edx, [r15 + 9]
lea r8d, [r15 + 0x11]
mov qword [rax + 0x30], r15
mov qword [rax + 0x28], r15
mov rcx, qword [rsi + 0x10]
mov qword [rax + 0x38], rcx
mov rcx, qword [0x1400f8d28]
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_SetPropA]
xor r9d, r9d
mov r8, r15
mov edx, 0xc5
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageA]
lea r8, [0x14002c8cc]
lea edx, [r15 - 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 [0x1400fa2b0], 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, [0x1400fa170]
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.14002ed0c
mov edx, 0x10000000
mov rbx, rax
test dword [rsp + 0xa8], edx
je 0x14002cfb2
lea r8d, [r15 + 2]
mov rcx, rdi
call fcn.14002d098
call fcn.1400333a0
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 r15
pop r14
pop rdi
ret