Function at 0x6518b310
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
cmp byte [0x6540e364], 0
jne 0x6518b6d2
push ebx
push esi
push edi
lea ecx, [esp + 0x20]
mov byte [0x6540e364], 1
call dword [0x652b8640]
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push str.dwmapi
push eax
call dword [0x652b7e98]
add esp, 0xc
lea ecx, [esp + 0x20]
push eax
call dword [0x652b8630]
lea ecx, [esp + 0xc]
call dword [0x652b8638]
mov edi, dword [0x652b7e9c]
lea ecx, [esp + 0x20]
push 1
mov dword [esp + 0x20], 0
mov byte [esp + 0x28], 0
call edi
mov ebx, dword [0x652b7e80]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24], 1
test eax, eax
jne 0x6518b3a7
mov dword [0x6540e328], 0
jmp 0x6518b42a
push str.DwmIsCompositionEnabled
push eax
call esi
mov dword [0x6540e328], eax
test eax, eax
je 0x6518b42a
mov cl, byte [esp + 0x24]
test cl, cl
jne 0x6518b3da
push 1
lea ecx, [esp + 0x24]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x24], eax
add esp, 8
mov byte [esp + 0x24], cl
jmp 0x6518b3de
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x6518b3e6
xor edx, edx
jmp 0x6518b3f8
push str.DwmDefWindowProc
push eax
call esi
mov cl, byte [esp + 0x24]
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [0x6540e324], edx
test cl, cl
jne 0x6518b419
push 1
lea ecx, [esp + 0x24]
call edi
push eax
call ebx
add esp, 8
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24], 1
test eax, eax
je 0x6518b425
push str.DwmExtendFrameIntoClientArea
push eax
call esi
mov dword [0x6540e32c], eax
lea ecx, [esp + 0x14]
call dword [0x652b8640]
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push str.uxtheme
push eax
call dword [0x652b7e98]
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
call dword [0x652b8630]
lea ecx, [esp + 0xc]
call dword [0x652b8638]
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call edi
push eax
call ebx
add esp, 8
mov dword [esp + 0x10], eax
mov byte [esp + 0x18], 1
test eax, eax
jne 0x6518b490
mov dword [0x6540e334], eax
jmp 0x6518b6bb
push str.IsAppThemed
push eax
call esi
mov dword [0x6540e334], eax
test eax, eax
je 0x6518b6bb
mov cl, byte [esp + 0x18]
test cl, cl
jne 0x6518b4c7
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x18], eax
add esp, 8
mov byte [esp + 0x18], cl
jmp 0x6518b4cb
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6518b4d3
xor edx, edx
jmp 0x6518b4e5
push str.DrawThemeBackground
push eax
call esi
mov cl, byte [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [0x6540e34c], edx
test cl, cl
jne 0x6518b507
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x18], eax
add esp, 8
mov byte [esp + 0x18], cl
test eax, eax
jne 0x6518b50f
xor edx, edx
jmp 0x6518b521
push str.GetThemePartSize
push eax
call esi
mov cl, byte [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [0x6540e350], edx
test cl, cl
jne 0x6518b543
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x18], eax
add esp, 8
mov byte [esp + 0x18], cl
test eax, eax
jne 0x6518b54b
xor edx, edx
jmp 0x6518b55d
push str.GetThemeColor
push eax
call esi
mov cl, byte [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [0x6540e354], edx
test cl, cl
jne 0x6518b57f
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x18], eax
add esp, 8
mov byte [esp + 0x18], cl
test eax, eax
jne 0x6518b587
xor edx, edx
jmp 0x6518b599
push str.IsThemeActive
push eax
call esi
mov cl, byte [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [0x6540e338], edx
test cl, cl
jne 0x6518b5bb
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x18], eax
add esp, 8
mov byte [esp + 0x18], cl
test eax, eax
jne 0x6518b5c3
xor edx, edx
jmp 0x6518b5d5
push str.OpenThemeData
push eax
call esi
mov cl, byte [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [0x6540e33c], edx
test cl, cl
jne 0x6518b5f7
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x18], eax
add esp, 8
mov byte [esp + 0x18], cl
test eax, eax
jne 0x6518b5ff
xor edx, edx
jmp 0x6518b611
push str.CloseThemeData
push eax
call esi
mov cl, byte [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [0x6540e340], edx
test cl, cl
jne 0x6518b633
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x18], eax
add esp, 8
mov byte [esp + 0x18], cl
test eax, eax
jne 0x6518b63b
xor edx, edx
jmp 0x6518b64d
push str.GetThemeSysFont
push eax
call esi
mov cl, byte [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [0x6540e344], edx
test cl, cl
jne 0x6518b66f
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
mov cl, 1
mov dword [esp + 0x18], eax
add esp, 8
mov byte [esp + 0x18], cl
test eax, eax
jne 0x6518b677
xor edx, edx
jmp 0x6518b689
push str.DrawThemeTextEx
push eax
call esi
mov cl, byte [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [0x6540e348], edx
test cl, cl
jne 0x6518b6aa
push 1
lea ecx, [esp + 0x18]
call edi
push eax
call ebx
add esp, 8
mov dword [esp + 0x10], eax
mov byte [esp + 0x18], 1
test eax, eax
je 0x6518b6b6
push str.SetWindowThemeAttribute
push eax
call esi
mov dword [0x6540e330], eax
lea ecx, [esp + 0x14]
call dword [0x652b8638]
lea ecx, [esp + 0x20]
call dword [0x652b8638]
pop edi
pop esi
pop ebx
cmp dword [0x6540e328], 0
je 0x6518b74d
cmp dword [0x6540e324], 0
je 0x6518b74d
cmp dword [0x6540e32c], 0
je 0x6518b74d
cmp dword [0x6540e334], 0
je 0x6518b74d
cmp dword [0x6540e34c], 0
je 0x6518b74d
cmp dword [0x6540e350], 0
je 0x6518b74d
cmp dword [0x6540e354], 0
je 0x6518b74d
cmp dword [0x6540e338], 0
je 0x6518b74d
cmp dword [0x6540e33c], 0
je 0x6518b74d
cmp dword [0x6540e340], 0
je 0x6518b74d
cmp dword [0x6540e344], 0
je 0x6518b74d
cmp dword [0x6540e348], 0
je 0x6518b74d
cmp dword [0x6540e330], 0
je 0x6518b74d
mov al, 1
add esp, 0x1c
ret
xor al, al
add esp, 0x1c
ret