Function at 0x41fbeb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
push edi
push dword [0x503320]
call fcn.0042fa71
mov ebp, eax
call fcn.00427797
call fcn.00423c57
xor edi, edi
cmp dword [0x502358], edi
jne 0x41fd6a
mov esi, 0xa4
push esi
push edi
push 0x502360
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x502364], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x502360], 0x16
mov dword [0x502368], 0x41f91c
push str.RICHED20.DLL
mov dword [0x502380], 0x41f83c
mov dword [0x502378], 0x41fbba
mov dword [0x50237c], 0x4200b9
mov dword [0x502394], 0x41f963
mov dword [0x50238c], 0x41f949
mov dword [0x502388], 0x41fe94
mov dword [0x5023a0], 0x41fb4b
mov dword [0x5023a4], 0x420039
mov dword [0x5023c8], 0x41face
mov dword [0x5023cc], 0x41ff17
mov dword [0x5023dc], 0x41fb1b
mov dword [0x5023d8], 0x41ff7a
mov dword [0x5023f8], 0x41fb41
mov dword [0x5023fc], 0x420014
call esi
mov dword [0x50235c], eax
test eax, eax
jne 0x41fcea
push str.RICHED32.DLL
call esi
mov eax, dword [0x502350]
test eax, eax
je 0x41fd60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x502350]
mov dword [0x502408], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x502350]
mov dword [0x50240c], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x502350]
mov dword [0x502410], eax
call esi
push str.DrawThemeParentBackground
push dword [0x502350]
mov dword [0x502414], eax
call esi
push str.DrawThemeBackground
push dword [0x502350]
mov dword [0x502418], eax
call esi
mov dword [0x50241c], eax
mov dword [0x502358], 1
mov ecx, dword [0x50234c]
mov edx, str.RichEdit20W
neg ecx
sbb ecx, ecx
and ecx, 0xfffffe00
add ecx, 0x200
cmp dword [0x50235c], edi
jne 0x41fd92
mov edx, str.RichEdit
mov eax, dword [esp + 0x24]
or esi, 0xffffffff
push edi
push dword [0x5015dc]
or eax, 0x503111c4
push esi
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push eax
push edi
push edx
push ecx
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x41fe87
push ebx
push dword [esp + 0x14]
push dword [0x50333c]
call fcn.0042fc21
mov ebx, eax
push 0x10
push 8
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], esi
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x1c], ecx
push dword [0x5015d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push str.PB_ClientRect
push edi
call dword [sym.imp.USER32.DLL_SetPropW]
xor ebp, ebp
push ebp
push esi
mov esi, dword [sym.imp.USER32.DLL_SendMessageW]
push 0xc5
push edi
call esi
push 0x41f98e
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x37
push ebp
push ebp
push ebp
push ebp
push ebp
push edi
mov dword [0x502404], eax
call dword [sym.imp.USER32.DLL_SetWindowPos]
push 0x541
push ebp
push ebp
push edi
call dword [sym.imp.USER32.DLL_RedrawWindow]
push ebp
push ebp
push 0x43b
push edi
call esi
or eax, 1
push eax
push ebp
push 0x445
push edi
call esi
push 0x502360
push edi
push ebx
push dword [esp + 0x20]
call fcn.00423e1e
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x41fe86
push 1
push eax
push ebx
call fcn.0041ff17
pop ebx
call fcn.004277a6
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18