Function at 0x1400194c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x60
mov rax, r8
mov r10, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x14001938d
mov rcx, qword [rdi]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x88], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1400193a2
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
jmp 0x1400194c0
mov eax, dword [rsp + 0x88]
mov rcx, rdi
dec eax
mov dword [rdi + 8], eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
jmp 0x1400194c0
mov rax, rsp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
xor r14d, r14d
mov rsi, rcx
cmp qword [rcx], r14
je 0x14001970e
cmp dword [rcx + 8], r14d
jl 0x14001970e
mov qword [rax + 0x18], rbx
mov qword [rax - 0x30], r12
mov r12d, dword [rcx + 0x28]
mov qword [rax - 0x38], r13
mov dword [rax + 0x10], r12d
mov rax, qword [rcx + 0x38]
sub rax, qword [rcx + 0x30]
lea r15, [rcx + 0x48]
mov edx, r12d
sar rax, 1
lea eax, [rax*2 - 2]
mov dword [r15], eax
mov rbx, qword [rcx + 0x30]
cmp rbx, qword [rcx + 0x38]
cmove rbx, r14
add rcx, 0x10
call fcn.140010b30
mov edx, dword [rsi + 8]
mov qword [rsp + 0x38], r15
lea rcx, [rsi + 0x4c]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
mov r8, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x1400196d7
mov ebx, dword [r15]
mov rax, qword [rsi + 0x38]
sub rax, qword [rsi + 0x30]
inc rbx
shr rbx, 1
sar rax, 1
inc ebx
cmp rbx, rax
jbe 0x140019662
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x50], rbp
mov rbp, qword [rsi + 0x30]
mov rax, rcx
mov word [rsp + 0x80], r14w
sub rax, rbp
sar rax, 1
cmp rax, rbx
jbe 0x1400195b0
sub rbx, rax
jmp 0x140019655
jae 0x14001965d
lea rdx, [rsp + 0x80]
lea r14, [rsp + 0x80]
cmp rdx, rcx
jae 0x1400195ff
lea rcx, [rsp + 0x80]
cmp rbp, rcx
ja 0x1400195ff
mov rdx, rbx
lea rcx, [rsi + 0x30]
sub rdx, rax
call fcn.140019930
mov rax, qword [rsi + 0x30]
lea rcx, [rsp + 0x80]
sub rcx, rbp
sar rcx, 1
lea r14, [rax + rcx*2]
jmp 0x14001960e
mov rdx, rbx
lea rcx, [rsi + 0x30]
sub rdx, rax
call fcn.140019930
mov rdx, qword [rsi + 0x38]
mov rcx, rbx
mov rax, rdx
sub rax, qword [rsi + 0x30]
sar rax, 1
sub rcx, rax
je 0x140019641
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r14]
lea rdx, [rdx + 2]
mov word [rdx - 2], ax
dec rcx
jne 0x140019630
mov rcx, qword [rsi + 0x38]
mov rax, rcx
sub rax, qword [rsi + 0x30]
sar rax, 1
sub rbx, rax
xor r14d, r14d
lea rax, [rcx + rbx*2]
mov qword [rsi + 0x38], rax
mov rbp, qword [rsp + 0x50]
mov rax, qword [rsi + 0x38]
lea rcx, [rsi + 0x10]
sub rax, qword [rsi + 0x30]
sar rax, 1
cmp dword [rsp + 0x88], r12d
lea eax, [rax*2 - 2]
mov dword [r15], eax
mov rbx, qword [rsi + 0x30]
mov eax, 0x4000
cmove r12d, eax
cmp rbx, qword [rsi + 0x38]
mov edx, r12d
cmove rbx, r14
mov dword [rsp + 0x88], r12d
call fcn.140010b30
mov edx, dword [rsi + 8]
mov qword [rsp + 0x38], r15
lea rcx, [rsi + 0x4c]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
mov r8, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x90]
test eax, eax
jne 0x14001970e
mov ecx, dword [r15]
mov rax, qword [rsi + 0x30]
inc rcx
shr rcx, 1
mov ecx, ecx
mov word [rax + rcx*2], r14w
mov al, 1
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
ret
cmp qword [rsi + 0x28], 8
lea rax, [rsi + 0x10]
jb 0x14001971c
mov rax, qword [rax]
mov word [rax], r14w
mov rax, qword [rsi + 0x30]
mov word [rax], r14w
mov dword [rsi + 0x48], r14d
xor al, al
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
ret