Function at 0x14000e880
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x520], rbx
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r15, rdx
xor dil, dil
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rcx]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000eb68
mov dil, 1
mov byte [rsp + 0x60], dil
xor esi, esi
mov word [rbp + 0x1b0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1b2]
call fcn.140029480
mov dword [rsp + 0x70], 0x104
mov dword [rsp + 0x64], esi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edx, dword [rsp + 0x64]
test edx, edx
je 0x14000eb5d
mov r13d, esi
lea r14, [rbp - 0x50]
shr r14, 0x10
lea rdi, [rbp - 0x50]
mov dword [rbp - 0x80], 0xff
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x50]
mov edx, r13d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
test r14, r14
jne 0x14000ea1d
movzx edi, di
mov ecx, edi
call fcn.140003200
test rax, rax
je 0x14000eaff
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000a630
mov rbx, qword [rsp + 0x68]
jmp 0x14000eaff
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14000ea8b
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14000eaff
cmp dword [rdx + 0x10], eax
jge 0x14000ea60
cmp dword [rbx - 0xc], eax
jl 0x14000eb35
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14000eaff
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000ea77
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
jmp 0x14000eaff
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp - 0x50]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x14000eb52
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000eac3
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.14000aa60
mov rbx, qword [rsp + 0x68]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x14000eae7
lea r8, [rbx + rsi*2]
call fcn.140025ae4
jmp 0x14000eaf0
lea r8, [rbp - 0x50]
call fcn.140026900
cmp edi, dword [rbx - 0xc]
jg 0x14000eb47
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r12 + rbx], si
mov rdx, rbx
mov rcx, r15
call fcn.14000f0f0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000eb26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r13d
cmp r13d, dword [rsp + 0x64]
jae 0x14000eb40
jmp 0x14000e998
mov ecx, 0x80070057
call fcn.1400030f0
nop
movzx edi, byte [rsp + 0x60]
jmp 0x14000eb5d
mov ecx, 0x80070057
call fcn.1400030f0
int3
mov ecx, 0x80070057
call fcn.1400030f0
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140025aa0
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret