Function at 0x1401b7a3c
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 - 0x37]
sub rsp, 0x100
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rax, qword [rdx + 8]
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx], rax
je 0x1401b7a7b
mov eax, 0x80070057
jmp 0x1401b7d10
xor r15d, r15d
mov rdx, rbx
cmp qword [rcx + 0x18], 8
mov qword [rbp - 0x59], r15
jb 0x1401b7a8f
mov rdx, qword [rcx]
lea rax, [rbp - 0x59]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov dword [rbp - 0x69], eax
test eax, eax
je 0x1401b7b56
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b7c43
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_open_the_registry_key
mov qword [rbp - 9], rax
lea rax, [rbp - 0x69]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x40
mov qword [rbp + 0xf], 4
jb 0x1401b7af9
mov rbx, qword [rbx]
lea rcx, [0x1402cb810]
mov rax, r15
test rbx, rbx
je 0x1401b7b19
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401b7b0f
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034c9a0]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
jmp 0x1401b7c43
mov rcx, qword [rbp - 0x59]
lea rax, [rbp - 0x61]
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, [rbp - 0x65]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x65], r15d
mov dword [rbp - 0x61], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
mov dword [rbp - 0x69], eax
test eax, eax
je 0x1401b7c59
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b7c43
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_get_registry_info_for_key
mov qword [rbp - 9], rax
lea rax, [rbp - 0x69]
mov qword [rbp + 7], rax
mov qword [rbp - 1], VarR8FromUI1
mov qword [rbp + 0xf], 4
jb 0x1401b7beb
mov rbx, qword [rbx]
lea rcx, [0x1402cb810]
mov rax, r15
test rbx, rbx
je 0x1401b7c0b
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401b7c01
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034c9a0]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
mov eax, dword [rbp - 0x69]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b7cff
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi]
mov edx, dword [rbp - 0x65]
sar rax, 5
cmp rdx, rax
jbe 0x1401b7c74
mov rcx, rdi
call fcn.140089f54
mov r14d, dword [rbp - 0x61]
lea rcx, [rbp - 0x41]
xorps xmm0, xmm0
mov qword [rbp - 0x31], r15
inc r14d
movsxd rdx, r14d
movdqu xmmword [rbp - 0x41], xmm0
call fcn.1401669b0
mov esi, r15d
cmp dword [rbp - 0x65], r15d
jbe 0x1401b7cf3
mov r8, qword [rbp - 0x41]
lea r9, [rbp - 0x51]
mov rcx, qword [rbp - 0x59]
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 [rbp - 0x51], r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov dword [rbp - 0x69], eax
test eax, eax
jne 0x1401b7ce5
mov rax, qword [rbp - 0x41]
lea rdx, [rbp - 0x49]
mov rcx, rdi
mov qword [rbp - 0x49], rax
call fcn.1401b7de4
jmp 0x1401b7cec
cmp eax, 0x103
jne 0x1401b7d33
inc esi
cmp esi, dword [rbp - 0x65]
jb 0x1401b7c9c
mov ebx, r15d
lea rcx, [rbp - 0x41]
call fcn.140067f0c
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x1401b7d0e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14027a710
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401b7dcb
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_get_registry_sub_key_for_key
mov qword [rbp - 9], rax
lea rax, [rbp - 0x69]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x4e
mov qword [rbp + 0xf], 4
jb 0x1401b7d73
mov rbx, qword [rbx]
lea rcx, [0x1402cb810]
mov rax, r15
test rbx, rbx
je 0x1401b7d93
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r15w
jne 0x1401b7d89
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034c9a0]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
mov eax, dword [rbp - 0x69]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b7cf6