Function at 0x10001af20
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rdi, r9
mov r14, r8
mov r13, rdx
mov rsi, qword [rdx + 0x30]
cmp rsi, qword [rdx + 0x38]
je 0x10001b2e8
lea r12, [rcx + 0x10]
mov bpl, byte [rax + 0x10]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x10001af85
mov rax, qword [rax]
mov rcx, rbx
call qword [rax]
nop
mov rdi, qword [rsi]
mov qword [rsp + 0x70], rdi
and qword [rsp + 0x88], 0
mov dword [rsp + 0x90], 0x20019
and dword [rsp + 0x94], 0
mov byte [rbx + 0x30], 0
mov r9d, 0x20019
lea r8, [0x1000075c0]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x88]
call fcn.10002cea8
test eax, eax
js 0x10001b118
and dword [rsp + 0xe8], 0
mov dword [rsp + 0x64], 4
and dword [rsp + 0x60], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe8]
xor r8d, r8d
lea rdx, [0x100007628]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x10001b086
mov rcx, qword [0x10003fbf8]
test byte [rcx + 0x4c], 1
je 0x10001b113
mov edx, 0xf
mov dword [rsp + 0x30], edi
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
lea rax, [0x100007628]
mov qword [rsp + 0x20], rax
lea rax, [0x1000026c8]
mov r9, rax
lea r8, [0x100001e08]
mov rcx, qword [rcx + 0x40]
call fcn.10002c994
mov rdi, qword [rsp + 0x70]
jmp 0x10001b118
mov eax, dword [rsp + 0xe8]
cmp eax, 4
je 0x10001b0fe
mov r10, qword [0x10003fbf8]
test byte [r10 + 0x4c], 1
je 0x10001b10c
mov dword [rsp + 0x68], eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea r8, [0x1000026c8]
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
lea edx, [rax + 0x10]
and qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r8
movzx r9d, dx
lea r8, [0x100001e08]
mov edx, 0x2b
mov rcx, qword [r10 + 0x40]
call sub.ADVAPI32.dll_TraceMessage
mov rdi, qword [rsp + 0x70]
jmp 0x10001b118
mov eax, dword [rsp + 0x60]
mov dword [rbx + 0x30], eax
mov rdi, qword [rsp + 0x70]
jmp 0x10001b118
mov rdi, qword [rsp + 0x70]
jmp 0x10001b118
mov rdi, qword [rsp + 0x70]
cmp dword [0x100040de4], 0
je 0x10001b162
cmp byte [0x100040da1], 0
je 0x10001b13a
mov al, byte [0x100040de8]
cmp al, 4
jae 0x10001b148
test al, al
jne 0x10001b162
jmp 0x10001b148
mov al, byte [0x100040de8]
cmp al, 4
jae 0x10001b148
test al, al
jne 0x10001b162
lea r8, [0x1000022c8]
lea rdx, [0x100002368]
mov rcx, qword [0x100040db8]
call fcn.10000ed90
test r14, r14
je 0x10001b16f
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x10001b17e
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rbx + 0x20], r14
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x18]
nop
cmp qword [rsp + 0x88], 0
je 0x10001b24d
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x10001b244
mov r10, qword [0x10003fbf8]
test byte [r10 + 0x4c], 1
je 0x10001b244
mov dword [rsp + 0xe8], ecx
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x68], eax
xor eax, eax
or rcx, 0xffffffffffffffff
lea r8, [0x1000026c8]
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
lea edx, [rax + 0x1d]
and qword [rsp + 0x50], rax
lea edi, [rax + 4]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r8
movzx r9d, dx
lea r8, [0x100001e08]
lea edx, [rdi + 0x27]
mov rcx, qword [r10 + 0x40]
call sub.ADVAPI32.dll_TraceMessage
and qword [rsp + 0x88], 0
mov rdx, qword [r12 + 8]
test rdx, rdx
jne 0x10001b25b
xor ecx, ecx
jmp 0x10001b267
mov rcx, qword [r12 + 0x10]
sub rcx, rdx
sar rcx, 3
test rdx, rdx
je 0x10001b2a8
mov rax, qword [r12 + 0x18]
sub rax, rdx
sar rax, 3
cmp rcx, rax
jae 0x10001b2a8
mov rcx, qword [r12 + 0x10]
lea rdi, [rcx + 8]
xor eax, eax
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], bpl
mov r9, r12
lea r8, [rsp + 0x78]
lea edx, [rax + 1]
call fcn.10001b80c
mov qword [r12 + 0x10], rdi
jmp 0x10001b2c1
lea r9, [rsp + 0x78]
mov r8d, 1
mov rdx, qword [r12 + 0x10]
mov rcx, r12
call fcn.10001b3d4
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
add rsi, 8
cmp rsi, qword [r13 + 0x38]
mov rcx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xf8]
jne 0x10001af67
add rsp, 0xa0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret