Function at 0x41b7e7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x49fa9c]
call fcn.00423de3
mov dword [ebp - 4], eax
call fcn.0041fcdc
call fcn.0041d04f
xor esi, esi
cmp dword [0x49f43c], esi
jne 0x41b96b
mov edi, 0xa4
push edi
push esi
push 0x49f398
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x49f39c], edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RICHED20.DLL
mov dword [0x49f398], 0x16
mov dword [0x49f3a0], 0x41b67d
mov dword [0x49f3b8], 0x41b00e
mov dword [0x49f3b0], 0x41b1aa
mov dword [0x49f3b4], 0x41b1d7
mov dword [0x49f3cc], 0x41b0ec
mov dword [0x49f3c4], 0x41b117
mov dword [0x49f3c0], 0x41b131
mov dword [0x49f3d8], 0x41b210
mov dword [0x49f3dc], 0x41b27f
mov dword [0x49f400], 0x41b3ae
mov dword [0x49f404], 0x41b3fb
mov dword [0x49f414], 0x41b388
mov dword [0x49f410], 0x41b2f9
mov dword [0x49f430], 0x41b484
mov dword [0x49f434], 0x41b45e
call edi
mov dword [0x49f440], eax
cmp eax, esi
jne 0x41b8eb
push str.RICHED32.DLL
call edi
mov eax, dword [0x49f200]
cmp eax, esi
je 0x41b961
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call ebx
push str.CloseThemeData
push dword [0x49f200]
mov dword [0x49f38c], eax
call ebx
push str.GetThemeBackgroundContentRect
push dword [0x49f200]
mov dword [0x49f388], eax
call ebx
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x49f200]
mov dword [0x49f384], eax
call ebx
push str.DrawThemeParentBackground
push dword [0x49f200]
mov dword [0x49f380], eax
call ebx
push str.DrawThemeBackground
push dword [0x49f200]
mov dword [0x49f37c], eax
call ebx
mov dword [0x49f378], eax
mov dword [0x49f43c], 1
mov eax, dword [0x49f1fc]
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
mov ecx, str.RichEdit20A
cmp dword [0x49f440], esi
jne 0x41b990
mov ecx, str.RichEdit
mov edx, dword [ebp - 4]
push esi
push dword [0x49e788]
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_CreateWindowExA]
mov dword [ebp + 0x18], eax
cmp eax, esi
je 0x41ba91
push dword [ebp + 8]
push dword [0x49fa98]
call fcn.00423bce
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 [0x49e784]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push str.PB_ClientRect
push dword [ebp + 0x18]
call dword [sym.imp.USER32.DLL_SetPropA]
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_SendMessageA]
push 0xc5
push dword [ebp + 0x18]
call edi
push 0x41b6a8
push 0xfffffffffffffffc
push dword [ebp + 0x18]
call dword [sym.imp.USER32.DLL_SetWindowLongA]
push 0x37
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
mov dword [0x49f390], 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 0x49f398
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.0041ca9c
mov dword [ebp + 0x18], eax
mov eax, 0x10000000
test dword [ebp + 0x1c], eax
je 0x41ba91
push 1
push eax
push ebx
call fcn.0041b3fb
call fcn.0041fceb
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18