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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0xc014
call sym.__alloca
mov esi, dword [ebp + 8]
mov eax, dword [0x4162c0]
mov dword [eax], 0
push 0x3d
push esi
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
mov edi, eax
test eax, eax
mov eax, 0x20019
mov ebx, 0x2001f
cmove ebx, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push 0x417cdc
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b517
test byte [0x41d010], 1
je 0x40b9ed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unexpected_failure_opening_HKCR_key:__ld_n
mov dword [esp + 8], str.WCMD_assoc
mov dword [esp], 0
call sym._wine_dbg_log_1
add esp, 0x14
jmp 0x40b9ed
movzx eax, word [esi]
test ax, ax
je 0x40b5d1
test edi, edi
je 0x40b74d
mov word [edi], 0
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, word [esi + eax]
mov word [ebp + eax - 0x8020], cx
add eax, 2
test cx, cx
jne 0x40b540
add edi, 2
lea eax, [ebp - 0x8020]
cmp dword [ebp + 0xc], 0
mov ebx, dword [0x4162c0]
je 0x40b7eb
cmp word [edi], 0
jne 0x40b826
push esi
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
cmp eax, 2
je 0x40b9ba
test eax, eax
jne 0x40b89f
test byte [0x41d010], 8
je 0x40b9e4
mov ecx, esi
call dbg.wine_dbgstr_wn
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.HKCR_Key__s_deleted_n
mov dword [esp + 8], str.WCMD_assoc
mov dword [esp], 3
call sym._wine_dbg_log_1
add esp, 0x14
jmp 0x40b9e4
xor edi, edi
mov esi, dword [ebp + 0xc]
jmp 0x40b60c
push 0x416fa4
call sym._WCMD_output_asis
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 0xc]
nop word cs:[eax + eax]
inc edi
cmp eax, 0x103
je 0x40b9e4
mov dword [ebp - 0x20], 0x2000
mov eax, dword [ebp - 0x14]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea ecx, [ebp - 0x20]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x4020]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40b600
test esi, esi
setne dl
movzx ecx, word [ebp - 0x4020]
cmp cx, 0x2e
sete dh
xor eax, eax
xor dh, dl
jne 0x40b600
mov word [ebp - 0xc020], cx
test cx, cx
je 0x40b688
mov eax, 2
nop dword [eax]
movzx ecx, word [ebp + eax - 0x4020]
mov word [ebp + eax - 0xc020], cx
add eax, 2
test cx, cx
jne 0x40b670
test esi, esi
jne 0x40b6cc
lea eax, [ebp - 0xc020]
nop word cs:[eax + eax]
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x40b6a0
movsd xmm0, qword [0x417d34]
movsd qword [eax + 0x1e], xmm0
movups xmm0, xmmword [0x417d24]
movups xmmword [eax + 0xe], xmm0
movups xmm0, xmmword [str.ShellOpenCommand]
movups xmmword [eax - 2], xmm0
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
lea eax, [ebp - 0xc020]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x40b600
mov dword [ebp - 0x1c], 0x4000
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x8020]
push eax
push 0
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
lea eax, [ebp - 0x4020]
push eax
call sym._WCMD_output_asis
add esp, 4
push 0x417aa8
call sym._WCMD_output_asis
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x40b5d8
lea eax, [ebp - 0x8020]
push eax
call sym._WCMD_output_asis
add esp, 4
jmp 0x40b5d8
mov word [ebp - 0x8020], ax
mov eax, 2
nop dword [eax]
movzx ecx, word [esi + eax]
mov word [ebp + eax - 0x8020], cx
add eax, 2
test cx, cx
jne 0x40b760
lea edi, [ebp - 0x8020]
push 0x20
push edi
call dword [sym.imp.ucrtbase.dll_wcschr]
add esp, 8
test eax, eax
je 0x40b78f
mov word [eax], 0
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, word [ebp + eax - 0x8020]
mov word [ebp + eax - 0x4020], cx
add eax, 2
test cx, cx
jne 0x40b7a0
cmp dword [ebp + 0xc], 0
je 0x40b8a9
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4020]
push eax
push ebx
push 0
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b92b
mov eax, 0x3ec
jmp 0x40b8fc
mov ecx, eax
nop dword [eax]
cmp word [ecx], 0
lea ecx, [ecx + 2]
jne 0x40b7f0
movsd xmm0, qword [0x417d34]
movsd qword [ecx + 0x1e], xmm0
movups xmm0, xmmword [0x417d24]
movups xmmword [ecx + 0xe], xmm0
movups xmm0, xmmword [str.ShellOpenCommand]
movups xmmword [ecx - 2], xmm0
cmp word [edi], 0
je 0x40b985
mov ecx, dword [ebp - 0x14]
sub esp, 0x24
lea edx, [ebp - 0x10]
mov dword [esp + 0x1c], edx
movaps xmm0, xmmword [0x4167d0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b89f
xor ecx, ecx
mov eax, dword [ebp - 0x10]
nop word cs:[eax + eax]
cmp word [edi + ecx], 0
lea ecx, [ecx + 2]
jne 0x40b870
push ecx
push edi
push 1
push 0
push 0
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
je 0x40b98c
call dbg.WCMD_print_error
jmp 0x40b9de
lea eax, [ebp - 0x4020]
nop
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x40b8b0
movsd xmm0, qword [0x417d34]
movsd qword [eax + 0x1e], xmm0
movups xmm0, xmmword [0x417d24]
movups xmmword [eax + 0xe], xmm0
movups xmm0, xmmword [str.ShellOpenCommand]
movups xmmword [eax - 2], xmm0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4020]
push eax
push ebx
push 0
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b92b
mov eax, 0x3ed
lea esi, [ebp - 0xc020]
push 0x2000
push esi
push eax
push 0
call dword [sym.imp.user32.dll_LoadStringW]
push edi
push esi
call dbg.WCMD_output_stderr
add esp, 8
mov eax, dword [0x4162c0]
mov dword [eax], 2
jmp 0x40b9e4
mov dword [ebp - 0x1c], 0x4000
lea eax, [ebp - 0x1c]
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, edi
mov edi, eax
push esi
call sym._WCMD_output_asis
add esp, 4
push 0x417aa8
call sym._WCMD_output_asis
add esp, 4
test edi, edi
jne 0x40b96d
push ebx
call sym._WCMD_output_asis
add esp, 4
push 0x416fa4
call sym._WCMD_output_asis
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x40b9e4
mov eax, 0x3ed
jmp 0x40b9bf
push esi
call sym._WCMD_output_asis
add esp, 4
push 0x417aa8
call sym._WCMD_output_asis
add esp, 4
push edi
call sym._WCMD_output_asis
add esp, 4
push 0x416fa4
call sym._WCMD_output_asis
add esp, 4
jmp 0x40b9e4
mov eax, 0x3ec
lea edi, [ebp - 0x4020]
push 0x2000
push edi
push eax
push 0
call dword [sym.imp.user32.dll_LoadStringW]
push esi
push edi
call dbg.WCMD_output_stderr
add esp, 8
mov dword [ebx], 2
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegCloseKey]
add esp, 0xc014
pop esi
pop edi
pop ebx
pop ebp
ret