Function at 0x1000e5514
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x290
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100151198]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, rdx
mov rsi, rcx
lea rax, [0x100152eb8]
mov edi, 5
mov rcx, qword [0x100152eb8]
cmp rcx, rax
je 0x1000e5585
test byte [rcx + 0x1c], 1
je 0x1000e5585
cmp byte [rcx + 0x19], dil
jb 0x1000e5585
lea edx, [rdi + 0x54]
mov qword [rsp + 0x20], rbp
mov r9, qword [rsi]
lea r8, [0x10001dc38]
mov rcx, qword [rcx + 0x10]
call fcn.10003c054
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 0x1000e5789
lea rcx, [0x1000266c8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1000e5798
lea rdx, [0x1000266b8]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [rsp + 0x68], rax
xor ecx, ecx
cmp rax, rcx
je 0x1000e577a
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, rbp
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1000e563d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000e5631
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
jmp 0x1000e5642
mov rcx, qword [rsp + 0x50]
mov r10, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp r10, rax
je 0x1000e569b
mov edx, 2
test byte [r10 + 0x1c], dl
je 0x1000e569b
test ebx, ebx
lea eax, [rdx + 3]
cmove edx, eax
movzx eax, byte [r10 + 0x19]
cmp eax, edx
jl 0x1000e569b
mov edx, 0x5a
mov qword [rsp + 0x28], rbp
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x10001dc38]
mov rcx, qword [r10 + 0x10]
call fcn.10006b3d0
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jne 0x1000e576f
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000e573a
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.1000e5514
mov ebx, eax
test eax, eax
jne 0x1000e573a
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000e56e0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000e5751
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test ebx, ebx
jne 0x1000e576f
xor r9d, r9d
mov r8d, 0x100
mov rdx, rbp
mov rcx, qword [rsi]
call qword [rsp + 0x68]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000e577a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
mov edi, 5
jmp 0x1000e579d
mov rdx, rbp
mov rcx, rsi
call fcn.1000e6194
mov ebx, eax
jmp 0x1000e579d
mov edi, 5
mov rcx, qword [0x100152eb8]
lea rax, [0x100152eb8]
cmp rcx, rax
je 0x1000e57e3
test byte [rcx + 0x1c], 1
je 0x1000e57e3
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, edi
cmp r9d, edx
jl 0x1000e57e3
mov edx, 0x5b
mov r9d, ebx
lea r8, [0x10001dc38]
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10011b980
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret