Function at 0x10006b30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x168
mov ebx, dword [ebp + 8]
test byte [0x1000a04c], 8
jne 0x10006d20
mov eax, dword [ebx - 0x18]
cmp eax, 1
je 0x10006cb0
mov esi, 0x80070005
cmp eax, 2
je 0x10006c82
lea esi, [ebp - 0x138]
mov dword [esp + 4], str.CLSID_
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, dword [ebx - 0x1c]
test eax, eax
jne 0x10006e20
lea eax, [ebp - 0x14c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x80000000
mov edi, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
call edi
sub esp, 0x24
mov esi, eax
test eax, eax
jne 0x10006c90
lea eax, [ebp - 0x148]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebx - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call edi
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x14c]
sub esp, 0x24
mov dword [esp], eax
call ebx
sub esp, 4
test esi, esi
jne 0x10006c90
mov eax, dword [ebp + 0x10]
movzx edx, word [eax]
cmp dx, 8
je 0x10007100
cmp dx, 0x2011
je 0x10006e60
cmp dx, 3
je 0x10006f40
mov esi, 0x80070057
test byte [0x1000a04c], 4
jne 0x10007140
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0xc
lea esi, [ebp - 0x138]
mov dword [esp + 4], str.SoftwareMicrosoftActiveMoviedevenum_
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov edi, dword [ebx - 0x1c]
test edi, edi
jne 0x10007080
lea eax, [ebp - 0x14c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x80000001
jmp 0x10006bcd
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_variant
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10007130
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x10006f80
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1000c708
sub esp, 8
test eax, eax
jne 0x10006f96
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
je 0x100071a0
lea esi, [esi]
lea edi, [edi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x10006d80
mov ecx, 0x224c
mov dword [ebp + 8], ebx
mov esi, dword [ebp + 0xc]
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
jmp 0x10006de8
cmp ax, 9
je 0x10007050
cmp ax, 0xa
jne 0x10006fe1
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0x16]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x100070b0
test edx, edx
jle 0x100070b0
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x10007068
jbe 0x10006db0
cmp ax, 0x22
je 0x10007038
cmp ax, 0x5c
jne 0x10006fd4
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10006dd0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 8], 0x27
lea eax, [esi + eax*2]
mov dword [esp + 4], eax
lea eax, [ebx - 0x2c]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
sub esp, 0xc
mov dword [esp + 4], str.Instance
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x10006b88
lea eax, [ebp - 0x144]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SafeArrayGetLBound]
lea eax, [ebp - 0x140]
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 1
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SafeArrayGetUBound]
lea eax, [ebp - 0x13c]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SafeArrayAccessData]
mov eax, dword [ebp - 0x140]
sub eax, dword [ebp - 0x144]
sub esp, 8
add eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SafeArrayUnaccessData]
sub esp, 4
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call ebx
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
add eax, 8
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x148]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
jmp 0x10006f1c
movzx eax, word [ebp + 0xc]
mov dword [esp], 0x1000c712
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.moniker__p__name__s__var__s._n
mov dword [esp + 0x18], eax
lea eax, [ebx - 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x1000d5d0
mov dword [esp + 4], 0x1000a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10006b4c
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x100070f0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefproperty_bag_Write]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefproperty_bag_Write]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefproperty_bag_Write]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefproperty_bag_Write]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10006dd0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10006dd0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10006dd0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10006dd0
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp + 8], 0x27
lea eax, [esi + eax*2]
mov dword [esp + 4], eax
lea eax, [ebx - 0x2c]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
sub esp, 0xc
jmp 0x10006cd2
mov byte [ecx], 0x22
mov ebx, dword [ebp + 8]
test eax, eax
jle 0x100071b9
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x10006f96
mov byte [ecx], al
add ecx, 1
jmp 0x10006dd0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
jmp 0x10006f5a
mov edx, 0x1000c701
jmp 0x10006f96
movzx ecx, dx
test dh, 0xf0
jne 0x100071ca
cmp dx, 0x49
jbe 0x100071c1
mov eax, str.VT_BSTR_BLOB
cmp dx, 0xfff
je 0x1000716e
mov dword [esp + 4], ecx
mov dword [esp], str.vt_invalid__x_
call sym._wine_dbg_sprintf_2
mov dword [esp + 0x10], eax
mov esi, 0x80070057
mov dword [esp + 0xc], str.Unhandled_type__s._n
mov dword [esp + 8], 0x1000d5d0
mov dword [esp + 4], 0x1000a04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x10006c82
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x100070ce
mov eax, dword [ecx*4 + 0x1000d300]
jmp 0x1000716e
mov eax, edx
mov ecx, edx
and edx, 0xfff
shr ax, 0xc
and cx, 0xfff
movzx eax, ax
mov ebx, dword [eax*4 + 0x1000d580]
cmp cx, 0x49
jbe 0x10007222
mov eax, str.VT_BSTR_BLOB
cmp cx, 0xfff
je 0x10007209
mov dword [esp + 4], edx
mov dword [esp], str.vt_invalid__x_
call sym._wine_dbg_sprintf_2
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str._s_s
call sym._wine_dbg_sprintf_2
jmp 0x1000716e
mov eax, dword [edx*4 + 0x1000d300]
jmp 0x10007209