Function at 0x68712c80
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x36c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x68712fe0
lea esi, [ebx + 8]
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [0x68731348], 1
mov dword [esp + 4], esi
mov dword [esp], 0x68731140
call edi
sub esp, 8
test eax, eax
je 0x68713220
mov dword [ebp - 0x340], 0
mov eax, 0x68731140
lea esi, [esi]
movzx edx, word [esi]
test dx, dx
je 0x68712cf1
add eax, 2
add esi, 2
mov word [eax - 2], dx
cmp eax, 0x68731346
jne 0x68712cd8
xor esi, esi
mov word [eax], si
mov edx, dword [ebx + 0x218]
mov eax, 0x687310c0
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x68712d21
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x6873113e
jne 0x68712d08
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0x21c]
mov eax, 0x68731040
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x68712d51
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x687310be
jne 0x68712d38
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x2f0]
call sym._UXTHEME_GetSystemMetrics
mov edi, eax
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x33c], eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
je 0x68713270
test edi, edi
jne 0x68713390
test byte [0x6871908c], 8
jne 0x6871301d
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
mov dword [esp + 8], eax
call sym._RegCreateKeyW_12
sub esp, 0xc
test eax, eax
jne 0x687131e8
cmp dword [0x68731348], 1
mov eax, 0x30
lea esi, [ebp - 0x30e]
sbb ax, 0xffff
xor edx, edx
mov word [ebp - 0x30e], ax
mov word [ebp - 0x30c], dx
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ThemeActive
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov ecx, dword [0x68731348]
mov edx, dword [ebp - 0x32c]
sub esp, 0x18
test ecx, ecx
je 0x68713328
cmp word [0x687310c0], 0
je 0x68713786
mov eax, 0x687310c0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x68712e58
sub eax, 0x687310be
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x687310c0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ColorName
mov dword [esp], edx
call sym._RegSetValueExW_24
sub esp, 0x18
cmp word [0x68731040], 0
je 0x68713772
mov eax, 0x68731040
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x68712eb0
sub eax, 0x6873103e
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x68731040
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SizeName
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp word [0x68731140], 0
je 0x6871377c
mov eax, 0x68731140
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x68712f10
sub eax, 0x6873113e
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x68731140
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.DllName
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.LoadedBefore
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 4], 1
call sym._MSSTYLES_SetActiveTheme
mov ebx, eax
mov eax, dword [0x68731348]
test eax, eax
je 0x68713050
lea esi, [ebp - 0x2f0]
mov eax, esi
call sym._UXTHEME_GetSystemMetrics
test eax, eax
jne 0x68713310
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [0x68731348], 0
mov word [0x68731040], ax
lea eax, [ebp - 0x32c]
mov word [0x68731140], si
mov word [0x687310c0], di
mov dword [ebp - 0x33c], eax
test byte [0x6871908c], 8
je 0x68712da7
mov dword [esp + 0xc], str.Writing_theme_config_to_registry_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x6871908c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x68712da7
mov dword [ebp - 0x328], 0
lea eax, [ebp - 0x328]
mov dword [ebp - 0x324], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x687131b8
lea eax, [ebp - 0x324]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelColors
mov eax, dword [ebp - 0x328]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
mov esi, eax
test eax, eax
jne 0x687131b8
lea eax, [ebp - 0x314]
mov dword [ebp - 0x33c], ebx
mov ebx, esi
lea edi, [ebp - 0x30a]
mov dword [ebp - 0x340], eax
mov esi, eax
jmp 0x6871316c
lea eax, [ebp - 0x318]
mov dword [esp + 4], str._d__d__d
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x31c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x320]
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._swscanf.constprop.0
cmp eax, 3
jne 0x687131b2
mov eax, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x318]
shl eax, 8
shl ecx, 0x10
and ecx, 0xff0000
movzx eax, ax
or eax, ecx
movzx ecx, byte [ebp - 0x320]
or eax, ecx
mov dword [ebp + ebx*4 - 0x2f0], eax
add ebx, 1
cmp ebx, 0x1f
je 0x687135fb
mov eax, dword [ebx*4 + 0x68730200]
mov dword [ebp - 0x314], 0x1a
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x324]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x68713100
mov ebx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x324]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [ebp - 0x328]
sub esp, 4
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x6871908c], 8
je 0x68712f99
mov dword [esp + 0xc], str.Failed_to_open_theme_registry_key_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x6871908c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x68712f99
mov eax, dword [ebx + 0x218]
mov dword [esp], 0x687310c0
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x68712cc2
mov eax, dword [ebx + 0x21c]
mov dword [esp], 0x68731040
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x340], eax
jmp 0x68712ccc
mov dword [ebp - 0x330], 4
lea eax, [ebp - 0x330]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x30e]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.LoadedBefore
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x687135d8
mov eax, dword [ebp - 0x32c]
movzx esi, word [ebp - 0x30e]
mov dword [esp], eax
call sym._RegCloseKey_4
xor eax, eax
sub esp, 4
cmp si, 0x30
setne al
test dword [ebp - 0x340], eax
je 0x687137c6
mov dword [esp], ebx
mov dword [esp + 4], 0
call sym._MSSTYLES_SetActiveTheme
lea esp, [ebp - 0xc]
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
xor edx, edx
call sym._UXTHEME_SaveSystemMetrics
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
mov dword [esp + 4], str.ColorName
call sym._RegDeleteValueW_8
sub esp, 8
mov dword [esp + 4], str.SizeName
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegDeleteValueW_8
sub esp, 8
mov dword [esp + 4], str.DllName
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegDeleteValueW_8
sub esp, 8
mov dword [esp + 4], str.LoadedBefore
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegDeleteValueW_8
sub esp, 8
jmp 0x68712f88
lea eax, [ebp - 0x318]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
jne 0x68712d9a
lea eax, [ebp - 0x314]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelColors
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
call sym._RegCreateKeyExW_36
sub esp, 0x24
mov esi, eax
test eax, eax
jne 0x687134da
lea edi, [ebp - 0x30a]
lea esi, [esi]
mov eax, dword [ebp + esi*4 - 0x2f0]
mov dword [esp + 8], str._d__d__d
mov dword [esp + 4], 0xd
mov edx, eax
mov dword [esp], edi
shr edx, 0x10
movzx edx, dl
mov dword [esp + 0x14], edx
movzx edx, ah
movzx eax, al
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
call sym._swprintf.constprop.0
mov dword [esp + 0x10], edi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [esi*4 + 0x68730200]
add esi, 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x314]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp esi, 0x1f
jne 0x68713450
mov eax, dword [ebp - 0x314]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
lea eax, [ebp - 0x274]
mov dword [esp + 0x14], 0x1f8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.NonClientMetrics
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x7c]
sub esp, 0x18
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.IconTitleFont
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x20]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.GradientCaption
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x1c]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FlatMenu
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebp - 0x318]
sub esp, 0x18
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x68712d9a
test byte [0x6871908c], 4
jne 0x68713790
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x68712d92
mov eax, dword [ebp - 0x340]
mov ebx, dword [ebp - 0x33c]
mov dword [ebp - 0x314], 0x1f8
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x274]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.NonClientMetrics
mov eax, dword [ebp - 0x328]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x687131b8
mov dword [ebp - 0x314], 0x5c
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.IconTitleFont
mov eax, dword [ebp - 0x328]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x687131b8
mov dword [ebp - 0x314], 4
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.GradientCaption
mov eax, dword [ebp - 0x328]
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x687131b8
mov dword [ebp - 0x314], 4
mov eax, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.FlatMenu
mov eax, dword [ebp - 0x328]
mov dword [esp], eax
call sym._RegQueryValueExW_24
mov edx, eax
mov eax, dword [ebp - 0x324]
sub esp, 0x18
mov dword [esp], eax
test edx, edx
jne 0x687131c1
call sym._RegCloseKey_4
mov eax, dword [ebp - 0x328]
sub esp, 4
mov dword [esp], eax
call sym._RegCloseKey_4
lea eax, [ebp - 0x2f0]
mov edx, 1
sub esp, 4
call sym._UXTHEME_SaveSystemMetrics
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x68712ebe
mov eax, 2
jmp 0x68712f1e
mov eax, 2
jmp 0x68712e66
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_get_LoadedBefore:__ld_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6871908c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1
jmp 0x687135e5
xor eax, eax
cmp si, 0x30
sete al
and edi, eax
jmp 0x68712d92