Function at 0x1000d480
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 [0x10018104]
cmp eax, 0x10018104
je 0x1000d6e8
lea ebx, [eax - 0x40]
jmp 0x1000d4e1
mov eax, dword [ebx + 0x40]
lea ebx, [eax - 0x40]
cmp eax, 0x10018104
je 0x1000d6e8
cmp dword [ebx + 0x24], edi
jne 0x1000d4d0
mov eax, dword [esi]
lea ecx, [ebx + 0x2c]
cmp dword [ebx + 0x2c], eax
jne 0x1000d4d0
mov eax, dword [esi + 4]
cmp dword [ecx + 4], eax
jne 0x1000d4d0
mov eax, dword [esi + 8]
cmp dword [ecx + 8], eax
jne 0x1000d4d0
mov eax, dword [esi + 0xc]
cmp dword [ecx + 0xc], eax
jne 0x1000d4d0
mov eax, dword [ebx + 8]
test eax, eax
jle 0x1000d51c
test byte [0x10018114], 4
jne 0x1000d760
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 [0x10027014]
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x5e]
sub esp, 0xc
test edi, edi
cmovne eax, dword [0x10027010]
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 0x1000d618
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x1000d604
test edi, edi
jne 0x1000d6d0
mov dword [0x10027008], 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 0x1000d795
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call edx
sub esp, 4
jmp 0x1000d5ec
mov dword [0x1002700c], 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 0x1000d604
lea eax, [ebx + 0xc]
mov dword [ebx], sym._MMDevice_QueryInterface_12
mov dword [ebx + 4], 0x1001c0e0
mov dword [esp + 8], 0x10000000
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionEx]
mov eax, dword [ebx + 0xc]
mov ecx, dword [0x10018108]
sub esp, 0xc
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], 0x10018104
mov dword [ecx], eax
lea ecx, [ebx + 0x2c]
mov dword [0x10018108], eax
jmp 0x1000d51c
mov dword [esp + 0xc], str.Modifying_an_MMDevice_with_postitive_reference_count__n
mov dword [esp + 8], str.MMDevice_Create
mov dword [esp + 4], 0x10018114
mov dword [esp], 2
mov dword [ebp - 0x98], ecx
call sym._wine_dbg_log.constprop.3
mov ecx, dword [ebp - 0x98]
jmp 0x1000d51c
mov eax, dword [ebx + 0x3c]
mov ecx, 0x1f
mov edx, edi
mov word [ebp - 0x80], cx
mov ecx, 0x1001beb0
mov dword [ebp - 0x78], eax
mov eax, esi
call sym._set_driver_prop_value
test eax, eax
jns 0x1000d8d8
lea eax, [ebp - 0x80]
mov ecx, 0x100222e0
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
lea eax, [ebp - 0x80]
mov ecx, 0x10021ee4
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
lea eax, [ebp - 0x80]
mov ecx, 0x10022114
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._MMDevice_SetPropValue
lea eax, [ebp - 0x5e]
mov ecx, 0x1001be9c
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, 0x10022844
mov edx, edi
mov eax, esi
call sym._set_driver_prop_value
test eax, eax
jns 0x1000d84e
xor eax, eax
cmp edi, 1
mov edx, 0x13
mov ecx, 0x10022844
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 0x1000d8b3
lea eax, [ebp - 0x70]
mov ecx, 0x10022894
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 0x1000d894
cmp word [ebp - 0x70], 0x13
je 0x1000d8a2
mov ecx, 0x10022894
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 0x1000d6b8
lea eax, [ebp - 0x70]
mov ecx, 0x1001beb0
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 0x1000d919
cmp word [ebp - 0x70], 0x1f
je 0x1000d92f
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sym._PropVariantClear_4
sub esp, 4
jmp 0x1000d7ba
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 0x1000d996
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 0x1000d919
mov dword [ebp - 0x78], str.Wireless_Controller
jmp 0x1000d919