Function at 0x1401d7b2c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp], rax
mov rax, qword [rdx + 8]
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx], rax
je 0x1401d7b6b
mov eax, 0x80070057
jmp 0x1401d7e16
xor r15d, r15d
lea rdx, [rsp + 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x70], r15
mov r8, 0xffffffff80000002
call fcn.1401d802c
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1401d7c34
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d7d28
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 0x1401d7bd7
mov rbx, qword [rbx]
lea rcx, [0x140344690]
mov rax, r15
test rbx, rbx
je 0x1401d7bf7
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401d7bed
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, [0x1403ddd55]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
jmp 0x1401d7d28
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]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1401d7d3f
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d7d28
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 0x1401d7cd0
mov rbx, qword [rbx]
lea rcx, [0x140344690]
mov rax, r15
test rbx, rbx
je 0x1401d7cf0
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401d7ce6
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, [0x1403ddd55]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rsp + 0x60]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401d7e04
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi]
mov edx, dword [rsp + 0x64]
sar rax, 5
cmp rdx, rax
jbe 0x1401d7d5b
mov rcx, rdi
call fcn.1401d847c
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.1401800fc
mov esi, r15d
cmp dword [rsp + 0x64], r15d
jbe 0x1401d7df7
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]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1401d7de8
mov r8d, dword [rsp + 0x6c]
lea rcx, [rbp - 0x70]
mov rdx, qword [rsp + 0x78]
call fcn.14006d048
mov rdx, rax
mov rcx, rdi
call fcn.1400a05e8
lea rcx, [rbp - 0x70]
call fcn.14004e0f0
jmp 0x1401d7def
cmp eax, 0x103
jne 0x1401d7e39
inc esi
cmp esi, dword [rsp + 0x64]
jb 0x1401d7d87
mov ebx, r15d
lea rcx, [rsp + 0x78]
call fcn.14008903c
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401d7e14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401d7ed2
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 0x1401d7e7a
mov rbx, qword [rbx]
lea rcx, [0x140344690]
mov rax, r15
test rbx, rbx
je 0x1401d7e9a
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401d7e90
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, [0x1403ddd55]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rsp + 0x60]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401d7dfa