Function at 0x1400d2778
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 [0x140148058]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x140148ea8]
mov eax, 5
mov rcx, qword [0x140148ea8]
cmp rcx, rdx
je 0x1400d27ed
test byte [rcx + 0x1c], 1
je 0x1400d27ed
cmp byte [rcx + 0x19], al
jb 0x1400d27ed
lea edx, [rax + 0x54]
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi]
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.140017a90
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 0x1400d29ab
lea rcx, [0x140009188]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400d29b8
lea rdx, [0x140009178]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
xor ecx, ecx
test rax, rax
je 0x1400d299e
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 0x1400d28a6
test rcx, rcx
je 0x1400d289c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov rdx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rdx, rax
je 0x1400d28f6
mov r8d, 2
test byte [rdx + 0x1c], r8b
je 0x1400d28f6
test ebx, ebx
lea eax, [r8 + 3]
cmove r8d, eax
movzx eax, byte [rdx + 0x19]
cmp eax, r8d
jl 0x1400d28f6
mov qword [rsp + 0x28], rsi
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rcx, qword [rdx + 0x10]
call fcn.1400d0a80
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jne 0x1400d2993
jmp 0x1400d2919
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400d2778
mov ebx, eax
test eax, eax
jne 0x1400d2952
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
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 0x1400d2900
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d2969
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test ebx, ebx
jne 0x1400d2993
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [fcn.140015690]
xor r9d, r9d
mov r8d, 0x100
mov rdx, rsi
mov rcx, qword [rdi]
call rbx
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d299e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400d29b8
mov rdx, rsi
mov rcx, rdi
call fcn.1400d3264
mov ebx, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x1400d29ff
test byte [rcx + 0x1c], 1
je 0x1400d29ff
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1400d29ff
mov edx, 0x5b
mov r9d, ebx
lea r8, [0x1400091a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140001000
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret