Function at 0x6acc6210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea ecx, [ebp - 0x1e8]
push ebx
sub esp, 0x22c
mov edi, dword [ebp + 8]
call sym._MMDevPropStore_OpenPropKey
mov ebx, eax
test eax, eax
js 0x6acc644c
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 - 0x1e4]
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 0x6acc6520
cmp ax, 0x41
je 0x6acc64a0
cmp ax, 0x13
je 0x6acc6460
mov dword [ebp - 0x1ec], 0
mov ebx, 0x80070057
test byte [0x6acd00b4], 1
jne 0x6acc6640
lea esi, [esi]
nop
mov eax, dword [ebp - 0x1e8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x6acd00b4], 8
je 0x6acc644c
mov eax, esi
shr eax, 0x10
je 0x6acc65f8
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x6acd2581
test ecx, ecx
jne 0x6acc641a
movzx eax, word [ebp - 0x1e4]
test ax, ax
je 0x6acc6618
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x6acc6350
mov ecx, 0x224c
mov dword [ebp - 0x1f0], ebx
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
jmp 0x6acc63b3
cmp ax, 9
je 0x6acc6570
cmp ax, 0xa
jne 0x6acc658e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0x22]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x6acc63e8
test edx, edx
jle 0x6acc63e8
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x6acc6558
jbe 0x6acc6380
cmp ax, 0x22
je 0x6acc65e0
cmp ax, 0x5c
jne 0x6acc6581
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6acc63a0
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x1f0]
test edi, edi
jle 0x6acc6631
mov edi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], di
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edi, dword [ebp - 0x1ec]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Writing__s_returned__lu_n
mov dword [esp + 0x14], edi
mov dword [esp + 8], str.MMDevice_SetPropValue
mov dword [esp + 4], 0x6acd00b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
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 - 0x1e8]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x1ec], eax
sub esp, 0x18
jmp 0x6acc62f0
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 - 0x1e8]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x1ec], eax
sub esp, 0x18
test byte [0x6acd00b4], 8
je 0x6acc62f0
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], 0x6acd00b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6acc62f0
mov edx, dword [edi + 8]
cmp word [edx], 0
je 0x6acc6670
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x6acc6530
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
jmp 0x6acc6477
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6acc63a0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6acc63a0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6acc6610
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 0x6acc63a0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6acc63a0
movzx esi, si
mov dword [esp], 0x6acd2616
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf_1
jmp 0x6acc641a
mov byte [ecx], al
inc ecx
jmp 0x6acc63a0
mov esi, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], si
lea eax, [ecx + 1]
jmp 0x6acc6409
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], 0x6acd00b4
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x6acc62f0
mov eax, 2
jmp 0x6acc653e