Function at 0x41d7e7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4af53c]
call fcn.00425de3
mov dword [ebp - 4], eax
call fcn.00421cdc
call fcn.0041f04f
xor esi, esi
cmp dword [0x4aeedc], esi
jne 0x41d96b
mov edi, 0xa4
push edi
push esi
push 0x4aee38
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x4aee3c], edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RICHED20.DLL
mov dword [0x4aee38], 0x16
mov dword [0x4aee40], 0x41d67d
mov dword [0x4aee58], 0x41d00e
mov dword [0x4aee50], 0x41d1aa
mov dword [0x4aee54], 0x41d1d7
mov dword [0x4aee6c], 0x41d0ec
mov dword [0x4aee64], 0x41d117
mov dword [0x4aee60], 0x41d131
mov dword [0x4aee78], 0x41d210
mov dword [0x4aee7c], 0x41d27f
mov dword [0x4aeea0], 0x41d3ae
mov dword [0x4aeea4], 0x41d3fb
mov dword [0x4aeeb4], 0x41d388
mov dword [0x4aeeb0], 0x41d2f9
mov dword [0x4aeed0], 0x41d484
mov dword [0x4aeed4], 0x41d45e
call edi
mov dword [0x4aeee0], eax
cmp eax, esi
jne 0x41d8eb
push str.RICHED32.DLL
call edi
mov eax, dword [0x4aeca0]
cmp eax, esi
je 0x41d961
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call ebx
push str.CloseThemeData
push dword [0x4aeca0]
mov dword [0x4aee2c], eax
call ebx
push str.GetThemeBackgroundContentRect
push dword [0x4aeca0]
mov dword [0x4aee28], eax
call ebx
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x4aeca0]
mov dword [0x4aee24], eax
call ebx
push str.DrawThemeParentBackground
push dword [0x4aeca0]
mov dword [0x4aee20], eax
call ebx
push str.DrawThemeBackground
push dword [0x4aeca0]
mov dword [0x4aee1c], eax
call ebx
mov dword [0x4aee18], eax
mov dword [0x4aeedc], 1
mov eax, dword [0x4aec9c]
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
mov ecx, str.RichEdit20A
cmp dword [0x4aeee0], esi
jne 0x41d990
mov ecx, str.RichEdit
mov edx, dword [ebp - 4]
push esi
push dword [0x4ae268]
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 0x41da91
push dword [ebp + 8]
push dword [0x4af538]
call fcn.00425bce
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 [0x4ae264]
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 0x41d6a8
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 [0x4aee30], 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 0x4aee38
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.0041ea9c
mov dword [ebp + 0x18], eax
mov eax, 0x10000000
test dword [ebp + 0x1c], eax
je 0x41da91
push 1
push eax
push ebx
call fcn.0041d3fb
call fcn.00421ceb
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18