Function at 0x140014060
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1400d2258]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rdi, [0x1400cf018]
mov rcx, qword [0x1400cf018]
cmp rcx, rdi
je 0x1400140d4
test byte [rcx + 0x1c], 1
je 0x1400140d4
mov edx, 0x109
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
mov rcx, qword [0x1400cf018]
mov esi, 1
xor r15d, r15d
mov eax, r15d
mov qword [rsp + 0x48], rax
mov r14d, r15d
or r12, 0xffffffffffffffff
cmp rcx, rdi
je 0x140014119
test byte [rcx + 0x1c], 2
je 0x140014119
cmp byte [rcx + 0x19], 5
jb 0x140014119
mov edx, 0x10a
mov r9d, r14d
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140014132
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov qword [rsp + 0x48], r15
mov rbx, r15
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x1400b02f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400145bf
mov eax, r15d
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbx
test eax, eax
jne 0x1400145bf
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x50]
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0x103
je 0x1400145b5
test eax, eax
jne 0x140014583
lea rdx, [0x1400b02f0]
lea rcx, [rsp + 0x40]
call fcn.140004b44
nop
lea rcx, [rbp - 0x50]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400141f5
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.140004550
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400144cf
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, [0x1400b02c8]
lea rcx, [rbp - 0x70]
call fcn.14008b7d4
test eax, eax
je 0x140014350
mov rcx, qword [0x1400cf018]
cmp rcx, rdi
je 0x1400142c8
test byte [rcx + 0x1c], 2
je 0x1400142c8
cmp byte [rcx + 0x19], 5
jb 0x1400142c8
mov edx, 0x10e
mov r9d, eax
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400142f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014308
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140014331
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400144bb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400144bb
mov qword [rbp - 0x78], r15
lea rdx, [0x1400ae2f8]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [rax + rax]
mov edi, r15d
test eax, eax
sete dil
test eax, eax
je 0x1400143f6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
mov eax, 1
mov r8d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
nop dword [rax + rax]
test eax, eax
je 0x1400143f6
mov edi, 1
mov rcx, qword [0x1400cf018]
lea rdx, [0x1400cf018]
cmp rcx, rdx
je 0x14001443a
test byte [rcx + 0x1c], 2
je 0x1400143fd
cmp byte [rcx + 0x19], 5
jb 0x1400143fd
mov edx, 0x10f
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.14000542c
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x140014432
test byte [rcx + 0x1c], 2
je 0x140014432
cmp byte [rcx + 0x19], 4
jb 0x140014432
mov edx, 0x110
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x50]
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.14000542c
test edi, edi
je 0x140014507
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14001445e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014475
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14001449e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400144b4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
lea rdi, [0x1400cf018]
inc r14d
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x1400cf018]
jmp 0x1400140eb
mov rcx, qword [0x1400cf018]
cmp rcx, rdi
je 0x140014502
test byte [rcx + 0x1c], 2
je 0x140014502
cmp byte [rcx + 0x19], 2
jb 0x140014502
mov edx, 0x10d
mov r9, qword [rsp + 0x40]
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.14000351c
nop
jmp 0x140014308
mov esi, 1
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140014530
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014547
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140014570
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140014618
jmp 0x14001460c
mov rcx, qword [0x1400cf018]
cmp rcx, rdi
je 0x140014604
test byte [rcx + 0x1c], 2
je 0x140014604
cmp byte [rcx + 0x19], 2
jb 0x140014604
mov edx, 0x10c
mov r9d, eax
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
jmp 0x1400145fd
mov esi, r15d
test rbx, rbx
jne 0x140014609
jmp 0x140014618
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [0x1400cf018]
cmp rcx, rdi
je 0x140014604
test byte [rcx + 0x1c], 2
je 0x140014604
cmp byte [rcx + 0x19], 2
jb 0x140014604
mov edx, 0x10b
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rcx, qword [0x1400cf018]
test rbx, rbx
je 0x14001461f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400cf018]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140014644
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov qword [rsp + 0x48], r15
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x140014674
test byte [rcx + 0x1c], 1
je 0x140014674
cmp byte [rcx + 0x19], 5
jb 0x140014674
mov edx, 0x111
mov r9d, esi
lea r8, [0x1400b0350]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov eax, esi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400a3310
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret