Function at 0x140017910
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 [0x140109328]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rdi, [0x140106190]
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017984
test byte [rcx + 0x1c], 1
je 0x140017984
mov edx, 0x140
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003574
mov rcx, qword [0x140106190]
mov esi, 1
xor r15d, r15d
mov eax, r15d
mov qword [rsp + 0x48], rax
mov r14d, r15d
or r12, 0xffffffffffffffff
cmp rcx, rdi
je 0x1400179c9
test byte [rcx + 0x1c], 2
je 0x1400179c9
cmp byte [rcx + 0x19], 5
jb 0x1400179c9
mov edx, 0x141
mov r9d, r14d
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400179dc
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, [0x1400dd670]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017e2d
mov eax, r15d
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbx
test eax, eax
jne 0x140017e2d
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 0x140017e23
test eax, eax
jne 0x140017df1
lea rdx, [0x1400dd670]
lea rcx, [rsp + 0x40]
call fcn.140004b74
nop
lea rcx, [rbp - 0x50]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140017a93
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.140004588
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 0x140017d28
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [0x140108fd0]
lea rcx, [0x140108fd0]
mov rax, qword [rax + 0x18]
call qword [case.0x14006e230.0]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, [0x1400dd640]
lea rcx, [rbp - 0x70]
call fcn.1400b3940
test eax, eax
je 0x140017bdc
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017b60
test byte [rcx + 0x1c], 2
je 0x140017b60
cmp byte [rcx + 0x19], 5
jb 0x140017b60
mov edx, 0x145
mov r9d, eax
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
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 0x140017b89
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017b9a
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 0x140017bc3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140017d67
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017d67
mov qword [rbp - 0x78], r15
lea rdx, [0x1400db5a8]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, r15d
test eax, eax
sete dil
test edi, edi
jne 0x140017c74
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]
lea eax, [rdi + 1]
mov r8d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x140017c74
mov edi, 1
mov rcx, qword [0x140106190]
lea rdx, [0x140106190]
cmp rcx, rdx
je 0x140017cb8
test byte [rcx + 0x1c], 2
je 0x140017c7b
cmp byte [rcx + 0x19], 5
jb 0x140017c7b
mov edx, 0x146
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.14000541c
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x140017cb0
test byte [rcx + 0x1c], 2
je 0x140017cb0
cmp byte [rcx + 0x19], 4
jb 0x140017cb0
mov edx, 0x147
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x50]
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.14000541c
test edi, edi
je 0x140017d7b
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140017cdc
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017ced
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 0x140017d16
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140017d60
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017d60
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017d5b
test byte [rcx + 0x1c], 2
je 0x140017d5b
cmp byte [rcx + 0x19], 2
jb 0x140017d5b
mov edx, 0x144
mov r9, qword [rsp + 0x40]
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003598
nop
jmp 0x140017b9a
lea rdi, [0x140106190]
inc r14d
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x140106190]
jmp 0x14001799b
mov esi, 1
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140017da4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017db5
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 0x140017dde
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140017e80
jmp 0x140017e7a
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017e72
test byte [rcx + 0x1c], 2
je 0x140017e72
cmp byte [rcx + 0x19], 2
jb 0x140017e72
mov edx, 0x143
mov r9d, eax
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
jmp 0x140017e6b
mov esi, r15d
test rbx, rbx
jne 0x140017e77
jmp 0x140017e80
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017e72
test byte [rcx + 0x1c], 2
je 0x140017e72
cmp byte [rcx + 0x19], 2
jb 0x140017e72
mov edx, 0x142
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
mov rcx, qword [0x140106190]
test rbx, rbx
je 0x140017e87
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x140106190]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140017ea6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r15
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x140017ed6
test byte [rcx + 0x1c], 1
je 0x140017ed6
cmp byte [rcx + 0x19], 5
jb 0x140017ed6
mov edx, 0x148
mov r9d, esi
lea r8, [0x1400dd6d0]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
mov eax, esi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400cc650
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