Function at 0x10023590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f618
mov eax, dword fs:[0]
push eax
sub esp, 0x50
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 edx, dword [ebp + 0x10]
mov edi, dword [0x100e8014]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
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 0x10023634
lea eax, [edi - 0xc]
cmp eax, dword [0x100e8010]
je 0x1002362d
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1002362d
push esi
call fcn.10055c11
add esp, 4
xor al, al
jmp 0x10023834
push 0x208
push 0x40
mov dword [ebp - 0x40], 4
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x2c]
push ecx
push 0
push esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10023801
mov edx, dword [ebp - 0x18]
push 0
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x10023749
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov ecx, ebx
mov dword [ebp - 0x3c], 0x208
call fcn.10021fc0
test al, al
jne 0x100236ee
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov ecx, ebx
call fcn.10021fc0
test al, al
jne 0x100236ee
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 7
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov ecx, ebx
call fcn.10021fc0
test al, al
jne 0x100236ee
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 8
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov ecx, ebx
call fcn.10021fc0
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x100236f9
xor eax, eax
jmp 0x10023700
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 0x10023749
push str.HDAUDIOFUNC_01VEN_14F1
push edi
call fcn.100560cb
add esp, 8
test eax, eax
je 0x1002372b
sub eax, edi
sar eax, 1
je 0x10023769
cmp dword [edi - 8], 0
jl 0x10023749
push str.INTELAUDIOFUNC_01VEN_14F1
push edi
call fcn.100560cb
add esp, 8
test eax, eax
je 0x10023749
sub eax, edi
sar eax, 1
je 0x10023769
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x2c]
inc eax
push edx
push eax
push esi
mov dword [ebp - 0x44], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10023667
jmp 0x10023801
push 0x20019
push 2
push 0
push 1
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10023801
lea ecx, [ebp - 0x34]
push ecx
push str.PowerSettings
push ebx
mov dword [ebp - 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100237fa
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x40]
push edx
push eax
push 0
push 0
push 0x10079318
push ecx
call esi
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x40]
push edx
push eax
push 0
push 0
push str.PerformanceIdleTime
push ecx
call esi
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x40]
push edx
push eax
push 0
push 0
push str.IdlePowerState
push ecx
call esi
mov edx, dword [ebp - 0x34]
push edx
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 0x1002380f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [edi - 0xc]
cmp eax, dword [0x100e8010]
je 0x10023831
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10023831
push edi
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 0xc