Function at 0x14000d620
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push r15
lea rbp, [rsp - 0x3b8]
sub rsp, 0x4b8
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x208
call fcn.1400376d0
xor r15d, r15d
mov dword [rsp + 0x70], 0x104
mov rdx, rbx
mov dword [rbp + 0x3f0], r15d
lea rcx, [rbp + 0x3e8]
mov qword [rbp + 0x3e8], r15
call fcn.14000c130
mov rsi, qword [rbp + 0x3e8]
lea rax, [rsp + 0x68]
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000d6b9
mov rcx, rsi
call fcn.140038520
xor eax, eax
add rsp, 0x4b8
pop r15
pop rsi
pop rbx
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], rdi
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x1a0]
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x4b0], r14
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x80]
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 0x14000d978
mov eax, dword [rbp + 0x3f0]
test eax, eax
je 0x14000d978
mov r14d, r15d
nop dword [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 0x14000d968
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], r15w
jne 0x14000d796
lea rdx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14000d7b0
add rcx, rax
lea rcx, [rcx*2 + 2]
call fcn.140038534
mov rdi, rax
test rax, rax
je 0x14000d822
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 0x14000d7e0
add rax, 0xfffffffffffffffe
cmp word [rax + 2], r15w
lea rax, [rax + 2]
jne 0x14000d7f5
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 0x14000d810
lea rax, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, rdi
mov ebx, eax
call fcn.140038520
test ebx, ebx
jne 0x14000d968
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, [0x140072a58]
mov dword [rbp + 0x3e8], 0x400
call fcn.14001df20
test eax, eax
jne 0x14000d95d
mov eax, dword [rbp + 0x3e8]
test eax, eax
je 0x14000d95d
mov ecx, eax
and rcx, 0xfffffffffffffffe
add rcx, 2
call fcn.140038534
mov rbx, rax
test rax, rax
je 0x14000d95d
mov ecx, dword [rbp + 0x3e8]
lea r8, [rbp + 0x3f8]
shr rcx, 1
lea rdx, [0x140072a58]
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.14001df20
mov rcx, 0xffffffffffffffff
nop
cmp word [rbx + rcx*2 + 2], r15w
lea rcx, [rcx + 1]
jne 0x14000d900
lea rcx, [rcx*2 + 2]
call fcn.140038534
mov rdi, rax
test rax, rax
je 0x14000d955
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 0x14000d930
mov rcx, rdi
call fcn.140020300
test al, al
je 0x14000d9aa
mov rcx, rdi
call fcn.140038520
mov rcx, rbx
call fcn.140038520
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
cmp r14d, dword [rbp + 0x3f0]
jb 0x14000d750
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140038520
xor eax, eax
mov rdi, qword [rsp + 0x4e0]
mov r14, qword [rsp + 0x4b0]
add rsp, 0x4b8
pop r15
pop rsi
pop rbx
pop rbp
ret
mov rcx, rbx
call fcn.140038520
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 0x14000d98d