Function at 0x4091b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x118
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x100], ecx
test byte [0x413034], 8
jne 0x409b98
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x409b80
xor edi, edi
lea esi, [ebp - 0xf2]
lea esi, [esi]
mov eax, dword [ebp - 0x100]
test eax, eax
jne 0x409206
mov eax, dword [ebp + edi*4 - 0xd8]
cmp dword [ebx + edi*4], eax
je 0x40925c
mov dword [esp + 8], edi
mov dword [esp + 4], str.ColorTable_02d
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebx + edi*4]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xf8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
inc edi
cmp edi, 0x10
jne 0x4091f0
mov ecx, dword [ebp - 0x100]
mov eax, dword [ebx + 0x48]
test ecx, ecx
jne 0x409a70
cmp dword [ebp - 0x90], eax
je 0x4092bd
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorSize
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebp - 0x8c]
je 0x40930a
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorVisible
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x80]
cmp eax, dword [ebp - 0x58]
je 0x409357
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.EditionMode
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
lea edx, [ebx + 0x8c]
lea eax, [ebp - 0x4c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x104], edx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40977d
mov eax, dword [ebx + 0x84]
cmp eax, dword [ebp - 0x54]
je 0x4093cb
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontFamily
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x94]
lea esi, [ebp - 0xf8]
cmp dword [ebx + 0x44], eax
je 0x409c90
mov edx, dword [sym.imp.user32.dll_GetDpiForSystem]
mov dword [ebp - 0x10c], edx
call edx
mov ecx, dword [sym.imp.kernel32.dll_MulDiv]
mov dword [esp + 4], 0x60
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x108], ecx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x10c]
sub esp, 0xc
mov dword [ebp - 0x104], eax
call edx
mov ecx, dword [ebp - 0x108]
mov dword [esp + 4], 0x60
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call ecx
mov edx, eax
movzx eax, word [ebp - 0x104]
sub esp, 0xc
shl edx, 0x10
mov dword [esp + 0x14], 4
or eax, edx
mov dword [esp + 0x10], esi
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontSize
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x100]
sub esp, 0x18
test eax, eax
jne 0x409838
mov eax, dword [ebx + 0x88]
cmp eax, dword [ebp - 0x50]
je 0x409be0
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontWeight
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x58]
sub esp, 0x18
cmp eax, dword [ebp - 0x80]
je 0x409bec
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryBufferSize
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebp - 0x7c]
je 0x409bf8
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryNoDup
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebp - 0x78]
je 0x409c04
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.InsertMode
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x64]
cmp eax, dword [ebp - 0x74]
je 0x409c10
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MenuMask
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebp - 0x84]
je 0x409c1f
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PopupColors
mov dword [esp], eax
call edi
sub esp, 0x18
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebp - 0x70]
je 0x409674
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.QuickEdit
mov dword [esp], eax
call edi
sub esp, 0x18
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
cmp edx, dword [ebp - 0x6c]
je 0x409c7c
movzx edx, dx
shl eax, 0x10
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
or eax, edx
mov dword [esp + 0x10], esi
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenBufferSize
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x50]
cmp eax, dword [ebp - 0x88]
je 0x40971a
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenColors
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
lea esi, [ebp - 0xf8]
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
cmp edx, dword [ebp - 0x64]
je 0x409bd0
movzx edx, dx
shl eax, 0x10
mov dword [esp + 0x10], esi
or eax, edx
mov dword [esp + 0x14], 4
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.WindowSize
mov dword [esp], eax
call edi
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebx + 0x8c], 0
mov edx, dword [ebp - 0x104]
je 0x409e11
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4097a0
sub eax, edx
mov dword [esp + 0x10], edx
lea esi, [ebp - 0xf8]
add eax, 2
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x100]
sub esp, 0x18
test edx, edx
je 0x40937e
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontFamily
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x4093e6
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 4
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontWeight
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x58]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryBufferSize
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x5c]
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryNoDup
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x60]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.InsertMode
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x64]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MenuMask
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x54]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PopupColors
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x68]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.QuickEdit
mov dword [esp], eax
call edi
mov edx, dword [ebx + 0x70]
movzx eax, word [ebx + 0x6c]
sub esp, 0x18
shl edx, 0x10
mov dword [esp + 0x14], 4
or eax, edx
mov dword [esp + 0x10], esi
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenBufferSize
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x50]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenColors
mov dword [esp], eax
call edi
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
sub esp, 0x18
jmp 0x409735
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorSize
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x4c]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CursorVisible
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x80]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.EditionMode
mov dword [esp], eax
call edi
lea edx, [ebx + 0x8c]
sub esp, 0x18
cmp word [ebx + 0x8c], 0
jne 0x409797
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x4097f0
lea edx, [ebp - 0xd8]
xor eax, eax
call sym._load_config
jmp 0x4091e5
mov eax, edx
call sym._debugstr_config
mov dword [esp + 0xc], 0x415a28
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.save_registry_key
mov dword [esp + 4], 0x413034
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4091d7
cmp dword [ebp - 0x60], eax
jne 0x409735
jmp 0x409775
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebp - 0x80]
jne 0x409ca4
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebp - 0x7c]
jne 0x409ced
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebp - 0x78]
jne 0x409d36
mov eax, dword [ebx + 0x64]
cmp eax, dword [ebp - 0x74]
jne 0x409d7f
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebp - 0x84]
jne 0x409dc8
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebp - 0x70]
je 0x409674
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.QuickEdit
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
sub esp, 0x18
cmp edx, dword [ebp - 0x6c]
jne 0x409683
cmp dword [ebp - 0x68], eax
jne 0x409683
jmp 0x4096cd
mov eax, dword [ebp - 0x98]
cmp dword [ebx + 0x40], eax
jne 0x4093e6
jmp 0x409496
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryBufferSize
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x409521
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.HistoryNoDup
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x409565
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.InsertMode
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x4095a9
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MenuMask
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x4095ed
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xf8]
mov dword [esp + 0x14], 4
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PopupColors
mov dword [esp], eax
call edi
sub esp, 0x18
jmp 0x409634
mov eax, dword [ebp - 0xfc]
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
jmp 0x40937e