Function at 0x100104d0
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, 0x344
mov edx, dword [ebp + 8]
test edx, edx
je 0x10010820
mov eax, dword [ebp + 8]
mov dword [esp], 0x100152e0
mov dword [0x1001510c], 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 0x10010a58
xor edi, edi
mov eax, 0x100152e0
lea esi, [esi]
movzx edx, word [esi]
test dx, dx
je 0x10010539
add eax, 2
add esi, 2
mov word [eax - 2], dx
cmp eax, 0x100154e6
jne 0x10010520
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x218]
mov eax, 0x100151e0
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x10010569
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x1001525e
jne 0x10010550
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x21c]
mov eax, 0x10015260
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x10010599
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x100152de
jne 0x10010580
xor ebx, ebx
mov word [eax], bx
lea eax, [ebp - 0x2e4]
call sym._UXTHEME_GetSystemMetrics
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov esi, eax
lea eax, [ebp - 0x320]
mov dword [esp], 0x80000001
mov dword [ebp - 0x328], eax
mov dword [esp + 8], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x10010c58
mov eax, 1
test esi, esi
je 0x100105ec
test al, al
jne 0x10010aa8
test byte [0x100150dc], 8
jne 0x1001085b
mov eax, dword [ebp - 0x328]
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 0x10010888
cmp dword [0x1001510c], 1
mov eax, 0x30
lea edi, [ebp - 0x302]
mov dword [esp + 0x14], 4
sbb ax, 0xffff
mov dword [esp + 0x10], edi
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov word [ebp - 0x302], ax
xor eax, eax
mov word [ebp - 0x300], ax
mov eax, dword [ebp - 0x320]
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 [0x1001510c]
sub esp, 0x18
test eax, eax
je 0x10010cf0
cmp word [0x100151e0], 0
je 0x10010f1c
mov eax, 0x100151e0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100106a8
sub eax, 0x100151de
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x320]
mov dword [esp + 0x10], 0x100151e0
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 [0x10015260], 0
je 0x10010f08
mov eax, 0x10015260
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10010700
sub eax, 0x1001525e
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x320]
mov dword [esp + 0x10], 0x10015260
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 [0x100152e0], 0
je 0x10010f12
mov eax, 0x100152e0
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10010758
sub eax, 0x100152de
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x320]
mov dword [esp + 0x10], 0x100152e0
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 - 0x320]
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 - 0x320]
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 [0x1001510c]
mov esi, eax
test edi, edi
je 0x100108c0
lea eax, [ebp - 0x2e4]
call sym._UXTHEME_GetSystemMetrics
test eax, eax
jne 0x10010cd0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x1001510c], 0
xor eax, eax
mov word [0x100152e0], ax
xor eax, eax
mov word [0x100151e0], ax
xor eax, eax
mov word [0x10015260], ax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x328], eax
test byte [0x100150dc], 8
je 0x100105f9
mov dword [esp + 0xc], str.Writing_theme_config_to_registry_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x100105f9
test byte [0x100150dc], 8
je 0x100107dc
mov dword [esp + 0xc], str.Failed_to_open_theme_registry_key_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x100150dc
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x100107dc
lea eax, [ebp - 0x31c]
mov dword [esp + 0xc], 1
mov ebx, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 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 0x10010a27
lea eax, [ebp - 0x318]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x31c]
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 0x10010a27
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x328], esi
mov eax, str.Scrollbar
lea edi, [ebp - 0x2fe]
mov dword [ebp - 0x32c], ecx
mov esi, ecx
jmp 0x100109e1
lea eax, [ebp - 0x30c]
mov dword [esp + 4], str._d__d__d
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x310]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x314]
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._swscanf.constprop.0
cmp eax, 3
jne 0x10010a21
mov eax, dword [ebp - 0x310]
mov edx, dword [ebp - 0x30c]
shl eax, 8
shl edx, 0x10
and edx, 0xff0000
movzx eax, ax
or eax, edx
movzx edx, byte [ebp - 0x314]
or eax, edx
mov dword [ebp + ebx*4 - 0x2e4], eax
inc ebx
cmp ebx, 0x1f
je 0x10010da1
mov eax, dword [ebx*4 + 0x100184a0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x308], 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 0x10010970
mov esi, dword [ebp - 0x328]
mov eax, dword [ebp - 0x318]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x31c]
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], 0x100151e0
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x10010515
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
mov dword [esp], 0x10015260
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov edi, eax
jmp 0x10010517
lea eax, [ebp - 0x30c]
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 0x100105ec
lea eax, [ebp - 0x308]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x30c]
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 0x10010f5c
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea eax, [ebp - 0x268]
mov dword [esp + 0x14], 0x1f8
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30c]
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 - 0x70]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30c]
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 - 0x14]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30c]
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 - 0x10]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30c]
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 - 0x30c]
sub esp, 0x18
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x100105ec
lea eax, [ebp - 0x324]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x302]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x324], 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 0x10010d58
test byte [0x100150dc], 4
jne 0x10010f26
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x100105db
lea eax, [ebp - 0x2e4]
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 - 0x320]
mov esi, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp + 4], str.ColorName
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x320]
sub esp, 8
mov dword [esp + 4], str.SizeName
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x320]
sub esp, 8
mov dword [esp + 4], str.DllName
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x320]
sub esp, 8
mov dword [esp + 4], str.LoadedBefore
mov dword [esp], eax
call esi
sub esp, 8
jmp 0x100107ca
mov eax, dword [ebp - 0x320]
movzx ebx, word [ebp - 0x302]
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 0x10010ffd
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 - 0x268]
mov ebx, dword [ebp - 0x32c]
mov dword [ebp - 0x308], 0x1f8
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x31c]
mov dword [esp + 0x14], ebx
mov esi, dword [ebp - 0x328]
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 0x10010a27
lea eax, [ebp - 0x70]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x308], 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 0x10010a27
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x308], 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 0x10010a27
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x308], 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 - 0x318]
mov dword [esp], eax
jne 0x10010a36
call ebx
mov eax, dword [ebp - 0x31c]
sub esp, 4
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x2e4]
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 0x1001070e
mov eax, 2
jmp 0x10010766
mov eax, 2
jmp 0x100106b6
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], 0x100150dc
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x10010cb5
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea edi, [ebp - 0x2fe]
lea esi, [esi]
nop
mov eax, dword [ebp + ebx*4 - 0x2e4]
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 + 0x100184a0]
inc ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x308]
mov dword [esp], eax
call esi
sub esp, 0x18
cmp ebx, 0x1f
jne 0x10010f70
mov eax, dword [ebp - 0x308]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x10010b6a
cmp bx, 0x30
sete al
jmp 0x100105e0