Function at 0x140013d2c
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 [0x1400f6388]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rdi, [0x1400f3190]
mov rcx, qword [0x1400f3190]
cmp rcx, rdi
je 0x140013da0
test byte [rcx + 0x1c], 1
je 0x140013da0
mov edx, 0x10c
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.1400035e4
mov rcx, qword [0x1400f3190]
mov esi, 1
xor r15d, r15d
mov eax, r15d
mov qword [rsp + 0x48], rax
mov r14d, r15d
or r12, 0xffffffffffffffff
cmp rcx, rdi
je 0x140013de5
test byte [rcx + 0x1c], 2
je 0x140013de5
cmp byte [rcx + 0x19], 5
jb 0x140013de5
mov edx, 0x10d
mov r9d, r14d
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140013df8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
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, [0x1400cea80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014249
mov eax, r15d
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbx
test eax, eax
jne 0x140014249
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]
cmp eax, 0x103
je 0x14001423f
test eax, eax
jne 0x14001420d
lea rdx, [0x1400cea80]
lea rcx, [rsp + 0x40]
call fcn.140004be4
nop
lea rcx, [rbp - 0x50]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140013eaf
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.140004638
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]
test eax, eax
jne 0x14001415f
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [0x1400f6030]
lea rcx, [0x1400f6030]
mov rax, qword [rax + 0x18]
call qword [str.__f_]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, [0x1400cea58]
lea rcx, [rbp - 0x70]
call fcn.1400a9468
test eax, eax
je 0x140013ff8
mov rcx, qword [0x1400f3190]
cmp rcx, rdi
je 0x140013f7c
test byte [rcx + 0x1c], 2
je 0x140013f7c
cmp byte [rcx + 0x19], 5
jb 0x140013f7c
mov edx, 0x111
mov r9d, eax
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
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 0x140013fa5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013fb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x140013fdf
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001414b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001414b
mov qword [rbp - 0x78], r15
lea rdx, [0x1400cc828]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, r15d
test eax, eax
sete dil
test eax, eax
je 0x140014092
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]
test eax, eax
je 0x140014092
mov edi, 1
mov rcx, qword [0x1400f3190]
lea rdx, [0x1400f3190]
cmp rcx, rdx
je 0x1400140d6
test byte [rcx + 0x1c], 2
je 0x140014099
cmp byte [rcx + 0x19], 5
jb 0x140014099
mov edx, 0x112
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.14000562c
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x1400140ce
test byte [rcx + 0x1c], 2
je 0x1400140ce
cmp byte [rcx + 0x19], 4
jb 0x1400140ce
mov edx, 0x113
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x50]
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.14000562c
test edi, edi
je 0x140014197
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400140fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001410b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x140014134
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140014144
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdi, [0x1400f3190]
inc r14d
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x1400f3190]
jmp 0x140013db7
mov rcx, qword [0x1400f3190]
cmp rcx, rdi
je 0x140014192
test byte [rcx + 0x1c], 2
je 0x140014192
cmp byte [rcx + 0x19], 2
jb 0x140014192
mov edx, 0x110
mov r9, qword [rsp + 0x40]
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.140003608
nop
jmp 0x140013fb6
mov esi, 1
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400141c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400141d1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x1400141fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001429c
jmp 0x140014296
mov rcx, qword [0x1400f3190]
cmp rcx, rdi
je 0x14001428e
test byte [rcx + 0x1c], 2
je 0x14001428e
cmp byte [rcx + 0x19], 2
jb 0x14001428e
mov edx, 0x10f
mov r9d, eax
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
jmp 0x140014287
mov esi, r15d
test rbx, rbx
jne 0x140014293
jmp 0x14001429c
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [0x1400f3190]
cmp rcx, rdi
je 0x14001428e
test byte [rcx + 0x1c], 2
je 0x14001428e
cmp byte [rcx + 0x19], 2
jb 0x14001428e
mov edx, 0x10e
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov rcx, qword [0x1400f3190]
test rbx, rbx
je 0x1400142a3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1400f3190]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400142c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r15
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x1400142f2
test byte [rcx + 0x1c], 1
je 0x1400142f2
cmp byte [rcx + 0x19], 5
jb 0x1400142f2
mov edx, 0x114
mov r9d, esi
lea r8, [0x1400ceae0]
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov eax, esi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400c13a0
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