Function at 0x140022c4c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14007d038]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, r8
mov qword [rbp - 0x29], r8
mov r13, rdx
mov rdi, rcx
mov qword [rbp + 0x17], rcx
mov qword [rbp - 0x11], rdx
mov qword [rbp - 9], r8
xor r12d, r12d
mov qword [rbp - 1], r12
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov edx, 0x101
mov rcx, r13
call fcn.140022484
mov r14, rax
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140022cc4
mov rdx, qword [rsi]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x17]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140022d0b
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 1]
mov qword [rdi], rax
mov rdx, qword [rbp + 7]
mov qword [rdi + 8], rdx
mov rdx, qword [rbp + 0xf]
mov qword [rdi + 0x10], rdx
jmp 0x140022ee3
cmp dword [rbp + 0x17], 7
je 0x140022d1f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140022ecc
mov ecx, dword [rbp - 0x19]
shr rcx, 1
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400252d4
mov r15, rax
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140022d53
mov rdx, qword [rsi]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140022ebf
mov ebx, dword [rbp - 0x19]
shr rbx, 1
je 0x140022da3
lea rax, [rbx - 1]
lea rax, [r15 + rax*2]
cmp word [rax], r12w
jne 0x140022da3
sub rax, 2
sub rbx, 1
jne 0x140022d93
mov rax, r12
mov r14, r12
test rbx, rbx
je 0x140022ebf
xor esi, esi
lea r12d, [rsi + 2]
cmp word [r15 + r12 - 2], si
jne 0x140022e2f
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], si
mov r8, r14
sub r8, rax
lea rdx, [r15 + rax*2]
lea rcx, [rbp - 0x49]
call fcn.14000a2c0
nop
mov rdx, qword [rbp + 7]
cmp qword [rbp + 0xf], rdx
je 0x140022e14
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x39]
movups xmmword [rdx + 0x10], xmm1
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], si
add qword [rbp + 7], 0x20
jmp 0x140022e22
lea r8, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.140013f30
nop
lea rcx, [rbp - 0x49]
call fcn.140009e30
lea rax, [r14 + 1]
inc r14
add r12, 2
cmp r14, rbx
jb 0x140022db8
cmp rbx, rax
mov rsi, qword [rbp - 0x29]
jbe 0x140022ebc
movdqa xmm0, xmmword [0x1400712e0]
movdqu xmmword [rbp - 0x39], xmm0
xor r12d, r12d
mov word [rbp - 0x49], r12w
sub rbx, rax
lea rdx, [r15 + rax*2]
mov r8, rbx
lea rcx, [rbp - 0x49]
call fcn.14000a2c0
nop
mov rdx, qword [rbp + 7]
cmp qword [rbp + 0xf], rdx
je 0x140022ea3
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x39]
movups xmmword [rdx + 0x10], xmm1
movdqa xmm0, xmmword [0x1400712e0]
movdqu xmmword [rbp - 0x39], xmm0
mov word [rbp - 0x49], r12w
add qword [rbp + 7], 0x20
jmp 0x140022eb1
lea r8, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.140013f30
nop
lea rcx, [rbp - 0x49]
call fcn.140009e30
jmp 0x140022ebf
xor r12d, r12d
mov edx, 2
mov rcx, r15
call fcn.140024d14
mov rax, qword [rbp - 1]
mov qword [rdi], rax
mov rax, qword [rbp + 7]
mov qword [rdi + 8], rax
mov rax, qword [rbp + 0xf]
mov qword [rdi + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp - 1], r12
mov rcx, r13
call fcn.140009e30
nop
mov rcx, rsi
call fcn.140009e30
mov rax, rdi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140024cf0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret