Function at 0x18000da40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x180033250]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rax, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rcx
xor r13d, r13d
mov dword [rsp + 0x50], r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov r12d, r13d
cmp qword [r8 + 0x18], 8
jb 0x18000dab4
mov rax, qword [r8]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000dcba
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1b0]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18000dcaf
movabs r14, 0x7ffffffffffffffe
nop word [rax + rax]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000dc60
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000dc55
mov edx, 7
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rbx, rcx
cmp rcx, r14
ja 0x18000dca2
cmp rcx, rdx
jbe 0x18000dbe5
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.18000a3c0
mov rdx, qword [rbp - 0x78]
jmp 0x18000dbf4
test rcx, rcx
jne 0x18000dbf4
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
test rbx, rbx
setne al
test al, al
je 0x18000dc36
lea rcx, [rsp + 0x70]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x70]
lea rdi, [rbx + rbx]
mov r8, rdi
lea rdx, [rbp - 0x60]
call fcn.180013610
mov qword [rbp - 0x80], rbx
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
mov word [rdi + rax], r13w
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.180010300
nop
cmp qword [rbp - 0x78], 8
jb 0x18000dc55
mov rcx, qword [rsp + 0x70]
call fcn.1800135c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r12d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1b0]
mov edx, r12d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18000dcaf
jmp 0x18000db30
lea rcx, str.string_too_long
call fcn.1800134d0
int3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1800135e0
add rsp, 0x4d0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret