Function at 0x41e59d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
push edi
push dword [0x4ff9d4]
call fcn.0042dee1
mov ebp, eax
call fcn.00426197
call fcn.004225cf
xor edi, edi
cmp dword [0x4fea10], edi
jne 0x41e71c
mov esi, 0xa4
push esi
push edi
push 0x4fea18
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4fea1c], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fea18], 0x16
mov dword [0x4fea20], 0x41e2ce
push str.RICHED20.DLL
mov dword [0x4fea38], 0x41e1ee
mov dword [0x4fea30], 0x41e56c
mov dword [0x4fea34], 0x41ea6b
mov dword [0x4fea4c], 0x41e315
mov dword [0x4fea44], 0x41e2fb
mov dword [0x4fea40], 0x41e846
mov dword [0x4fea58], 0x41e4fd
mov dword [0x4fea5c], 0x41e9eb
mov dword [0x4fea80], 0x41e480
mov dword [0x4fea84], 0x41e8c9
mov dword [0x4fea94], 0x41e4cd
mov dword [0x4fea90], 0x41e92c
mov dword [0x4feab0], 0x41e4f3
mov dword [0x4feab4], 0x41e9c6
call esi
mov dword [0x4fea14], eax
test eax, eax
jne 0x41e69c
push str.RICHED32.DLL
call esi
mov eax, dword [0x4fea08]
test eax, eax
je 0x41e712
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x4fea08]
mov dword [0x4feac0], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x4fea08]
mov dword [0x4feac4], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x4fea08]
mov dword [0x4feac8], eax
call esi
push str.DrawThemeParentBackground
push dword [0x4fea08]
mov dword [0x4feacc], eax
call esi
push str.DrawThemeBackground
push dword [0x4fea08]
mov dword [0x4fead0], eax
call esi
mov dword [0x4fead4], eax
mov dword [0x4fea10], 1
mov ecx, dword [0x4fea04]
mov edx, str.RichEdit20W
neg ecx
sbb ecx, ecx
and ecx, 0xfffffe00
add ecx, 0x200
cmp dword [0x4fea14], edi
jne 0x41e744
mov edx, str.RichEdit
mov eax, dword [esp + 0x24]
or esi, 0xffffffff
push edi
push dword [0x4fdca8]
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 0x41e839
push ebx
push dword [esp + 0x14]
push dword [0x4ff9f0]
call fcn.0042e091
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 [0x4fdca4]
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 0x41e340
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 [0x4feabc], 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 0x4fea18
push edi
push ebx
push dword [esp + 0x20]
call fcn.00422796
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x41e838
push 1
push eax
push ebx
call fcn.0041e8c9
pop ebx
call fcn.004261a6
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18