Function at 0x1400b4670
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140109388]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x140106190]
mov eax, 5
mov rcx, qword [0x140106190]
cmp rcx, rdx
je 0x1400b46e5
test byte [rcx + 0x1c], 1
je 0x1400b46e5
cmp byte [rcx + 0x19], al
jb 0x1400b46e5
lea edx, [rax + 0x54]
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi]
lea r8, str._4
mov rcx, qword [rcx + 0x10]
call fcn.14000ac04
mov ebx, 1
and dword [rsp + 0x48], 0
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], 0
je 0x1400b489e
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400b48ab
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
xor ecx, ecx
test rax, rax
je 0x1400b4891
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x40], rcx
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 0x1400b479e
test rcx, rcx
je 0x1400b4794
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov rdx, qword [0x140106190]
lea rax, [0x140106190]
cmp rdx, rax
je 0x1400b47ee
mov r8d, 2
test byte [rdx + 0x1c], r8b
je 0x1400b47ee
test ebx, ebx
lea eax, [r8 + 3]
cmove r8d, eax
movzx eax, byte [rdx + 0x19]
cmp eax, r8d
jb 0x1400b47ee
mov qword [rsp + 0x28], rsi
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rcx, qword [rdx + 0x10]
call fcn.1400b29c4
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jne 0x1400b4886
jmp 0x1400b4811
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400b4670
mov ebx, eax
test eax, eax
jne 0x1400b484a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400b47f8
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b4861
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test ebx, ebx
jne 0x1400b4886
xor r9d, r9d
mov r8d, 0x100
mov rdx, rsi
mov rcx, qword [rdi]
mov rax, qword [rsp + 0x70]
call qword [case.0x14006d218.0]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b4891
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400b48ab
mov rdx, rsi
mov rcx, rdi
call fcn.1400b5108
mov ebx, eax
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x1400b48f2
test byte [rcx + 0x1c], 1
je 0x1400b48f2
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jb 0x1400b48f2
mov edx, 0x5b
mov r9d, ebx
lea r8, str._4
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400cc8d0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret