Function at 0x14000bdc0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call fcn.14002ec20
lea rax, [rsp + 0x68]
mov dword [rsp + 0x70], 0x104
xor r15d, r15d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov dword [rbp + 0x3f0], r15d
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000be32
xor eax, eax
add rsp, 0x4c0
pop r15
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x4e0], rbx
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x1a0]
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x4b8], rdi
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x4b0], r14
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3f0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000c0f8
mov eax, dword [rbp + 0x3f0]
test eax, eax
je 0x14000c0f8
mov r14d, r15d
nop word [rax + rax]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x74]
mov qword [rsp + 0x30], r15
lea r8, [rbp - 0x60]
mov qword [rsp + 0x28], r15
mov edx, r14d
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x74], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000c0e8
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], r15w
jne 0x14000bf16
lea rdx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14000bf30
add rcx, rax
lea rcx, [rcx*2 + 2]
call fcn.14002fc3c
mov rdi, rax
test rax, rax
je 0x14000bfa2
mov r8, rax
mov rdx, rsi
sub r8, rsi
nop dword [rax + rax]
movzx ecx, word [rdx]
mov word [r8 + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x14000bf60
add rax, 0xfffffffffffffffe
cmp word [rax + 2], r15w
lea rax, [rax + 2]
jne 0x14000bf75
lea r8, [rbp - 0x60]
xor edx, edx
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x14000bf90
lea rax, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, rdi
mov ebx, eax
call fcn.14002fc28
test ebx, ebx
jne 0x14000c0e8
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0x3e8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x3f8]
mov dword [rbp + 0x3f8], 1
lea rdx, [0x140067900]
mov dword [rbp + 0x3e8], 0x400
call fcn.14001c420
test eax, eax
jne 0x14000c0dd
mov eax, dword [rbp + 0x3e8]
test eax, eax
je 0x14000c0dd
shr eax, 1
lea ecx, [rax + 1]
add rcx, rcx
call fcn.14002fc3c
mov rbx, rax
test rax, rax
je 0x14000c0dd
mov ecx, dword [rbp + 0x3e8]
lea r8, [rbp + 0x3f8]
shr rcx, 1
lea rdx, [0x140067900]
mov r9, rbx
mov word [rax + rcx*2], r15w
lea rax, [rbp + 0x3e8]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.14001c420
mov rcx, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rcx*2 + 2], r15w
lea rcx, [rcx + 1]
jne 0x14000c080
lea rcx, [rcx*2 + 2]
call fcn.14002fc3c
mov rdi, rax
test rax, rax
je 0x14000c0d5
mov r8, rax
mov rdx, rbx
sub r8, rbx
nop word [rax + rax]
movzx ecx, word [rdx]
mov word [r8 + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x14000c0b0
mov rcx, rdi
call fcn.14001e6f0
test al, al
je 0x14000c129
mov rcx, rdi
call fcn.14002fc28
mov rcx, rbx
call fcn.14002fc28
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
cmp r14d, dword [rbp + 0x3f0]
jb 0x14000bed0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x4e0]
mov r14, qword [rsp + 0x4b0]
add rsp, 0x4c0
pop r15
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.14002fc28
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
jmp 0x14000c105