Function at 0x418b99
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x4c692c]
call fcn.00428f07
mov ebp, eax
call fcn.0041f966
call fcn.0041be85
xor ebx, ebx
cmp dword [0x4c54a0], ebx
jne 0x418d19
mov esi, 0xa4
push esi
push ebx
push 0x4c54a8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4c54ac], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4c54a8], 0x16
mov dword [0x4c54b0], 0x418877
push str.RICHED20.DLL
mov dword [0x4c54c8], 0x41878c
mov dword [0x4c54c0], 0x418b68
mov dword [0x4c54c4], 0x4190a9
mov dword [0x4c54dc], 0x4188be
mov dword [0x4c54d4], 0x4188a4
mov dword [0x4c54d0], 0x418e79
mov dword [0x4c54e8], 0x418af9
mov dword [0x4c54ec], 0x419029
mov dword [0x4c5510], 0x418a7c
mov dword [0x4c5514], 0x418f07
mov dword [0x4c5524], 0x418ac9
mov dword [0x4c5520], 0x418f6a
mov dword [0x4c5540], 0x418aef
mov dword [0x4c5544], 0x419004
call esi
mov dword [0x4c54a4], eax
test eax, eax
jne 0x418c99
push str.RICHED32.DLL
call esi
mov eax, dword [0x4c549c]
test eax, eax
je 0x418d0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x4c549c]
mov dword [0x4c5550], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x4c549c]
mov dword [0x4c5554], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x4c549c]
mov dword [0x4c5558], eax
call esi
push str.DrawThemeParentBackground
push dword [0x4c549c]
mov dword [0x4c555c], eax
call esi
push str.DrawThemeBackground
push dword [0x4c549c]
mov dword [0x4c5560], eax
call esi
mov dword [0x4c5564], eax
mov dword [0x4c54a0], 1
mov esi, dword [0x4c5498]
mov edi, str.RichEdit20W
neg esi
sbb esi, esi
and esi, 0xfffffe00
add esi, 0x200
cmp dword [0x4c54a4], ebx
jne 0x418d41
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.00420560
mov eax, dword [esp + 0x28]
push ebx
push dword [0x4c4fd8]
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 0x418e4e
push dword [esp + 0x14]
push dword [0x4c6948]
call fcn.004290b7
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 [0x4c4fd4]
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 0x4188e9
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 [0x4c554c], 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 0x4c54a8
push edi
push ebx
push dword [esp + 0x20]
call fcn.0041c049
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x418e4e
push 1
push eax
push ebx
call fcn.00418f07
call fcn.0041f975
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x18