Function at 0x140085330
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x88
mov rax, qword [0x140148020]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r9
mov rax, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x21], rcx
xor r15d, r15d
mov qword [rbp - 0x21], r15
cmp qword [r8 + 0x18], 8
jb 0x140085374
mov rax, qword [r8]
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xorps xmm0, xmm0
test eax, eax
je 0x1400853bb
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
xor r8d, r8d
lea rdx, [0x14011205c]
mov rcx, rbx
call fcn.140004fe0
jmp 0x1400855a6
mov dword [rbp + 0xf], r15d
mov dword [rbp - 0x19], r15d
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r15w
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400853e5
mov rdx, qword [rsi]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xf]
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140085573
mov eax, dword [rbp + 0xf]
dec eax
cmp eax, 1
ja 0x140085573
mov r14d, dword [rbp - 0x19]
shr r14d, 1
mov ecx, r14d
mov r8, qword [rbp - 1]
cmp rcx, r8
ja 0x140085446
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
mov qword [rbp - 1], rcx
mov word [rax + r14*2], r15w
jmp 0x14008549f
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp + 7]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14008548a
mov qword [rbp - 1], rcx
lea r9, [rbp - 0x11]
cmp rdi, 8
cmovae r9, qword [rbp - 0x11]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14008547f
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r15w
jmp 0x14008549f
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
lea rcx, [rbp - 0x11]
call fcn.140085820
mov eax, dword [rbp - 0x19]
mov dword [rbp + 0x13], eax
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
cmp qword [rsi + 0x18], 8
jb 0x1400854bd
mov rsi, qword [rsi]
lea rcx, [rbp + 0x13]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rbp - 0x11]
mov r11, qword [rbp - 0x11]
mov r10, qword [rbp + 7]
cmp r10, 8
cmovae rcx, r11
lea eax, [r14 - 1]
mov edi, eax
cmp word [rcx + rax*2], 0
jne 0x140085573
mov r8, qword [rbp - 1]
cmp rdi, r8
ja 0x14008551f
lea rax, [rbp - 0x11]
cmp r10, 8
cmovae rax, r11
mov qword [rbp - 1], rdi
mov word [rax + rdi*2], r15w
jmp 0x140085573
mov rdx, rdi
sub rdx, r8
mov rax, r10
sub rax, r8
cmp rdx, rax
ja 0x14008555e
mov qword [rbp - 1], rdi
lea r9, [rbp - 0x11]
cmp r10, 8
cmovae r9, r11
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140085553
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r15w
jmp 0x140085573
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
lea rcx, [rbp - 0x11]
call fcn.140085820
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rbp - 0x11]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 1]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp - 1], r15
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r15w
lea rcx, [rbp - 0x11]
call fcn.1400053f0
mov rax, rbx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400a24f0
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret