Function at 0x14000d140
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r13, r8
mov rsi, rdx
mov r12, rcx
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rax + 0x28], ebp
cmp dword [rcx + 0x10], ebp
jne 0x14000d1ea
mov rdi, qword [r9]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], ebp
jl 0x14000d19e
cmp rax, qword [rdi - 0x18]
jne 0x14000d19e
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14000d1db
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14000d1ba
call fcn.140003050
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
lea rcx, [rbx + 0x18]
mov r9, rdx
call fcn.1400525a0
lea rax, [rbx + 0x18]
mov qword [rsi], rax
mov rax, rsi
jmp 0x14000d53c
mov rdi, qword [r9]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], ebp
jl 0x14000d210
cmp rax, qword [rdi - 0x18]
jne 0x14000d210
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14000d24e
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14000d22c
call fcn.140003050
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.1400525a0
lea rdi, [rbx + 0x18]
mov qword [rsp + 0x60], rdi
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x14000d3a3
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rbx, 0xffffffffffffffff
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14000d318
lea rcx, [rax + 2]
call fcn.140027cf0
mov rbp, rax
test rax, rax
je 0x14000d318
mov r8d, dword [rsp + 0x80]
add r8, 2
xor edx, edx
mov rcx, rax
call fcn.140056260
lea r11, [rsp + 0x80]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d310
xor eax, eax
mov rcx, rbx
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.1400036f0
mov rdi, qword [rsp + 0x60]
mov rcx, rbp
call fcn.140027ce8
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14000d33c
cmp rax, qword [rdi - 0x18]
jne 0x14000d33c
lea rbp, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14000d37a
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x14000d358
call fcn.140003050
int3
mov eax, dword [rdi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.1400525a0
lea rax, [rbp + 0x18]
mov qword [rsi], rax
lock xadd dword [rdi - 8], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14000d39b
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
jmp 0x14000d53c
lea rcx, [rax + 2]
call fcn.140027cf0
mov rbp, rax
test rax, rax
jne 0x14000d446
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], ebp
jl 0x14000d3db
cmp rax, qword [rdi - 0x18]
jne 0x14000d3db
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14000d419
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14000d3f7
call fcn.140003050
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.1400525a0
lea rax, [rbx + 0x18]
mov qword [rsi], rax
or rbx, 0xffffffffffffffff
lock xadd dword [rdi - 8], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14000d43e
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
jmp 0x14000d53c
mov r8d, dword [rsp + 0x80]
add r8, 2
xor edx, edx
mov rcx, rax
call fcn.140056260
lea r11, [rsp + 0x80]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12 + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rbx, 0xffffffffffffffff
test eax, eax
jne 0x14000d4ae
xor eax, eax
mov rcx, rbx
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.1400036f0
mov rdi, qword [rsp + 0x60]
mov rcx, rbp
call fcn.140027ce8
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14000d4da
cmp rax, qword [rdi - 0x18]
jne 0x14000d4da
lea rbp, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14000d518
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x14000d4f6
call fcn.140003050
int3
mov eax, dword [rdi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.1400525a0
lea rax, [rbp + 0x18]
mov qword [rsi], rax
lock xadd dword [rdi - 8], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14000d539
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret