Function at 0x495e59
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x1662734]
call fcn.004ad9c4
mov ebx, eax
call fcn.0049cb73
call fcn.0049851d
xor ebp, ebp
cmp dword [0x1661820], ebp
jne 0x495ff0
mov esi, 0xa4
push esi
push ebp
push 0x1661830
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1661834], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, 0x800
mov dword [0x1661830], 0x16
mov dword [0x1661838], 0x495b37
push edi
push ebp
push str.MSFTEDIT.DLL
mov dword [0x1661850], 0x495a4c
mov dword [0x1661848], 0x495e28
mov dword [0x166184c], 0x4963ab
mov dword [0x1661864], 0x495b7e
mov dword [0x166185c], 0x495b64
mov dword [0x1661858], 0x49617b
mov dword [0x1661870], 0x495db9
mov dword [0x1661874], 0x49632b
mov dword [0x1661898], 0x495d3c
mov dword [0x166189c], 0x496209
mov dword [0x16618ac], 0x495d89
mov dword [0x16618a8], 0x49626c
mov dword [0x16618c8], 0x495daf
mov dword [0x16618cc], 0x496306
call esi
push edi
push ebp
push str.RICHED20.DLL
mov dword [0x1661824], eax
call esi
mov dword [0x1661828], eax
test eax, eax
jne 0x495f70
push edi
push ebp
push str.RICHED32.DLL
call esi
mov eax, dword [0x1661070]
test eax, eax
je 0x495fe6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x1661070]
mov dword [0x16618d4], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x1661070]
mov dword [0x16618d8], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x1661070]
mov dword [0x16618dc], eax
call esi
push str.DrawThemeParentBackground
push dword [0x1661070]
mov dword [0x16618e0], eax
call esi
push str.DrawThemeBackground
push dword [0x1661070]
mov dword [0x16618e4], eax
call esi
mov dword [0x16618e8], eax
mov dword [0x1661820], 1
mov esi, dword [0x166106c]
neg esi
sbb esi, esi
and esi, 0xfffffe00
add esi, 0x200
cmp dword [0x1661824], ebp
je 0x496015
mov edi, str.RICHEDIT50W
jmp 0x496027
mov edi, str.RichEdit20W
cmp dword [0x1661828], ebp
jne 0x496027
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.0049da03
mov eax, dword [esp + 0x28]
push ebp
push dword [0x15e8874]
or eax, 0x503111c4
push 0xffffffffffffffff
push dword [ebx]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
push ebp
push edi
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x496150
push dword [esp + 0x14]
push dword [0x1662364]
call fcn.004adc3f
mov edi, eax
push 0x10
push 8
or dword [edi + 0x18], 0xffffffff
or dword [edi + 0x14], 0xffffffff
mov ecx, dword [ebx + 8]
mov dword [edi + 0x1c], ecx
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push str.PB_ClientRect
push esi
call dword [sym.imp.USER32.dll_SetPropW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push 0xffffffffffffffff
push 0xc5
push esi
call ebx
push ebp
push 1
push 0x459
push esi
call ebx
push 0x495ba9
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x37
push ebp
push ebp
push ebp
push ebp
push ebp
push esi
mov dword [0x166182c], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x541
push ebp
push ebp
push esi
call dword [sym.imp.USER32.dll_RedrawWindow]
push ebp
push ebp
push 0x43b
push esi
call ebx
or eax, 1
push eax
push ebp
push 0x445
push esi
call ebx
cmp dword [0x1661824], ebp
je 0x49612a
push 4
push 4
push 0x513
push esi
call ebx
push 0x1661830
push esi
push edi
push dword [esp + 0x20]
call fcn.00497baa
mov esi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x496150
push 1
push eax
push edi
call fcn.00496209
call fcn.0049cb82
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x18