Function at 0x14000f880
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 [0x140054100]
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 0x14000fb68
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.14002a480
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 0x14000fb5d
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 0x14000fa1d
movzx edi, di
mov ecx, edi
call fcn.140004200
test rax, rax
je 0x14000faff
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000b630
mov rbx, qword [rsp + 0x68]
jmp 0x14000faff
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 0x14000fa8b
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14000faff
cmp dword [rdx + 0x10], eax
jge 0x14000fa60
cmp dword [rbx - 0xc], eax
jl 0x14000fb35
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14000faff
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000fa77
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 0x14000faff
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp - 0x50]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x14000fb52
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000fac3
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.14000ba60
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 0x14000fae7
lea r8, [rbx + rsi*2]
call fcn.140026ae4
jmp 0x14000faf0
lea r8, [rbp - 0x50]
call fcn.140027900
cmp edi, dword [rbx - 0xc]
jg 0x14000fb47
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r12 + rbx], si
mov rdx, rbx
mov rcx, r15
call fcn.1400100f0
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000fb26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r13d
cmp r13d, dword [rsp + 0x64]
jae 0x14000fb40
jmp 0x14000f998
mov ecx, 0x80070057
call fcn.1400040f0
nop
movzx edi, byte [rsp + 0x60]
jmp 0x14000fb5d
mov ecx, 0x80070057
call fcn.1400040f0
int3
mov ecx, 0x80070057
call fcn.1400040f0
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.140026aa0
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret