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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [sym.imp.kernel32.dll_GlobalAddAtomW]
mov dword [esp], str.ux_theme
call ebx
sub esp, 4
mov word [0x70d95108], ax
mov dword [esp], str.ux_subapp
call ebx
sub esp, 4
mov word [0x70d95100], ax
mov dword [esp], str.ux_subidlst
call ebx
sub esp, 4
mov word [0x70d95104], ax
mov dword [esp], str.ux_dialogtheme
call ebx
sub esp, 4
mov word [0x70d950fc], ax
lea eax, [ebp - 0x40]
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 0x70d8ee00
test byte [0x70d950dc], 8
jne 0x70d8ef90
mov eax, dword [ebp - 0x40]
lea edi, [ebp - 0x3c]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x3c], 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 0x70d8eeb0
xor eax, eax
cmp word [ebp - 0x2c], 0x30
setne al
mov dword [0x70d9510c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], pe_nt_image_headers32
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x70d951e0
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 0x70d8ecc2
xor eax, eax
mov word [0x70d951e0], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], pe_nt_image_headers32
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x70d95260
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 0x70d8ed05
xor ecx, ecx
mov word [0x70d95260], cx
mov dword [ebp - 0x34], 0x208
mov edi, dword [ebp - 0x40]
test byte [0x70d950dc], 8
jne 0x70d8f020
lea eax, [ebp - 0x34]
mov dword [esp + 0x10], 0x70d952e0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x38]
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 0x70d8ede0
cmp eax, 0xea
je 0x70d8ede0
xor eax, eax
mov word [0x70d952e0], ax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [0x70d9510c]
test eax, eax
jne 0x70d8ee48
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MSSTYLES_SetActiveTheme
test byte [0x70d950dc], 8
jne 0x70d8f120
mov dword [ebp - 0x2c], sym._UXTHEME_DefDlgProc_20
mov dword [ebp - 0x28], sym._UXTHEME_NonClientButtonDraw_36
mov dword [ebp - 0x24], sym._UXTHEME_ScrollBarDraw_52
mov dword [ebp - 0x20], sym._UXTHEME_ScrollbarWndProc_20
mov dword [esp], esi
mov dword [esp + 4], 0x70d95504
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 - 0x38]
cmp ecx, 2
je 0x70d8f068
test edx, edx
je 0x70d8ed67
jmp 0x70d8ed5f
lea esi, [ebp - 0x2c]
test byte [0x70d950dc], 8
je 0x70d8ed76
mov dword [esp + 0xc], str.Failed_to_open_theme_registry_key_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x70d950dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov eax, dword [0x70d9510c]
test eax, eax
je 0x70d8ed83
lea esi, [esi]
xor ecx, ecx
mov edx, 0x70d95260
cmp word [0x70d95260], 0
mov eax, 0x70d951e0
cmove edx, ecx
mov dword [esp], 0x70d952e0
cmp word [0x70d951e0], 0
cmove eax, ecx
lea ecx, [ebp - 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._MSSTYLES_OpenThemeFile
test eax, eax
jns 0x70d8ef00
mov dword [0x70d9510c], 0
xor eax, eax
mov word [0x70d952e0], ax
xor eax, eax
mov word [0x70d951e0], ax
xor eax, eax
mov word [0x70d95260], ax
jmp 0x70d8ed83
mov dword [0x70d9510c], 0
test byte [0x70d950dc], 8
je 0x70d8ec80
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], 0x70d950dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d8ec80
mov ecx, dword [ebp - 0x30]
mov eax, 0x70d951e0
mov edx, dword [ecx + 0x218]
nop
movzx ebx, word [edx]
test bx, bx
je 0x70d8ef29
add eax, 2
add edx, 2
mov word [eax - 2], bx
cmp eax, 0x70d9525e
jne 0x70d8ef10
xor edx, edx
mov word [eax], dx
mov edx, dword [ecx + 0x21c]
mov eax, 0x70d95260
lea esi, [esi]
movzx ebx, word [edx]
test bx, bx
je 0x70d8ef59
add eax, 2
add edx, 2
mov word [eax - 2], bx
cmp eax, 0x70d952de
jne 0x70d8ef40
xor ebx, ebx
mov word [eax], bx
mov dword [esp], ecx
call sym._UXTHEME_SetActiveTheme
test byte [0x70d950dc], 8
jne 0x70d8efc0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._MSSTYLES_CloseThemeFile
mov edi, dword [0x70d9510c]
test edi, edi
jne 0x70d8eda4
jmp 0x70d8ed83
mov dword [esp + 0xc], str.Loading_theme_config_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x70d950dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d8ec2b
mov eax, 0x70d95260
call sym._wine_dbgstr_wn.constprop.0_1
mov edi, eax
mov eax, 0x70d951e0
call sym._wine_dbgstr_wn.constprop.0_1
mov ebx, eax
mov eax, 0x70d952e0
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], 0x70d950dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d8ef6f
mov eax, str.DllName
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], 0x70d952e0
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], 0x70d950dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d8ed1c
cmp edx, 0xea
je 0x70d8f178
cmp word [0x70d952e0], 0
mov eax, 0x70d952e0
je 0x70d8f098
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x70d8f088
sub eax, 0x70d952de
mov ecx, eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x30], ecx
mov dword [esp + 4], ecx
mov dword [esp], 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edx, dword [ebp - 0x4c]
mov ebx, eax
sub esp, 8
xor eax, eax
lea esi, [esi]
movzx ecx, word [eax + 0x70d952e0]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x70d8f0c0
mov dword [ebp - 0x4c], edx
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0x70d952e0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x4c]
sub esp, 0xc
cmp eax, 0x104
jbe 0x70d8f150
cmp dword [ebp - 0x30], eax
cmovae eax, dword [ebp - 0x30]
mov dword [esp], ebx
mov dword [ebp - 0x34], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x70d8ed5f
mov dword [esp + 0xc], str.Theming_not_active_n
mov dword [esp + 8], str.UXTHEME_LoadTheme
mov dword [esp + 4], 0x70d950dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d8eda4
cmp dword [ebp - 0x30], eax
cmovae eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
mov dword [esp], ebx
mov dword [ebp - 0x34], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov edx, dword [ebp - 0x4c]
sub esp, 4
jmp 0x70d8edec
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [esp], 0x40
mov word [ebp - 0x42], dx
mov dword [ebp - 0x30], eax
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_LocalAlloc]
sub esp, 8
mov ecx, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 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 - 0x4c]
lea eax, [ebp - 0x42]
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 - 0x30], eax
cmovae eax, dword [ebp - 0x30]
mov dword [esp], edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x70d8ed5f