Function at 0x10010b70
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 [0x10030350], ax
mov dword [esp], str.ux_subapp
call ebx
sub esp, 4
mov word [0x1003034e], ax
mov dword [esp], str.ux_subidlst
call ebx
sub esp, 4
mov word [0x1003034c], ax
mov dword [esp], str.ux_dialogtheme
call ebx
mov word [0x10030030], ax
sub esp, 4
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 0x10010dd0
test byte [0x1001408c], 8
jne 0x10010f70
lea edi, [ebp - 0x30]
lea ebx, [ebp - 0x20]
mov dword [ebp - 0x30], 0x14
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ThemeActive
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x10010e88
xor eax, eax
cmp word [ebp - 0x20], 0x30
setne al
mov dword [0x10030348], eax
mov dword [ebp - 0x30], pe_nt_image_headers32
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x100300c0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.ColorName
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x10010c93
xor ecx, ecx
mov word [0x100300c0], cx
mov dword [ebp - 0x30], pe_nt_image_headers32
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x10030040
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SizeName
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x10010cd6
xor edx, edx
mov word [0x10030040], dx
mov dword [ebp - 0x28], 0x208
mov edi, dword [ebp - 0x34]
test byte [0x1001408c], 8
jne 0x10011000
lea eax, [ebp - 0x28]
mov dword [esp + 0x10], 0x10030140
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 esi
sub esp, 0x18
test eax, eax
je 0x10010db0
cmp eax, 0xea
je 0x10010db0
xor eax, eax
mov word [0x10030140], ax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [0x10030348]
test eax, eax
jne 0x10010e18
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MSSTYLES_SetActiveTheme
test byte [0x1001408c], 8
jne 0x100110f0
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], ebx
mov dword [esp + 4], 0x10030020
call dword [sym.imp.user32.dll_RegisterUserApiHook]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x2c]
cmp edx, 2
je 0x10011048
test eax, eax
je 0x10010d36
jmp 0x10010d2e
lea ebx, [ebp - 0x20]
test byte [0x1001408c], 8
je 0x10010d45
mov dword [esp + 0xc], str.Failed_to_open_theme_registry_key_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x1001408c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov eax, dword [0x10030348]
test eax, eax
je 0x10010d52
lea esi, [esi]
xor ecx, ecx
mov edx, 0x10030040
mov eax, 0x100300c0
cmp word [0x10030040], 0
cmove edx, ecx
cmp word [0x100300c0], 0
mov dword [esp], 0x10030140
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 0x10010ed8
mov dword [0x10030348], 0
xor eax, eax
xor edi, edi
mov word [0x100300c0], ax
xor eax, eax
mov word [0x10030140], di
mov word [0x10030040], ax
jmp 0x10010d52
mov dword [0x10030348], 0
test byte [0x1001408c], 8
je 0x10010c50
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], 0x1001408c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x10010c50
mov ecx, dword [ebp - 0x24]
mov eax, 0x100300c0
mov edx, dword [ecx + 0x218]
jmp 0x10010f01
add eax, 2
add edx, 2
mov word [eax - 2], si
cmp eax, 0x1003013e
je 0x10010f09
movzx esi, word [edx]
test si, si
jne 0x10010ef0
xor esi, esi
mov word [eax], si
mov eax, 0x10030040
mov edx, dword [ecx + 0x21c]
jmp 0x10010f31
add eax, 2
add edx, 2
mov word [eax - 2], si
cmp eax, 0x100300be
je 0x10010f39
movzx esi, word [edx]
test si, si
jne 0x10010f20
xor edx, edx
mov word [eax], dx
mov dword [esp], ecx
call sym._UXTHEME_SetActiveTheme
test byte [0x1001408c], 8
jne 0x10010fa0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._MSSTYLES_CloseThemeFile
mov eax, dword [0x10030348]
test eax, eax
jne 0x10010d73
jmp 0x10010d52
mov dword [esp + 0xc], str.Loading_theme_config_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x1001408c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x10010bfb
mov eax, 0x10030040
call sym._wine_dbgstr_wn.constprop.0_1
mov edi, eax
mov eax, 0x100300c0
call sym._wine_dbgstr_wn.constprop.0_1
mov esi, eax
mov eax, 0x10030140
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
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], 0x1001408c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x10010f4f
mov eax, str.DllName
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], 0x10030140
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._hkey_p__s__p__n
mov dword [esp + 8], 0x1002afdc
mov dword [esp + 4], 0x1001408c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x10010ced
cmp eax, 0xea
je 0x10011130
cmp word [0x10030140], 0
mov eax, 0x10030140
je 0x10011078
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10011068
sub eax, 0x1003013e
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [esp + 4], edx
mov dword [esp], 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
sub esp, 8
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + 0x10030140]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x10011098
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0x10030140
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x24]
sub esp, 0xc
cmp edx, eax
cmovb edx, eax
mov dword [ebp - 0x28], edx
mov dword [esp], esi
cmp eax, 0x104
jbe 0x10011120
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x10010d2e
mov dword [esp + 0xc], str.Theming_not_active_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x1001408c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x10010d73
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x10010d36
xor eax, eax
mov word [ebp - 0x36], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
sub esp, 8
mov edx, eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [ebp - 0x3c], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DllName
mov dword [esp], edi
call esi
lea eax, [ebp - 0x36]
sub esp, 0x18
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x3c]
mov ecx, eax
mov eax, dword [ebp - 0x24]
sub esp, 0xc
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x28], eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x10010d2e