Function at 0x14006cd50
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r15, rcx
xor r13d, r13d
mov qword [rbp - 0x38], r13
mov dword [rbp - 0x3c], r13d
mov qword [rbp - 0x68], r13
mov dword [rbp - 0x40], r13d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
mov dword [rbp - 0x60], 0x104
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14006d4fd
cmp qword [rcx + 0x18], r13
je 0x14006d4fd
cmp qword [rcx + 0x20], r13
je 0x14006d4fd
cmp qword [rcx + 0x28], r13
je 0x14006d4fd
lea rcx, [0x140455f88]
lea rdx, str.DISM_53BFAE52_B167_4E2F_A258_0A37B57FF845
cmp dword [0x140455d78], r13d
cmove rcx, rdx
lea r9, [rbp - 0x3c]
xor r8d, r8d
xor edx, edx
call rax
mov r12d, eax
test eax, eax
js 0x14006d4e3
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
lea r8d, [r13 + 0x10]
lea rdx, [0x140324aa8]
lea rcx, [rsp + 0x68]
call fcn.14004db90
lea rcx, [rsp + 0x68]
call fcn.14007d390
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x68]
lea edx, [r13 + 1]
mov ecx, dword [rbp - 0x3c]
call qword [r15 + Ordinal_27]
mov r12d, eax
test eax, eax
js 0x14006d4e3
cmp dword [rbp - 0x40], r13d
jbe 0x14006d4e3
cmp qword [rbp - 0x68], r13
je 0x14006d4f0
movzx eax, word [0x140455b60]
mov word [0x14043bde0], ax
lea edx, [r13 + 1]
lea r8d, [r13 + 3]
lea rcx, [0x14043bde0]
call fcn.140052070
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006cec4
lea r9, [rbp - 0x58]
lea r8, [0x14043bde0]
lea rdx, [0x14006caa0]
mov rcx, rax
call fcn.140052330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x140455b64], 0
jne 0x14006d4e3
mov rcx, qword [rbp - 0x50]
sub rcx, qword [rbp - 0x58]
sar rcx, 5
test rcx, rcx
je 0x14006d4e3
mov edx, dword [rbp - 0x40]
cmp rdx, rcx
je 0x14006d4e3
mov esi, r13d
test edx, edx
je 0x14006cfa4
nop dword [rax]
cmp dword [0x140455b64], 0
jne 0x14006d4e3
mov eax, esi
imul rdi, rax, 0x64
mov rax, qword [rbp - 0x68]
cmp qword [rdi + rax + 8], 0
je 0x14006cf8c
mov rbx, qword [rbp - 0x58]
cmp rbx, qword [rbp - 0x50]
je 0x14006cf8c
nop dword [rax]
cmp dword [0x140455b64], 0
jne 0x14006cf8c
cmp qword [rbx + 0x18], 8
jb 0x14006cf45
mov rdx, qword [rbx]
jmp 0x14006cf48
mov rdx, rbx
xor r8d, r8d
mov rcx, qword [rbp - 0x68]
mov rcx, qword [rdi + rcx + 8]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14006cf6a
add rbx, 0x20
cmp rbx, qword [rbp - 0x50]
jne 0x14006cf30
jmp 0x14006cf8c
lea rcx, [rbx + 0x20]
mov r8, rbx
mov rdx, qword [rbp - 0x50]
call fcn.14006d780
mov rdx, qword [rbp - 0x50]
lea rcx, [rdx - 0x20]
call fcn.140056290
sub qword [rbp - 0x50], 0x20
inc esi
cmp esi, dword [rbp - 0x40]
jb 0x14006cf00
cmp dword [0x140455b64], 0
jne 0x14006d4e3
mov rcx, qword [rbp - 0x50]
mov rax, rcx
mov rbx, qword [rbp - 0x58]
sub rax, rbx
sar rax, 5
test rax, rax
je 0x14006d4e3
cmp rbx, rcx
je 0x14006d002
cmp dword [0x140455b64], 0
jne 0x14006d002
movzx eax, word [0x140455b60]
mov word [rsp + 0x20], ax
xor edx, edx
mov rcx, rbx
call fcn.14006d560
mov rdx, qword [rbx + 0x10]
dec rdx
mov word [rsp + 0x20], r13w
mov rcx, rbx
call fcn.14006d560
add rbx, 0x20
cmp rbx, qword [rbp - 0x50]
jne 0x14006cfc4
call fcn.14006bb10
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8d, [r9 - 4]
lea rdx, str.DRIVERSDriverDatabaseDriverPackages
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006d197
mov esi, r13d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1402767a0
mov dword [rbp - 0x60], 0x104
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14006d18d
nop dword [rax]
nop dword [rax + rax]
inc esi
cmp dword [0x140455b64], 0
jne 0x14006d18d
mov dword [rbp - 0x60], 0x104
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
cmp word [rbp - 0x30], 0
jne 0x14006d0c6
mov r8, r13
jmp 0x14006d0db
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14006d0d0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.14004db90
lea rcx, [rsp + 0x40]
call fcn.14007d390
mov rbx, qword [rbp - 0x58]
cmp rbx, qword [rbp - 0x50]
je 0x14006d15a
cmp qword [rbx + 0x18], 8
jb 0x14006d109
mov rcx, qword [rbx]
jmp 0x14006d10c
mov rcx, rbx
call fcn.14004baa0
mov rdi, rax
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
test rdi, rdi
je 0x14006d132
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1402779b8
test eax, eax
je 0x14006d138
add rbx, 0x20
jmp 0x14006d0f7
lea rcx, [rbx + 0x20]
mov r8, rbx
mov rdx, qword [rbp - 0x50]
call fcn.14006d780
mov rdx, qword [rbp - 0x50]
lea rcx, [rdx - 0x20]
call fcn.140056290
sub qword [rbp - 0x50], 0x20
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x30]
mov edx, esi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14006d090
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14006bbe0
cmp dword [0x140455b64], 0
jne 0x14006d4e3
mov rax, qword [rbp - 0x50]
sub rax, qword [rbp - 0x58]
sar rax, 5
test rax, rax
je 0x14006d4e3
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8d, [r9 - 4]
lea rdx, str.SYSTEMDriverDatabaseDriverPackages
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006d347
mov esi, r13d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1402767a0
mov dword [rbp - 0x60], 0x104
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14006d33d
nop dword [rax + rax]
inc esi
cmp dword [0x140455b64], 0
jne 0x14006d33d
mov dword [rbp - 0x60], 0x104
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
cmp word [rbp - 0x30], 0
jne 0x14006d276
mov r8, r13
jmp 0x14006d28b
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14006d280
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.14004db90
lea rcx, [rsp + 0x40]
call fcn.14007d390
mov rbx, qword [rbp - 0x58]
cmp rbx, qword [rbp - 0x50]
je 0x14006d30a
cmp qword [rbx + 0x18], 8
jb 0x14006d2b9
mov rcx, qword [rbx]
jmp 0x14006d2bc
mov rcx, rbx
call fcn.14004baa0
mov rdi, rax
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
test rdi, rdi
je 0x14006d2e2
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1402779b8
test eax, eax
je 0x14006d2e8
add rbx, 0x20
jmp 0x14006d2a7
lea rcx, [rbx + 0x20]
mov r8, rbx
mov rdx, qword [rbp - 0x50]
call fcn.14006d780
mov rdx, qword [rbp - 0x50]
lea rcx, [rdx - 0x20]
call fcn.140056290
sub qword [rbp - 0x50], 0x20
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x30]
mov edx, esi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14006d240
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x140455b64], 0
jne 0x14006d4e3
mov rax, qword [rbp - 0x50]
sub rax, qword [rbp - 0x58]
sar rax, 5
test rax, rax
je 0x14006d4e3
call fcn.14007e670
mov r14, rax
mov dword [rax + 0x71], r13d
mov dword [rax + 4], gethostname
lea rcx, [rax + 0x48]
mov r8d, ntohs
lea rdx, [0x140324c60]
call fcn.14004db90
mov byte [r14 + 0x70], 1
mov rbx, qword [rbp - 0x58]
cmp rbx, qword [rbp - 0x50]
je 0x14006d4c5
nop word [rax + rax]
cmp dword [0x140455b64], 0
jne 0x14006d4c5
cmp qword [rbx + 0x18], 8
jb 0x14006d3c9
mov rdi, qword [rbx]
jmp 0x14006d3cc
mov rdi, rbx
mov edx, 1
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.140052070
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14006d405
lea r9, [rbp - 0x38]
mov r8, rdi
lea rdx, [0x14007d250]
mov rcx, rax
call fcn.140052330
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x38], 0
jbe 0x14006d4b7
mov ecx, 0x478
call fcn.140125a94
mov rdi, rax
xor edx, edx
mov r8d, 0x478
mov rcx, rax
call fcn.1402767a0
mov rcx, qword [rbp - 0x38]
mov qword [rdi + 0x28], rcx
mov dword [rdi + 0x38], reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.140052250
mov rdi, rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14004e170
mov qword [rsp + 0x60], rdi
lea rdx, [rsp + 0x40]
lea rcx, [r14 + 0x75]
call fcn.140056330
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea rcx, [r14 + 0x75]
call fcn.1400563b0
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14006d4b7
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14004e100
add rbx, 0x20
cmp rbx, qword [rbp - 0x50]
jne 0x14006d3b0
mov rax, qword [rbp - 0x38]
mov qword [r14 + 0x68], rax
cmp qword [rbp - 0x38], 0
jbe 0x14006d4e3
cmp qword [r14 + 0x7d], 0
jbe 0x14006d4e3
mov rcx, r14
call fcn.14007e170
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14006d4f0
call qword [r15 + 0x20]
mov ecx, dword [rbp - 0x3c]
test ecx, ecx
je 0x14006d503
call qword [r15 + Ordinal_41]
jmp 0x14006d503
mov r12d, 1
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x14006d52c
mov rdx, qword [rbp - 0x50]
mov rcx, rbx
call fcn.140056290
mov r8, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x58]
sub r8, rdx
sar r8, 5
call fcn.140056110
mov eax, r12d
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret