Function at 0x40715c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x425504]
call fcn.0041841b
mov ebx, eax
call fcn.00417d05
call fcn.0040839c
xor ebp, ebp
cmp dword [0x4251e8], ebp
jne 0x4072e8
mov esi, 0xa4
push esi
push ebp
push 0x4251f8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4251fc], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4251f8], 0x16
mov dword [0x425200], 0x406e3a
push str.MSFTEDIT.DLL
mov dword [0x425218], 0x406d4f
mov dword [0x425210], 0x40712b
mov dword [0x425214], 0x40767b
mov dword [0x42522c], 0x406e81
mov dword [0x425224], 0x406e67
mov dword [0x425220], 0x40744b
mov dword [0x425238], 0x4070bc
mov dword [0x42523c], 0x4075fb
mov dword [0x425260], 0x40703f
mov dword [0x425264], 0x4074d9
mov dword [0x425274], 0x40708c
mov dword [0x425270], 0x40753c
mov dword [0x425290], 0x4070b2
mov dword [0x425294], 0x4075d6
call esi
push str.RICHED20.DLL
mov dword [0x4251ec], eax
call esi
mov dword [0x4251f0], eax
test eax, eax
jne 0x407268
push str.RICHED32.DLL
call esi
mov eax, dword [0x424e38]
test eax, eax
je 0x4072de
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x424e38]
mov dword [0x42529c], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x424e38]
mov dword [0x4252a0], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x424e38]
mov dword [0x4252a4], eax
call esi
push str.DrawThemeParentBackground
push dword [0x424e38]
mov dword [0x4252a8], eax
call esi
push str.DrawThemeBackground
push dword [0x424e38]
mov dword [0x4252ac], eax
call esi
mov dword [0x4252b0], eax
mov dword [0x4251e8], 1
mov esi, dword [0x424e34]
neg esi
sbb esi, esi
and esi, 0xfffffe00
add esi, 0x200
cmp dword [0x4251ec], ebp
je 0x40730d
mov edi, str.RICHEDIT50W
jmp 0x40731f
mov edi, str.RichEdit20W
cmp dword [0x4251f0], ebp
jne 0x40731f
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.00418f5e
mov eax, dword [esp + 0x28]
push ebp
push dword [0x424dac]
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 0x40743d
push dword [esp + 0x14]
push dword [0x425520]
call fcn.004184ac
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 [0x424da8]
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 0x406eac
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 [0x4251f4], 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 [0x4251ec], ebp
je 0x407417
push 4
push 4
push 0x513
push esi
call ebx
push 0x4251f8
push esi
push edi
push dword [esp + 0x20]
call fcn.00407d8f
mov esi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x40743d
push 1
push eax
push edi
call fcn.004074d9
call fcn.00417d14
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x18