Function at 0x49c189
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6218c8]
call fcn.004abe70
mov ebp, eax
call fcn.004a2853
call fcn.0049e966
xor ebx, ebx
cmp dword [0x620e08], ebx
jne 0x49c309
mov esi, 0xa4
push esi
push ebx
push 0x620e10
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x620e14], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x620e10], 0x16
mov dword [0x620e18], 0x49be67
push str.RICHED20.DLL
mov dword [0x620e30], 0x49bd7c
mov dword [0x620e28], 0x49c158
mov dword [0x620e2c], 0x49c699
mov dword [0x620e44], 0x49beae
mov dword [0x620e3c], 0x49be94
mov dword [0x620e38], 0x49c469
mov dword [0x620e50], 0x49c0e9
mov dword [0x620e54], 0x49c619
mov dword [0x620e78], 0x49c06c
mov dword [0x620e7c], 0x49c4f7
mov dword [0x620e8c], 0x49c0b9
mov dword [0x620e88], 0x49c55a
mov dword [0x620ea8], 0x49c0df
mov dword [0x620eac], 0x49c5f4
call esi
mov dword [0x620e0c], eax
test eax, eax
jne 0x49c289
push str.RICHED32.DLL
call esi
mov eax, dword [0x620a88]
test eax, eax
je 0x49c2ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x620a88]
mov dword [0x620eb8], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x620a88]
mov dword [0x620ebc], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x620a88]
mov dword [0x620ec0], eax
call esi
push str.DrawThemeParentBackground
push dword [0x620a88]
mov dword [0x620ec4], eax
call esi
push str.DrawThemeBackground
push dword [0x620a88]
mov dword [0x620ec8], eax
call esi
mov dword [0x620ecc], eax
mov dword [0x620e08], 1
mov esi, dword [0x620a84]
mov edi, str.RichEdit20W
neg esi
sbb esi, esi
and esi, 0xfffffe00
add esi, 0x200
cmp dword [0x620e0c], ebx
jne 0x49c331
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.004a37ba
mov eax, dword [esp + 0x28]
push ebx
push dword [0x6201c8]
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 0x49c43e
push dword [esp + 0x14]
push dword [0x6218cc]
call fcn.004ac04e
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 [0x6201c4]
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 0x49bed9
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 [0x620eb4], 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 0x620e10
push edi
push ebx
push dword [esp + 0x20]
call fcn.0049eb2a
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x49c43e
push 1
push eax
push ebx
call fcn.0049c4f7
call fcn.004a2862
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x18