Function at 0x1000aa80
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, ecx
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, edx
mov dword [ebp - 0x94], eax
mov eax, dword [0x10015104]
cmp eax, 0x10015104
je 0x1000acf0
lea ebx, [eax - 0x40]
jmp 0x1000aae1
mov eax, dword [ebx + 0x40]
lea ebx, [eax - 0x40]
cmp eax, 0x10015104
je 0x1000acf0
cmp dword [ebx + 0x24], esi
jne 0x1000aad0
mov eax, dword [edi]
lea edx, [ebx + 0x2c]
cmp dword [ebx + 0x2c], eax
jne 0x1000aad0
mov eax, dword [edi + 4]
cmp dword [edx + 4], eax
jne 0x1000aad0
mov eax, dword [edi + 8]
cmp dword [edx + 8], eax
jne 0x1000aad0
mov eax, dword [edi + 0xc]
cmp dword [edx + 0xc], eax
jne 0x1000aad0
mov eax, dword [ebx + 8]
test eax, eax
jle 0x1000ab1c
test byte [0x10015114], 4
jne 0x1000ad68
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x98], edx
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]
movd xmm0, esi
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x8c]
movd xmm1, dword [eax]
punpckldq xmm0, xmm1
movq qword [ebx + 0x24], xmm0
mov eax, dword [edi]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0x5e]
mov dword [esp + 8], 0x27
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x98]
mov dword [esp], edx
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov eax, dword [0x10021014]
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x5e]
sub esp, 0xc
test esi, esi
cmovne eax, dword [0x10021010]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
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], ecx
mov dword [ebp - 0x90], eax
call eax
sub esp, 0x24
test eax, eax
je 0x1000ac20
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x1000ac0d
test esi, esi
jne 0x1000acd8
mov dword [0x10021008], 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 + 0x14], 4
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.DeviceState
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
lea eax, [ebp - 0x84]
sub esp, 0x18
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
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
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
mov eax, dword [ebp - 0x90]
call eax
mov edx, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x24
test eax, eax
je 0x1000ad9d
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call edx
sub esp, 4
jmp 0x1000abf5
mov dword [0x1002100c], 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 0x1000ac0d
mov eax, 0x10018e20
mov ecx, 0x10018e60
movd xmm2, eax
movd xmm0, ecx
lea eax, [ebx + 0xc]
punpckldq xmm0, xmm2
movq qword [ebx], xmm0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [ebx + 0xc]
mov edx, dword [0x10015108]
sub esp, 4
mov dword [eax + 0x18], str._Users_gcenx_Documents_GitHub_old_codeweavers_wine_dlls_mmdevapi_devenum.c:_MMDevice.crst
lea eax, [ebx + 0x40]
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x40], 0x10015104
mov dword [edx], eax
lea edx, [ebx + 0x2c]
mov dword [0x10015108], eax
jmp 0x1000ab1c
mov dword [ebp - 0x98], edx
mov dword [esp + 0xc], str.Modifying_an_MMDevice_with_postitive_reference_count__n
mov dword [esp + 8], str.MMDevice_Create
mov dword [esp + 4], 0x10015114
mov dword [esp], 2
call fcn.10007550
mov edx, dword [ebp - 0x98]
jmp 0x1000ab1c
mov eax, dword [ebx + 0x3c]
mov ecx, 0x1f
mov edx, esi
mov word [ebp - 0x80], cx
mov ecx, 0x10018c84
mov dword [ebp - 0x78], eax
mov eax, edi
call fcn.1000a7c0
test eax, eax
jns 0x1000aee6
lea eax, [ebp - 0x80]
mov ecx, 0x1001f040
mov edx, esi
mov dword [esp], eax
mov eax, edi
call fcn.1000a3a0
lea eax, [ebp - 0x80]
mov ecx, 0x1001ec44
mov edx, esi
mov dword [esp], eax
mov eax, edi
call fcn.1000a3a0
lea eax, [ebp - 0x80]
mov ecx, 0x1001ee74
mov edx, esi
mov dword [esp], eax
mov eax, edi
call fcn.1000a3a0
lea eax, [ebp - 0x5e]
mov ecx, 0x10018c70
mov edx, esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
mov dword [esp], eax
mov eax, edi
call fcn.1000a3a0
mov ecx, 0x1001f5a4
mov edx, esi
mov eax, edi
call fcn.1000a7c0
test eax, eax
js 0x1000ae54
cmp esi, 1
jne 0x1000ae81
mov edx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
mov dword [ebp - 0x8c], edx
call edx
mov edx, dword [ebp - 0x8c]
sub esp, 4
jmp 0x1000acc0
mov edx, 0x13
mov word [ebp - 0x80], dx
cmp esi, 1
je 0x1000af3d
lea eax, [ebp - 0x80]
mov dword [ebp - 0x78], 1
mov ecx, 0x1001f5a4
mov edx, esi
mov dword [esp], eax
mov eax, edi
call fcn.1000a3a0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0
mov edx, esi
mov ecx, 0x1001f5f4
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [esp], eax
mov eax, edi
call fcn.10009cf0
test eax, eax
js 0x1000aec2
cmp word [ebp - 0x70], 0x13
je 0x1000aed0
mov ecx, 0x1001f5f4
mov edx, esi
mov eax, edi
call fcn.1000a7c0
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.ole32.dll_PropVariantClear
sub esp, 4
jmp 0x1000ae2f
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0
mov edx, esi
mov ecx, 0x10018c84
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [esp], eax
mov eax, edi
call fcn.10009cf0
test eax, eax
js 0x1000af27
cmp word [ebp - 0x70], 0x1f
je 0x1000af60
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.ole32.dll_PropVariantClear
sub esp, 4
jmp 0x1000adc2
lea eax, [ebp - 0x80]
mov ecx, 0x1001f5a4
mov edx, 1
mov dword [ebp - 0x78], 4
mov dword [esp], eax
mov eax, edi
call fcn.1000a3a0
jmp 0x1000ae2f
mov dword [esp + 4], 0x5c
mov eax, dword [ebp - 0x68]
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 + 4], edx
mov dword [ebp - 0x98], edx
mov dword [esp], str.VID_054CPID_0CE6
mov dword [ebp - 0x90], ecx
call ecx
test eax, eax
je 0x1000afcb
mov dword [esp + 8], 0x11
mov edx, dword [ebp - 0x98]
mov dword [esp], str.VID_054CPID_0DF2
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x90]
call ecx
test eax, eax
jne 0x1000af27
mov dword [ebp - 0x78], str.Wireless_Controller
jmp 0x1000af27