Function at 0x1402216b0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov ebp, dword [rcx + 4]
mov r14d, r8d
mov r15, rdx
mov r8d, 0x210
xor edx, edx
mov rbx, rcx
mov esi, 1
call sub.VCRUNTIME140.dll_memset
lea rcx, str.UxTheme.dll
call fcn.14018ba80
mov qword [rbx + 0x90], rax
test rax, rax
je 0x140221e4b
lea rdx, str.OpenThemeData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x98], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.CloseThemeData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.DrawThemeBackground
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.DrawThemeText
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeBackgroundContentRect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeBackgroundExtent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemePartSize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeTextExtent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xd0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeTextMetrics
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xd8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeBackgroundRegion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xe0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.HitTestThemeBackground
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xe8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.DrawThemeEdge
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xf0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.DrawThemeIcon
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xf8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.IsThemePartDefined
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x100], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x108], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeColor
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x110], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeMetric
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x118], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeMargins
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x120], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x128], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeBool
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x130], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeInt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x138], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeEnumValue
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x140], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemePosition
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x148], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeFont
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x150], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeRect
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x158], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeIntList
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x160], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemePropertyOrigin
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x168], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.SetWindowTheme
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x170], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeFilename
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x178], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysColor
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x180], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysColorBrush
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x188], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysBool
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x190], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysSize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x198], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysFont
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1a0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1a8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeSysInt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1b0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.IsThemeActive
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1b8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.IsAppThemed
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1c0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetWindowTheme
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1c8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.EnableThemeDialogTexture
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1d0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.IsThemeDialogTextureEnabled
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1d8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeAppProperties
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1e0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.SetThemeAppProperties
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1e8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetCurrentThemeName
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1f0], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.GetThemeDocumentationProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x1f8], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.DrawThemeParentBackground
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x200], rax
test rax, rax
je 0x140221e0d
mov rcx, qword [rbx + 0x90]
lea rdx, str.EnableTheming
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x208], rax
test rax, rax
je 0x140221e0d
mov qword [rsp + 0x40], rdi
call qword [rbx + 0x1e0]
mov edi, eax
test r14d, r14d
je 0x140221dc5
xor eax, eax
test edi, edi
setne al
mov dword [rbx + 4], eax
call qword [rbx + 0x1b8]
test eax, eax
je 0x140221dbf
and edi, 2
test dil, dil
jne 0x140221dc1
xor esi, esi
mov dword [rbx], esi
jmp 0x140221ded
mov dword [rbx + 4], ebp
test ebp, ebp
je 0x140221de5
call qword [rbx + 0x1b8]
test eax, eax
je 0x140221ded
mov ecx, 7
call qword [rbx + 0x1e8]
mov dword [rbx], esi
jmp 0x140221df2
xor ecx, ecx
call qword [rbx + 0x1e8]
cmp dword [rbx], 0
je 0x140221dfd
mov rdx, r15
mov rcx, rbx
call fcn.1402238a0
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov qword [0x140699300], rbx
jmp 0x140221e4d
cmp qword [0x140699300], 0
je 0x140221e39
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x140221e29
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
mov r8d, 0x210
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [0x140699300], 0
mov eax, 0x8000ffff
jmp 0x140221e4d
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret