Function at 0x403908
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
push edi
push dword [0x414074]
call fcn.0040ba01
mov ebp, eax
call fcn.0040a097
call fcn.00404136
xor edi, edi
cmp dword [0x40fc58], edi
jne 0x403a87
mov esi, 0xa4
push esi
push edi
push 0x40fc60
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x40fc64], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40fc60], 0x16
mov dword [0x40fc68], 0x403639
push str.RICHED20.DLL
mov dword [0x40fc80], 0x403559
mov dword [0x40fc78], 0x4038d7
mov dword [0x40fc7c], 0x403df3
mov dword [0x40fc94], 0x403680
mov dword [0x40fc8c], 0x403666
mov dword [0x40fc88], 0x403bce
mov dword [0x40fca0], 0x403868
mov dword [0x40fca4], 0x403d73
mov dword [0x40fcc8], 0x4037eb
mov dword [0x40fccc], 0x403c51
mov dword [0x40fcdc], 0x403838
mov dword [0x40fcd8], 0x403cb4
mov dword [0x40fcf8], 0x40385e
mov dword [0x40fcfc], 0x403d4e
call esi
mov dword [0x40fc5c], eax
test eax, eax
jne 0x403a07
push str.RICHED32.DLL
call esi
mov eax, dword [0x40fc50]
test eax, eax
je 0x403a7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x40fc50]
mov dword [0x40fd08], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x40fc50]
mov dword [0x40fd0c], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x40fc50]
mov dword [0x40fd10], eax
call esi
push str.DrawThemeParentBackground
push dword [0x40fc50]
mov dword [0x40fd14], eax
call esi
push str.DrawThemeBackground
push dword [0x40fc50]
mov dword [0x40fd18], eax
call esi
mov dword [0x40fd1c], eax
mov dword [0x40fc58], 1
mov ecx, dword [0x40fc4c]
mov edx, str.RichEdit20W
neg ecx
sbb ecx, ecx
and ecx, 0xfffffe00
add ecx, 0x200
cmp dword [0x40fc5c], edi
jne 0x403aaf
mov edx, str.RichEdit
mov eax, dword [esp + 0x24]
or esi, 0xffffffff
push edi
push dword [0x40f9c8]
or eax, 0x503111c4
push esi
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push eax
push edi
push edx
push ecx
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x403ba4
push ebx
push dword [esp + 0x14]
push dword [0x414090]
call fcn.0040ba92
mov ebx, eax
push 0x10
push 8
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], esi
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x1c], ecx
push dword [0x40f9c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push str.PB_ClientRect
push edi
call dword [sym.imp.USER32.DLL_SetPropW]
xor ebp, ebp
push ebp
push esi
mov esi, dword [sym.imp.USER32.DLL_SendMessageW]
push 0xc5
push edi
call esi
push 0x4036ab
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x37
push ebp
push ebp
push ebp
push ebp
push ebp
push edi
mov dword [0x40fd04], eax
call dword [sym.imp.USER32.DLL_SetWindowPos]
push 0x541
push ebp
push ebp
push edi
call dword [sym.imp.USER32.DLL_RedrawWindow]
push ebp
push ebp
push 0x43b
push edi
call esi
or eax, 1
push eax
push ebp
push 0x445
push edi
call esi
push 0x40fc60
push edi
push ebx
push dword [esp + 0x20]
call fcn.00404370
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x403ba3
push 1
push eax
push ebx
call fcn.00403c51
pop ebx
call fcn.0040a0a6
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18