Function at 0x100078a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2b4
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebp
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x14]
call fcn.100077e0
xor ebp, ebp
call fcn.1000c699
cmp eax, ebp
jne 0x100078d8
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push 6
push ebp
mov edi, eax
push ebp
add edi, 0x10
push ebp
mov dword [esp + 0x2c], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x10007ad5
lea ecx, [esp + 0x20]
push ecx
push ebp
push esi
mov dword [esp + 0x2c], 0x1c
mov dword [esp + 0x20], ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10007ace
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10007940
push 0
push 0x100
lea edx, [esp + 0xc8]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0xc0]
mov byte [esp + eax + 0x1c0], cl
add eax, 1
test cl, cl
jne 0x10007960
lea ecx, [esp + 0xc0]
push str.HDAUDIO
push ecx
call fcn.10014c60
add esp, 8
test eax, eax
jne 0x100079f6
lea edx, [esp + 0xc0]
push str.INTELAUDIO
push edx
call fcn.10014c60
add esp, 8
test eax, eax
jne 0x100079f6
lea eax, [esp + 0xc0]
push str.SNDWCLASS_01MAN_025D
push eax
call fcn.10014c60
add esp, 8
test eax, eax
jne 0x100079f6
lea ecx, [esp + 0xc0]
push str.8990710F_600D_4EDC_9BCB_B0B6C9492AB7RENDER
push ecx
call fcn.10014c60
add esp, 8
test eax, eax
jne 0x100079f6
lea edx, [esp + 0xc0]
push str.4DCB0606_6415_4A36_BDC5_9B1792117DC9CAPTURE
push edx
call fcn.10014c60
add esp, 8
test eax, eax
je 0x10007aa9
lea eax, [esp + 0x10]
push eax
push str.SOFTWARERealtekInstallShield
push 0x80000002
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10007a4c
push ebp
lea ecx, [esp + 0x44]
push str.HDAPnPID__d
push ecx
call fcn.10016744
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0x100
lea edx, [esp + 0x1c4]
push edx
push 1
push esi
lea eax, [esp + 0x50]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
mov esi, 1
call ebx
lea eax, [esp + 0x10]
push eax
push 0x1002a950
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10007a9e
push ebp
lea ecx, [esp + 0x44]
push str.HDAPnPID__d
push ecx
call fcn.10016744
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0x100
lea edx, [esp + 0x1c4]
push edx
push 1
push 0
lea eax, [esp + 0x50]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebx
jmp 0x10007aa2
test esi, esi
je 0x10007aa5
add ebp, 1
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
add eax, 1
push ecx
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10007940
mov edi, dword [esp + 0x20]
pop ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
jg 0x10007af3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007b13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2b4]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.1001530a
add esp, 0x2b4
ret