Function at 0x4368bf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
push edi
push dword [0x585cdc]
call fcn.004515fb
mov ebp, eax
call fcn.0043f756
call fcn.0043b227
xor edi, edi
cmp dword [0x584c50], edi
jne 0x436a3e
mov esi, 0xa4
push esi
push edi
push 0x584c58
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x584c5c], esi
mov esi, dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x584c58], 0x16
mov dword [0x584c60], 0x4365f0
push str.RICHED20.DLL
mov dword [0x584c78], 0x436510
mov dword [0x584c70], 0x43688e
mov dword [0x584c74], 0x436d8d
mov dword [0x584c8c], 0x436637
mov dword [0x584c84], 0x43661d
mov dword [0x584c80], 0x436b68
mov dword [0x584c98], 0x43681f
mov dword [0x584c9c], 0x436d0d
mov dword [0x584cc0], 0x4367a2
mov dword [0x584cc4], 0x436beb
mov dword [0x584cd4], 0x4367ef
mov dword [0x584cd0], 0x436c4e
mov dword [0x584cf0], 0x436815
mov dword [0x584cf4], 0x436ce8
call esi
mov dword [0x584c54], eax
test eax, eax
jne 0x4369be
push str.RICHED32.DLL
call esi
mov eax, dword [0x584954]
test eax, eax
je 0x436a34
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x584954]
mov dword [0x584d00], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x584954]
mov dword [0x584d04], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x584954]
mov dword [0x584d08], eax
call esi
push str.DrawThemeParentBackground
push dword [0x584954]
mov dword [0x584d0c], eax
call esi
push str.DrawThemeBackground
push dword [0x584954]
mov dword [0x584d10], eax
call esi
mov dword [0x584d14], eax
mov dword [0x584c50], 1
mov ecx, dword [0x584950]
mov edx, str.RichEdit20W
neg ecx
sbb ecx, ecx
and ecx, 0xfffffe00
add ecx, 0x200
cmp dword [0x584c54], edi
jne 0x436a66
mov edx, str.RichEdit
mov eax, dword [esp + 0x24]
or esi, 0xffffffff
push edi
push dword [0x5840f8]
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 0x436b5b
push ebx
push dword [esp + 0x14]
push dword [0x585cf8]
call fcn.004517ab
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 [0x5840f4]
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 0x436662
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 [0x584cfc], 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 0x584c58
push edi
push ebx
push dword [esp + 0x20]
call fcn.0043afec
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x436b5a
push 1
push eax
push ebx
call fcn.00436beb
pop ebx
call fcn.0043f765
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18