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

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.1402cec90
sub rsp, rax
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1110], rbx
mov qword [rsp + 0x1120], rsi
mov qword [rsp + 0x1128], rdi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov rax, rdx
lea rcx, str.4d36e967_e325_11ce_bfc1_08002be10318
mov qword [rbp - 0x50], rcx
lea rcx, str.4d36e96a_e325_11ce_bfc1_08002be10318
mov qword [rbp - 0x48], rcx
lea rcx, str.4d36e97b_e325_11ce_bfc1_08002be10318
mov qword [rbp - 0x40], rcx
xor sil, sil
mov r8d, 8
lea rdx, [rbp - 0x68]
mov rcx, rax
call fcn.1400d9930
nop
cmp dword [rbp - 0x5c], 0
jle 0x1401161e3
lea r8, [rbp - 0x78]
lea rdx, str.SYSTEMCurrentControlSetControlCriticalDeviceDatabase
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401161e3
xor r15d, r15d
mov dword [rsp + 0x64], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r14d, r15d
cmp dword [rsp + 0x64], r15d
jbe 0x1401161d8
lea r12, [0x14034d1a0]
lea r13d, [r15 + 1]
nop dword [rax]
nop dword [rax + rax]
mov r9d, 0x400
lea r8, [rbp + 0x7d0]
mov edx, r14d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc r14d
test eax, eax
jne 0x1401161aa
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x7d0]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401161aa
mov dword [rsp + 0x60], 0x800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Service
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401161a0
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140116022
mov qword [rsp + 0x70], r15
test ebx, ebx
jne 0x14011603c
mov qword [rsp + 0x68], r12
jmp 0x140116062
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140203bb0
nop
mov eax, dword [rsp + 0x74]
cmp dword [rbp - 0x5c], eax
jne 0x14011618f
mov rax, qword [rbp - 0x68]
mov r8, qword [rsp + 0x68]
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1401160a4
add rax, 2
test ecx, ecx
jne 0x140116090
test edx, edx
jne 0x14011618f
mov dword [rsp + 0x60], 0x800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ClassGUID
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14011618f
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401160f0
mov qword [rbp - 0x80], r15
test ebx, ebx
jne 0x140116109
mov qword [rsp + 0x78], r12
jmp 0x14011612e
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x80]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140203bb0
nop
mov ebx, r15d
lea rdi, [rbp - 0x50]
nop dword [rax]
nop word [rax + rax]
xor r8d, r8d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x78]
call fcn.140202b80
movzx esi, sil
test al, al
cmovne esi, r13d
inc ebx
lea rdi, [rdi + 8]
movsxd rax, ebx
cmp rax, 3
jb 0x140116150
test sil, sil
jne 0x1401161b6
cmp dword [rbp - 0x80], 0
jle 0x14011618f
mov rcx, qword [rsp + 0x78]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x70], 0
jle 0x1401161a0
mov rcx, qword [rsp + 0x68]
call fcn.1402bd0e0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r14d, dword [rsp + 0x64]
jae 0x1401161d8
jmp 0x140115f90
cmp dword [rbp - 0x80], 0
jle 0x1401161c7
mov rcx, qword [rsp + 0x78]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x70], 0
jle 0x1401161d8
mov rcx, qword [rsp + 0x68]
call fcn.1402bd0e0
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rbp - 0x60], 0
jle 0x1401161f2
mov rcx, qword [rbp - 0x68]
call fcn.1402bd0e0
movzx eax, sil
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x10e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret