Function at 0x1400a96b4
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400f6388]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
lea rax, [0x1400f3190]
mov r13d, 5
mov rcx, qword [0x1400f3190]
cmp rcx, rax
je 0x1400a9735
test byte [rcx + 0x1c], 1
je 0x1400a9735
cmp byte [rcx + 0x19], r13b
jb 0x1400a9735
lea edx, [r13 + 0x54]
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi]
lea r8, str._4
mov rcx, qword [rcx + 0x10]
call fcn.14000ac78
mov ebx, 1
xor r12d, r12d
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x48], r12d
je 0x1400a98ea
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x1400a98f7
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x1400a98df
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x1400a97ee
mov ebx, r12d
test rcx, rcx
je 0x1400a97e4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov rdx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rdx, rax
je 0x1400a983a
mov r8d, 2
test byte [rdx + 0x1c], r8b
je 0x1400a983a
test ebx, ebx
cmove r8d, r13d
movzx eax, byte [rdx + 0x19]
cmp eax, r8d
jb 0x1400a983a
mov qword [rsp + 0x28], rsi
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rcx, qword [rdx + 0x10]
call fcn.1400a7964
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jne 0x1400a98d4
mov r13d, 0x100
jmp 0x1400a9863
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.1400a96b4
mov ebx, eax
test eax, eax
jne 0x1400a9896
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x40], r13d
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400a984a
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a98ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
mov qword [rsp + 0x50], rcx
test ebx, ebx
jne 0x1400a98ce
xor r9d, r9d
mov r8d, r13d
mov rdx, rsi
mov rcx, qword [rdi]
mov rax, r15
call qword [str.__f_]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
mov r13d, 5
test rcx, rcx
je 0x1400a98df
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400a98f7
mov rdx, rsi
mov rcx, rdi
call fcn.1400aa160
mov ebx, eax
mov rcx, qword [0x1400f3190]
lea rax, [0x1400f3190]
cmp rcx, rax
je 0x1400a993e
test byte [rcx + 0x1c], 1
je 0x1400a993e
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, r13d
cmp r9d, edx
jb 0x1400a993e
mov edx, 0x5b
mov r9d, ebx
lea r8, str._4
mov rcx, qword [rcx + 0x10]
call fcn.1400036a8
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400c13a0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret