Function at 0x140022c50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140293028]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, r9
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x80], rcx
xor r12d, r12d
mov dword [rsp + 0x64], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x64]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140022eb4
mov eax, dword [rsp + 0x64]
cmp eax, 2
jb 0x140022eb4
xorps xmm0, xmm0
mov ebx, eax
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
cmp rax, 2
jb 0x140022d6c
and rbx, 0xfffffffffffffffe
cmp rbx, 0x1000
jb 0x140022d35
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140022ee4
lfence
call fcn.140185648
mov rcx, rax
test rax, rax
je 0x140022eea
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140022d4a
test rbx, rbx
je 0x140022d47
lfence
mov rcx, rbx
call fcn.140185648
jmp 0x140022d4a
mov rax, r12
mov qword [rsp + 0x68], rax
lea rsi, [rbx + rax]
mov qword [rsp + 0x78], rsi
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1401a8d80
mov qword [rsp + 0x70], rsi
jmp 0x140022d71
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
sub rsi, rbx
sar rsi, 1
cmp qword [r14 + 0x18], 8
jb 0x140022d86
mov r14, qword [r14]
lea eax, [rsi + rsi]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022de1
mov eax, dword [rsp + 0x80]
dec eax
cmp eax, 1
ja 0x140022de1
test rbx, rbx
je 0x140022e38
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140022e34
test al, 1
jne 0x140022de1
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140022e38
mov rdx, rbp
mov rcx, rdi
call fcn.14000fcc0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140022ebf
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022eea
jmp 0x140022ead
mov word [rbx], r12w
mov qword [rdi], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rdx, qword [rsp + 0x68]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140022e60
mov rcx, rdi
call fcn.14000b550
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140022ebf
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022eea
call fcn.1401853a0
jmp 0x140022ebf
mov rdx, rbp
mov rcx, rdi
call fcn.14000fcc0
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140185380
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140008770
int3
call fcn.1401b3c00
int3