Function at 0x1400548f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x340
xor r15d, r15d
mov r13, r9
mov esi, ecx
mov r14, rdx
lea rcx, [0x1400c0798]
lea r9d, [r15 + 2]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x40], r15
mov edi, r15d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x140054958
bt dword [0x1400dd138], 0x10
jae 0x140054951
lea rcx, str.PowerXpressGetSetLDASupport:_fail_to_get_dev_handle
call fcn.14000cbb0
xor eax, eax
jmp 0x140054b49
lea rdx, [rsp + 0x210]
mov rcx, rax
mov dword [rsp + 0x210], 0x128
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
jne 0x14005499e
bt dword [0x1400dd138], 0x10
jae 0x14005498e
lea rcx, str.PowerXpressGetSetLDASupport:_fail_to_get_device_info_list_details
call fcn.14000cbb0
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x140054b49
lea r8, [rsp + 0x48]
mov qword [rsp + 0x370], rbp
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x378], r12
mov dword [rsp + 0x48], 0x20
mov r12d, r15d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140054b2e
mov rbp, qword [rsp + 0x390]
nop
nop
xor r9d, r9d
lea rax, [rsp + 0x140]
mov qword [rsp + 0x30], r15
lea rdx, [rsp + 0x48]
lea r8d, [r9 + 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 0x140054a29
bt dword [0x1400dd138], 0x10
jae 0x140054a29
lea rcx, str.PowerXpressGetSetLDASupport:_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 0x140054a64
lea rdx, [rsp + 0x70]
lea rcx, str.PowerXpressGetSetLDASupport:_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 0x140054b06
cmp esi, 1
jne 0x140054ad5
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x380]
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140054b61
bt dword [0x1400dd138], 0x10
jae 0x140054b06
lea rcx, str.PowerXpressGetSetLDASupport:_fail_to_query_registry
call fcn.14000cbb0
jmp 0x140054b06
test esi, esi
jne 0x140054b06
mov eax, dword [r13]
mov r9d, dword [rsp + 0x380]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140054b73
lea edi, [rsi + 1]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add r12d, 1
lea r8, [rsp + 0x48]
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1400549e0
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, edi
mov rbp, qword [rsp + 0x370]
mov r12, qword [rsp + 0x378]
mov rbx, qword [rsp + 0x388]
add rsp, 0x340
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
jmp 0x140054b2e
bt dword [0x1400dd138], 0x10
jae 0x140054b89
lea rcx, str.PowerXpressGetSetLDASupport:_fail_to_set_registry
call fcn.14000cbb0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140054b39