Function at 0x140206edc
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp], rax
mov rax, qword [rdx + 8]
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx], rax
je 0x140206f1b
mov eax, 0x80070057
jmp 0x140207210
xor r15d, r15d
lea rdx, [rsp + 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x70], r15
call fcn.140207434
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140206fdd
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402070d7
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_open_the_registry_key
mov qword [rbp - 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], 0x40
mov qword [rbp - 0x18], 4
jb 0x140206f80
mov rbx, qword [rbx]
lea rcx, [0x1403cb630]
mov rax, r15
test rbx, rbx
je 0x140206fa0
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140206f96
lea eax, [rax*2 + 2]
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], eax
mov dword [rbp - 4], r15d
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481d40]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
jmp 0x1402070d7
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
xor edx, edx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], r15d
mov dword [rsp + 0x68], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1402070ee
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402070d7
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_get_registry_info_for_key
mov qword [rbp - 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], VarR8FromUI1
mov qword [rbp - 0x18], 4
jb 0x14020707f
mov rbx, qword [rbx]
lea rcx, [0x1403cb630]
mov rax, r15
test rbx, rbx
je 0x14020709f
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140207095
lea eax, [rax*2 + 2]
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], eax
mov dword [rbp - 4], r15d
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481d40]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
mov eax, dword [rsp + 0x60]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1402071f8
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi]
mov edx, dword [rsp + 0x64]
sar rax, 5
cmp rdx, rax
jbe 0x14020710a
mov rcx, rdi
call fcn.1401f3624
mov r14d, dword [rsp + 0x68]
lea rcx, [rsp + 0x78]
xorps xmm0, xmm0
mov qword [rbp - 0x78], r15
inc r14d
movsxd rdx, r14d
movdqu xmmword [rsp + 0x78], xmm0
call fcn.14019db74
mov esi, r15d
cmp dword [rsp + 0x64], r15d
jbe 0x1402071eb
mov r8, qword [rsp + 0x78]
lea r9, [rsp + 0x6c]
mov rcx, qword [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x6c], r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1402071d8
mov r8d, dword [rsp + 0x6c]
lea rcx, [rbp - 0x70]
mov rdx, qword [rsp + 0x78]
call fcn.140078708
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x1402071c2
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], r15
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
add qword [rdi + 8], 0x20
jmp 0x1402071cd
mov r8, rax
mov rcx, rdi
call fcn.1400b0a24
lea rcx, [rbp - 0x70]
call fcn.140055f70
jmp 0x1402071df
cmp eax, 0x103
jne 0x140207233
inc esi
cmp esi, dword [rsp + 0x64]
jb 0x14020713a
mov ebx, r15d
lea rcx, [rsp + 0x78]
call fcn.140097a24
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14020720e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0x158]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402072cc
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_get_registry_sub_key_for_key
mov qword [rbp - 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], 0x4e
mov qword [rbp - 0x18], 4
jb 0x140207274
mov rbx, qword [rbx]
lea rcx, [0x1403cb630]
mov rax, r15
test rbx, rbx
je 0x140207294
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x14020728a
lea eax, [rax*2 + 2]
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], eax
mov dword [rbp - 4], r15d
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140481d40]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
mov eax, dword [rsp + 0x60]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1402071ee