Function at 0x40a52a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
push edi
push dword [0x4893fc]
call fcn.00412f5c
mov ebp, eax
call fcn.0041236d
call fcn.0040bb52
xor edi, edi
cmp dword [0x488e78], edi
jne 0x40a6a9
mov esi, 0xa4
push esi
push edi
push 0x488e80
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x488e84], esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x488e80], 0x16
mov dword [0x488e88], 0x40a261
push str.RICHED20.DLL
mov dword [0x488ea0], 0x40a182
mov dword [0x488e98], 0x40a4fb
mov dword [0x488e9c], 0x40a9f8
mov dword [0x488eb4], 0x40a2a8
mov dword [0x488eac], 0x40a28e
mov dword [0x488ea8], 0x40a7d3
mov dword [0x488ec0], 0x40a490
mov dword [0x488ec4], 0x40a978
mov dword [0x488ee8], 0x40a413
mov dword [0x488eec], 0x40a856
mov dword [0x488efc], 0x40a460
mov dword [0x488ef8], 0x40a8b9
mov dword [0x488f18], 0x40a486
mov dword [0x488f1c], 0x40a953
call esi
mov dword [0x488e7c], eax
test eax, eax
jne 0x40a629
push str.RICHED32.DLL
call esi
mov eax, dword [0x488e70]
test eax, eax
je 0x40a69f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call esi
push str.CloseThemeData
push dword [0x488e70]
mov dword [0x488f28], eax
call esi
push str.GetThemeBackgroundContentRect
push dword [0x488e70]
mov dword [0x488f2c], eax
call esi
push str.IsThemeBackgroundPartiallyTransparent
push dword [0x488e70]
mov dword [0x488f30], eax
call esi
push str.DrawThemeParentBackground
push dword [0x488e70]
mov dword [0x488f34], eax
call esi
push str.DrawThemeBackground
push dword [0x488e70]
mov dword [0x488f38], eax
call esi
mov dword [0x488f3c], eax
mov dword [0x488e78], 1
mov ecx, dword [0x488e6c]
mov edx, str.RichEdit20A
neg ecx
sbb ecx, ecx
and ecx, 0xfffffe00
add ecx, 0x200
cmp dword [0x488e7c], edi
jne 0x40a6d1
mov edx, str.RichEdit
mov eax, dword [esp + 0x24]
or esi, 0xffffffff
push edi
push dword [0x488a48]
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_CreateWindowExA]
mov edi, eax
test edi, edi
je 0x40a7c6
push ebx
push dword [esp + 0x14]
push dword [0x489418]
call fcn.0041310c
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 [0x488a44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push str.PB_ClientRect
push edi
call dword [sym.imp.USER32.DLL_SetPropA]
xor ebp, ebp
push ebp
push esi
mov esi, dword [sym.imp.USER32.DLL_SendMessageA]
push 0xc5
push edi
call esi
push 0x40a2d3
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.DLL_SetWindowLongA]
push 0x37
push ebp
push ebp
push ebp
push ebp
push ebp
push edi
mov dword [0x488f24], 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 0x488e80
push edi
push ebx
push dword [esp + 0x20]
call fcn.0040bd19
mov edi, eax
mov eax, 0x10000000
test dword [esp + 0x28], eax
je 0x40a7c5
push 1
push eax
push ebx
call fcn.0040a856
pop ebx
call fcn.0041237c
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18