Function at 0x41d09b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
push edi
push dword [0x4fe720]
call fcn.0042cf21
mov ebp, eax
call fcn.00424c47
call fcn.00421107
xor edi, edi
cmp dword [0x4fd758], edi
jne 0x41d21a
mov esi, 0xa4
push esi
push edi
push 0x4fd760
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4fd764], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fd760], 0x16
mov dword [0x4fd768], 0x41cdcc
push str.RICHED20.DLL
mov dword [0x4fd780], 0x41ccec
mov dword [0x4fd778], 0x41d06a
mov dword [0x4fd77c], 0x41d569
mov dword [0x4fd794], 0x41ce13
mov dword [0x4fd78c], 0x41cdf9
mov dword [0x4fd788], 0x41d344
mov dword [0x4fd7a0], 0x41cffb
mov dword [0x4fd7a4], 0x41d4e9
mov dword [0x4fd7c8], 0x41cf7e
mov dword [0x4fd7cc], 0x41d3c7
mov dword [0x4fd7dc], 0x41cfcb
mov dword [0x4fd7d8], 0x41d42a
mov dword [0x4fd7f8], 0x41cff1
mov dword [0x4fd7fc], 0x41d4c4
call esi
mov dword [0x4fd75c], eax
test eax, eax
jne 0x41d19a
push str.RICHED32.DLL
call esi
mov eax, dword [0x4fd754]
test eax, eax
je 0x41d210
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x4fd754]
mov dword [0x4fd808], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x4fd754]
mov dword [0x4fd80c], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x4fd754]
mov dword [0x4fd810], eax
call esi
push str.DrawThemeParentBackground
push dword [0x4fd754]
mov dword [0x4fd814], eax
call esi
push str.DrawThemeBackground
push dword [0x4fd754]
mov dword [0x4fd818], eax
call esi
mov dword [0x4fd81c], eax
mov dword [0x4fd758], 1
mov ecx, dword [0x4fd750]
mov edx, str.RichEdit20W
neg ecx
sbb ecx, ecx
and ecx, 0xfffffe00
add ecx, 0x200
cmp dword [0x4fd75c], edi
jne 0x41d242
mov edx, str.RichEdit
mov eax, dword [esp + 0x24]
or esi, 0xffffffff
push edi
push dword [0x4fc9f0]
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 0x41d337
push ebx
push dword [esp + 0x14]
push dword [0x4fe73c]
call fcn.0042d0d1
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 [0x4fc9ec]
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 0x41ce3e
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 [0x4fd804], 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 0x4fd760
push edi
push ebx
push dword [esp + 0x20]
call fcn.004212ce
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x41d336
push 1
push eax
push ebx
call fcn.0041d3c7
pop ebx
call fcn.00424c56
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18