Function at 0x1400b3b90
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 [0x140109328]
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 0x1400b3c05
test byte [rcx + 0x1c], 1
je 0x1400b3c05
cmp byte [rcx + 0x19], al
jb 0x1400b3c05
lea edx, [rax + 0x54]
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi]
lea r8, [0x1400e7988]
mov rcx, qword [rcx + 0x10]
call fcn.14000af34
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 0x1400b3dbe
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400b3dcb
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 0x1400b3db1
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 0x1400b3cbe
test rcx, rcx
je 0x1400b3cb4
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 0x1400b3d0e
mov r8d, 2
test byte [rdx + 0x1c], r8b
je 0x1400b3d0e
test ebx, ebx
lea eax, [r8 + 3]
cmove r8d, eax
movzx eax, byte [rdx + 0x19]
cmp eax, r8d
jl 0x1400b3d0e
mov qword [rsp + 0x28], rsi
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rcx, qword [rdx + 0x10]
call fcn.1400b1e7c
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jne 0x1400b3da6
jmp 0x1400b3d31
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400b3b90
mov ebx, eax
test eax, eax
jne 0x1400b3d6a
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 0x1400b3d18
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b3d81
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test ebx, ebx
jne 0x1400b3da6
xor r9d, r9d
mov r8d, 0x100
mov rdx, rsi
mov rcx, qword [rdi]
mov rax, qword [rsp + 0x70]
call qword [case.0x14006e230.0]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b3db1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400b3dcb
mov rdx, rsi
mov rcx, rdi
call fcn.1400b467c
mov ebx, eax
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x1400b3e12
test byte [rcx + 0x1c], 1
je 0x1400b3e12
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1400b3e12
mov edx, 0x5b
mov r9d, ebx
lea r8, [0x1400e7988]
mov rcx, qword [rcx + 0x10]
call fcn.140003634
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400cc650
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret