Function at 0x503900
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5be0
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], 0x5f4b38
mov eax, dword [0x682a10]
cmp eax, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
jne 0x50394e
push str.dwmapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x682a10], eax
je 0x503975
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmIsCompositionEnabled
push eax
call ebx
mov dword [0x682a0c], eax
mov eax, dword [0x682a10]
push str.DwmSetWindowAttribute
push eax
call ebx
mov dword [0x682a18], eax
jmp 0x50397b
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x682a14]
cmp eax, edi
jne 0x503998
push str.UxTheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x682a14], eax
je 0x5039f0
push str.OpenThemeData
push eax
call ebx
mov ecx, dword [0x682a14]
push str.CloseThemeData
push ecx
mov dword [0x6829f8], eax
call ebx
mov edx, dword [0x682a14]
push str.DrawThemeBackground
push edx
mov dword [0x6829fc], eax
call ebx
mov dword [0x682a00], eax
mov eax, dword [0x682a14]
push str.GetThemeSysFont
push eax
call ebx
mov ecx, dword [0x682a14]
push str.DrawThemeTextEx
push ecx
mov dword [0x682a04], eax
call ebx
mov dword [0x682a08], 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.005048a0
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.0059d55c
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.0059a596
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 0x503b1b
mov dword [esi + 0x84], edx
cmp eax, edx
jle 0x503b25
mov dword [esi + 0x88], edx
call fcn.005aad9a
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 [0x6825b8]
test eax, eax
je 0x503b7e
call fcn.005aad9a
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 0x503b85
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 [0x6825b8]
test eax, eax
je 0x503bf4
mov eax, dword [0x682a18]
test eax, eax
je 0x503bf4
mov ecx, dword [0x6829f8]
test ecx, ecx
je 0x503bf4
mov ecx, dword [0x6829fc]
test ecx, ecx
je 0x503bf4
mov ecx, dword [0x682a04]
test ecx, ecx
je 0x503bf4
mov ecx, dword [0x682a08]
test ecx, ecx
je 0x503bf4
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 0x503bf4
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