Function at 0x70d91ec0
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 0x70d92220
lea esi, [ebx + 8]
mov dword [esp], 0x70db3140
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [0x70db3348], 1
mov dword [esp + 4], esi
call edi
sub esp, 8
test eax, eax
je 0x70d92458
mov dword [ebp - 0x340], 0
mov eax, 0x70db3140
lea esi, [esi]
movzx edx, word [esi]
test dx, dx
je 0x70d91f31
add eax, 2
add esi, 2
mov word [eax - 2], dx
cmp eax, 0x70db3346
jne 0x70d91f18
xor edx, edx
mov word [eax], dx
mov edx, dword [ebx + 0x218]
mov eax, 0x70db30c0
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x70d91f61
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x70db313e
jne 0x70d91f48
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0x21c]
mov eax, 0x70db3040
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x70d91f91
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x70db30be
jne 0x70d91f78
xor esi, esi
mov word [eax], si
lea eax, [ebp - 0x2f0]
call sym._UXTHEME_GetSystemMetrics
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov edi, eax
lea eax, [ebp - 0x32c]
mov dword [esp], 0x80000001
mov dword [esp + 8], eax
mov dword [ebp - 0x33c], eax
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
je 0x70d926e8
mov eax, 1
test edi, edi
je 0x70d91fe3
test al, al
jne 0x70d924a0
test byte [0x70d9808c], 8
jne 0x70d9225b
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 0x70d92288
mov edx, dword [0x70db3348]
xor eax, eax
lea esi, [ebp - 0x30e]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
test edx, edx
mov dword [esp + 0xc], 1
setne al
mov dword [esp + 8], 0
xor ecx, ecx
add eax, 0x30
mov dword [esp + 4], str.ThemeActive
mov word [ebp - 0x30e], ax
mov eax, dword [ebp - 0x32c]
mov word [ebp - 0x30c], cx
mov dword [esp], eax
call sym._RegSetValueExW_24
mov edi, dword [0x70db3348]
sub esp, 0x18
test edi, edi
je 0x70d92780
cmp word [0x70db30c0], 0
je 0x70d929b0
mov eax, 0x70db30c0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x70d92098
sub eax, 0x70db30be
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0x10], 0x70db30c0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ColorName
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp word [0x70db3040], 0
je 0x70d9299c
mov eax, 0x70db3040
nop
add eax, 2
cmp word [eax], 0
jne 0x70d920f0
sub eax, 0x70db303e
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0x10], 0x70db3040
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SizeName
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp word [0x70db3140], 0
je 0x70d929a6
mov eax, 0x70db3140
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x70d92150
sub eax, 0x70db313e
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0x10], 0x70db3140
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.DllName
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebp - 0x32c]
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 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 edi, dword [0x70db3348]
mov ebx, eax
test edi, edi
je 0x70d922c0
lea eax, [ebp - 0x2f0]
call sym._UXTHEME_GetSystemMetrics
test eax, eax
jne 0x70d92760
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x70db3348], 0
xor eax, eax
mov word [0x70db3140], ax
xor eax, eax
mov word [0x70db30c0], ax
xor eax, eax
mov word [0x70db3040], ax
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x33c], eax
test byte [0x70d9808c], 8
je 0x70d91ff0
mov dword [esp + 0xc], str.Writing_theme_config_to_registry_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x70d9808c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d91ff0
test byte [0x70d9808c], 8
je 0x70d921d9
mov dword [esp + 0xc], str.Failed_to_open_theme_registry_key_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x70d9808c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d921d9
lea eax, [ebp - 0x328]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x70d92428
lea eax, [ebp - 0x324]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelColors
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
mov esi, eax
test eax, eax
jne 0x70d92428
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 0x70d923dc
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 0x70d92422
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 0x70d92839
mov eax, dword [ebx*4 + 0x70daf2a0]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x324]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [ebp - 0x314], 0x1a
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x70d92370
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
mov eax, dword [ebx + 0x218]
mov dword [esp], 0x70db30c0
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x70d91f02
mov eax, dword [ebx + 0x21c]
mov dword [esp], 0x70db3040
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x340], eax
jmp 0x70d91f0c
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 0x70d91fe3
lea eax, [ebp - 0x314]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x318]
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 dword [esp], eax
call sym._RegCreateKeyExW_36
sub esp, 0x24
mov esi, eax
test eax, eax
jne 0x70d925ea
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 + 0x70daf2a0]
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 0x70d92560
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 eax, dword [ebp - 0x318]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.NonClientMetrics
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x7c]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x318]
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.IconTitleFont
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x20]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x318]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.GradientCaption
mov dword [esp], eax
call sym._RegSetValueExW_24
lea eax, [ebp - 0x1c]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x318]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FlatMenu
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 0x70d91fe3
lea eax, [ebp - 0x330]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x30e]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.LoadedBefore
mov dword [esp], eax
mov dword [ebp - 0x330], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x70d927f0
test byte [0x70d9808c], 4
jne 0x70d929ba
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x70d91fd2
lea eax, [ebp - 0x2f0]
xor edx, edx
call sym._UXTHEME_SaveSystemMetrics
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x32c]
mov dword [esp + 4], str.ColorName
mov dword [esp], eax
call sym._RegDeleteValueW_8
mov eax, dword [ebp - 0x32c]
sub esp, 8
mov dword [esp + 4], str.SizeName
mov dword [esp], eax
call sym._RegDeleteValueW_8
mov eax, dword [ebp - 0x32c]
sub esp, 8
mov dword [esp + 4], str.DllName
mov dword [esp], eax
call sym._RegDeleteValueW_8
mov eax, dword [ebp - 0x32c]
sub esp, 8
mov dword [esp + 4], str.LoadedBefore
mov dword [esp], eax
call sym._RegDeleteValueW_8
sub esp, 8
jmp 0x70d921c8
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 0x70d929f0
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
lea eax, [ebp - 0x274]
mov edi, dword [ebp - 0x340]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 0x14], edi
mov ebx, dword [ebp - 0x33c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.NonClientMetrics
mov dword [esp], eax
mov dword [ebp - 0x314], 0x1f8
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x70d92428
lea eax, [ebp - 0x7c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.IconTitleFont
mov dword [esp], eax
mov dword [ebp - 0x314], 0x5c
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x70d92428
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GradientCaption
mov dword [esp], eax
mov dword [ebp - 0x314], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x70d92428
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.FlatMenu
mov dword [esp], eax
mov dword [ebp - 0x314], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x324]
mov dword [esp], eax
jne 0x70d92431
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 0x70d920fe
mov eax, 2
jmp 0x70d9215e
mov eax, 2
jmp 0x70d920a6
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], 0x70d9808c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d92744
cmp si, 0x30
sete al
jmp 0x70d91fd7