Function at 0x14005ce70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x90
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0xb0], 0
je 0x14005ceaa
cmp qword [rsp + 0xb8], 0
jne 0x14005ceb1
xor eax, eax
jmp 0x14005d1fe
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0xb0]
call fcn.14005c440
add rax, 1
mov qword [rsp + 0x48], rax
mov eax, 2
mul qword [rsp + 0x48]
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140006748
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.140001c10
mov rcx, qword [rsp + 0x38]
call fcn.14005bd40
mov edx, 0x7fffffff
lea rcx, str.SYSTEMCurrentControlSetControlDeviceClasses
call fcn.14005c440
mov rbx, rax
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0xa8]
call fcn.14005c440
add rbx, rax
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0x38]
call fcn.14005c440
add rbx, rax
mov edx, 0x7fffffff
lea rcx, [0x140071454]
call fcn.14005c440
add rbx, rax
mov edx, 0x7fffffff
lea rcx, str.Control
call fcn.14005c440
add rbx, rax
mov edx, 0x7fffffff
lea rcx, str.Device_Parameters
call fcn.14005c440
lea rax, [rbx + rax + 0xa]
mov qword [rsp + 0x48], rax
mov eax, 2
mul qword [rsp + 0x48]
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140006748
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea r8, str.SYSTEMCurrentControlSetControlDeviceClasses
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140001c10
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x40]
call fcn.140001bc0
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140001bc0
lea rdx, [0x140071454]
mov rcx, qword [rsp + 0x40]
call fcn.140001bc0
lea rdx, str.Control
mov rcx, qword [rsp + 0x40]
call fcn.140001bc0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005d0bc
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, str.Linked
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005d09b
cmp dword [rsp + 0x58], 0
je 0x14005d09b
mov dword [rsp + 0x88], 1
jmp 0x14005d0a6
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], 0
je 0x14005d1bc
mov dword [rsp + 0x50], 0
lea r8, str.SYSTEMCurrentControlSetControlDeviceClasses
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140001c10
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x40]
call fcn.140001bc0
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140001bc0
lea rdx, [0x140071454]
mov rcx, qword [rsp + 0x40]
call fcn.140001bc0
lea rdx, str.Device_Parameters
mov rcx, qword [rsp + 0x40]
call fcn.140001bc0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005d1bc
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.Port_Number
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005d19b
mov dword [rsp + 0x8c], 1
jmp 0x14005d1a6
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x14005d1d8
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140006750
cmp qword [rsp + 0x38], 0
je 0x14005d1fa
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140006750
mov eax, dword [rsp + 0x50]
add rsp, 0x90
pop rbx
ret