Function at 0x140056710
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rsi
sub rsp, 0x418
xor esi, esi
lea rcx, [0x1400c0798]
xor r8d, r8d
lea r9d, [rsi + 8]
xor edx, edx
mov dword [rax + 0x20], 1
mov qword [rsp + 0x40], rsi
mov dword [rax + 8], esi
mov dword [rax + 0x10], esi
mov dword [rax + 0x18], esi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x14005677b
lea rdx, [rsp + 0x210]
mov rcx, rax
mov dword [rsp + 0x210], 0x128
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
jne 0x140056787
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
add rsp, 0x418
pop rsi
pop rbx
ret
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x410], rdi
mov dword [rsp + 0x48], 0x20
mov edi, esi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1400569c4
nop
nop
nop
nop
lea rax, [rsp + 0x430]
lea r9, [rsp + 0x438]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x340]
mov r8d, 1
mov rcx, rbx
mov dword [rsp + 0x28], 0xc8
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x140056818
bt dword [0x1400dd138], 0x10
jae 0x140056818
lea rcx, str.PowerXpressSetDesktopPreference:_fail_to_get_SPDRP_HARDWAREID
call fcn.14000cbb0
lea rax, [rsp + 0x430]
lea r9, [rsp + 0x438]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x140]
mov r8d, 9
mov rcx, rbx
mov dword [rsp + 0x28], 0xc8
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x140056870
bt dword [0x1400dd138], 0x10
jae 0x140056870
lea rcx, str.PowerXpressSetDesktopPreference:_fail_to_get_SPDRP_DRIVER
call fcn.14000cbb0
lea r9, [rsp + 0x140]
lea r8, str.SYSTEMCurrentControlSetControlClass
lea rdx, str._s_s
lea rcx, [rsp + 0x70]
call fcn.14007dc1c
bt dword [0x1400dd138], 0x10
jae 0x1400568ab
lea rdx, [rsp + 0x70]
lea rcx, str.PowerXpressSetDesktopPreference:_registry:_s_n
call fcn.14000cbb0
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14005699e
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x430]
lea r9, [rsp + 0x438]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x448]
lea rdx, str.PXACAutoSwitch
xor r8d, r8d
mov dword [rsp + 0x438], 4
mov dword [rsp + 0x430], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x448], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x448], esi
jne 0x140056993
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x430]
lea r9, [rsp + 0x438]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x440]
lea rdx, str.PXPreference
xor r8d, r8d
mov dword [rsp + 0x438], 4
mov dword [rsp + 0x430], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x440], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400569c4
jmp 0x14005699e
mov dword [rsp + 0x440], 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 1
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1400567c0
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [rsp + 0x440]
mov rdi, qword [rsp + 0x410]
add rsp, 0x418
pop rsi
pop rbx
ret