Function at 0x4aeb30
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, dword [esi + 4]
push edi
xor eax, eax
mov ecx, 0x43
mov edi, esi
push str.UxTheme.dll
mov ebx, 1
rep stosd dword es:[edi], eax
call fcn.00405a10
test eax, eax
mov dword [esi + 0x4c], eax
je 0x4af07f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
test eax, eax
mov dword [esi + 0x50], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.CloseThemeData
push eax
call edi
test eax, eax
mov dword [esi + 0x54], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.DrawThemeBackground
push ecx
call edi
test eax, eax
mov dword [esi + 0x58], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.DrawThemeText
push edx
call edi
test eax, eax
mov dword [esi + 0x5c], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemeBackgroundContentRect
push eax
call edi
test eax, eax
mov dword [esi + 0x60], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeBackgroundExtent
push ecx
call edi
test eax, eax
mov dword [esi + 0x64], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.GetThemePartSize
push edx
call edi
test eax, eax
mov dword [esi + 0x68], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemeTextExtent
push eax
call edi
test eax, eax
mov dword [esi + 0x6c], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeTextMetrics
push ecx
call edi
test eax, eax
mov dword [esi + 0x70], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.GetThemeBackgroundRegion
push edx
call edi
test eax, eax
mov dword [esi + 0x74], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.HitTestThemeBackground
push eax
call edi
test eax, eax
mov dword [esi + 0x78], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.DrawThemeEdge
push ecx
call edi
test eax, eax
mov dword [esi + 0x7c], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.DrawThemeIcon
push edx
call edi
test eax, eax
mov dword [esi + 0x80], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.IsThemePartDefined
push eax
call edi
test eax, eax
mov dword [esi + 0x84], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.IsThemeBackgroundPartiallyTransparent
push ecx
call edi
test eax, eax
mov dword [esi + 0x88], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.GetThemeColor
push edx
call edi
test eax, eax
mov dword [esi + 0x8c], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemeMetric
push eax
call edi
test eax, eax
mov dword [esi + 0x90], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeMargins
push ecx
call edi
test eax, eax
mov dword [esi + 0x94], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.GetThemeString
push edx
call edi
test eax, eax
mov dword [esi + 0x98], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemeBool
push eax
call edi
test eax, eax
mov dword [esi + 0x9c], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeInt
push ecx
call edi
test eax, eax
mov dword [esi + 0xa0], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.GetThemeEnumValue
push edx
call edi
test eax, eax
mov dword [esi + 0xa4], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemePosition
push eax
call edi
test eax, eax
mov dword [esi + 0xa8], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeFont
push ecx
call edi
test eax, eax
mov dword [esi + 0xac], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.GetThemeRect
push edx
call edi
test eax, eax
mov dword [esi + 0xb0], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemeIntList
push eax
call edi
test eax, eax
mov dword [esi + 0xb4], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemePropertyOrigin
push ecx
call edi
test eax, eax
mov dword [esi + 0xb8], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.SetWindowTheme
push edx
call edi
test eax, eax
mov dword [esi + 0xbc], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemeFilename
push eax
call edi
test eax, eax
mov dword [esi + 0xc0], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeSysColor
push ecx
call edi
test eax, eax
mov dword [esi + 0xc4], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.GetThemeSysColorBrush
push edx
call edi
test eax, eax
mov dword [esi + 0xc8], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemeSysBool
push eax
call edi
test eax, eax
mov dword [esi + 0xcc], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeSysSize
push ecx
call edi
test eax, eax
mov dword [esi + 0xd0], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.GetThemeSysFont
push edx
call edi
test eax, eax
mov dword [esi + 0xd4], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetThemeSysString
push eax
call edi
test eax, eax
mov dword [esi + 0xd8], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeSysInt
push ecx
call edi
test eax, eax
mov dword [esi + 0xdc], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.IsThemeActive
push edx
call edi
test eax, eax
mov dword [esi + 0xe0], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.IsAppThemed
push eax
call edi
test eax, eax
mov dword [esi + 0xe4], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetWindowTheme
push ecx
call edi
test eax, eax
mov dword [esi + 0xe8], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.EnableThemeDialogTexture
push edx
call edi
test eax, eax
mov dword [esi + 0xec], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.IsThemeDialogTextureEnabled
push eax
call edi
test eax, eax
mov dword [esi + 0xf0], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeAppProperties
push ecx
call edi
test eax, eax
mov dword [esi + 0xf4], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.SetThemeAppProperties
push edx
call edi
test eax, eax
mov dword [esi + 0xf8], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.GetCurrentThemeName
push eax
call edi
test eax, eax
mov dword [esi + 0xfc], eax
je 0x4af04e
mov ecx, dword [esi + 0x4c]
push str.GetThemeDocumentationProperty
push ecx
call edi
test eax, eax
mov dword [esi + 0x100], eax
je 0x4af04e
mov edx, dword [esi + 0x4c]
push str.DrawThemeParentBackground
push edx
call edi
test eax, eax
mov dword [esi + 0x104], eax
je 0x4af04e
mov eax, dword [esi + 0x4c]
push str.EnableTheming
push eax
call edi
test eax, eax
mov dword [esi + 0x108], eax
je 0x4af04e
call dword [esi + 0xf4]
mov edi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4af00a
xor ecx, ecx
test edi, edi
setne cl
mov dword [esi + 4], ecx
call dword [esi + 0xe0]
test eax, eax
je 0x4af004
test edi, 2
je 0x4af004
mov eax, ebx
mov dword [esi], eax
jmp 0x4af033
xor eax, eax
mov dword [esi], eax
jmp 0x4af033
test ebp, ebp
mov dword [esi + 4], ebp
je 0x4af02b
call dword [esi + 0xe0]
test eax, eax
je 0x4af033
push 7
call dword [esi + 0xf8]
mov dword [esi], 1
jmp 0x4af038
push 0
call dword [esi + 0xf8]
cmp dword [esi], 0
je 0x4af041
mov edi, dword [esp + 0x18]
call fcn.004ae940
pop edi
mov dword [0x622254], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [0x622254]
test eax, eax
mov ebx, 0x8000ffff
je 0x4af075
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4af06a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, 0x43
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x622254], 0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret