Function at 0x14001ee60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r9
mov r15, rdx
mov r14, rcx
xor dil, dil
xor r13d, r13d
mov dword [rbp - 0x21], r13d
mov rax, qword [0x1400575f0]
test rax, rax
jne 0x14001eeca
call fcn.140021790
mov qword [0x1400575f0], rax
test rax, rax
je 0x14001f0ba
mov r8, qword [rbp + 0x5f]
lea r9, [rbp - 0x21]
mov edx, 1
mov ecx, 0x400
call rax
mov rbx, rax
test rax, rax
je 0x14001f0ba
mov esi, r13d
nop dword [rax]
mov dword [rbp - 0x39], 0x400
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x39]
mov r8, rbx
mov edx, esi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
test eax, eax
jne 0x14001f075
mov qword [rbp - 0x31], r13
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001f07c
mov dword [rbp - 0x29], r13d
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r13
mov word [rbp - 9], r13w
cmp word [rbx], ax
jne 0x14001ef70
mov r8, r13
jmp 0x14001ef7f
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x14001ef74
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.14000d3f0
nop
mov word [rbx], r13w
mov dword [rbp - 0x39], 0x400
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
xor r8d, r8d
lea rdx, str.Driver
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001f012
cmp dword [rbp - 0x29], 1
jne 0x14001f012
cmp dword [rbp - 0x39], eax
jbe 0x14001f012
lea rdx, [r14 + 0x48]
cmp qword [rdx + 0x18], 8
jb 0x14001efda
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1400251d0
test eax, eax
jne 0x14001f012
mov rax, qword [rbp - 0x31]
mov qword [r12], rax
mov qword [rbp - 0x31], r13
mov dil, 1
lea rcx, [r14 + 0x68]
lea rax, [rbp - 9]
cmp rcx, rax
je 0x14001f022
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 9]
call fcn.14000c8e0
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14001f022
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0xf], 8
jb 0x14001f05b
mov rax, qword [rbp - 9]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x14001f05b
mov rax, qword [0x1400575e8]
test rax, rax
jne 0x14001f053
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x14001f062
xor edx, edx
lea rcx, [rbp - 0x19]
call rax
mov rax, qword [0x1400575e8]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r13
mov word [rbp - 9], r13w
jmp 0x14001f083
cmp eax, 0x103
je 0x14001f08e
mov rax, qword [0x1400575e8]
test dil, dil
je 0x14001eef0
jmp 0x14001f095
mov rax, qword [0x1400575e8]
mov qword [rbp - 0x21], rbx
test rax, rax
jne 0x14001f0af
call fcn.140021810
mov qword [0x1400575e8], rax
test rax, rax
je 0x14001f0ba
mov edx, 1
lea rcx, [rbp - 0x21]
call rax
movzx eax, dil
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140023790
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret