Function at 0x10007820
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2b4
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x14]
call fcn.10007760
xor ebx, ebx
call fcn.1000c5d9
cmp eax, ebx
jne 0x10007858
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 ebx
mov edi, eax
push ebx
add edi, 0x10
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x10007a11
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
mov dword [esp + 0x2c], 0x1c
mov dword [esp + 0x20], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10007a0a
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100078c0
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 0x100078e0
mov byte [esp + 0x1f1], cl
lea ecx, [esp + 0xc0]
push str.HDAUDIO
push ecx
call fcn.10014ba0
add esp, 8
test eax, eax
jne 0x10007932
lea edx, [esp + 0xc0]
push str.INTELAUDIO
push edx
call fcn.10014ba0
add esp, 8
test eax, eax
je 0x100079e5
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 0x10007988
push ebx
lea ecx, [esp + 0x44]
push str.HDAPnPID__d
push ecx
call fcn.10016684
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 ebp
lea eax, [esp + 0x10]
push eax
push 0x1002a934
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100079da
push ebx
lea ecx, [esp + 0x44]
push str.HDAPnPID__d
push ecx
call fcn.10016684
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 ebp
jmp 0x100079de
test esi, esi
je 0x100079e1
add ebx, 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 0x100078c0
mov edi, dword [esp + 0x20]
pop ebp
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 0x10007a2f
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 0x10007a4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2b4]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1001524a
add esp, 0x2b4
ret