Function at 0x504780
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca8d0
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], 0x5f9b18
mov eax, dword [0x687f90]
cmp eax, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
jne 0x5047ce
push str.dwmapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x687f90], eax
je 0x5047f5
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmIsCompositionEnabled
push eax
call ebx
mov dword [0x687f8c], eax
mov eax, dword [0x687f90]
push str.DwmSetWindowAttribute
push eax
call ebx
mov dword [0x687f98], eax
jmp 0x5047fb
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x687f94]
cmp eax, edi
jne 0x504818
push str.UxTheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x687f94], eax
je 0x504870
push str.OpenThemeData
push eax
call ebx
mov ecx, dword [0x687f94]
push str.CloseThemeData
push ecx
mov dword [0x687f78], eax
call ebx
mov edx, dword [0x687f94]
push str.DrawThemeBackground
push edx
mov dword [0x687f7c], eax
call ebx
mov dword [0x687f80], eax
mov eax, dword [0x687f94]
push str.GetThemeSysFont
push eax
call ebx
mov ecx, dword [0x687f94]
push str.DrawThemeTextEx
push ecx
mov dword [0x687f84], eax
call ebx
mov dword [0x687f88], 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.00505720
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.005a214c
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.0059f186
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 0x50499b
mov dword [esi + 0x84], edx
cmp eax, edx
jle 0x5049a5
mov dword [esi + 0x88], edx
call fcn.005af98f
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 [0x687b38]
test eax, eax
je 0x5049fe
call fcn.005af98f
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 0x504a05
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 [0x687b38]
test eax, eax
je 0x504a74
mov eax, dword [0x687f98]
test eax, eax
je 0x504a74
mov ecx, dword [0x687f78]
test ecx, ecx
je 0x504a74
mov ecx, dword [0x687f7c]
test ecx, ecx
je 0x504a74
mov ecx, dword [0x687f84]
test ecx, ecx
je 0x504a74
mov ecx, dword [0x687f88]
test ecx, ecx
je 0x504a74
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 0x504a74
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