Function at 0x4105ed
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x4ccfe8]
call fcn.0041a376
mov ebp, eax
call fcn.004136ec
call fcn.00411256
xor ebx, ebx
cmp dword [0x4ccb90], ebx
jne 0x41076d
mov esi, 0xa4
push esi
push ebx
push 0x4ccb98
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4ccb9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4ccb98], 0x16
mov dword [0x4ccba0], 0x4102cb
push str.RICHED20.DLL
mov dword [0x4ccbb8], 0x4101e0
mov dword [0x4ccbb0], 0x4105bc
mov dword [0x4ccbb4], 0x410afd
mov dword [0x4ccbcc], 0x410312
mov dword [0x4ccbc4], 0x4102f8
mov dword [0x4ccbc0], 0x4108cd
mov dword [0x4ccbd8], 0x41054d
mov dword [0x4ccbdc], 0x410a7d
mov dword [0x4ccc00], 0x4104d0
mov dword [0x4ccc04], 0x41095b
mov dword [0x4ccc14], 0x41051d
mov dword [0x4ccc10], 0x4109be
mov dword [0x4ccc30], 0x410543
mov dword [0x4ccc34], 0x410a58
call esi
mov dword [0x4ccb94], eax
test eax, eax
jne 0x4106ed
push str.RICHED32.DLL
call esi
mov eax, dword [0x4cc764]
test eax, eax
je 0x410763
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x4cc764]
mov dword [0x4ccc40], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x4cc764]
mov dword [0x4ccc44], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x4cc764]
mov dword [0x4ccc48], eax
call esi
push str.DrawThemeParentBackground
push dword [0x4cc764]
mov dword [0x4ccc4c], eax
call esi
push str.DrawThemeBackground
push dword [0x4cc764]
mov dword [0x4ccc50], eax
call esi
mov dword [0x4ccc54], eax
mov dword [0x4ccb90], 1
mov esi, dword [0x4cc760]
mov edi, str.RichEdit20W
neg esi
sbb esi, esi
and esi, 0xfffffe00
add esi, 0x200
cmp dword [0x4ccb94], ebx
jne 0x410795
mov edi, str.RichEdit
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00414263
mov eax, dword [esp + 0x28]
push ebx
push dword [0x4cc670]
or eax, 0x503111c4
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
push ebx
push edi
push esi
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4108a2
push dword [esp + 0x14]
push dword [0x4cd004]
call fcn.0041a526
mov ebx, eax
push 0x10
push 8
or dword [ebx + 0x18], 0xffffffff
or dword [ebx + 0x14], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x1c], ecx
push dword [0x4cc66c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push str.PB_ClientRect
push edi
call dword [sym.imp.USER32.DLL_SetPropW]
mov esi, dword [sym.imp.USER32.DLL_SendMessageW]
xor ebp, ebp
push ebp
push 0xffffffffffffffff
push 0xc5
push edi
call esi
push 0x41033d
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 [0x4ccc3c], 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 0x4ccb98
push edi
push ebx
push dword [esp + 0x20]
call fcn.00410f59
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x4108a2
push 1
push eax
push ebx
call fcn.0041095b
call fcn.004136fb
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x18