Function at 0x40e16c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x482d70]
call fcn.00417583
mov dword [ebp - 4], eax
call fcn.00412478
call fcn.0040f05c
xor esi, esi
cmp dword [0x482adc], esi
jne 0x40e2f0
mov edi, 0xa4
push edi
push esi
push 0x482a38
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x482a3c], edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RICHED20.DLL
mov dword [0x482a38], 0x16
mov dword [0x482a40], 0x40e002
mov dword [0x482a58], 0x40d98b
mov dword [0x482a50], 0x40db29
mov dword [0x482a54], 0x40db58
mov dword [0x482a6c], 0x40da6b
mov dword [0x482a64], 0x40da96
mov dword [0x482a60], 0x40dab0
mov dword [0x482a78], 0x40db92
mov dword [0x482a7c], 0x40dc04
mov dword [0x482aa0], 0x40dd33
mov dword [0x482aa4], 0x40dd80
mov dword [0x482ab4], 0x40dd0d
mov dword [0x482ab0], 0x40dc7e
mov dword [0x482ad0], 0x40de09
mov dword [0x482ad4], 0x40dde3
call edi
mov dword [0x482ae0], eax
cmp eax, esi
jne 0x40e270
push str.RICHED32.DLL
call edi
mov eax, dword [0x482968]
cmp eax, esi
je 0x40e2e6
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call ebx
push str.CloseThemeData
push dword [0x482968]
mov dword [0x482a2c], eax
call ebx
push str.GetThemeBackgroundContentRect
push dword [0x482968]
mov dword [0x482a28], eax
call ebx
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x482968]
mov dword [0x482a24], eax
call ebx
push str.DrawThemeParentBackground
push dword [0x482968]
mov dword [0x482a20], eax
call ebx
push str.DrawThemeBackground
push dword [0x482968]
mov dword [0x482a1c], eax
call ebx
mov dword [0x482a18], eax
mov dword [0x482adc], 1
mov eax, dword [0x482964]
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
mov ecx, str.RichEdit20W
cmp dword [0x482ae0], esi
jne 0x40e315
mov ecx, str.RichEdit
mov edx, dword [ebp - 4]
push esi
push dword [0x48230c]
or edi, 0xffffffff
push edi
push dword [edx]
mov edx, dword [ebp + 0x1c]
push dword [ebp + 0x18]
or edx, 0x503111c4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push esi
push ecx
push eax
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov dword [ebp + 0x18], eax
cmp eax, esi
je 0x40e416
push dword [ebp + 8]
push dword [0x482d6c]
call fcn.00417414
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], edi
mov eax, dword [eax + 8]
push 0x10
push 8
mov dword [ebx + 0x1c], eax
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push str.PB_ClientRect
push dword [ebp + 0x18]
call dword [sym.imp.USER32.DLL_SetPropW]
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_SendMessageW]
push 0xc5
push dword [ebp + 0x18]
call edi
push 0x40e02d
push 0xfffffffffffffffc
push dword [ebp + 0x18]
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x37
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
mov dword [0x482a30], eax
call dword [sym.imp.USER32.DLL_SetWindowPos]
push 0x541
push esi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.USER32.DLL_RedrawWindow]
push esi
push esi
push 0x43b
push dword [ebp + 0x18]
call edi
or eax, 1
push eax
push esi
push 0x445
push dword [ebp + 0x18]
call edi
push 0x482a38
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.0040ef76
mov dword [ebp + 0x18], eax
mov eax, 0x10000000
test dword [ebp + 0x1c], eax
je 0x40e416
push 1
push eax
push ebx
call fcn.0040dd80
call fcn.00412487
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18