Function at 0x14008ba28
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 [0x1400d2258]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
lea rax, [0x1400cf018]
mov r13d, 5
mov rcx, qword [0x1400cf018]
cmp rcx, rax
je 0x14008baa9
test byte [rcx + 0x1c], 1
je 0x14008baa9
cmp byte [rcx + 0x19], r13b
jb 0x14008baa9
lea edx, [r13 + 0x54]
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi]
lea r8, [0x1400b96e8]
mov rcx, qword [rcx + 0x10]
call fcn.14000afa4
mov ebx, 1
xor r12d, r12d
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
nop dword [rax + rax]
cmp dword [rsp + 0x48], r12d
je 0x14008bc9a
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14008bca7
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x14008bc89
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]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x14008bb86
mov ebx, r12d
test rcx, rcx
je 0x14008bb7c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov rdx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rdx, rax
je 0x14008bbd2
mov r8d, 2
test byte [rdx + 0x1c], r8b
je 0x14008bbd2
test ebx, ebx
cmove r8d, r13d
movzx eax, byte [rdx + 0x19]
cmp eax, r8d
jb 0x14008bbd2
mov qword [rsp + 0x28], rsi
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rcx, qword [rdx + 0x10]
call fcn.140089be0
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jne 0x14008bc78
mov r13d, 0x100
jmp 0x14008bbfb
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.14008ba28
mov ebx, eax
test eax, eax
jne 0x14008bc34
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]
nop dword [rax + rax]
test eax, eax
je 0x14008bbe2
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14008bc52
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r12
mov qword [rsp + 0x50], rcx
test ebx, ebx
jne 0x14008bc72
xor r9d, r9d
mov r8d, r13d
mov rdx, rsi
mov rcx, qword [rdi]
mov rax, r15
call qword [str._E_n_]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
mov r13d, 5
test rcx, rcx
je 0x14008bc89
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
jmp 0x14008bca7
mov rdx, rsi
mov rcx, rdi
call fcn.14008c230
mov ebx, eax
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
cmp rcx, rax
je 0x14008bcee
test byte [rcx + 0x1c], 1
je 0x14008bcee
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, r13d
cmp r9d, edx
jb 0x14008bcee
mov edx, 0x5b
mov r9d, ebx
lea r8, [0x1400b96e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400a3310
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret