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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5c8]
sub rsp, 0x6b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
movsxd r14, edx
mov byte [rbp - 0x60], 0
xor edx, edx
mov r8d, 0x5ff
lea rcx, [rbp - 0x5f]
call fcn.1800b6c70
lea r15, [rbp + 0x3d4]
mov dword [rbp - 0x50], 0x104
test r14d, r14d
je 0x180038c47
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 0x438]
call fcn.1800b6c70
lea rcx, [rsp + 0x58]
call fcn.180036f30
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18001b8b0
nop
cmp qword [rax + 0x18], 8
jb 0x180038990
mov rax, qword [rax]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 8
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete dil
cmp qword [rbp - 0x70], 8
jb 0x1800389ca
mov rcx, qword [rsp + 0x78]
call fcn.1800b5700
mov qword [rbp - 0x70], 7
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
cmp qword [rsp + 0x70], 0x10
jb 0x1800389ef
mov rcx, qword [rsp + 0x58]
call fcn.1800b5700
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x58], 0
test dil, dil
je 0x180038c2a
mov esi, ebx
mov dword [rbp - 0x44], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x44]
lea r8, [rbp + 0x1cc]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180038c1f
nop dword [rax + rax]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x1cc]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180038be2
mov dword [rbp - 0x58], 1
mov dword [rbp - 0x54], 0x208
lea rcx, [rsp + 0x78]
call fcn.180036dd0
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.18001b8b0
nop
cmp qword [rax + 0x18], 8
jb 0x180038aae
mov rax, qword [rax]
lea rcx, [rbp - 0x54]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x3c]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x58]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete dil
cmp qword [rsp + 0x70], 8
jb 0x180038aed
mov rcx, qword [rsp + 0x58]
call fcn.1800b5700
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rbp - 0x70], 0x10
jb 0x180038b11
mov rcx, qword [rsp + 0x78]
call fcn.1800b5700
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], rbx
mov byte [rsp + 0x78], 0
test dil, dil
je 0x180038bd7
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 0x3d4]
call fcn.1800b6c70
mov r8d, r15d
lea rdx, [rbp - 0x3c]
call fcn.180038c80
test eax, eax
je 0x180038bd7
lea rcx, [rbp + 0x438]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x180038b60
test rax, rax
je 0x180038b97
lea rax, [rbp + 0x3d4]
lea r8, [rbp + 0x438]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180038b93
inc rax
test ecx, ecx
jne 0x180038b80
test edx, edx
jns 0x180038bd7
mov edx, 0x64
lea rax, [rbp + 0x438]
mov ecx, r15d
sub ecx, eax
movsxd r8, ecx
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
test cl, cl
je 0x180038bd4
mov byte [rax], cl
inc rax
dec edx
je 0x180038bce
lea ecx, [rdx + 0x7fffff9a]
test ecx, ecx
jne 0x180038bb0
jmp 0x180038bd4
mov byte [rax - 1], 0
jmp 0x180038bd7
mov byte [rax], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x44], 0x104
inc esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x44]
lea r8, [rbp + 0x1cc]
mov edx, esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180038a50
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
lea r8, [rbp + 0x438]
lea rdx, [0x180100c50]
call fcn.1800b9180
mov eax, 1
jmp 0x180038c4b
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret