Function at 0x14005f120
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xf0
mov dword [rsp + 0x70], 0
mov edx, 0x7fffffff
lea rcx, str.EP1394D3_
call fcn.14005c440
mov r8, rax
lea rdx, str.EP1394D3_
mov rcx, qword [rsp + 0x108]
call fcn.14001bf78
test eax, eax
jne 0x14005f1fc
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.14005e550
test eax, eax
je 0x14005f1da
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0x78]
call fcn.14005c440
mov r11, rax
mov eax, dword [rsp + 0x128]
cmp r11, rax
jae 0x14005f1da
mov edx, dword [rsp + 0x128]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x120]
call fcn.140001c10
mov dword [rsp + 0x70], 1
cmp qword [rsp + 0x78], 0
je 0x14005f1fc
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140006750
mov edx, 0x7fffffff
lea rcx, str.SYSTEMCurrentControlSetControlDeviceClasses
call fcn.14005c440
mov rbx, rax
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0x108]
call fcn.14005c440
lea rax, [rbx + rax + 4]
mov qword [rsp + 0x68], rax
mov eax, 2
mul qword [rsp + 0x68]
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140006748
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
lea r8, str.SYSTEMCurrentControlSetControlDeviceClasses
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140001c10
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x60]
call fcn.140001bc0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005f652
mov dword [rsp + 0x90], 0
jmp 0x14005f2d1
mov eax, dword [rsp + 0x90]
add eax, 1
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x70], 0
jne 0x14005f3ea
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x100]
call fcn.14005be00
test eax, eax
je 0x14005f3ea
mov dword [rsp + 0x84], 0
lea r9, [rsp + 0x84]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.14005ce70
test eax, eax
je 0x14005f3a0
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x84], eax
jne 0x14005f3a0
mov dword [rsp + 0xe0], 1
jmp 0x14005f3ab
mov dword [rsp + 0xe0], 0
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x14005f3e5
cmp qword [rsp + 0x88], 0
je 0x14005f3e5
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140006750
jmp 0x14005f2c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x70], 0
je 0x14005f652
mov dword [rsp + 0x70], 0
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0x60]
call fcn.14005c440
mov rbx, rax
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0x88]
call fcn.14005c440
add rbx, rax
mov edx, 0x7fffffff
lea rcx, [0x140071454]
call fcn.14005c440
lea rax, [rbx + rax + 0x107]
mov qword [rsp + 0x68], rax
mov eax, 2
mul qword [rsp + 0x68]
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140006748
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x98]
call fcn.140001c10
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
call fcn.140001bc0
lea rdx, [0x140071454]
mov rcx, qword [rsp + 0x98]
call fcn.140001bc0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005f602
mov rax, qword [rsp + 0x68]
shl rax, 1
mov dword [rsp + 0xa4], eax
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
xor r8d, r8d
lea rdx, [0x140077d40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005f549
mov dword [rsp + 0xe4], 1
jmp 0x14005f554
mov dword [rsp + 0xe4], 0
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x14005f5f7
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0xa4], eax
jae 0x14005f596
mov edx, dword [rsp + 0x128]
mov r8, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x120]
call fcn.140001c10
cmp qword [rsp + 0x118], 0
je 0x14005f5f7
mov rax, qword [rsp + 0x118]
movzx eax, word [rax]
test eax, eax
je 0x14005f5f7
mov ebx, dword [rsp + 0xa4]
mov edx, 0x7fffffff
mov rcx, qword [rsp + 0x118]
call fcn.14005c440
mov rcx, rbx
add rcx, rax
mov eax, dword [rsp + 0x128]
cmp rcx, rax
jae 0x14005f5f7
mov edx, dword [rsp + 0x128]
mov r8, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x120]
call fcn.140001d10
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x98], 0
je 0x14005f62a
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140006750
cmp qword [rsp + 0x88], 0
je 0x14005f652
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.140006750
cmp qword [rsp + 0x60], 0
je 0x14005f674
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.140006750
mov eax, dword [rsp + 0x70]
add rsp, 0xf0
pop rbx
ret