Function at 0x479275
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc5eb90]
call fcn.0048522c
mov ebx, eax
call fcn.004e8b75
call fcn.004eadee
xor ebp, ebp
cmp dword [0xc5eb58], ebp
jne 0x479401
mov esi, 0xa8
push esi
push ebp
push 0xc5eab0
call fcn.00490d60
add esp, 0xc
mov dword [0xc5eab4], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0xc5eab0], 0x16
mov dword [0xc5eab8], 0x479ca6
push str.MSFTEDIT.DLL
mov dword [0xc5ead0], 0x47959b
mov dword [0xc5eac8], 0x47972d
mov dword [0xc5eacc], 0x47975e
mov dword [0xc5eae4], 0x479570
mov dword [0xc5eadc], 0x479685
mov dword [0xc5ead8], 0x47969f
mov dword [0xc5eaf0], 0x4797e0
mov dword [0xc5eaf4], 0x47984f
mov dword [0xc5eb18], 0x47998f
mov dword [0xc5eb1c], 0x4799df
mov dword [0xc5eb2c], 0x479969
mov dword [0xc5eb28], 0x4798cf
mov dword [0xc5eb48], 0x479a7f
mov dword [0xc5eb4c], 0x479a50
call esi
push str.RICHED20.DLL
mov dword [0xc5eb5c], eax
call esi
mov dword [0xc5eb60], eax
test eax, eax
jne 0x479381
push str.RICHED32.DLL
call esi
mov eax, dword [0xc5eb88]
test eax, eax
je 0x4793f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5780b8
push eax
call esi
push 0x5780c8
push dword [0xc5eb88]
mov dword [0xc5eb68], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0xc5eb88]
mov dword [0xc5eb6c], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0xc5eb88]
mov dword [0xc5eb70], eax
call esi
push str.DrawThemeParentBackground
push dword [0xc5eb88]
mov dword [0xc5eb74], eax
call esi
push 0x577e7c
push dword [0xc5eb88]
mov dword [0xc5eb78], eax
call esi
mov dword [0xc5eb7c], eax
mov dword [0xc5eb58], 1
mov esi, dword [0xc5eb84]
neg esi
sbb esi, esi
and esi, 0xfffffe00
add esi, 0x200
cmp dword [0xc5eb5c], ebp
je 0x479426
mov edi, str.RICHEDIT50W
jmp 0x479438
mov edi, str.RichEdit20W
cmp dword [0xc5eb60], ebp
jne 0x479438
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.004e8ec4
mov eax, dword [esp + 0x28]
push ebp
push dword [0xc5dbc8]
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 0x479562
push dword [esp + 0x14]
push dword [0xc5eb8c]
call fcn.004877dd
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 [0xc5dbc4]
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 0x479cd3
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 [0xc5eb64], 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 [0xc5eb5c], ebp
je 0x47953b
push 4
push 4
push 0x513
push esi
call ebx
push 0xc5eab0
push esi
push edi
push dword [esp + 0x20]
call fcn.004e9732
mov esi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x479562
push ebp
push 1
push eax
push edi
call fcn.004799df
call fcn.004e8b7e
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x18