Function at 0x1400bd880
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12, rdx
mov r15, rcx
lea rdi, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400bd8de
test byte [rcx + 0x1c], 1
je 0x1400bd8de
cmp byte [rcx + 0x19], 5
jb 0x1400bd8de
mov edx, 0x3f
lea r8, [0x140127468]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
xor r13d, r13d
mov dword [rbp + 0x50], r13d
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
mov esi, eax
mov r10, qword [0x14014dd40]
cmp r10, rdi
je 0x1400bd964
test byte [r10 + 0x1c], 2
je 0x1400bd964
cmp byte [r10 + 0x19], 4
jb 0x1400bd964
lea edx, [r13 + 0x40]
mov r9d, eax
lea r8, [0x140127468]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov r10, qword [0x14014dd40]
inc dword [rbp + 0x40]
test esi, esi
jne 0x1400bdb40
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
lea rbx, [rax + 0x18]
mov qword [rbp - 0x20], rbx
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400bd9c3
test byte [rcx + 0x1c], 2
je 0x1400bd9c3
cmp byte [rcx + 0x19], 4
jb 0x1400bd9c3
lea edx, [rsi + 0x41]
mov r9d, dword [rbp + 0x50]
lea r8, [0x140127468]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov r14d, r13d
cmp dword [rbp + 0x50], r13d
jbe 0x1400bdb0c
test esi, esi
jne 0x1400bdb0c
movsxd rdi, dword [rbp + 0x40]
mov dword [rbp + 0x58], edi
lea ecx, [rsi + 1]
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400bd9fd
mov edx, edi
lea rcx, [rbp - 0x20]
call fcn.140005158
mov rbx, qword [rbp - 0x20]
test edi, edi
js 0x1400bdb01
cmp edi, dword [rbx - 0xc]
jg 0x1400bdb01
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r13w
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x58]
mov r8, rbx
mov edx, r14d
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
cmp rcx, rdi
je 0x1400bda7a
test byte [rcx + 0x1c], 2
je 0x1400bda7a
cmp byte [rcx + 0x19], 4
jb 0x1400bda7a
mov edx, 0x42
mov r9d, eax
lea r8, [0x140127468]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov eax, r13d
test esi, esi
cmove eax, dword [rbp + 0x58]
cmp eax, 0xffffffff
jne 0x1400bda96
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1400bda8c
test eax, eax
js 0x1400bdaf6
cmp eax, dword [rbx - 0xc]
jg 0x1400bdaf6
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
test esi, esi
jne 0x1400bdae7
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.140019b78
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400bdae7
test byte [rcx + 0x1c], 2
je 0x1400bdae7
cmp byte [rcx + 0x19], 4
jb 0x1400bdae7
lea edx, [rsi + 0x43]
mov r9, rbx
lea r8, [0x140127468]
mov rcx, qword [rcx + 0x10]
call fcn.140003638
inc r14d
cmp r14d, dword [rbp + 0x50]
jb 0x1400bd9d0
jmp 0x1400bdb0c
mov ecx, 0x80070057
call fcn.140005300
int3
mov ecx, 0x80070057
call fcn.140005300
nop
lea r14, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x1400bdb39
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, r14
mov rcx, rdi
call rbx
mov r10, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp r10, rax
je 0x1400bdb80
test byte [r10 + 0x1c], 1
je 0x1400bdb80
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1400bdb80
mov edx, 0x44
mov r9d, esi
lea r8, [0x140127468]
mov rcx, qword [r10 + 0x10]
call fcn.1400036d4
mov eax, esi
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret