Function at 0x1400d2210
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, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x1400d226e
test byte [rcx + 0x1c], 1
je 0x1400d226e
cmp byte [rcx + 0x19], 5
jb 0x1400d226e
mov edx, 0x3f
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcb0
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 [0x140148ea8]
cmp r10, rdi
je 0x1400d22f4
test byte [r10 + 0x1c], 2
je 0x1400d22f4
cmp byte [r10 + 0x19], 4
jb 0x1400d22f4
lea edx, [r13 + 0x40]
mov r9d, eax
lea r8, [0x1400091a8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fd64
mov r10, qword [0x140148ea8]
inc dword [rbp + 0x40]
test esi, esi
jne 0x1400d24cd
mov rax, qword [section..data]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140015690]
lea rcx, section..data
call rbx
lea rbx, [rax + 0x18]
mov qword [rbp - 0x20], rbx
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x1400d2353
test byte [rcx + 0x1c], 2
je 0x1400d2353
cmp byte [rcx + 0x19], 4
jb 0x1400d2353
lea edx, [rsi + 0x41]
mov r9d, dword [rbp + 0x50]
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov r14d, r13d
cmp dword [rbp + 0x50], r13d
jbe 0x1400d249f
test esi, esi
jne 0x1400d249f
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 0x1400d238d
mov edx, edi
lea rcx, [rbp - 0x20]
call fcn.140011854
mov rbx, qword [rbp - 0x20]
test edi, edi
js 0x1400d2491
cmp edi, dword [rbx - 0xc]
jg 0x1400d2491
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 [0x140148ea8]
lea rdi, [0x140148ea8]
cmp rcx, rdi
je 0x1400d240a
test byte [rcx + 0x1c], 2
je 0x1400d240a
cmp byte [rcx + 0x19], 4
jb 0x1400d240a
mov edx, 0x42
mov r9d, eax
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov eax, r13d
test esi, esi
cmove eax, dword [rbp + 0x58]
cmp eax, 0xffffffff
jne 0x1400d2426
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1400d241c
test eax, eax
js 0x1400d2486
cmp eax, dword [rbx - 0xc]
jg 0x1400d2486
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
test esi, esi
jne 0x1400d2477
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.140026e40
mov rcx, qword [0x140148ea8]
cmp rcx, rdi
je 0x1400d2477
test byte [rcx + 0x1c], 2
je 0x1400d2477
cmp byte [rcx + 0x19], 4
jb 0x1400d2477
lea edx, [rsi + 0x43]
mov r9, rbx
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcd0
inc r14d
cmp r14d, dword [rbp + 0x50]
jb 0x1400d2360
jmp 0x1400d249f
mov ecx, 0x80070057
call fcn.1400119f0
int3
mov ecx, 0x80070057
call fcn.1400119f0
nop
jmp 0x1400d249e
nop
lea r14, [rbx - 0x18]
lock add dword [r14 + 0x10], 0xffffffff
jg 0x1400d24c6
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
mov rdx, r14
mov rcx, rdi
call rbx
mov r10, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp r10, rax
je 0x1400d250d
test byte [r10 + 0x1c], 1
je 0x1400d250d
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jl 0x1400d250d
mov edx, 0x44
mov r9d, esi
lea r8, [0x1400091a8]
mov rcx, qword [r10 + 0x10]
call fcn.14000fd64
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