Function at 0x70d90c80
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 edx, dword [ebp + 8]
test edx, edx
je 0x70d90fd0
mov eax, dword [ebp + 8]
mov dword [esp], 0x70d952e0
mov dword [0x70d9510c], 1
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
lea esi, [eax + 8]
mov dword [esp + 4], esi
call edi
sub esp, 8
test eax, eax
je 0x70d91208
xor edi, edi
mov eax, 0x70d952e0
lea esi, [esi]
movzx edx, word [esi]
test dx, dx
je 0x70d90ce9
add eax, 2
add esi, 2
mov word [eax - 2], dx
cmp eax, 0x70d954e6
jne 0x70d90cd0
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x218]
mov eax, 0x70d951e0
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x70d90d19
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x70d9525e
jne 0x70d90d00
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x21c]
mov eax, 0x70d95260
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x70d90d49
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x70d952de
jne 0x70d90d30
xor ebx, ebx
mov word [eax], bx
lea eax, [ebp - 0x2f0]
call sym._UXTHEME_GetSystemMetrics
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov esi, eax
lea eax, [ebp - 0x32c]
mov dword [esp], 0x80000001
mov dword [ebp - 0x33c], eax
mov dword [esp + 8], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x70d91408
mov eax, 1
test esi, esi
je 0x70d90d9c
test al, al
jne 0x70d91258
test byte [0x70d950dc], 8
jne 0x70d9100b
mov eax, dword [ebp - 0x33c]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
mov dword [esp + 8], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x70d91038
cmp dword [0x70d9510c], 1
mov eax, 0x30
lea edi, [ebp - 0x30e]
mov dword [esp + 0x14], 4
sbb ax, 0xffff
mov dword [esp + 0x10], edi
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov word [ebp - 0x30e], ax
xor eax, eax
mov word [ebp - 0x30c], ax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ThemeActive
mov dword [esp], eax
call esi
mov eax, dword [0x70d9510c]
sub esp, 0x18
test eax, eax
je 0x70d914a0
cmp word [0x70d951e0], 0
je 0x70d916cc
mov eax, 0x70d951e0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x70d90e58
sub eax, 0x70d951de
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0x10], 0x70d951e0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ColorName
mov dword [esp], eax
call esi
sub esp, 0x18
cmp word [0x70d95260], 0
je 0x70d916b8
mov eax, 0x70d95260
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x70d90eb0
sub eax, 0x70d9525e
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0x10], 0x70d95260
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SizeName
mov dword [esp], eax
call esi
sub esp, 0x18
cmp word [0x70d952e0], 0
je 0x70d916c2
mov eax, 0x70d952e0
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x70d90f08
sub eax, 0x70d952de
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x32c]
mov dword [esp + 0x10], 0x70d952e0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.DllName
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x32c]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.LoadedBefore
mov dword [esp], eax
call esi
sub esp, 0x18
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._MSSTYLES_SetActiveTheme
mov edi, dword [0x70d9510c]
mov esi, eax
test edi, edi
je 0x70d91070
lea eax, [ebp - 0x2f0]
call sym._UXTHEME_GetSystemMetrics
test eax, eax
jne 0x70d91480
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
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
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x33c], eax
test byte [0x70d950dc], 8
je 0x70d90da9
mov dword [esp + 0xc], str.Writing_theme_config_to_registry_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x70d950dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d90da9
test byte [0x70d950dc], 8
je 0x70d90f8c
mov dword [esp + 0xc], str.Failed_to_open_theme_registry_key_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x70d950dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d90f8c
lea eax, [ebp - 0x328]
mov dword [esp + 0xc], 1
mov ebx, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
call ebx
sub esp, 0x14
test eax, eax
jne 0x70d911d7
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 ebx
sub esp, 0x14
mov ebx, eax
test eax, eax
jne 0x70d911d7
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x33c], esi
mov eax, str.Scrollbar
lea edi, [ebp - 0x30a]
mov dword [ebp - 0x340], ecx
mov esi, ecx
jmp 0x70d91191
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 0x70d911d1
mov eax, dword [ebp - 0x31c]
mov edx, dword [ebp - 0x318]
shl eax, 8
shl edx, 0x10
and edx, 0xff0000
movzx eax, ax
or eax, edx
movzx edx, byte [ebp - 0x320]
or eax, edx
mov dword [ebp + ebx*4 - 0x2f0], eax
inc ebx
cmp ebx, 0x1f
je 0x70d91551
mov eax, dword [ebx*4 + 0x70d983a0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x324]
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], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x70d91120
mov esi, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x324]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x328]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x218]
mov dword [esp], 0x70d951e0
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x70d90cc5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
mov dword [esp], 0x70d95260
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov edi, eax
jmp 0x70d90cc7
lea eax, [ebp - 0x318]
mov dword [esp + 0x20], 0
mov esi, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
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 esi
sub esp, 0x24
test eax, eax
jne 0x70d90d9c
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 esi
sub esp, 0x24
mov ebx, eax
test eax, eax
je 0x70d9170c
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
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 esi
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 esi
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 esi
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 esi
mov eax, dword [ebp - 0x318]
sub esp, 0x18
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x70d90d9c
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 [ebp - 0x330], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.LoadedBefore
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x70d91508
test byte [0x70d950dc], 4
jne 0x70d916d6
mov eax, dword [ebp - 0x32c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x70d90d8b
lea eax, [ebp - 0x2f0]
xor edx, edx
call sym._UXTHEME_SaveSystemMetrics
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x32c]
mov esi, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp + 4], str.ColorName
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x32c]
sub esp, 8
mov dword [esp + 4], str.SizeName
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x32c]
sub esp, 8
mov dword [esp + 4], str.DllName
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x32c]
sub esp, 8
mov dword [esp + 4], str.LoadedBefore
mov dword [esp], eax
call esi
sub esp, 8
jmp 0x70d90f7a
mov eax, dword [ebp - 0x32c]
movzx ebx, word [ebp - 0x30e]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
sub esp, 4
cmp bx, 0x30
setne al
test eax, edi
je 0x70d917ad
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._MSSTYLES_SetActiveTheme
lea esp, [ebp - 0xc]
mov esi, eax
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x274]
mov ebx, dword [ebp - 0x340]
mov dword [ebp - 0x314], 0x1f8
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [esp + 0x14], ebx
mov esi, dword [ebp - 0x33c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.NonClientMetrics
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x70d911d7
lea eax, [ebp - 0x7c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x314], 0x5c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.IconTitleFont
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x70d911d7
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x314], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GradientCaption
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x70d911d7
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x314], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.FlatMenu
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x324]
mov dword [esp], eax
jne 0x70d911e6
call ebx
mov eax, dword [ebp - 0x328]
sub esp, 4
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x2f0]
mov edx, 1
sub esp, 4
call sym._UXTHEME_SaveSystemMetrics
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x70d90ebe
mov eax, 2
jmp 0x70d90f16
mov eax, 2
jmp 0x70d90e66
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], 0x70d950dc
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x70d91465
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea edi, [ebp - 0x30a]
lea esi, [esi]
nop
mov eax, dword [ebp + ebx*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 [ebx*4 + 0x70d983a0]
inc ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x314]
mov dword [esp], eax
call esi
sub esp, 0x18
cmp ebx, 0x1f
jne 0x70d91720
mov eax, dword [ebp - 0x314]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x70d9131a
cmp bx, 0x30
sete al
jmp 0x70d90d90