Function at 0x1000cc00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea ecx, [ebp - 0x1dc]
push ebx
sub esp, 0x210
mov edi, dword [ebp + 8]
call sym._MMDevPropStore_OpenPropKey
mov ebx, eax
test eax, eax
js 0x1000ce3e
mov eax, dword [esi + 0x10]
mov dword [esp + 0x34], eax
movzx eax, byte [esi + 0xf]
mov dword [esp + 0x30], eax
movzx eax, byte [esi + 0xe]
mov dword [esp + 0x2c], eax
movzx eax, byte [esi + 0xd]
mov dword [esp + 0x28], eax
movzx eax, byte [esi + 0xc]
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 0xb]
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 0xa]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 9]
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 8]
mov dword [esp + 0x14], eax
movzx eax, word [esi + 6]
mov dword [esp + 0x10], eax
movzx eax, word [esi + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
lea esi, [ebp - 0x1d8]
mov dword [esp + 4], str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X__d
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
movzx eax, word [edi]
cmp ax, 0x1f
je 0x1000cf10
cmp ax, 0x41
je 0x1000ce90
cmp ax, 0x13
je 0x1000ce50
mov dword [ebp - 0x1e0], 0
mov ebx, 0x80070057
test byte [0x10018114], 1
jne 0x1000d038
mov esi, esi
lea edi, [edi]
mov eax, dword [ebp - 0x1dc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x10018114], 8
je 0x1000ce3e
mov eax, esi
shr eax, 0x10
je 0x1000cfe8
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1001afc7
sub esp, 8
test eax, eax
jne 0x1000ce0c
cmp word [ebp - 0x1d8], 0
je 0x1000d012
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x1000cd40
mov eax, 0x224c
mov dword [ebp - 0x1e4], ebx
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
jmp 0x1000cda0
cmp ax, 9
je 0x1000cf60
cmp ax, 0xa
jne 0x1000cf7e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0x16]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x1000cdd8
test edx, edx
jle 0x1000cdd8
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x1000cf48
jbe 0x1000cd70
cmp ax, 0x22
je 0x1000cfd0
cmp ax, 0x5c
jne 0x1000cf71
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1000cd90
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x1e4]
test eax, eax
jle 0x1000d02b
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x1e0]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Writing__s_returned__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.MMDevice_SetPropValue
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add edi, 8
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x1e0], eax
sub esp, 0x18
jmp 0x1000cce0
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1dc]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x1e0], eax
sub esp, 0x18
test byte [0x10018114], 8
je 0x1000cce0
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], str.Blob__p__lu_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MMDevice_SetPropValue
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
jmp 0x1000cce0
mov edx, dword [edi + 8]
cmp word [edx], 0
mov eax, edx
je 0x1000cf29
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000cf20
sub eax, edx
mov dword [esp + 0x10], edx
add eax, 2
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
jmp 0x1000ce67
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000cd90
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000cd90
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1000d008
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefMMDevPropStore_OpenPropKey]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefMMDevPropStore_OpenPropKey]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x1000cd90
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1000cd90
movzx esi, si
mov dword [esp], 0x1001afd1
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf_3
mov edx, eax
jmp 0x1000ce0c
mov byte [ecx], al
add ecx, 1
jmp 0x1000cd90
mov edx, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], dx
lea eax, [ecx + 1]
jmp 0x1000cdf9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unhandled_type__u_n
mov dword [esp + 8], str.MMDevice_SetPropValue
mov dword [esp + 4], 0x10018114
mov dword [esp], 0
call sym._wine_dbg_log.constprop.2
jmp 0x1000cce0