Function at 0x1000e4d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [sym.imp.kernel32.dll_GlobalAddAtomW]
mov dword [esp], str.ux_theme
call ebx
sub esp, 4
mov word [0x10015108], ax
mov dword [esp], str.ux_subapp
call ebx
sub esp, 4
mov word [0x10015100], ax
mov dword [esp], str.ux_subidlst
call ebx
sub esp, 4
mov word [0x10015104], ax
mov dword [esp], str.ux_dialogtheme
call ebx
sub esp, 4
mov word [0x100150fc], ax
lea eax, [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x1000e730
test byte [0x100150dc], 8
jne 0x1000e8c0
mov eax, dword [ebp - 0x34]
lea edi, [ebp - 0x30]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x30], 0x14
mov dword [esp + 0x14], edi
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ThemeActive
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
jne 0x1000e7e0
xor eax, eax
cmp word [ebp - 0x20], 0x30
setne al
mov dword [0x1001510c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], pe_nt_image_headers32
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x100151e0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ColorName
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x1000e5f2
xor eax, eax
mov word [0x100151e0], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], pe_nt_image_headers32
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x10015260
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SizeName
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x1000e635
xor ecx, ecx
mov word [0x10015260], cx
mov dword [ebp - 0x28], 0x208
mov edi, dword [ebp - 0x34]
test byte [0x100150dc], 8
jne 0x1000e950
lea eax, [ebp - 0x28]
mov dword [esp + 0x10], 0x100152e0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.DllName
mov dword [esp], edi
call ebx
sub esp, 0x18
mov edx, eax
test eax, eax
je 0x1000e710
cmp eax, 0xea
je 0x1000e710
xor eax, eax
mov word [0x100152e0], ax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [0x1001510c]
test eax, eax
jne 0x1000e778
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MSSTYLES_SetActiveTheme
test byte [0x100150dc], 8
jne 0x1000ea50
mov dword [ebp - 0x20], sym._UXTHEME_DefDlgProc_20
mov dword [ebp - 0x1c], sym._UXTHEME_NonClientButtonDraw_36
mov dword [ebp - 0x18], sym._UXTHEME_ScrollBarDraw_52
mov dword [ebp - 0x14], sym._UXTHEME_ScrollbarWndProc_20
mov dword [esp], esi
mov dword [esp + 4], 0x10015504
call dword [sym.imp.user32.dll_RegisterUserApiHook]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
cmp ecx, 2
je 0x1000e998
test edx, edx
je 0x1000e697
jmp 0x1000e68f
lea esi, [ebp - 0x20]
test byte [0x100150dc], 8
je 0x1000e6a6
mov dword [esp + 0xc], str.Failed_to_open_theme_registry_key_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov eax, dword [0x1001510c]
test eax, eax
je 0x1000e6b3
lea esi, [esi]
xor ecx, ecx
mov edx, 0x10015260
cmp word [0x10015260], 0
mov eax, 0x100151e0
cmove edx, ecx
mov dword [esp], 0x100152e0
cmp word [0x100151e0], 0
cmove eax, ecx
lea ecx, [ebp - 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._MSSTYLES_OpenThemeFile
test eax, eax
jns 0x1000e830
mov dword [0x1001510c], 0
xor eax, eax
mov word [0x100152e0], ax
xor eax, eax
mov word [0x100151e0], ax
xor eax, eax
mov word [0x10015260], ax
jmp 0x1000e6b3
mov dword [0x1001510c], 0
test byte [0x100150dc], 8
je 0x1000e5b0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_get_ThemeActive:__ld_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000e5b0
mov ecx, dword [ebp - 0x24]
mov eax, 0x100151e0
mov edx, dword [ecx + 0x218]
nop
movzx ebx, word [edx]
test bx, bx
je 0x1000e859
add eax, 2
add edx, 2
mov word [eax - 2], bx
cmp eax, 0x1001525e
jne 0x1000e840
xor edx, edx
mov word [eax], dx
mov edx, dword [ecx + 0x21c]
mov eax, 0x10015260
lea esi, [esi]
movzx ebx, word [edx]
test bx, bx
je 0x1000e889
add eax, 2
add edx, 2
mov word [eax - 2], bx
cmp eax, 0x100152de
jne 0x1000e870
xor ebx, ebx
mov word [eax], bx
mov dword [esp], ecx
call sym._UXTHEME_SetActiveTheme
test byte [0x100150dc], 8
jne 0x1000e8f0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._MSSTYLES_CloseThemeFile
mov edi, dword [0x1001510c]
test edi, edi
jne 0x1000e6d4
jmp 0x1000e6b3
mov dword [esp + 0xc], str.Loading_theme_config_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000e55b
mov eax, 0x10015260
call sym._wine_dbgstr_wn.constprop.0_1
mov edi, eax
mov eax, 0x100151e0
call sym._wine_dbgstr_wn.constprop.0_1
mov ebx, eax
mov eax, 0x100152e0
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Theme_active:__s__s__s_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000e89f
mov eax, str.DllName
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], 0x100152e0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._hkey_p__s__p__n
mov dword [esp + 8], str.query_reg_path
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000e64c
cmp edx, 0xea
je 0x1000eaa8
cmp word [0x100152e0], 0
mov eax, 0x100152e0
je 0x1000e9c8
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x1000e9b8
sub eax, 0x100152de
mov ecx, eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], ecx
mov dword [esp + 4], ecx
mov dword [esp], 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [ebp - 0x3c]
mov ebx, eax
sub esp, 8
xor eax, eax
lea esi, [esi]
movzx ecx, word [eax + 0x100152e0]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x1000e9f0
mov dword [ebp - 0x3c], edx
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0x100152e0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
cmp eax, 0x104
jbe 0x1000ea80
cmp dword [ebp - 0x24], eax
cmovae eax, dword [ebp - 0x24]
mov dword [esp], ebx
mov dword [ebp - 0x28], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x1000e68f
mov dword [esp + 0xc], str.Theming_not_active_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1000e6d4
cmp dword [ebp - 0x24], eax
cmovae eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov dword [esp], ebx
mov dword [ebp - 0x28], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov edx, dword [ebp - 0x3c]
sub esp, 4
jmp 0x1000e71c
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [esp], 0x40
mov word [ebp - 0x36], dx
mov dword [ebp - 0x24], eax
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_LocalAlloc]
sub esp, 8
mov ecx, eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [esp + 0x10], ecx
mov dword [esp], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DllName
call ebx
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x36]
sub esp, 0x18
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
cmp dword [ebp - 0x24], eax
cmovae eax, dword [ebp - 0x24]
mov dword [esp], edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x1000e68f