Function at 0x412df0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov eax, 0xc05c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004240d8
sub esp, eax
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [0x437470], 0
mov dword [esp + 4], 0x3d
mov dword [esp], esi
call ebx
mov dword [esp + 8], 0
cmp eax, 1
mov edi, eax
mov dword [esp + 4], 0x4279a0
sbb eax, eax
mov dword [esp], 0x80000000
and eax, 0xfffffffa
add eax, 0x2001f
mov ecx, eax
mov dword [ebp - 0xc02c], eax
lea eax, [ebp - 0xc028]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x4130f0
movzx eax, word [esi]
test ax, ax
jne 0x412f20
xor esi, esi
lea ebx, [ebp - 0x8018]
mov edi, dword [ebp + 0xc]
jmp 0x412eac
movzx edx, word [ebp - 0x8018]
cmp dx, 0x2e
je 0x412fe0
test edi, edi
je 0x412fe8
add esi, 1
lea eax, [ebp - 0xc01c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc028]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0xc01c], 0x2000
call sym._RegEnumKeyExW_32
sub esp, 0x20
mov edx, eax
test eax, eax
je 0x412e90
cmp edx, 0x103
jne 0x412ea9
mov eax, dword [ebp - 0xc028]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x413254
xor edx, edx
xor eax, eax
lea ebx, [ebp - 0x8018]
mov word [edi], dx
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x412f35
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x413140
cmp word [ebp - 0x8018], 0
mov edx, ebx
je 0x412f69
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x412f60
xor eax, eax
mov ecx, 0x5c
jmp 0x412f79
movzx ecx, word [eax + str.ShellOpenCommand]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x412f72
cmp word [edi + 2], 0
mov eax, dword [ebp - 0xc028]
jne 0x413151
lea ebx, [ebp - 0x4018]
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x3ed
mov dword [esp], 0
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.WCMD_output_stderr
mov dword [0x437470], 2
jmp 0x412f07
test edi, edi
je 0x412ea9
xor eax, eax
jmp 0x412ff4
movzx edx, word [ebx + eax]
mov word [ebp + eax - 0x4018], dx
add eax, 2
test dx, dx
jne 0x412ff0
test edi, edi
je 0x413334
lea eax, [ebp - 0xc020]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc02c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4018]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc028]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x412ea9
lea eax, [ebp - 0xc024]
lea ecx, [ebp - 0xc018]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc020]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0xc024], 0x4000
call sym._RegQueryValueExW_24
sub esp, 0x18
mov dword [ebp - 0xc030], eax
mov dword [esp], ebx
call sym._WCMD_output_asis
mov dword [esp], 0x426126
call sym._WCMD_output_asis
mov edx, dword [ebp - 0xc030]
lea ecx, [ebp - 0xc018]
test edx, edx
je 0x413480
mov dword [esp], 0x426120
mov dword [ebp - 0xc030], edx
call sym._WCMD_output_asis
mov eax, dword [ebp - 0xc020]
mov dword [esp], eax
call sym._RegCloseKey_4
mov edx, dword [ebp - 0xc030]
sub esp, 4
jmp 0x412eff
test byte [0x425010], 1
je 0x412f18
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Unexpected_failure_opening_HKCR_key:__ld_n
mov dword [esp + 8], str.WCMD_assoc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x425010
mov dword [esp], 0
call sym._wine_dbg_log.constprop.9
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edi + 2], 0
mov eax, dword [ebp - 0xc028]
je 0x413380
mov ecx, dword [ebp - 0xc02c]
lea edx, [ebp - 0xc020]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
jne 0x413240
cmp word [edi + 2], 0
lea ebx, [edi + 2]
je 0x41351a
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x4131b4
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc020]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._RegSetValueExW_24
mov edi, eax
mov eax, dword [ebp - 0xc020]
sub esp, 0x18
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
test edi, edi
jne 0x413240
mov dword [esp], esi
call sym._WCMD_output_asis
mov dword [esp], 0x426126
call sym._WCMD_output_asis
mov dword [esp], ebx
call sym._WCMD_output_asis
mov dword [esp], 0x426120
call sym._WCMD_output_asis
jmp 0x412f07
call dbg.WCMD_print_error
mov dword [0x437470], 2
jmp 0x412f07
xor edx, edx
lea edi, [ebp - 0xc018]
jmp 0x413264
movzx eax, word [esi + edx]
mov word [edi + edx], ax
add edx, 2
test ax, ax
jne 0x413260
mov dword [esp + 4], 0x20
mov dword [esp], edi
call ebx
test eax, eax
je 0x413286
xor ebx, ebx
mov word [eax], bx
xor eax, eax
lea ebx, [ebp - 0x8018]
nop
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x413290
mov eax, dword [ebp - 0xc028]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc030], eax
test ecx, ecx
je 0x4133e0
lea eax, [ebp - 0xc020]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc02c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc030]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x413493
lea ebx, [ebp - 0x4018]
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x3ec
mov dword [esp], 0
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 4], edi
mov dword [esp], ebx
call dbg.WCMD_output_stderr
mov dword [0x437470], 2
jmp 0x412f07
cmp word [ebp - 0x4018], 0
lea edx, [ebp - 0x4018]
je 0x41334d
add edx, 2
cmp word [edx], 0
jne 0x413344
xor eax, eax
mov ecx, 0x5c
jmp 0x413367
movzx ecx, word [eax + str.ShellOpenCommand]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x413360
jmp 0x41300c
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._RegDeleteKeyW_8
sub esp, 8
test eax, eax
jne 0x413524
test byte [0x425010], 8
je 0x412f07
mov eax, esi
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0xc], str.HKCR_Key__s_deleted_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_assoc
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x412f07
cmp word [ebp - 0x8018], 0
mov edx, ebx
je 0x4133f9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4133f0
xor eax, eax
mov ecx, 0x5c
jmp 0x413409
movzx ecx, word [eax + str.ShellOpenCommand]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x413402
lea eax, [ebp - 0xc020]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc02c]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc030]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x413493
lea ebx, [ebp - 0x4018]
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x3ed
mov dword [esp], 0
call sym._LoadStringW_16
sub esp, 0x10
jmp 0x413319
mov dword [esp], ecx
call sym._WCMD_output_asis
mov edx, dword [ebp - 0xc030]
jmp 0x4130c0
lea eax, [ebp - 0xc024]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc020]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0xc024], 0x4000
call sym._RegQueryValueExW_24
sub esp, 0x18
mov ebx, eax
mov dword [esp], esi
call sym._WCMD_output_asis
mov dword [esp], 0x426126
call sym._WCMD_output_asis
test ebx, ebx
je 0x413510
mov dword [esp], 0x426120
call sym._WCMD_output_asis
mov eax, dword [ebp - 0xc020]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x412f07
mov dword [esp], edi
call sym._WCMD_output_asis
jmp 0x4134ee
mov eax, 2
jmp 0x4131c5
cmp eax, 2
jne 0x413240
lea ebx, [ebp - 0x4018]
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x3ec
mov dword [esp], 0
call sym._LoadStringW_16
sub esp, 0x10
jmp 0x412fbf