Function at 0x140005104
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 rsi
push rdi
push r12
push r14
sub rsp, 0x60
mov rsi, rcx
mov rcx, qword [0x14004e320]
call fcn.14000a588
mov r14, rax
call fcn.14000d724
call fcn.14000d87c
cmp dword [0x14004e158], 0
jne 0x14000532d
mov ebx, 0x148
lea rcx, [0x14004e010]
mov r8d, ebx
xor edx, edx
call fcn.140001060
lea rax, [0x140005f28]
mov dword [0x14004e010], 0x16
mov qword [0x14004e018], rax
lea rcx, str.MSFTEDIT.DLL
lea rax, [0x1400055a8]
mov dword [0x14004e014], ebx
mov qword [0x14004e048], rax
lea rax, [0x140005820]
mov qword [0x14004e038], rax
lea rax, [0x140005870]
mov qword [0x14004e040], rax
lea rax, [fcn.140005568]
mov qword [0x14004e070], rax
lea rax, [fcn.14000571c]
mov qword [0x14004e060], rax
lea rax, [0x140005740]
mov qword [0x14004e058], rax
lea rax, [0x140005914]
mov qword [0x14004e088], rax
lea rax, [0x1400059cc]
mov qword [0x14004e090], rax
lea rax, [0x140005b74]
mov qword [0x14004e0d8], rax
lea rax, [fcn.140005bc4]
mov qword [0x14004e0e0], rax
lea rax, [0x140005b58]
mov qword [0x14004e100], rax
lea rax, [fcn.140005a9c]
mov qword [0x14004e0f8], rax
lea rax, [0x140005c78]
mov qword [0x14004e138], rax
lea rax, [0x140005c40]
mov qword [0x14004e140], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.RICHED20.DLL
mov qword [0x14004e160], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14004e168], rax
test rax, rax
jne 0x140005278
lea rcx, str.RICHED32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [0x14004e310]
test rcx, rcx
je 0x140005323
lea rdx, str.OpenThemeData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004e310]
lea rdx, str.CloseThemeData
mov qword [0x14004e178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004e310]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x14004e180], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004e310]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x14004e188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004e310]
lea rdx, str.DrawThemeParentBackground
mov qword [0x14004e190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14004e310]
lea rdx, str.DrawThemeBackground
mov qword [0x14004e198], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004e1a0], rax
mov dword [0x14004e158], 1
mov eax, dword [0x14004e30c]
neg eax
sbb ebx, ebx
not ebx
and ebx, 0x200
cmp qword [0x14004e160], 0
je 0x140005352
lea rdi, str.RICHEDIT50W
jmp 0x14000536c
cmp qword [0x14004e168], 0
lea rdi, str.RichEdit20W
lea rax, str.RichEdit
cmove rdi, rax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.14000d7ac
and qword [rsp + 0x58], 0
or r12, 0xffffffffffffffff
mov rax, qword [0x14004d6b0]
xor r8d, r8d
mov r9d, dword [rsp + 0xb8]
mov rdx, rdi
mov qword [rsp + 0x50], rax
or r9d, 0x503111c4
mov rax, qword [r14]
mov ecx, ebx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
test rax, rax
je 0x140005552
mov rcx, qword [0x14004e318]
mov rdx, rsi
call fcn.14000c274
lea edx, [r12 + 9]
mov rdi, rax
lea r8d, [r12 + 0x11]
mov qword [rax + 0x30], r12
mov qword [rax + 0x28], r12
mov rcx, qword [r14 + 0x10]
mov qword [rax + 0x38], rcx
mov rcx, qword [0x14004d6a8]
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]
xor r9d, r9d
lea r8d, [r12 + 2]
mov edx, 0x459
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea r8, [0x140005f5c]
mov rcx, rbx
lea edx, [r12 - 3]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov dword [rsp + 0x30], 0x37
xor r9d, r9d
and dword [rsp + 0x28], 0
xor r8d, r8d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbx
mov qword [0x14004e170], 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]
cmp qword [0x14004e160], 0
je 0x14000551e
lea r8d, [r12 + 5]
mov edx, 0x513
mov r9d, r8d
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea r9, [0x14004e010]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14000d4b4
mov edx, 0x10000000
mov rbx, rax
test dword [rsp + 0xb8], edx
je 0x140005552
mov r8d, 1
mov rcx, rdi
call fcn.140005bc4
call fcn.14000d73c
mov rax, rbx
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret