Function at 0x466cac
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xa64e94]
call fcn.00486a99
mov ebx, eax
call fcn.0046f0e3
call fcn.0046acfa
xor ebp, ebp
cmp dword [0xa638e0], ebp
jne 0x466e38
mov esi, 0xa4
push esi
push ebp
push 0xa638f0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0xa638f4], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0xa638f0], 0x16
mov dword [0xa638f8], 0x46698a
push str.MSFTEDIT.DLL
mov dword [0xa63910], 0x46689f
mov dword [0xa63908], 0x466c7b
mov dword [0xa6390c], 0x4671cb
mov dword [0xa63924], 0x4669d1
mov dword [0xa6391c], 0x4669b7
mov dword [0xa63918], 0x466f9b
mov dword [0xa63930], 0x466c0c
mov dword [0xa63934], 0x46714b
mov dword [0xa63958], 0x466b8f
mov dword [0xa6395c], 0x467029
mov dword [0xa6396c], 0x466bdc
mov dword [0xa63968], 0x46708c
mov dword [0xa63988], 0x466c02
mov dword [0xa6398c], 0x467126
call esi
push str.RICHED20.DLL
mov dword [0xa638e4], eax
call esi
mov dword [0xa638e8], eax
test eax, eax
jne 0x466db8
push str.RICHED32.DLL
call esi
mov eax, dword [0xa634b4]
test eax, eax
je 0x466e2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0xa634b4]
mov dword [0xa63994], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0xa634b4]
mov dword [0xa63998], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0xa634b4]
mov dword [0xa6399c], eax
call esi
push str.DrawThemeParentBackground
push dword [0xa634b4]
mov dword [0xa639a0], eax
call esi
push str.DrawThemeBackground
push dword [0xa634b4]
mov dword [0xa639a4], eax
call esi
mov dword [0xa639a8], eax
mov dword [0xa638e0], 1
mov esi, dword [0xa634b0]
neg esi
sbb esi, esi
and esi, 0xfffffe00
add esi, 0x200
cmp dword [0xa638e4], ebp
je 0x466e5d
mov edi, str.RICHEDIT50W
jmp 0x466e6f
mov edi, str.RichEdit20W
cmp dword [0xa638e8], ebp
jne 0x466e6f
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.0046fe7d
mov eax, dword [esp + 0x28]
push ebp
push dword [0xa62570]
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 0x466f8d
push dword [esp + 0x14]
push dword [0xa64aac]
call fcn.00486ce6
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 [0xa6256c]
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 0x4669fc
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 [0xa638ec], 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 [0xa638e4], ebp
je 0x466f67
push 4
push 4
push 0x513
push esi
call ebx
push 0xa638f0
push esi
push edi
push dword [esp + 0x20]
call fcn.0046aec8
mov esi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x466f8d
push 1
push eax
push edi
call fcn.00467029
call fcn.0046f0f2
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x18