Function at 0x1000c2c0
Capabilities:
Set registry value

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, edi
sub esp, 0xb0
mov dword [ebp - 0x90], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x8c], edi
mov edi, ecx
mov dword [ebp - 0x94], eax
mov eax, dword [0x10016104]
cmp eax, 0x10016104
je 0x1000c528
lea ebx, [eax - 0x40]
jmp 0x1000c321
mov eax, dword [ebx + 0x40]
lea ebx, [eax - 0x40]
cmp eax, 0x10016104
je 0x1000c528
cmp dword [ebx + 0x24], edi
jne 0x1000c310
mov eax, dword [esi]
lea ecx, [ebx + 0x2c]
cmp dword [ebx + 0x2c], eax
jne 0x1000c310
mov eax, dword [esi + 4]
cmp dword [ecx + 4], eax
jne 0x1000c310
mov eax, dword [esi + 8]
cmp dword [ecx + 8], eax
jne 0x1000c310
mov eax, dword [esi + 0xc]
cmp dword [ecx + 0xc], eax
jne 0x1000c310
mov eax, dword [ebx + 8]
test eax, eax
jle 0x1000c35c
test byte [0x10016114], 4
jne 0x1000c590
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x98], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 0x24], edi
mov ecx, dword [ebp - 0x98]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
mov dword [ebx + 0x28], eax
mov eax, dword [esi]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0x5e]
mov dword [esp], ecx
mov dword [esp + 8], 0x27
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov eax, dword [0x10025014]
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x5e]
sub esp, 0xc
test edi, edi
cmovne eax, dword [0x10025010]
mov dword [esp + 0x20], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [ebp - 0x90], eax
call eax
sub esp, 0x24
test eax, eax
je 0x1000c458
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x1000c444
test edi, edi
jne 0x1000c510
mov dword [0x10025008], ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x88]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DeviceState
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
lea eax, [ebp - 0x84]
sub esp, 0x18
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x88]
mov dword [esp + 0x20], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2011f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Properties
call eax
mov edx, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x24
test eax, eax
je 0x1000c5c5
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call edx
sub esp, 4
jmp 0x1000c42c
mov dword [0x1002500c], ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp + 4], 0x48
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ebx, eax
test eax, eax
je 0x1000c444
lea eax, [ebx + 0xc]
mov dword [ebx], sym._MMDevice_QueryInterface_12
mov dword [ebx + 4], 0x10019dc0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [ebx + 0xc]
mov ecx, dword [0x10016108]
sub esp, 4
mov dword [eax + 0x18], str._home_runner_build_wine_wine_dlls_mmdevapi_devenum.c:_MMDevice.crst
lea eax, [ebx + 0x40]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x40], 0x10016104
mov dword [ecx], eax
lea ecx, [ebx + 0x2c]
mov dword [0x10016108], eax
jmp 0x1000c35c
mov dword [esp + 0xc], str.Modifying_an_MMDevice_with_postitive_reference_count__n
mov dword [esp + 8], str.MMDevice_Create
mov dword [esp + 4], 0x10016114
mov dword [esp], 2
mov dword [ebp - 0x98], ecx
call sym._wine_dbg_log.constprop.0_3
mov ecx, dword [ebp - 0x98]
jmp 0x1000c35c
mov eax, dword [ebx + 0x3c]
mov ecx, 0x1f
mov edx, edi
mov word [ebp - 0x80], cx
mov ecx, 0x10019c24
mov dword [ebp - 0x78], eax
mov eax, esi
call sym._set_driver_prop_value
test eax, eax
jns 0x1000c708
lea eax, [ebp - 0x80]
mov ecx, 0x1001ffa0
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
lea eax, [ebp - 0x80]
mov ecx, 0x1001fba4
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
lea eax, [ebp - 0x80]
mov ecx, 0x1001fdd4
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
lea eax, [ebp - 0x5e]
mov ecx, 0x10019c10
mov edx, edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
mov ecx, 0x10020504
mov edx, edi
mov eax, esi
call sym._set_driver_prop_value
test eax, eax
jns 0x1000c67e
xor eax, eax
cmp edi, 1
mov edx, 0x13
mov ecx, 0x10020504
sete al
mov word [ebp - 0x80], dx
mov edx, edi
lea eax, [eax + eax*2 + 1]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
cmp edi, 1
je 0x1000c6e3
lea eax, [ebp - 0x70]
mov ecx, 0x10020554
mov edx, edi
mov dword [ebp - 0x70], 0
mov dword [esp], eax
mov dword [ebp - 0x8c], eax
mov eax, esi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call sym._MMDevice_GetPropValue
test eax, eax
js 0x1000c6c4
cmp word [ebp - 0x70], 0x13
je 0x1000c6d2
mov ecx, 0x10020554
mov edx, edi
mov eax, esi
call sym._set_driver_prop_value
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sym._PropVariantClear_4
sub esp, 4
mov edx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], edx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x8c]
sub esp, 4
jmp 0x1000c4f8
lea eax, [ebp - 0x70]
mov ecx, 0x10019c24
mov edx, edi
mov dword [ebp - 0x70], 0
mov dword [esp], eax
mov dword [ebp - 0x8c], eax
mov eax, esi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call sym._MMDevice_GetPropValue
test eax, eax
js 0x1000c749
cmp word [ebp - 0x70], 0x1f
je 0x1000c75f
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sym._PropVariantClear_4
sub esp, 4
jmp 0x1000c5ea
mov eax, dword [ebp - 0x68]
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ecx, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 8], 0x11
lea edx, [eax + 2]
mov dword [esp], str.VID_054CPID_0CE6
mov dword [esp + 4], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x90], ecx
call ecx
test eax, eax
je 0x1000c7c6
mov edx, dword [ebp - 0x98]
mov dword [esp + 8], 0x11
mov dword [esp], str.VID_054CPID_0DF2
mov ecx, dword [ebp - 0x90]
mov dword [esp + 4], edx
call ecx
test eax, eax
jne 0x1000c749
mov dword [ebp - 0x78], str.Wireless_Controller
jmp 0x1000c749