Function at 0x4088c0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, dword [0x416ebc]
cmp esi, 0x416ebc
je 0x408d06
movzx eax, byte [0x4150a0]
test al, 8
jne 0x408cd0
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, esi
jmp 0x408937
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [esp], ebx
call edi
mov ebx, dword [0x416ebc]
cmp ebx, 0x416ebc
je 0x408d06
movzx eax, byte [0x4150a0]
mov esi, dword [ebx + 0x14]
and eax, 8
test esi, esi
je 0x408b58
test al, al
jne 0x408bd0
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x408ca8
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0
jne 0x408a58
mov dword [ebp - 0x1c], edx
mov eax, edx
mov ecx, 1
cmp dword [ebp - 0x34], 0
je 0x4089df
test esi, esi
je 0x4089df
cmp dword [ebp - 0x30], 1
je 0x408d10
cmp dword [ebp - 0x30], 4
jne 0x4089df
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x30]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
je 0x4089f9
cmp edx, eax
je 0x4089f9
mov dword [ebp - 0x30], ecx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x30]
sub esp, 4
test ecx, ecx
jne 0x408ac8
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x408b30
test byte [0x4150a0], 8
je 0x4088f8
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.destroying__p:__s_n
mov dword [esp + 8], str.free_setting
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov eax, dword [ebx + 0xc]
jmp 0x4088f8
lea eax, [ebp - 0x1c]
mov dword [esp], edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x38]
mov ecx, eax
sub esp, 0x24
mov eax, dword [ebp - 0x1c]
test ecx, ecx
je 0x40898b
test eax, eax
je 0x408ac8
cmp edx, eax
jne 0x4089e7
lea esi, [esi]
test byte [0x4150a0], 2
je 0x408a01
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
call sym._wine_dbgstr_wn.constprop.0_4
mov esi, eax
mov eax, dword [ebp - 0x34]
call sym._wine_dbgstr_wn.constprop.0_4
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], str.Unable_to_set_configuration_key__s_in_section__s__res_ld_n
mov dword [esp + 8], str.set_config_key
mov dword [esp + 4], 0x4150a0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_7
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x408a0c
lea esi, [esi]
nop
mov dword [esp + 8], 0xe2
mov dword [esp + 4], str..._src_wine_programs_winecfg_winecfg.c
mov dword [esp], str.setting__path
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebx + 0xc]
jmp 0x408a0c
test al, al
jne 0x408d58
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], 0x2000000
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x408a01
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x408da0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x408a01
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_4
mov esi, eax
mov eax, dword [ebx + 0x10]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
call sym._wine_dbgstr_wn.constprop.0_4
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.Setting__s:_s_to__s_n
mov dword [esp + 8], str.process_setting
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
test byte [0x4150a0], 8
je 0x408969
mov eax, ecx
mov dword [ebp - 0x3c], edx
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_wn.constprop.0_4
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 0xc], str.subkey_s:_name_s__value_p__type_ld_n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.set_config_key
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
test eax, eax
jne 0x408974
mov dword [ebp - 0x38], edx
mov dword [esp + 8], 0xaa
mov dword [esp + 4], str..._src_wine_programs_winecfg_winecfg.c
mov dword [esp], str.subkey___NULL
call dword [sym.imp.ucrtbase.dll__assert]
mov edx, dword [ebp - 0x38]
jmp 0x408974
mov dword [esp + 0xc], 0x418edb
mov dword [esp + 8], str.apply
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
mov esi, dword [0x416ebc]
cmp esi, 0x416ebc
jne 0x408dd0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [esi], 0
je 0x408de0
mov ecx, esi
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x408d20
sub ecx, esi
add ecx, 2
mov dword [esp + 0x10], esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], esi
jmp 0x4089cb
mov eax, dword [ebx + 0x10]
call sym._wine_dbgstr_wn.constprop.0_4
mov esi, eax
mov eax, dword [ebx + 0xc]
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Removing__s:_s_n
mov dword [esp + 8], str.process_setting
mov dword [esp + 4], 0x4150a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x408b60
mov dword [esp], ecx
mov dword [esp + 4], 0
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov eax, dword [ebx + 0xc]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
jmp 0x408bb3
movzx eax, byte [0x4150a0]
jmp 0x4088ea
mov ecx, 2
jmp 0x408d2e