Function at 0x10010010
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 ebx, dword [ebp + 8]
test ebx, ebx
je 0x10010360
lea esi, [ebx + 8]
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [0x10030348], 1
mov dword [esp + 4], esi
mov dword [esp], 0x10030140
call edi
sub esp, 8
test eax, eax
je 0x100105a0
xor edi, edi
mov eax, 0x10030140
jmp 0x10010071
add eax, 2
add esi, 2
mov word [eax - 2], dx
cmp eax, 0x10030346
je 0x10010079
movzx edx, word [esi]
test dx, dx
jne 0x10010060
xor esi, esi
mov word [eax], si
mov eax, 0x100300c0
mov edx, dword [ebx + 0x218]
jmp 0x100100a1
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x1003013e
je 0x100100a9
movzx ecx, word [edx]
test cx, cx
jne 0x10010090
xor ecx, ecx
mov word [eax], cx
mov eax, 0x10030040
mov edx, dword [ebx + 0x21c]
jmp 0x100100d1
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, 0x100300be
je 0x100100d9
movzx ecx, word [edx]
test cx, cx
jne 0x100100c0
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x2e4]
call sym._UXTHEME_GetSystemMetrics
mov esi, eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x328], eax
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
je 0x10010798
mov eax, 1
test esi, esi
je 0x1001012c
test al, al
jne 0x100105e8
test byte [0x1001408c], 8
jne 0x1001039d
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 0x100103d0
cmp dword [0x10030348], 1
mov eax, 0x30
lea edi, [ebp - 0x302]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
sbb ax, 0xffff
xor edx, edx
mov word [ebp - 0x302], ax
mov word [ebp - 0x300], dx
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.ThemeActive
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call esi
mov ecx, dword [0x10030348]
sub esp, 0x18
test ecx, ecx
je 0x10010868
cmp word [0x100300c0], 0
je 0x10010a67
mov eax, 0x100300c0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100101e8
sub eax, 0x100300be
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x100300c0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ColorName
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call esi
sub esp, 0x18
cmp word [0x10030040], 0
je 0x10010a53
mov eax, 0x10030040
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10010240
sub eax, 0x1003003e
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x10030040
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SizeName
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call esi
sub esp, 0x18
cmp word [0x10030140], 0
je 0x10010a5d
mov eax, 0x10030140
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10010298
sub eax, 0x1003013e
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x10030140
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.DllName
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call esi
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 eax, dword [ebp - 0x320]
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 dword [esp + 4], 1
mov dword [esp], ebx
call sym._MSSTYLES_SetActiveTheme
mov dword [ebp - 0x328], eax
mov eax, dword [0x10030348]
test eax, eax
je 0x10010410
lea eax, [ebp - 0x2e4]
call sym._UXTHEME_GetSystemMetrics
test eax, eax
jne 0x10010848
mov eax, dword [ebp - 0x328]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [0x10030348], 0
mov word [0x10030040], ax
lea eax, [ebp - 0x320]
mov word [0x10030140], si
mov word [0x100300c0], di
mov dword [ebp - 0x328], eax
test byte [0x1001408c], 8
je 0x10010139
mov dword [esp + 0xc], str.Writing_theme_config_to_registry_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x1001408c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x10010139
test byte [0x1001408c], 8
je 0x1001031c
mov dword [esp + 0xc], str.Failed_to_open_theme_registry_key_n
mov dword [esp + 8], str.UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x1001408c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1001031c
lea eax, [ebp - 0x31c]
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 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 esi
sub esp, 0x14
test eax, eax
jne 0x10010570
lea eax, [ebp - 0x318]
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 - 0x31c]
mov dword [esp], eax
call esi
sub esp, 0x14
mov ebx, eax
test eax, eax
jne 0x10010570
lea esi, [ebp - 0x308]
lea edi, [ebp - 0x2fe]
jmp 0x10010520
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 0x10010570
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
add ebx, 1
cmp ebx, 0x1f
je 0x100108f4
mov eax, dword [ebx*4 + 0x1002b360]
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 + 4], eax
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x100104b0
lea esi, [esi]
nop
mov eax, dword [ebp - 0x318]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x31c]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x328]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x218]
mov dword [esp], 0x100300c0
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
jne 0x10010052
mov eax, dword [ebx + 0x21c]
mov dword [esp], 0x10030040
mov dword [esp + 4], eax
call edi
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov edi, eax
jmp 0x10010054
lea eax, [ebp - 0x30c]
mov dword [esp + 0x20], 0
mov edi, 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 edi
sub esp, 0x24
test eax, eax
jne 0x1001012c
lea esi, [ebp - 0x308]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
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 - 0x30c]
mov dword [esp], eax
call edi
sub esp, 0x24
test eax, eax
je 0x10010aa7
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 dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.NonClientMetrics
mov eax, dword [ebp - 0x30c]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x70]
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 - 0x30c]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x14]
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 - 0x30c]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x10]
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 - 0x30c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x30c]
sub esp, 0x18
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x1001012c
mov dword [ebp - 0x324], 4
lea eax, [ebp - 0x324]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x302]
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 - 0x320]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x100108d0
movzx eax, word [ebp - 0x302]
mov word [ebp - 0x32a], ax
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
sub esp, 4
cmp word [ebp - 0x32a], 0x30
setne al
test eax, edi
je 0x10010b52
mov dword [esp], ebx
mov dword [esp + 4], 0
call sym._MSSTYLES_SetActiveTheme
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2e4]
xor edx, edx
call sym._UXTHEME_SaveSystemMetrics
mov eax, dword [ebp - 0x328]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.ColorName
mov eax, dword [ebp - 0x320]
mov esi, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 4], str.SizeName
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 4], str.DllName
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 4], str.LoadedBefore
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call esi
sub esp, 8
jmp 0x1001030a
test byte [0x1001408c], 4
jne 0x10010a71
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1001011b
mov dword [ebp - 0x308], 0x1f8
lea eax, [ebp - 0x268]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.NonClientMetrics
mov eax, dword [ebp - 0x31c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x10010570
mov dword [ebp - 0x308], 0x5c
lea eax, [ebp - 0x70]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.IconTitleFont
mov eax, dword [ebp - 0x31c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x10010570
mov dword [ebp - 0x308], 4
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.GradientCaption
mov eax, dword [ebp - 0x31c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x10010570
mov dword [ebp - 0x308], 4
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.FlatMenu
mov eax, dword [ebp - 0x31c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
jne 0x1001057f
call esi
mov eax, dword [ebp - 0x31c]
sub esp, 4
mov dword [esp], eax
call esi
lea eax, [ebp - 0x2e4]
mov edx, 1
sub esp, 4
call sym._UXTHEME_SaveSystemMetrics
mov eax, dword [ebp - 0x328]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x1001024e
mov eax, 2
jmp 0x100102a6
mov eax, 2
jmp 0x100101f6
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], 0x1001408c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x100108dd
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp + 8], ebx
lea edi, [ebp - 0x2fe]
mov ebx, eax
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 ecx, eax
mov dword [esp], edi
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x14], ecx
movzx ecx, ah
movzx eax, al
mov dword [esp + 0x10], ecx
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 + 0x1002b360]
add ebx, 1
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 0x10010ac0
mov eax, dword [ebp - 0x308]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x100106a8
cmp word [ebp - 0x32a], 0x30
sete al
jmp 0x10010120