Function at 0x40ec70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x118
mov dword [ebp - 0xfc], ecx
test byte [0x413080], 8
jne 0x40f538
mov eax, dword [ebp - 0xfc]
test eax, eax
je 0x40f228
xor esi, esi
lea esi, [esi]
nop
mov eax, dword [ebp - 0xfc]
test eax, eax
jne 0x40ecbe
mov eax, dword [ebp + esi*4 - 0xd8]
cmp dword [ebx + esi*4], eax
je 0x40ed1a
lea eax, [ebp - 0xf2]
mov dword [esp + 8], esi
mov dword [esp + 4], str.ColorTable_02d
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebx + esi*4]
mov dword [esp], edi
mov dword [esp + 0x14], 4
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xf8]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xf2]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
add esi, 1
cmp esi, 0x10
jne 0x40eca8
mov ecx, dword [ebp - 0xfc]
mov eax, dword [ebx + 0x48]
test ecx, ecx
jne 0x40f570
cmp dword [ebp - 0x90], eax
je 0x40ed77
lea esi, [ebp - 0xf8]
mov dword [ebp - 0xf8], eax
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], edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebp - 0x8c]
je 0x40edbe
lea esi, [ebp - 0xf8]
mov dword [ebp - 0xf8], eax
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], edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x80]
cmp eax, dword [ebp - 0x58]
je 0x40ee05
lea esi, [ebp - 0xf8]
mov dword [ebp - 0xf8], eax
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], edi
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 - 0x100], edx
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40f23a
mov eax, dword [ebx + 0x84]
cmp eax, dword [ebp - 0x54]
je 0x40ee73
lea esi, [ebp - 0xf8]
mov dword [ebp - 0xf8], eax
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], edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea esi, [ebp - 0xf8]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x94]
cmp dword [ebx + 0x44], eax
je 0x40f8b0
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 - 0x100]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontSize
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0xfc]
sub esp, 0x18
test eax, eax
jne 0x40f2f8
mov eax, dword [ebx + 0x88]
cmp eax, dword [ebp - 0x50]
je 0x40f680
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
mov eax, dword [ebx + 0x58]
sub esp, 0x18
cmp eax, dword [ebp - 0x80]
je 0x40f790
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
mov eax, dword [ebx + 0x5c]
sub esp, 0x18
cmp eax, dword [ebp - 0x7c]
je 0x40f6db
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
mov eax, dword [ebx + 0x60]
sub esp, 0x18
cmp eax, dword [ebp - 0x78]
je 0x40f7eb
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
mov eax, dword [ebx + 0x64]
sub esp, 0x18
cmp eax, dword [ebp - 0x74]
je 0x40f736
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
mov eax, dword [ebx + 0x54]
sub esp, 0x18
cmp eax, dword [ebp - 0x84]
je 0x40f849
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
sub esp, 0x18
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebp - 0x70]
je 0x40f121
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
sub esp, 0x18
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
cmp edx, dword [ebp - 0x6c]
je 0x40f8a0
movzx edx, dx
shl eax, 0x10
lea esi, [ebp - 0xf8]
mov dword [esp], edi
or eax, edx
mov dword [esp + 0x14], 4
mov dword [ebp - 0xf8], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ScreenBufferSize
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebx + 0x50]
cmp eax, dword [ebp - 0x88]
je 0x40f1bb
lea esi, [ebp - 0xf8]
mov dword [ebp - 0xf8], eax
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], edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ecx, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebx + 0x74]
lea esi, [ebp - 0xf8]
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x100], ecx
cmp edx, dword [ebp - 0x64]
je 0x40f8c8
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 - 0x100]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.WindowSize
mov dword [esp], edi
call eax
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [ebp - 0xd8]
xor eax, eax
call sym._load_config
jmp 0x40eca1
cmp word [ebx + 0x8c], 0
mov edx, dword [ebp - 0x100]
je 0x40f8d6
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x100], eax
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40f260
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 - 0x100]
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], edi
call eax
mov edx, dword [ebp - 0xfc]
sub esp, 0x18
test edx, edx
je 0x40ee2c
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontFamily
mov dword [esp], edi
call eax
sub esp, 0x18
jmp 0x40ee93
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 4
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FontWeight
mov dword [esp], edi
call eax
mov eax, dword [ebx + 0x58]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
mov eax, dword [ebx + 0x5c]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, 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.HistoryNoDup
mov dword [esp], edi
mov dword [ebp - 0xfc], eax
call eax
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], edi
call eax
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], edi
call eax
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], edi
call eax
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], edi
call eax
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], edi
call eax
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], edi
mov dword [ebp - 0x100], eax
call eax
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
sub esp, 0x18
jmp 0x40f1dc
mov eax, edx
call sym._debugstr_config
mov dword [esp + 0xc], 0x414f6c
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.save_registry_key
mov dword [esp + 4], 0x413080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40ec93
mov dword [ebp - 0xf8], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
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], edi
mov dword [ebp - 0x100], eax
call eax
mov eax, dword [ebx + 0x4c]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
mov eax, dword [ebx + 0x80]
sub esp, 0x18
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x100]
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], edi
call eax
lea edx, [ebx + 0x8c]
sub esp, 0x18
cmp word [ebx + 0x8c], 0
jne 0x40f259
mov dword [esp + 0x14], 2
mov eax, dword [ebp - 0x100]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.FaceName
mov dword [esp], edi
call eax
sub esp, 0x18
jmp 0x40f2b0
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebp - 0x80]
je 0x40f790
mov dword [ebp - 0xf8], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
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.HistoryBufferSize
mov dword [esp], edi
mov dword [ebp - 0x100], eax
call eax
mov eax, dword [ebx + 0x5c]
sub esp, 0x18
cmp eax, dword [ebp - 0x7c]
jne 0x40efda
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebp - 0x78]
je 0x40f7eb
mov dword [ebp - 0xf8], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
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.InsertMode
mov dword [esp], edi
mov dword [ebp - 0x100], eax
call eax
mov eax, dword [ebx + 0x64]
sub esp, 0x18
cmp eax, dword [ebp - 0x74]
jne 0x40f062
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebp - 0x84]
je 0x40f849
mov dword [ebp - 0xf8], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
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.PopupColors
mov dword [esp], edi
mov dword [ebp - 0x100], eax
call eax
sub esp, 0x18
jmp 0x40f0e1
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebp - 0x7c]
je 0x40f6db
mov dword [ebp - 0xf8], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
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.HistoryNoDup
mov dword [esp], edi
mov dword [ebp - 0x100], eax
call eax
mov eax, dword [ebx + 0x60]
sub esp, 0x18
cmp eax, dword [ebp - 0x78]
jne 0x40f01e
mov eax, dword [ebx + 0x64]
cmp eax, dword [ebp - 0x74]
je 0x40f736
mov dword [ebp - 0xf8], eax
mov eax, dword [sym.imp.advapi32.dll_RegSetValueExW]
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.MenuMask
mov dword [esp], edi
mov dword [ebp - 0x100], eax
call eax
mov eax, dword [ebx + 0x54]
sub esp, 0x18
cmp eax, dword [ebp - 0x84]
jne 0x40f0a9
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebp - 0x70]
je 0x40f121
lea esi, [ebp - 0xf8]
mov dword [ebp - 0xf8], eax
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], edi
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 0x40f130
cmp dword [ebp - 0x68], eax
jne 0x40f130
jmp 0x40f174
mov eax, dword [ebp - 0x98]
cmp dword [ebx + 0x40], eax
jne 0x40ee93
jmp 0x40ef43
cmp dword [ebp - 0x60], eax
jne 0x40f1dc
jmp 0x40f21c
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], edi
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
jmp 0x40ee2c