Function at 0x508be0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d30b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [esi], 0x602c38
mov eax, dword [0x691fc8]
cmp eax, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
jne 0x508c2e
push str.dwmapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x691fc8], eax
je 0x508c55
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmIsCompositionEnabled
push eax
call ebx
mov dword [0x691fc4], eax
mov eax, dword [0x691fc8]
push str.DwmSetWindowAttribute
push eax
call ebx
mov dword [0x691fd0], eax
jmp 0x508c5b
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x691fcc]
cmp eax, edi
jne 0x508c78
push str.UxTheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x691fcc], eax
je 0x508cd0
push str.OpenThemeData
push eax
call ebx
mov ecx, dword [0x691fcc]
push str.CloseThemeData
push ecx
mov dword [0x691fb0], eax
call ebx
mov edx, dword [0x691fcc]
push str.DrawThemeBackground
push edx
mov dword [0x691fb4], eax
call ebx
mov dword [0x691fb8], eax
mov eax, dword [0x691fcc]
push str.GetThemeSysFont
push eax
call ebx
mov ecx, dword [0x691fcc]
push str.DrawThemeTextEx
push ecx
mov dword [0x691fbc], eax
call ebx
mov dword [0x691fc0], eax
mov edx, dword [ebp + 8]
mov eax, 8
push edx
mov ecx, esi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x1f
mov dword [esi + 0x44], 0x14
mov dword [esi + 0x48], 0x2f
mov dword [esi + 0x4c], 0x1d
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0xc
mov dword [esi + 0x58], 5
mov dword [esi + 0x5c], eax
call fcn.00509b80
lea eax, [esi + 0x60]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 6
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x1c], edx
call ebx
shl eax, 1
push 4
mov edi, eax
call ebx
mov dword [ebp - 0x18], edi
mov edi, eax
mov eax, dword [ebp - 0x18]
push 5
neg edi
sub edi, eax
call ebx
mov ecx, eax
or eax, 0xffffffff
sub eax, ecx
push edi
shl eax, 1
lea edx, [ebp - 0x28]
push eax
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
lea eax, [esi + 0x8c]
mov dword [esi + 0x8c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
push ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xa0], eax
call fcn.005aa54c
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esi + 0xa0]
push edx
push eax
call fcn.005a7586
push 0x1e
call ebx
push 0x1f
mov edi, eax
call ebx
lea ecx, [edi - 5]
mov edx, 8
add eax, 0xfffffffb
cmp ecx, edx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], eax
jle 0x508dfb
mov dword [esi + 0x84], edx
cmp eax, edx
jle 0x508e05
mov dword [esi + 0x88], edx
call fcn.005b7d85
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push 0
push ecx
mov ecx, dword [ebp + 0x18]
mov ebx, 1
push edx
and ecx, 0xffff
push ebx
push ecx
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [0x691b68]
test eax, eax
je 0x508e5e
call fcn.005b7d85
mov eax, dword [eax + 8]
push 0
push 0x10
push 0x10
push ebx
push 0x80
push eax
call edi
mov dword [esi + 0xc], eax
jmp 0x508e65
mov dword [esi + 0xc], 0
mov edx, dword [ebp + 0x14]
mov byte [esi + 4], 0
mov dword [esi + 0x80], edx
mov byte [esi + 5], bl
mov eax, dword [0x691b68]
test eax, eax
je 0x508ed4
mov eax, dword [0x691fd0]
test eax, eax
je 0x508ed4
mov ecx, dword [0x691fb0]
test ecx, ecx
je 0x508ed4
mov ecx, dword [0x691fb4]
test ecx, ecx
je 0x508ed4
mov ecx, dword [0x691fbc]
test ecx, ecx
je 0x508ed4
mov ecx, dword [0x691fc0]
test ecx, ecx
je 0x508ed4
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push 4
push ecx
push 4
push edx
mov byte [ebp - 4], bl
mov dword [ebp + 0x14], ebx
call eax
jmp 0x508ed4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14