Function at 0x10023860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f648
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100f38c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [0x100e8014]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], 0x1c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], edi
push 6
push eax
push eax
push eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x2d], al
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100238fe
lea edx, [edi - 0xc]
cmp edx, dword [0x100e8010]
je 0x100238f7
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100238f7
push esi
call fcn.10055c11
add esp, 4
xor al, al
jmp 0x10023aec
push 0x208
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
mov dword [ebp - 0x40], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10023ab9
lea ebx, [ebx]
mov ecx, dword [ebp - 0x18]
push 0
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x10023a12
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, ebx
mov dword [ebp - 0x3c], 0x208
call fcn.10021fc0
test al, al
jne 0x100239b7
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, ebx
call fcn.10021fc0
test al, al
jne 0x100239b7
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 7
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, ebx
call fcn.10021fc0
test al, al
jne 0x100239b7
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 8
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, ebx
call fcn.10021fc0
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x100239c2
xor eax, eax
jmp 0x100239c9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp - 0x34]
call fcn.100014f0
mov edi, dword [ebp - 0x34]
cmp dword [edi - 8], 0
jl 0x10023a12
push str.HDAUDIOFUNC_01VEN_14F1
push edi
call fcn.100560cb
add esp, 8
test eax, eax
je 0x100239f4
sub eax, edi
sar eax, 1
je 0x10023a32
cmp dword [edi - 8], 0
jl 0x10023a12
push str.INTELAUDIOFUNC_01VEN_14F1
push edi
call fcn.100560cb
add esp, 8
test eax, eax
je 0x10023a12
sub eax, edi
sar eax, 1
je 0x10023a32
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
inc eax
push ecx
push eax
push esi
mov dword [ebp - 0x40], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10023930
jmp 0x10023ab9
push 0x20019
push 2
push 0
push 1
lea edx, [ebp - 0x2c]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10023ab9
lea eax, [ebp - 0x34]
push eax
push str.PowerSettings
push ebx
mov dword [ebp - 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10023ab2
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x10023a8a
mov ecx, dword [ebp - 0x34]
push 4
push eax
push 3
push 0
push 0x10079318
push ecx
call esi
mov eax, dword [ebp - 0x48]
cmp dword [eax], 0xffffffff
je 0x10023aa4
mov edx, dword [ebp - 0x34]
push 4
push eax
push 3
push 0
push str.PerformanceIdleTime
push edx
call esi
mov eax, dword [ebp - 0x34]
push eax
mov byte [ebp - 0x2d], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x10023ac7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0xc]
cmp ecx, dword [0x100e8010]
je 0x10023ae9
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10023ae9
push esi
call fcn.10055c11
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10055898
mov esp, ebp
pop ebp
ret 8