Function at 0x140113f40
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.1402a90d0
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 [0x1403eaa10]
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.1400d5080
nop
cmp dword [rbp - 0x5c], 0
jle 0x1401142b3
lea r8, [rbp - 0x78]
lea rdx, str.SYSTEMCurrentControlSetControlCriticalDeviceDatabase
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401142b3
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 0x1401142a8
lea r12, [0x140323de0]
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 0x14011427a
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 0x14011427a
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 0x140114270
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401140f2
mov qword [rsp + 0x70], r15
test ebx, ebx
jne 0x14011410c
mov qword [rsp + 0x68], r12
jmp 0x140114132
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401ea290
nop
mov eax, dword [rsp + 0x74]
cmp dword [rbp - 0x5c], eax
jne 0x14011425f
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 0x140114174
add rax, 2
test ecx, ecx
jne 0x140114160
test edx, edx
jne 0x14011425f
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 0x14011425f
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401141c0
mov qword [rbp - 0x80], r15
test ebx, ebx
jne 0x1401141d9
mov qword [rsp + 0x78], r12
jmp 0x1401141fe
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rbp - 0x80]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.1401ea290
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.1401e9310
movzx esi, sil
test al, al
cmovne esi, r13d
inc ebx
lea rdi, [rdi + 8]
movsxd rax, ebx
cmp rax, 3
jb 0x140114220
test sil, sil
jne 0x140114286
cmp dword [rbp - 0x80], 0
jle 0x14011425f
mov rcx, qword [rsp + 0x78]
call fcn.140298600
nop
cmp dword [rsp + 0x70], 0
jle 0x140114270
mov rcx, qword [rsp + 0x68]
call fcn.140298600
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r14d, dword [rsp + 0x64]
jae 0x1401142a8
jmp 0x140114060
cmp dword [rbp - 0x80], 0
jle 0x140114297
mov rcx, qword [rsp + 0x78]
call fcn.140298600
nop
cmp dword [rsp + 0x70], 0
jle 0x1401142a8
mov rcx, qword [rsp + 0x68]
call fcn.140298600
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rbp - 0x60], 0
jle 0x1401142c2
mov rcx, qword [rbp - 0x68]
call fcn.140298600
movzx eax, sil
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.140297ff0
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