Function at 0x14005b4c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov r15d, r8d
mov rbp, rdx
mov r13, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor esi, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x14005b743
mov qword [rsp + 0x90], 0
mov r9d, r15d
or r9d, 8
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor esi, esi
mov rcx, r13
mov rdx, rbp
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005b54e
cmp eax, 2
je 0x14005b743
mov esi, eax
jmp 0x14005b743
movabs rbx, 0x7fffffffffffffef
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
mov rcx, rbp
call fcn.140162584
cmp rax, rbx
ja 0x14005b78e
mov rsi, rax
cmp rax, 0xb
jae 0x14005b59d
lea r14, [rsp + 0x70]
mov byte [rsp + 0x87], sil
mov r12, r14
test rsi, rsi
jne 0x14005b5d5
jmp 0x14005b5e6
lea rdi, [rsi + 8]
and rdi, 0xfffffffffffffff8
js 0x14005b798
lea rcx, [rdi + rdi]
call fcn.140147c20
mov r12, rax
mov qword [rsp + 0x70], rax
add rbx, 0x11
or rbx, rdi
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rsi
lea r14, [rsp + 0x70]
mov r8, rsi
add r8, rsi
mov rcx, r12
mov rdx, rbp
call fcn.14014a9e0
mov word [r12 + rsi*2], 0
mov al, byte [r14 + 0x17]
test al, al
mov rcx, qword [rsp + 0x78]
movzx edi, al
mov rdx, rdi
cmovs rdx, rcx
test rdx, rdx
mov qword [rsp + 0x40], rbp
lea rsi, [rsp + 0x70]
je 0x14005b642
mov rbx, rsi
test al, al
jns 0x14005b61d
mov rbx, qword [rsp + 0x70]
cmp word [rbx + rdx*2 - 2], 0x5c
je 0x14005b642
lea rsi, [rsp + 0x70]
mov rcx, rsi
mov dx, 0x5c
call fcn.14002b132
mov al, byte [r14 + 0x17]
mov rcx, qword [rsp + 0x78]
movzx edi, al
test al, al
cmovs rdi, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
lea rbp, [rsp + 0x50]
lea r12, [rsp + 0x4c]
lea rbx, [rsp + 0x70]
jmp 0x14005b683
mov rcx, r13
mov r8d, r15d
call fcn.14005b4c0
test eax, eax
jne 0x14005b711
mov dword [rsp + 0x4c], 0x104
mov edx, 0x104
mov rcx, rbp
call fcn.1400509a0
mov rcx, qword [rsp + 0x90]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
mov r8, rax
mov r9, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14005b711
mov edx, dword [rsp + 0x4c]
mov rcx, rbp
xor r8d, r8d
call fcn.14002aaf0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.14002aaf0
movzx r8d, byte [rsp + 0x67]
mov rdx, rbp
test r8b, r8b
jns 0x14005b6f1
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.14002adc0
cmp byte [r14 + 0x17], 0
mov rdx, rsi
jns 0x14005b670
mov rdx, qword [rsp + 0x70]
jmp 0x14005b670
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r13
mov rdx, qword [rsp + 0x40]
mov r8d, r15d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
cmp byte [rsp + 0x67], 0
js 0x14005b771
cmp byte [r14 + 0x17], 0
js 0x14005b782
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x50]
call fcn.140147c5c
cmp byte [r14 + 0x17], 0
jns 0x14005b743
mov rcx, qword [rsp + 0x70]
call fcn.140147c5c
jmp 0x14005b743
lea rcx, [rsp + 0x70]
call fcn.140029cdc
call fcn.14015acbc
int3