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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov edi, dword [0x418880]
cmp edi, 0x418880
je 0x4140a6
movzx eax, byte [0x418888]
test al, 8
je 0x413d45
jmp 0x414070
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call ebx
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov edx, dword [edi]
mov dword [eax], edx
mov dword [esp], edi
call ebx
mov edi, dword [0x418880]
cmp edi, 0x418880
je 0x4140a6
movzx eax, byte [0x418888]
mov ebx, dword [edi + 0x14]
and eax, 8
test ebx, ebx
je 0x413f30
test al, al
jne 0x413fa0
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
test esi, esi
je 0x414197
cmp word [esi], 0
jne 0x413e60
mov dword [ebp - 0x10], edx
mov eax, edx
mov ecx, 1
cmp dword [ebp - 0x18], 0
je 0x413de4
test ebx, ebx
je 0x413de4
cmp dword [ebp - 0x14], 1
je 0x4140b0
cmp dword [ebp - 0x14], 4
jne 0x413de4
mov dword [ebp - 0x14], edx
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov ecx, dword [ebp - 0x18]
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub esp, 0x18
test eax, eax
je 0x413dfe
cmp edx, eax
je 0x413dfe
mov dword [ebp - 0x14], ecx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
sub esp, 4
test ecx, ecx
jne 0x413ed0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x41417a
test byte [0x418888], 8
je 0x413d00
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0x10], edi
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], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov eax, dword [edi + 0xc]
jmp 0x413d00
lea eax, [ebp - 0x10]
mov dword [esp], edx
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
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], esi
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
sub esp, 0x24
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x413d90
test eax, eax
je 0x413ed0
cmp edx, eax
jne 0x413dec
lea esi, [esi]
lea edi, [edi]
test byte [0x418888], 2
je 0x413e06
mov eax, esi
mov dword [ebp - 0x14], ecx
call sym._wine_dbgstr_wn.constprop.0_3
mov ebx, eax
mov eax, dword [ebp - 0x18]
call sym._wine_dbgstr_wn.constprop.0_3
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x14], ebx
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], 0x418888
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_8
jmp 0x413e06
test al, al
jne 0x4140f0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0x2000000
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov eax, dword [edi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x413e06
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x414138
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x413e06
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_3
mov esi, eax
mov eax, dword [edi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_3
mov ebx, eax
mov eax, dword [edi + 0xc]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Setting__s:_s_to__s_n
mov dword [esp + 8], str.process_setting
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x14]
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
test byte [0x418888], 8
je 0x413d74
mov dword [ebp - 0x20], edx
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [ebp - 0x1c], eax
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_3
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.subkey_s:_name_s__value_p__type_ld_n
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.set_config_key
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov edx, dword [ebp - 0x20]
jmp 0x413d74
mov dword [esp + 0xc], 0x41bdc7
mov dword [esp + 8], str.apply
mov dword [esp + 4], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
mov edi, dword [0x418880]
cmp edi, 0x418880
jne 0x413d3e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebx], 0
je 0x414170
mov ecx, ebx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x4140c0
sub ecx, ebx
add ecx, 2
mov dword [ebp - 0x14], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
jmp 0x413dc1
mov eax, dword [edi + 0x10]
call sym._wine_dbgstr_wn.constprop.0_3
mov ebx, eax
mov eax, dword [edi + 0xc]
call sym._wine_dbgstr_wn.constprop.0_3
mov dword [esp + 0x14], ebx
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], 0x418888
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x413f38
mov dword [esp], edx
mov dword [esp + 4], 0
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov eax, dword [edi + 0xc]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
jmp 0x413f8b
mov ecx, 2
jmp 0x4140ce
mov dword [esp + 8], 0xe1
mov dword [esp + 4], str._home_runner_build_wine_wine_programs_winecfg_winecfg.c
mov dword [esp], str.setting__path
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [esp + 8], 0xa9
mov dword [esp + 4], str._home_runner_build_wine_wine_programs_winecfg_winecfg.c
mov dword [esp], str.subkey___NULL
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
lea edi, [edi]