Function at 0x1400221a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402f2080]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r15, r8
mov r14, rdx
mov r12d, ecx
xor sil, sil
test rdx, rdx
je 0x140022439
xor ebx, ebx
cmp bx, word [rdx]
je 0x140022439
mov qword [rsp + 0x68], rbx
lea rcx, [rsp + 0x68]
call fcn.140016290
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.1401659c0
lea rdx, [rbp + 0x190]
mov ecx, r12d
call fcn.1401bf500
mov dword [rsp + 0x50], 0xffffffff
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x190]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400222a4
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
mov dword [r15], eax
call fcn.140015450
mov rcx, rax
test rax, rax
je 0x140022473
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov esi, dword [r15]
mov rdi, 0xffffffffffffffff
test esi, esi
js 0x1400223d2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.1401659c0
lea r8, [rbp - 0x80]
mov edx, esi
mov ecx, r12d
call fcn.1401bf6b0
lea rcx, [rbp - 0x80]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140022303
test rax, rax
je 0x1400223d2
lea rcx, [rsp + 0x38]
call fcn.140022e40
nop
mov r9, qword [rax]
lea r8, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140020f00
nop
mov rax, qword [rsp + 0x30]
lea rcx, [rax - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140022395
cmp dword [rbx + 0x10], 0
jl 0x14002237f
mov rdx, qword [rbx]
cmp qword [rcx], rdx
jne 0x14002237f
call fcn.14001dc80
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140022374
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x140022390
mov r8d, dword [rax - 0x10]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140016ed0
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400223af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400223cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140022468
mov rdx, rbx
mov rcx, qword [rsp + 0x68]
call fcn.140172d7c
test eax, eax
jne 0x1400223f1
mov sil, 1
jmp 0x140022402
mov r8, r15
mov rdx, r14
mov ecx, r12d
call fcn.140021dd0
movzx esi, al
lea rdx, [rbx - 0x18]
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14002241d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140022439
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, sil
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140146480
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400151f0
nop
mov ecx, 0x80004005
call fcn.1400151f0
int3