Function at 0x140020cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
add r9, r8
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x20], r9
mov word [rbp + 0x28], 0
mov dword [rbp + 0x30], 1
lea rcx, [rbp - 0x18]
lea rbx, [rbp + 0x18]
mov rdx, rbx
call fcn.1400568d0
mov dword [rbp + 0x3c], 0
mov dword [rbp + 0x5c], 0
mov r12, qword [rbp - 0x10]
lea r15, [rbp + 0x5c]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3c]
mov rcx, rdi
mov rdx, r12
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x140020d9a
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140020d85
add rdx, rdx
mov r8d, 2
mov rcx, r12
call fcn.140020bc0
nop
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rbp + 0x3c]
dec eax
cmp eax, 0xa
ja case.0x140020db6.5
lea rcx, [0x1401bc618]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov r14d, dword [rbp + 0x5c]
mov ebx, r14d
shr ebx, 1
cmp r14, 2
jae 0x140020e61
xor r14d, r14d
mov r13d, 2
jmp 0x140020e88
mov ebx, dword [rbp + 0x5c]
test rbx, rbx
je 0x140021096
movzx eax, byte [0x1402a6341]
mov edx, 1
mov rcx, rbx
call fcn.140020be0
test rax, rax
je 0x1400211ab
mov r14, rax
jmp 0x14002109c
cmp dword [rbp + 0x5c], 8
jne case.0x140020db6.5
mov qword [rbp + 0x18], 0
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, r12
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x140020d5a
mov rax, qword [rbp + 0x18]
mov dword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x140020d6b
and r14d, 0xfffffffe
movzx eax, byte [0x1402a6341]
mov edx, 2
mov rcx, r14
call fcn.140020be0
test rax, rax
je 0x140021198
mov r13, rax
mov r14, rbx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
mov rcx, rdi
mov rdx, r12
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x140021063
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x40], r13
mov rcx, r13
mov rdx, rbx
call fcn.1400d2120
mov rdi, rax
mov rbx, rdx
mov qword [rbp], 0
mov qword [rbp + 8], 1
mov qword [rbp + 0x10], 0
test rdx, rdx
je 0x140020f19
mov rax, rbx
shr rax, 1
mov r8, rbx
sub r8, rax
mov qword [rsp + 0x20], 1
mov rcx, rbp
mov r9d, 1
xor edx, edx
call fcn.1401ac370
lea rax, [rdi + rbx*2]
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], rax
mov word [rbp + 0x28], 0
lea rcx, [rbp + 0x18]
mov rdx, rbp
call fcn.1400465c0
mov rax, qword [rbp + 0x10]
movups xmm0, xmmword [rbp]
movups xmmword [rbp + 0x1c], xmm0
mov qword [rbp + 0x2c], rax
mov dword [rsi], 2
movups xmm0, xmmword [rbp + 0x18]
mov rax, qword [rbp + 0x24]
mov rcx, qword [rbp + 0x2c]
movups xmmword [rsi + 4], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbp + 0x50]
test rdx, rdx
mov r12, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
je 0x140020d6b
add edx, edx
mov r8d, 2
call fcn.140020bc0
jmp 0x140020d6b
cmp dword [rbp + 0x5c], 4
jne case.0x140020db6.5
mov dword [rbp + 0x18], 0
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rdx, r12
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jne 0x140020d5a
mov eax, dword [rbp + 0x18]
mov dword [rsi], 0
mov dword [rsi + 4], eax
jmp 0x140020d6b
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], 0x8007000d
jmp 0x140020d65
mov r14d, dword [rbp + 0x5c]
mov ebx, r14d
shr ebx, 1
cmp r14, 2
jae 0x14002100a
xor r14d, r14d
mov r13d, 2
jmp 0x140021031
and r14d, 0xfffffffe
movzx eax, byte [0x1402a6341]
mov edx, 2
mov rcx, r14
call fcn.140020be0
test rax, rax
je 0x1400211be
mov r13, rax
mov r14, rbx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
mov rcx, rdi
mov rdx, r12
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x1400210fd
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
test r14, r14
je 0x140020d6b
add r14d, r14d
mov r8d, 2
mov rcx, r13
mov rdx, r14
call fcn.140020bc0
jmp 0x140020d6b
mov r14d, 1
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov rcx, rdi
mov rdx, r12
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
je 0x140021181
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], ecx
mov dword [rsi], 6
test ebx, ebx
je 0x140020d6b
mov r8d, 1
mov rcx, r14
mov rdx, rbx
call fcn.140020bc0
jmp 0x140020d6b
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x40], r13
mov rcx, r13
mov rdx, rbx
call fcn.1400d2120
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov byte [rbp - 0x20], 0
mov rcx, rbp
lea rdx, [rbp - 0x30]
call fcn.140056410
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x2c], rax
movups xmm0, xmmword [rbp]
movups xmmword [rbp + 0x1c], xmm0
mov dword [rsi], 4
movups xmm0, xmmword [rbp + 0x18]
mov rax, qword [rbp + 0x24]
mov rcx, qword [rbp + 0x2c]
movups xmmword [rsi + 4], xmm0
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbp + 0x50]
test rdx, rdx
mov r12, qword [rbp + 0x48]
je 0x140020d6b
add edx, edx
mov r8d, 2
mov rcx, qword [rbp + 0x40]
call fcn.140020bc0
jmp 0x140020d6b
mov dword [rsi], 3
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rbx
jmp 0x140020d6b
mov qword [rbp + 0x48], r12
mov ecx, 2
mov rdx, r14
call fcn.1401b7525
jmp 0x1400211cf
mov qword [rbp + 0x48], r12
mov ecx, 1
mov rdx, rbx
call fcn.1401b7525
jmp 0x1400211cf
mov qword [rbp + 0x48], r12
mov ecx, 2
mov rdx, r14
call fcn.1401b7525
ud2