Function at 0x409380
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x13c
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ecx
test byte [0x413034], 8
jne 0x409d78
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x409d60
xor edi, edi
lea esi, [ebp - 0xfe]
lea esi, [esi]
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x4093d6
mov eax, dword [ebp + edi*4 - 0xe4]
cmp dword [ebx + edi*4], eax
je 0x40942c
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 - 0x104], eax
lea eax, [ebp - 0x104]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10c]
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 0x4093c0
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebx + 0x48]
test ecx, ecx
jne 0x409c50
cmp dword [ebp - 0x9c], eax
je 0x40948d
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 - 0x98]
je 0x4094da
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 - 0x64]
je 0x409527
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 - 0x58]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x114], edx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x409956
mov eax, dword [ebx + 0x84]
cmp eax, dword [ebp - 0x60]
je 0x40959b
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 - 0xa0]
lea esi, [ebp - 0x104]
cmp dword [ebx + 0x44], eax
je 0x409e78
mov edx, dword [sym.imp.user32.dll_GetDpiForSystem]
mov dword [ebp - 0x11c], 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 - 0x118], ecx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x11c]
sub esp, 0xc
mov dword [ebp - 0x114], eax
call edx
mov ecx, dword [ebp - 0x118]
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 - 0x114]
sub esp, 0xc
shl edx, 0x10
mov dword [esp + 0x14], 4
or eax, edx
mov dword [esp + 0x10], esi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x110]
sub esp, 0x18
test eax, eax
jne 0x409a10
mov eax, dword [ebx + 0x88]
cmp eax, dword [ebp - 0x5c]
je 0x409dc0
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x8c]
je 0x409dcf
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x88]
je 0x409dde
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x84]
je 0x409ded
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x80]
je 0x409df9
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x90]
je 0x409e08
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x7c]
je 0x40984d
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x78]
je 0x409e65
movzx edx, dx
shl eax, 0x10
lea esi, [ebp - 0x104]
mov dword [esp + 0x14], 4
or eax, edx
mov dword [esp + 0x10], esi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x94]
je 0x4098f3
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 - 0x104]
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
cmp edx, dword [ebp - 0x70]
je 0x409db0
movzx edx, dx
shl eax, 0x10
mov dword [esp + 0x10], esi
or eax, edx
mov dword [esp + 0x14], 4
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x114]
je 0x409ff9
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x409978
sub eax, edx
mov dword [esp + 0x10], edx
lea esi, [ebp - 0x104]
add eax, 2
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x110]
sub esp, 0x18
test edx, edx
je 0x40954e
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 0x4095b6
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 4
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x104]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 0x40990e
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 - 0x104], eax
mov eax, dword [ebp - 0x10c]
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 0x409970
mov eax, dword [ebp - 0x10c]
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 0x4099c8
lea edx, [ebp - 0xe4]
xor eax, eax
call sym._load_config
jmp 0x4093b5
mov eax, edx
call sym._debugstr_config
mov dword [esp + 0xc], 0x4159ac
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 0x4093a7
cmp dword [ebp - 0x6c], eax
jne 0x40990e
jmp 0x40994e
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebp - 0x8c]
jne 0x409e8c
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebp - 0x88]
jne 0x409ed5
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebp - 0x84]
jne 0x409f1e
mov eax, dword [ebx + 0x64]
cmp eax, dword [ebp - 0x80]
jne 0x409f67
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebp - 0x90]
jne 0x409fb0
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebp - 0x7c]
je 0x40984d
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 - 0x78]
jne 0x40985c
cmp dword [ebp - 0x74], eax
jne 0x40985c
jmp 0x4098a6
mov eax, dword [ebp - 0xa4]
cmp dword [ebx + 0x40], eax
jne 0x4095b6
jmp 0x409666
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 0x4096f4
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 0x40973b
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 0x409782
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 0x4097c6
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
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 0x40980d
mov eax, dword [ebp - 0x10c]
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 0x40954e